@azure-typespec/http-client-csharp-mgmt 1.0.0-alpha.20260409.3 → 1.0.0-alpha.20260410.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../emitter/src/emitter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAOvD,wBAAsB,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,uBAAuB,CAAC,iBA8B1E"}
1
+ {"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../emitter/src/emitter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWjD,OAAO,EACL,uBAAuB,EAExB,MAAM,cAAc,CAAC;AAOtB,wBAAsB,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,uBAAuB,CAAC,iBA8B1E"}
@@ -3,6 +3,7 @@
3
3
  import { emitAzureCodeModel } from "@azure-typespec/http-client-csharp";
4
4
  import { azureSDKContextOptions, flattenPropertyDecorator } from "./sdk-context-options.js";
5
5
  import { updateClients } from "./resource-detection.js";
6
+ import { filterSuppressedDiagnostics } from "./options.js";
6
7
  import { transformSubscriptionIdParameters } from "./subscription-id-transformer.js";
7
8
  import { deduplicateApiVersionEnums, fixClientApiVersions } from "./api-version-fixer.js";
8
9
  export async function $onEmit(context) {
@@ -11,7 +12,7 @@ export async function $onEmit(context) {
11
12
  context.options["sdk-context-options"] ??= azureSDKContextOptions;
12
13
  context.options["model-namespace"] ??= true;
13
14
  const [, diagnostics] = await emitAzureCodeModel(context, updateCodeModel);
14
- context.program.reportDiagnostics(diagnostics);
15
+ context.program.reportDiagnostics(filterSuppressedDiagnostics(diagnostics));
15
16
  function updateCodeModel(codeModel, sdkContext) {
16
17
  // Transform subscriptionId parameters from client scope to method scope
17
18
  // This must happen before other transformations that may depend on method parameters
@@ -1 +1 @@
1
- {"version":3,"file":"emitter.js","sourceRoot":"","sources":["../../emitter/src/emitter.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F;AAM/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,OAA6C;IACzE,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,2BAA2B,CAAC;IAClE,OAAO,CAAC,OAAO,CAAC,wBAAwB,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;IAC9D,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,KAAK,sBAAsB,CAAC;IAClE,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,WAAW,CAAC,GAAG,MAAM,kBAAkB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAC3E,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAE/C,SAAS,eAAe,CACtB,SAAoB,EACpB,UAAgC;QAEhC,wEAAwE;QACxE,qFAAqF;QACrF,iCAAiC,CAAC,SAAS,CAAC,CAAC;QAE7C,uEAAuE;QACvE,mDAAmD;QACnD,qDAAqD;QACrD,0BAA0B,CAAC,SAAS,CAAC,CAAC;QAEtC,sEAAsE;QACtE,8FAA8F;QAC9F,gGAAgG;QAChG,oBAAoB,CAAC,SAAS,EAAE,UAA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"}
@@ -1,5 +1,14 @@
1
1
  import { AzureEmitterOptions } from "@azure-typespec/http-client-csharp";
2
- import { JSONSchemaType } from "@typespec/compiler";
2
+ import { Diagnostic, JSONSchemaType } from "@typespec/compiler";
3
+ /**
4
+ * Upstream diagnostic codes that are not meaningful for management plane code generation
5
+ * and should be suppressed to avoid noisy output.
6
+ */
7
+ export declare const suppressedUpstreamDiagnosticCodes: ReadonlySet<string>;
8
+ /**
9
+ * Filters out upstream diagnostics that are not meaningful for management plane.
10
+ */
11
+ export declare function filterSuppressedDiagnostics(diagnostics: readonly Diagnostic[]): readonly Diagnostic[];
3
12
  export interface AzureMgmtEmitterOptions extends AzureEmitterOptions {
4
13
  "enable-wire-path-attribute"?: boolean;
5
14
  "use-legacy-resource-detection"?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../emitter/src/options.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,mBAAmB,EAEpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,6BAA6B,EAAE,cAAc,CAAC,uBAAuB,CA4B/E,CAAC"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../emitter/src/options.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,mBAAmB,EAEpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,iCAAiC,EAAE,WAAW,CAAC,MAAM,CAKhE,CAAC;AAEH;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,SAAS,UAAU,EAAE,GACjC,SAAS,UAAU,EAAE,CAIvB;AAED,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,6BAA6B,EAAE,cAAc,CAAC,uBAAuB,CA4B/E,CAAC"}
@@ -1,6 +1,22 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License. See License.txt in the project root for license information.
3
3
  import { AzureEmitterOptionsSchema } from "@azure-typespec/http-client-csharp";
4
+ /**
5
+ * Upstream diagnostic codes that are not meaningful for management plane code generation
6
+ * and should be suppressed to avoid noisy output.
7
+ */
8
+ export const suppressedUpstreamDiagnosticCodes = new Set([
9
+ // TCGC reports this for generic decorator arguments, which don't affect mgmt plane codegen
10
+ "@azure-tools/typespec-client-generator-core/unsupported-generic-decorator-arg-type",
11
+ // Base emitter reports this for PATCH convenience methods, which mgmt plane doesn't use
12
+ "@typespec/http-client-csharp/unsupported-patch-convenience-method"
13
+ ]);
14
+ /**
15
+ * Filters out upstream diagnostics that are not meaningful for management plane.
16
+ */
17
+ export function filterSuppressedDiagnostics(diagnostics) {
18
+ return diagnostics.filter((d) => !suppressedUpstreamDiagnosticCodes.has(d.code));
19
+ }
4
20
  export const AzureMgmtEmitterOptionsSchema = {
5
21
  type: "object",
6
22
  additionalProperties: false,
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../emitter/src/options.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F;AAE/F,OAAO,EAEL,yBAAyB,EAC1B,MAAM,oCAAoC,CAAC;AAS5C,MAAM,CAAC,MAAM,6BAA6B,GACxC;IACE,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,GAAG,yBAAyB,CAAC,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W,EACT,kPAAkP;YACpP,OAAO,EAAE,IAAI;SACd;QACD,2BAA2B,EAAE;YAC3B,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,iWAAiW;YACnW,OAAO,EAAE,KAAK;SACf;KACF;CACF,CAAC"}
@@ -6,7 +6,7 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v10.0": {
9
- "Azure.Generator.Management/1.0.0-alpha.20260409.3": {
9
+ "Azure.Generator.Management/1.0.0-alpha.20260410.1": {
10
10
  "dependencies": {
11
11
  "Azure.Core": "1.52.0",
12
12
  "Azure.Generator": "1.0.0-alpha.20260408.3",
@@ -694,7 +694,7 @@
694
694
  }
695
695
  },
696
696
  "libraries": {
697
- "Azure.Generator.Management/1.0.0-alpha.20260409.3": {
697
+ "Azure.Generator.Management/1.0.0-alpha.20260410.1": {
698
698
  "type": "project",
699
699
  "serviceable": false,
700
700
  "sha512": ""
@@ -851,6 +851,13 @@
851
851
  generating code that references obsolete members, which causes CS0618 warnings.
852
852
  </summary>
853
853
  </member>
854
+ <member name="M:Azure.Generator.Management.Visitors.FlattenPropertyVisitor.UpdatePublicConstructorBaseInitializer(Microsoft.TypeSpec.Generator.Providers.ConstructorProvider,System.Collections.Generic.Dictionary{System.String,System.Collections.Generic.List{Azure.Generator.Management.Visitors.FlattenPropertyVisitor.FlattenPropertyInfo}})">
855
+ <summary>
856
+ Updates the base constructor initializer arguments when the base model's public
857
+ constructor signature was changed by property flattening. Replaces each argument
858
+ that corresponded to a now-flattened parameter with the new flattened parameter.
859
+ </summary>
860
+ </member>
854
861
  <member name="M:Azure.Generator.Management.Visitors.FlattenPropertyVisitor.RemoveDuplicateSerializationConstructor(Microsoft.TypeSpec.Generator.Providers.ModelProvider)">
855
862
  <summary>
856
863
  Removes the internal parameterless constructor from the serialization type if one exists.
@@ -6,7 +6,7 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v10.0": {
9
- "Azure.Generator.Management/1.0.0-alpha.20260409.3": {
9
+ "Azure.Generator.Management/1.0.0-alpha.20260410.1": {
10
10
  "dependencies": {
11
11
  "Azure.Core": "1.52.0",
12
12
  "Azure.Generator": "1.0.0-alpha.20260408.3",
@@ -694,7 +694,7 @@
694
694
  }
695
695
  },
696
696
  "libraries": {
697
- "Azure.Generator.Management/1.0.0-alpha.20260409.3": {
697
+ "Azure.Generator.Management/1.0.0-alpha.20260410.1": {
698
698
  "type": "project",
699
699
  "serviceable": false,
700
700
  "sha512": ""
@@ -851,6 +851,13 @@
851
851
  generating code that references obsolete members, which causes CS0618 warnings.
852
852
  </summary>
853
853
  </member>
854
+ <member name="M:Azure.Generator.Management.Visitors.FlattenPropertyVisitor.UpdatePublicConstructorBaseInitializer(Microsoft.TypeSpec.Generator.Providers.ConstructorProvider,System.Collections.Generic.Dictionary{System.String,System.Collections.Generic.List{Azure.Generator.Management.Visitors.FlattenPropertyVisitor.FlattenPropertyInfo}})">
855
+ <summary>
856
+ Updates the base constructor initializer arguments when the base model's public
857
+ constructor signature was changed by property flattening. Replaces each argument
858
+ that corresponded to a now-flattened parameter with the new flattened parameter.
859
+ </summary>
860
+ </member>
854
861
  <member name="M:Azure.Generator.Management.Visitors.FlattenPropertyVisitor.RemoveDuplicateSerializationConstructor(Microsoft.TypeSpec.Generator.Providers.ModelProvider)">
855
862
  <summary>
856
863
  Removes the internal parameterless constructor from the serialization type if one exists.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-typespec/http-client-csharp-mgmt",
3
- "version": "1.0.0-alpha.20260409.3",
3
+ "version": "1.0.0-alpha.20260410.1",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec library for emitting Azure management libraries for C#.",
6
6
  "readme": "https://github.com/Azure/azure-sdk-for-net/blob/main/eng/packages/http-client-csharp-mgmt/README.md",