diff --git a/package-lock.json b/package-lock.json index 92e3cf8c2e4..bcb9a03c5cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,22 +7,13 @@ "name": "@autorest/csharp", "devDependencies": { "@azure-tools/cadl-ranch-mockapis": "file:test/CadlRanchMockApis", - "@azure-tools/typespec-client-generator-core": "0.41.8", + "@azure-tools/typespec-client-generator-core": "0.42.2", "@azure-tools/typespec-csharp": "file:src/TypeSpec.Extension/Emitter.Csharp", "@azure-tools/unbranded-tests": "file:test/UnbrandedProjects", "@microsoft.azure/autorest.testserver": "3.3.48", "autorest": "3.7.1" } }, - "node_modules/@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/@autorest/csharp": { "version": "3.0.0-beta.20230309.1", "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20230309.1.tgz", @@ -30,20 +21,20 @@ "dev": true }, "node_modules/@azure-tools/cadl-ranch": { - "version": "0.12.7", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch/-/cadl-ranch-0.12.7.tgz", - "integrity": "sha512-lhJP81l7i+ScW14TYJ7P4qerkYsGGXFpAsxXUUk7hhu5vQL6TuMj/dyVXFU5nE3h2TAW+SOM+Lk6awRLxY5s+A==", + "version": "0.12.8", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch/-/cadl-ranch-0.12.8.tgz", + "integrity": "sha512-dkVz6YxwFBgwmWtYqpzY1cuncuuHcvQbd8gHx1j9tvl8VjEjd5gVTAEFkp9ZuOM8P9L/VP5x4q14RlRMOMitHQ==", "dev": true, "peer": true, "dependencies": { "@azure-tools/cadl-ranch-api": "~0.4.3", "@azure-tools/cadl-ranch-coverage-sdk": "~0.8.2", - "@azure-tools/cadl-ranch-expect": "~0.13.3", + "@azure-tools/cadl-ranch-expect": "~0.13.4", "@azure/identity": "^3.1.4", "@types/js-yaml": "^4.0.5", - "@typespec/compiler": "~0.55.0", - "@typespec/http": "~0.55.0", - "@typespec/rest": "~0.55.0", + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0", + "@typespec/rest": "~0.56.0", "ajv": "8.12.0", "body-parser": "^1.20.2", "deep-equal": "^2.2.0", @@ -108,9 +99,9 @@ } }, "node_modules/@azure-tools/cadl-ranch-api/node_modules/glob": { - "version": "10.3.12", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz", - "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==", + "version": "10.3.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.15.tgz", + "integrity": "sha512-0c6RlJt1TICLyvJYIApxb8GsXoai0KUP7AxKKAtsYXdgJR1mGEUa7DgwShbdk1nly0PYoZj01xd4hzbq3fsjpw==", "dev": true, "peer": true, "dependencies": { @@ -118,13 +109,13 @@ "jackspeak": "^2.3.6", "minimatch": "^9.0.1", "minipass": "^7.0.4", - "path-scurry": "^1.10.2" + "path-scurry": "^1.11.0" }, "bin": { "glob": "dist/esm/bin.mjs" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=16 || 14 >=14.18" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -178,9 +169,9 @@ } }, "node_modules/@azure-tools/cadl-ranch-coverage-sdk/node_modules/@types/node": { - "version": "18.19.31", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.31.tgz", - "integrity": "sha512-ArgCD39YpyyrtFKIqMDvjz79jto5fcI/SVUs2HwB+f0dAzq68yqOdyaSivLiLugSziTpNXLQrVb7RZFmdZzbhA==", + "version": "18.19.33", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.33.tgz", + "integrity": "sha512-NR9+KrpSajr2qBVp/Yt5TU/rp+b5Mayi3+OlMlcg2cVCfRmcG5PWZ7S4+MG9PZ5gWBoc9Pd0BKSRViuBCRPu0A==", "dev": true, "peer": true, "dependencies": { @@ -188,19 +179,19 @@ } }, "node_modules/@azure-tools/cadl-ranch-expect": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-expect/-/cadl-ranch-expect-0.13.3.tgz", - "integrity": "sha512-CkLsiRci29AvU08vJXLx8O4t2p+60cH7OhLD11IBvfx4czwsShI5AKswvm0ESanuwpquCF3RATu+UTqVM+pYTA==", + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-expect/-/cadl-ranch-expect-0.13.4.tgz", + "integrity": "sha512-2j9Mxr8tz7zF8j8L/R/KEPhES/cJDt21wUTkQv0TKwZ4Kz5HGHBCsvnOnoBs72H7Q8DHpqOIhNDak40BHCrEGA==", "dev": true, "peer": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.55.0", - "@typespec/http": "~0.55.0", - "@typespec/rest": "~0.55.0", - "@typespec/versioning": "~0.55.0" + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0", + "@typespec/rest": "~0.56.0", + "@typespec/versioning": "~0.56.0" } }, "node_modules/@azure-tools/cadl-ranch-mockapis": { @@ -208,25 +199,25 @@ "link": true }, "node_modules/@azure-tools/cadl-ranch-specs": { - "version": "0.33.3", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-specs/-/cadl-ranch-specs-0.33.3.tgz", - "integrity": "sha512-58TJBIQUh4QMOQUGXlUZUPRGJfW29Eh4G37PJaRzuf1dLeWpd3NiqYpAjTmeowoAAs/HGoNOp1BzL5Hx5bjoZw==", + "version": "0.33.4", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-ranch-specs/-/cadl-ranch-specs-0.33.4.tgz", + "integrity": "sha512-xTTyZIWT8bjXNoFr1M5CA6L7yo3mLBMzSDYPepCCWk3Wx8P2bl0NkK9YS4udfTA9TKlUJPSW23DvHcQfJ2rurQ==", "dev": true, "peer": true, "dependencies": { - "@azure-tools/cadl-ranch": "~0.12.7", + "@azure-tools/cadl-ranch": "~0.12.8", "@azure-tools/cadl-ranch-api": "~0.4.3" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@azure-tools/cadl-ranch-expect": "~0.13.3", - "@azure-tools/typespec-azure-core": "~0.41.0", - "@typespec/compiler": "~0.55.0", - "@typespec/http": "~0.55.0", - "@typespec/rest": "~0.55.0", - "@typespec/versioning": "~0.55.0" + "@azure-tools/cadl-ranch-expect": "~0.13.4", + "@azure-tools/typespec-azure-core": "~0.42.0", + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0", + "@typespec/rest": "~0.56.0", + "@typespec/versioning": "~0.56.0" } }, "node_modules/@azure-tools/cadl-ranch/node_modules/foreground-child": { @@ -247,9 +238,9 @@ } }, "node_modules/@azure-tools/cadl-ranch/node_modules/glob": { - "version": "10.3.12", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz", - "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==", + "version": "10.3.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.15.tgz", + "integrity": "sha512-0c6RlJt1TICLyvJYIApxb8GsXoai0KUP7AxKKAtsYXdgJR1mGEUa7DgwShbdk1nly0PYoZj01xd4hzbq3fsjpw==", "dev": true, "peer": true, "dependencies": { @@ -257,13 +248,13 @@ "jackspeak": "^2.3.6", "minimatch": "^9.0.1", "minipass": "^7.0.4", - "path-scurry": "^1.10.2" + "path-scurry": "^1.11.0" }, "bin": { "glob": "dist/esm/bin.mjs" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=16 || 14 >=14.18" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -321,23 +312,23 @@ } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.41.0.tgz", - "integrity": "sha512-bnVrLxyjhMfKv75POL3m+lWjyqpLtWYEM9t2mrhFECHfW3+gWzTKIg98oNMKLXmev/sCc9QhbkKLs72jqxNL1Q==", + "version": "0.42.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.42.0.tgz", + "integrity": "sha512-8C96RkgSWtgqsaHRMWCd2iDltFJZTGmFQiTZazZj/uRy0Wn1ikjSriSN8t1puL5SiUPd0BVJP/YXiwAfjfZYDA==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.55.0", - "@typespec/http": "~0.55.0", - "@typespec/rest": "~0.55.0" + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0", + "@typespec/rest": "~0.56.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.41.8", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.41.8.tgz", - "integrity": "sha512-d72LPwkEio/swqyAAgcuOaw+K4ghSbZcRjpjsvddxHWHh25ZukjD2hU/BfCtidnKptgKjs79fV++w2MYE6sTyw==", + "version": "0.42.2", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.42.2.tgz", + "integrity": "sha512-Hei86GqNFfKpFhivZPpKo1ktSRQMnZKjLoMwIumklmMpeo5KgyzEgRSpJEiS+zmPZELs2Fu07VgfvpW0IXurUg==", "dev": true, "dependencies": { "change-case": "~5.4.4", @@ -347,11 +338,11 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.41.0", - "@typespec/compiler": "~0.55.0", - "@typespec/http": "~0.55.0", - "@typespec/rest": "~0.55.0", - "@typespec/versioning": "~0.55.0" + "@azure-tools/typespec-azure-core": "~0.42.0", + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0", + "@typespec/rest": "~0.56.0", + "@typespec/versioning": "~0.56.0" } }, "node_modules/@azure-tools/typespec-csharp": { @@ -375,26 +366,26 @@ } }, "node_modules/@azure/core-auth": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.6.0.tgz", - "integrity": "sha512-3X9wzaaGgRaBCwhLQZDtFp5uLIXCPrGbwJNWPPugvL4xbIGgScv77YzzxToKGLAKvG9amDoofMoP+9hsH1vs1w==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.7.2.tgz", + "integrity": "sha512-Igm/S3fDYmnMq1uKS38Ae1/m37B3zigdlZw+kocwEhh5GjyKjPrXKO2J6rzpC1wAxrNil/jX9BJRqBshyjnF3g==", "dev": true, "dependencies": { "@azure/abort-controller": "^2.0.0", "@azure/core-util": "^1.1.0", - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, "node_modules/@azure/core-auth/node_modules/@azure/abort-controller": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.0.0.tgz", - "integrity": "sha512-RP/mR/WJchR+g+nQFJGOec+nzeN/VvjlwbinccoqfhTsTHbb8X5+mLDp48kHT0ueyum0BNSwGm0kX0UZuIqTGg==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", + "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", "dev": true, "dependencies": { - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" @@ -471,55 +462,55 @@ } }, "node_modules/@azure/core-lro": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@azure/core-lro/-/core-lro-2.6.0.tgz", - "integrity": "sha512-PyRNcaIOfMgoUC01/24NoG+k8O81VrKxYARnDlo+Q2xji0/0/j2nIt8BwQh294pb1c5QnXTDPbNR4KzoDKXEoQ==", + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@azure/core-lro/-/core-lro-2.7.2.tgz", + "integrity": "sha512-0YIpccoX8m/k00O7mDDMdJpbr6mf1yWo2dfmxt5A8XVZVVMz2SSKaEbMCeJRvgQ0IaSlqhjT47p4hVIRRy90xw==", "dev": true, "dependencies": { "@azure/abort-controller": "^2.0.0", "@azure/core-util": "^1.2.0", "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, "node_modules/@azure/core-lro/node_modules/@azure/abort-controller": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.0.0.tgz", - "integrity": "sha512-RP/mR/WJchR+g+nQFJGOec+nzeN/VvjlwbinccoqfhTsTHbb8X5+mLDp48kHT0ueyum0BNSwGm0kX0UZuIqTGg==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", + "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", "dev": true, "dependencies": { - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, "node_modules/@azure/core-paging": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@azure/core-paging/-/core-paging-1.5.0.tgz", - "integrity": "sha512-zqWdVIt+2Z+3wqxEOGzR5hXFZ8MGKK52x4vFLw8n58pR6ZfKRx3EXYTxTaYxYHc/PexPUTyimcTWFJbji9Z6Iw==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@azure/core-paging/-/core-paging-1.6.2.tgz", + "integrity": "sha512-YKWi9YuCU04B55h25cnOYZHxXYtEvQEbKST5vqRga7hWY9ydd3FZHdeQF8pyh+acWZvppw13M/LMGx0LABUVMA==", "dev": true, "dependencies": { - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0" } }, "node_modules/@azure/core-rest-pipeline": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.15.2.tgz", - "integrity": "sha512-BmWfpjc/QXc2ipHOh6LbUzp3ONCaa6xzIssTU0DwH9bbYNXJlGUL6tujx5TrbVd/QQknmS+vlQJGrCq2oL1gZA==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.16.0.tgz", + "integrity": "sha512-CeuTvsXxCUmEuxH5g/aceuSl6w2EugvNHKAtKKVdiX915EjJJxAwfzNNWZreNnbxHZ2fi0zaM6wwS23x2JVqSQ==", "dev": true, "peer": true, "dependencies": { "@azure/abort-controller": "^2.0.0", "@azure/core-auth": "^1.4.0", "@azure/core-tracing": "^1.0.1", - "@azure/core-util": "^1.3.0", + "@azure/core-util": "^1.9.0", "@azure/logger": "^1.0.0", "http-proxy-agent": "^7.0.0", "https-proxy-agent": "^7.0.0", @@ -569,25 +560,25 @@ } }, "node_modules/@azure/core-util": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.7.0.tgz", - "integrity": "sha512-Zq2i3QO6k9DA8vnm29mYM4G8IE9u1mhF1GUabVEqPNX8Lj833gdxQ2NAFxt2BZsfAL+e9cT8SyVN7dFVJ/Hf0g==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.9.0.tgz", + "integrity": "sha512-AfalUQ1ZppaKuxPPMsFEUdX6GZPB3d9paR9d/TTL7Ow2De8cJaC7ibi7kWVlFAVPCYo31OcnGymc0R89DX8Oaw==", "dev": true, "dependencies": { "@azure/abort-controller": "^2.0.0", - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" } }, "node_modules/@azure/core-util/node_modules/@azure/abort-controller": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.0.0.tgz", - "integrity": "sha512-RP/mR/WJchR+g+nQFJGOec+nzeN/VvjlwbinccoqfhTsTHbb8X5+mLDp48kHT0ueyum0BNSwGm0kX0UZuIqTGg==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", + "integrity": "sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==", "dev": true, "dependencies": { - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { "node": ">=18.0.0" @@ -633,34 +624,34 @@ } }, "node_modules/@azure/logger": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.0.4.tgz", - "integrity": "sha512-ustrPY8MryhloQj7OWGe+HrYx+aoiOxzbXTtgblbV3xwCqpzUK36phH3XNHQKj3EPonyFUuDTfR3qFhTEAuZEg==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.1.2.tgz", + "integrity": "sha512-l170uE7bsKpIU6B/giRc9i4NI0Mj+tANMMMxf7Zi/5cKzEqPayP7+X1WPrG7e+91JgY8N+7K7nF2WOi7iVhXvg==", "dev": true, "dependencies": { - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0" } }, "node_modules/@azure/msal-browser": { - "version": "3.13.0", - "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-3.13.0.tgz", - "integrity": "sha512-fD906nmJei3yE7la6DZTdUtXKvpwzJURkfsiz9747Icv4pit77cegSm6prJTKLQ1fw4iiZzrrWwxnhMLrTf5gQ==", + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-3.14.0.tgz", + "integrity": "sha512-Un85LhOoecJ3HDTS3Uv3UWnXC9/43ZSO+Kc+anSqpZvcEt58SiO/3DuVCAe1A3I5UIBYJNMgTmZPGXQ0MVYrwA==", "dev": true, "peer": true, "dependencies": { - "@azure/msal-common": "14.9.0" + "@azure/msal-common": "14.10.0" }, "engines": { "node": ">=0.8.0" } }, "node_modules/@azure/msal-common": { - "version": "14.9.0", - "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-14.9.0.tgz", - "integrity": "sha512-yzBPRlWPnTBeixxLNI3BBIgF5/bHpbhoRVuuDBnYjCyWRavaPUsKAHUDYLqpGkBLDciA6TCc6GOxN4/S3WiSxg==", + "version": "14.10.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-14.10.0.tgz", + "integrity": "sha512-Zk6DPDz7e1wPgLoLgAp0349Yay9RvcjPM5We/ehuenDNsz/t9QEFI7tRoHpp/e47I4p20XE3FiDlhKwAo3utDA==", "dev": true, "peer": true, "engines": { @@ -668,13 +659,13 @@ } }, "node_modules/@azure/msal-node": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-2.7.0.tgz", - "integrity": "sha512-wXD8LkUvHICeSWZydqg6o8Yvv+grlBEcmLGu+QEI4FcwFendbTEZrlSygnAXXSOCVaGAirWLchca35qrgpO6Jw==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-2.8.1.tgz", + "integrity": "sha512-VcZZM+5VvCWRBTOF7SxMKaxrz+EXjntx2u5AQe7QE06e6FuPJElGBrImgNgCh5QmFaNCfVFO+3qNR7UoFD/Gfw==", "dev": true, "peer": true, "dependencies": { - "@azure/msal-common": "14.9.0", + "@azure/msal-common": "14.10.0", "jsonwebtoken": "^9.0.0", "uuid": "^8.3.0" }, @@ -683,9 +674,9 @@ } }, "node_modules/@azure/storage-blob": { - "version": "12.17.0", - "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.17.0.tgz", - "integrity": "sha512-sM4vpsCpcCApagRW5UIjQNlNylo02my2opgp0Emi8x888hZUvJ3dN69Oq20cEGXkMUWnoCrBaB0zyS3yeB87sQ==", + "version": "12.18.0", + "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.18.0.tgz", + "integrity": "sha512-BzBZJobMoDyjJsPRMLNHvqHycTGrT8R/dtcTx9qUFcqwSRfGVK9A/cZ7Nx38UQydT9usZGbaDCN75QRNjezSAA==", "dev": true, "dependencies": { "@azure/abort-controller": "^1.0.0", @@ -702,34 +693,34 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", - "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "version": "7.24.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", + "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", "dev": true, "dependencies": { - "@babel/highlight": "^7.23.4", - "chalk": "^2.4.2" + "@babel/highlight": "^7.24.2", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz", + "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.2.tgz", - "integrity": "sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.5.tgz", + "integrity": "sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", + "@babel/helper-validator-identifier": "^7.24.5", "chalk": "^2.4.2", "js-tokens": "^4.0.0", "picocolors": "^1.0.0" @@ -837,6 +828,21 @@ "concat-map": "0.0.1" } }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -855,13 +861,25 @@ "node": "*" } }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.2.0.tgz", + "integrity": "sha512-ESiIudvhoYni+MdsI8oD7skpprZ89qKocwRM2KEvhhBJ9nl5MRh7BXU5GTod7Mdygq+AUl+QzId6iWJKR/wABA==", "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@humanwhocodes/config-array": { @@ -914,9 +932,9 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", - "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", "dev": true }, "node_modules/@isaacs/cliui": { @@ -1196,9 +1214,9 @@ "dev": true }, "node_modules/@types/lodash": { - "version": "4.14.202", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz", - "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.1.tgz", + "integrity": "sha512-X+2qazGS3jxLAIz5JDXDzglAF3KpijdhFxlf/V1+hEsOUc+HnWi81L/uv/EvGuV90WY+7mPGFCUDGfQC3Gj95Q==", "dev": true }, "node_modules/@types/lodash.isequal": { @@ -1217,9 +1235,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.24", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz", - "integrity": "sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==", + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -1269,21 +1287,19 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.8.0.tgz", - "integrity": "sha512-gFTT+ezJmkwutUPmB0skOj3GZJtlEGnlssems4AjkVweUPGj7jRwwqg0Hhg7++kPGJqKtTYx+R05Ftww372aIg==", + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.9.0.tgz", + "integrity": "sha512-6e+X0X3sFe/G/54aC3jt0txuMTURqLyekmEHViqyA2VnxhLMpvA6nqmcjIy+Cr9tLDHPssA74BP5Mx9HQIxBEA==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.8.0", - "@typescript-eslint/type-utils": "7.8.0", - "@typescript-eslint/utils": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0", - "debug": "^4.3.4", + "@typescript-eslint/scope-manager": "7.9.0", + "@typescript-eslint/type-utils": "7.9.0", + "@typescript-eslint/utils": "7.9.0", + "@typescript-eslint/visitor-keys": "7.9.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", - "semver": "^7.6.0", "ts-api-utils": "^1.3.0" }, "engines": { @@ -1303,160 +1319,16 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.8.0.tgz", - "integrity": "sha512-viEmZ1LmwsGcnr85gIq+FCYI7nO90DVbE37/ll51hjv9aG+YZMb4WDE2fyWpUR4O/UrhGRpYXK/XajcGTk2B8g==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.8.0.tgz", - "integrity": "sha512-wf0peJ+ZGlcH+2ZS23aJbOv+ztjeeP8uQ9GgwMJGVLx/Nj9CJt17GWgWWoSmoRVKAX2X+7fzEnAjxdvK2gqCLw==", - "dev": true, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.8.0.tgz", - "integrity": "sha512-5pfUCOwK5yjPaJQNy44prjCwtr981dO8Qo9J9PwYXZ0MosgAbfEMB008dJ5sNo3+/BN6ytBPuSvXUg9SAqB0dg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.8.0.tgz", - "integrity": "sha512-L0yFqOCflVqXxiZyXrDr80lnahQfSOfc9ELAAZ75sqicqp2i36kEZZGuUymHNFoYOqxRT05up760b4iGsl02nQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.15", - "@types/semver": "^7.5.8", - "@typescript-eslint/scope-manager": "7.8.0", - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/typescript-estree": "7.8.0", - "semver": "^7.6.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.8.0.tgz", - "integrity": "sha512-q4/gibTNBQNA0lGyYQCmWRS5D15n8rXh4QjK3KV+MBPlTYHpfBUT3D3PaPR/HeNiI9W6R7FvlkcGhNyAoP+caA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/@typescript-eslint/parser": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.8.0.tgz", - "integrity": "sha512-KgKQly1pv0l4ltcftP59uQZCi4HUYswCLbTqVZEJu7uLX8CTLyswqMLqLN+2QFz4jCptqWVV4SB7vdxcH2+0kQ==", + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.9.0.tgz", + "integrity": "sha512-qHMJfkL5qvgQB2aLvhUSXxbK7OLnDkwPzFalg458pxQgfxKDfT1ZDbHQM/I6mDIf/svlMkj21kzKuQ2ixJlatQ==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "7.8.0", - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/typescript-estree": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0", + "@typescript-eslint/scope-manager": "7.9.0", + "@typescript-eslint/types": "7.9.0", + "@typescript-eslint/typescript-estree": "7.9.0", + "@typescript-eslint/visitor-keys": "7.9.0", "debug": "^4.3.4" }, "engines": { @@ -1475,136 +1347,17 @@ } } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.8.0.tgz", - "integrity": "sha512-viEmZ1LmwsGcnr85gIq+FCYI7nO90DVbE37/ll51hjv9aG+YZMb4WDE2fyWpUR4O/UrhGRpYXK/XajcGTk2B8g==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.8.0.tgz", - "integrity": "sha512-wf0peJ+ZGlcH+2ZS23aJbOv+ztjeeP8uQ9GgwMJGVLx/Nj9CJt17GWgWWoSmoRVKAX2X+7fzEnAjxdvK2gqCLw==", - "dev": true, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.8.0.tgz", - "integrity": "sha512-5pfUCOwK5yjPaJQNy44prjCwtr981dO8Qo9J9PwYXZ0MosgAbfEMB008dJ5sNo3+/BN6ytBPuSvXUg9SAqB0dg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.8.0.tgz", - "integrity": "sha512-q4/gibTNBQNA0lGyYQCmWRS5D15n8rXh4QjK3KV+MBPlTYHpfBUT3D3PaPR/HeNiI9W6R7FvlkcGhNyAoP+caA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/parser/node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@typescript-eslint/parser/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/parser/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", - "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.9.0.tgz", + "integrity": "sha512-ZwPK4DeCDxr3GJltRz5iZejPFAAr4Wk3+2WIBaj1L5PYK5RgxExu/Y68FFVclN0y6GGwH8q+KgKRCvaTmFBbgQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0" + "@typescript-eslint/types": "7.9.0", + "@typescript-eslint/visitor-keys": "7.9.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -1612,13 +1365,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.8.0.tgz", - "integrity": "sha512-H70R3AefQDQpz9mGv13Uhi121FNMh+WEaRqcXTX09YEDky21km4dV1ZXJIp8QjXc4ZaVkXVdohvWDzbnbHDS+A==", + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.9.0.tgz", + "integrity": "sha512-6Qy8dfut0PFrFRAZsGzuLoM4hre4gjzWJB6sUvdunCYZsYemTkzZNwF1rnGea326PHPT3zn5Lmg32M/xfJfByA==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "7.8.0", - "@typescript-eslint/utils": "7.8.0", + "@typescript-eslint/typescript-estree": "7.9.0", + "@typescript-eslint/utils": "7.9.0", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -1638,27 +1391,10 @@ } } }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.8.0.tgz", - "integrity": "sha512-viEmZ1LmwsGcnr85gIq+FCYI7nO90DVbE37/ll51hjv9aG+YZMb4WDE2fyWpUR4O/UrhGRpYXK/XajcGTk2B8g==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.8.0.tgz", - "integrity": "sha512-wf0peJ+ZGlcH+2ZS23aJbOv+ztjeeP8uQ9GgwMJGVLx/Nj9CJt17GWgWWoSmoRVKAX2X+7fzEnAjxdvK2gqCLw==", + "node_modules/@typescript-eslint/types": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.9.0.tgz", + "integrity": "sha512-oZQD9HEWQanl9UfsbGVcZ2cGaR0YT5476xfWE0oE5kQa2sNK2frxOlkeacLOTh9po4AlUT5rtkGyYM5kew0z5w==", "dev": true, "engines": { "node": "^18.18.0 || >=20.0.0" @@ -1668,14 +1404,14 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.8.0.tgz", - "integrity": "sha512-5pfUCOwK5yjPaJQNy44prjCwtr981dO8Qo9J9PwYXZ0MosgAbfEMB008dJ5sNo3+/BN6ytBPuSvXUg9SAqB0dg==", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.9.0.tgz", + "integrity": "sha512-zBCMCkrb2YjpKV3LA0ZJubtKCDxLttxfdGmwZvTqqWevUPN0FZvSI26FalGFFUZU/9YQK/A4xcQF9o/VVaCKAg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0", + "@typescript-eslint/types": "7.9.0", + "@typescript-eslint/visitor-keys": "7.9.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -1696,133 +1432,6 @@ } } }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.8.0.tgz", - "integrity": "sha512-L0yFqOCflVqXxiZyXrDr80lnahQfSOfc9ELAAZ75sqicqp2i36kEZZGuUymHNFoYOqxRT05up760b4iGsl02nQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.15", - "@types/semver": "^7.5.8", - "@typescript-eslint/scope-manager": "7.8.0", - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/typescript-estree": "7.8.0", - "semver": "^7.6.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.8.0.tgz", - "integrity": "sha512-q4/gibTNBQNA0lGyYQCmWRS5D15n8rXh4QjK3KV+MBPlTYHpfBUT3D3PaPR/HeNiI9W6R7FvlkcGhNyAoP+caA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/type-utils/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz", - "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", - "dev": true, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", - "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/visitor-keys": "6.21.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "9.0.3", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "node_modules/@typescript-eslint/typescript-estree/node_modules/globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", @@ -1853,41 +1462,38 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", - "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.9.0.tgz", + "integrity": "sha512-5KVRQCzZajmT4Ep+NEgjXCvjuypVvYHUW7RHlXzNPuak2oWpVoD1jf5xCP0dPAuNIchjC7uQyvbdaSTFaLqSdA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.12", - "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.21.0", - "@typescript-eslint/types": "6.21.0", - "@typescript-eslint/typescript-estree": "6.21.0", - "semver": "^7.5.4" + "@typescript-eslint/scope-manager": "7.9.0", + "@typescript-eslint/types": "7.9.0", + "@typescript-eslint/typescript-estree": "7.9.0" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^8.56.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", - "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.9.0.tgz", + "integrity": "sha512-iESPx2TNLDNGQLyjKhUvIKprlP49XNEK+MvIf9nIO7ZZaZdbnfWKHnXAgufpxqfA0YryH8XToi4+CjBgVnFTSQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.21.0", - "eslint-visitor-keys": "^3.4.1" + "@typescript-eslint/types": "7.9.0", + "eslint-visitor-keys": "^3.4.3" }, "engines": { - "node": "^16.0.0 || >=18.0.0" + "node": "^18.18.0 || >=20.0.0" }, "funding": { "type": "opencollective", @@ -1895,14 +1501,14 @@ } }, "node_modules/@typespec/compiler": { - "version": "0.55.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.55.0.tgz", - "integrity": "sha512-JxBkP7fTc3yzDYZ+Ms+ZHYlL2Ym22oloLDl6107SGaShNJBdQlabgE0aV8WvYRRBYt8g0RNb+sDLEcjvahj6Gw==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.56.0.tgz", + "integrity": "sha512-K+VhXycoeqcoSGtB0/l1XYco4V2qRsCOOwqklVM4Yew7kTcKVfz7CT7a6a2OKWDMNg5iijZtRBoM5YF50XtQug==", "dev": true, "dependencies": { "@babel/code-frame": "~7.24.2", "ajv": "~8.12.0", - "change-case": "~5.4.3", + "change-case": "~5.4.4", "globby": "~14.0.1", "mustache": "~4.2.0", "picocolors": "~1.0.0", @@ -1919,20 +1525,7 @@ "tsp-server": "cmd/tsp-server.js" }, "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@typespec/compiler/node_modules/@babel/code-frame": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", - "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.24.2", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" + "node": ">=18.0.0" } }, "node_modules/@typespec/compiler/node_modules/prettier": { @@ -1954,6 +1547,7 @@ "version": "0.55.0", "resolved": "https://registry.npmjs.org/@typespec/eslint-config-typespec/-/eslint-config-typespec-0.55.0.tgz", "integrity": "sha512-zZI2ERGdgM9T6neL+Qdht3z89elGI38h68vSYnq5KFR3J500llSJI0Yb5NnE1G2Y7pjmBrnYWhL7UoOaGpW42A==", + "deprecated": "Package is deprecated as it was meant for TypeSpec internal use only", "dev": true, "dependencies": { "@rushstack/eslint-patch": "1.10.1", @@ -1969,9 +1563,9 @@ } }, "node_modules/@typespec/eslint-config-typespec/node_modules/typescript": { - "version": "5.4.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.4.tgz", - "integrity": "sha512-dGE2Vv8cpVvw28v8HCPqyb08EzbBURxDpuhJvTrusShUfGnhHBafDsLdS1EhhxyL6BJQE+2cT3dDPAv+MQ6oLw==", + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -1982,21 +1576,21 @@ } }, "node_modules/@typespec/http": { - "version": "0.55.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.55.0.tgz", - "integrity": "sha512-r30RWzMTJgbyRpdtZxezlvXI/nkAvgilX1OM+s3A039lGLA+JRukgvKIZ3LaNr3lNXHiqeWQDrIZNhqBnpW1zw==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.56.0.tgz", + "integrity": "sha512-f/tpHRWev9bnAtNPFkfCU/5SFou9glA/rPDY0m2W5bK6EG1/6/TKKKz5FoKPA4xvc2dQ5vu/ouGLb4i5UzXvWQ==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.55.0" + "@typespec/compiler": "~0.56.0" } }, "node_modules/@typespec/json-schema": { - "version": "0.55.0", - "resolved": "https://registry.npmjs.org/@typespec/json-schema/-/json-schema-0.55.0.tgz", - "integrity": "sha512-0iVYFzDcXzyzlsmmXfN/1nDr5e1qpGGnHLNtGkS57RL+vuyBh353e/7yLqTdkNeJlTyhM599QtpGL3A15faFBg==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/json-schema/-/json-schema-0.56.0.tgz", + "integrity": "sha512-DHjKvencrFJDu6p2Rdc4aw/ht+slfPnsFee++uq44z8UdMguSx0WDfw4N9I/l7rTkKTLg5LpoRV8MzdihjJNFQ==", "dev": true, "dependencies": { "yaml": "~2.4.1" @@ -2005,38 +1599,38 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.55.0" + "@typespec/compiler": "~0.56.0" } }, "node_modules/@typespec/library-linter": { - "version": "0.55.0", - "resolved": "https://registry.npmjs.org/@typespec/library-linter/-/library-linter-0.55.0.tgz", - "integrity": "sha512-82l2qo9OU4ic/i4zLA88xAyEif88ljxFz7YWE4p0ThazW7isNrxncWWU0eJ+0x0HRXzw8WnKCoGJ8gmAJYS5Yg==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/library-linter/-/library-linter-0.56.0.tgz", + "integrity": "sha512-RwTq6AjvpbdFLFwwsy7Hzb5rh6H3aurOKOxE8dZiJ6Hvx3jSaaYa98IftNo+eDIjneSaM2ZuB+KtXggkebj6IQ==", "dev": true, "engines": { "node": ">=14.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.55.0" + "@typespec/compiler": "~0.56.0" } }, "node_modules/@typespec/openapi": { - "version": "0.55.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.55.0.tgz", - "integrity": "sha512-5T4VuJSOGfMFSs+1dOl3U3BC6VhKAxSTBrwcQDIEEygnqCSbj/tMFDhNfzKYKARRDotgM8ESOrZU6XH5srVR7A==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.56.0.tgz", + "integrity": "sha512-q8+IHRglXBm3slvonRLSNYN2fX7plbWA+ugIiMJZTeyc3enqfxPqMGA8BCiAFV3kwP0uPPpIXbCSIVhHgkONbA==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.55.0", - "@typespec/http": "~0.55.0" + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0" } }, "node_modules/@typespec/openapi3": { - "version": "0.55.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi3/-/openapi3-0.55.0.tgz", - "integrity": "sha512-dfn/wrKSF4Ls1dWMpAguQggoc4HGx2tf3FN2xhBln6EtahNZNgN5sOE+XY0hGPI4MCE5QexMUlXSiXpxzlNA/A==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi3/-/openapi3-0.56.0.tgz", + "integrity": "sha512-55JPUP7dFk4iXn4fNKZEs76j7hAdlWfoMWNPsQPRJCP//KWCtNXfTP+/TTVPVv1L/6HztbXyPV0agKZwyS7gDw==", "dev": true, "dependencies": { "yaml": "~2.4.1" @@ -2045,35 +1639,35 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.55.0", - "@typespec/http": "~0.55.0", - "@typespec/openapi": "~0.55.0", - "@typespec/versioning": "~0.55.0" + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0", + "@typespec/openapi": "~0.56.0", + "@typespec/versioning": "~0.56.0" } }, "node_modules/@typespec/rest": { - "version": "0.55.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.55.0.tgz", - "integrity": "sha512-RPZnx5D4xdTNiP0l++9IA8mUhnegPxetbdJ5RaG/QX2fTyF/gQ7t6AHIgdq8DfYVXqukQI/iGytJ135ObftbtQ==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.56.0.tgz", + "integrity": "sha512-8w4WhWDcpEQNW8bB1BHhiBxIQUChDJtyq/n9p2OI/Bm1wncd61y/ZNOtcxmlKq8uB9d+dzHiZdEfqFCR8HF8/Q==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.55.0", - "@typespec/http": "~0.55.0" + "@typespec/compiler": "~0.56.0", + "@typespec/http": "~0.56.0" } }, "node_modules/@typespec/versioning": { - "version": "0.55.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.55.0.tgz", - "integrity": "sha512-89LTgkA3IBLnaaM4D4qfsrcEU0g3gasE1MmkrQ2HG21fYX88zKbmR1cKWeUxQx9MIXFOH4cPC9KhA/uLknRVMQ==", + "version": "0.56.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.56.0.tgz", + "integrity": "sha512-j7IN9XFyGn3LH6IOJkinEvk9sDncsxiWPULOAe0VQ+D/dtCfLawDMUALnvklMDRKeD1OOUPSCjjUAp9OB0f7YA==", "dev": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.55.0" + "@typespec/compiler": "~0.56.0" } }, "node_modules/@ungap/promise-all-settled": { @@ -2354,12 +1948,15 @@ } }, "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "dev": true, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/body-parser": { @@ -2602,9 +2199,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001594", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001594.tgz", - "integrity": "sha512-VblSX6nYqyJVs8DKFMldE2IVCJjZ225LW00ydtUWwh5hk9IfkTOffO6r8gJNsH0qqqeAF8KrbMYA2VEwTlGW5g==", + "version": "1.0.30001618", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001618.tgz", + "integrity": "sha512-p407+D1tIkDvsEAPS22lJxLQQaG8OTBEqo0KhzfABGk0TU4juBNDSfH0hyAp/HRyx+M8L17z/ltyhxh27FTfQg==", "dev": true, "funding": [ { @@ -2907,12 +2504,12 @@ "dev": true }, "node_modules/core-js-compat": { - "version": "3.36.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.36.0.tgz", - "integrity": "sha512-iV9Pd/PsgjNWBXeq8XRtWVSgz2tKAfhfvBs7qxYty+RlRd+OCksaWmOnc4JKrTc1cToXL1N0s3l/vwlxPtdElw==", + "version": "3.37.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.37.0.tgz", + "integrity": "sha512-vYq4L+T8aS5UuFg4UwDhc7YNRWVeVZwltad9C/jV3R2LgVOpS9BDr7l/WL6BN0dbV3k1XejPTHqqEzJgsa0frA==", "dev": true, "dependencies": { - "browserslist": "^4.22.3" + "browserslist": "^4.23.0" }, "funding": { "type": "opencollective", @@ -3176,9 +2773,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.4.693", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.693.tgz", - "integrity": "sha512-/if4Ueg0GUQlhCrW2ZlXwDAm40ipuKo+OgeHInlL8sbjt+hzISxZK949fZeJaVsheamrzANXvw1zQTvbxTvSHw==", + "version": "1.4.767", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.767.tgz", + "integrity": "sha512-nzzHfmQqBss7CE3apQHkHjXW77+8w3ubGCIoEijKCJebPufREaFETgGXWTkh32t259F3Kcq+R8MZdFdOJROgYw==", "dev": true }, "node_modules/emoji-regex": { @@ -3364,131 +2961,44 @@ "typescript": "^4.2.4 || ^5.0.0" } }, - "node_modules/eslint-plugin-prettier": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz", - "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.8.6" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": "*", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-unicorn": { - "version": "51.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-51.0.1.tgz", - "integrity": "sha512-MuR/+9VuB0fydoI0nIn2RDA5WISRn4AsJyNSaNKLVwie9/ONvQhxOBbkfSICBPnzKrB77Fh6CZZXjgTt/4Latw==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "@eslint-community/eslint-utils": "^4.4.0", - "@eslint/eslintrc": "^2.1.4", - "ci-info": "^4.0.0", - "clean-regexp": "^1.0.0", - "core-js-compat": "^3.34.0", - "esquery": "^1.5.0", - "indent-string": "^4.0.0", - "is-builtin-module": "^3.2.1", - "jsesc": "^3.0.2", - "pluralize": "^8.0.0", - "read-pkg-up": "^7.0.1", - "regexp-tree": "^0.1.27", - "regjsparser": "^0.10.0", - "semver": "^7.5.4", - "strip-indent": "^3.0.0" - }, - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" - }, - "peerDependencies": { - "eslint": ">=8.56.0" - } - }, - "node_modules/eslint-plugin-vitest": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-vitest/-/eslint-plugin-vitest-0.4.1.tgz", - "integrity": "sha512-+PnZ2u/BS+f5FiuHXz4zKsHPcMKHie+K+1Uvu/x91ovkCMEOJqEI8E9Tw1Wzx2QRz4MHOBHYf1ypO8N1K0aNAA==", - "dev": true, - "dependencies": { - "@typescript-eslint/utils": "^7.4.0" - }, - "engines": { - "node": "^18.0.0 || >= 20.0.0" - }, - "peerDependencies": { - "eslint": ">=8.0.0", - "vitest": "*" - }, - "peerDependenciesMeta": { - "@typescript-eslint/eslint-plugin": { - "optional": true - }, - "vitest": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-vitest/node_modules/@typescript-eslint/scope-manager": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.5.0.tgz", - "integrity": "sha512-Z1r7uJY0MDeUlql9XJ6kRVgk/sP11sr3HKXn268HZyqL7i4cEfrdFuSSY/0tUqT37l5zT0tJOsuDP16kio85iA==", + "node_modules/eslint-plugin-deprecation/node_modules/@typescript-eslint/scope-manager": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", + "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "7.5.0", - "@typescript-eslint/visitor-keys": "7.5.0" + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/eslint-plugin-vitest/node_modules/@typescript-eslint/types": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.5.0.tgz", - "integrity": "sha512-tv5B4IHeAdhR7uS4+bf8Ov3k793VEVHd45viRRkehIUZxm0WF82VPiLgHzA/Xl4TGPg1ZD49vfxBKFPecD5/mg==", + "node_modules/eslint-plugin-deprecation/node_modules/@typescript-eslint/types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz", + "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", "dev": true, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/eslint-plugin-vitest/node_modules/@typescript-eslint/typescript-estree": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.5.0.tgz", - "integrity": "sha512-YklQQfe0Rv2PZEueLTUffiQGKQneiIEKKnfIqPIOxgM9lKSZFCjT5Ad4VqRKj/U4+kQE3fa8YQpskViL7WjdPQ==", + "node_modules/eslint-plugin-deprecation/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", + "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "7.5.0", - "@typescript-eslint/visitor-keys": "7.5.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -3497,7 +3007,7 @@ "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -3509,49 +3019,49 @@ } } }, - "node_modules/eslint-plugin-vitest/node_modules/@typescript-eslint/utils": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.5.0.tgz", - "integrity": "sha512-3vZl9u0R+/FLQcpy2EHyRGNqAS/ofJ3Ji8aebilfJe+fobK8+LbIFmrHciLVDxjDoONmufDcnVSF38KwMEOjzw==", + "node_modules/eslint-plugin-deprecation/node_modules/@typescript-eslint/utils": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", + "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "7.5.0", - "@typescript-eslint/types": "7.5.0", - "@typescript-eslint/typescript-estree": "7.5.0", + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/typescript-estree": "6.21.0", "semver": "^7.5.4" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.56.0" + "eslint": "^7.0.0 || ^8.0.0" } }, - "node_modules/eslint-plugin-vitest/node_modules/@typescript-eslint/visitor-keys": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.5.0.tgz", - "integrity": "sha512-mcuHM/QircmA6O7fy6nn2w/3ditQkj+SgtOc8DW3uQ10Yfj42amm2i+6F2K4YAOPNNTmE6iM1ynM6lrSwdendA==", + "node_modules/eslint-plugin-deprecation/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", + "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "7.5.0", + "@typescript-eslint/types": "6.21.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/eslint-plugin-vitest/node_modules/globby": { + "node_modules/eslint-plugin-deprecation/node_modules/globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", @@ -3571,7 +3081,22 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint-plugin-vitest/node_modules/slash": { + "node_modules/eslint-plugin-deprecation/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/eslint-plugin-deprecation/node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", @@ -3580,6 +3105,93 @@ "node": ">=8" } }, + "node_modules/eslint-plugin-prettier": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz", + "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.6" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-unicorn": { + "version": "51.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-51.0.1.tgz", + "integrity": "sha512-MuR/+9VuB0fydoI0nIn2RDA5WISRn4AsJyNSaNKLVwie9/ONvQhxOBbkfSICBPnzKrB77Fh6CZZXjgTt/4Latw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.20", + "@eslint-community/eslint-utils": "^4.4.0", + "@eslint/eslintrc": "^2.1.4", + "ci-info": "^4.0.0", + "clean-regexp": "^1.0.0", + "core-js-compat": "^3.34.0", + "esquery": "^1.5.0", + "indent-string": "^4.0.0", + "is-builtin-module": "^3.2.1", + "jsesc": "^3.0.2", + "pluralize": "^8.0.0", + "read-pkg-up": "^7.0.1", + "regexp-tree": "^0.1.27", + "regjsparser": "^0.10.0", + "semver": "^7.5.4", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" + }, + "peerDependencies": { + "eslint": ">=8.56.0" + } + }, + "node_modules/eslint-plugin-vitest": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-vitest/-/eslint-plugin-vitest-0.4.1.tgz", + "integrity": "sha512-+PnZ2u/BS+f5FiuHXz4zKsHPcMKHie+K+1Uvu/x91ovkCMEOJqEI8E9Tw1Wzx2QRz4MHOBHYf1ypO8N1K0aNAA==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "^7.4.0" + }, + "engines": { + "node": "^18.0.0 || >= 20.0.0" + }, + "peerDependencies": { + "eslint": ">=8.0.0", + "vitest": "*" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + }, + "vitest": { + "optional": true + } + } + }, "node_modules/eslint-scope": { "version": "7.2.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", @@ -3608,6 +3220,15 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/eslint/node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -3683,13 +3304,28 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, "engines": { - "node": ">=10" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -3734,6 +3370,18 @@ "node": ">=8" } }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/espree": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", @@ -4106,9 +3754,9 @@ "dev": true }, "node_modules/follow-redirects": { - "version": "1.15.5", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", - "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "dev": true, "funding": [ { @@ -4320,15 +3968,12 @@ } }, "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "version": "15.2.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.2.0.tgz", + "integrity": "sha512-FQ5YwCHZM3nCmtb5FzEWwdUc9K5d3V/w9mzcz8iGD1gC/aOTHc6PouYu0kkKipNJqHAT7m51sqzQjEjIP+cK0A==", "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -4496,9 +4141,9 @@ } }, "node_modules/hasown": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", - "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, "dependencies": { "function-bind": "^1.1.2" @@ -4860,10 +4505,13 @@ } }, "node_modules/is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", "dev": true, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4933,10 +4581,13 @@ } }, "node_modules/is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", "dev": true, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -5017,22 +4668,28 @@ } }, "node_modules/is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", "dev": true, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz", + "integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" + "call-bind": "^1.0.7", + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -5542,15 +5199,13 @@ } }, "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", + "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==", "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, + "peer": true, "engines": { - "node": ">=10" + "node": "14 || >=16.14" } }, "node_modules/make-dir": { @@ -5663,9 +5318,9 @@ } }, "node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", + "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" @@ -5687,9 +5342,9 @@ } }, "node_modules/minipass": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", - "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.1.tgz", + "integrity": "sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==", "dev": true, "peer": true, "engines": { @@ -6218,17 +5873,17 @@ } }, "node_modules/optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dev": true, "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" }, "engines": { "node": ">= 0.8.0" @@ -6346,9 +6001,9 @@ "dev": true }, "node_modules/path-scurry": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.2.tgz", - "integrity": "sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "dev": true, "peer": true, "dependencies": { @@ -6356,22 +6011,12 @@ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=16 || 14 >=14.18" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", - "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", - "dev": true, - "peer": true, - "engines": { - "node": "14 || >=16.14" - } - }, "node_modules/path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", @@ -6397,9 +6042,9 @@ "dev": true }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", "dev": true }, "node_modules/picomatch": { @@ -6677,15 +6322,6 @@ "node": ">=8" } }, - "node_modules/read-pkg-up/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/read-pkg/node_modules/type-fest": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", @@ -7043,13 +6679,10 @@ "dev": true }, "node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -7127,17 +6760,17 @@ } }, "node_modules/set-function-length": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", - "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", "dev": true, "dependencies": { - "define-data-property": "^1.1.2", + "define-data-property": "^1.1.4", "es-errors": "^1.3.0", "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.3", + "get-intrinsic": "^1.2.4", "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.1" + "has-property-descriptors": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -7708,15 +7341,12 @@ } }, "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, "node_modules/type-is": { @@ -7753,14 +7383,14 @@ } }, "node_modules/typescript-eslint": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-7.8.0.tgz", - "integrity": "sha512-sheFG+/D8N/L7gC3WT0Q8sB97Nm573Yfr+vZFzl/4nBdYcmviBPtwGSX9TJ7wpVg28ocerKVOt+k2eGmHzcgVA==", + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-7.9.0.tgz", + "integrity": "sha512-7iTn9c10teHHCys5Ud/yaJntXZrjt3h2mrx3feJGBOLgQkF3TB1X89Xs3aVQ/GgdXRAXpk2bPTdpRwHP4YkUow==", "dev": true, "dependencies": { - "@typescript-eslint/eslint-plugin": "7.8.0", - "@typescript-eslint/parser": "7.8.0", - "@typescript-eslint/utils": "7.8.0" + "@typescript-eslint/eslint-plugin": "7.9.0", + "@typescript-eslint/parser": "7.9.0", + "@typescript-eslint/utils": "7.9.0" }, "engines": { "node": "^18.18.0 || >=20.0.0" @@ -7778,150 +7408,6 @@ } } }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/scope-manager": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.8.0.tgz", - "integrity": "sha512-viEmZ1LmwsGcnr85gIq+FCYI7nO90DVbE37/ll51hjv9aG+YZMb4WDE2fyWpUR4O/UrhGRpYXK/XajcGTk2B8g==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/types": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.8.0.tgz", - "integrity": "sha512-wf0peJ+ZGlcH+2ZS23aJbOv+ztjeeP8uQ9GgwMJGVLx/Nj9CJt17GWgWWoSmoRVKAX2X+7fzEnAjxdvK2gqCLw==", - "dev": true, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/typescript-estree": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.8.0.tgz", - "integrity": "sha512-5pfUCOwK5yjPaJQNy44prjCwtr981dO8Qo9J9PwYXZ0MosgAbfEMB008dJ5sNo3+/BN6ytBPuSvXUg9SAqB0dg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^1.3.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/utils": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.8.0.tgz", - "integrity": "sha512-L0yFqOCflVqXxiZyXrDr80lnahQfSOfc9ELAAZ75sqicqp2i36kEZZGuUymHNFoYOqxRT05up760b4iGsl02nQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.15", - "@types/semver": "^7.5.8", - "@typescript-eslint/scope-manager": "7.8.0", - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/typescript-estree": "7.8.0", - "semver": "^7.6.0" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.56.0" - } - }, - "node_modules/typescript-eslint/node_modules/@typescript-eslint/visitor-keys": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.8.0.tgz", - "integrity": "sha512-q4/gibTNBQNA0lGyYQCmWRS5D15n8rXh4QjK3KV+MBPlTYHpfBUT3D3PaPR/HeNiI9W6R7FvlkcGhNyAoP+caA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "7.8.0", - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^18.18.0 || >=20.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/typescript-eslint/node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typescript-eslint/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/typescript-eslint/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/underscore": { "version": "1.13.6", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", @@ -7956,9 +7442,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.15.tgz", + "integrity": "sha512-K9HWH62x3/EalU1U6sjSZiylm9C8tgq2mSvshZpqc7QE69RaA2qjhkW2HlNA0tFpEbtyFz7HTqbSdN4MSwUodA==", "dev": true, "funding": [ { @@ -7975,7 +7461,7 @@ } ], "dependencies": { - "escalade": "^3.1.1", + "escalade": "^3.1.2", "picocolors": "^1.0.0" }, "bin": { @@ -8166,31 +7652,34 @@ } }, "node_modules/which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", "dev": true, "dependencies": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/which-typed-array": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.14.tgz", - "integrity": "sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg==", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", + "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", "dev": true, "dependencies": { - "available-typed-arrays": "^1.0.6", - "call-bind": "^1.0.5", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-tostringtag": "^1.0.1" + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -8200,9 +7689,9 @@ } }, "node_modules/winston": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/winston/-/winston-3.12.0.tgz", - "integrity": "sha512-OwbxKaOlESDi01mC9rkM0dQqQt2I8DAUMRLZ/HpbwvDXm85IryEHgoogy5fziQy38PntgZsLlhAYHz//UPHZ5w==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.13.0.tgz", + "integrity": "sha512-rwidmA1w3SE4j0E5MuIufFhyJPBDG7Nu71RkZor1p2+qHvJSZ9GYDA81AyleQcZbh/+V6HjeBdfnTZJm9rSeQQ==", "dev": true, "dependencies": { "@colors/colors": "^1.6.0", @@ -8235,6 +7724,15 @@ "node": ">= 12.0.0" } }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/workerpool": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.0.tgz", @@ -8393,16 +7891,10 @@ "node": ">=10" } }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/yaml": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz", - "integrity": "sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.2.tgz", + "integrity": "sha512-B3VqDZ+JAg1nZpaEmWtTXUlBneoGx6CPM9b0TENK6aoSu5t73dItudwdgmi6tHlIZZId4dZ9skcAQ2UbcyAeVA==", "dev": true, "bin": { "yaml": "bin.mjs" @@ -8475,7 +7967,6 @@ } }, "src/TypeSpec.Extension/Emitter.Csharp": { - "name": "@azure-tools/typespec-csharp", "version": "0.2.0", "dev": true, "license": "MIT", @@ -8485,21 +7976,21 @@ "winston": "^3.8.2" }, "devDependencies": { - "@azure-tools/typespec-azure-core": "0.41.0", - "@azure-tools/typespec-client-generator-core": "0.41.8", + "@azure-tools/typespec-azure-core": "0.42.0", + "@azure-tools/typespec-client-generator-core": "0.42.2", "@eslint/js": "^9.2.0", "@types/lodash.isequal": "^4.5.6", "@types/mocha": "~9.1.0", "@types/node": "~18.13.0", "@types/prettier": "^2.6.3", - "@typespec/compiler": "0.55.0", + "@typespec/compiler": "0.56.0", "@typespec/eslint-config-typespec": "0.55.0", - "@typespec/http": "0.55.0", - "@typespec/json-schema": "0.55.0", - "@typespec/library-linter": "0.55.0", - "@typespec/openapi": "0.55.0", - "@typespec/rest": "0.55.0", - "@typespec/versioning": "0.55.0", + "@typespec/http": "0.56.0", + "@typespec/json-schema": "0.56.0", + "@typespec/library-linter": "0.56.0", + "@typespec/openapi": "0.56.0", + "@typespec/rest": "0.56.0", + "@typespec/versioning": "0.56.0", "c8": "~7.11.0", "eslint": "^8.57.0", "globals": "^15.2.0", @@ -8520,48 +8011,25 @@ "@typespec/versioning": ">=0.50.0 <1.0.0" } }, - "src/TypeSpec.Extension/Emitter.Csharp/node_modules/@eslint/js": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.2.0.tgz", - "integrity": "sha512-ESiIudvhoYni+MdsI8oD7skpprZ89qKocwRM2KEvhhBJ9nl5MRh7BXU5GTod7Mdygq+AUl+QzId6iWJKR/wABA==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, "src/TypeSpec.Extension/Emitter.Csharp/node_modules/@types/node": { "version": "18.13.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", "dev": true }, - "src/TypeSpec.Extension/Emitter.Csharp/node_modules/globals": { - "version": "15.2.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.2.0.tgz", - "integrity": "sha512-FQ5YwCHZM3nCmtb5FzEWwdUc9K5d3V/w9mzcz8iGD1gC/aOTHc6PouYu0kkKipNJqHAT7m51sqzQjEjIP+cK0A==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "test/CadlRanchMockApis": { - "name": "@azure-tools/cadl-ranch-mockapis", "version": "0.0.1", "dev": true, "license": "MIT", "peerDependencies": { - "@azure-tools/cadl-ranch-specs": "0.33.3" + "@azure-tools/cadl-ranch-specs": "0.33.4" } }, "test/UnbrandedProjects": { - "name": "@azure-tools/unbranded-tests", "dev": true, "devDependencies": { - "@typespec/openapi": "0.55.0", - "@typespec/openapi3": "0.55.0" + "@typespec/openapi": "0.56.0", + "@typespec/openapi3": "0.56.0" } } } diff --git a/package.json b/package.json index 76ae906fb83..345040ae621 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "package.json intended for in-repo use only, package.json used for publishing is located in src/AutoRest.CSharp/package.json", "devDependencies": { "@azure-tools/cadl-ranch-mockapis": "file:test/CadlRanchMockApis", - "@azure-tools/typespec-client-generator-core": "0.41.8", + "@azure-tools/typespec-client-generator-core": "0.42.2", "@azure-tools/typespec-csharp": "file:src/TypeSpec.Extension/Emitter.Csharp", "@azure-tools/unbranded-tests": "file:test/UnbrandedProjects", "@microsoft.azure/autorest.testserver": "3.3.48", diff --git a/samples/AnomalyDetector/src/Generated/tspCodeModel.json b/samples/AnomalyDetector/src/Generated/tspCodeModel.json index 00b840e478d..42120d43901 100644 --- a/samples/AnomalyDetector/src/Generated/tspCodeModel.json +++ b/samples/AnomalyDetector/src/Generated/tspCodeModel.json @@ -2102,45 +2102,6 @@ { "$id": "279", "Kind": "Model", - "Name": "ResponseError", - "Namespace": "AnomalyDetector.Multivariate", - "Description": "Error response", - "IsNullable": false, - "Usage": "Output", - "Properties": [ - { - "$id": "280", - "Name": "code", - "SerializedName": "code", - "Description": "The error code.", - "Type": { - "$id": "281", - "Kind": "Primitive", - "Name": "String", - "IsNullable": false - }, - "IsRequired": true, - "IsReadOnly": false - }, - { - "$id": "282", - "Name": "message", - "SerializedName": "message", - "Description": "The message explaining the error reported by the service.", - "Type": { - "$id": "283", - "Kind": "Primitive", - "Name": "String", - "IsNullable": false - }, - "IsRequired": true, - "IsReadOnly": false - } - ] - }, - { - "$id": "284", - "Kind": "Model", "Name": "AnomalyDetectorError", "Namespace": "AnomalyDetector.Univariate", "Description": "Error information returned by the API.", @@ -2148,7 +2109,7 @@ "Usage": "Output", "Properties": [ { - "$id": "285", + "$id": "280", "Name": "code", "SerializedName": "code", "Description": "The error code.", @@ -2159,12 +2120,12 @@ "IsReadOnly": false }, { - "$id": "286", + "$id": "281", "Name": "message", "SerializedName": "message", "Description": "A message explaining the error reported by the service.", "Type": { - "$id": "287", + "$id": "282", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2177,34 +2138,34 @@ ], "Clients": [ { - "$id": "288", + "$id": "283", "Name": "AnomalyDetectorClient", "Description": "", "Operations": [], "Protocol": { - "$id": "289" + "$id": "284" }, "Creatable": true }, { - "$id": "290", + "$id": "285", "Name": "Univariate", "Description": "", "Operations": [ { - "$id": "291", + "$id": "286", "Name": "DetectUnivariateEntireSeries", "ResourceName": "Univariate", "Summary": "Detect anomalies for the entire series in batch.", "Description": "This operation generates a model with an entire series, each point is detected\nwith the same model. With this method, points before and after a certain point\nare used to determine whether it is an anomaly. The entire detection can give\nuser an overall status of the time series.", "Parameters": [ { - "$id": "292", + "$id": "287", "Name": "Endpoint", "NameInRequest": "Endpoint", "Description": "Supported Cognitive Services endpoints (protocol and hostname, for example:\nhttps://westus2.api.cognitive.microsoft.com).", "Type": { - "$id": "293", + "$id": "288", "Kind": "Primitive", "Name": "Uri", "IsNullable": false @@ -2220,7 +2181,7 @@ "Kind": "Client" }, { - "$id": "294", + "$id": "289", "Name": "ApiVersion", "NameInRequest": "ApiVersion", "Description": "Api Version", @@ -2237,9 +2198,9 @@ "Explode": false, "Kind": "Client", "DefaultValue": { - "$id": "295", + "$id": "290", "Type": { - "$id": "296", + "$id": "291", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2248,7 +2209,7 @@ } }, { - "$id": "297", + "$id": "292", "Name": "options", "NameInRequest": "options", "Description": "Method of univariate anomaly detection.", @@ -2266,11 +2227,11 @@ "Kind": "Method" }, { - "$id": "298", + "$id": "293", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "299", + "$id": "294", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2285,19 +2246,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "300", + "$id": "295", "Type": { - "$ref": "299" + "$ref": "294" }, "Value": "application/json" } }, { - "$id": "301", + "$id": "296", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "302", + "$id": "297", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2312,9 +2273,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "303", + "$id": "298", "Type": { - "$ref": "302" + "$ref": "297" }, "Value": "application/json" } @@ -2322,7 +2283,7 @@ ], "Responses": [ { - "$id": "304", + "$id": "299", "StatusCodes": [ 200 ], @@ -2349,20 +2310,20 @@ "GenerateConvenienceMethod": true }, { - "$id": "305", + "$id": "300", "Name": "DetectUnivariateLastPoint", "ResourceName": "Univariate", "Summary": "Detect anomaly status of the latest point in time series.", "Description": "This operation generates a model using the points that you sent into the API,\nand based on all data to determine whether the last point is anomalous.", "Parameters": [ { - "$ref": "292" + "$ref": "287" }, { - "$ref": "294" + "$ref": "289" }, { - "$id": "306", + "$id": "301", "Name": "options", "NameInRequest": "options", "Description": "Method of univariate anomaly detection.", @@ -2380,11 +2341,11 @@ "Kind": "Method" }, { - "$id": "307", + "$id": "302", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "308", + "$id": "303", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2399,19 +2360,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "309", + "$id": "304", "Type": { - "$ref": "308" + "$ref": "303" }, "Value": "application/json" } }, { - "$id": "310", + "$id": "305", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "311", + "$id": "306", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2426,9 +2387,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "312", + "$id": "307", "Type": { - "$ref": "311" + "$ref": "306" }, "Value": "application/json" } @@ -2436,7 +2397,7 @@ ], "Responses": [ { - "$id": "313", + "$id": "308", "StatusCodes": [ 200 ], @@ -2463,20 +2424,20 @@ "GenerateConvenienceMethod": true }, { - "$id": "314", + "$id": "309", "Name": "DetectUnivariateChangePoint", "ResourceName": "Univariate", "Summary": "Detect change point for the entire series", "Description": "Evaluate change point score of every series point", "Parameters": [ { - "$ref": "292" + "$ref": "287" }, { - "$ref": "294" + "$ref": "289" }, { - "$id": "315", + "$id": "310", "Name": "options", "NameInRequest": "options", "Description": "Method of univariate anomaly detection.", @@ -2494,11 +2455,11 @@ "Kind": "Method" }, { - "$id": "316", + "$id": "311", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "317", + "$id": "312", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2513,19 +2474,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "318", + "$id": "313", "Type": { - "$ref": "317" + "$ref": "312" }, "Value": "application/json" } }, { - "$id": "319", + "$id": "314", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "320", + "$id": "315", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2540,9 +2501,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "321", + "$id": "316", "Type": { - "$ref": "320" + "$ref": "315" }, "Value": "application/json" } @@ -2550,7 +2511,7 @@ ], "Responses": [ { - "$id": "322", + "$id": "317", "StatusCodes": [ 200 ], @@ -2578,36 +2539,36 @@ } ], "Protocol": { - "$id": "323" + "$id": "318" }, "Creatable": false, "Parent": "AnomalyDetectorClient" }, { - "$id": "324", + "$id": "319", "Name": "Multivariate", "Description": "", "Operations": [ { - "$id": "325", + "$id": "320", "Name": "GetMultivariateBatchDetectionResult", "ResourceName": "Multivariate", "Summary": "Get Multivariate Anomaly Detection Result", "Description": "For asynchronous inference, get multivariate anomaly detection result based on\nresultId returned by the BatchDetectAnomaly api.", "Parameters": [ { - "$ref": "292" + "$ref": "287" }, { - "$ref": "294" + "$ref": "289" }, { - "$id": "326", + "$id": "321", "Name": "resultId", "NameInRequest": "resultId", "Description": "ID of a batch detection result.", "Type": { - "$id": "327", + "$id": "322", "Kind": "Primitive", "Name": "Guid", "IsNullable": false @@ -2623,11 +2584,11 @@ "Kind": "Method" }, { - "$id": "328", + "$id": "323", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "329", + "$id": "324", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2642,9 +2603,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "330", + "$id": "325", "Type": { - "$ref": "329" + "$ref": "324" }, "Value": "application/json" } @@ -2652,7 +2613,7 @@ ], "Responses": [ { - "$id": "331", + "$id": "326", "StatusCodes": [ 200 ], @@ -2676,20 +2637,20 @@ "GenerateConvenienceMethod": true }, { - "$id": "332", + "$id": "327", "Name": "TrainMultivariateModel", "ResourceName": "Multivariate", "Summary": "Train a Multivariate Anomaly Detection Model", "Description": "Create and train a multivariate anomaly detection model. The request must\ninclude a source parameter to indicate an externally accessible Azure blob\nstorage URI.There are two types of data input: An URI pointed to an Azure blob\nstorage folder which contains multiple CSV files, and each CSV file contains\ntwo columns, timestamp and variable. Another type of input is an URI pointed to\na CSV file in Azure blob storage, which contains all the variables and a\ntimestamp column.", "Parameters": [ { - "$ref": "292" + "$ref": "287" }, { - "$ref": "294" + "$ref": "289" }, { - "$id": "333", + "$id": "328", "Name": "modelInfo", "NameInRequest": "modelInfo", "Description": "Model information.", @@ -2707,11 +2668,11 @@ "Kind": "Method" }, { - "$id": "334", + "$id": "329", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "335", + "$id": "330", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2726,19 +2687,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "336", + "$id": "331", "Type": { - "$ref": "335" + "$ref": "330" }, "Value": "application/json" } }, { - "$id": "337", + "$id": "332", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "338", + "$id": "333", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2753,9 +2714,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "339", + "$id": "334", "Type": { - "$ref": "338" + "$ref": "333" }, "Value": "application/json" } @@ -2763,7 +2724,7 @@ ], "Responses": [ { - "$id": "340", + "$id": "335", "StatusCodes": [ 201 ], @@ -2773,12 +2734,12 @@ "BodyMediaType": "Json", "Headers": [ { - "$id": "341", + "$id": "336", "Name": "location", "NameInResponse": "Location", "Description": "Location and ID of the model.", "Type": { - "$id": "342", + "$id": "337", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2803,25 +2764,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "343", + "$id": "338", "Name": "ListMultivariateModels", "ResourceName": "Multivariate", "Summary": "List Multivariate Models", "Description": "List models of a resource.", "Parameters": [ { - "$ref": "292" + "$ref": "287" }, { - "$ref": "294" + "$ref": "289" }, { - "$id": "344", + "$id": "339", "Name": "skip", "NameInRequest": "skip", "Description": "Skip indicates how many models will be skipped.", "Type": { - "$id": "345", + "$id": "340", "Kind": "Primitive", "Name": "Int32", "IsNullable": false @@ -2837,12 +2798,12 @@ "Kind": "Method" }, { - "$id": "346", + "$id": "341", "Name": "top", "NameInRequest": "top", "Description": "Top indicates how many models will be fetched.", "Type": { - "$id": "347", + "$id": "342", "Kind": "Primitive", "Name": "Int32", "IsNullable": false @@ -2858,11 +2819,11 @@ "Kind": "Method" }, { - "$id": "348", + "$id": "343", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "349", + "$id": "344", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2877,9 +2838,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "350", + "$id": "345", "Type": { - "$ref": "349" + "$ref": "344" }, "Value": "application/json" } @@ -2887,7 +2848,7 @@ ], "Responses": [ { - "$id": "351", + "$id": "346", "StatusCodes": [ 200 ], @@ -2908,7 +2869,7 @@ "Path": "/multivariate/models", "BufferResponse": true, "Paging": { - "$id": "352", + "$id": "347", "NextLinkName": "nextLink", "ItemName": "models" }, @@ -2916,25 +2877,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "353", + "$id": "348", "Name": "DeleteMultivariateModel", "ResourceName": "Multivariate", "Summary": "Delete Multivariate Model", "Description": "Delete an existing multivariate model according to the modelId", "Parameters": [ { - "$ref": "292" + "$ref": "287" }, { - "$ref": "294" + "$ref": "289" }, { - "$id": "354", + "$id": "349", "Name": "modelId", "NameInRequest": "modelId", "Description": "Model identifier.", "Type": { - "$id": "355", + "$id": "350", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2950,11 +2911,11 @@ "Kind": "Method" }, { - "$id": "356", + "$id": "351", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "357", + "$id": "352", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -2969,9 +2930,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "358", + "$id": "353", "Type": { - "$ref": "357" + "$ref": "352" }, "Value": "application/json" } @@ -2979,7 +2940,7 @@ ], "Responses": [ { - "$id": "359", + "$id": "354", "StatusCodes": [ 204 ], @@ -2997,25 +2958,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "360", + "$id": "355", "Name": "GetMultivariateModel", "ResourceName": "Multivariate", "Summary": "Get Multivariate Model", "Description": "Get detailed information of multivariate model, including the training status\nand variables used in the model.", "Parameters": [ { - "$ref": "292" + "$ref": "287" }, { - "$ref": "294" + "$ref": "289" }, { - "$id": "361", + "$id": "356", "Name": "modelId", "NameInRequest": "modelId", "Description": "Model identifier.", "Type": { - "$id": "362", + "$id": "357", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -3031,11 +2992,11 @@ "Kind": "Method" }, { - "$id": "363", + "$id": "358", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "364", + "$id": "359", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -3050,9 +3011,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "365", + "$id": "360", "Type": { - "$ref": "364" + "$ref": "359" }, "Value": "application/json" } @@ -3060,7 +3021,7 @@ ], "Responses": [ { - "$id": "366", + "$id": "361", "StatusCodes": [ 200 ], @@ -3084,25 +3045,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "367", + "$id": "362", "Name": "DetectMultivariateBatchAnomaly", "ResourceName": "Multivariate", "Summary": "Detect Multivariate Anomaly", "Description": "Submit multivariate anomaly detection task with the modelId of trained model\nand inference data, the input schema should be the same with the training\nrequest. The request will complete asynchronously and return a resultId to\nquery the detection result.The request should be a source link to indicate an\nexternally accessible Azure storage Uri, either pointed to an Azure blob\nstorage folder, or pointed to a CSV file in Azure blob storage.", "Parameters": [ { - "$ref": "292" + "$ref": "287" }, { - "$ref": "294" + "$ref": "289" }, { - "$id": "368", + "$id": "363", "Name": "modelId", "NameInRequest": "modelId", "Description": "Model identifier.", "Type": { - "$id": "369", + "$id": "364", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -3118,7 +3079,7 @@ "Kind": "Method" }, { - "$id": "370", + "$id": "365", "Name": "options", "NameInRequest": "options", "Description": "Request of multivariate anomaly detection.", @@ -3136,11 +3097,11 @@ "Kind": "Method" }, { - "$id": "371", + "$id": "366", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "372", + "$id": "367", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -3155,19 +3116,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "373", + "$id": "368", "Type": { - "$ref": "372" + "$ref": "367" }, "Value": "application/json" } }, { - "$id": "374", + "$id": "369", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "375", + "$id": "370", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -3182,9 +3143,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "376", + "$id": "371", "Type": { - "$ref": "375" + "$ref": "370" }, "Value": "application/json" } @@ -3192,7 +3153,7 @@ ], "Responses": [ { - "$id": "377", + "$id": "372", "StatusCodes": [ 202 ], @@ -3202,24 +3163,24 @@ "BodyMediaType": "Json", "Headers": [ { - "$id": "378", + "$id": "373", "Name": "operation-id", "NameInResponse": "Operation-Id", "Description": "Id of the detection result.", "Type": { - "$id": "379", + "$id": "374", "Kind": "Primitive", "Name": "String", "IsNullable": false } }, { - "$id": "380", + "$id": "375", "Name": "operation-location", "NameInResponse": "Operation-Location", "Description": "Location of the detection result.", "Type": { - "$id": "381", + "$id": "376", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -3244,25 +3205,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "382", + "$id": "377", "Name": "DetectMultivariateLastAnomaly", "ResourceName": "Multivariate", "Summary": "Detect anomalies in the last point of the request body", "Description": "Submit multivariate anomaly detection task with the modelId of trained model\nand inference data, and the inference data should be put into request body in a\nJSON format. The request will complete synchronously and return the detection\nimmediately in the response body.", "Parameters": [ { - "$ref": "292" + "$ref": "287" }, { - "$ref": "294" + "$ref": "289" }, { - "$id": "383", + "$id": "378", "Name": "modelId", "NameInRequest": "modelId", "Description": "Model identifier.", "Type": { - "$id": "384", + "$id": "379", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -3278,7 +3239,7 @@ "Kind": "Method" }, { - "$id": "385", + "$id": "380", "Name": "options", "NameInRequest": "options", "Description": "Request of last detection.", @@ -3296,11 +3257,11 @@ "Kind": "Method" }, { - "$id": "386", + "$id": "381", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "387", + "$id": "382", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -3315,19 +3276,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "388", + "$id": "383", "Type": { - "$ref": "387" + "$ref": "382" }, "Value": "application/json" } }, { - "$id": "389", + "$id": "384", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "390", + "$id": "385", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -3342,9 +3303,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "391", + "$id": "386", "Type": { - "$ref": "390" + "$ref": "385" }, "Value": "application/json" } @@ -3352,7 +3313,7 @@ ], "Responses": [ { - "$id": "392", + "$id": "387", "StatusCodes": [ 200 ], @@ -3380,16 +3341,16 @@ } ], "Protocol": { - "$id": "393" + "$id": "388" }, "Creatable": false, "Parent": "AnomalyDetectorClient" } ], "Auth": { - "$id": "394", + "$id": "389", "ApiKey": { - "$id": "395", + "$id": "390", "Name": "Ocp-Apim-Subscription-Key" } } diff --git a/src/TypeSpec.Extension/Emitter.Csharp/package.json b/src/TypeSpec.Extension/Emitter.Csharp/package.json index f9b8e662be3..ddbffccc8aa 100644 --- a/src/TypeSpec.Extension/Emitter.Csharp/package.json +++ b/src/TypeSpec.Extension/Emitter.Csharp/package.json @@ -48,21 +48,21 @@ "@typespec/versioning": ">=0.50.0 <1.0.0" }, "devDependencies": { - "@azure-tools/typespec-azure-core": "0.41.0", - "@azure-tools/typespec-client-generator-core": "0.41.8", + "@azure-tools/typespec-azure-core": "0.42.0", + "@azure-tools/typespec-client-generator-core": "0.42.2", "@eslint/js": "^9.2.0", "@types/lodash.isequal": "^4.5.6", "@types/mocha": "~9.1.0", "@types/node": "~18.13.0", "@types/prettier": "^2.6.3", - "@typespec/compiler": "0.55.0", + "@typespec/compiler": "0.56.0", "@typespec/eslint-config-typespec": "0.55.0", - "@typespec/http": "0.55.0", - "@typespec/json-schema": "0.55.0", - "@typespec/library-linter": "0.55.0", - "@typespec/openapi": "0.55.0", - "@typespec/rest": "0.55.0", - "@typespec/versioning": "0.55.0", + "@typespec/http": "0.56.0", + "@typespec/json-schema": "0.56.0", + "@typespec/library-linter": "0.56.0", + "@typespec/openapi": "0.56.0", + "@typespec/rest": "0.56.0", + "@typespec/versioning": "0.56.0", "c8": "~7.11.0", "eslint": "^8.57.0", "globals": "^15.2.0", diff --git a/src/TypeSpec.Extension/Emitter.Csharp/test/Unit/usage.test.ts b/src/TypeSpec.Extension/Emitter.Csharp/test/Unit/usage.test.ts index 6ca41003805..c61fa45a2df 100644 --- a/src/TypeSpec.Extension/Emitter.Csharp/test/Unit/usage.test.ts +++ b/src/TypeSpec.Extension/Emitter.Csharp/test/Unit/usage.test.ts @@ -254,6 +254,10 @@ describe("Test getUsages", () => { it("Test the usage of body parameter and return type of azure core resource operation.", async () => { const program = await typeSpecCompile( ` + alias ResourceOperations = global.Azure.Core.ResourceOperations; + @doc("This is a model.") @resource("items") model Foo { @@ -267,7 +271,7 @@ describe("Test getUsages", () => { interface FooClient{ @doc("create Foo") - createFoo is ResourceCreateOrUpdate; + createFoo is ResourceOperations.ResourceCreateOrUpdate; } `, runner, diff --git a/test/CadlRanchMockApis/package.json b/test/CadlRanchMockApis/package.json index 1ac7eaae5e4..40aefb431ec 100644 --- a/test/CadlRanchMockApis/package.json +++ b/test/CadlRanchMockApis/package.json @@ -32,6 +32,6 @@ "dist/**" ], "peerDependencies": { - "@azure-tools/cadl-ranch-specs": "0.33.3" + "@azure-tools/cadl-ranch-specs": "0.33.4" } } diff --git a/test/CadlRanchProjects.Tests/type-union.cs b/test/CadlRanchProjects.Tests/type-union.cs index bac87f3b0ff..564298fab3b 100644 --- a/test/CadlRanchProjects.Tests/type-union.cs +++ b/test/CadlRanchProjects.Tests/type-union.cs @@ -21,13 +21,13 @@ public class TypeUnionTests : CadlRanchTestBase { var response = await new UnionClient(host, null).GetStringsOnlyClient().GetStringsOnlyAsync(); Assert.AreEqual(200, response.GetRawResponse().Status); - Assert.AreEqual(GetResponseProp4.B, response.Value.Prop); + Assert.AreEqual(GetResponseProp5.B, response.Value.Prop); }); [Test] public Task SendStringsOnly() => Test(async (host) => { - var response = await new UnionClient(host, null).GetStringsOnlyClient().SendAsync(GetResponseProp4.B); + var response = await new UnionClient(host, null).GetStringsOnlyClient().SendAsync(GetResponseProp5.B); Assert.AreEqual(204, response.Status); }); @@ -36,13 +36,13 @@ public class TypeUnionTests : CadlRanchTestBase { var response = await new UnionClient(host, null).GetStringExtensibleClient().GetStringExtensibleAsync(); Assert.AreEqual(200, response.GetRawResponse().Status); - Assert.AreEqual(new GetResponseProp3("custom"), response.Value.Prop); + Assert.AreEqual(new GetResponseProp4("custom"), response.Value.Prop); }); [Test] public Task SendStringExtensibleOnly() => Test(async (host) => { - var response = await new UnionClient(host, null).GetStringExtensibleClient().SendAsync(new GetResponseProp3("custom")); + var response = await new UnionClient(host, null).GetStringExtensibleClient().SendAsync(new GetResponseProp4("custom")); Assert.AreEqual(204, response.Status); }); @@ -66,13 +66,13 @@ public class TypeUnionTests : CadlRanchTestBase { var response = await new UnionClient(host, null).GetIntsOnlyClient().GetIntsOnlyAsync(); Assert.AreEqual(200, response.GetRawResponse().Status); - Assert.AreEqual(GetResponseProp2._2, response.Value.Prop); + Assert.AreEqual(GetResponseProp3._2, response.Value.Prop); }); [Test] public Task SendIntsOnly() => Test(async (host) => { - var response = await new UnionClient(host, null).GetIntsOnlyClient().SendAsync(GetResponseProp2._2); + var response = await new UnionClient(host, null).GetIntsOnlyClient().SendAsync(GetResponseProp3._2); Assert.AreEqual(204, response.Status); }); diff --git a/test/CadlRanchProjects/type/union/src/Generated/Docs/IntsOnly.xml b/test/CadlRanchProjects/type/union/src/Generated/Docs/IntsOnly.xml index d36c2d43ad1..a0fea234ab8 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Docs/IntsOnly.xml +++ b/test/CadlRanchProjects/type/union/src/Generated/Docs/IntsOnly.xml @@ -73,34 +73,34 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("prop").ToString()); ]]> - + This sample shows how to call SendAsync. This sample shows how to call SendAsync with all parameters. - + This sample shows how to call Send. This sample shows how to call Send with all parameters. diff --git a/test/CadlRanchProjects/type/union/src/Generated/Docs/StringExtensible.xml b/test/CadlRanchProjects/type/union/src/Generated/Docs/StringExtensible.xml index 9378d48b83e..b0978e39774 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Docs/StringExtensible.xml +++ b/test/CadlRanchProjects/type/union/src/Generated/Docs/StringExtensible.xml @@ -73,34 +73,34 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("prop").ToString()); ]]> - + This sample shows how to call SendAsync. This sample shows how to call SendAsync with all parameters. - + This sample shows how to call Send. This sample shows how to call Send with all parameters. diff --git a/test/CadlRanchProjects/type/union/src/Generated/Docs/StringsOnly.xml b/test/CadlRanchProjects/type/union/src/Generated/Docs/StringsOnly.xml index 8b7241bb5c0..54f8cc6564a 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Docs/StringsOnly.xml +++ b/test/CadlRanchProjects/type/union/src/Generated/Docs/StringsOnly.xml @@ -73,34 +73,34 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("prop").ToString()); ]]> - + This sample shows how to call SendAsync. This sample shows how to call SendAsync with all parameters. - + This sample shows how to call Send. This sample shows how to call Send with all parameters. diff --git a/test/CadlRanchProjects/type/union/src/Generated/IntsOnly.cs b/test/CadlRanchProjects/type/union/src/Generated/IntsOnly.cs index 29277076746..9cfe47e9703 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/IntsOnly.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/IntsOnly.cs @@ -138,8 +138,8 @@ public virtual Response GetIntsOnly(RequestContext context) /// Send. /// /// The cancellation token to use. - /// - public virtual async Task SendAsync(GetResponseProp2 prop, CancellationToken cancellationToken = default) + /// + public virtual async Task SendAsync(GetResponseProp3 prop, CancellationToken cancellationToken = default) { SendRequest6 sendRequest6 = new SendRequest6(prop, null); RequestContext context = FromCancellationToken(cancellationToken); @@ -150,8 +150,8 @@ public virtual async Task SendAsync(GetResponseProp2 prop, Cancellatio /// Send. /// /// The cancellation token to use. - /// - public virtual Response Send(GetResponseProp2 prop, CancellationToken cancellationToken = default) + /// + public virtual Response Send(GetResponseProp3 prop, CancellationToken cancellationToken = default) { SendRequest6 sendRequest6 = new SendRequest6(prop, null); RequestContext context = FromCancellationToken(cancellationToken); @@ -169,7 +169,7 @@ public virtual Response Send(GetResponseProp2 prop, CancellationToken cancellati /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// @@ -208,7 +208,7 @@ public virtual async Task SendAsync(RequestContent content, RequestCon /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse6.Serialization.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse6.Serialization.cs index df9f6bc8872..149445cce8e 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse6.Serialization.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse6.Serialization.cs @@ -67,14 +67,14 @@ internal static GetResponse6 DeserializeGetResponse6(JsonElement element, ModelR { return null; } - GetResponseProp2 prop = default; + GetResponseProp3 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = property.Value.GetInt32().ToGetResponseProp2(); + prop = property.Value.GetInt32().ToGetResponseProp3(); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse6.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse6.cs index 50621af7d81..3cfbe6e79c4 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse6.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse6.cs @@ -47,7 +47,7 @@ public partial class GetResponse6 /// Initializes a new instance of . /// - internal GetResponse6(GetResponseProp2 prop) + internal GetResponse6(GetResponseProp3 prop) { Prop = prop; } @@ -55,7 +55,7 @@ internal GetResponse6(GetResponseProp2 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal GetResponse6(GetResponseProp2 prop, IDictionary serializedAdditionalRawData) + internal GetResponse6(GetResponseProp3 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -67,6 +67,6 @@ internal GetResponse6() } /// Gets the prop. - public GetResponseProp2 Prop { get; } + public GetResponseProp3 Prop { get; } } } diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse8.Serialization.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse8.Serialization.cs index 2661c5809f6..f13e043a8a3 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse8.Serialization.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse8.Serialization.cs @@ -67,14 +67,14 @@ internal static GetResponse8 DeserializeGetResponse8(JsonElement element, ModelR { return null; } - GetResponseProp3 prop = default; + GetResponseProp4 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = new GetResponseProp3(property.Value.GetString()); + prop = new GetResponseProp4(property.Value.GetString()); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse8.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse8.cs index e257edcb4b1..6c63077cee5 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse8.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse8.cs @@ -47,7 +47,7 @@ public partial class GetResponse8 /// Initializes a new instance of . /// - internal GetResponse8(GetResponseProp3 prop) + internal GetResponse8(GetResponseProp4 prop) { Prop = prop; } @@ -55,7 +55,7 @@ internal GetResponse8(GetResponseProp3 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal GetResponse8(GetResponseProp3 prop, IDictionary serializedAdditionalRawData) + internal GetResponse8(GetResponseProp4 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -67,6 +67,6 @@ internal GetResponse8() } /// Gets the prop. - public GetResponseProp3 Prop { get; } + public GetResponseProp4 Prop { get; } } } diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse9.Serialization.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse9.Serialization.cs index 2298ef7b2b3..866cf981cb5 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse9.Serialization.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse9.Serialization.cs @@ -67,14 +67,14 @@ internal static GetResponse9 DeserializeGetResponse9(JsonElement element, ModelR { return null; } - GetResponseProp4 prop = default; + GetResponseProp5 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = property.Value.GetString().ToGetResponseProp4(); + prop = property.Value.GetString().ToGetResponseProp5(); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse9.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse9.cs index 7fba92c6f50..765cc17d35e 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse9.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponse9.cs @@ -47,7 +47,7 @@ public partial class GetResponse9 /// Initializes a new instance of . /// - internal GetResponse9(GetResponseProp4 prop) + internal GetResponse9(GetResponseProp5 prop) { Prop = prop; } @@ -55,7 +55,7 @@ internal GetResponse9(GetResponseProp4 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal GetResponse9(GetResponseProp4 prop, IDictionary serializedAdditionalRawData) + internal GetResponse9(GetResponseProp5 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -67,6 +67,6 @@ internal GetResponse9() } /// Gets the prop. - public GetResponseProp4 Prop { get; } + public GetResponseProp5 Prop { get; } } } diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp2.Serialization.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp2.Serialization.cs deleted file mode 100644 index ee00370668f..00000000000 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp2.Serialization.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace _Type.Union.Models -{ - internal static partial class GetResponseProp2Extensions - { - public static GetResponseProp2 ToGetResponseProp2(this int value) - { - if (value == 1) return GetResponseProp2._1; - if (value == 2) return GetResponseProp2._2; - if (value == 3) return GetResponseProp2._3; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp2 value."); - } - } -} diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp2.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp2.cs deleted file mode 100644 index b19f3d0b946..00000000000 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp2.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace _Type.Union.Models -{ - /// The GetResponseProp2. - public enum GetResponseProp2 - { - /// 1. - _1 = 1, - /// 2. - _2 = 2, - /// 3. - _3 = 3 - } -} diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp3.Serialization.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp3.Serialization.cs new file mode 100644 index 00000000000..e6406ab99b3 --- /dev/null +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp3.Serialization.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace _Type.Union.Models +{ + internal static partial class GetResponseProp3Extensions + { + public static GetResponseProp3 ToGetResponseProp3(this int value) + { + if (value == 1) return GetResponseProp3._1; + if (value == 2) return GetResponseProp3._2; + if (value == 3) return GetResponseProp3._3; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp3 value."); + } + } +} diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp3.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp3.cs index 147cbd31f99..72163dae6f9 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp3.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp3.cs @@ -5,47 +5,16 @@ #nullable disable -using System; -using System.ComponentModel; - namespace _Type.Union.Models { /// The GetResponseProp3. - public readonly partial struct GetResponseProp3 : IEquatable + public enum GetResponseProp3 { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public GetResponseProp3(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string BValue = "b"; - private const string CValue = "c"; - - /// b. - public static GetResponseProp3 B { get; } = new GetResponseProp3(BValue); - /// c. - public static GetResponseProp3 C { get; } = new GetResponseProp3(CValue); - /// Determines if two values are the same. - public static bool operator ==(GetResponseProp3 left, GetResponseProp3 right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(GetResponseProp3 left, GetResponseProp3 right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator GetResponseProp3(string value) => new GetResponseProp3(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is GetResponseProp3 other && Equals(other); - /// - public bool Equals(GetResponseProp3 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; + /// 1. + _1 = 1, + /// 2. + _2 = 2, + /// 3. + _3 = 3 } } diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp4.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp4.cs index c709c998bc4..831ad1a6452 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp4.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp4.cs @@ -5,16 +5,47 @@ #nullable disable +using System; +using System.ComponentModel; + namespace _Type.Union.Models { /// The GetResponseProp4. - public enum GetResponseProp4 + public readonly partial struct GetResponseProp4 : IEquatable { - /// a. - A, + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public GetResponseProp4(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string BValue = "b"; + private const string CValue = "c"; + /// b. - B, + public static GetResponseProp4 B { get; } = new GetResponseProp4(BValue); /// c. - C + public static GetResponseProp4 C { get; } = new GetResponseProp4(CValue); + /// Determines if two values are the same. + public static bool operator ==(GetResponseProp4 left, GetResponseProp4 right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(GetResponseProp4 left, GetResponseProp4 right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator GetResponseProp4(string value) => new GetResponseProp4(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is GetResponseProp4 other && Equals(other); + /// + public bool Equals(GetResponseProp4 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; } } diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp4.Serialization.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp5.Serialization.cs similarity index 58% rename from test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp4.Serialization.cs rename to test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp5.Serialization.cs index bf05c53d208..cb9ec3ba226 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp4.Serialization.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp5.Serialization.cs @@ -9,22 +9,22 @@ namespace _Type.Union.Models { - internal static partial class GetResponseProp4Extensions + internal static partial class GetResponseProp5Extensions { - public static string ToSerialString(this GetResponseProp4 value) => value switch + public static string ToSerialString(this GetResponseProp5 value) => value switch { - GetResponseProp4.A => "a", - GetResponseProp4.B => "b", - GetResponseProp4.C => "c", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp4 value.") + GetResponseProp5.A => "a", + GetResponseProp5.B => "b", + GetResponseProp5.C => "c", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp5 value.") }; - public static GetResponseProp4 ToGetResponseProp4(this string value) + public static GetResponseProp5 ToGetResponseProp5(this string value) { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "a")) return GetResponseProp4.A; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "b")) return GetResponseProp4.B; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "c")) return GetResponseProp4.C; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp4 value."); + if (StringComparer.OrdinalIgnoreCase.Equals(value, "a")) return GetResponseProp5.A; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "b")) return GetResponseProp5.B; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "c")) return GetResponseProp5.C; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp5 value."); } } } diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp5.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp5.cs new file mode 100644 index 00000000000..bddab6301a8 --- /dev/null +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/GetResponseProp5.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace _Type.Union.Models +{ + /// The GetResponseProp5. + public enum GetResponseProp5 + { + /// a. + A, + /// b. + B, + /// c. + C + } +} diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest6.Serialization.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest6.Serialization.cs index b873de341fd..85c4ab7edd2 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest6.Serialization.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest6.Serialization.cs @@ -67,14 +67,14 @@ internal static SendRequest6 DeserializeSendRequest6(JsonElement element, ModelR { return null; } - GetResponseProp2 prop = default; + GetResponseProp3 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = property.Value.GetInt32().ToGetResponseProp2(); + prop = property.Value.GetInt32().ToGetResponseProp3(); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest6.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest6.cs index 22163dec509..0fa3dfe562b 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest6.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest6.cs @@ -47,7 +47,7 @@ internal partial class SendRequest6 /// Initializes a new instance of . /// - public SendRequest6(GetResponseProp2 prop) + public SendRequest6(GetResponseProp3 prop) { Prop = prop; } @@ -55,7 +55,7 @@ public SendRequest6(GetResponseProp2 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal SendRequest6(GetResponseProp2 prop, IDictionary serializedAdditionalRawData) + internal SendRequest6(GetResponseProp3 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -67,6 +67,6 @@ internal SendRequest6() } /// Gets the prop. - public GetResponseProp2 Prop { get; } + public GetResponseProp3 Prop { get; } } } diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest8.Serialization.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest8.Serialization.cs index fcf6d96a463..cbb07debd56 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest8.Serialization.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest8.Serialization.cs @@ -67,14 +67,14 @@ internal static SendRequest8 DeserializeSendRequest8(JsonElement element, ModelR { return null; } - GetResponseProp3 prop = default; + GetResponseProp4 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = new GetResponseProp3(property.Value.GetString()); + prop = new GetResponseProp4(property.Value.GetString()); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest8.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest8.cs index c8963c52b67..3191a337b18 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest8.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest8.cs @@ -47,7 +47,7 @@ internal partial class SendRequest8 /// Initializes a new instance of . /// - public SendRequest8(GetResponseProp3 prop) + public SendRequest8(GetResponseProp4 prop) { Prop = prop; } @@ -55,7 +55,7 @@ public SendRequest8(GetResponseProp3 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal SendRequest8(GetResponseProp3 prop, IDictionary serializedAdditionalRawData) + internal SendRequest8(GetResponseProp4 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -67,6 +67,6 @@ internal SendRequest8() } /// Gets the prop. - public GetResponseProp3 Prop { get; } + public GetResponseProp4 Prop { get; } } } diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest9.Serialization.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest9.Serialization.cs index 25d22244a9d..15b5e8c69b7 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest9.Serialization.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest9.Serialization.cs @@ -67,14 +67,14 @@ internal static SendRequest9 DeserializeSendRequest9(JsonElement element, ModelR { return null; } - GetResponseProp4 prop = default; + GetResponseProp5 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = property.Value.GetString().ToGetResponseProp4(); + prop = property.Value.GetString().ToGetResponseProp5(); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest9.cs b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest9.cs index 4df5030bef8..466ee30c8e6 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest9.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/Models/SendRequest9.cs @@ -47,7 +47,7 @@ internal partial class SendRequest9 /// Initializes a new instance of . /// - public SendRequest9(GetResponseProp4 prop) + public SendRequest9(GetResponseProp5 prop) { Prop = prop; } @@ -55,7 +55,7 @@ public SendRequest9(GetResponseProp4 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal SendRequest9(GetResponseProp4 prop, IDictionary serializedAdditionalRawData) + internal SendRequest9(GetResponseProp5 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -67,6 +67,6 @@ internal SendRequest9() } /// Gets the prop. - public GetResponseProp4 Prop { get; } + public GetResponseProp5 Prop { get; } } } diff --git a/test/CadlRanchProjects/type/union/src/Generated/StringExtensible.cs b/test/CadlRanchProjects/type/union/src/Generated/StringExtensible.cs index 0d93e58bf09..6f6c98694f7 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/StringExtensible.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/StringExtensible.cs @@ -138,8 +138,8 @@ public virtual Response GetStringExtensible(RequestContext context) /// Send. /// /// The cancellation token to use. - /// - public virtual async Task SendAsync(GetResponseProp3 prop, CancellationToken cancellationToken = default) + /// + public virtual async Task SendAsync(GetResponseProp4 prop, CancellationToken cancellationToken = default) { SendRequest8 sendRequest8 = new SendRequest8(prop, null); RequestContext context = FromCancellationToken(cancellationToken); @@ -150,8 +150,8 @@ public virtual async Task SendAsync(GetResponseProp3 prop, Cancellatio /// Send. /// /// The cancellation token to use. - /// - public virtual Response Send(GetResponseProp3 prop, CancellationToken cancellationToken = default) + /// + public virtual Response Send(GetResponseProp4 prop, CancellationToken cancellationToken = default) { SendRequest8 sendRequest8 = new SendRequest8(prop, null); RequestContext context = FromCancellationToken(cancellationToken); @@ -169,7 +169,7 @@ public virtual Response Send(GetResponseProp3 prop, CancellationToken cancellati /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// @@ -208,7 +208,7 @@ public virtual async Task SendAsync(RequestContent content, RequestCon /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// diff --git a/test/CadlRanchProjects/type/union/src/Generated/StringsOnly.cs b/test/CadlRanchProjects/type/union/src/Generated/StringsOnly.cs index 528b6247e3b..6565ca32d3d 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/StringsOnly.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/StringsOnly.cs @@ -138,8 +138,8 @@ public virtual Response GetStringsOnly(RequestContext context) /// Send. /// /// The cancellation token to use. - /// - public virtual async Task SendAsync(GetResponseProp4 prop, CancellationToken cancellationToken = default) + /// + public virtual async Task SendAsync(GetResponseProp5 prop, CancellationToken cancellationToken = default) { SendRequest9 sendRequest9 = new SendRequest9(prop, null); RequestContext context = FromCancellationToken(cancellationToken); @@ -150,8 +150,8 @@ public virtual async Task SendAsync(GetResponseProp4 prop, Cancellatio /// Send. /// /// The cancellation token to use. - /// - public virtual Response Send(GetResponseProp4 prop, CancellationToken cancellationToken = default) + /// + public virtual Response Send(GetResponseProp5 prop, CancellationToken cancellationToken = default) { SendRequest9 sendRequest9 = new SendRequest9(prop, null); RequestContext context = FromCancellationToken(cancellationToken); @@ -169,7 +169,7 @@ public virtual Response Send(GetResponseProp4 prop, CancellationToken cancellati /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// @@ -208,7 +208,7 @@ public virtual async Task SendAsync(RequestContent content, RequestCon /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// diff --git a/test/CadlRanchProjects/type/union/src/Generated/TypeUnionModelFactory.cs b/test/CadlRanchProjects/type/union/src/Generated/TypeUnionModelFactory.cs index a31eafb7144..0461adcdd53 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/TypeUnionModelFactory.cs +++ b/test/CadlRanchProjects/type/union/src/Generated/TypeUnionModelFactory.cs @@ -15,7 +15,7 @@ public static partial class TypeUnionModelFactory /// Initializes a new instance of . /// /// A new instance for mocking. - public static GetResponse9 GetResponse9(GetResponseProp4 prop = default) + public static GetResponse9 GetResponse9(GetResponseProp5 prop = default) { return new GetResponse9(prop, serializedAdditionalRawData: null); } @@ -23,7 +23,7 @@ public static GetResponse9 GetResponse9(GetResponseProp4 prop = default) /// Initializes a new instance of . /// /// A new instance for mocking. - public static GetResponse8 GetResponse8(GetResponseProp3 prop = default) + public static GetResponse8 GetResponse8(GetResponseProp4 prop = default) { return new GetResponse8(prop, serializedAdditionalRawData: null); } @@ -39,7 +39,7 @@ public static GetResponse7 GetResponse7(StringExtensibleNamedUnion prop = defaul /// Initializes a new instance of . /// /// A new instance for mocking. - public static GetResponse6 GetResponse6(GetResponseProp2 prop = default) + public static GetResponse6 GetResponse6(GetResponseProp3 prop = default) { return new GetResponse6(prop, serializedAdditionalRawData: null); } diff --git a/test/CadlRanchProjects/type/union/src/Generated/tspCodeModel.json b/test/CadlRanchProjects/type/union/src/Generated/tspCodeModel.json index ac6dc7507d1..3e9ebea82c1 100644 --- a/test/CadlRanchProjects/type/union/src/Generated/tspCodeModel.json +++ b/test/CadlRanchProjects/type/union/src/Generated/tspCodeModel.json @@ -7,7 +7,7 @@ { "$id": "2", "Kind": "Enum", - "Name": "GetResponseProp4", + "Name": "GetResponseProp5", "EnumValueType": "String", "AllowedValues": [ { @@ -34,7 +34,7 @@ { "$id": "6", "Kind": "Enum", - "Name": "GetResponseProp3", + "Name": "GetResponseProp4", "EnumValueType": "String", "AllowedValues": [ { @@ -78,7 +78,7 @@ { "$id": "12", "Kind": "Enum", - "Name": "GetResponseProp2", + "Name": "GetResponseProp3", "EnumValueType": "Int32", "AllowedValues": [ { diff --git a/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_IntsOnly.cs b/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_IntsOnly.cs index f713e95e7fb..7458d191765 100644 --- a/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_IntsOnly.cs +++ b/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_IntsOnly.cs @@ -138,7 +138,7 @@ public void Example_IntsOnly_Send_ShortVersion_Convenience() { IntsOnly client = new UnionClient().GetIntsOnlyClient(); - Response response = client.Send(GetResponseProp2._1); + Response response = client.Send(GetResponseProp3._1); } [Test] @@ -147,7 +147,7 @@ public async Task Example_IntsOnly_Send_ShortVersion_Convenience_Async() { IntsOnly client = new UnionClient().GetIntsOnlyClient(); - Response response = await client.SendAsync(GetResponseProp2._1); + Response response = await client.SendAsync(GetResponseProp3._1); } [Test] @@ -186,7 +186,7 @@ public void Example_IntsOnly_Send_AllParameters_Convenience() { IntsOnly client = new UnionClient().GetIntsOnlyClient(); - Response response = client.Send(GetResponseProp2._1); + Response response = client.Send(GetResponseProp3._1); } [Test] @@ -195,7 +195,7 @@ public async Task Example_IntsOnly_Send_AllParameters_Convenience_Async() { IntsOnly client = new UnionClient().GetIntsOnlyClient(); - Response response = await client.SendAsync(GetResponseProp2._1); + Response response = await client.SendAsync(GetResponseProp3._1); } } } diff --git a/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_StringExtensible.cs b/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_StringExtensible.cs index 34ffb941f2c..17b46cbab25 100644 --- a/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_StringExtensible.cs +++ b/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_StringExtensible.cs @@ -138,7 +138,7 @@ public void Example_StringExtensible_Send_ShortVersion_Convenience() { StringExtensible client = new UnionClient().GetStringExtensibleClient(); - Response response = client.Send(GetResponseProp3.B); + Response response = client.Send(GetResponseProp4.B); } [Test] @@ -147,7 +147,7 @@ public async Task Example_StringExtensible_Send_ShortVersion_Convenience_Async() { StringExtensible client = new UnionClient().GetStringExtensibleClient(); - Response response = await client.SendAsync(GetResponseProp3.B); + Response response = await client.SendAsync(GetResponseProp4.B); } [Test] @@ -186,7 +186,7 @@ public void Example_StringExtensible_Send_AllParameters_Convenience() { StringExtensible client = new UnionClient().GetStringExtensibleClient(); - Response response = client.Send(GetResponseProp3.B); + Response response = client.Send(GetResponseProp4.B); } [Test] @@ -195,7 +195,7 @@ public async Task Example_StringExtensible_Send_AllParameters_Convenience_Async( { StringExtensible client = new UnionClient().GetStringExtensibleClient(); - Response response = await client.SendAsync(GetResponseProp3.B); + Response response = await client.SendAsync(GetResponseProp4.B); } } } diff --git a/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_StringsOnly.cs b/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_StringsOnly.cs index 68ca02f88d2..77647e7cdc3 100644 --- a/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_StringsOnly.cs +++ b/test/CadlRanchProjects/type/union/tests/Generated/Samples/Samples_StringsOnly.cs @@ -138,7 +138,7 @@ public void Example_StringsOnly_Send_ShortVersion_Convenience() { StringsOnly client = new UnionClient().GetStringsOnlyClient(); - Response response = client.Send(GetResponseProp4.A); + Response response = client.Send(GetResponseProp5.A); } [Test] @@ -147,7 +147,7 @@ public async Task Example_StringsOnly_Send_ShortVersion_Convenience_Async() { StringsOnly client = new UnionClient().GetStringsOnlyClient(); - Response response = await client.SendAsync(GetResponseProp4.A); + Response response = await client.SendAsync(GetResponseProp5.A); } [Test] @@ -186,7 +186,7 @@ public void Example_StringsOnly_Send_AllParameters_Convenience() { StringsOnly client = new UnionClient().GetStringsOnlyClient(); - Response response = client.Send(GetResponseProp4.A); + Response response = client.Send(GetResponseProp5.A); } [Test] @@ -195,7 +195,7 @@ public async Task Example_StringsOnly_Send_AllParameters_Convenience_Async() { StringsOnly client = new UnionClient().GetStringsOnlyClient(); - Response response = await client.SendAsync(GetResponseProp4.A); + Response response = await client.SendAsync(GetResponseProp5.A); } } } diff --git a/test/CadlRanchProjectsNonAzure.Tests/type-union.cs b/test/CadlRanchProjectsNonAzure.Tests/type-union.cs index 38e363f7728..bf664986fe4 100644 --- a/test/CadlRanchProjectsNonAzure.Tests/type-union.cs +++ b/test/CadlRanchProjectsNonAzure.Tests/type-union.cs @@ -21,13 +21,13 @@ public class TypeUnionTests : CadlRanchNonAzureTestBase { var response = await new UnionClient(host, null).GetStringsOnlyClient().GetStringsOnlyAsync(); Assert.AreEqual(200, response.GetRawResponse().Status); - Assert.AreEqual(GetResponseProp4.B, response.Value.Prop); + Assert.AreEqual(GetResponseProp5.B, response.Value.Prop); }); [Test] public Task SendStringsOnly() => Test(async (host) => { - var response = await new UnionClient(host, null).GetStringsOnlyClient().SendAsync(GetResponseProp4.B); + var response = await new UnionClient(host, null).GetStringsOnlyClient().SendAsync(GetResponseProp5.B); Assert.AreEqual(204, response.GetRawResponse().Status); }); @@ -36,13 +36,13 @@ public class TypeUnionTests : CadlRanchNonAzureTestBase { var response = await new UnionClient(host, null).GetStringExtensibleClient().GetStringExtensibleAsync(); Assert.AreEqual(200, response.GetRawResponse().Status); - Assert.AreEqual(new GetResponseProp3("custom"), response.Value.Prop); + Assert.AreEqual(new GetResponseProp4("custom"), response.Value.Prop); }); [Test] public Task SendStringExtensibleOnly() => Test(async (host) => { - var response = await new UnionClient(host, null).GetStringExtensibleClient().SendAsync(new GetResponseProp3("custom")); + var response = await new UnionClient(host, null).GetStringExtensibleClient().SendAsync(new GetResponseProp4("custom")); Assert.AreEqual(204, response.GetRawResponse().Status); }); @@ -66,13 +66,13 @@ public class TypeUnionTests : CadlRanchNonAzureTestBase { var response = await new UnionClient(host, null).GetIntsOnlyClient().GetIntsOnlyAsync(); Assert.AreEqual(200, response.GetRawResponse().Status); - Assert.AreEqual(GetResponseProp2._2, response.Value.Prop); + Assert.AreEqual(GetResponseProp3._2, response.Value.Prop); }); [Test] public Task SendIntsOnly() => Test(async (host) => { - var response = await new UnionClient(host, null).GetIntsOnlyClient().SendAsync(GetResponseProp2._2); + var response = await new UnionClient(host, null).GetIntsOnlyClient().SendAsync(GetResponseProp3._2); Assert.AreEqual(204, response.GetRawResponse().Status); }); diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/IntsOnly.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/IntsOnly.cs index 6d076199118..a7f38c74488 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/IntsOnly.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/IntsOnly.cs @@ -99,7 +99,7 @@ public virtual ClientResult GetIntsOnly(RequestOptions options) /// Send. /// - public virtual async Task SendAsync(GetResponseProp2 prop) + public virtual async Task SendAsync(GetResponseProp3 prop) { SendRequest6 sendRequest6 = new SendRequest6(prop, null); ClientResult result = await SendAsync(sendRequest6.ToBinaryContent(), null).ConfigureAwait(false); @@ -108,7 +108,7 @@ public virtual async Task SendAsync(GetResponseProp2 prop) /// Send. /// - public virtual ClientResult Send(GetResponseProp2 prop) + public virtual ClientResult Send(GetResponseProp3 prop) { SendRequest6 sendRequest6 = new SendRequest6(prop, null); ClientResult result = Send(sendRequest6.ToBinaryContent(), null); @@ -125,7 +125,7 @@ public virtual ClientResult Send(GetResponseProp2 prop) /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// @@ -153,7 +153,7 @@ public virtual async Task SendAsync(BinaryContent content, Request /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse6.Serialization.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse6.Serialization.cs index af2ff4ec434..fa3c2a2531d 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse6.Serialization.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse6.Serialization.cs @@ -61,14 +61,14 @@ internal static GetResponse6 DeserializeGetResponse6(JsonElement element, ModelR { return null; } - GetResponseProp2 prop = default; + GetResponseProp3 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = property.Value.GetInt32().ToGetResponseProp2(); + prop = property.Value.GetInt32().ToGetResponseProp3(); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse6.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse6.cs index d846f129da8..56514885a02 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse6.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse6.cs @@ -44,7 +44,7 @@ public partial class GetResponse6 /// Initializes a new instance of . /// - internal GetResponse6(GetResponseProp2 prop) + internal GetResponse6(GetResponseProp3 prop) { Prop = prop; } @@ -52,7 +52,7 @@ internal GetResponse6(GetResponseProp2 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal GetResponse6(GetResponseProp2 prop, IDictionary serializedAdditionalRawData) + internal GetResponse6(GetResponseProp3 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -64,6 +64,6 @@ internal GetResponse6() } /// Gets the prop. - public GetResponseProp2 Prop { get; } + public GetResponseProp3 Prop { get; } } } diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse8.Serialization.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse8.Serialization.cs index f08d0da2eaa..1bf2fd35012 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse8.Serialization.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse8.Serialization.cs @@ -61,14 +61,14 @@ internal static GetResponse8 DeserializeGetResponse8(JsonElement element, ModelR { return null; } - GetResponseProp3 prop = default; + GetResponseProp4 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = new GetResponseProp3(property.Value.GetString()); + prop = new GetResponseProp4(property.Value.GetString()); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse8.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse8.cs index a1f006410ec..cd6cce4a537 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse8.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse8.cs @@ -44,7 +44,7 @@ public partial class GetResponse8 /// Initializes a new instance of . /// - internal GetResponse8(GetResponseProp3 prop) + internal GetResponse8(GetResponseProp4 prop) { Prop = prop; } @@ -52,7 +52,7 @@ internal GetResponse8(GetResponseProp3 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal GetResponse8(GetResponseProp3 prop, IDictionary serializedAdditionalRawData) + internal GetResponse8(GetResponseProp4 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -64,6 +64,6 @@ internal GetResponse8() } /// Gets the prop. - public GetResponseProp3 Prop { get; } + public GetResponseProp4 Prop { get; } } } diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse9.Serialization.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse9.Serialization.cs index 2a04d84ee7d..7811164ee72 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse9.Serialization.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse9.Serialization.cs @@ -61,14 +61,14 @@ internal static GetResponse9 DeserializeGetResponse9(JsonElement element, ModelR { return null; } - GetResponseProp4 prop = default; + GetResponseProp5 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = property.Value.GetString().ToGetResponseProp4(); + prop = property.Value.GetString().ToGetResponseProp5(); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse9.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse9.cs index c2dfaee0825..1a993441c1f 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse9.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponse9.cs @@ -44,7 +44,7 @@ public partial class GetResponse9 /// Initializes a new instance of . /// - internal GetResponse9(GetResponseProp4 prop) + internal GetResponse9(GetResponseProp5 prop) { Prop = prop; } @@ -52,7 +52,7 @@ internal GetResponse9(GetResponseProp4 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal GetResponse9(GetResponseProp4 prop, IDictionary serializedAdditionalRawData) + internal GetResponse9(GetResponseProp5 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -64,6 +64,6 @@ internal GetResponse9() } /// Gets the prop. - public GetResponseProp4 Prop { get; } + public GetResponseProp5 Prop { get; } } } diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp2.Serialization.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp2.Serialization.cs deleted file mode 100644 index 4e24e0ad787..00000000000 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp2.Serialization.cs +++ /dev/null @@ -1,19 +0,0 @@ -// - -#nullable disable - -using System; - -namespace Scm._Type.Union.Models -{ - internal static partial class GetResponseProp2Extensions - { - public static GetResponseProp2 ToGetResponseProp2(this int value) - { - if (value == 1) return GetResponseProp2._1; - if (value == 2) return GetResponseProp2._2; - if (value == 3) return GetResponseProp2._3; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp2 value."); - } - } -} diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp2.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp2.cs deleted file mode 100644 index b92d9da7d88..00000000000 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp2.cs +++ /dev/null @@ -1,17 +0,0 @@ -// - -#nullable disable - -namespace Scm._Type.Union.Models -{ - /// The GetResponseProp2. - public enum GetResponseProp2 - { - /// 1. - _1 = 1, - /// 2. - _2 = 2, - /// 3. - _3 = 3 - } -} diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp3.Serialization.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp3.Serialization.cs new file mode 100644 index 00000000000..b56a0442c32 --- /dev/null +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp3.Serialization.cs @@ -0,0 +1,19 @@ +// + +#nullable disable + +using System; + +namespace Scm._Type.Union.Models +{ + internal static partial class GetResponseProp3Extensions + { + public static GetResponseProp3 ToGetResponseProp3(this int value) + { + if (value == 1) return GetResponseProp3._1; + if (value == 2) return GetResponseProp3._2; + if (value == 3) return GetResponseProp3._3; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp3 value."); + } + } +} diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp3.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp3.cs index c3b6ebf8dbc..97cd2b48a66 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp3.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp3.cs @@ -2,47 +2,16 @@ #nullable disable -using System; -using System.ComponentModel; - namespace Scm._Type.Union.Models { /// The GetResponseProp3. - public readonly partial struct GetResponseProp3 : IEquatable + public enum GetResponseProp3 { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public GetResponseProp3(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string BValue = "b"; - private const string CValue = "c"; - - /// b. - public static GetResponseProp3 B { get; } = new GetResponseProp3(BValue); - /// c. - public static GetResponseProp3 C { get; } = new GetResponseProp3(CValue); - /// Determines if two values are the same. - public static bool operator ==(GetResponseProp3 left, GetResponseProp3 right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(GetResponseProp3 left, GetResponseProp3 right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator GetResponseProp3(string value) => new GetResponseProp3(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is GetResponseProp3 other && Equals(other); - /// - public bool Equals(GetResponseProp3 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; + /// 1. + _1 = 1, + /// 2. + _2 = 2, + /// 3. + _3 = 3 } } diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp4.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp4.cs index 7a486c6e522..603ce59e13a 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp4.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp4.cs @@ -2,16 +2,47 @@ #nullable disable +using System; +using System.ComponentModel; + namespace Scm._Type.Union.Models { /// The GetResponseProp4. - public enum GetResponseProp4 + public readonly partial struct GetResponseProp4 : IEquatable { - /// a. - A, + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public GetResponseProp4(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string BValue = "b"; + private const string CValue = "c"; + /// b. - B, + public static GetResponseProp4 B { get; } = new GetResponseProp4(BValue); /// c. - C + public static GetResponseProp4 C { get; } = new GetResponseProp4(CValue); + /// Determines if two values are the same. + public static bool operator ==(GetResponseProp4 left, GetResponseProp4 right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(GetResponseProp4 left, GetResponseProp4 right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator GetResponseProp4(string value) => new GetResponseProp4(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is GetResponseProp4 other && Equals(other); + /// + public bool Equals(GetResponseProp4 other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; } } diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp4.Serialization.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp5.Serialization.cs similarity index 54% rename from test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp4.Serialization.cs rename to test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp5.Serialization.cs index 0534b14fbea..ee927124c3d 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp4.Serialization.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp5.Serialization.cs @@ -6,22 +6,22 @@ namespace Scm._Type.Union.Models { - internal static partial class GetResponseProp4Extensions + internal static partial class GetResponseProp5Extensions { - public static string ToSerialString(this GetResponseProp4 value) => value switch + public static string ToSerialString(this GetResponseProp5 value) => value switch { - GetResponseProp4.A => "a", - GetResponseProp4.B => "b", - GetResponseProp4.C => "c", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp4 value.") + GetResponseProp5.A => "a", + GetResponseProp5.B => "b", + GetResponseProp5.C => "c", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp5 value.") }; - public static GetResponseProp4 ToGetResponseProp4(this string value) + public static GetResponseProp5 ToGetResponseProp5(this string value) { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "a")) return GetResponseProp4.A; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "b")) return GetResponseProp4.B; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "c")) return GetResponseProp4.C; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp4 value."); + if (StringComparer.OrdinalIgnoreCase.Equals(value, "a")) return GetResponseProp5.A; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "b")) return GetResponseProp5.B; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "c")) return GetResponseProp5.C; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GetResponseProp5 value."); } } } diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp5.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp5.cs new file mode 100644 index 00000000000..833eb94f46f --- /dev/null +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/GetResponseProp5.cs @@ -0,0 +1,17 @@ +// + +#nullable disable + +namespace Scm._Type.Union.Models +{ + /// The GetResponseProp5. + public enum GetResponseProp5 + { + /// a. + A, + /// b. + B, + /// c. + C + } +} diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest6.Serialization.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest6.Serialization.cs index 476849bf919..58277edad25 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest6.Serialization.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest6.Serialization.cs @@ -61,14 +61,14 @@ internal static SendRequest6 DeserializeSendRequest6(JsonElement element, ModelR { return null; } - GetResponseProp2 prop = default; + GetResponseProp3 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = property.Value.GetInt32().ToGetResponseProp2(); + prop = property.Value.GetInt32().ToGetResponseProp3(); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest6.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest6.cs index 998e4aeeb01..16ca897368d 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest6.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest6.cs @@ -44,7 +44,7 @@ internal partial class SendRequest6 /// Initializes a new instance of . /// - public SendRequest6(GetResponseProp2 prop) + public SendRequest6(GetResponseProp3 prop) { Prop = prop; } @@ -52,7 +52,7 @@ public SendRequest6(GetResponseProp2 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal SendRequest6(GetResponseProp2 prop, IDictionary serializedAdditionalRawData) + internal SendRequest6(GetResponseProp3 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -64,6 +64,6 @@ internal SendRequest6() } /// Gets the prop. - public GetResponseProp2 Prop { get; } + public GetResponseProp3 Prop { get; } } } diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest8.Serialization.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest8.Serialization.cs index af535be6733..12cf54ab0e8 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest8.Serialization.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest8.Serialization.cs @@ -61,14 +61,14 @@ internal static SendRequest8 DeserializeSendRequest8(JsonElement element, ModelR { return null; } - GetResponseProp3 prop = default; + GetResponseProp4 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = new GetResponseProp3(property.Value.GetString()); + prop = new GetResponseProp4(property.Value.GetString()); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest8.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest8.cs index 8f11a3a709c..5c979e6d1df 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest8.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest8.cs @@ -44,7 +44,7 @@ internal partial class SendRequest8 /// Initializes a new instance of . /// - public SendRequest8(GetResponseProp3 prop) + public SendRequest8(GetResponseProp4 prop) { Prop = prop; } @@ -52,7 +52,7 @@ public SendRequest8(GetResponseProp3 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal SendRequest8(GetResponseProp3 prop, IDictionary serializedAdditionalRawData) + internal SendRequest8(GetResponseProp4 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -64,6 +64,6 @@ internal SendRequest8() } /// Gets the prop. - public GetResponseProp3 Prop { get; } + public GetResponseProp4 Prop { get; } } } diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest9.Serialization.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest9.Serialization.cs index 24f3dc255c5..a44e5bb709d 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest9.Serialization.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest9.Serialization.cs @@ -61,14 +61,14 @@ internal static SendRequest9 DeserializeSendRequest9(JsonElement element, ModelR { return null; } - GetResponseProp4 prop = default; + GetResponseProp5 prop = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("prop"u8)) { - prop = property.Value.GetString().ToGetResponseProp4(); + prop = property.Value.GetString().ToGetResponseProp5(); continue; } if (options.Format != "W") diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest9.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest9.cs index ca1903231c0..3b2dde59b0f 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest9.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/Models/SendRequest9.cs @@ -44,7 +44,7 @@ internal partial class SendRequest9 /// Initializes a new instance of . /// - public SendRequest9(GetResponseProp4 prop) + public SendRequest9(GetResponseProp5 prop) { Prop = prop; } @@ -52,7 +52,7 @@ public SendRequest9(GetResponseProp4 prop) /// Initializes a new instance of . /// /// Keeps track of any properties unknown to the library. - internal SendRequest9(GetResponseProp4 prop, IDictionary serializedAdditionalRawData) + internal SendRequest9(GetResponseProp5 prop, IDictionary serializedAdditionalRawData) { Prop = prop; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -64,6 +64,6 @@ internal SendRequest9() } /// Gets the prop. - public GetResponseProp4 Prop { get; } + public GetResponseProp5 Prop { get; } } } diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/ScmTypeUnionModelFactory.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/ScmTypeUnionModelFactory.cs index e34d4b7ec86..b0ca30456fa 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/ScmTypeUnionModelFactory.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/ScmTypeUnionModelFactory.cs @@ -12,7 +12,7 @@ public static partial class ScmTypeUnionModelFactory /// Initializes a new instance of . /// /// A new instance for mocking. - public static GetResponse9 GetResponse9(GetResponseProp4 prop = default) + public static GetResponse9 GetResponse9(GetResponseProp5 prop = default) { return new GetResponse9(prop, serializedAdditionalRawData: null); } @@ -20,7 +20,7 @@ public static GetResponse9 GetResponse9(GetResponseProp4 prop = default) /// Initializes a new instance of . /// /// A new instance for mocking. - public static GetResponse8 GetResponse8(GetResponseProp3 prop = default) + public static GetResponse8 GetResponse8(GetResponseProp4 prop = default) { return new GetResponse8(prop, serializedAdditionalRawData: null); } @@ -36,7 +36,7 @@ public static GetResponse7 GetResponse7(StringExtensibleNamedUnion prop = defaul /// Initializes a new instance of . /// /// A new instance for mocking. - public static GetResponse6 GetResponse6(GetResponseProp2 prop = default) + public static GetResponse6 GetResponse6(GetResponseProp3 prop = default) { return new GetResponse6(prop, serializedAdditionalRawData: null); } diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/StringExtensible.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/StringExtensible.cs index 62c42140893..5524a95de16 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/StringExtensible.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/StringExtensible.cs @@ -99,7 +99,7 @@ public virtual ClientResult GetStringExtensible(RequestOptions options) /// Send. /// - public virtual async Task SendAsync(GetResponseProp3 prop) + public virtual async Task SendAsync(GetResponseProp4 prop) { SendRequest8 sendRequest8 = new SendRequest8(prop, null); ClientResult result = await SendAsync(sendRequest8.ToBinaryContent(), null).ConfigureAwait(false); @@ -108,7 +108,7 @@ public virtual async Task SendAsync(GetResponseProp3 prop) /// Send. /// - public virtual ClientResult Send(GetResponseProp3 prop) + public virtual ClientResult Send(GetResponseProp4 prop) { SendRequest8 sendRequest8 = new SendRequest8(prop, null); ClientResult result = Send(sendRequest8.ToBinaryContent(), null); @@ -125,7 +125,7 @@ public virtual ClientResult Send(GetResponseProp3 prop) /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// @@ -153,7 +153,7 @@ public virtual async Task SendAsync(BinaryContent content, Request /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/StringsOnly.cs b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/StringsOnly.cs index 8721b4a9641..e7cd10ac909 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/StringsOnly.cs +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/StringsOnly.cs @@ -99,7 +99,7 @@ public virtual ClientResult GetStringsOnly(RequestOptions options) /// Send. /// - public virtual async Task SendAsync(GetResponseProp4 prop) + public virtual async Task SendAsync(GetResponseProp5 prop) { SendRequest9 sendRequest9 = new SendRequest9(prop, null); ClientResult result = await SendAsync(sendRequest9.ToBinaryContent(), null).ConfigureAwait(false); @@ -108,7 +108,7 @@ public virtual async Task SendAsync(GetResponseProp4 prop) /// Send. /// - public virtual ClientResult Send(GetResponseProp4 prop) + public virtual ClientResult Send(GetResponseProp5 prop) { SendRequest9 sendRequest9 = new SendRequest9(prop, null); ClientResult result = Send(sendRequest9.ToBinaryContent(), null); @@ -125,7 +125,7 @@ public virtual ClientResult Send(GetResponseProp4 prop) /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// @@ -153,7 +153,7 @@ public virtual async Task SendAsync(BinaryContent content, Request /// /// /// - /// Please try the simpler convenience overload with strongly typed models first. + /// Please try the simpler convenience overload with strongly typed models first. /// /// /// diff --git a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/tspCodeModel.json b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/tspCodeModel.json index ac6dc7507d1..3e9ebea82c1 100644 --- a/test/CadlRanchProjectsNonAzure/type/union/src/Generated/tspCodeModel.json +++ b/test/CadlRanchProjectsNonAzure/type/union/src/Generated/tspCodeModel.json @@ -7,7 +7,7 @@ { "$id": "2", "Kind": "Enum", - "Name": "GetResponseProp4", + "Name": "GetResponseProp5", "EnumValueType": "String", "AllowedValues": [ { @@ -34,7 +34,7 @@ { "$id": "6", "Kind": "Enum", - "Name": "GetResponseProp3", + "Name": "GetResponseProp4", "EnumValueType": "String", "AllowedValues": [ { @@ -78,7 +78,7 @@ { "$id": "12", "Kind": "Enum", - "Name": "GetResponseProp2", + "Name": "GetResponseProp3", "EnumValueType": "Int32", "AllowedValues": [ { diff --git a/test/TestProjects/FirstTest-TypeSpec/FirstTest-TypeSpec.tsp b/test/TestProjects/FirstTest-TypeSpec/FirstTest-TypeSpec.tsp index 557876ea952..fa68ab061d4 100644 --- a/test/TestProjects/FirstTest-TypeSpec/FirstTest-TypeSpec.tsp +++ b/test/TestProjects/FirstTest-TypeSpec/FirstTest-TypeSpec.tsp @@ -358,7 +358,7 @@ op projectedNameModel(...ModelWithProjectedName): ModelWithProjectedName; @doc("return anonymous model") @post @convenientAPI(true) -op returnsAnonymousModel(): {}; +op returnsAnonymousModel(): {@body body: {}}; // TODO: https://github.com/Azure/typespec-azure/issues/509 namespace EnumTest { diff --git a/test/TestProjects/NoDocs-TypeSpec/NoDocs-TypeSpec.tsp b/test/TestProjects/NoDocs-TypeSpec/NoDocs-TypeSpec.tsp index 65bcf73ab37..3c13c78be2f 100644 --- a/test/TestProjects/NoDocs-TypeSpec/NoDocs-TypeSpec.tsp +++ b/test/TestProjects/NoDocs-TypeSpec/NoDocs-TypeSpec.tsp @@ -358,7 +358,7 @@ op projectedNameModel(...ModelWithProjectedName): ModelWithProjectedName; @doc("return anonymous model") @post @convenientAPI(true) -op returnsAnonymousModel(): {}; +op returnsAnonymousModel(): {@body body:{}}; // TODO: https://github.com/Azure/typespec-azure/issues/509 namespace EnumTest { diff --git a/test/TestProjects/OldestVersion-TypeSpec/src/Generated/tspCodeModel.json b/test/TestProjects/OldestVersion-TypeSpec/src/Generated/tspCodeModel.json index f369b243abc..975b93beb23 100644 --- a/test/TestProjects/OldestVersion-TypeSpec/src/Generated/tspCodeModel.json +++ b/test/TestProjects/OldestVersion-TypeSpec/src/Generated/tspCodeModel.json @@ -60,16 +60,6 @@ "$id": "9", "Name": "v2022_06_01_preview", "Value": "2022-06-01-preview" - }, - { - "$id": "10", - "Name": "v2022_09_01", - "Value": "2022-09-01" - }, - { - "$id": "11", - "Name": "v2022_12_01_preview", - "Value": "2022-12-01-preview" } ], "Namespace": "TypeSpec.Versioning.Oldest", @@ -80,7 +70,7 @@ ], "Models": [ { - "$id": "12", + "$id": "10", "Kind": "Model", "Name": "ResourceOperationStatusResourceExportedResourceError", "Namespace": "Azure.Core", @@ -89,12 +79,12 @@ "Usage": "Output", "Properties": [ { - "$id": "13", + "$id": "11", "Name": "id", "SerializedName": "id", "Description": "The unique ID of the operation.", "Type": { - "$id": "14", + "$id": "12", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -103,7 +93,7 @@ "IsReadOnly": false }, { - "$id": "15", + "$id": "13", "Name": "status", "SerializedName": "status", "Description": "The status of the operation", @@ -114,12 +104,12 @@ "IsReadOnly": false }, { - "$id": "16", + "$id": "14", "Name": "error", "SerializedName": "error", "Description": "Error object that describes the error when status is \"Failed\".", "Type": { - "$id": "17", + "$id": "15", "Kind": "Model", "Name": "Error", "Namespace": "Azure.Core.Foundations", @@ -128,12 +118,12 @@ "Usage": "Output", "Properties": [ { - "$id": "18", + "$id": "16", "Name": "code", "SerializedName": "code", "Description": "One of a server-defined set of error codes.", "Type": { - "$id": "19", + "$id": "17", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -142,12 +132,12 @@ "IsReadOnly": false }, { - "$id": "20", + "$id": "18", "Name": "message", "SerializedName": "message", "Description": "A human-readable representation of the error.", "Type": { - "$id": "21", + "$id": "19", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -156,12 +146,12 @@ "IsReadOnly": false }, { - "$id": "22", + "$id": "20", "Name": "target", "SerializedName": "target", "Description": "The target of the error.", "Type": { - "$id": "23", + "$id": "21", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -170,16 +160,16 @@ "IsReadOnly": false }, { - "$id": "24", + "$id": "22", "Name": "details", "SerializedName": "details", "Description": "An array of details about specific errors that led to this reported error.", "Type": { - "$id": "25", + "$id": "23", "Kind": "Array", "Name": "Array", "ElementType": { - "$ref": "17" + "$ref": "15" }, "IsNullable": false }, @@ -187,12 +177,12 @@ "IsReadOnly": false }, { - "$id": "26", + "$id": "24", "Name": "innererror", "SerializedName": "innererror", "Description": "An object containing more specific information than the current object about the error.", "Type": { - "$id": "27", + "$id": "25", "Kind": "Model", "Name": "InnerError", "Namespace": "Azure.Core.Foundations", @@ -201,12 +191,12 @@ "Usage": "Output", "Properties": [ { - "$id": "28", + "$id": "26", "Name": "code", "SerializedName": "code", "Description": "One of a server-defined set of error codes.", "Type": { - "$id": "29", + "$id": "27", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -215,12 +205,12 @@ "IsReadOnly": false }, { - "$id": "30", + "$id": "28", "Name": "innererror", "SerializedName": "innererror", "Description": "Inner error.", "Type": { - "$ref": "27" + "$ref": "25" }, "IsRequired": false, "IsReadOnly": false @@ -236,12 +226,12 @@ "IsReadOnly": false }, { - "$id": "31", + "$id": "29", "Name": "result", "SerializedName": "result", "Description": "The result of the operation.", "Type": { - "$id": "32", + "$id": "30", "Kind": "Model", "Name": "ExportedResource", "Namespace": "TypeSpec.Versioning.Oldest", @@ -249,12 +239,12 @@ "Usage": "Output", "Properties": [ { - "$id": "33", + "$id": "31", "Name": "id", "SerializedName": "id", "Description": "", "Type": { - "$id": "34", + "$id": "32", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -263,12 +253,12 @@ "IsReadOnly": false }, { - "$id": "35", + "$id": "33", "Name": "resourceUri", "SerializedName": "resourceUri", "Description": "", "Type": { - "$id": "36", + "$id": "34", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -277,12 +267,12 @@ "IsReadOnly": false }, { - "$id": "37", + "$id": "35", "Name": "name", "SerializedName": "name", "Description": "", "Type": { - "$id": "38", + "$id": "36", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -298,16 +288,16 @@ ] }, { - "$ref": "17" + "$ref": "15" }, { - "$ref": "27" + "$ref": "25" }, { - "$ref": "32" + "$ref": "30" }, { - "$id": "39", + "$id": "37", "Kind": "Model", "Name": "PagedResource", "Namespace": "Azure.Core.Foundations", @@ -316,16 +306,16 @@ "Usage": "Output", "Properties": [ { - "$id": "40", + "$id": "38", "Name": "value", "SerializedName": "value", "Description": "The Resource items on this page", "Type": { - "$id": "41", + "$id": "39", "Kind": "Array", "Name": "Array", "ElementType": { - "$id": "42", + "$id": "40", "Kind": "Model", "Name": "Resource", "Namespace": "TypeSpec.Versioning.Oldest", @@ -333,12 +323,12 @@ "Usage": "RoundTrip", "Properties": [ { - "$id": "43", + "$id": "41", "Name": "id", "SerializedName": "id", "Description": "", "Type": { - "$id": "44", + "$id": "42", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -347,12 +337,12 @@ "IsReadOnly": true }, { - "$id": "45", + "$id": "43", "Name": "name", "SerializedName": "name", "Description": "", "Type": { - "$id": "46", + "$id": "44", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -361,12 +351,12 @@ "IsReadOnly": true }, { - "$id": "47", + "$id": "45", "Name": "type", "SerializedName": "type", "Description": "", "Type": { - "$id": "48", + "$id": "46", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -382,12 +372,12 @@ "IsReadOnly": false }, { - "$id": "49", + "$id": "47", "Name": "nextLink", "SerializedName": "nextLink", "Description": "The link to the next page of items", "Type": { - "$id": "50", + "$id": "48", "Kind": "Primitive", "Name": "Uri", "IsNullable": false @@ -398,58 +388,58 @@ ] }, { - "$ref": "42" + "$ref": "40" } ], "Clients": [ { - "$id": "51", + "$id": "49", "Name": "OldestClient", "Description": "", "Operations": [], "Protocol": { - "$id": "52" + "$id": "50" }, "Creatable": true }, { - "$id": "53", + "$id": "51", "Name": "ResourceOperations", "Description": "", "Operations": [], "Protocol": { - "$id": "54" + "$id": "52" }, "Creatable": false, "Parent": "OldestClient" }, { - "$id": "55", + "$id": "53", "Name": "VersioningOp", "Description": "", "Operations": [ { - "$id": "56", + "$id": "54", "Name": "export", "ResourceName": "VersioningOp", "Description": "Long-running resource action operation template.", "Parameters": [ { - "$id": "57", + "$id": "55", "Name": "apiVersion", "NameInRequest": "api-version", "Description": "The API version to use for this operation.", "Type": { - "$id": "58", + "$id": "56", "Kind": "Primitive", "Name": "String", "IsNullable": false }, "Location": "Query", "DefaultValue": { - "$id": "59", + "$id": "57", "Type": { - "$id": "60", + "$id": "58", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -466,11 +456,11 @@ "Kind": "Client" }, { - "$id": "61", + "$id": "59", "Name": "name", "NameInRequest": "name", "Type": { - "$id": "62", + "$id": "60", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -486,11 +476,11 @@ "Kind": "Method" }, { - "$id": "63", + "$id": "61", "Name": "projectFileVersion", "NameInRequest": "projectFileVersion", "Type": { - "$id": "64", + "$id": "62", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -506,11 +496,11 @@ "Kind": "Method" }, { - "$id": "65", + "$id": "63", "Name": "removedQueryParam", "NameInRequest": "removedQueryParam", "Type": { - "$id": "66", + "$id": "64", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -526,11 +516,11 @@ "Kind": "Method" }, { - "$id": "67", + "$id": "65", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "68", + "$id": "66", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -545,9 +535,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "69", + "$id": "67", "Type": { - "$ref": "68" + "$ref": "66" }, "Value": "application/json" } @@ -555,22 +545,22 @@ ], "Responses": [ { - "$id": "70", + "$id": "68", "StatusCodes": [ 202 ], "BodyType": { - "$ref": "12" + "$ref": "10" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "71", + "$id": "69", "Name": "Operation-Location", "NameInResponse": "operationLocation", "Description": "The location for monitoring the operation state.", "Type": { - "$id": "72", + "$id": "70", "Kind": "Primitive", "Name": "Uri", "IsNullable": false @@ -589,15 +579,15 @@ "Path": "/versioning/resources/{name}:export", "BufferResponse": true, "LongRunning": { - "$id": "73", + "$id": "71", "FinalStateVia": 3, "FinalResponse": { - "$id": "74", + "$id": "72", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "12" + "$ref": "10" }, "BodyMediaType": "Json" }, @@ -607,25 +597,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "75", + "$id": "73", "Name": "list", "ResourceName": "Resource", "Description": "Resource list operation template.", "Parameters": [ { - "$id": "76", + "$id": "74", "Name": "apiVersion", "NameInRequest": "api-version", "Description": "The API version to use for this operation.", "Type": { - "$id": "77", + "$id": "75", "Kind": "Primitive", "Name": "String", "IsNullable": false }, "Location": "Query", "DefaultValue": { - "$ref": "59" + "$ref": "57" }, "IsRequired": true, "IsApiVersion": true, @@ -637,16 +627,16 @@ "Kind": "Client" }, { - "$id": "78", + "$id": "76", "Name": "select", "NameInRequest": "select", "Description": "Select the specified fields to be included in the response.", "Type": { - "$id": "79", + "$id": "77", "Kind": "Array", "Name": "Array", "ElementType": { - "$id": "80", + "$id": "78", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -664,11 +654,11 @@ "Kind": "Method" }, { - "$id": "81", + "$id": "79", "Name": "expand", "NameInRequest": "expand", "Type": { - "$id": "82", + "$id": "80", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -684,11 +674,11 @@ "Kind": "Method" }, { - "$id": "83", + "$id": "81", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "84", + "$id": "82", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -703,9 +693,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "85", + "$id": "83", "Type": { - "$ref": "84" + "$ref": "82" }, "Value": "application/json" } @@ -713,12 +703,12 @@ ], "Responses": [ { - "$id": "86", + "$id": "84", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "39" + "$ref": "37" }, "BodyMediaType": "Json", "Headers": [], @@ -734,7 +724,7 @@ "Path": "/versioning/resources", "BufferResponse": true, "Paging": { - "$id": "87", + "$id": "85", "NextLinkName": "nextLink", "ItemName": "value" }, @@ -742,25 +732,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "88", + "$id": "86", "Name": "create", "ResourceName": "Resource", "Description": "Create or replace operation template.", "Parameters": [ { - "$id": "89", + "$id": "87", "Name": "apiVersion", "NameInRequest": "api-version", "Description": "The API version to use for this operation.", "Type": { - "$id": "90", + "$id": "88", "Kind": "Primitive", "Name": "String", "IsNullable": false }, "Location": "Query", "DefaultValue": { - "$ref": "59" + "$ref": "57" }, "IsRequired": true, "IsApiVersion": true, @@ -772,11 +762,11 @@ "Kind": "Client" }, { - "$id": "91", + "$id": "89", "Name": "name", "NameInRequest": "name", "Type": { - "$id": "92", + "$id": "90", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -792,12 +782,12 @@ "Kind": "Method" }, { - "$id": "93", + "$id": "91", "Name": "resource", "NameInRequest": "resource", "Description": "The resource instance.", "Type": { - "$ref": "42" + "$ref": "40" }, "Location": "Body", "IsRequired": true, @@ -810,11 +800,11 @@ "Kind": "Method" }, { - "$id": "94", + "$id": "92", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "95", + "$id": "93", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -829,19 +819,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "96", + "$id": "94", "Type": { - "$ref": "95" + "$ref": "93" }, "Value": "application/json" } }, { - "$id": "97", + "$id": "95", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "98", + "$id": "96", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -856,9 +846,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "99", + "$id": "97", "Type": { - "$ref": "98" + "$ref": "96" }, "Value": "application/json" } @@ -866,12 +856,12 @@ ], "Responses": [ { - "$id": "100", + "$id": "98", "StatusCodes": [ 201 ], "BodyType": { - "$ref": "42" + "$ref": "40" }, "BodyMediaType": "Json", "Headers": [], @@ -881,12 +871,12 @@ ] }, { - "$id": "101", + "$id": "99", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "42" + "$ref": "40" }, "BodyMediaType": "Json", "Headers": [], @@ -909,7 +899,7 @@ } ], "Protocol": { - "$id": "102" + "$id": "100" }, "Creatable": false, "Parent": "OldestClient" diff --git a/test/TestProjects/SpecificVersion-TypeSpec/src/Generated/tspCodeModel.json b/test/TestProjects/SpecificVersion-TypeSpec/src/Generated/tspCodeModel.json index 4b38e8047f3..81068db40b8 100644 --- a/test/TestProjects/SpecificVersion-TypeSpec/src/Generated/tspCodeModel.json +++ b/test/TestProjects/SpecificVersion-TypeSpec/src/Generated/tspCodeModel.json @@ -65,11 +65,6 @@ "$id": "10", "Name": "v2022_09_01", "Value": "2022-09-01" - }, - { - "$id": "11", - "Name": "v2022_12_01_preview", - "Value": "2022-12-01-preview" } ], "Namespace": "TypeSpec.Versioning.Specific", @@ -80,7 +75,7 @@ ], "Models": [ { - "$id": "12", + "$id": "11", "Kind": "Model", "Name": "ResourceOperationStatusResourceExportedResourceError", "Namespace": "Azure.Core", @@ -89,12 +84,12 @@ "Usage": "Output", "Properties": [ { - "$id": "13", + "$id": "12", "Name": "id", "SerializedName": "id", "Description": "The unique ID of the operation.", "Type": { - "$id": "14", + "$id": "13", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -103,7 +98,7 @@ "IsReadOnly": false }, { - "$id": "15", + "$id": "14", "Name": "status", "SerializedName": "status", "Description": "The status of the operation", @@ -114,12 +109,12 @@ "IsReadOnly": false }, { - "$id": "16", + "$id": "15", "Name": "error", "SerializedName": "error", "Description": "Error object that describes the error when status is \"Failed\".", "Type": { - "$id": "17", + "$id": "16", "Kind": "Model", "Name": "Error", "Namespace": "Azure.Core.Foundations", @@ -128,12 +123,12 @@ "Usage": "Output", "Properties": [ { - "$id": "18", + "$id": "17", "Name": "code", "SerializedName": "code", "Description": "One of a server-defined set of error codes.", "Type": { - "$id": "19", + "$id": "18", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -142,12 +137,12 @@ "IsReadOnly": false }, { - "$id": "20", + "$id": "19", "Name": "message", "SerializedName": "message", "Description": "A human-readable representation of the error.", "Type": { - "$id": "21", + "$id": "20", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -156,12 +151,12 @@ "IsReadOnly": false }, { - "$id": "22", + "$id": "21", "Name": "target", "SerializedName": "target", "Description": "The target of the error.", "Type": { - "$id": "23", + "$id": "22", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -170,16 +165,16 @@ "IsReadOnly": false }, { - "$id": "24", + "$id": "23", "Name": "details", "SerializedName": "details", "Description": "An array of details about specific errors that led to this reported error.", "Type": { - "$id": "25", + "$id": "24", "Kind": "Array", "Name": "Array", "ElementType": { - "$ref": "17" + "$ref": "16" }, "IsNullable": false }, @@ -187,12 +182,12 @@ "IsReadOnly": false }, { - "$id": "26", + "$id": "25", "Name": "innererror", "SerializedName": "innererror", "Description": "An object containing more specific information than the current object about the error.", "Type": { - "$id": "27", + "$id": "26", "Kind": "Model", "Name": "InnerError", "Namespace": "Azure.Core.Foundations", @@ -201,12 +196,12 @@ "Usage": "Output", "Properties": [ { - "$id": "28", + "$id": "27", "Name": "code", "SerializedName": "code", "Description": "One of a server-defined set of error codes.", "Type": { - "$id": "29", + "$id": "28", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -215,12 +210,12 @@ "IsReadOnly": false }, { - "$id": "30", + "$id": "29", "Name": "innererror", "SerializedName": "innererror", "Description": "Inner error.", "Type": { - "$ref": "27" + "$ref": "26" }, "IsRequired": false, "IsReadOnly": false @@ -236,12 +231,12 @@ "IsReadOnly": false }, { - "$id": "31", + "$id": "30", "Name": "result", "SerializedName": "result", "Description": "The result of the operation.", "Type": { - "$id": "32", + "$id": "31", "Kind": "Model", "Name": "ExportedResource", "Namespace": "TypeSpec.Versioning.Specific", @@ -249,12 +244,12 @@ "Usage": "Output", "Properties": [ { - "$id": "33", + "$id": "32", "Name": "id", "SerializedName": "id", "Description": "", "Type": { - "$id": "34", + "$id": "33", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -263,12 +258,12 @@ "IsReadOnly": false }, { - "$id": "35", + "$id": "34", "Name": "resourceUri", "SerializedName": "resourceUri", "Description": "", "Type": { - "$id": "36", + "$id": "35", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -284,16 +279,16 @@ ] }, { - "$ref": "17" + "$ref": "16" }, { - "$ref": "27" + "$ref": "26" }, { - "$ref": "32" + "$ref": "31" }, { - "$id": "37", + "$id": "36", "Kind": "Model", "Name": "PagedResource", "Namespace": "Azure.Core.Foundations", @@ -302,16 +297,16 @@ "Usage": "Output", "Properties": [ { - "$id": "38", + "$id": "37", "Name": "value", "SerializedName": "value", "Description": "The Resource items on this page", "Type": { - "$id": "39", + "$id": "38", "Kind": "Array", "Name": "Array", "ElementType": { - "$id": "40", + "$id": "39", "Kind": "Model", "Name": "Resource", "Namespace": "TypeSpec.Versioning.Specific", @@ -319,12 +314,12 @@ "Usage": "RoundTrip", "Properties": [ { - "$id": "41", + "$id": "40", "Name": "id", "SerializedName": "id", "Description": "", "Type": { - "$id": "42", + "$id": "41", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -333,12 +328,12 @@ "IsReadOnly": true }, { - "$id": "43", + "$id": "42", "Name": "name", "SerializedName": "name", "Description": "", "Type": { - "$id": "44", + "$id": "43", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -347,12 +342,12 @@ "IsReadOnly": true }, { - "$id": "45", + "$id": "44", "Name": "type", "SerializedName": "type", "Description": "", "Type": { - "$id": "46", + "$id": "45", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -368,12 +363,12 @@ "IsReadOnly": false }, { - "$id": "47", + "$id": "46", "Name": "nextLink", "SerializedName": "nextLink", "Description": "The link to the next page of items", "Type": { - "$id": "48", + "$id": "47", "Kind": "Primitive", "Name": "Uri", "IsNullable": false @@ -384,58 +379,58 @@ ] }, { - "$ref": "40" + "$ref": "39" } ], "Clients": [ { - "$id": "49", + "$id": "48", "Name": "SpecificClient", "Description": "", "Operations": [], "Protocol": { - "$id": "50" + "$id": "49" }, "Creatable": true }, { - "$id": "51", + "$id": "50", "Name": "ResourceOperations", "Description": "", "Operations": [], "Protocol": { - "$id": "52" + "$id": "51" }, "Creatable": false, "Parent": "SpecificClient" }, { - "$id": "53", + "$id": "52", "Name": "VersioningOp", "Description": "", "Operations": [ { - "$id": "54", + "$id": "53", "Name": "export", "ResourceName": "VersioningOp", "Description": "Long-running resource action operation template.", "Parameters": [ { - "$id": "55", + "$id": "54", "Name": "apiVersion", "NameInRequest": "api-version", "Description": "The API version to use for this operation.", "Type": { - "$id": "56", + "$id": "55", "Kind": "Primitive", "Name": "String", "IsNullable": false }, "Location": "Query", "DefaultValue": { - "$id": "57", + "$id": "56", "Type": { - "$id": "58", + "$id": "57", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -452,11 +447,11 @@ "Kind": "Client" }, { - "$id": "59", + "$id": "58", "Name": "name", "NameInRequest": "name", "Type": { - "$id": "60", + "$id": "59", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -472,11 +467,11 @@ "Kind": "Method" }, { - "$id": "61", + "$id": "60", "Name": "projectFileVersion", "NameInRequest": "projectFileVersion", "Type": { - "$id": "62", + "$id": "61", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -492,11 +487,11 @@ "Kind": "Method" }, { - "$id": "63", + "$id": "62", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "64", + "$id": "63", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -511,9 +506,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "65", + "$id": "64", "Type": { - "$ref": "64" + "$ref": "63" }, "Value": "application/json" } @@ -521,22 +516,22 @@ ], "Responses": [ { - "$id": "66", + "$id": "65", "StatusCodes": [ 202 ], "BodyType": { - "$ref": "12" + "$ref": "11" }, "BodyMediaType": "Json", "Headers": [ { - "$id": "67", + "$id": "66", "Name": "Operation-Location", "NameInResponse": "operationLocation", "Description": "The location for monitoring the operation state.", "Type": { - "$id": "68", + "$id": "67", "Kind": "Primitive", "Name": "Uri", "IsNullable": false @@ -555,15 +550,15 @@ "Path": "/versioning/resources/{name}:export", "BufferResponse": true, "LongRunning": { - "$id": "69", + "$id": "68", "FinalStateVia": 3, "FinalResponse": { - "$id": "70", + "$id": "69", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "12" + "$ref": "11" }, "BodyMediaType": "Json" }, @@ -573,25 +568,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "71", + "$id": "70", "Name": "list", "ResourceName": "Resource", "Description": "Resource list operation template.", "Parameters": [ { - "$id": "72", + "$id": "71", "Name": "apiVersion", "NameInRequest": "api-version", "Description": "The API version to use for this operation.", "Type": { - "$id": "73", + "$id": "72", "Kind": "Primitive", "Name": "String", "IsNullable": false }, "Location": "Query", "DefaultValue": { - "$ref": "57" + "$ref": "56" }, "IsRequired": true, "IsApiVersion": true, @@ -603,16 +598,16 @@ "Kind": "Client" }, { - "$id": "74", + "$id": "73", "Name": "select", "NameInRequest": "select", "Description": "Select the specified fields to be included in the response.", "Type": { - "$id": "75", + "$id": "74", "Kind": "Array", "Name": "Array", "ElementType": { - "$id": "76", + "$id": "75", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -630,11 +625,11 @@ "Kind": "Method" }, { - "$id": "77", + "$id": "76", "Name": "expand", "NameInRequest": "expand", "Type": { - "$id": "78", + "$id": "77", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -650,11 +645,11 @@ "Kind": "Method" }, { - "$id": "79", + "$id": "78", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "80", + "$id": "79", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -669,9 +664,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "81", + "$id": "80", "Type": { - "$ref": "80" + "$ref": "79" }, "Value": "application/json" } @@ -679,12 +674,12 @@ ], "Responses": [ { - "$id": "82", + "$id": "81", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "37" + "$ref": "36" }, "BodyMediaType": "Json", "Headers": [], @@ -700,7 +695,7 @@ "Path": "/versioning/resources", "BufferResponse": true, "Paging": { - "$id": "83", + "$id": "82", "NextLinkName": "nextLink", "ItemName": "value" }, @@ -708,25 +703,25 @@ "GenerateConvenienceMethod": true }, { - "$id": "84", + "$id": "83", "Name": "create", "ResourceName": "Resource", "Description": "Create or replace operation template.", "Parameters": [ { - "$id": "85", + "$id": "84", "Name": "apiVersion", "NameInRequest": "api-version", "Description": "The API version to use for this operation.", "Type": { - "$id": "86", + "$id": "85", "Kind": "Primitive", "Name": "String", "IsNullable": false }, "Location": "Query", "DefaultValue": { - "$ref": "57" + "$ref": "56" }, "IsRequired": true, "IsApiVersion": true, @@ -738,11 +733,11 @@ "Kind": "Client" }, { - "$id": "87", + "$id": "86", "Name": "name", "NameInRequest": "name", "Type": { - "$id": "88", + "$id": "87", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -758,12 +753,12 @@ "Kind": "Method" }, { - "$id": "89", + "$id": "88", "Name": "resource", "NameInRequest": "resource", "Description": "The resource instance.", "Type": { - "$ref": "40" + "$ref": "39" }, "Location": "Body", "IsRequired": true, @@ -776,11 +771,11 @@ "Kind": "Method" }, { - "$id": "90", + "$id": "89", "Name": "accept", "NameInRequest": "Accept", "Type": { - "$id": "91", + "$id": "90", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -795,19 +790,19 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "92", + "$id": "91", "Type": { - "$ref": "91" + "$ref": "90" }, "Value": "application/json" } }, { - "$id": "93", + "$id": "92", "Name": "contentType", "NameInRequest": "Content-Type", "Type": { - "$id": "94", + "$id": "93", "Kind": "Primitive", "Name": "String", "IsNullable": false @@ -822,9 +817,9 @@ "Explode": false, "Kind": "Constant", "DefaultValue": { - "$id": "95", + "$id": "94", "Type": { - "$ref": "94" + "$ref": "93" }, "Value": "application/json" } @@ -832,12 +827,12 @@ ], "Responses": [ { - "$id": "96", + "$id": "95", "StatusCodes": [ 201 ], "BodyType": { - "$ref": "40" + "$ref": "39" }, "BodyMediaType": "Json", "Headers": [], @@ -847,12 +842,12 @@ ] }, { - "$id": "97", + "$id": "96", "StatusCodes": [ 200 ], "BodyType": { - "$ref": "40" + "$ref": "39" }, "BodyMediaType": "Json", "Headers": [], @@ -875,7 +870,7 @@ } ], "Protocol": { - "$id": "98" + "$id": "97" }, "Creatable": false, "Parent": "SpecificClient" diff --git a/test/UnbrandedProjects/Customized-TypeSpec/Customized-TypeSpec.tsp b/test/UnbrandedProjects/Customized-TypeSpec/Customized-TypeSpec.tsp index e1d7da62bf0..1164337bed3 100644 --- a/test/UnbrandedProjects/Customized-TypeSpec/Customized-TypeSpec.tsp +++ b/test/UnbrandedProjects/Customized-TypeSpec/Customized-TypeSpec.tsp @@ -277,7 +277,7 @@ op projectedNameModel(...ModelWithProjectedName): ModelWithProjectedName; @doc("return anonymous model") @post @convenientAPI(true) -op returnsAnonymousModel(): {}; +op returnsAnonymousModel(): {@body body:{}}; @get @route("/unknown-value") diff --git a/test/UnbrandedProjects/Unbranded-TypeSpec/Unbranded-TypeSpec.tsp b/test/UnbrandedProjects/Unbranded-TypeSpec/Unbranded-TypeSpec.tsp index 48709476beb..d1645492e1a 100644 --- a/test/UnbrandedProjects/Unbranded-TypeSpec/Unbranded-TypeSpec.tsp +++ b/test/UnbrandedProjects/Unbranded-TypeSpec/Unbranded-TypeSpec.tsp @@ -325,7 +325,7 @@ op projectedNameModel(...ModelWithProjectedName): ModelWithProjectedName; @doc("return anonymous model") @post @convenientAPI(true) -op returnsAnonymousModel(): {}; +op returnsAnonymousModel(): {@body body:{}}; // TODO: https://github.com/Azure/typespec-azure/issues/509 @put diff --git a/test/UnbrandedProjects/package.json b/test/UnbrandedProjects/package.json index b936059bf63..8406124f0e9 100644 --- a/test/UnbrandedProjects/package.json +++ b/test/UnbrandedProjects/package.json @@ -3,8 +3,8 @@ "private": true, "description": "Preserve the dependencies for unbranded tests.", "devDependencies": { - "@typespec/openapi": "0.55.0", - "@typespec/openapi3": "0.55.0" + "@typespec/openapi": "0.56.0", + "@typespec/openapi3": "0.56.0" } } \ No newline at end of file