diff --git a/package-lock.json b/package-lock.json index 4ff3c2f2b07d..08a8fa548390 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "@azure-tools/typespec-client-generator-cli": "0.14.2", "@azure-tools/typespec-client-generator-core": "0.49.0", "@azure-tools/typespec-liftr-base": "0.6.0", + "@azure-typespec/http-client-csharp": "file:C:/Users/dapzhang/Documents/Workspaces/azure-sdk-for-net/eng/packages/http-client-csharp/azure-typespec-http-client-csharp-1.0.0.tgz", "@azure/avocado": "^0.9.1", "@typespec/compiler": "0.63.0", "@typespec/http": "0.63.0", @@ -1112,6 +1113,15 @@ "resolved": "eng/tools/typespec-validation", "link": true }, + "node_modules/@azure-typespec/http-client-csharp": { + "version": "1.0.0", + "resolved": "file:../azure-sdk-for-net/eng/packages/http-client-csharp/azure-typespec-http-client-csharp-1.0.0.tgz", + "integrity": "sha512-FOvC5YlSMDC8PtZbw5B2IpAFGQyJ6qwVLU3Ry7i+vZqkwlpVVeeHs+dzLDjuzpwKVxxyCZknLYrFd1MlVuVOQw==", + "dev": true, + "dependencies": { + "@typespec/http-client-csharp": "0.1.9-alpha.20241217.2" + } + }, "node_modules/@azure/abort-controller": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.1.2.tgz", @@ -3710,6 +3720,25 @@ } } }, + "node_modules/@typespec/http-client-csharp": { + "version": "0.1.9-alpha.20241217.2", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-0.1.9-alpha.20241217.2.tgz", + "integrity": "sha512-kcCSf4tWsGZmdt5EbUFZ5A8hYuLXMK/Tl6XG4IaG5xEvFx92ypV+Oxx7lYfXmKlNbJ9G9Q0cfNhfgKffUav19w==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-serialize-refs": "0.1.0-0" + }, + "peerDependencies": { + "@azure-tools/typespec-azure-core": ">=0.49.0 <1.0.0 || ~0.50.0-0", + "@azure-tools/typespec-client-generator-core": ">=0.49.0 <1.0.0 || ~0.50.0-0", + "@typespec/compiler": ">=0.63.0 <1.0.0 || ~0.64.0-0", + "@typespec/http": ">=0.63.0 <1.0.0 || ~0.64.0-0", + "@typespec/openapi": ">=0.63.0 <1.0.0 || ~0.64.0-0", + "@typespec/rest": ">=0.63.0 <1.0.0 || ~0.64.0-0", + "@typespec/versioning": ">=0.63.0 <1.0.0 || ~0.64.0-0" + } + }, "node_modules/@typespec/openapi": { "version": "0.63.0", "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.63.0.tgz", @@ -6646,6 +6675,13 @@ "dev": true, "license": "MIT" }, + "node_modules/json-serialize-refs": { + "version": "0.1.0-0", + "resolved": "https://registry.npmjs.org/json-serialize-refs/-/json-serialize-refs-0.1.0-0.tgz", + "integrity": "sha512-SnNMfW2RRPDXIMKa8zdLb59UjMSI1UFZCtIb8ae68GcZ0a6x8b77lIWqqTOdq1azzmkXupD6UWriPLd0JCrFng==", + "dev": true, + "license": "MIT" + }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", diff --git a/package.json b/package.json index d40b511e7e4f..77043b20049a 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@typespec/streams": "0.63.0", "@typespec/versioning": "0.63.0", "azure-rest-api-specs-eng-tools": "file:eng/tools", + "@azure-typespec/http-client-csharp": "file:C:/Users/dapzhang/Documents/Workspaces/azure-sdk-for-net/eng/packages/http-client-csharp/azure-typespec-http-client-csharp-1.0.0.tgz", "oav": "^3.5.1", "prettier": "~3.3.3", "typescript": "~5.6.2" diff --git a/specification/healthdataaiservices/HealthDataAIServices.DeidServices/tspconfig.yaml b/specification/healthdataaiservices/HealthDataAIServices.DeidServices/tspconfig.yaml index 479f3e301191..29288b0ea299 100644 --- a/specification/healthdataaiservices/HealthDataAIServices.DeidServices/tspconfig.yaml +++ b/specification/healthdataaiservices/HealthDataAIServices.DeidServices/tspconfig.yaml @@ -19,12 +19,13 @@ options: flavor: azure generate-test: true generate-sample: true - "@azure-tools/typespec-csharp": + "@azure-typespec/http-client-csharp": package-dir: "Azure.Health.Deidentification" namespace: "{package-dir}" clear-output-folder: true model-namespace: false flavor: azure + emitter-output-dir: C:\Users\dapzhang\Documents\Workspaces\azure-sdk-for-net\sdk\healthdataaiservices\Azure.Health.Deidentification "@azure-tools/typespec-ts": package-dir: "azure-health-deidentification" title: DeidentificationClient