@typespec/http-client-csharp 0.1.9-alpha.20250214.2 → 0.1.9

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 (274) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +38 -38
  3. package/readme.md +10 -12
  4. package/dist/emitter/constants.d.ts +0 -11
  5. package/dist/emitter/constants.d.ts.map +0 -1
  6. package/dist/emitter/constants.js +0 -18
  7. package/dist/emitter/constants.js.map +0 -1
  8. package/dist/emitter/emitter.d.ts +0 -19
  9. package/dist/emitter/emitter.d.ts.map +0 -1
  10. package/dist/emitter/emitter.js +0 -239
  11. package/dist/emitter/emitter.js.map +0 -1
  12. package/dist/emitter/index.d.ts +0 -10
  13. package/dist/emitter/index.d.ts.map +0 -1
  14. package/dist/emitter/index.js +0 -11
  15. package/dist/emitter/index.js.map +0 -1
  16. package/dist/emitter/lib/client-model-builder.d.ts +0 -10
  17. package/dist/emitter/lib/client-model-builder.d.ts.map +0 -1
  18. package/dist/emitter/lib/client-model-builder.js +0 -161
  19. package/dist/emitter/lib/client-model-builder.js.map +0 -1
  20. package/dist/emitter/lib/decorators.d.ts +0 -10
  21. package/dist/emitter/lib/decorators.d.ts.map +0 -1
  22. package/dist/emitter/lib/decorators.js +0 -17
  23. package/dist/emitter/lib/decorators.js.map +0 -1
  24. package/dist/emitter/lib/example-converter.d.ts +0 -7
  25. package/dist/emitter/lib/example-converter.d.ts.map +0 -1
  26. package/dist/emitter/lib/example-converter.js +0 -131
  27. package/dist/emitter/lib/example-converter.js.map +0 -1
  28. package/dist/emitter/lib/lib.d.ts +0 -32
  29. package/dist/emitter/lib/lib.d.ts.map +0 -1
  30. package/dist/emitter/lib/lib.js +0 -109
  31. package/dist/emitter/lib/lib.js.map +0 -1
  32. package/dist/emitter/lib/logger-level.d.ts +0 -10
  33. package/dist/emitter/lib/logger-level.d.ts.map +0 -1
  34. package/dist/emitter/lib/logger-level.js +0 -13
  35. package/dist/emitter/lib/logger-level.js.map +0 -1
  36. package/dist/emitter/lib/logger.d.ts +0 -20
  37. package/dist/emitter/lib/logger.d.ts.map +0 -1
  38. package/dist/emitter/lib/logger.js +0 -54
  39. package/dist/emitter/lib/logger.js.map +0 -1
  40. package/dist/emitter/lib/model.d.ts +0 -8
  41. package/dist/emitter/lib/model.d.ts.map +0 -1
  42. package/dist/emitter/lib/model.js +0 -37
  43. package/dist/emitter/lib/model.js.map +0 -1
  44. package/dist/emitter/lib/operation-converter.d.ts +0 -8
  45. package/dist/emitter/lib/operation-converter.d.ts.map +0 -1
  46. package/dist/emitter/lib/operation-converter.js +0 -316
  47. package/dist/emitter/lib/operation-converter.js.map +0 -1
  48. package/dist/emitter/lib/service-authentication.d.ts +0 -5
  49. package/dist/emitter/lib/service-authentication.d.ts.map +0 -1
  50. package/dist/emitter/lib/service-authentication.js +0 -102
  51. package/dist/emitter/lib/service-authentication.js.map +0 -1
  52. package/dist/emitter/lib/type-converter.d.ts +0 -8
  53. package/dist/emitter/lib/type-converter.d.ts.map +0 -1
  54. package/dist/emitter/lib/type-converter.js +0 -332
  55. package/dist/emitter/lib/type-converter.js.map +0 -1
  56. package/dist/emitter/lib/typespec-server.d.ts +0 -10
  57. package/dist/emitter/lib/typespec-server.d.ts.map +0 -1
  58. package/dist/emitter/lib/typespec-server.js +0 -90
  59. package/dist/emitter/lib/typespec-server.js.map +0 -1
  60. package/dist/emitter/lib/utils.d.ts +0 -9
  61. package/dist/emitter/lib/utils.d.ts.map +0 -1
  62. package/dist/emitter/lib/utils.js +0 -30
  63. package/dist/emitter/lib/utils.js.map +0 -1
  64. package/dist/emitter/options.d.ts +0 -73
  65. package/dist/emitter/options.d.ts.map +0 -1
  66. package/dist/emitter/options.js +0 -87
  67. package/dist/emitter/options.js.map +0 -1
  68. package/dist/emitter/sdk-context-options.d.ts +0 -9
  69. package/dist/emitter/sdk-context-options.d.ts.map +0 -1
  70. package/dist/emitter/sdk-context-options.js +0 -31
  71. package/dist/emitter/sdk-context-options.js.map +0 -1
  72. package/dist/emitter/sdk-context.d.ts +0 -18
  73. package/dist/emitter/sdk-context.d.ts.map +0 -1
  74. package/dist/emitter/sdk-context.js +0 -4
  75. package/dist/emitter/sdk-context.js.map +0 -1
  76. package/dist/emitter/tsdoc-metadata.json +0 -11
  77. package/dist/emitter/type/body-media-type.d.ts +0 -12
  78. package/dist/emitter/type/body-media-type.d.ts.map +0 -1
  79. package/dist/emitter/type/body-media-type.js +0 -26
  80. package/dist/emitter/type/body-media-type.js.map +0 -1
  81. package/dist/emitter/type/client-kind.d.ts +0 -5
  82. package/dist/emitter/type/client-kind.d.ts.map +0 -1
  83. package/dist/emitter/type/client-kind.js +0 -8
  84. package/dist/emitter/type/client-kind.js.map +0 -1
  85. package/dist/emitter/type/code-model.d.ts +0 -12
  86. package/dist/emitter/type/code-model.d.ts.map +0 -1
  87. package/dist/emitter/type/code-model.js +0 -4
  88. package/dist/emitter/type/code-model.js.map +0 -1
  89. package/dist/emitter/type/collection-format.d.ts +0 -13
  90. package/dist/emitter/type/collection-format.d.ts.map +0 -1
  91. package/dist/emitter/type/collection-format.js +0 -22
  92. package/dist/emitter/type/collection-format.js.map +0 -1
  93. package/dist/emitter/type/configuration.d.ts +0 -7
  94. package/dist/emitter/type/configuration.d.ts.map +0 -1
  95. package/dist/emitter/type/configuration.js +0 -4
  96. package/dist/emitter/type/configuration.js.map +0 -1
  97. package/dist/emitter/type/external-docs.d.ts +0 -5
  98. package/dist/emitter/type/external-docs.d.ts.map +0 -1
  99. package/dist/emitter/type/external-docs.js +0 -4
  100. package/dist/emitter/type/external-docs.js.map +0 -1
  101. package/dist/emitter/type/http-response-header.d.ts +0 -9
  102. package/dist/emitter/type/http-response-header.d.ts.map +0 -1
  103. package/dist/emitter/type/http-response-header.js +0 -4
  104. package/dist/emitter/type/http-response-header.js.map +0 -1
  105. package/dist/emitter/type/input-api-key-auth.d.ts +0 -7
  106. package/dist/emitter/type/input-api-key-auth.d.ts.map +0 -1
  107. package/dist/emitter/type/input-api-key-auth.js +0 -4
  108. package/dist/emitter/type/input-api-key-auth.js.map +0 -1
  109. package/dist/emitter/type/input-auth.d.ts +0 -7
  110. package/dist/emitter/type/input-auth.d.ts.map +0 -1
  111. package/dist/emitter/type/input-auth.js +0 -4
  112. package/dist/emitter/type/input-auth.js.map +0 -1
  113. package/dist/emitter/type/input-client.d.ts +0 -16
  114. package/dist/emitter/type/input-client.d.ts.map +0 -1
  115. package/dist/emitter/type/input-client.js +0 -4
  116. package/dist/emitter/type/input-client.js.map +0 -1
  117. package/dist/emitter/type/input-constant.d.ts +0 -6
  118. package/dist/emitter/type/input-constant.d.ts.map +0 -1
  119. package/dist/emitter/type/input-constant.js +0 -4
  120. package/dist/emitter/type/input-constant.js.map +0 -1
  121. package/dist/emitter/type/input-examples.d.ts +0 -77
  122. package/dist/emitter/type/input-examples.d.ts.map +0 -1
  123. package/dist/emitter/type/input-examples.js +0 -4
  124. package/dist/emitter/type/input-examples.js.map +0 -1
  125. package/dist/emitter/type/input-oauth2-auth.d.ts +0 -4
  126. package/dist/emitter/type/input-oauth2-auth.d.ts.map +0 -1
  127. package/dist/emitter/type/input-oauth2-auth.js +0 -4
  128. package/dist/emitter/type/input-oauth2-auth.js.map +0 -1
  129. package/dist/emitter/type/input-operation-parameter-kind.d.ts +0 -9
  130. package/dist/emitter/type/input-operation-parameter-kind.d.ts.map +0 -1
  131. package/dist/emitter/type/input-operation-parameter-kind.js +0 -12
  132. package/dist/emitter/type/input-operation-parameter-kind.js.map +0 -1
  133. package/dist/emitter/type/input-operation.d.ts +0 -38
  134. package/dist/emitter/type/input-operation.d.ts.map +0 -1
  135. package/dist/emitter/type/input-operation.js +0 -4
  136. package/dist/emitter/type/input-operation.js.map +0 -1
  137. package/dist/emitter/type/input-parameter.d.ts +0 -30
  138. package/dist/emitter/type/input-parameter.d.ts.map +0 -1
  139. package/dist/emitter/type/input-parameter.js +0 -4
  140. package/dist/emitter/type/input-parameter.js.map +0 -1
  141. package/dist/emitter/type/input-type.d.ts +0 -120
  142. package/dist/emitter/type/input-type.d.ts.map +0 -1
  143. package/dist/emitter/type/input-type.js +0 -21
  144. package/dist/emitter/type/input-type.js.map +0 -1
  145. package/dist/emitter/type/literal-type-context.d.ts +0 -8
  146. package/dist/emitter/type/literal-type-context.d.ts.map +0 -1
  147. package/dist/emitter/type/literal-type-context.js +0 -4
  148. package/dist/emitter/type/literal-type-context.js.map +0 -1
  149. package/dist/emitter/type/operation-final-state-via.d.ts +0 -12
  150. package/dist/emitter/type/operation-final-state-via.d.ts.map +0 -1
  151. package/dist/emitter/type/operation-final-state-via.js +0 -36
  152. package/dist/emitter/type/operation-final-state-via.js.map +0 -1
  153. package/dist/emitter/type/operation-long-running.d.ts +0 -8
  154. package/dist/emitter/type/operation-long-running.d.ts.map +0 -1
  155. package/dist/emitter/type/operation-long-running.js +0 -4
  156. package/dist/emitter/type/operation-long-running.js.map +0 -1
  157. package/dist/emitter/type/operation-paging.d.ts +0 -8
  158. package/dist/emitter/type/operation-paging.d.ts.map +0 -1
  159. package/dist/emitter/type/operation-paging.js +0 -4
  160. package/dist/emitter/type/operation-paging.js.map +0 -1
  161. package/dist/emitter/type/operation-response.d.ts +0 -12
  162. package/dist/emitter/type/operation-response.d.ts.map +0 -1
  163. package/dist/emitter/type/operation-response.js +0 -4
  164. package/dist/emitter/type/operation-response.js.map +0 -1
  165. package/dist/emitter/type/protocols.d.ts +0 -3
  166. package/dist/emitter/type/protocols.d.ts.map +0 -1
  167. package/dist/emitter/type/protocols.js +0 -4
  168. package/dist/emitter/type/protocols.js.map +0 -1
  169. package/dist/emitter/type/request-location.d.ts +0 -12
  170. package/dist/emitter/type/request-location.d.ts.map +0 -1
  171. package/dist/emitter/type/request-location.js +0 -19
  172. package/dist/emitter/type/request-location.js.map +0 -1
  173. package/dist/emitter/type/request-method.d.ts +0 -13
  174. package/dist/emitter/type/request-method.d.ts.map +0 -1
  175. package/dist/emitter/type/request-method.js +0 -40
  176. package/dist/emitter/type/request-method.js.map +0 -1
  177. package/dist/emitter/type/validation-type.d.ts +0 -6
  178. package/dist/emitter/type/validation-type.d.ts.map +0 -1
  179. package/dist/emitter/type/validation-type.js +0 -9
  180. package/dist/emitter/type/validation-type.js.map +0 -1
  181. package/dist/generator/CommandLine.dll +0 -0
  182. package/dist/generator/Humanizer.dll +0 -0
  183. package/dist/generator/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  184. package/dist/generator/Microsoft.Build.Framework.dll +0 -0
  185. package/dist/generator/Microsoft.Build.dll +0 -0
  186. package/dist/generator/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
  187. package/dist/generator/Microsoft.CodeAnalysis.CSharp.dll +0 -0
  188. package/dist/generator/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
  189. package/dist/generator/Microsoft.CodeAnalysis.dll +0 -0
  190. package/dist/generator/Microsoft.NET.StringTools.dll +0 -0
  191. package/dist/generator/Microsoft.TypeSpec.Generator +0 -0
  192. package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.StubLibrary.deps.json +0 -819
  193. package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.StubLibrary.dll +0 -0
  194. package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.StubLibrary.pdb +0 -0
  195. package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.deps.json +0 -802
  196. package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.dll +0 -0
  197. package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.pdb +0 -0
  198. package/dist/generator/Microsoft.TypeSpec.Generator.Input.dll +0 -0
  199. package/dist/generator/Microsoft.TypeSpec.Generator.Input.pdb +0 -0
  200. package/dist/generator/Microsoft.TypeSpec.Generator.deps.json +0 -758
  201. package/dist/generator/Microsoft.TypeSpec.Generator.dll +0 -0
  202. package/dist/generator/Microsoft.TypeSpec.Generator.pdb +0 -0
  203. package/dist/generator/Microsoft.TypeSpec.Generator.runtimeconfig.json +0 -12
  204. package/dist/generator/NuGet.Common.dll +0 -0
  205. package/dist/generator/NuGet.Configuration.dll +0 -0
  206. package/dist/generator/NuGet.Frameworks.dll +0 -0
  207. package/dist/generator/System.ClientModel.dll +0 -0
  208. package/dist/generator/System.ComponentModel.Composition.dll +0 -0
  209. package/dist/generator/System.Composition.AttributedModel.dll +0 -0
  210. package/dist/generator/System.Composition.Convention.dll +0 -0
  211. package/dist/generator/System.Composition.Hosting.dll +0 -0
  212. package/dist/generator/System.Composition.Runtime.dll +0 -0
  213. package/dist/generator/System.Composition.TypedParts.dll +0 -0
  214. package/dist/generator/System.Configuration.ConfigurationManager.dll +0 -0
  215. package/dist/generator/System.Diagnostics.EventLog.dll +0 -0
  216. package/dist/generator/System.IO.Pipelines.dll +0 -0
  217. package/dist/generator/System.Memory.Data.dll +0 -0
  218. package/dist/generator/System.Reflection.MetadataLoadContext.dll +0 -0
  219. package/dist/generator/System.Security.Cryptography.ProtectedData.dll +0 -0
  220. package/dist/generator/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  221. package/dist/generator/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  222. package/dist/generator/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  223. package/dist/generator/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
  224. package/dist/generator/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  225. package/dist/generator/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  226. package/dist/generator/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  227. package/dist/generator/de/Microsoft.CodeAnalysis.resources.dll +0 -0
  228. package/dist/generator/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  229. package/dist/generator/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  230. package/dist/generator/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  231. package/dist/generator/es/Microsoft.CodeAnalysis.resources.dll +0 -0
  232. package/dist/generator/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  233. package/dist/generator/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  234. package/dist/generator/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  235. package/dist/generator/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
  236. package/dist/generator/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  237. package/dist/generator/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  238. package/dist/generator/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  239. package/dist/generator/it/Microsoft.CodeAnalysis.resources.dll +0 -0
  240. package/dist/generator/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  241. package/dist/generator/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  242. package/dist/generator/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  243. package/dist/generator/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
  244. package/dist/generator/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  245. package/dist/generator/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  246. package/dist/generator/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  247. package/dist/generator/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
  248. package/dist/generator/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  249. package/dist/generator/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  250. package/dist/generator/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  251. package/dist/generator/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
  252. package/dist/generator/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  253. package/dist/generator/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  254. package/dist/generator/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  255. package/dist/generator/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
  256. package/dist/generator/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  257. package/dist/generator/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  258. package/dist/generator/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  259. package/dist/generator/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
  260. package/dist/generator/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
  261. package/dist/generator/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
  262. package/dist/generator/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  263. package/dist/generator/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  264. package/dist/generator/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  265. package/dist/generator/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
  266. package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  267. package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  268. package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  269. package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
  270. package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  271. package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  272. package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  273. package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
  274. package/dist/typespec-http-client-csharp.d.ts +0 -458
@@ -1,12 +0,0 @@
1
- {
2
- "runtimeOptions": {
3
- "tfm": "net8.0",
4
- "framework": {
5
- "name": "Microsoft.NETCore.App",
6
- "version": "8.0.0"
7
- },
8
- "configProperties": {
9
- "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10
- }
11
- }
12
- }
Binary file
Binary file
@@ -1,458 +0,0 @@
1
- import { AccessFlags } from '@azure-tools/typespec-client-generator-core';
2
- import { CreateSdkContextOptions } from '@azure-tools/typespec-client-generator-core';
3
- import { DateTimeKnownEncoding } from '@typespec/compiler';
4
- import { DecoratorInfo } from '@azure-tools/typespec-client-generator-core';
5
- import { Diagnostic } from '@typespec/compiler';
6
- import { DiagnosticDefinition } from '@typespec/compiler';
7
- import { DiagnosticMessages } from '@typespec/compiler';
8
- import { DiagnosticReport } from '@typespec/compiler';
9
- import { DurationKnownEncoding } from '@typespec/compiler';
10
- import { EmitContext } from '@typespec/compiler';
11
- import { JSONSchemaType } from '@typespec/compiler';
12
- import { Program } from '@typespec/compiler';
13
- import { SdkBuiltInKinds } from '@azure-tools/typespec-client-generator-core';
14
- import { SdkContext } from '@azure-tools/typespec-client-generator-core';
15
- import { SdkEmitterOptions } from '@azure-tools/typespec-client-generator-core';
16
- import { SdkType } from '@azure-tools/typespec-client-generator-core';
17
- import { SerializationOptions } from '@azure-tools/typespec-client-generator-core';
18
- import { Tracer } from '@typespec/compiler';
19
- import { UsageFlags } from '@azure-tools/typespec-client-generator-core';
20
-
21
- /* Excluded from this release type: $onEmit */
22
-
23
- declare type ApiKeyLocation = "header";
24
-
25
- declare enum BodyMediaType {
26
- None = "None",
27
- Binary = "Binary",
28
- Form = "Form",
29
- Json = "Json",
30
- Multipart = "Multipart",
31
- Text = "Text",
32
- Xml = "Xml"
33
- }
34
-
35
- declare interface CodeModel {
36
- Name: string;
37
- ApiVersions: string[];
38
- Enums: InputEnumType[];
39
- Models: InputModelType[];
40
- Clients: InputClient[];
41
- Auth?: InputAuth;
42
- }
43
-
44
- /* Excluded from this release type: configurationFileName */
45
-
46
- /* Excluded from this release type: createDiagnostic */
47
-
48
- /* Excluded from this release type: createModel */
49
-
50
- /* Excluded from this release type: CSharpEmitterContext */
51
-
52
- /* Excluded from this release type: CSharpEmitterOptions */
53
-
54
- /* Excluded from this release type: CSharpEmitterOptionsSchema */
55
-
56
- /* Excluded from this release type: defaultOptions */
57
-
58
- declare type DiagnosticMessagesMap = {
59
- [K in keyof typeof diags]: (typeof diags)[K]["messages"];
60
- };
61
-
62
- declare const diags: {
63
- [code: string]: DiagnosticDefinition<DiagnosticMessages>;
64
- };
65
-
66
- /* Excluded from this release type: getTracer */
67
-
68
- declare interface HttpResponseHeader {
69
- Name: string;
70
- NameInResponse: string;
71
- Summary: string;
72
- Doc: string;
73
- Type: InputType;
74
- }
75
-
76
- declare interface InputApiKeyAuth {
77
- Name: string;
78
- In: ApiKeyLocation;
79
- Prefix?: string;
80
- }
81
-
82
- declare interface InputArrayExampleValue extends InputExampleTypeValueBase {
83
- kind: "array";
84
- type: InputArrayType;
85
- value: InputExampleValue[];
86
- }
87
-
88
- declare interface InputArrayType extends InputTypeBase {
89
- kind: "array";
90
- name: string;
91
- valueType: InputType;
92
- crossLanguageDefinitionId: string;
93
- }
94
-
95
- declare interface InputAuth {
96
- ApiKey?: InputApiKeyAuth;
97
- OAuth2?: InputOAuth2Auth;
98
- }
99
-
100
- declare interface InputBooleanExampleValue extends InputExampleTypeValueBase {
101
- kind: "boolean";
102
- type: InputPrimitiveType | InputLiteralType;
103
- value: boolean;
104
- }
105
-
106
- declare interface InputClient {
107
- Name: string;
108
- ClientNamespace: string;
109
- Summary?: string;
110
- Doc?: string;
111
- Operations: InputOperation[];
112
- Protocol?: Protocols;
113
- Parent?: string;
114
- Parameters?: InputParameter[];
115
- Decorators?: DecoratorInfo[];
116
- }
117
-
118
- declare interface InputConstant {
119
- Value?: any;
120
- Type: InputType;
121
- }
122
-
123
- declare type InputDateTimeType = InputUtcDateTimeType | InputOffsetDateTimeType;
124
-
125
- declare interface InputDateTimeTypeBase extends InputTypeBase {
126
- name: string;
127
- encode: DateTimeKnownEncoding;
128
- wireType: InputPrimitiveType;
129
- crossLanguageDefinitionId: string;
130
- baseType?: InputDateTimeType;
131
- }
132
-
133
- declare interface InputDictionaryExampleValue extends InputExampleTypeValueBase {
134
- kind: "dict";
135
- type: InputDictionaryType;
136
- value: Record<string, InputExampleValue>;
137
- }
138
-
139
- declare interface InputDictionaryType extends InputTypeBase {
140
- kind: "dict";
141
- keyType: InputType;
142
- valueType: InputType;
143
- }
144
-
145
- declare interface InputDurationType extends InputTypeBase {
146
- kind: "duration";
147
- name: string;
148
- encode: DurationKnownEncoding;
149
- wireType: InputPrimitiveType;
150
- crossLanguageDefinitionId: string;
151
- baseType?: InputDurationType;
152
- }
153
-
154
- declare interface InputEnumType extends InputTypeBase {
155
- kind: "enum";
156
- name: string;
157
- crossLanguageDefinitionId: string;
158
- valueType: InputPrimitiveType;
159
- values: InputEnumTypeValue[];
160
- isFixed: boolean;
161
- isFlags: boolean;
162
- usage: UsageFlags;
163
- access?: AccessFlags;
164
- clientNamespace: string;
165
- }
166
-
167
- declare interface InputEnumTypeValue extends InputTypeBase {
168
- kind: "enumvalue";
169
- name: string;
170
- value: string | number;
171
- enumType: InputEnumType;
172
- valueType: InputPrimitiveType;
173
- }
174
-
175
- declare interface InputExampleBase {
176
- kind: string;
177
- name: string;
178
- description: string;
179
- filePath: string;
180
- }
181
-
182
- declare interface InputExampleTypeValueBase {
183
- kind: string;
184
- type: InputType;
185
- value: unknown;
186
- }
187
-
188
- declare type InputExampleValue = InputStringExampleValue | InputNumberExampleValue | InputBooleanExampleValue | InputNullExampleValue | InputUnknownExampleValue | InputArrayExampleValue | InputDictionaryExampleValue | InputUnionExampleValue | InputModelExampleValue;
189
-
190
- declare interface InputHttpOperationExample extends InputExampleBase {
191
- kind: "http";
192
- parameters: InputParameterExampleValue[];
193
- responses: OperationResponseExample[];
194
- }
195
-
196
- declare interface InputLiteralType extends InputTypeBase {
197
- kind: "constant";
198
- valueType: InputPrimitiveType | InputEnumType;
199
- value: string | number | boolean | null;
200
- }
201
-
202
- declare interface InputModelExampleValue extends InputExampleTypeValueBase {
203
- kind: "model";
204
- type: InputModelType;
205
- value: Record<string, InputExampleValue>;
206
- additionalPropertiesValue?: Record<string, InputExampleValue>;
207
- }
208
-
209
- declare interface InputModelProperty extends InputTypeBase {
210
- kind: "property";
211
- name: string;
212
- serializedName: string;
213
- type: InputType;
214
- optional: boolean;
215
- readOnly: boolean;
216
- discriminator: boolean;
217
- crossLanguageDefinitionId: string;
218
- flatten: boolean;
219
- serializationOptions: SerializationOptions;
220
- }
221
-
222
- declare interface InputModelType extends InputTypeBase {
223
- kind: "model";
224
- properties: InputModelProperty[];
225
- name: string;
226
- crossLanguageDefinitionId: string;
227
- access?: AccessFlags;
228
- usage: UsageFlags;
229
- clientNamespace: string;
230
- additionalProperties?: InputType;
231
- discriminatorValue?: string;
232
- discriminatedSubtypes?: Record<string, InputModelType>;
233
- discriminatorProperty?: InputModelProperty;
234
- baseModel?: InputModelType;
235
- serializationOptions: SerializationOptions;
236
- }
237
-
238
- declare interface InputNullableType extends InputTypeBase {
239
- kind: "nullable";
240
- type: InputType;
241
- clientNamespace: string;
242
- }
243
-
244
- declare interface InputNullExampleValue extends InputExampleTypeValueBase {
245
- kind: "null";
246
- type: InputNullableType;
247
- value: null;
248
- }
249
-
250
- declare interface InputNumberExampleValue extends InputExampleTypeValueBase {
251
- kind: "number";
252
- type: InputType;
253
- value: number;
254
- }
255
-
256
- declare interface InputOAuth2Auth {
257
- Scopes?: string[];
258
- }
259
-
260
- declare interface InputOffsetDateTimeType extends InputDateTimeTypeBase {
261
- kind: "offsetDateTime";
262
- }
263
-
264
- declare interface InputOperation {
265
- Name: string;
266
- ResourceName?: string;
267
- Summary?: string;
268
- Deprecated?: string;
269
- Doc?: string;
270
- Accessibility?: string;
271
- Parameters: InputParameter[];
272
- Responses: OperationResponse[];
273
- HttpMethod: RequestMethod;
274
- RequestBodyMediaType: BodyMediaType;
275
- Uri: string;
276
- Path: string;
277
- ExternalDocsUrl?: string;
278
- RequestMediaTypes?: string[];
279
- BufferResponse: boolean;
280
- LongRunning?: OperationLongRunning;
281
- Paging?: OperationPaging;
282
- GenerateProtocolMethod: boolean;
283
- GenerateConvenienceMethod: boolean;
284
- Examples?: InputHttpOperationExample[];
285
- CrossLanguageDefinitionId: string;
286
- Decorators?: DecoratorInfo[];
287
- }
288
-
289
- declare enum InputOperationParameterKind {
290
- Method = "Method",
291
- Client = "Client",
292
- Constant = "Constant",
293
- Flattened = "Flattened",
294
- Spread = "Spread",
295
- Grouped = "Grouped"
296
- }
297
-
298
- declare interface InputParameter {
299
- Name: string;
300
- NameInRequest: string;
301
- Summary?: string;
302
- Doc?: string;
303
- Type: InputType;
304
- Location: RequestLocation;
305
- DefaultValue?: InputConstant;
306
- VirtualParameter?: VirtualParameter;
307
- GroupedBy?: InputParameter;
308
- Kind: InputOperationParameterKind;
309
- IsRequired: boolean;
310
- IsApiVersion: boolean;
311
- IsResourceParameter: boolean;
312
- IsContentType: boolean;
313
- IsEndpoint: boolean;
314
- SkipUrlEncoding: boolean;
315
- Explode: boolean;
316
- ArraySerializationDelimiter?: string;
317
- HeaderCollectionPrefix?: string;
318
- Decorators?: DecoratorInfo[];
319
- }
320
-
321
- declare interface InputParameterExampleValue {
322
- parameter: InputParameter;
323
- value: InputExampleValue;
324
- }
325
-
326
- declare interface InputPrimitiveType extends InputTypeBase {
327
- kind: SdkBuiltInKinds;
328
- name: string;
329
- encode?: string;
330
- crossLanguageDefinitionId: string;
331
- baseType?: InputPrimitiveType;
332
- }
333
-
334
- declare interface InputStringExampleValue extends InputExampleTypeValueBase {
335
- kind: "string";
336
- type: InputType;
337
- value: string;
338
- }
339
-
340
- declare type InputType = InputPrimitiveType | InputDateTimeType | InputDurationType | InputLiteralType | InputUnionType | InputModelType | InputEnumType | InputArrayType | InputDictionaryType | InputNullableType;
341
-
342
- declare interface InputTypeBase {
343
- kind: string;
344
- summary?: string;
345
- doc?: string;
346
- deprecation?: string;
347
- decorators?: DecoratorInfo[];
348
- }
349
-
350
- declare interface InputUnionExampleValue extends InputExampleTypeValueBase {
351
- kind: "union";
352
- type: InputUnionType;
353
- value: unknown;
354
- }
355
-
356
- declare interface InputUnionType extends InputTypeBase {
357
- kind: "union";
358
- name: string;
359
- variantTypes: InputType[];
360
- clientNamespace: string;
361
- }
362
-
363
- declare interface InputUnknownExampleValue extends InputExampleTypeValueBase {
364
- kind: "unknown";
365
- type: InputPrimitiveType;
366
- value: unknown;
367
- }
368
-
369
- declare interface InputUtcDateTimeType extends InputDateTimeTypeBase {
370
- kind: "utcDateTime";
371
- }
372
-
373
- /* Excluded from this release type: Logger */
374
-
375
- /* Excluded from this release type: LoggerLevel */
376
-
377
- declare enum OperationFinalStateVia {
378
- AzureAsyncOperation = 0,
379
- Location = 1,
380
- OriginalUri = 2,
381
- OperationLocation = 3,
382
- CustomLink = 4,
383
- CustomOperationReference = 5,
384
- NoResult = 6
385
- }
386
-
387
- declare interface OperationLongRunning {
388
- FinalStateVia: OperationFinalStateVia;
389
- FinalResponse: OperationResponse;
390
- ResultPath?: string;
391
- }
392
-
393
- declare interface OperationPaging {
394
- NextLinkName?: string;
395
- ItemName?: string;
396
- NextLinkOperation?: InputOperation;
397
- NextLinkOperationRef?: (p: any) => void;
398
- }
399
-
400
- declare interface OperationResponse {
401
- StatusCodes: number[];
402
- BodyType?: InputType;
403
- BodyMediaType: BodyMediaType;
404
- Headers: HttpResponseHeader[];
405
- ContentTypes?: string[];
406
- IsErrorResponse: boolean;
407
- }
408
-
409
- declare interface OperationResponseExample {
410
- response: OperationResponse;
411
- statusCode: number;
412
- bodyValue?: InputExampleValue;
413
- }
414
-
415
- declare interface Protocols {
416
- }
417
-
418
- /* Excluded from this release type: reportDiagnostic */
419
-
420
- declare enum RequestLocation {
421
- None = "",
422
- Uri = "Uri",
423
- Path = "Path",
424
- Query = "Query",
425
- Header = "Header",
426
- Body = "Body"
427
- }
428
-
429
- declare enum RequestMethod {
430
- GET = "GET",
431
- POST = "POST",
432
- PUT = "PUT",
433
- PATCH = "PATCH",
434
- DELETE = "DELETE",
435
- HEAD = "HEAD",
436
- OPTIONS = "OPTIONS",
437
- TRACE = "TRACE",
438
- NONE = ""
439
- }
440
-
441
- /* Excluded from this release type: resolveOptions */
442
-
443
- declare interface SdkTypeMap {
444
- types: Map<SdkType, InputType>;
445
- models: Map<string, InputModelType>;
446
- enums: Map<string, InputEnumType>;
447
- }
448
-
449
- /* Excluded from this release type: setSDKContextOptions */
450
-
451
- /* Excluded from this release type: tspOutputFileName */
452
-
453
- declare interface VirtualParameter {
454
- }
455
-
456
- /* Excluded from this release type: writeCodeModel */
457
-
458
- export { }