@azure-tools/typespec-ts 0.55.0 → 0.55.2

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 (461) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +24 -19
  3. package/dist/src/context-manager.d.ts +19 -2
  4. package/dist/src/context-manager.d.ts.map +1 -1
  5. package/dist/src/context-manager.js +21 -0
  6. package/dist/src/context-manager.js.map +1 -1
  7. package/dist/src/framework/declaration.d.ts.map +1 -1
  8. package/dist/src/framework/declaration.js +6 -20
  9. package/dist/src/framework/declaration.js.map +1 -1
  10. package/dist/src/framework/hooks/sdk-types.d.ts +9 -0
  11. package/dist/src/framework/hooks/sdk-types.d.ts.map +1 -1
  12. package/dist/src/framework/hooks/sdk-types.js +14 -1
  13. package/dist/src/framework/hooks/sdk-types.js.map +1 -1
  14. package/dist/src/framework/source-file-batch.d.ts +35 -0
  15. package/dist/src/framework/source-file-batch.d.ts.map +1 -0
  16. package/dist/src/framework/source-file-batch.js +128 -0
  17. package/dist/src/framework/source-file-batch.js.map +1 -0
  18. package/dist/src/index.d.ts.map +1 -1
  19. package/dist/src/index.js +84 -66
  20. package/dist/src/index.js.map +1 -1
  21. package/dist/src/{rlc-common/interfaces.d.ts → interfaces.d.ts} +12 -14
  22. package/dist/src/interfaces.d.ts.map +1 -0
  23. package/dist/src/interfaces.js.map +1 -0
  24. package/dist/src/lib.d.ts +17 -5
  25. package/dist/src/lib.d.ts.map +1 -1
  26. package/dist/src/lib.js +24 -17
  27. package/dist/src/lib.js.map +1 -1
  28. package/dist/src/meta-tree.d.ts +4 -4
  29. package/dist/src/meta-tree.d.ts.map +1 -1
  30. package/dist/src/metadata/build-api-extractor-config.d.ts +6 -0
  31. package/dist/src/metadata/build-api-extractor-config.d.ts.map +1 -0
  32. package/dist/src/metadata/build-api-extractor-config.js.map +1 -0
  33. package/dist/src/metadata/build-changelog-file.d.ts +6 -0
  34. package/dist/src/metadata/build-changelog-file.d.ts.map +1 -0
  35. package/dist/src/metadata/build-changelog-file.js.map +1 -0
  36. package/dist/src/metadata/build-es-lint-config.d.ts +6 -0
  37. package/dist/src/metadata/build-es-lint-config.d.ts.map +1 -0
  38. package/dist/src/metadata/build-es-lint-config.js.map +1 -0
  39. package/dist/src/metadata/build-license-file.d.ts.map +1 -0
  40. package/dist/src/metadata/build-license-file.js.map +1 -0
  41. package/dist/src/{rlc-common/metadata → metadata}/build-package-file.d.ts +3 -3
  42. package/dist/src/metadata/build-package-file.d.ts.map +1 -0
  43. package/dist/src/{rlc-common/metadata → metadata}/build-package-file.js +1 -1
  44. package/dist/src/metadata/build-package-file.js.map +1 -0
  45. package/dist/src/metadata/build-readme-file.d.ts +11 -0
  46. package/dist/src/metadata/build-readme-file.d.ts.map +1 -0
  47. package/dist/src/{rlc-common/metadata → metadata}/build-readme-file.js +16 -69
  48. package/dist/src/metadata/build-readme-file.js.map +1 -0
  49. package/dist/src/metadata/build-sample-env-file.d.ts +6 -0
  50. package/dist/src/metadata/build-sample-env-file.d.ts.map +1 -0
  51. package/dist/src/metadata/build-sample-env-file.js.map +1 -0
  52. package/dist/src/{rlc-common/metadata → metadata}/build-test-config.d.ts +3 -3
  53. package/dist/src/metadata/build-test-config.d.ts.map +1 -0
  54. package/dist/src/metadata/build-test-config.js.map +1 -0
  55. package/dist/src/{rlc-common/metadata → metadata}/build-ts-config.d.ts +13 -7
  56. package/dist/src/metadata/build-ts-config.d.ts.map +1 -0
  57. package/dist/src/{rlc-common/metadata → metadata}/build-ts-config.js +24 -8
  58. package/dist/src/metadata/build-ts-config.js.map +1 -0
  59. package/dist/src/metadata/build-vitest-config.d.ts +6 -0
  60. package/dist/src/metadata/build-vitest-config.d.ts.map +1 -0
  61. package/dist/src/metadata/build-vitest-config.js.map +1 -0
  62. package/dist/src/{rlc-common/metadata → metadata}/build-warp-config.d.ts +2 -2
  63. package/dist/src/metadata/build-warp-config.d.ts.map +1 -0
  64. package/dist/src/metadata/build-warp-config.js.map +1 -0
  65. package/dist/src/metadata/package-json/azure-package-common.d.ts.map +1 -0
  66. package/dist/src/metadata/package-json/azure-package-common.js.map +1 -0
  67. package/dist/src/metadata/package-json/build-azure-monorepo-package.d.ts.map +1 -0
  68. package/dist/src/{rlc-common/metadata → metadata}/package-json/build-azure-monorepo-package.js +1 -1
  69. package/dist/src/metadata/package-json/build-azure-monorepo-package.js.map +1 -0
  70. package/dist/src/metadata/package-json/package-common.d.ts.map +1 -0
  71. package/dist/src/metadata/package-json/package-common.js.map +1 -0
  72. package/dist/src/metadata/render-template.d.ts +24 -0
  73. package/dist/src/metadata/render-template.d.ts.map +1 -0
  74. package/dist/src/metadata/render-template.js +148 -0
  75. package/dist/src/metadata/render-template.js.map +1 -0
  76. package/dist/src/metadata/test/build-recorded-client.d.ts +6 -0
  77. package/dist/src/metadata/test/build-recorded-client.d.ts.map +1 -0
  78. package/dist/src/metadata/test/build-recorded-client.js +8 -0
  79. package/dist/src/metadata/test/build-recorded-client.js.map +1 -0
  80. package/dist/src/metadata/test/build-sample-test.d.ts +6 -0
  81. package/dist/src/metadata/test/build-sample-test.d.ts.map +1 -0
  82. package/dist/src/metadata/test/build-sample-test.js +8 -0
  83. package/dist/src/metadata/test/build-sample-test.js.map +1 -0
  84. package/dist/src/metadata/test/build-snippets.d.ts +6 -0
  85. package/dist/src/metadata/test/build-snippets.d.ts.map +1 -0
  86. package/dist/src/{rlc-common → metadata}/test/build-snippets.js +3 -5
  87. package/dist/src/metadata/test/build-snippets.js.map +1 -0
  88. package/dist/src/metadata/test/template.d.ts +4 -0
  89. package/dist/src/metadata/test/template.d.ts.map +1 -0
  90. package/dist/src/metadata/test/template.js +100 -0
  91. package/dist/src/metadata/test/template.js.map +1 -0
  92. package/dist/src/metadata/utils.d.ts +3 -0
  93. package/dist/src/metadata/utils.d.ts.map +1 -0
  94. package/dist/src/metadata/utils.js.map +1 -0
  95. package/dist/src/modular/build-classical-client.d.ts.map +1 -1
  96. package/dist/src/modular/build-classical-client.js +11 -11
  97. package/dist/src/modular/build-classical-client.js.map +1 -1
  98. package/dist/src/modular/build-classical-operation-groups.d.ts.map +1 -1
  99. package/dist/src/modular/build-classical-operation-groups.js +3 -3
  100. package/dist/src/modular/build-classical-operation-groups.js.map +1 -1
  101. package/dist/src/modular/build-client-context.d.ts.map +1 -1
  102. package/dist/src/modular/build-client-context.js +7 -7
  103. package/dist/src/modular/build-client-context.js.map +1 -1
  104. package/dist/src/modular/build-modular-options.js +3 -3
  105. package/dist/src/modular/build-modular-options.js.map +1 -1
  106. package/dist/src/modular/build-operations.d.ts.map +1 -1
  107. package/dist/src/modular/build-operations.js +6 -6
  108. package/dist/src/modular/build-operations.js.map +1 -1
  109. package/dist/src/modular/build-project-files.d.ts.map +1 -1
  110. package/dist/src/modular/build-project-files.js +4 -4
  111. package/dist/src/modular/build-project-files.js.map +1 -1
  112. package/dist/src/modular/build-restore-poller.d.ts.map +1 -1
  113. package/dist/src/modular/build-restore-poller.js +3 -3
  114. package/dist/src/modular/build-restore-poller.js.map +1 -1
  115. package/dist/src/modular/build-root-index.d.ts.map +1 -1
  116. package/dist/src/modular/build-root-index.js +42 -14
  117. package/dist/src/modular/build-root-index.js.map +1 -1
  118. package/dist/src/modular/build-subpath-index.d.ts.map +1 -1
  119. package/dist/src/modular/build-subpath-index.js +17 -4
  120. package/dist/src/modular/build-subpath-index.js.map +1 -1
  121. package/dist/src/modular/emit-models-options.d.ts.map +1 -1
  122. package/dist/src/modular/emit-models-options.js +3 -3
  123. package/dist/src/modular/emit-models-options.js.map +1 -1
  124. package/dist/src/modular/emit-models.d.ts +1 -1
  125. package/dist/src/modular/emit-models.d.ts.map +1 -1
  126. package/dist/src/modular/emit-models.js +32 -25
  127. package/dist/src/modular/emit-models.js.map +1 -1
  128. package/dist/src/modular/emit-samples.d.ts.map +1 -1
  129. package/dist/src/modular/emit-samples.js +5 -5
  130. package/dist/src/modular/emit-samples.js.map +1 -1
  131. package/dist/src/modular/emit-tests.d.ts.map +1 -1
  132. package/dist/src/modular/emit-tests.js +1 -1
  133. package/dist/src/modular/emit-tests.js.map +1 -1
  134. package/dist/src/modular/helpers/classical-operation-helpers.d.ts.map +1 -1
  135. package/dist/src/modular/helpers/classical-operation-helpers.js +11 -11
  136. package/dist/src/modular/helpers/classical-operation-helpers.js.map +1 -1
  137. package/dist/src/modular/helpers/client-helpers.d.ts +6 -1
  138. package/dist/src/modular/helpers/client-helpers.d.ts.map +1 -1
  139. package/dist/src/modular/helpers/client-helpers.js +18 -14
  140. package/dist/src/modular/helpers/client-helpers.js.map +1 -1
  141. package/dist/src/modular/helpers/example-value-helpers.d.ts.map +1 -1
  142. package/dist/src/modular/helpers/example-value-helpers.js +2 -2
  143. package/dist/src/modular/helpers/example-value-helpers.js.map +1 -1
  144. package/dist/src/modular/helpers/naming-helpers.d.ts +1 -1
  145. package/dist/src/modular/helpers/naming-helpers.d.ts.map +1 -1
  146. package/dist/src/modular/helpers/naming-helpers.js +2 -2
  147. package/dist/src/modular/helpers/naming-helpers.js.map +1 -1
  148. package/dist/src/modular/helpers/operation-helpers.d.ts +4 -4
  149. package/dist/src/modular/helpers/operation-helpers.d.ts.map +1 -1
  150. package/dist/src/modular/helpers/operation-helpers.js +25 -26
  151. package/dist/src/modular/helpers/operation-helpers.js.map +1 -1
  152. package/dist/src/modular/helpers/type-helpers.d.ts.map +1 -1
  153. package/dist/src/modular/helpers/type-helpers.js +1 -1
  154. package/dist/src/modular/helpers/type-helpers.js.map +1 -1
  155. package/dist/src/modular/interfaces.d.ts +4 -4
  156. package/dist/src/modular/interfaces.d.ts.map +1 -1
  157. package/dist/src/modular/serialization/build-deserializer-function.d.ts.map +1 -1
  158. package/dist/src/modular/serialization/build-deserializer-function.js +2 -2
  159. package/dist/src/modular/serialization/build-deserializer-function.js.map +1 -1
  160. package/dist/src/modular/serialization/build-serializer-function.d.ts.map +1 -1
  161. package/dist/src/modular/serialization/build-serializer-function.js +2 -2
  162. package/dist/src/modular/serialization/build-serializer-function.js.map +1 -1
  163. package/dist/src/modular/serialization/build-xml-serializer-function.d.ts.map +1 -1
  164. package/dist/src/modular/serialization/build-xml-serializer-function.js +1 -1
  165. package/dist/src/modular/serialization/build-xml-serializer-function.js.map +1 -1
  166. package/dist/src/modular/type-expressions/get-enum-expression.js +1 -1
  167. package/dist/src/modular/type-expressions/get-enum-expression.js.map +1 -1
  168. package/dist/src/modular/type-expressions/get-nullable-expression.js +1 -1
  169. package/dist/src/modular/type-expressions/get-nullable-expression.js.map +1 -1
  170. package/dist/src/modular/type-expressions/get-type-expression.d.ts.map +1 -1
  171. package/dist/src/modular/type-expressions/get-type-expression.js +3 -3
  172. package/dist/src/modular/type-expressions/get-type-expression.js.map +1 -1
  173. package/dist/src/transform/transform-api-version-info.d.ts +1 -1
  174. package/dist/src/transform/transform-api-version-info.d.ts.map +1 -1
  175. package/dist/src/transform/transform-api-version-info.js +4 -3
  176. package/dist/src/transform/transform-api-version-info.js.map +1 -1
  177. package/dist/src/transform/{transfrom-rlc-options.d.ts → transform-client-options.d.ts} +3 -3
  178. package/dist/src/transform/transform-client-options.d.ts.map +1 -0
  179. package/dist/src/transform/{transfrom-rlc-options.js → transform-client-options.js} +9 -13
  180. package/dist/src/transform/transform-client-options.js.map +1 -0
  181. package/dist/src/transform/transform-helper-function-details.d.ts +1 -1
  182. package/dist/src/transform/transform-helper-function-details.d.ts.map +1 -1
  183. package/dist/src/transform/transform-helper-function-details.js +4 -4
  184. package/dist/src/transform/transform-helper-function-details.js.map +1 -1
  185. package/dist/src/transform/transform-parameters.d.ts +1 -1
  186. package/dist/src/transform/transform-parameters.d.ts.map +1 -1
  187. package/dist/src/transform/transform-parameters.js +11 -11
  188. package/dist/src/transform/transform-parameters.js.map +1 -1
  189. package/dist/src/transform/transform-paths.d.ts +1 -1
  190. package/dist/src/transform/transform-paths.d.ts.map +1 -1
  191. package/dist/src/transform/transform-paths.js +5 -4
  192. package/dist/src/transform/transform-paths.js.map +1 -1
  193. package/dist/src/transform/transform-responses.d.ts +1 -1
  194. package/dist/src/transform/transform-responses.d.ts.map +1 -1
  195. package/dist/src/transform/transform-responses.js +19 -18
  196. package/dist/src/transform/transform-responses.js.map +1 -1
  197. package/dist/src/transform/transform-schemas.js +5 -5
  198. package/dist/src/transform/transform-schemas.js.map +1 -1
  199. package/dist/src/transform/transform-telemetry-info.d.ts +1 -1
  200. package/dist/src/transform/transform-telemetry-info.d.ts.map +1 -1
  201. package/dist/src/transform/transform-telemetry-info.js +2 -2
  202. package/dist/src/transform/transform-telemetry-info.js.map +1 -1
  203. package/dist/src/transform/transform.d.ts +2 -2
  204. package/dist/src/transform/transform.d.ts.map +1 -1
  205. package/dist/src/transform/transform.js +9 -10
  206. package/dist/src/transform/transform.js.map +1 -1
  207. package/dist/src/utils/api-version-util.d.ts.map +1 -0
  208. package/dist/src/utils/api-version-util.js.map +1 -0
  209. package/dist/src/utils/client-utils.d.ts +5 -5
  210. package/dist/src/utils/client-utils.d.ts.map +1 -1
  211. package/dist/src/utils/client-utils.js +10 -10
  212. package/dist/src/utils/client-utils.js.map +1 -1
  213. package/dist/src/utils/cross-language-def.d.ts.map +1 -1
  214. package/dist/src/utils/cross-language-def.js +3 -3
  215. package/dist/src/utils/cross-language-def.js.map +1 -1
  216. package/dist/src/utils/emit-util.d.ts +2 -2
  217. package/dist/src/utils/emit-util.d.ts.map +1 -1
  218. package/dist/src/utils/emit-util.js +2 -2
  219. package/dist/src/utils/emit-util.js.map +1 -1
  220. package/dist/src/utils/imports-util.d.ts.map +1 -0
  221. package/dist/src/{rlc-common/helpers → utils}/imports-util.js +6 -6
  222. package/dist/src/utils/imports-util.js.map +1 -0
  223. package/dist/src/utils/interfaces.d.ts +3 -4
  224. package/dist/src/utils/interfaces.d.ts.map +1 -1
  225. package/dist/src/utils/model-utils.d.ts +1 -1
  226. package/dist/src/utils/model-utils.d.ts.map +1 -1
  227. package/dist/src/utils/model-utils.js +4 -2
  228. package/dist/src/utils/model-utils.js.map +1 -1
  229. package/dist/src/{rlc-common/helpers → utils}/name-constructors.d.ts +2 -2
  230. package/dist/src/utils/name-constructors.d.ts.map +1 -0
  231. package/dist/src/utils/name-constructors.js.map +1 -0
  232. package/dist/src/utils/name-utils.d.ts.map +1 -0
  233. package/dist/src/utils/name-utils.js.map +1 -0
  234. package/dist/src/utils/namespace-utils.js +4 -4
  235. package/dist/src/utils/namespace-utils.js.map +1 -1
  236. package/dist/src/utils/operation-helpers.d.ts +16 -0
  237. package/dist/src/utils/operation-helpers.d.ts.map +1 -0
  238. package/dist/src/utils/operation-helpers.js.map +1 -0
  239. package/dist/src/utils/operation-util.d.ts +2 -2
  240. package/dist/src/utils/operation-util.d.ts.map +1 -1
  241. package/dist/src/utils/operation-util.js +17 -18
  242. package/dist/src/utils/operation-util.js.map +1 -1
  243. package/dist/src/utils/parameter-utils.d.ts +1 -1
  244. package/dist/src/utils/parameter-utils.d.ts.map +1 -1
  245. package/dist/src/utils/parameter-utils.js +2 -4
  246. package/dist/src/utils/parameter-utils.js.map +1 -1
  247. package/dist/src/{rlc-common/helpers → utils}/schema-helpers.d.ts +2 -2
  248. package/dist/src/utils/schema-helpers.d.ts.map +1 -0
  249. package/dist/src/utils/schema-helpers.js.map +1 -0
  250. package/dist/src/utils/type-util.d.ts.map +1 -0
  251. package/dist/src/utils/type-util.js.map +1 -0
  252. package/dist/tsconfig.tsbuildinfo +1 -1
  253. package/package.json +36 -46
  254. package/src/context-manager.ts +25 -2
  255. package/src/framework/declaration.ts +8 -20
  256. package/src/framework/hooks/sdk-types.ts +15 -1
  257. package/src/framework/source-file-batch.ts +140 -0
  258. package/src/index.ts +104 -107
  259. package/src/{rlc-common/interfaces.ts → interfaces.ts} +14 -16
  260. package/src/lib.ts +43 -23
  261. package/src/meta-tree.ts +4 -4
  262. package/src/{rlc-common/metadata → metadata}/build-api-extractor-config.ts +2 -2
  263. package/src/{rlc-common/metadata → metadata}/build-changelog-file.ts +3 -3
  264. package/src/{rlc-common/metadata → metadata}/build-es-lint-config.ts +2 -2
  265. package/src/{rlc-common/metadata → metadata}/build-package-file.ts +6 -6
  266. package/src/{rlc-common/metadata → metadata}/build-readme-file.ts +25 -99
  267. package/src/{rlc-common/metadata → metadata}/build-sample-env-file.ts +2 -2
  268. package/src/{rlc-common/metadata → metadata}/build-test-config.ts +4 -4
  269. package/src/{rlc-common/metadata → metadata}/build-ts-config.ts +28 -11
  270. package/src/{rlc-common/metadata → metadata}/build-vitest-config.ts +2 -2
  271. package/src/{rlc-common/metadata → metadata}/build-warp-config.ts +2 -2
  272. package/src/{rlc-common/metadata → metadata}/package-json/build-azure-monorepo-package.ts +1 -1
  273. package/src/metadata/render-template.ts +202 -0
  274. package/src/metadata/test/build-recorded-client.ts +9 -0
  275. package/src/metadata/test/build-sample-test.ts +9 -0
  276. package/src/{rlc-common → metadata}/test/build-snippets.ts +5 -7
  277. package/src/metadata/test/template.ts +101 -0
  278. package/src/{rlc-common/metadata → metadata}/utils.ts +2 -2
  279. package/src/modular/build-classical-client.ts +11 -15
  280. package/src/modular/build-classical-operation-groups.ts +3 -3
  281. package/src/modular/build-client-context.ts +7 -7
  282. package/src/modular/build-modular-options.ts +3 -3
  283. package/src/modular/build-operations.ts +6 -6
  284. package/src/modular/build-project-files.ts +4 -5
  285. package/src/modular/build-restore-poller.ts +3 -3
  286. package/src/modular/build-root-index.ts +57 -19
  287. package/src/modular/build-subpath-index.ts +26 -5
  288. package/src/modular/emit-models-options.ts +3 -3
  289. package/src/modular/emit-models.ts +32 -26
  290. package/src/modular/emit-samples.ts +5 -5
  291. package/src/modular/emit-tests.ts +1 -1
  292. package/src/modular/helpers/classical-operation-helpers.ts +11 -11
  293. package/src/modular/helpers/client-helpers.ts +19 -16
  294. package/src/modular/helpers/example-value-helpers.ts +2 -2
  295. package/src/modular/helpers/naming-helpers.ts +2 -2
  296. package/src/modular/helpers/operation-helpers.ts +27 -27
  297. package/src/modular/helpers/type-helpers.ts +1 -1
  298. package/src/modular/interfaces.ts +4 -4
  299. package/src/modular/serialization/build-deserializer-function.ts +2 -2
  300. package/src/modular/serialization/build-serializer-function.ts +2 -2
  301. package/src/modular/serialization/build-xml-serializer-function.ts +1 -1
  302. package/src/modular/type-expressions/get-enum-expression.ts +1 -1
  303. package/src/modular/type-expressions/get-nullable-expression.ts +1 -1
  304. package/src/modular/type-expressions/get-type-expression.ts +3 -3
  305. package/src/transform/transform-api-version-info.ts +4 -10
  306. package/src/transform/{transfrom-rlc-options.ts → transform-client-options.ts} +12 -22
  307. package/src/transform/transform-helper-function-details.ts +5 -5
  308. package/src/transform/transform-parameters.ts +12 -12
  309. package/src/transform/transform-paths.ts +5 -12
  310. package/src/transform/transform-responses.ts +19 -19
  311. package/src/transform/transform-schemas.ts +5 -5
  312. package/src/transform/transform-telemetry-info.ts +3 -3
  313. package/src/transform/transform.ts +13 -18
  314. package/src/utils/client-utils.ts +11 -11
  315. package/src/utils/cross-language-def.ts +3 -3
  316. package/src/utils/emit-util.ts +3 -3
  317. package/src/{rlc-common/helpers → utils}/imports-util.ts +6 -6
  318. package/src/utils/interfaces.ts +3 -4
  319. package/src/utils/model-utils.ts +7 -8
  320. package/src/{rlc-common/helpers → utils}/name-constructors.ts +2 -2
  321. package/src/utils/namespace-utils.ts +4 -4
  322. package/src/{rlc-common/helpers → utils}/operation-helpers.ts +12 -12
  323. package/src/utils/operation-util.ts +19 -33
  324. package/src/utils/parameter-utils.ts +2 -4
  325. package/src/{rlc-common/helpers → utils}/schema-helpers.ts +2 -2
  326. package/dist/src/rlc-common/helpers/api-version-util.d.ts.map +0 -1
  327. package/dist/src/rlc-common/helpers/api-version-util.js.map +0 -1
  328. package/dist/src/rlc-common/helpers/imports-util.d.ts.map +0 -1
  329. package/dist/src/rlc-common/helpers/imports-util.js.map +0 -1
  330. package/dist/src/rlc-common/helpers/name-constructors.d.ts.map +0 -1
  331. package/dist/src/rlc-common/helpers/name-constructors.js.map +0 -1
  332. package/dist/src/rlc-common/helpers/name-utils.d.ts.map +0 -1
  333. package/dist/src/rlc-common/helpers/name-utils.js.map +0 -1
  334. package/dist/src/rlc-common/helpers/operation-helpers.d.ts +0 -16
  335. package/dist/src/rlc-common/helpers/operation-helpers.d.ts.map +0 -1
  336. package/dist/src/rlc-common/helpers/operation-helpers.js.map +0 -1
  337. package/dist/src/rlc-common/helpers/schema-helpers.d.ts.map +0 -1
  338. package/dist/src/rlc-common/helpers/schema-helpers.js.map +0 -1
  339. package/dist/src/rlc-common/helpers/type-util.d.ts.map +0 -1
  340. package/dist/src/rlc-common/helpers/type-util.js.map +0 -1
  341. package/dist/src/rlc-common/index.d.ts +0 -23
  342. package/dist/src/rlc-common/index.d.ts.map +0 -1
  343. package/dist/src/rlc-common/index.js +0 -25
  344. package/dist/src/rlc-common/index.js.map +0 -1
  345. package/dist/src/rlc-common/interfaces.d.ts.map +0 -1
  346. package/dist/src/rlc-common/interfaces.js.map +0 -1
  347. package/dist/src/rlc-common/metadata/build-api-extractor-config.d.ts +0 -6
  348. package/dist/src/rlc-common/metadata/build-api-extractor-config.d.ts.map +0 -1
  349. package/dist/src/rlc-common/metadata/build-api-extractor-config.js.map +0 -1
  350. package/dist/src/rlc-common/metadata/build-changelog-file.d.ts +0 -6
  351. package/dist/src/rlc-common/metadata/build-changelog-file.d.ts.map +0 -1
  352. package/dist/src/rlc-common/metadata/build-changelog-file.js.map +0 -1
  353. package/dist/src/rlc-common/metadata/build-es-lint-config.d.ts +0 -6
  354. package/dist/src/rlc-common/metadata/build-es-lint-config.d.ts.map +0 -1
  355. package/dist/src/rlc-common/metadata/build-es-lint-config.js.map +0 -1
  356. package/dist/src/rlc-common/metadata/build-license-file.d.ts.map +0 -1
  357. package/dist/src/rlc-common/metadata/build-license-file.js.map +0 -1
  358. package/dist/src/rlc-common/metadata/build-package-file.d.ts.map +0 -1
  359. package/dist/src/rlc-common/metadata/build-package-file.js.map +0 -1
  360. package/dist/src/rlc-common/metadata/build-readme-file.d.ts +0 -11
  361. package/dist/src/rlc-common/metadata/build-readme-file.d.ts.map +0 -1
  362. package/dist/src/rlc-common/metadata/build-readme-file.js.map +0 -1
  363. package/dist/src/rlc-common/metadata/build-sample-env-file.d.ts +0 -6
  364. package/dist/src/rlc-common/metadata/build-sample-env-file.d.ts.map +0 -1
  365. package/dist/src/rlc-common/metadata/build-sample-env-file.js.map +0 -1
  366. package/dist/src/rlc-common/metadata/build-test-config.d.ts.map +0 -1
  367. package/dist/src/rlc-common/metadata/build-test-config.js.map +0 -1
  368. package/dist/src/rlc-common/metadata/build-ts-config.d.ts.map +0 -1
  369. package/dist/src/rlc-common/metadata/build-ts-config.js.map +0 -1
  370. package/dist/src/rlc-common/metadata/build-vitest-config.d.ts +0 -6
  371. package/dist/src/rlc-common/metadata/build-vitest-config.d.ts.map +0 -1
  372. package/dist/src/rlc-common/metadata/build-vitest-config.js.map +0 -1
  373. package/dist/src/rlc-common/metadata/build-warp-config.d.ts.map +0 -1
  374. package/dist/src/rlc-common/metadata/build-warp-config.js.map +0 -1
  375. package/dist/src/rlc-common/metadata/package-json/azure-package-common.d.ts.map +0 -1
  376. package/dist/src/rlc-common/metadata/package-json/azure-package-common.js.map +0 -1
  377. package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.d.ts.map +0 -1
  378. package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.js.map +0 -1
  379. package/dist/src/rlc-common/metadata/package-json/package-common.d.ts.map +0 -1
  380. package/dist/src/rlc-common/metadata/package-json/package-common.js.map +0 -1
  381. package/dist/src/rlc-common/metadata/utils.d.ts +0 -3
  382. package/dist/src/rlc-common/metadata/utils.d.ts.map +0 -1
  383. package/dist/src/rlc-common/metadata/utils.js.map +0 -1
  384. package/dist/src/rlc-common/static/paginate-content.d.ts +0 -2
  385. package/dist/src/rlc-common/static/paginate-content.d.ts.map +0 -1
  386. package/dist/src/rlc-common/static/paginate-content.js +0 -345
  387. package/dist/src/rlc-common/static/paginate-content.js.map +0 -1
  388. package/dist/src/rlc-common/static/polling-content.d.ts +0 -2
  389. package/dist/src/rlc-common/static/polling-content.d.ts.map +0 -1
  390. package/dist/src/rlc-common/static/polling-content.js +0 -225
  391. package/dist/src/rlc-common/static/polling-content.js.map +0 -1
  392. package/dist/src/rlc-common/static/sample-template.d.ts +0 -2
  393. package/dist/src/rlc-common/static/sample-template.d.ts.map +0 -1
  394. package/dist/src/rlc-common/static/sample-template.js +0 -56
  395. package/dist/src/rlc-common/static/sample-template.js.map +0 -1
  396. package/dist/src/rlc-common/static/serialize-helper.d.ts +0 -6
  397. package/dist/src/rlc-common/static/serialize-helper.d.ts.map +0 -1
  398. package/dist/src/rlc-common/static/serialize-helper.js +0 -31
  399. package/dist/src/rlc-common/static/serialize-helper.js.map +0 -1
  400. package/dist/src/rlc-common/test/build-karma-config.d.ts +0 -6
  401. package/dist/src/rlc-common/test/build-karma-config.d.ts.map +0 -1
  402. package/dist/src/rlc-common/test/build-karma-config.js +0 -11
  403. package/dist/src/rlc-common/test/build-karma-config.js.map +0 -1
  404. package/dist/src/rlc-common/test/build-recorded-client.d.ts +0 -6
  405. package/dist/src/rlc-common/test/build-recorded-client.d.ts.map +0 -1
  406. package/dist/src/rlc-common/test/build-recorded-client.js +0 -14
  407. package/dist/src/rlc-common/test/build-recorded-client.js.map +0 -1
  408. package/dist/src/rlc-common/test/build-sample-test.d.ts +0 -6
  409. package/dist/src/rlc-common/test/build-sample-test.d.ts.map +0 -1
  410. package/dist/src/rlc-common/test/build-sample-test.js +0 -11
  411. package/dist/src/rlc-common/test/build-sample-test.js.map +0 -1
  412. package/dist/src/rlc-common/test/build-snippets.d.ts +0 -6
  413. package/dist/src/rlc-common/test/build-snippets.d.ts.map +0 -1
  414. package/dist/src/rlc-common/test/build-snippets.js.map +0 -1
  415. package/dist/src/rlc-common/test/template.d.ts +0 -5
  416. package/dist/src/rlc-common/test/template.d.ts.map +0 -1
  417. package/dist/src/rlc-common/test/template.js +0 -227
  418. package/dist/src/rlc-common/test/template.js.map +0 -1
  419. package/dist/src/transform/transfrom-rlc-options.d.ts.map +0 -1
  420. package/dist/src/transform/transfrom-rlc-options.js.map +0 -1
  421. package/src/rlc-common/index.ts +0 -25
  422. package/src/rlc-common/static/paginate-content.ts +0 -345
  423. package/src/rlc-common/static/polling-content.ts +0 -225
  424. package/src/rlc-common/static/sample-template.ts +0 -56
  425. package/src/rlc-common/static/serialize-helper.ts +0 -34
  426. package/src/rlc-common/test/build-karma-config.ts +0 -12
  427. package/src/rlc-common/test/build-recorded-client.ts +0 -15
  428. package/src/rlc-common/test/build-sample-test.ts +0 -12
  429. package/src/rlc-common/test/template.ts +0 -229
  430. /package/dist/src/{rlc-common/interfaces.js → interfaces.js} +0 -0
  431. /package/dist/src/{rlc-common/metadata → metadata}/build-api-extractor-config.js +0 -0
  432. /package/dist/src/{rlc-common/metadata → metadata}/build-changelog-file.js +0 -0
  433. /package/dist/src/{rlc-common/metadata → metadata}/build-es-lint-config.js +0 -0
  434. /package/dist/src/{rlc-common/metadata → metadata}/build-license-file.d.ts +0 -0
  435. /package/dist/src/{rlc-common/metadata → metadata}/build-license-file.js +0 -0
  436. /package/dist/src/{rlc-common/metadata → metadata}/build-sample-env-file.js +0 -0
  437. /package/dist/src/{rlc-common/metadata → metadata}/build-test-config.js +0 -0
  438. /package/dist/src/{rlc-common/metadata → metadata}/build-vitest-config.js +0 -0
  439. /package/dist/src/{rlc-common/metadata → metadata}/build-warp-config.js +0 -0
  440. /package/dist/src/{rlc-common/metadata → metadata}/package-json/azure-package-common.d.ts +0 -0
  441. /package/dist/src/{rlc-common/metadata → metadata}/package-json/azure-package-common.js +0 -0
  442. /package/dist/src/{rlc-common/metadata → metadata}/package-json/build-azure-monorepo-package.d.ts +0 -0
  443. /package/dist/src/{rlc-common/metadata → metadata}/package-json/package-common.d.ts +0 -0
  444. /package/dist/src/{rlc-common/metadata → metadata}/package-json/package-common.js +0 -0
  445. /package/dist/src/{rlc-common/metadata → metadata}/utils.js +0 -0
  446. /package/dist/src/{rlc-common/helpers → utils}/api-version-util.d.ts +0 -0
  447. /package/dist/src/{rlc-common/helpers → utils}/api-version-util.js +0 -0
  448. /package/dist/src/{rlc-common/helpers → utils}/imports-util.d.ts +0 -0
  449. /package/dist/src/{rlc-common/helpers → utils}/name-constructors.js +0 -0
  450. /package/dist/src/{rlc-common/helpers → utils}/name-utils.d.ts +0 -0
  451. /package/dist/src/{rlc-common/helpers → utils}/name-utils.js +0 -0
  452. /package/dist/src/{rlc-common/helpers → utils}/operation-helpers.js +0 -0
  453. /package/dist/src/{rlc-common/helpers → utils}/schema-helpers.js +0 -0
  454. /package/dist/src/{rlc-common/helpers → utils}/type-util.d.ts +0 -0
  455. /package/dist/src/{rlc-common/helpers → utils}/type-util.js +0 -0
  456. /package/src/{rlc-common/metadata → metadata}/build-license-file.ts +0 -0
  457. /package/src/{rlc-common/metadata → metadata}/package-json/azure-package-common.ts +0 -0
  458. /package/src/{rlc-common/metadata → metadata}/package-json/package-common.ts +0 -0
  459. /package/src/{rlc-common/helpers → utils}/api-version-util.ts +0 -0
  460. /package/src/{rlc-common/helpers → utils}/name-utils.ts +0 -0
  461. /package/src/{rlc-common/helpers → utils}/type-util.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"naming-helpers.d.ts","sourceRoot":"","sources":["../../../../src/modular/helpers/naming-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACjG,OAAO,EAAE,QAAQ,EAAqC,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAEhF;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAEzF;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EA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BAAgB,CAC9B,SAAS,EAAE,gBAAgB,EAC3B,UAAU,CAAC,EAAE,UAAU,GACtB,WAAW,CAgBb;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAKxE;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,MAAM,EAAE,EAClB,QAAQ,EAAE,QAAQ,EAClB,SAAS,GAAE,MAAW,EACtB,KAAK,GAAE,MAA4B,GAClC,MAAM,CAYR;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,IAAI,CAAC,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,CAQ1F"}
@@ -1,4 +1,4 @@
1
- import { NameType, normalizeName, ReservedModelNames } from "../../rlc-common/index.js";
1
+ import { NameType, normalizeName, ReservedModelNames } from "../../utils/name-utils.js";
2
2
  export function getClientName(client) {
3
3
  return client.name.replace(/Client$/, "");
4
4
  }
@@ -7,7 +7,7 @@ export function getClassicalClientName(client) {
7
7
  }
8
8
  export function getOperationName(operation, dpgContext) {
9
9
  const norm = normalizeName(operation.name, NameType.Method, true);
10
- const isDataplane = dpgContext !== undefined && !dpgContext.rlcOptions?.azureArm;
10
+ const isDataplane = dpgContext !== undefined && !dpgContext.emitterOptions?.azureArm;
11
11
  if (isReservedName(operation.name, NameType.Method) && isDataplane) {
12
12
  return {
13
13
  name: norm,
@@ -1 +1 @@
1
- {"version":3,"file":"naming-helpers.js","sourceRoot":"","sources":["../../../../src/modular/helpers/naming-helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAIxF,MAAM,UAAU,aAAa,CAAC,MAA0C;IACtE,OAAO,MA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CAAC;QAChC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,SAAS,CAAI,KAA2B;IACtD,OAAO,OAAO,KAAK,KAAK,WAAW,IAAI,KAAK,KAAK,IAAI,CAAC;AACxD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAAY,EAAE,aAA0B;IAChF,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,OAAO,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;QACrC,UAAU,GAAG,GAAG,IAAI,IAAI,OAAO,EAAE,CAAC;QAClC,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -37,16 +37,16 @@ export declare function getRequestModelProperties(context: SdkContext, modelProp
37
37
  }, propertyPath?: string, overrides?: ModelOverrideOptions, enableFlatten?: boolean): Array<[string, string]>;
38
38
  /**
39
39
  *
40
- * This function helps translating an HLC request to RLC request,
41
- * extracting properties from body and headers and building the RLC response object
40
+ * This function helps translating a high-level request to a REST-level request,
41
+ * extracting properties from body and headers and building the REST-level request object
42
42
  */
43
43
  export declare function getRequestModelMapping(context: SdkContext, modelPropertyType: SdkModelType & {
44
44
  optional?: boolean;
45
45
  }, propertyPath?: string, overrides?: ModelOverrideOptions, enableFlatten?: boolean): string[];
46
46
  export declare function getPropertySerializedName(property: SdkHttpParameter | SdkModelPropertyType): string;
47
47
  /**
48
- * This function helps translating an RLC response to an HLC response,
49
- * extracting properties from body and headers and building the HLC response object
48
+ * This function helps translating a REST-level response to a high-level response,
49
+ * extracting properties from body and headers and building the high-level response object
50
50
  */
51
51
  export declare function getResponseMapping(context: SdkContext, type: SdkType, propertyPath?: string, overrides?: ModelOverrideOptions, enableFlatten?: boolean): string[];
52
52
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"operation-helpers.d.ts","sourceRoot":"","sources":["../../../../src/modular/helpers/operation-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EAGb,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,SAAS,EAET,oBAAoB,EACpB,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,EACxB,OAAO,EACR,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EACL,4BAA4B,EAC5B,YAAY,EAGZ,6BAA6B,EAC9B,MAAM,UAAU,CAAC;AAQlB,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAUL,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAevC,OAAO,EAIL,oBAAoB,EACrB,MAAM,qCAAqC,CAAC;AAqC7C,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,gBAAgB,CAAC,EACpC,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,GACvC,YAAY,CAAC,4BAA4B,CAAC,CAqD5C;AAED,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,gBAAgB,CAAC,GACnC,YAAY,CAAC,4BAA4B,CAAC,CA6R5C;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,CAClD,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,gBAAgB,GAC1B,YAAY,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAsCxD;AA6GD;;;GAGG;AACH,wBAAgB,6CAA6C,CAC3D,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,gBAAgB,GAC1B,YAAY,CAAC,4BAA4B,CAAC,GA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,CAqBxB;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,EAAE,CAOxD;AA8DD,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,gBAAgB,GAAG,oBAAoB,EACjD,YAAY,CAAC,EAAE,MAAM,UAStB;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,gBAAgB,GAAG,oBAAoB,EACjD,YAAY,CAAC,EAAE,MAAM,UAetB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,CAwBvE;AA+BD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,gBAAgB,CAAC,WAAW,CAAC,GACvC,wBAAwB,EAAE,CAY5B;AAsGD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,gBAAgB,CAAC,GAAG,MAAM,CAOzF;AAyCD;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,gBAAgB,GAC1B;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CA2C5C;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,CAClD,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,gBAAgB,CAAC,EACpC,QAAQ,EAAE,OAAO,GAChB,6BAA6B,CAmC/B"}
@@ -8,8 +8,8 @@ import { useDependencies } from "../../framework/hooks/use-dependencies.js";
8
8
  import { resolveReference } from "../../framework/reference.js";
9
9
  import { refkey } from "../../framework/refkey.js";
10
10
  import { reportDiagnostic } from "../../lib.js";
11
- import { NameType, normalizeName } from "../../rlc-common/index.js";
12
11
  import { isAzureCoreErrorType } from "../../utils/model-utils.js";
12
+ import { NameType, normalizeName } from "../../utils/name-utils.js";
13
13
  import { getCollectionFormatFromArrayEncoding, getCollectionFormatHelper, getCollectionFormatParseHelper, hasCollectionFormatInfo, hasDualFormatSupport, isBinaryPayload, isMultipartPayload, isXmlPayload, KnownCollectionFormat, } from "../../utils/operation-util.js";
14
14
  import { AzurePollingDependencies } from "../external-dependencies.js";
15
15
  import { buildModelDeserializer, buildPropertyDeserializer, } from "../serialization/build-deserializer-function.js";
@@ -122,11 +122,11 @@ export function getDeserializePrivateFunction(context, method) {
122
122
  }
123
123
  else if (response.type) {
124
124
  // When response.optional is true, some HTTP responses have no body (e.g. 204), so
125
- // the return type must include undefined to reflect that possibility.
125
+ // the return type must include void to reflect that possibility.
126
126
  const baseType = getTypeExpression(context, response.type);
127
127
  returnType = {
128
128
  name: response.name ?? "",
129
- type: response.optional ? `${baseType} | undefined` : baseType,
129
+ type: response.optional ? `${baseType} | void` : baseType,
130
130
  };
131
131
  }
132
132
  else if (isHeadAsBooleanOperation(operation)) {
@@ -289,12 +289,11 @@ export function getDeserializePrivateFunction(context, method) {
289
289
  }
290
290
  if (deserializeFunctionName) {
291
291
  if (needsBodyGuard) {
292
- // Use ternary form: return result.body ? deserializer(result.body) : undefined
293
- statements.push(`return ${deserializedRoot} ? ${deserializeFunctionName}(${deserializedRoot})${multipartCastSuffix} : undefined`);
294
- }
295
- else {
296
- statements.push(`return ${deserializeFunctionName}(${deserializedRoot})${multipartCastSuffix}`);
292
+ statements.push(`if (!${deserializedRoot}) {
293
+ return;
294
+ }`);
297
295
  }
296
+ statements.push(`return ${deserializeFunctionName}(${deserializedRoot})${multipartCastSuffix}`);
298
297
  }
299
298
  else if (isAzureCoreErrorType(context.program, deserializedType.__raw)) {
300
299
  statements.push(`return ${deserializedRoot}${multipartCastSuffix}`);
@@ -333,8 +332,8 @@ export function getDeserializePrivateFunction(context, method) {
333
332
  */
334
333
  export function getDeserializeHeadersPrivateFunction(context, operation) {
335
334
  const responseHeaders = getResponseHeaders(operation.operation.responses);
336
- const isResponseHeadersEnabled = context.rlcOptions?.includeHeadersInResponse === true;
337
- const isStorageCompatEnabled = context.rlcOptions?.enableStorageCompat === true;
335
+ const isResponseHeadersEnabled = context.emitterOptions?.includeHeadersInResponse === true;
336
+ const isStorageCompatEnabled = context.emitterOptions?.enableStorageCompat === true;
338
337
  // Only generate if headers exist and a relevant feature is enabled
339
338
  if (responseHeaders.length === 0 || (!isResponseHeadersEnabled && !isStorageCompatEnabled)) {
340
339
  return undefined;
@@ -450,7 +449,7 @@ function getExceptionResponseHeaders(exceptions) {
450
449
  * Only generated when exception headers are present and include-headers-in-response is enabled.
451
450
  */
452
451
  export function getDeserializeExceptionHeadersPrivateFunction(context, operation) {
453
- const isResponseHeadersEnabled = context.rlcOptions?.includeHeadersInResponse === true;
452
+ const isResponseHeadersEnabled = context.emitterOptions?.includeHeadersInResponse === true;
454
453
  if (!isResponseHeadersEnabled) {
455
454
  return undefined;
456
455
  }
@@ -495,7 +494,7 @@ function getExceptionThrowStatement(context, operation) {
495
494
  const statements = [];
496
495
  const createRestErrorReference = resolveReference(useDependencies().createRestError);
497
496
  const { customized, defaultDeserializer, defaultXmlDeserializer, defaultIsXmlOnly } = getExceptionDetails(context, operation);
498
- const isResponseHeadersEnabled = context.rlcOptions?.includeHeadersInResponse === true;
497
+ const isResponseHeadersEnabled = context.emitterOptions?.includeHeadersInResponse === true;
499
498
  // Check if exception headers function exists and build the call
500
499
  const exceptionHeaders = getExceptionResponseHeaders(operation.operation.exceptions);
501
500
  const hasExceptionHeaders = isResponseHeadersEnabled && exceptionHeaders.length > 0;
@@ -685,8 +684,8 @@ export function getOperationFunction(context, method, clientType) {
685
684
  const response = operation.response;
686
685
  const responseHeaders = getResponseHeaders(operation.operation.responses);
687
686
  const hasHeaderOnlyResponse = !response.type && responseHeaders.length > 0;
688
- const isResponseHeadersEnabled = context.rlcOptions?.includeHeadersInResponse === true;
689
- const isStorageCompatEnabled = context.rlcOptions?.enableStorageCompat === true;
687
+ const isResponseHeadersEnabled = context.emitterOptions?.includeHeadersInResponse === true;
688
+ const isStorageCompatEnabled = context.emitterOptions?.enableStorageCompat === true;
690
689
  // Track the raw body type separately for storage-compat (before header merging)
691
690
  const hasResponseBody = !!response.type;
692
691
  let bodyType = "void";
@@ -712,14 +711,14 @@ export function getOperationFunction(context, method, clientType) {
712
711
  const baseCompositeType = buildCompositeResponseType(context, type, responseHeaders);
713
712
  returnType = {
714
713
  name: type.name ?? "",
715
- type: response.optional ? `${baseCompositeType} | undefined` : baseCompositeType,
714
+ type: response.optional ? `${baseCompositeType} | void` : baseCompositeType,
716
715
  };
717
716
  }
718
717
  else {
719
718
  const baseType = getTypeExpression(context, type);
720
719
  returnType = {
721
720
  name: type.name ?? "",
722
- type: response.optional ? `${baseType} | undefined` : baseType,
721
+ type: response.optional ? `${baseType} | void` : baseType,
723
722
  };
724
723
  }
725
724
  }
@@ -1076,7 +1075,7 @@ export function getOperationOptionsName(method, includeGroupName = false) {
1076
1075
  }
1077
1076
  /**
1078
1077
  * This function build the request parameters that we will provide to the
1079
- * RLC internally. This will translate High Level parameters into the RLC ones.
1078
+ * REST-level request internally. This will translate high-level parameters into the REST-level ones.
1080
1079
  * Figuring out what goes in headers, body, path and qsp.
1081
1080
  */
1082
1081
  function getHeaderAndBodyParameters(dpgContext, operation, optionalParamName = "options") {
@@ -1243,7 +1242,7 @@ export function getParameterMap(context, param, paramAccessor) {
1243
1242
  // Special case for api-version parameters with default values
1244
1243
  if (param.isApiVersionParam && param.clientDefaultValue) {
1245
1244
  // For multi-service, use only the default value (don't reference context.apiVersion)
1246
- if (context.rlcOptions?.isMultiService) {
1245
+ if (context.emitterOptions?.isMultiService) {
1247
1246
  return `"${serializedName}": "${param.clientDefaultValue}"`;
1248
1247
  }
1249
1248
  return `"${serializedName}": ${param.onClient ? "context." : ""}${param.name} ?? "${param.clientDefaultValue}"`;
@@ -1612,8 +1611,8 @@ export function getRequestModelProperties(context, modelPropertyType, propertyPa
1612
1611
  }
1613
1612
  /**
1614
1613
  *
1615
- * This function helps translating an HLC request to RLC request,
1616
- * extracting properties from body and headers and building the RLC response object
1614
+ * This function helps translating a high-level request to a REST-level request,
1615
+ * extracting properties from body and headers and building the REST-level request object
1617
1616
  */
1618
1617
  export function getRequestModelMapping(context, modelPropertyType, propertyPath = "body", overrides, enableFlatten = true) {
1619
1618
  return getRequestModelProperties(context, modelPropertyType, propertyPath, overrides, enableFlatten).map(([name, value]) => `"${name}": ${value}`);
@@ -1631,8 +1630,8 @@ function getHeaderSerializedName(param) {
1631
1630
  return getPropertySerializedName(param).toLowerCase();
1632
1631
  }
1633
1632
  /**
1634
- * This function helps translating an RLC response to an HLC response,
1635
- * extracting properties from body and headers and building the HLC response object
1633
+ * This function helps translating a REST-level response to a high-level response,
1634
+ * extracting properties from body and headers and building the high-level response object
1636
1635
  */
1637
1636
  export function getResponseMapping(context, type, propertyPath = "result.body", overrides, enableFlatten = true) {
1638
1637
  const allParents = type.kind === "model" ? getAllAncestors(type) : [];
@@ -1745,7 +1744,7 @@ export function serializeRequestValue(context, type, clientValue, required, form
1745
1744
  }
1746
1745
  else if (isSpecialHandledUnion({
1747
1746
  ...type,
1748
- isNonExhaustive: context.rlcOptions?.experimentalExtensibleEnums ?? false,
1747
+ isNonExhaustive: context.emitterOptions?.experimentalExtensibleEnums ?? false,
1749
1748
  })) {
1750
1749
  const sdkType = getSdkType(type.__raw);
1751
1750
  const serializerRefkey = refkey(sdkType, "serializer");
@@ -2093,7 +2092,7 @@ function getApiVersionExpression(dpgContext, operation) {
2093
2092
  return undefined;
2094
2093
  }
2095
2094
  // For multi-service, use only the default value (don't reference context.apiVersion)
2096
- if (dpgContext.rlcOptions?.isMultiService) {
2095
+ if (dpgContext.emitterOptions?.isMultiService) {
2097
2096
  return queryApiVersionParam.clientDefaultValue
2098
2097
  ? `"${queryApiVersionParam.clientDefaultValue}"`
2099
2098
  : undefined;
@@ -2226,7 +2225,7 @@ function isWrappableType(context, type) {
2226
2225
  return false;
2227
2226
  if (type.kind === "dict" || type.kind === "model")
2228
2227
  return false;
2229
- if (type.kind === "unknown" && context.rlcOptions?.treatUnknownAsRecord)
2228
+ if (type.kind === "unknown" && context.emitterOptions?.treatUnknownAsRecord)
2230
2229
  return false;
2231
2230
  return true;
2232
2231
  }
@@ -2255,7 +2254,7 @@ export function checkWrapNonModelReturn(context, operation) {
2255
2254
  return noWrap;
2256
2255
  }
2257
2256
  // Only if the feature flag is enabled
2258
- if (!context.rlcOptions?.wrapNonModelReturn) {
2257
+ if (!context.emitterOptions?.wrapNonModelReturn) {
2259
2258
  return noWrap;
2260
2259
  }
2261
2260
  // For LRO-only operations, check the final result type from LRO metadata