@azure-typespec/http-client-csharp-mgmt 1.0.0-alpha.20250409.3 → 1.0.0-alpha.20250429.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.
Files changed (35) hide show
  1. package/README.md +138 -0
  2. package/dist/emitter/emitter.d.ts +2 -2
  3. package/dist/emitter/emitter.d.ts.map +1 -1
  4. package/dist/emitter/emitter.js +13 -6
  5. package/dist/emitter/emitter.js.map +1 -1
  6. package/dist/emitter/index.d.ts +2 -1
  7. package/dist/emitter/index.d.ts.map +1 -1
  8. package/dist/emitter/index.js +2 -1
  9. package/dist/emitter/index.js.map +1 -1
  10. package/dist/emitter/lib/lib.d.ts +4 -0
  11. package/dist/emitter/lib/lib.d.ts.map +1 -0
  12. package/dist/emitter/lib/lib.js +13 -0
  13. package/dist/emitter/lib/lib.js.map +1 -0
  14. package/dist/emitter/sdk-context-options.d.ts.map +1 -1
  15. package/dist/emitter/sdk-context-options.js +3 -1
  16. package/dist/emitter/sdk-context-options.js.map +1 -1
  17. package/dist/generator/Azure.Generator.Mgmt.deps.json +48 -46
  18. package/dist/generator/Azure.Generator.Mgmt.dll +0 -0
  19. package/dist/generator/Azure.Generator.Mgmt.pdb +0 -0
  20. package/dist/generator/Azure.Generator.dll +0 -0
  21. package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.dll +0 -0
  22. package/dist/generator/Microsoft.TypeSpec.Generator.Input.dll +0 -0
  23. package/dist/generator/Microsoft.TypeSpec.Generator.dll +0 -0
  24. package/dist/generator/net8.0/Azure.Generator.Mgmt.deps.json +48 -46
  25. package/dist/generator/net8.0/Azure.Generator.Mgmt.dll +0 -0
  26. package/dist/generator/net8.0/Azure.Generator.Mgmt.pdb +0 -0
  27. package/dist/generator/net8.0/Azure.Generator.dll +0 -0
  28. package/dist/generator/net8.0/Microsoft.TypeSpec.Generator.ClientModel.dll +0 -0
  29. package/dist/generator/net8.0/Microsoft.TypeSpec.Generator.Input.dll +0 -0
  30. package/dist/generator/net8.0/Microsoft.TypeSpec.Generator.dll +0 -0
  31. package/package.json +40 -21
  32. package/dist/generator/Azure.Generator.pdb +0 -0
  33. package/dist/generator/Azure.Generator.xml +0 -168
  34. package/dist/generator/net8.0/Azure.Generator.pdb +0 -0
  35. package/dist/generator/net8.0/Azure.Generator.xml +0 -168
package/README.md ADDED
@@ -0,0 +1,138 @@
1
+ # @azure-typespec/http-client-csharp-mgmt
2
+
3
+ ## Install
4
+
5
+ ```bash
6
+ npm install @azure-typespec/http-client-csharp-mgmt
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ 1. Via the command line
12
+
13
+ ```bash
14
+ tsp compile . --emit=@azure-typespec/http-client-csharp-mgmt
15
+ ```
16
+
17
+ 2. Via the config
18
+
19
+ ```yaml
20
+ emit:
21
+ - '@azure-typespec/http-client-csharp-mgmt'
22
+ ```
23
+
24
+ The config can be extended with options as follows:
25
+
26
+ ```yaml
27
+ emit:
28
+ - '@azure-typespec/http-client-csharp-mgmt'
29
+ options:
30
+ '@azure-typespec/http-client-csharp-mgmt':
31
+ option: value
32
+ ```
33
+
34
+ ## Emitter options
35
+
36
+ ### `api-version`
37
+
38
+ **Type:** `string`
39
+
40
+ For TypeSpec files using the [`@versioned`](https://typespec.io/docs/libraries/versioning/reference/decorators/#@TypeSpec.Versioning.versioned) decorator, set this option to the version that should be used to generate against.
41
+
42
+ ### `generate-protocol-methods`
43
+
44
+ **Type:** `boolean`
45
+
46
+ ### `generate-convenience-methods`
47
+
48
+ **Type:** `boolean`
49
+
50
+ ### `unreferenced-types-handling`
51
+
52
+ **Type:** `"removeOrInternalize" | "internalize" | "keepAll"`
53
+
54
+ Defines the strategy on how to handle unreferenced types. The default value is `removeOrInternalize`.
55
+
56
+ ### `new-project`
57
+
58
+ **Type:** `boolean`
59
+
60
+ Set to `true` to overwrite the csproj if it already exists. The default value is `false`.
61
+
62
+ ### `clear-output-folder`
63
+
64
+ **Type:** `boolean`
65
+
66
+ Indicates if you want to clear the output folder before generating. The default value is `true`.
67
+
68
+ ### `save-inputs`
69
+
70
+ **Type:** `boolean`
71
+
72
+ Set to `true` to save the `tspCodeModel.json` and `Configuration.json` files that are emitted and used as inputs to the generator. The default value is `false`.
73
+
74
+ ### `package-name`
75
+
76
+ **Type:** `string`
77
+
78
+ Define the package name. If not specified, the first namespace defined in the TypeSpec is used as the package name.
79
+
80
+ ### `debug`
81
+
82
+ **Type:** `boolean`
83
+
84
+ Set to `true` to automatically attempt to attach to a debugger when executing the C# generator. The default value is `false`.
85
+
86
+ ### `logLevel`
87
+
88
+ **Type:** `"info" | "debug" | "verbose"`
89
+
90
+ Set the log level. The default value is `info`.
91
+
92
+ ### `disable-xml-docs`
93
+
94
+ **Type:** `boolean`
95
+
96
+ Set to `true` to disable XML documentation generation. The default value is `false`.
97
+
98
+ ### `generator-name`
99
+
100
+ **Type:** `string`
101
+
102
+ The name of the generator. By default this is set to `ScmCodeModelGenerator`. Generator authors can set this to the name of a generator that inherits from `ScmCodeModelGenerator`.
103
+
104
+ ### `emitter-extension-path`
105
+
106
+ **Type:** `string`
107
+
108
+ Allows emitter authors to specify the path to a custom emitter package, allowing you to extend the emitter behavior. This should be set to `import.meta.url` if you are using a custom emitter.
109
+
110
+ ### `update-code-model`
111
+
112
+ **Type:** `object`
113
+
114
+ Allows emitter authors to specify a custom function to modify the generated code model before emitting. This is useful for modifying the code model before it is passed to the generator.
115
+
116
+ ### `license`
117
+
118
+ **Type:** `object`
119
+
120
+ License information for the generated client code.
121
+
122
+ ### `sdk-context-options`
123
+
124
+ **Type:** `object`
125
+
126
+ The SDK context options that implement the `CreateSdkContextOptions` interface from the [`@azure-tools/typespec-client-generator-core`](https://www.npmjs.com/package/@azure-tools/typespec-client-generator-core) package to be used by the CSharp emitter.
127
+
128
+ ### `namespace`
129
+
130
+ **Type:** `string`
131
+
132
+ The C# namespace to use for the generated code. This will override the TypeSpec namespaces.
133
+
134
+ ### `model-namespace`
135
+
136
+ **Type:** `boolean`
137
+
138
+ Whether to put models under a separate 'Models' sub-namespace. This only applies if the 'namespace' option is set. The default value is 'true' when the 'namespace' option is set. Otherwise, each model will be in the corresponding namespace defined in the TypeSpec.
@@ -1,4 +1,4 @@
1
1
  import { EmitContext } from "@typespec/compiler";
2
- import { CSharpEmitterOptions } from "@typespec/http-client-csharp";
3
- export declare function $onEmit(context: EmitContext<CSharpEmitterOptions>): Promise<void>;
2
+ import { AzureEmitterOptions } from "@azure-typespec/http-client-csharp";
3
+ export declare function $onEmit(context: EmitContext<AzureEmitterOptions>): Promise<void>;
4
4
  //# sourceMappingURL=emitter.d.ts.map
@@ -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;AAGjD,OAAO,EAEL,oBAAoB,EAGrB,MAAM,8BAA8B,CAAC;AAatC,wBAAsB,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,oBAAoB,CAAC,iBAOvE"}
1
+ {"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../emitter/src/emitter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AASjD,OAAO,EAEL,mBAAmB,EACpB,MAAM,oCAAoC,CAAC;AAW5C,wBAAsB,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,mBAAmB,CAAC,iBAOtE"}
@@ -1,6 +1,5 @@
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
- import { setSDKContextOptions } from "@typespec/http-client-csharp";
4
3
  import { $onEmit as $onAzureEmit } from "@azure-typespec/http-client-csharp";
5
4
  import { azureSDKContextOptions } from "./sdk-context-options.js";
6
5
  import { calculateResourceTypeFromPath } from "./resource-type.js";
@@ -14,25 +13,28 @@ export async function $onEmit(context) {
14
13
  context.options["update-code-model"] = updateCodeModel;
15
14
  context.options["emitter-extension-path"] ??= import.meta.url;
16
15
  context.options["sdk-context-options"] ??= azureSDKContextOptions;
17
- setSDKContextOptions(azureSDKContextOptions);
16
+ context.options["model-namespace"] ??= true;
18
17
  await $onAzureEmit(context);
19
18
  }
20
19
  function updateCodeModel(codeModel) {
21
20
  for (const client of codeModel.clients) {
21
+ updateClient(client);
22
+ }
23
+ function updateClient(client) {
22
24
  // TODO: we can implement this decorator in TCGC until we meet the corner case
23
25
  // if the client has resourceMetadata decorator, it is a resource client and we don't need to add it again
24
26
  if (client.decorators?.some((d) => d.name == resourceMetadata)) {
25
- continue;
27
+ return;
26
28
  }
27
29
  // TODO: Once we have the ability to get resource hierarchy from TCGC directly, we can remove this implementation
28
30
  // A resource client should have decorator armResourceOperations and contains either a get operation(containing armResourceRead deocrator) or a put operation(containing armResourceCreateOrUpdate decorator)
29
31
  if (client.decorators?.some((d) => d.name == armResourceOperations) &&
30
- client.operations.some((op) => op.decorators?.some((d) => d.name == armResourceRead || armResourceCreateOrUpdate))) {
32
+ client.methods.some((m) => m.operation.decorators?.some((d) => d.name == armResourceRead || armResourceCreateOrUpdate))) {
31
33
  let resourceModel = undefined;
32
34
  let isSingleton = false;
33
35
  let resourceType = undefined;
34
36
  // We will try to get resource metadata from put operation firstly, if not found, we will try to get it from get operation
35
- const putOperation = client.operations.find((op) => op.decorators?.some((d) => d.name == armResourceCreateOrUpdate));
37
+ const putOperation = client.methods.find((m) => m.operation.decorators?.some((d) => d.name == armResourceCreateOrUpdate))?.operation;
36
38
  if (putOperation) {
37
39
  const path = putOperation.path;
38
40
  resourceType = calculateResourceTypeFromPath(path);
@@ -42,7 +44,7 @@ function updateCodeModel(codeModel) {
42
44
  resourceModel.decorators?.some((d) => d.name == singleton) ?? false;
43
45
  }
44
46
  else {
45
- const getOperation = client.operations.find((op) => op.decorators?.some((d) => d.name == armResourceRead));
47
+ const getOperation = client.methods.find((m) => m.operation.decorators?.some((d) => d.name == armResourceRead))?.operation;
46
48
  if (getOperation) {
47
49
  const path = getOperation.path;
48
50
  resourceType = calculateResourceTypeFromPath(path);
@@ -63,6 +65,11 @@ function updateCodeModel(codeModel) {
63
65
  resourceMetadataDecorator.arguments["resourceType"] = resourceType;
64
66
  client.decorators.push(resourceMetadataDecorator);
65
67
  }
68
+ if (client.children) {
69
+ for (const child of client.children) {
70
+ updateClient(child);
71
+ }
72
+ }
66
73
  }
67
74
  return codeModel;
68
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"emitter.js","sourceRoot":"","sources":["../../emitter/src/emitter.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F;AAK/F,OAAO,EAIL,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,qBAAqB,GAAG,8CAA8C,CAAC;AAC7E,MAAM,eAAe,GAAG,wCAAwC,CAAC;AACjE,MAAM,yBAAyB,GAC7B,kDAAkD,CAAC;AACrD,MAAM,SAAS,GAAG,kCAAkC,CAAC;AACrD,MAAM,gBAAgB,GAAG,4CAA4C,CAAC;AAEtE,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,OAA0C;IACtE,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,2BAA2B,CAAC;IAClE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,GAAG,eAAe,CAAC;IACvD,OAAO,CAAC,OAAO,CAAC,wBAAwB,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;IAC9D,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,KAAK,sBAAsB,CAAC;IAClE,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;IAC7C,MAAM,YAAY,CAAC,OAAO,CAAC,CAAC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CAAC;YACrC,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,2 +1,3 @@
1
- export * from "./emitter.js";
1
+ export { $lib } from "./lib/lib.js";
2
+ export { $onEmit } from "./emitter.js";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../emitter/src/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../emitter/src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -1,4 +1,5 @@
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
- export * from "./emitter.js";
3
+ export { $lib } from "./lib/lib.js";
4
+ export { $onEmit } from "./emitter.js";
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../emitter/src/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F;AAE/F,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../emitter/src/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F;AAE/F,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
2
+ [x: string]: any;
3
+ }, import("@azure-typespec/http-client-csharp").AzureEmitterOptions, never>;
4
+ //# sourceMappingURL=lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../emitter/src/lib/lib.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI;;2EAMf,CAAC"}
@@ -0,0 +1,13 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License. See License.txt in the project root for license information.
3
+ import { AzureEmitterOptionsSchema } from "@azure-typespec/http-client-csharp";
4
+ import { createTypeSpecLibrary } from "@typespec/compiler";
5
+ import { $lib as httpClientCSharpLib } from "@typespec/http-client-csharp";
6
+ export const $lib = createTypeSpecLibrary({
7
+ name: "@azure-typespec/http-client-csharp-mgmt",
8
+ diagnostics: httpClientCSharpLib.diagnostics,
9
+ emitter: {
10
+ options: AzureEmitterOptionsSchema
11
+ }
12
+ });
13
+ //# sourceMappingURL=lib.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.js","sourceRoot":"","sources":["../../../emitter/src/lib/lib.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F;AAE/F,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,IAAI,IAAI,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAE3E,MAAM,CAAC,MAAM,IAAI,GAAG,qBAAqB,CAAC;IACxC,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE,mBAAmB,CAAC,WAAW;IAC5C,OAAO,EAAE;QACP,OAAO,EAAE,yBAAyB;KACnC;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-context-options.d.ts","sourceRoot":"","sources":["../../emitter/src/sdk-context-options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,eAAO,MAAM,sBAAsB,EAAE,uBAmBpC,CAAC"}
1
+ {"version":3,"file":"sdk-context-options.d.ts","sourceRoot":"","sources":["../../emitter/src/sdk-context-options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,eAAO,MAAM,sBAAsB,EAAE,uBAqBpC,CAAC"}
@@ -1,7 +1,9 @@
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
  export const azureSDKContextOptions = {
4
- versioning: {},
4
+ versioning: {
5
+ previewStringRegex: /-preview$/,
6
+ },
5
7
  additionalDecorators: [
6
8
  // https://github.com/Azure/typespec-azure/blob/main/packages/typespec-client-generator-core/README.md#usesystemtextjsonconverter
7
9
  "Azure\\.ClientGenerator\\.Core\\.@useSystemTextJsonConverter",
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-context-options.js","sourceRoot":"","sources":["../../emitter/src/sdk-context-options.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F;AAI/F,MAAM,CAAC,MAAM,sBAAsB,GAA4B;IAC7D,UAAU,EAAE,EAAE;IACd,oBAAoB,EAAE;QACpB,iIAAiI;QACjI,8DAA8D;QAC9D,mCAAmC;QACnC,kDAAkD;QAClD,4HAA4H;QAC5H,iDAAiD;QACjD,6HAA6H;QAC7H,kDAAkD;QAClD,uHAAuH;QACvH,4CAA4C;QAC5C,yFAAyF;QACzF,kCAAkC;QAClC,iHAAiH;QACjH,sCAAsC;QACtC,0DAA0D;KAC3D;CACF,CAAC"}
1
+ {"version":3,"file":"sdk-context-options.js","sourceRoot":"","sources":["../../emitter/src/sdk-context-options.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F;AAI/F,MAAM,CAAC,MAAM,sBAAsB,GAA4B;IAC7D,UAAU,EAAE;QACV,kBAAkB,EAAE,WAAW;KAChC;IACD,oBAAoB,EAAE;QACpB,iIAAiI;QACjI,8DAA8D;QAC9D,mCAAmC;QACnC,kDAAkD;QAClD,4HAA4H;QAC5H,iDAAiD;QACjD,6HAA6H;QAC7H,kDAAkD;QAClD,uHAAuH;QACvH,4CAA4C;QAC5C,yFAAyF;QACzF,kCAAkC;QAClC,iHAAiH;QACjH,sCAAsC;QACtC,0DAA0D;KAC3D;CACF,CAAC"}
@@ -6,14 +6,14 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v8.0": {
9
- "Azure.Generator.Mgmt/1.0.0-alpha.20250409.1": {
9
+ "Azure.Generator.Mgmt/1.0.0-alpha.20250429.1": {
10
10
  "dependencies": {
11
11
  "Azure.Core": "1.44.1",
12
- "Azure.Generator": "1.0.0-alpha.20250409.1",
12
+ "Azure.Generator": "1.0.0-alpha.20250423.3",
13
13
  "Azure.ResourceManager": "1.13.0",
14
- "Microsoft.Azure.AutoRest.CSharp": "3.0.0-beta.20250409.1",
14
+ "Microsoft.Azure.AutoRest.CSharp": "3.0.0-beta.20250426.1",
15
15
  "Microsoft.SourceLink.GitHub": "8.0.0",
16
- "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20250320.1",
16
+ "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20250424.2",
17
17
  "SauceControl.InheritDoc": "1.2.0",
18
18
  "StyleCop.Analyzers": "1.2.0-beta.333"
19
19
  },
@@ -39,6 +39,19 @@
39
39
  }
40
40
  }
41
41
  },
42
+ "Azure.Generator/1.0.0-alpha.20250423.3": {
43
+ "dependencies": {
44
+ "Azure.Core": "1.44.1",
45
+ "Azure.ResourceManager": "1.13.0",
46
+ "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20250424.2"
47
+ },
48
+ "runtime": {
49
+ "lib/net8.0/Azure.Generator.dll": {
50
+ "assemblyVersion": "1.0.0.0",
51
+ "fileVersion": "1.0.0.0"
52
+ }
53
+ }
54
+ },
42
55
  "Azure.ResourceManager/1.13.0": {
43
56
  "dependencies": {
44
57
  "Azure.Core": "1.44.1",
@@ -68,7 +81,7 @@
68
81
  }
69
82
  }
70
83
  },
71
- "Microsoft.Azure.AutoRest.CSharp/3.0.0-beta.20250409.1": {},
84
+ "Microsoft.Azure.AutoRest.CSharp/3.0.0-beta.20250426.1": {},
72
85
  "Microsoft.Bcl.AsyncInterfaces/7.0.0": {
73
86
  "runtime": {
74
87
  "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll": {
@@ -347,12 +360,12 @@
347
360
  "Microsoft.SourceLink.Common": "8.0.0"
348
361
  }
349
362
  },
350
- "Microsoft.TypeSpec.Generator/1.0.0-alpha.20250320.1": {
363
+ "Microsoft.TypeSpec.Generator/1.0.0-alpha.20250424.2": {
351
364
  "dependencies": {
352
365
  "CommandLineParser": "2.9.1",
353
366
  "Microsoft.Build": "17.9.5",
354
367
  "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.8.0",
355
- "Microsoft.TypeSpec.Generator.Input": "1.0.0-alpha.20250320.1",
368
+ "Microsoft.TypeSpec.Generator.Input": "1.0.0-alpha.20250424.2",
356
369
  "NuGet.Configuration": "6.9.1",
357
370
  "System.ComponentModel.Composition": "8.0.0",
358
371
  "System.Memory.Data": "8.0.1"
@@ -364,9 +377,9 @@
364
377
  }
365
378
  }
366
379
  },
367
- "Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20250320.1": {
380
+ "Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20250424.2": {
368
381
  "dependencies": {
369
- "Microsoft.TypeSpec.Generator": "1.0.0-alpha.20250320.1",
382
+ "Microsoft.TypeSpec.Generator": "1.0.0-alpha.20250424.2",
370
383
  "System.ClientModel": "1.3.0"
371
384
  },
372
385
  "runtime": {
@@ -376,7 +389,7 @@
376
389
  }
377
390
  }
378
391
  },
379
- "Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20250320.1": {
392
+ "Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20250424.2": {
380
393
  "dependencies": {
381
394
  "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.8.0",
382
395
  "System.Memory.Data": "8.0.1"
@@ -603,24 +616,11 @@
603
616
  },
604
617
  "System.Threading.Channels/7.0.0": {},
605
618
  "System.Threading.Tasks.Dataflow/8.0.0": {},
606
- "System.Threading.Tasks.Extensions/4.5.4": {},
607
- "Azure.Generator/1.0.0-alpha.20250409.1": {
608
- "dependencies": {
609
- "Azure.Core": "1.44.1",
610
- "Azure.ResourceManager": "1.13.0",
611
- "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20250320.1"
612
- },
613
- "runtime": {
614
- "Azure.Generator.dll": {
615
- "assemblyVersion": "1.0.0.0",
616
- "fileVersion": "1.0.0.0"
617
- }
618
- }
619
- }
619
+ "System.Threading.Tasks.Extensions/4.5.4": {}
620
620
  }
621
621
  },
622
622
  "libraries": {
623
- "Azure.Generator.Mgmt/1.0.0-alpha.20250409.1": {
623
+ "Azure.Generator.Mgmt/1.0.0-alpha.20250429.1": {
624
624
  "type": "project",
625
625
  "serviceable": false,
626
626
  "sha512": ""
@@ -632,6 +632,13 @@
632
632
  "path": "azure.core/1.44.1",
633
633
  "hashPath": "azure.core.1.44.1.nupkg.sha512"
634
634
  },
635
+ "Azure.Generator/1.0.0-alpha.20250423.3": {
636
+ "type": "package",
637
+ "serviceable": true,
638
+ "sha512": "sha512-uf0E0IhrQLCxoZ496Pnm3rTsLYnk8Nfb70FhzfwDfXO22HJ52JGc+nSqzmoIGr3bVitxfCDtwidvhNlWy475Gg==",
639
+ "path": "azure.generator/1.0.0-alpha.20250423.3",
640
+ "hashPath": "azure.generator.1.0.0-alpha.20250423.3.nupkg.sha512"
641
+ },
635
642
  "Azure.ResourceManager/1.13.0": {
636
643
  "type": "package",
637
644
  "serviceable": true,
@@ -653,12 +660,12 @@
653
660
  "path": "humanizer.core/2.14.1",
654
661
  "hashPath": "humanizer.core.2.14.1.nupkg.sha512"
655
662
  },
656
- "Microsoft.Azure.AutoRest.CSharp/3.0.0-beta.20250409.1": {
663
+ "Microsoft.Azure.AutoRest.CSharp/3.0.0-beta.20250426.1": {
657
664
  "type": "package",
658
665
  "serviceable": true,
659
- "sha512": "sha512-kO+ZTzxq6uRTL67DqtwRezR1N3Rs4KqdN7qAQaWAD6MKamuxURdL4JEwUGbGjT2ZxKXPs9+JWzF1ieijjrfkmg==",
660
- "path": "microsoft.azure.autorest.csharp/3.0.0-beta.20250409.1",
661
- "hashPath": "microsoft.azure.autorest.csharp.3.0.0-beta.20250409.1.nupkg.sha512"
666
+ "sha512": "sha512-7kj8EXYRGgnUlN8RM4G39i3tEPKtUokbnRgsTzZe3dp6H52mhyx8a6XuykWiJ2t2fMXCBdfmK5TNIAkg1Utd7g==",
667
+ "path": "microsoft.azure.autorest.csharp/3.0.0-beta.20250426.1",
668
+ "hashPath": "microsoft.azure.autorest.csharp.3.0.0-beta.20250426.1.nupkg.sha512"
662
669
  },
663
670
  "Microsoft.Bcl.AsyncInterfaces/7.0.0": {
664
671
  "type": "package",
@@ -751,26 +758,26 @@
751
758
  "path": "microsoft.sourcelink.github/8.0.0",
752
759
  "hashPath": "microsoft.sourcelink.github.8.0.0.nupkg.sha512"
753
760
  },
754
- "Microsoft.TypeSpec.Generator/1.0.0-alpha.20250320.1": {
761
+ "Microsoft.TypeSpec.Generator/1.0.0-alpha.20250424.2": {
755
762
  "type": "package",
756
763
  "serviceable": true,
757
- "sha512": "sha512-92eo8ijLkiSEthyLVoELhFxHgMRL4B1fLmAe3KdXwVSk9qpPct2vPmnORD2+86ECCi3e6GNKX1/rsT1Kzijehw==",
758
- "path": "microsoft.typespec.generator/1.0.0-alpha.20250320.1",
759
- "hashPath": "microsoft.typespec.generator.1.0.0-alpha.20250320.1.nupkg.sha512"
764
+ "sha512": "sha512-KgFQmDJQ8j6juezvzjAF1UCcKB/FWI4xy4sp9iWEpDqNNqO+BGc8i1nUca7QHxvgIAtI3TrN0ifQgZsGA2boYA==",
765
+ "path": "microsoft.typespec.generator/1.0.0-alpha.20250424.2",
766
+ "hashPath": "microsoft.typespec.generator.1.0.0-alpha.20250424.2.nupkg.sha512"
760
767
  },
761
- "Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20250320.1": {
768
+ "Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20250424.2": {
762
769
  "type": "package",
763
770
  "serviceable": true,
764
- "sha512": "sha512-yMcfaahCzykqdovB5rl+I0hApbNK/HGkXDq6cbYh6F68rhMHuxmv2NFvDttczbuoZTtHWzN87XdAHH0OEKBOKA==",
765
- "path": "microsoft.typespec.generator.clientmodel/1.0.0-alpha.20250320.1",
766
- "hashPath": "microsoft.typespec.generator.clientmodel.1.0.0-alpha.20250320.1.nupkg.sha512"
771
+ "sha512": "sha512-OTmTezjWnC1pSPFEV0Kd4aIdIoxjZUJVHOoCBDoJ+pPXRFhY+7G6+iQANDt/c5iRsud2pVyJFYN4l+U083AwUA==",
772
+ "path": "microsoft.typespec.generator.clientmodel/1.0.0-alpha.20250424.2",
773
+ "hashPath": "microsoft.typespec.generator.clientmodel.1.0.0-alpha.20250424.2.nupkg.sha512"
767
774
  },
768
- "Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20250320.1": {
775
+ "Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20250424.2": {
769
776
  "type": "package",
770
777
  "serviceable": true,
771
- "sha512": "sha512-VQHSLA7irozcw9qipkW08LX0255WQzOfxBg2mEJH+z+68OJJIitCBUAmrgAondKv7pvuJNsoikgnhhxJafgfIQ==",
772
- "path": "microsoft.typespec.generator.input/1.0.0-alpha.20250320.1",
773
- "hashPath": "microsoft.typespec.generator.input.1.0.0-alpha.20250320.1.nupkg.sha512"
778
+ "sha512": "sha512-uXPVTgQqO66Nw3cWJIrSWH6UGXxsiq4HyED+V8KCXRBHh1qSy7KIbzgDHgmDQRKgrlFXsP4QHjG2F1ML9Yqd2g==",
779
+ "path": "microsoft.typespec.generator.input/1.0.0-alpha.20250424.2",
780
+ "hashPath": "microsoft.typespec.generator.input.1.0.0-alpha.20250424.2.nupkg.sha512"
774
781
  },
775
782
  "NuGet.Common/6.9.1": {
776
783
  "type": "package",
@@ -988,11 +995,6 @@
988
995
  "sha512": "sha512-zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==",
989
996
  "path": "system.threading.tasks.extensions/4.5.4",
990
997
  "hashPath": "system.threading.tasks.extensions.4.5.4.nupkg.sha512"
991
- },
992
- "Azure.Generator/1.0.0-alpha.20250409.1": {
993
- "type": "project",
994
- "serviceable": false,
995
- "sha512": ""
996
998
  }
997
999
  }
998
1000
  }
Binary file
@@ -6,14 +6,14 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v8.0": {
9
- "Azure.Generator.Mgmt/1.0.0-alpha.20250409.1": {
9
+ "Azure.Generator.Mgmt/1.0.0-alpha.20250429.1": {
10
10
  "dependencies": {
11
11
  "Azure.Core": "1.44.1",
12
- "Azure.Generator": "1.0.0-alpha.20250409.1",
12
+ "Azure.Generator": "1.0.0-alpha.20250423.3",
13
13
  "Azure.ResourceManager": "1.13.0",
14
- "Microsoft.Azure.AutoRest.CSharp": "3.0.0-beta.20250409.1",
14
+ "Microsoft.Azure.AutoRest.CSharp": "3.0.0-beta.20250426.1",
15
15
  "Microsoft.SourceLink.GitHub": "8.0.0",
16
- "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20250320.1",
16
+ "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20250424.2",
17
17
  "SauceControl.InheritDoc": "1.2.0",
18
18
  "StyleCop.Analyzers": "1.2.0-beta.333"
19
19
  },
@@ -39,6 +39,19 @@
39
39
  }
40
40
  }
41
41
  },
42
+ "Azure.Generator/1.0.0-alpha.20250423.3": {
43
+ "dependencies": {
44
+ "Azure.Core": "1.44.1",
45
+ "Azure.ResourceManager": "1.13.0",
46
+ "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20250424.2"
47
+ },
48
+ "runtime": {
49
+ "lib/net8.0/Azure.Generator.dll": {
50
+ "assemblyVersion": "1.0.0.0",
51
+ "fileVersion": "1.0.0.0"
52
+ }
53
+ }
54
+ },
42
55
  "Azure.ResourceManager/1.13.0": {
43
56
  "dependencies": {
44
57
  "Azure.Core": "1.44.1",
@@ -68,7 +81,7 @@
68
81
  }
69
82
  }
70
83
  },
71
- "Microsoft.Azure.AutoRest.CSharp/3.0.0-beta.20250409.1": {},
84
+ "Microsoft.Azure.AutoRest.CSharp/3.0.0-beta.20250426.1": {},
72
85
  "Microsoft.Bcl.AsyncInterfaces/7.0.0": {
73
86
  "runtime": {
74
87
  "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll": {
@@ -347,12 +360,12 @@
347
360
  "Microsoft.SourceLink.Common": "8.0.0"
348
361
  }
349
362
  },
350
- "Microsoft.TypeSpec.Generator/1.0.0-alpha.20250320.1": {
363
+ "Microsoft.TypeSpec.Generator/1.0.0-alpha.20250424.2": {
351
364
  "dependencies": {
352
365
  "CommandLineParser": "2.9.1",
353
366
  "Microsoft.Build": "17.9.5",
354
367
  "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.8.0",
355
- "Microsoft.TypeSpec.Generator.Input": "1.0.0-alpha.20250320.1",
368
+ "Microsoft.TypeSpec.Generator.Input": "1.0.0-alpha.20250424.2",
356
369
  "NuGet.Configuration": "6.9.1",
357
370
  "System.ComponentModel.Composition": "8.0.0",
358
371
  "System.Memory.Data": "8.0.1"
@@ -364,9 +377,9 @@
364
377
  }
365
378
  }
366
379
  },
367
- "Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20250320.1": {
380
+ "Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20250424.2": {
368
381
  "dependencies": {
369
- "Microsoft.TypeSpec.Generator": "1.0.0-alpha.20250320.1",
382
+ "Microsoft.TypeSpec.Generator": "1.0.0-alpha.20250424.2",
370
383
  "System.ClientModel": "1.3.0"
371
384
  },
372
385
  "runtime": {
@@ -376,7 +389,7 @@
376
389
  }
377
390
  }
378
391
  },
379
- "Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20250320.1": {
392
+ "Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20250424.2": {
380
393
  "dependencies": {
381
394
  "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.8.0",
382
395
  "System.Memory.Data": "8.0.1"
@@ -603,24 +616,11 @@
603
616
  },
604
617
  "System.Threading.Channels/7.0.0": {},
605
618
  "System.Threading.Tasks.Dataflow/8.0.0": {},
606
- "System.Threading.Tasks.Extensions/4.5.4": {},
607
- "Azure.Generator/1.0.0-alpha.20250409.1": {
608
- "dependencies": {
609
- "Azure.Core": "1.44.1",
610
- "Azure.ResourceManager": "1.13.0",
611
- "Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20250320.1"
612
- },
613
- "runtime": {
614
- "Azure.Generator.dll": {
615
- "assemblyVersion": "1.0.0.0",
616
- "fileVersion": "1.0.0.0"
617
- }
618
- }
619
- }
619
+ "System.Threading.Tasks.Extensions/4.5.4": {}
620
620
  }
621
621
  },
622
622
  "libraries": {
623
- "Azure.Generator.Mgmt/1.0.0-alpha.20250409.1": {
623
+ "Azure.Generator.Mgmt/1.0.0-alpha.20250429.1": {
624
624
  "type": "project",
625
625
  "serviceable": false,
626
626
  "sha512": ""
@@ -632,6 +632,13 @@
632
632
  "path": "azure.core/1.44.1",
633
633
  "hashPath": "azure.core.1.44.1.nupkg.sha512"
634
634
  },
635
+ "Azure.Generator/1.0.0-alpha.20250423.3": {
636
+ "type": "package",
637
+ "serviceable": true,
638
+ "sha512": "sha512-uf0E0IhrQLCxoZ496Pnm3rTsLYnk8Nfb70FhzfwDfXO22HJ52JGc+nSqzmoIGr3bVitxfCDtwidvhNlWy475Gg==",
639
+ "path": "azure.generator/1.0.0-alpha.20250423.3",
640
+ "hashPath": "azure.generator.1.0.0-alpha.20250423.3.nupkg.sha512"
641
+ },
635
642
  "Azure.ResourceManager/1.13.0": {
636
643
  "type": "package",
637
644
  "serviceable": true,
@@ -653,12 +660,12 @@
653
660
  "path": "humanizer.core/2.14.1",
654
661
  "hashPath": "humanizer.core.2.14.1.nupkg.sha512"
655
662
  },
656
- "Microsoft.Azure.AutoRest.CSharp/3.0.0-beta.20250409.1": {
663
+ "Microsoft.Azure.AutoRest.CSharp/3.0.0-beta.20250426.1": {
657
664
  "type": "package",
658
665
  "serviceable": true,
659
- "sha512": "sha512-kO+ZTzxq6uRTL67DqtwRezR1N3Rs4KqdN7qAQaWAD6MKamuxURdL4JEwUGbGjT2ZxKXPs9+JWzF1ieijjrfkmg==",
660
- "path": "microsoft.azure.autorest.csharp/3.0.0-beta.20250409.1",
661
- "hashPath": "microsoft.azure.autorest.csharp.3.0.0-beta.20250409.1.nupkg.sha512"
666
+ "sha512": "sha512-7kj8EXYRGgnUlN8RM4G39i3tEPKtUokbnRgsTzZe3dp6H52mhyx8a6XuykWiJ2t2fMXCBdfmK5TNIAkg1Utd7g==",
667
+ "path": "microsoft.azure.autorest.csharp/3.0.0-beta.20250426.1",
668
+ "hashPath": "microsoft.azure.autorest.csharp.3.0.0-beta.20250426.1.nupkg.sha512"
662
669
  },
663
670
  "Microsoft.Bcl.AsyncInterfaces/7.0.0": {
664
671
  "type": "package",
@@ -751,26 +758,26 @@
751
758
  "path": "microsoft.sourcelink.github/8.0.0",
752
759
  "hashPath": "microsoft.sourcelink.github.8.0.0.nupkg.sha512"
753
760
  },
754
- "Microsoft.TypeSpec.Generator/1.0.0-alpha.20250320.1": {
761
+ "Microsoft.TypeSpec.Generator/1.0.0-alpha.20250424.2": {
755
762
  "type": "package",
756
763
  "serviceable": true,
757
- "sha512": "sha512-92eo8ijLkiSEthyLVoELhFxHgMRL4B1fLmAe3KdXwVSk9qpPct2vPmnORD2+86ECCi3e6GNKX1/rsT1Kzijehw==",
758
- "path": "microsoft.typespec.generator/1.0.0-alpha.20250320.1",
759
- "hashPath": "microsoft.typespec.generator.1.0.0-alpha.20250320.1.nupkg.sha512"
764
+ "sha512": "sha512-KgFQmDJQ8j6juezvzjAF1UCcKB/FWI4xy4sp9iWEpDqNNqO+BGc8i1nUca7QHxvgIAtI3TrN0ifQgZsGA2boYA==",
765
+ "path": "microsoft.typespec.generator/1.0.0-alpha.20250424.2",
766
+ "hashPath": "microsoft.typespec.generator.1.0.0-alpha.20250424.2.nupkg.sha512"
760
767
  },
761
- "Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20250320.1": {
768
+ "Microsoft.TypeSpec.Generator.ClientModel/1.0.0-alpha.20250424.2": {
762
769
  "type": "package",
763
770
  "serviceable": true,
764
- "sha512": "sha512-yMcfaahCzykqdovB5rl+I0hApbNK/HGkXDq6cbYh6F68rhMHuxmv2NFvDttczbuoZTtHWzN87XdAHH0OEKBOKA==",
765
- "path": "microsoft.typespec.generator.clientmodel/1.0.0-alpha.20250320.1",
766
- "hashPath": "microsoft.typespec.generator.clientmodel.1.0.0-alpha.20250320.1.nupkg.sha512"
771
+ "sha512": "sha512-OTmTezjWnC1pSPFEV0Kd4aIdIoxjZUJVHOoCBDoJ+pPXRFhY+7G6+iQANDt/c5iRsud2pVyJFYN4l+U083AwUA==",
772
+ "path": "microsoft.typespec.generator.clientmodel/1.0.0-alpha.20250424.2",
773
+ "hashPath": "microsoft.typespec.generator.clientmodel.1.0.0-alpha.20250424.2.nupkg.sha512"
767
774
  },
768
- "Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20250320.1": {
775
+ "Microsoft.TypeSpec.Generator.Input/1.0.0-alpha.20250424.2": {
769
776
  "type": "package",
770
777
  "serviceable": true,
771
- "sha512": "sha512-VQHSLA7irozcw9qipkW08LX0255WQzOfxBg2mEJH+z+68OJJIitCBUAmrgAondKv7pvuJNsoikgnhhxJafgfIQ==",
772
- "path": "microsoft.typespec.generator.input/1.0.0-alpha.20250320.1",
773
- "hashPath": "microsoft.typespec.generator.input.1.0.0-alpha.20250320.1.nupkg.sha512"
778
+ "sha512": "sha512-uXPVTgQqO66Nw3cWJIrSWH6UGXxsiq4HyED+V8KCXRBHh1qSy7KIbzgDHgmDQRKgrlFXsP4QHjG2F1ML9Yqd2g==",
779
+ "path": "microsoft.typespec.generator.input/1.0.0-alpha.20250424.2",
780
+ "hashPath": "microsoft.typespec.generator.input.1.0.0-alpha.20250424.2.nupkg.sha512"
774
781
  },
775
782
  "NuGet.Common/6.9.1": {
776
783
  "type": "package",
@@ -988,11 +995,6 @@
988
995
  "sha512": "sha512-zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==",
989
996
  "path": "system.threading.tasks.extensions/4.5.4",
990
997
  "hashPath": "system.threading.tasks.extensions.4.5.4.nupkg.sha512"
991
- },
992
- "Azure.Generator/1.0.0-alpha.20250409.1": {
993
- "type": "project",
994
- "serviceable": false,
995
- "sha512": ""
996
998
  }
997
999
  }
998
1000
  }
package/package.json CHANGED
@@ -1,10 +1,23 @@
1
1
  {
2
2
  "name": "@azure-typespec/http-client-csharp-mgmt",
3
- "version": "1.0.0-alpha.20250409.3",
3
+ "version": "1.0.0-alpha.20250429.1",
4
+ "author": "Microsoft Corporation",
5
+ "description": "TypeSpec library for emitting Azure management libraries for C#.",
6
+ "readme": "https://github.com/Azure/azure-sdk-for-net/blob/main/eng/packages/http-client-csharp-mgmt/README.md",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/azure-sdk/azure-sdk-for-net.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/azure-sdk/azure-sdk-for-net/issues"
14
+ },
4
15
  "type": "module",
5
16
  "main": "dist/emitter/index.js",
6
17
  "exports": {
7
- ".": "./dist/emitter/index.js"
18
+ ".": {
19
+ "import": "./dist/emitter/index.js"
20
+ }
8
21
  },
9
22
  "scripts": {
10
23
  "clean": "rimraf ./dist ./emitter/temp && dotnet clean ./generator",
@@ -16,47 +29,53 @@
16
29
  "test": "npm run test:generator && npm run test:emitter",
17
30
  "lint": "eslint . --max-warnings=0",
18
31
  "lint:fix": "eslint . --fix",
19
- "prettier:fix": "prettier --write --config .prettierrc.json ./**/*.ts",
20
- "prettier": "prettier --check --config .prettierrc.json ./**/*.ts"
32
+ "prettier:fix": "prettier --write --config .prettierrc.json ./**/*.ts package.json",
33
+ "prettier": "prettier --check --config .prettierrc.json ./**/*.ts package.json",
34
+ "regen-docs": "npm run build:emitter && tspd doc . --enable-experimental --skip-js"
21
35
  },
22
36
  "files": [
23
37
  "dist/**"
24
38
  ],
25
39
  "dependencies": {
26
- "@azure-typespec/http-client-csharp": "file:../http-client-csharp"
40
+ "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250423.3"
27
41
  },
28
42
  "devDependencies": {
29
- "@azure-tools/azure-http-specs": "0.1.0-alpha.7",
30
- "@azure-tools/typespec-autorest": "0.52.0",
31
- "@azure-tools/typespec-azure-core": "0.52.0",
32
- "@azure-tools/typespec-azure-resource-manager": "0.52.0",
33
- "@azure-tools/typespec-azure-rulesets": "0.52.0",
34
- "@azure-tools/typespec-client-generator-core": "0.52.0",
43
+ "@azure-tools/azure-http-specs": "0.1.0-alpha.13",
44
+ "@azure-tools/typespec-autorest": "0.54.0",
45
+ "@azure-tools/typespec-azure-core": "0.54.0",
46
+ "@azure-tools/typespec-azure-resource-manager": "0.54.0",
47
+ "@azure-tools/typespec-azure-rulesets": "0.54.0",
48
+ "@azure-tools/typespec-client-generator-core": "0.54.0",
35
49
  "@eslint/js": "^9.2.0",
36
50
  "@types/node": "~22.7.5",
37
51
  "@types/prettier": "^2.6.3",
38
- "@typespec/compiler": "0.66.0",
39
- "@typespec/http": "0.66.0",
40
- "@typespec/http-client-csharp": "1.0.0-alpha.20250320.1",
41
- "@typespec/http-specs": "0.1.0-alpha.11",
42
- "@typespec/json-schema": "0.66.0",
43
- "@typespec/library-linter": "0.66.0",
44
- "@typespec/openapi": "0.66.0",
45
- "@typespec/rest": "0.66.0",
46
- "@typespec/versioning": "0.66.0",
47
- "@typespec/xml": "0.66.0",
52
+ "@typespec/compiler": "1.0.0-rc.0",
53
+ "@typespec/http": "1.0.0-rc.0",
54
+ "@typespec/http-client-csharp": "1.0.0-alpha.20250422.2",
55
+ "@typespec/http-specs": "0.1.0-alpha.17",
56
+ "@typespec/json-schema": "1.0.0-rc.0",
57
+ "@typespec/library-linter": "0.68.0",
58
+ "@typespec/openapi": "1.0.0-rc.0",
59
+ "@typespec/rest": "0.68.0",
60
+ "@typespec/tspd": "0.68.0",
61
+ "@typespec/versioning": "0.68.0",
62
+ "@typespec/xml": "0.68.0",
48
63
  "@vitest/coverage-v8": "^3.0.5",
49
64
  "@vitest/ui": "^3.0.5",
50
65
  "c8": "^10.1.2",
51
66
  "eslint": "^8.57.0",
52
67
  "prettier": "~3.0.3",
53
68
  "rimraf": "~6.0.1",
69
+ "typedoc": "^0.28.1",
70
+ "typedoc-plugin-markdown": "^4.5.2",
54
71
  "typescript": "~5.6.3",
55
72
  "typescript-eslint": "^7.8.0",
56
73
  "vitest": "^3.0.5"
57
74
  },
58
75
  "azure-sdk/emitter-package-json-pinning": [
59
76
  "@azure-tools/typespec-azure-core",
77
+ "@azure-tools/typespec-azure-resource-manager",
78
+ "@azure-tools/typespec-azure-rulesets",
60
79
  "@azure-tools/typespec-client-generator-core",
61
80
  "@typespec/compiler",
62
81
  "@typespec/http",
Binary file
@@ -1,168 +0,0 @@
1
- <?xml version="1.0"?>
2
- <doc>
3
- <assembly>
4
- <name>Azure.Generator</name>
5
- </assembly>
6
- <members>
7
- <member name="T:Azure.Generator.AzureClientGenerator">
8
- <summary>
9
- The Azure client generator to generate the Azure client SDK.
10
- </summary>
11
- </member>
12
- <member name="P:Azure.Generator.AzureClientGenerator.TypeFactory">
13
- <inheritdoc/>
14
- </member>
15
- <member name="P:Azure.Generator.AzureClientGenerator.OutputLibrary">
16
- <inheritdoc/>
17
- </member>
18
- <member name="M:Azure.Generator.AzureClientGenerator.#ctor(Microsoft.TypeSpec.Generator.GeneratorContext)">
19
- <summary>
20
- Constructs the Azure client generator used to generate the Azure client SDK.
21
- </summary>
22
- <param name="context"></param>
23
- </member>
24
- <member name="M:Azure.Generator.AzureClientGenerator.Configure">
25
- <summary>
26
- Customize the generation output for Azure client SDK.
27
- </summary>
28
- </member>
29
- <member name="P:Azure.Generator.AzureClientGenerator.LicenseString">
30
- <summary>
31
- Customize the license string for Azure client SDK.
32
- </summary>
33
- </member>
34
- <member name="T:Azure.Generator.AzureOutputLibrary">
35
- <inheritdoc/>
36
- </member>
37
- <member name="M:Azure.Generator.AzureOutputLibrary.BuildTypeProviders">
38
- <inheritdoc/>
39
- </member>
40
- <member name="T:Azure.Generator.AzureTypeFactory">
41
- <inheritdoc/>
42
- </member>
43
- <member name="P:Azure.Generator.AzureTypeFactory.ClientResponseApi">
44
- <inheritdoc/>
45
- </member>
46
- <member name="P:Azure.Generator.AzureTypeFactory.HttpResponseApi">
47
- <inheritdoc/>
48
- </member>
49
- <member name="P:Azure.Generator.AzureTypeFactory.ClientPipelineApi">
50
- <inheritdoc/>
51
- </member>
52
- <member name="P:Azure.Generator.AzureTypeFactory.HttpMessageApi">
53
- <inheritdoc/>
54
- </member>
55
- <member name="P:Azure.Generator.AzureTypeFactory.HttpRequestApi">
56
- <inheritdoc/>
57
- </member>
58
- <member name="P:Azure.Generator.AzureTypeFactory.StatusCodeClassifierApi">
59
- <inheritdoc/>
60
- </member>
61
- <member name="P:Azure.Generator.AzureTypeFactory.RequestContentApi">
62
- <inheritdoc/>
63
- </member>
64
- <member name="P:Azure.Generator.AzureTypeFactory.HttpRequestOptionsApi">
65
- <inheritdoc/>
66
- </member>
67
- <member name="P:Azure.Generator.AzureTypeFactory.AzureDependencyPackages">
68
- <summary>
69
- Get dependency packages for Azure.
70
- </summary>
71
- </member>
72
- <member name="M:Azure.Generator.AzureTypeFactory.CreateCSharpTypeCore(Microsoft.TypeSpec.Generator.Input.InputType)">
73
- <inheritdoc/>
74
- </member>
75
- <member name="M:Azure.Generator.AzureTypeFactory.DeserializeJsonValue(System.Type,Microsoft.TypeSpec.Generator.Snippets.ScopedApi{System.Text.Json.JsonElement},Microsoft.TypeSpec.Generator.Input.SerializationFormat)">
76
- <inheritdoc/>
77
- </member>
78
- <member name="M:Azure.Generator.AzureTypeFactory.SerializeJsonValue(System.Type,Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Snippets.ScopedApi{System.Text.Json.Utf8JsonWriter},Microsoft.TypeSpec.Generator.Snippets.ScopedApi{System.ClientModel.Primitives.ModelReaderWriterOptions},Microsoft.TypeSpec.Generator.Input.SerializationFormat)">
79
- <inheritdoc/>
80
- </member>
81
- <member name="M:Azure.Generator.AzureTypeFactory.CreateNewProjectScaffolding">
82
- <inheritdoc/>
83
- </member>
84
- <member name="M:Azure.Generator.Management.Models.RequestPath.IsAncestorOf(Azure.Generator.Management.Models.RequestPath)">
85
- <summary>
86
- Check if this <see cref="T:Azure.Generator.Management.Models.RequestPath"/> is a prefix path of the other request path.
87
- Note that this.IsAncestorOf(this) will return false which indicates that this method is testing the "proper ancestor" like a proper subset.
88
- </summary>
89
- <param name="other"></param>
90
- <returns></returns>
91
- </member>
92
- <member name="M:Azure.Generator.Management.Models.RequestPath.TrimAncestorFrom(Azure.Generator.Management.Models.RequestPath)">
93
- <summary>
94
- Trim this from the other and return the <see cref="T:Azure.Generator.Management.Models.RequestPath"/>that remain.
95
- The result is "other - this" by removing this as a prefix of other.
96
- If this == other, return empty request path
97
- </summary>
98
- <param name="other"></param>
99
- <returns></returns>
100
- <exception cref="T:System.InvalidOperationException">if this.IsAncestorOf(other) is false</exception>
101
- </member>
102
- <member name="T:Azure.Generator.Primitives.NewAzureProjectScaffolding">
103
- <summary>
104
- Defines the new project scaffolding needed for an azure sdk.
105
- </summary>
106
- </member>
107
- <member name="M:Azure.Generator.Primitives.NewAzureProjectScaffolding.GetSourceProjectFileContent">
108
- <inheritdoc/>
109
- </member>
110
- <member name="T:Azure.Generator.Providers.Abstraction.HttpPipelineProvider">
111
- <inheritdoc/>
112
- </member>
113
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.#ctor(Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
114
- <inheritdoc/>
115
- </member>
116
- <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ClientPipelineType">
117
- <inheritdoc/>
118
- </member>
119
- <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ClientPipelineOptionsType">
120
- <inheritdoc/>
121
- </member>
122
- <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.PipelinePolicyType">
123
- <inheritdoc/>
124
- </member>
125
- <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.KeyCredentialType">
126
- <inheritdoc/>
127
- </member>
128
- <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.TokenCredentialType">
129
- <inheritdoc/>
130
- </member>
131
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.Create(Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
132
- <inheritdoc/>
133
- </member>
134
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.CreateMessage(Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpRequestOptionsApi,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
135
- <inheritdoc/>
136
- </member>
137
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.FromExpression(Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
138
- <inheritdoc/>
139
- </member>
140
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.KeyAuthorizationPolicy(Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
141
- <inheritdoc/>
142
- </member>
143
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.TokenAuthorizationPolicy(Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
144
- <inheritdoc/>
145
- </member>
146
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ToExpression">
147
- <inheritdoc/>
148
- </member>
149
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ProcessMessage(Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpMessageApi,Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpRequestOptionsApi)">
150
- <inheritdoc/>
151
- </member>
152
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ProcessMessageAsync(Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpMessageApi,Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpRequestOptionsApi)">
153
- <inheritdoc/>
154
- </member>
155
- <member name="M:Azure.Core.AzureKeyCredentialPolicy.#ctor(Azure.AzureKeyCredential,System.String,System.String)">
156
- <summary>
157
- Initializes a new instance of the <see cref="T:Azure.Core.AzureKeyCredentialPolicy"/> class.
158
- </summary>
159
- <param name="credential">The <see cref="T:Azure.AzureKeyCredential"/> used to authenticate requests.</param>
160
- <param name="name">The name of the key header used for the credential.</param>
161
- <param name="prefix">The prefix to apply before the credential key. For example, a prefix of "SharedAccessKey" would result in
162
- a value of "SharedAccessKey {credential.Key}" being stamped on the request header with header key of <paramref name="name"/>.</param>
163
- </member>
164
- <member name="M:Azure.Core.AzureKeyCredentialPolicy.OnSendingRequest(Azure.Core.HttpMessage)">
165
- <inheritdoc/>
166
- </member>
167
- </members>
168
- </doc>
@@ -1,168 +0,0 @@
1
- <?xml version="1.0"?>
2
- <doc>
3
- <assembly>
4
- <name>Azure.Generator</name>
5
- </assembly>
6
- <members>
7
- <member name="T:Azure.Generator.AzureClientGenerator">
8
- <summary>
9
- The Azure client generator to generate the Azure client SDK.
10
- </summary>
11
- </member>
12
- <member name="P:Azure.Generator.AzureClientGenerator.TypeFactory">
13
- <inheritdoc/>
14
- </member>
15
- <member name="P:Azure.Generator.AzureClientGenerator.OutputLibrary">
16
- <inheritdoc/>
17
- </member>
18
- <member name="M:Azure.Generator.AzureClientGenerator.#ctor(Microsoft.TypeSpec.Generator.GeneratorContext)">
19
- <summary>
20
- Constructs the Azure client generator used to generate the Azure client SDK.
21
- </summary>
22
- <param name="context"></param>
23
- </member>
24
- <member name="M:Azure.Generator.AzureClientGenerator.Configure">
25
- <summary>
26
- Customize the generation output for Azure client SDK.
27
- </summary>
28
- </member>
29
- <member name="P:Azure.Generator.AzureClientGenerator.LicenseString">
30
- <summary>
31
- Customize the license string for Azure client SDK.
32
- </summary>
33
- </member>
34
- <member name="T:Azure.Generator.AzureOutputLibrary">
35
- <inheritdoc/>
36
- </member>
37
- <member name="M:Azure.Generator.AzureOutputLibrary.BuildTypeProviders">
38
- <inheritdoc/>
39
- </member>
40
- <member name="T:Azure.Generator.AzureTypeFactory">
41
- <inheritdoc/>
42
- </member>
43
- <member name="P:Azure.Generator.AzureTypeFactory.ClientResponseApi">
44
- <inheritdoc/>
45
- </member>
46
- <member name="P:Azure.Generator.AzureTypeFactory.HttpResponseApi">
47
- <inheritdoc/>
48
- </member>
49
- <member name="P:Azure.Generator.AzureTypeFactory.ClientPipelineApi">
50
- <inheritdoc/>
51
- </member>
52
- <member name="P:Azure.Generator.AzureTypeFactory.HttpMessageApi">
53
- <inheritdoc/>
54
- </member>
55
- <member name="P:Azure.Generator.AzureTypeFactory.HttpRequestApi">
56
- <inheritdoc/>
57
- </member>
58
- <member name="P:Azure.Generator.AzureTypeFactory.StatusCodeClassifierApi">
59
- <inheritdoc/>
60
- </member>
61
- <member name="P:Azure.Generator.AzureTypeFactory.RequestContentApi">
62
- <inheritdoc/>
63
- </member>
64
- <member name="P:Azure.Generator.AzureTypeFactory.HttpRequestOptionsApi">
65
- <inheritdoc/>
66
- </member>
67
- <member name="P:Azure.Generator.AzureTypeFactory.AzureDependencyPackages">
68
- <summary>
69
- Get dependency packages for Azure.
70
- </summary>
71
- </member>
72
- <member name="M:Azure.Generator.AzureTypeFactory.CreateCSharpTypeCore(Microsoft.TypeSpec.Generator.Input.InputType)">
73
- <inheritdoc/>
74
- </member>
75
- <member name="M:Azure.Generator.AzureTypeFactory.DeserializeJsonValue(System.Type,Microsoft.TypeSpec.Generator.Snippets.ScopedApi{System.Text.Json.JsonElement},Microsoft.TypeSpec.Generator.Input.SerializationFormat)">
76
- <inheritdoc/>
77
- </member>
78
- <member name="M:Azure.Generator.AzureTypeFactory.SerializeJsonValue(System.Type,Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Snippets.ScopedApi{System.Text.Json.Utf8JsonWriter},Microsoft.TypeSpec.Generator.Snippets.ScopedApi{System.ClientModel.Primitives.ModelReaderWriterOptions},Microsoft.TypeSpec.Generator.Input.SerializationFormat)">
79
- <inheritdoc/>
80
- </member>
81
- <member name="M:Azure.Generator.AzureTypeFactory.CreateNewProjectScaffolding">
82
- <inheritdoc/>
83
- </member>
84
- <member name="M:Azure.Generator.Management.Models.RequestPath.IsAncestorOf(Azure.Generator.Management.Models.RequestPath)">
85
- <summary>
86
- Check if this <see cref="T:Azure.Generator.Management.Models.RequestPath"/> is a prefix path of the other request path.
87
- Note that this.IsAncestorOf(this) will return false which indicates that this method is testing the "proper ancestor" like a proper subset.
88
- </summary>
89
- <param name="other"></param>
90
- <returns></returns>
91
- </member>
92
- <member name="M:Azure.Generator.Management.Models.RequestPath.TrimAncestorFrom(Azure.Generator.Management.Models.RequestPath)">
93
- <summary>
94
- Trim this from the other and return the <see cref="T:Azure.Generator.Management.Models.RequestPath"/>that remain.
95
- The result is "other - this" by removing this as a prefix of other.
96
- If this == other, return empty request path
97
- </summary>
98
- <param name="other"></param>
99
- <returns></returns>
100
- <exception cref="T:System.InvalidOperationException">if this.IsAncestorOf(other) is false</exception>
101
- </member>
102
- <member name="T:Azure.Generator.Primitives.NewAzureProjectScaffolding">
103
- <summary>
104
- Defines the new project scaffolding needed for an azure sdk.
105
- </summary>
106
- </member>
107
- <member name="M:Azure.Generator.Primitives.NewAzureProjectScaffolding.GetSourceProjectFileContent">
108
- <inheritdoc/>
109
- </member>
110
- <member name="T:Azure.Generator.Providers.Abstraction.HttpPipelineProvider">
111
- <inheritdoc/>
112
- </member>
113
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.#ctor(Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
114
- <inheritdoc/>
115
- </member>
116
- <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ClientPipelineType">
117
- <inheritdoc/>
118
- </member>
119
- <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ClientPipelineOptionsType">
120
- <inheritdoc/>
121
- </member>
122
- <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.PipelinePolicyType">
123
- <inheritdoc/>
124
- </member>
125
- <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.KeyCredentialType">
126
- <inheritdoc/>
127
- </member>
128
- <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.TokenCredentialType">
129
- <inheritdoc/>
130
- </member>
131
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.Create(Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
132
- <inheritdoc/>
133
- </member>
134
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.CreateMessage(Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpRequestOptionsApi,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
135
- <inheritdoc/>
136
- </member>
137
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.FromExpression(Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
138
- <inheritdoc/>
139
- </member>
140
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.KeyAuthorizationPolicy(Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
141
- <inheritdoc/>
142
- </member>
143
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.TokenAuthorizationPolicy(Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
144
- <inheritdoc/>
145
- </member>
146
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ToExpression">
147
- <inheritdoc/>
148
- </member>
149
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ProcessMessage(Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpMessageApi,Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpRequestOptionsApi)">
150
- <inheritdoc/>
151
- </member>
152
- <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ProcessMessageAsync(Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpMessageApi,Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpRequestOptionsApi)">
153
- <inheritdoc/>
154
- </member>
155
- <member name="M:Azure.Core.AzureKeyCredentialPolicy.#ctor(Azure.AzureKeyCredential,System.String,System.String)">
156
- <summary>
157
- Initializes a new instance of the <see cref="T:Azure.Core.AzureKeyCredentialPolicy"/> class.
158
- </summary>
159
- <param name="credential">The <see cref="T:Azure.AzureKeyCredential"/> used to authenticate requests.</param>
160
- <param name="name">The name of the key header used for the credential.</param>
161
- <param name="prefix">The prefix to apply before the credential key. For example, a prefix of "SharedAccessKey" would result in
162
- a value of "SharedAccessKey {credential.Key}" being stamped on the request header with header key of <paramref name="name"/>.</param>
163
- </member>
164
- <member name="M:Azure.Core.AzureKeyCredentialPolicy.OnSendingRequest(Azure.Core.HttpMessage)">
165
- <inheritdoc/>
166
- </member>
167
- </members>
168
- </doc>