@nestia/sdk 14.0.0 → 14.0.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 (391) hide show
  1. package/README.md +1 -1
  2. package/assets/bundle/distribute/build-sdk.cjs +28 -0
  3. package/assets/bundle/distribute/package.json +7 -3
  4. package/assets/bundle/distribute/tsconfig.json +15 -105
  5. package/lib/INestiaConfig.d.ts +74 -34
  6. package/lib/NestiaSdkApplication.d.ts +60 -0
  7. package/lib/NestiaSdkApplication.js +121 -32
  8. package/lib/NestiaSdkApplication.js.map +1 -1
  9. package/lib/NestiaSwaggerComposer.d.ts +21 -0
  10. package/lib/NestiaSwaggerComposer.js +32 -13
  11. package/lib/NestiaSwaggerComposer.js.map +1 -1
  12. package/lib/analyses/AccessorAnalyzer.d.ts +26 -0
  13. package/lib/analyses/AccessorAnalyzer.js +26 -0
  14. package/lib/analyses/AccessorAnalyzer.js.map +1 -1
  15. package/lib/analyses/ConfigAnalyzer.d.ts +41 -0
  16. package/lib/analyses/ConfigAnalyzer.js +52 -77
  17. package/lib/analyses/ConfigAnalyzer.js.map +1 -1
  18. package/lib/analyses/ImportAnalyzer.d.ts +25 -0
  19. package/lib/analyses/ImportAnalyzer.js +25 -0
  20. package/lib/analyses/ImportAnalyzer.js.map +1 -1
  21. package/lib/analyses/ParameterNameAnalyzer.d.ts +44 -0
  22. package/lib/analyses/ParameterNameAnalyzer.js +63 -0
  23. package/lib/analyses/ParameterNameAnalyzer.js.map +1 -0
  24. package/lib/analyses/PathAnalyzer.d.ts +93 -1
  25. package/lib/analyses/PathAnalyzer.js +160 -23
  26. package/lib/analyses/PathAnalyzer.js.map +1 -1
  27. package/lib/analyses/ReflectControllerAnalyzer.d.ts +32 -0
  28. package/lib/analyses/ReflectControllerAnalyzer.js +24 -1
  29. package/lib/analyses/ReflectControllerAnalyzer.js.map +1 -1
  30. package/lib/analyses/ReflectHttpOperationAnalyzer.d.ts +29 -0
  31. package/lib/analyses/ReflectHttpOperationAnalyzer.js +35 -24
  32. package/lib/analyses/ReflectHttpOperationAnalyzer.js.map +1 -1
  33. package/lib/analyses/ReflectHttpOperationExceptionAnalyzer.d.ts +31 -0
  34. package/lib/analyses/ReflectHttpOperationExceptionAnalyzer.js +21 -0
  35. package/lib/analyses/ReflectHttpOperationExceptionAnalyzer.js.map +1 -1
  36. package/lib/analyses/ReflectHttpOperationParameterAnalyzer.d.ts +31 -0
  37. package/lib/analyses/ReflectHttpOperationParameterAnalyzer.js +143 -23
  38. package/lib/analyses/ReflectHttpOperationParameterAnalyzer.js.map +1 -1
  39. package/lib/analyses/ReflectHttpOperationResponseAnalyzer.d.ts +32 -0
  40. package/lib/analyses/ReflectHttpOperationResponseAnalyzer.js +27 -2
  41. package/lib/analyses/ReflectHttpOperationResponseAnalyzer.js.map +1 -1
  42. package/lib/analyses/ReflectMcpOperationAnalyzer.d.ts +29 -0
  43. package/lib/analyses/ReflectMcpOperationAnalyzer.js +35 -11
  44. package/lib/analyses/ReflectMcpOperationAnalyzer.js.map +1 -1
  45. package/lib/analyses/ReflectMetadataAnalyzer.d.ts +47 -0
  46. package/lib/analyses/ReflectMetadataAnalyzer.js +47 -0
  47. package/lib/analyses/ReflectMetadataAnalyzer.js.map +1 -1
  48. package/lib/analyses/ReflectWebSocketOperationAnalyzer.d.ts +29 -0
  49. package/lib/analyses/ReflectWebSocketOperationAnalyzer.js +27 -5
  50. package/lib/analyses/ReflectWebSocketOperationAnalyzer.js.map +1 -1
  51. package/lib/analyses/SecurityAnalyzer.d.ts +25 -0
  52. package/lib/analyses/SecurityAnalyzer.js +39 -19
  53. package/lib/analyses/SecurityAnalyzer.js.map +1 -1
  54. package/lib/analyses/SwaggerExampleAnalyzer.d.ts +31 -0
  55. package/lib/analyses/SwaggerExampleAnalyzer.js +36 -0
  56. package/lib/analyses/SwaggerExampleAnalyzer.js.map +1 -0
  57. package/lib/analyses/TypedHttpRouteAnalyzer.d.ts +41 -3
  58. package/lib/analyses/TypedHttpRouteAnalyzer.js +196 -172
  59. package/lib/analyses/TypedHttpRouteAnalyzer.js.map +1 -1
  60. package/lib/analyses/TypedMcpRouteAnalyzer.d.ts +29 -0
  61. package/lib/analyses/TypedMcpRouteAnalyzer.js +152 -20
  62. package/lib/analyses/TypedMcpRouteAnalyzer.js.map +1 -1
  63. package/lib/analyses/TypedWebSocketRouteAnalyzer.d.ts +19 -0
  64. package/lib/analyses/TypedWebSocketRouteAnalyzer.js +20 -1
  65. package/lib/analyses/TypedWebSocketRouteAnalyzer.js.map +1 -1
  66. package/lib/decorators/OperationMetadata.d.ts +6 -0
  67. package/lib/decorators/OperationMetadata.js +6 -0
  68. package/lib/decorators/OperationMetadata.js.map +1 -1
  69. package/lib/executable/internal/CommandParser.d.ts +19 -0
  70. package/lib/executable/internal/CommandParser.js +19 -0
  71. package/lib/executable/internal/CommandParser.js.map +1 -1
  72. package/lib/executable/internal/NestiaConfigLoader.d.ts +56 -0
  73. package/lib/executable/internal/NestiaConfigLoader.js +48 -42
  74. package/lib/executable/internal/NestiaConfigLoader.js.map +1 -1
  75. package/lib/executable/internal/NestiaSdkCommand.d.ts +60 -0
  76. package/lib/executable/internal/NestiaSdkCommand.js +95 -3
  77. package/lib/executable/internal/NestiaSdkCommand.js.map +1 -1
  78. package/lib/executable/internal/NestiaSdkWatcher.d.ts +81 -0
  79. package/lib/executable/internal/NestiaSdkWatcher.js +125 -41
  80. package/lib/executable/internal/NestiaSdkWatcher.js.map +1 -1
  81. package/lib/executable/internal/NestiaSwaggerWatch.d.ts +80 -0
  82. package/lib/executable/internal/NestiaSwaggerWatch.js +308 -0
  83. package/lib/executable/internal/NestiaSwaggerWatch.js.map +1 -0
  84. package/lib/executable/sdk.js +16 -1
  85. package/lib/executable/sdk.js.map +1 -1
  86. package/lib/factories/ExpressionFactory.d.ts +18 -0
  87. package/lib/factories/ExpressionFactory.js +21 -2
  88. package/lib/factories/ExpressionFactory.js.map +1 -1
  89. package/lib/factories/IdentifierFactory.d.ts +24 -0
  90. package/lib/factories/IdentifierFactory.js +24 -0
  91. package/lib/factories/IdentifierFactory.js.map +1 -1
  92. package/lib/factories/LiteralFactory.d.ts +22 -4
  93. package/lib/factories/LiteralFactory.js +33 -11
  94. package/lib/factories/LiteralFactory.js.map +1 -1
  95. package/lib/factories/StatementFactory.d.ts +28 -1
  96. package/lib/factories/StatementFactory.js +28 -1
  97. package/lib/factories/StatementFactory.js.map +1 -1
  98. package/lib/factories/TypeFactory.d.ts +24 -0
  99. package/lib/factories/TypeFactory.js +15 -0
  100. package/lib/factories/TypeFactory.js.map +1 -1
  101. package/lib/generates/CloneGenerator.d.ts +22 -0
  102. package/lib/generates/CloneGenerator.js +26 -5
  103. package/lib/generates/CloneGenerator.js.map +1 -1
  104. package/lib/generates/E2eGenerator.d.ts +19 -0
  105. package/lib/generates/E2eGenerator.js +19 -0
  106. package/lib/generates/E2eGenerator.js.map +1 -1
  107. package/lib/generates/SdkGenerator.d.ts +38 -0
  108. package/lib/generates/SdkGenerator.js +43 -5
  109. package/lib/generates/SdkGenerator.js.map +1 -1
  110. package/lib/generates/SwaggerGenerator.d.ts +36 -6
  111. package/lib/generates/SwaggerGenerator.js +190 -40
  112. package/lib/generates/SwaggerGenerator.js.map +1 -1
  113. package/lib/generates/internal/E2eFileProgrammer.d.ts +19 -0
  114. package/lib/generates/internal/E2eFileProgrammer.js +20 -1
  115. package/lib/generates/internal/E2eFileProgrammer.js.map +1 -1
  116. package/lib/generates/internal/FilePrinter.d.ts +57 -0
  117. package/lib/generates/internal/FilePrinter.js +74 -0
  118. package/lib/generates/internal/FilePrinter.js.map +1 -1
  119. package/lib/generates/internal/ImportDictionary.d.ts +93 -1
  120. package/lib/generates/internal/ImportDictionary.js +103 -2
  121. package/lib/generates/internal/ImportDictionary.js.map +1 -1
  122. package/lib/generates/internal/SdkAliasCollection.d.ts +121 -1
  123. package/lib/generates/internal/SdkAliasCollection.js +132 -11
  124. package/lib/generates/internal/SdkAliasCollection.js.map +1 -1
  125. package/lib/generates/internal/SdkDistributionComposer.d.ts +19 -0
  126. package/lib/generates/internal/SdkDistributionComposer.js +149 -52
  127. package/lib/generates/internal/SdkDistributionComposer.js.map +1 -1
  128. package/lib/generates/internal/SdkFileProgrammer.d.ts +18 -0
  129. package/lib/generates/internal/SdkFileProgrammer.js +101 -12
  130. package/lib/generates/internal/SdkFileProgrammer.js.map +1 -1
  131. package/lib/generates/internal/SdkHttpCloneProgrammer.d.ts +29 -0
  132. package/lib/generates/internal/SdkHttpCloneProgrammer.js +33 -0
  133. package/lib/generates/internal/SdkHttpCloneProgrammer.js.map +1 -1
  134. package/lib/generates/internal/SdkHttpCloneReferencer.d.ts +19 -0
  135. package/lib/generates/internal/SdkHttpCloneReferencer.js +78 -25
  136. package/lib/generates/internal/SdkHttpCloneReferencer.js.map +1 -1
  137. package/lib/generates/internal/SdkHttpFunctionProgrammer.d.ts +19 -0
  138. package/lib/generates/internal/SdkHttpFunctionProgrammer.js +40 -23
  139. package/lib/generates/internal/SdkHttpFunctionProgrammer.js.map +1 -1
  140. package/lib/generates/internal/SdkHttpNamespaceProgrammer.d.ts +19 -0
  141. package/lib/generates/internal/SdkHttpNamespaceProgrammer.js +46 -34
  142. package/lib/generates/internal/SdkHttpNamespaceProgrammer.js.map +1 -1
  143. package/lib/generates/internal/SdkHttpParameterProgrammer.d.ts +142 -1
  144. package/lib/generates/internal/SdkHttpParameterProgrammer.js +175 -6
  145. package/lib/generates/internal/SdkHttpParameterProgrammer.js.map +1 -1
  146. package/lib/generates/internal/SdkHttpRouteProgrammer.d.ts +20 -0
  147. package/lib/generates/internal/SdkHttpRouteProgrammer.js +36 -32
  148. package/lib/generates/internal/SdkHttpRouteProgrammer.js.map +1 -1
  149. package/lib/generates/internal/SdkHttpSimulationProgrammer.d.ts +38 -0
  150. package/lib/generates/internal/SdkHttpSimulationProgrammer.js +66 -18
  151. package/lib/generates/internal/SdkHttpSimulationProgrammer.js.map +1 -1
  152. package/lib/generates/internal/SdkImportWizard.d.ts +63 -0
  153. package/lib/generates/internal/SdkImportWizard.js +63 -0
  154. package/lib/generates/internal/SdkImportWizard.js.map +1 -1
  155. package/lib/generates/internal/SdkMcpRouteProgrammer.d.ts +17 -2
  156. package/lib/generates/internal/SdkMcpRouteProgrammer.js +72 -24
  157. package/lib/generates/internal/SdkMcpRouteProgrammer.js.map +1 -1
  158. package/lib/generates/internal/SdkPathTemplate.d.ts +36 -0
  159. package/lib/generates/internal/SdkPathTemplate.js +65 -0
  160. package/lib/generates/internal/SdkPathTemplate.js.map +1 -0
  161. package/lib/generates/internal/SdkRouteDirectory.d.ts +10 -0
  162. package/lib/generates/internal/SdkRouteDirectory.js +10 -0
  163. package/lib/generates/internal/SdkRouteDirectory.js.map +1 -1
  164. package/lib/generates/internal/SdkTypeProgrammer.d.ts +54 -1
  165. package/lib/generates/internal/SdkTypeProgrammer.js +111 -27
  166. package/lib/generates/internal/SdkTypeProgrammer.js.map +1 -1
  167. package/lib/generates/internal/SdkTypeTagProgrammer.d.ts +53 -1
  168. package/lib/generates/internal/SdkTypeTagProgrammer.js +407 -67
  169. package/lib/generates/internal/SdkTypeTagProgrammer.js.map +1 -1
  170. package/lib/generates/internal/SdkWebSocketCloneProgrammer.d.ts +40 -0
  171. package/lib/generates/internal/SdkWebSocketCloneProgrammer.js +149 -142
  172. package/lib/generates/internal/SdkWebSocketCloneProgrammer.js.map +1 -1
  173. package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.d.ts +19 -0
  174. package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.js +46 -36
  175. package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.js.map +1 -1
  176. package/lib/generates/internal/SdkWebSocketParameterProgrammer.d.ts +114 -1
  177. package/lib/generates/internal/SdkWebSocketParameterProgrammer.js +120 -5
  178. package/lib/generates/internal/SdkWebSocketParameterProgrammer.js.map +1 -1
  179. package/lib/generates/internal/SdkWebSocketRouteProgrammer.d.ts +18 -0
  180. package/lib/generates/internal/SdkWebSocketRouteProgrammer.js +75 -33
  181. package/lib/generates/internal/SdkWebSocketRouteProgrammer.js.map +1 -1
  182. package/lib/generates/internal/SwaggerDescriptionComposer.d.ts +42 -0
  183. package/lib/generates/internal/SwaggerDescriptionComposer.js +44 -1
  184. package/lib/generates/internal/SwaggerDescriptionComposer.js.map +1 -1
  185. package/lib/generates/internal/SwaggerOperationComposer.d.ts +18 -0
  186. package/lib/generates/internal/SwaggerOperationComposer.js +37 -8
  187. package/lib/generates/internal/SwaggerOperationComposer.js.map +1 -1
  188. package/lib/generates/internal/SwaggerOperationParameterComposer.d.ts +40 -1
  189. package/lib/generates/internal/SwaggerOperationParameterComposer.js +230 -25
  190. package/lib/generates/internal/SwaggerOperationParameterComposer.js.map +1 -1
  191. package/lib/generates/internal/SwaggerOperationResponseComposer.d.ts +21 -0
  192. package/lib/generates/internal/SwaggerOperationResponseComposer.js +58 -7
  193. package/lib/generates/internal/SwaggerOperationResponseComposer.js.map +1 -1
  194. package/lib/internal/legacy.d.ts +342 -31
  195. package/lib/internal/legacy.js +207 -31
  196. package/lib/internal/legacy.js.map +1 -1
  197. package/lib/structures/INestiaProject.d.ts +10 -0
  198. package/lib/structures/INestiaSdkInput.d.ts +30 -0
  199. package/lib/structures/IOperationMetadata.d.ts +77 -0
  200. package/lib/structures/IReflectController.d.ts +10 -0
  201. package/lib/structures/IReflectHttpOperation.d.ts +10 -0
  202. package/lib/structures/IReflectHttpOperationException.d.ts +13 -2
  203. package/lib/structures/IReflectHttpOperationParameter.d.ts +55 -3
  204. package/lib/structures/IReflectHttpOperationSuccess.d.ts +15 -3
  205. package/lib/structures/IReflectImport.d.ts +10 -0
  206. package/lib/structures/IReflectMcpOperation.d.ts +19 -0
  207. package/lib/structures/IReflectMcpOperationParameter.d.ts +9 -0
  208. package/lib/structures/IReflectOperationError.d.ts +28 -0
  209. package/lib/structures/IReflectOperationError.js +22 -2
  210. package/lib/structures/IReflectOperationError.js.map +1 -1
  211. package/lib/structures/IReflectType.d.ts +9 -0
  212. package/lib/structures/IReflectWebSocketOperation.d.ts +10 -0
  213. package/lib/structures/IReflectWebSocketOperationParameter.d.ts +55 -0
  214. package/lib/structures/ITypedApplication.d.ts +10 -0
  215. package/lib/structures/ITypedHttpRoute.d.ts +18 -0
  216. package/lib/structures/ITypedHttpRouteException.d.ts +13 -1
  217. package/lib/structures/ITypedHttpRouteParameter.d.ts +48 -1
  218. package/lib/structures/ITypedHttpRouteSuccess.d.ts +13 -1
  219. package/lib/structures/ITypedMcpRoute.d.ts +11 -0
  220. package/lib/structures/ITypedWebSocketRoute.d.ts +18 -0
  221. package/lib/transform.d.ts +6 -0
  222. package/lib/transform.js +6 -0
  223. package/lib/transform.js.map +1 -1
  224. package/lib/utils/ArrayUtil.d.ts +31 -1
  225. package/lib/utils/ArrayUtil.js +32 -11
  226. package/lib/utils/ArrayUtil.js.map +1 -1
  227. package/lib/utils/EmittedJavaScriptPatcher.d.ts +20 -0
  228. package/lib/utils/EmittedJavaScriptPatcher.js +65 -46
  229. package/lib/utils/EmittedJavaScriptPatcher.js.map +1 -1
  230. package/lib/utils/FileRetriever.d.ts +29 -0
  231. package/lib/utils/FileRetriever.js +29 -0
  232. package/lib/utils/FileRetriever.js.map +1 -1
  233. package/lib/utils/HttpResponseContentTypeUtil.d.ts +41 -0
  234. package/lib/utils/HttpResponseContentTypeUtil.js +31 -0
  235. package/lib/utils/HttpResponseContentTypeUtil.js.map +1 -1
  236. package/lib/utils/MapUtil.d.ts +64 -1
  237. package/lib/utils/MapUtil.js +24 -3
  238. package/lib/utils/MapUtil.js.map +1 -1
  239. package/lib/utils/PathUtil.d.ts +31 -0
  240. package/lib/utils/PathUtil.js +38 -0
  241. package/lib/utils/PathUtil.js.map +1 -1
  242. package/lib/utils/SdkBundlePath.d.ts +2 -0
  243. package/lib/utils/SdkBundlePath.js +10 -0
  244. package/lib/utils/SdkBundlePath.js.map +1 -0
  245. package/lib/utils/SdkInputFilter.d.ts +31 -0
  246. package/lib/utils/SdkInputFilter.js +115 -0
  247. package/lib/utils/SdkInputFilter.js.map +1 -0
  248. package/lib/utils/SourceFinder.d.ts +45 -0
  249. package/lib/utils/SourceFinder.js +74 -16
  250. package/lib/utils/SourceFinder.js.map +1 -1
  251. package/lib/utils/StringUtil.d.ts +77 -2
  252. package/lib/utils/StringUtil.js +166 -4
  253. package/lib/utils/StringUtil.js.map +1 -1
  254. package/lib/utils/TemporaryDirectory.d.ts +60 -0
  255. package/lib/utils/TemporaryDirectory.js +112 -0
  256. package/lib/utils/TemporaryDirectory.js.map +1 -0
  257. package/lib/utils/TsConfigReader.d.ts +42 -0
  258. package/lib/utils/TsConfigReader.js +98 -14
  259. package/lib/utils/TsConfigReader.js.map +1 -1
  260. package/lib/utils/TtscExecutor.d.ts +23 -1
  261. package/lib/utils/TtscExecutor.js +22 -0
  262. package/lib/utils/TtscExecutor.js.map +1 -1
  263. package/lib/utils/VersioningStrategy.d.ts +39 -2
  264. package/lib/utils/VersioningStrategy.js +46 -13
  265. package/lib/utils/VersioningStrategy.js.map +1 -1
  266. package/lib/validators/TextPlainValidator.d.ts +19 -0
  267. package/lib/validators/TextPlainValidator.js +19 -0
  268. package/lib/validators/TextPlainValidator.js.map +1 -1
  269. package/native/go.mod +1 -1
  270. package/native/go.sum +2 -2
  271. package/native/sdk/register.go +12 -2
  272. package/native/sdk/sdk_http_rules.go +210 -0
  273. package/native/sdk/sdk_metadata_json.go +79 -4
  274. package/native/sdk/sdk_transform.go +1157 -414
  275. package/package.json +8 -6
  276. package/src/INestiaConfig.ts +74 -34
  277. package/src/NestiaSdkApplication.ts +129 -41
  278. package/src/NestiaSwaggerComposer.ts +32 -14
  279. package/src/analyses/AccessorAnalyzer.ts +26 -0
  280. package/src/analyses/ConfigAnalyzer.ts +52 -90
  281. package/src/analyses/ImportAnalyzer.ts +25 -0
  282. package/src/analyses/ParameterNameAnalyzer.ts +75 -0
  283. package/src/analyses/PathAnalyzer.ts +167 -23
  284. package/src/analyses/ReflectControllerAnalyzer.ts +34 -1
  285. package/src/analyses/ReflectHttpOperationAnalyzer.ts +36 -14
  286. package/src/analyses/ReflectHttpOperationExceptionAnalyzer.ts +31 -0
  287. package/src/analyses/ReflectHttpOperationParameterAnalyzer.ts +153 -39
  288. package/src/analyses/ReflectHttpOperationResponseAnalyzer.ts +38 -7
  289. package/src/analyses/ReflectMcpOperationAnalyzer.ts +38 -3
  290. package/src/analyses/ReflectMetadataAnalyzer.ts +47 -0
  291. package/src/analyses/ReflectWebSocketOperationAnalyzer.ts +40 -7
  292. package/src/analyses/SecurityAnalyzer.ts +45 -20
  293. package/src/analyses/SwaggerExampleAnalyzer.ts +39 -0
  294. package/src/analyses/TypedHttpRouteAnalyzer.ts +263 -198
  295. package/src/analyses/TypedMcpRouteAnalyzer.ts +180 -20
  296. package/src/analyses/TypedWebSocketRouteAnalyzer.ts +20 -0
  297. package/src/decorators/OperationMetadata.ts +6 -0
  298. package/src/executable/internal/CommandParser.ts +19 -0
  299. package/src/executable/internal/NestiaConfigLoader.ts +66 -50
  300. package/src/executable/internal/NestiaSdkCommand.ts +96 -3
  301. package/src/executable/internal/NestiaSdkWatcher.ts +172 -44
  302. package/src/executable/internal/NestiaSwaggerWatch.ts +359 -0
  303. package/src/executable/sdk.ts +24 -1
  304. package/src/factories/ExpressionFactory.ts +23 -2
  305. package/src/factories/IdentifierFactory.ts +24 -0
  306. package/src/factories/LiteralFactory.ts +51 -13
  307. package/src/factories/StatementFactory.ts +28 -1
  308. package/src/factories/TypeFactory.ts +24 -0
  309. package/src/generates/CloneGenerator.ts +26 -5
  310. package/src/generates/E2eGenerator.ts +19 -0
  311. package/src/generates/SdkGenerator.ts +43 -12
  312. package/src/generates/SwaggerGenerator.ts +229 -46
  313. package/src/generates/internal/E2eFileProgrammer.ts +20 -0
  314. package/src/generates/internal/FilePrinter.ts +71 -0
  315. package/src/generates/internal/ImportDictionary.ts +120 -2
  316. package/src/generates/internal/SdkAliasCollection.ts +144 -15
  317. package/src/generates/internal/SdkDistributionComposer.ts +181 -56
  318. package/src/generates/internal/SdkFileProgrammer.ts +126 -16
  319. package/src/generates/internal/SdkHttpCloneProgrammer.ts +55 -0
  320. package/src/generates/internal/SdkHttpCloneReferencer.ts +97 -23
  321. package/src/generates/internal/SdkHttpFunctionProgrammer.ts +47 -30
  322. package/src/generates/internal/SdkHttpNamespaceProgrammer.ts +53 -64
  323. package/src/generates/internal/SdkHttpParameterProgrammer.ts +295 -13
  324. package/src/generates/internal/SdkHttpRouteProgrammer.ts +37 -31
  325. package/src/generates/internal/SdkHttpSimulationProgrammer.ts +122 -18
  326. package/src/generates/internal/SdkImportWizard.ts +63 -0
  327. package/src/generates/internal/SdkMcpRouteProgrammer.ts +150 -33
  328. package/src/generates/internal/SdkPathTemplate.ts +88 -0
  329. package/src/generates/internal/SdkRouteDirectory.ts +10 -0
  330. package/src/generates/internal/SdkTypeProgrammer.ts +137 -36
  331. package/src/generates/internal/SdkTypeTagProgrammer.ts +536 -78
  332. package/src/generates/internal/SdkWebSocketCloneProgrammer.ts +185 -142
  333. package/src/generates/internal/SdkWebSocketNamespaceProgrammer.ts +62 -68
  334. package/src/generates/internal/SdkWebSocketParameterProgrammer.ts +205 -5
  335. package/src/generates/internal/SdkWebSocketRouteProgrammer.ts +89 -48
  336. package/src/generates/internal/SwaggerDescriptionComposer.ts +47 -1
  337. package/src/generates/internal/SwaggerOperationComposer.ts +38 -6
  338. package/src/generates/internal/SwaggerOperationParameterComposer.ts +318 -36
  339. package/src/generates/internal/SwaggerOperationResponseComposer.ts +74 -11
  340. package/src/internal/legacy-augmentation.d.ts +16 -0
  341. package/src/internal/legacy.ts +407 -49
  342. package/src/structures/INestiaProject.ts +10 -0
  343. package/src/structures/INestiaSdkInput.ts +30 -0
  344. package/src/structures/IOperationMetadata.ts +83 -0
  345. package/src/structures/IReflectController.ts +10 -0
  346. package/src/structures/IReflectHttpOperation.ts +10 -0
  347. package/src/structures/IReflectHttpOperationException.ts +17 -2
  348. package/src/structures/IReflectHttpOperationParameter.ts +56 -2
  349. package/src/structures/IReflectHttpOperationSuccess.ts +19 -3
  350. package/src/structures/IReflectImport.ts +10 -0
  351. package/src/structures/IReflectMcpOperation.ts +19 -0
  352. package/src/structures/IReflectMcpOperationParameter.ts +9 -0
  353. package/src/structures/IReflectOperationError.ts +31 -2
  354. package/src/structures/IReflectType.ts +9 -0
  355. package/src/structures/IReflectWebSocketOperation.ts +10 -0
  356. package/src/structures/IReflectWebSocketOperationParameter.ts +55 -0
  357. package/src/structures/ITypedApplication.ts +10 -0
  358. package/src/structures/ITypedHttpRoute.ts +18 -0
  359. package/src/structures/ITypedHttpRouteException.ts +14 -1
  360. package/src/structures/ITypedHttpRouteParameter.ts +48 -1
  361. package/src/structures/ITypedHttpRouteSuccess.ts +14 -1
  362. package/src/structures/ITypedMcpRoute.ts +12 -0
  363. package/src/structures/ITypedWebSocketRoute.ts +18 -0
  364. package/src/transform.ts +6 -0
  365. package/src/utils/ArrayUtil.ts +32 -13
  366. package/src/utils/EmittedJavaScriptPatcher.ts +70 -47
  367. package/src/utils/FileRetriever.ts +29 -0
  368. package/src/utils/HttpResponseContentTypeUtil.ts +41 -0
  369. package/src/utils/MapUtil.ts +68 -3
  370. package/src/utils/PathUtil.ts +38 -0
  371. package/src/utils/SdkBundlePath.ts +11 -0
  372. package/src/utils/SdkInputFilter.ts +108 -0
  373. package/src/utils/SourceFinder.ts +76 -18
  374. package/src/utils/StringUtil.ts +182 -5
  375. package/src/utils/TemporaryDirectory.ts +108 -0
  376. package/src/utils/TsConfigReader.ts +124 -26
  377. package/src/utils/TtscExecutor.ts +23 -1
  378. package/src/utils/VersioningStrategy.ts +51 -16
  379. package/src/validators/TextPlainValidator.ts +19 -0
  380. package/lib/generates/internal/SwaggerReadonlyArrayEmender.d.ts +0 -9
  381. package/lib/generates/internal/SwaggerReadonlyArrayEmender.js +0 -178
  382. package/lib/generates/internal/SwaggerReadonlyArrayEmender.js.map +0 -1
  383. package/lib/validators/HttpHeadersValidator.d.ts +0 -11
  384. package/lib/validators/HttpHeadersValidator.js +0 -15
  385. package/lib/validators/HttpHeadersValidator.js.map +0 -1
  386. package/lib/validators/HttpQueryValidator.d.ts +0 -10
  387. package/lib/validators/HttpQueryValidator.js +0 -14
  388. package/lib/validators/HttpQueryValidator.js.map +0 -1
  389. package/src/generates/internal/SwaggerReadonlyArrayEmender.ts +0 -264
  390. package/src/validators/HttpHeadersValidator.ts +0 -12
  391. package/src/validators/HttpQueryValidator.ts +0 -11
@@ -2,7 +2,45 @@ import { type Node } from "@ttsc/factory";
2
2
  import { INestiaProject } from "../../structures/INestiaProject";
3
3
  import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute";
4
4
  import { ImportDictionary } from "./ImportDictionary";
5
+ /**
6
+ * Writes the mockup functions of an HTTP route.
7
+ *
8
+ * @evidence contracts/common.md#principled-implementation The namespace prints random for the response type and simulate for structural parameter assertions followed by random response creation. Simulation operates on typed SDK arguments rather than parsing HTTP transport values.
9
+ * @evidence contracts/common.md#clear-and-simple-design Two public functions and their helpers.
10
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Generated validation calls typia.assert through NestiaSimulator's error adapter. It does not reproduce arbitrary server pipes or the server transform's prune and equality modes; simulation rejects structural type violations without contacting a server.
11
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
12
+ * efficient algorithms: Response construction has a fixed AST skeleton; request assertion emission visits significant parameters once and allocates one validator expression per parameter. Type and parameter projection costs belong to the called programmers.
13
+ * reuse equivalent work: These writers construct route-specific mutable AST nodes and coordinate no completed or in-flight generation across requests.
14
+ * bound retention and release resources: Returned ASTs transfer to the file writer. The emitted binary random function closes its empty stream during construction; the programmer itself retains no stream or producer task.
15
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkHttpSimulationProgrammer composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
16
+ */
5
17
  export declare namespace SdkHttpSimulationProgrammer {
18
+ /**
19
+ * Returns `random`: it makes a value of the response, a closed empty stream
20
+ * for a binary one. Binary readers receive EOF without waiting for payload.
21
+ *
22
+ * @evidence contracts/common.md#principled-implementation Ordinary responses call typia.random of the output type. Binary responses construct a stream with the existing binary chunk type and a start callback that closes its own controller synchronously; no bytes are enqueued, so the first read reports EOF under Streams semantics.
23
+ * @evidence contracts/common.md#clear-and-simple-design The existing binary versus ordinary expression branch owns response generation. Its inline stream source supplies closure without another runtime helper, import or transport.
24
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The binary case has no random content.
25
+ * @evidence contracts/common.md#meaningful-documentation The prose states that binary random output is closed and readers receive EOF without waiting for payload.
26
+ * bound retention and release resources: The emitted binary source queues no bytes or producer task and closes each empty stream during construction. The writer returns its AST without retaining stream handles; runtime readers belong to the generated SDK caller.
27
+ * efficient algorithms: After response-type projection, either branch allocates a fixed AST skeleton; the binary branch emits one empty stream constructor without traversing or generating payload bytes.
28
+ * reuse equivalent work: The returned AST belongs to this route and importer. Each generated runtime call needs its own random value or stream, so neither mutable syntax nor runtime response identity is shared.
29
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkHttpSimulationProgrammer.random composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
30
+ */
6
31
  const random: (project: INestiaProject) => (importer: ImportDictionary) => (route: ITypedHttpRoute) => Node;
32
+ /**
33
+ * Returns `simulate`: it asserts the parameters and returns a random output,
34
+ * wrapped as a propagation when configured.
35
+ *
36
+ * @evidence contracts/common.md#principled-implementation The status of the wrapper is the declared one or the method's default. A response without a content type has no Content-Type entry; a declared media type supplies a string header, preserving the propagation header contract.
37
+ * @evidence contracts/common.md#clear-and-simple-design One function.
38
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The parameters are validated before a response is made.
39
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
40
+ * efficient algorithms: Parameter declarations and assertion nodes grow linearly with significant route parameters; propagation adds a fixed response wrapper and one catch block. The private assertion writer handles the connection headers separately rather than duplicating every parameter validation.
41
+ * reuse equivalent work: Simulation syntax contains this route's names, arguments, output type and importer aliases; this operation coordinates no reusable result across generation requests.
42
+ * bound retention and release resources: This function returns an AST to its caller and owns no retained cache, stream, handle or background task; runtime random response creation is documented by random.
43
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkHttpSimulationProgrammer.simulate composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
44
+ */
7
45
  const simulate: (project: INestiaProject) => (importer: ImportDictionary) => (route: ITypedHttpRoute) => Node;
8
46
  }
@@ -11,27 +11,72 @@ const legacy_1 = require("../../internal/legacy");
11
11
  const SdkAliasCollection_1 = require("./SdkAliasCollection");
12
12
  const SdkHttpParameterProgrammer_1 = require("./SdkHttpParameterProgrammer");
13
13
  const SdkImportWizard_1 = require("./SdkImportWizard");
14
+ /**
15
+ * Writes the mockup functions of an HTTP route.
16
+ *
17
+ * @evidence contracts/common.md#principled-implementation The namespace prints random for the response type and simulate for structural parameter assertions followed by random response creation. Simulation operates on typed SDK arguments rather than parsing HTTP transport values.
18
+ * @evidence contracts/common.md#clear-and-simple-design Two public functions and their helpers.
19
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Generated validation calls typia.assert through NestiaSimulator's error adapter. It does not reproduce arbitrary server pipes or the server transform's prune and equality modes; simulation rejects structural type violations without contacting a server.
20
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
21
+ * efficient algorithms: Response construction has a fixed AST skeleton; request assertion emission visits significant parameters once and allocates one validator expression per parameter. Type and parameter projection costs belong to the called programmers.
22
+ * reuse equivalent work: These writers construct route-specific mutable AST nodes and coordinate no completed or in-flight generation across requests.
23
+ * bound retention and release resources: Returned ASTs transfer to the file writer. The emitted binary random function closes its empty stream during construction; the programmer itself retains no stream or producer task.
24
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkHttpSimulationProgrammer composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
25
+ */
14
26
  var SdkHttpSimulationProgrammer;
15
27
  (function (SdkHttpSimulationProgrammer) {
28
+ /**
29
+ * Returns `random`: it makes a value of the response, a closed empty stream
30
+ * for a binary one. Binary readers receive EOF without waiting for payload.
31
+ *
32
+ * @evidence contracts/common.md#principled-implementation Ordinary responses call typia.random of the output type. Binary responses construct a stream with the existing binary chunk type and a start callback that closes its own controller synchronously; no bytes are enqueued, so the first read reports EOF under Streams semantics.
33
+ * @evidence contracts/common.md#clear-and-simple-design The existing binary versus ordinary expression branch owns response generation. Its inline stream source supplies closure without another runtime helper, import or transport.
34
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The binary case has no random content.
35
+ * @evidence contracts/common.md#meaningful-documentation The prose states that binary random output is closed and readers receive EOF without waiting for payload.
36
+ * bound retention and release resources: The emitted binary source queues no bytes or producer task and closes each empty stream during construction. The writer returns its AST without retaining stream handles; runtime readers belong to the generated SDK caller.
37
+ * efficient algorithms: After response-type projection, either branch allocates a fixed AST skeleton; the binary branch emits one empty stream constructor without traversing or generating payload bytes.
38
+ * reuse equivalent work: The returned AST belongs to this route and importer. Each generated runtime call needs its own random value or stream, so neither mutable syntax nor runtime response identity is shared.
39
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkHttpSimulationProgrammer.random composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
40
+ */
16
41
  SdkHttpSimulationProgrammer.random = (project) => (importer) => (route) => {
17
42
  const output = SdkAliasCollection_1.SdkAliasCollection.responseBody(project)(importer)(route);
18
43
  return constant("random")(factory_1.factory.createArrowFunction(undefined, undefined, [], project.config.primitive === false || route.success.binary === true
19
44
  ? output
20
45
  : factory_1.factory.createTypeReferenceNode(SdkImportWizard_1.SdkImportWizard.Resolved(importer), [output]), undefined, route.success.binary === true
21
- ? factory_1.factory.createNewExpression(factory_1.factory.createIdentifier("ReadableStream"), [SdkAliasCollection_1.SdkAliasCollection.binaryChunk()], [])
46
+ ? factory_1.factory.createNewExpression(factory_1.factory.createIdentifier("ReadableStream"), [SdkAliasCollection_1.SdkAliasCollection.binaryChunk()], [
47
+ factory_1.factory.createObjectLiteralExpression([
48
+ factory_1.factory.createPropertyAssignment("start", factory_1.factory.createArrowFunction(undefined, undefined, [
49
+ factory_1.factory.createParameterDeclaration(undefined, undefined, "controller"),
50
+ ], undefined, undefined, factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier("controller"), "close"), undefined, []))),
51
+ ]),
52
+ ])
22
53
  : factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(SdkImportWizard_1.SdkImportWizard.typia(importer)), "random"), [output], undefined)));
23
54
  };
55
+ /**
56
+ * Returns `simulate`: it asserts the parameters and returns a random output,
57
+ * wrapped as a propagation when configured.
58
+ *
59
+ * @evidence contracts/common.md#principled-implementation The status of the wrapper is the declared one or the method's default. A response without a content type has no Content-Type entry; a declared media type supplies a string header, preserving the propagation header contract.
60
+ * @evidence contracts/common.md#clear-and-simple-design One function.
61
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The parameters are validated before a response is made.
62
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
63
+ * efficient algorithms: Parameter declarations and assertion nodes grow linearly with significant route parameters; propagation adds a fixed response wrapper and one catch block. The private assertion writer handles the connection headers separately rather than duplicating every parameter validation.
64
+ * reuse equivalent work: Simulation syntax contains this route's names, arguments, output type and importer aliases; this operation coordinates no reusable result across generation requests.
65
+ * bound retention and release resources: This function returns an AST to its caller and owns no retained cache, stream, handle or background task; runtime random response creation is documented by random.
66
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkHttpSimulationProgrammer.simulate composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
67
+ */
24
68
  SdkHttpSimulationProgrammer.simulate = (project) => (importer) => (route) => {
25
69
  var _a;
70
+ const names = SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getNames({ project, route });
26
71
  const output = project.config.propagate === true ||
27
72
  route.success.binary === true ||
28
73
  (0, legacy_1.sizeOf)(route.success.metadata) !== 0;
29
74
  const caller = () => factory_1.factory.createCallExpression(factory_1.factory.createIdentifier("random"), undefined, undefined);
30
75
  return constant("simulate")(factory_1.factory.createArrowFunction(undefined, undefined, [
31
76
  IdentifierFactory_1.IdentifierFactory.parameter(SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getSignificant(route, true).length !==
32
- 0
33
- ? "connection"
34
- : "_connection", factory_1.factory.createTypeReferenceNode(SdkImportWizard_1.SdkImportWizard.IConnection(importer), route.headerObject
77
+ 0 || route.headerObject !== null
78
+ ? names.connection
79
+ : `_${names.connection}`, factory_1.factory.createTypeReferenceNode(SdkImportWizard_1.SdkImportWizard.IConnection(importer), route.headerObject
35
80
  ? [factory_1.factory.createTypeReferenceNode(`${route.name}.Headers`)]
36
81
  : [])),
37
82
  ...SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getParameterDeclarations({
@@ -42,26 +87,26 @@ var SdkHttpSimulationProgrammer;
42
87
  prefix: false,
43
88
  }),
44
89
  ], factory_1.factory.createTypeReferenceNode(output ? "Output" : "void"), undefined, factory_1.factory.createBlock([
45
- ...assert(project)(importer)(route),
90
+ ...assert(project)(importer)(route)(names),
46
91
  factory_1.factory.createReturnStatement(project.config.propagate
47
92
  ? factory_1.factory.createAsExpression(factory_1.factory.createObjectLiteralExpression([
48
93
  factory_1.factory.createPropertyAssignment("success", factory_1.factory.createTrue()),
49
94
  factory_1.factory.createPropertyAssignment("status", ExpressionFactory_1.ExpressionFactory.number((_a = route.success.status) !== null && _a !== void 0 ? _a : (route.method === "POST" ? 201 : 200))),
50
- factory_1.factory.createPropertyAssignment("headers", LiteralFactory_1.LiteralFactory.write({
51
- "Content-Type": route.success.contentType,
52
- })),
95
+ factory_1.factory.createPropertyAssignment("headers", LiteralFactory_1.LiteralFactory.write(route.success.contentType === null
96
+ ? {}
97
+ : { "Content-Type": route.success.contentType })),
53
98
  factory_1.factory.createPropertyAssignment("data", caller()),
54
99
  ], true), factory_1.factory.createTypeReferenceNode("Output"))
55
100
  : caller()),
56
101
  ], true)));
57
102
  };
58
- const assert = (project) => (importer) => (route) => {
103
+ const assert = (project) => (importer) => (route) => (names) => {
59
104
  const parameters = SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getSignificant(route, true);
60
- if (parameters.length === 0)
105
+ if (parameters.length === 0 && route.headerObject === null)
61
106
  return [];
62
107
  const typia = SdkImportWizard_1.SdkImportWizard.typia(importer);
63
108
  const validator = StatementFactory_1.StatementFactory.constant({
64
- name: "assert",
109
+ name: names.assert,
65
110
  value: factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(importer.external({
66
111
  file: `@nestia/fetcher`,
67
112
  declaration: false,
@@ -70,7 +115,7 @@ var SdkHttpSimulationProgrammer;
70
115
  })), "assert"), undefined, [
71
116
  factory_1.factory.createObjectLiteralExpression([
72
117
  factory_1.factory.createPropertyAssignment("method", factory_1.factory.createIdentifier("METADATA.method")),
73
- factory_1.factory.createPropertyAssignment("host", factory_1.factory.createIdentifier("connection.host")),
118
+ factory_1.factory.createPropertyAssignment("host", IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(names.connection), "host")),
74
119
  factory_1.factory.createPropertyAssignment("path", factory_1.factory.createCallExpression(factory_1.factory.createIdentifier("path"), undefined, SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getArguments({
75
120
  project,
76
121
  route,
@@ -82,20 +127,23 @@ var SdkHttpSimulationProgrammer;
82
127
  });
83
128
  const individual = parameters
84
129
  .map((p) => factory_1.factory.createCallExpression((() => {
85
- const base = IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier("assert"), p.category);
130
+ const base = IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(names.assert), p.category);
86
131
  if (p.category !== "param")
87
132
  return base;
88
133
  return factory_1.factory.createCallExpression(base, undefined, [
89
134
  factory_1.factory.createStringLiteral(p.name),
90
135
  ]);
91
136
  })(), undefined, [
92
- factory_1.factory.createArrowFunction(undefined, undefined, [], undefined, undefined, factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(typia), "assert"), undefined, [
93
- project.config.keyword === true
94
- ? factory_1.factory.createIdentifier(`props.${p.name}`)
95
- : factory_1.factory.createIdentifier(p.name),
96
- ])),
137
+ factory_1.factory.createArrowFunction(undefined, undefined, [], undefined, undefined, factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(typia), "assert"), undefined, [names.access(p)])),
97
138
  ]))
98
139
  .map(factory_1.factory.createExpressionStatement);
140
+ // Headers travel in the connection and receive a structural assertion.
141
+ if (route.headerObject !== null)
142
+ individual.push(factory_1.factory.createExpressionStatement(factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(names.assert), "headers"), undefined, [
143
+ factory_1.factory.createArrowFunction(undefined, undefined, [], undefined, undefined, factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(typia), "assert"), [factory_1.factory.createTypeReferenceNode(`${route.name}.Headers`)], [
144
+ IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(names.connection), "headers"),
145
+ ])),
146
+ ])));
99
147
  return [
100
148
  validator,
101
149
  ...(project.config.propagate !== true
@@ -1 +1 @@
1
- {"version":3,"file":"SdkHttpSimulationProgrammer.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkHttpSimulationProgrammer.ts"],"names":[],"mappings":";;;AAAA,2CAUuB;AAEvB,yEAAsE;AACtE,yEAAsE;AACtE,mEAAgE;AAChE,uEAAoE;AACpE,6DAA0D;AAC1D,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mBAAS,CAAC,KAAK,CAChB,CACF,CAAC"}
1
+ {"version":3,"file":"SdkHttpSimulationProgrammer.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkHttpSimulationProgrammer.ts"],"names":[],"mappings":";;;AAAA,2CAUuB;AAEvB,yEAAsE;AACtE,yEAAsE;AACtE,mEAAgE;AAChE,uEAAoE;AACpE,6DAA0D;AAC1D,kDAA+C;AAI/C,6DAA0D;AAC1D,6EAA0E;AAC1E,uDAAoD;AAEpD;;;;;;;;;;;GAWG;AACH,IAAiB,2BAA2B,CAoX3C;AApXD,WAAiB,2BAA2B;IAC1C;;;;;;;;;;;;OAYG;IACU,kCAAM,GACjB,CAAC,OAAuB,EAAE,EAAE,CAC5B,CAAC,QAA0B,EAAE,EAAE,CAC/B,CAAC,KAAsB,EAAQ,EAAE;QAC/B,MAAM,MAAM,GAAa,uCAAkB,CAAC,YAAY,CAAC,OAAO,CAAC,CAC/D,QAAQ,CACT,CAAC,KAAK,CAAa,CAAC;QACrB,OAAO,QAAQ,CAAC,QAAQ,CAAC,CACvB,iBAAO,CAAC,mBAAmB,CACzB,SAAS,EACT,SAAS,EACT,EAAE,EACF,OAAO,CAAC,MAAM,CAAC,SAAS,KAAK,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,KAAK,IAAI;YACjE,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,iBAAO,CAAC,uBAAuB,CAC7B,iCAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAClC,CAAC,MAAM,CAAC,CACT,EACL,SAAS,EACT,KAAK,CAAC,OAAO,CAAC,MAAM,KAAK,IAAI;YAC3B,CAAC,CAAC,iBAAO,CAAC,mBAAmB,CACzB,iBAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAC1C,CAAC,uCAAkB,CAAC,WAAW,EAAc,CAAC,EAC9C;gBACE,iBAAO,CAAC,6BAA6B,CAAC;oBACpC,iBAAO,CAAC,wBAAwB,CAC9B,OAAO,EACP,iBA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V,CAAC;AACR,CAAC,EApXgB,2BAA2B,aAA3B,2BAA2B,GAA3B,2BAA2B,QAoX3C;AAED,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,UAAsB,EAAE,EAAE,CAC5D,iBAAO,CAAC,uBAAuB,CAC7B,CAAC,iBAAO,CAAC,cAAc,CAAC,oBAAU,CAAC,aAAa,CAAC,CAAC,EAClD,iBAAO,CAAC,6BAA6B,CACnC;IACE,iBAAO,CAAC,yBAAyB,CAC/B,iBAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAC9B,SAAS,EACT,SAAS,EACT,UAAU,CACX;CACF,EACD,mBAAS,CAAC,KAAK,CAChB,CACF,CAAC"}
@@ -1,9 +1,72 @@
1
1
  import { ImportDictionary } from "./ImportDictionary";
2
+ /**
3
+ * The imports of the SDK's runtime dependencies.
4
+ *
5
+ * @evidence contracts/common.md#principled-implementation The namespace names each dependency once so every generator registers it the same way.
6
+ * @evidence contracts/common.md#clear-and-simple-design Six one-call helpers.
7
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Each helper registers one fixed import.
8
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
9
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
10
+ */
2
11
  export declare namespace SdkImportWizard {
12
+ /**
13
+ * Returns the import of the fetcher: the encrypted one or the plain one.
14
+ *
15
+ * @evidence contracts/common.md#principled-implementation The choice follows the route.
16
+ * @evidence contracts/common.md#clear-and-simple-design One conditional.
17
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts It returns the registering function.
18
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
19
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.Fetcher composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
20
+ */
3
21
  const Fetcher: (encrypted: boolean) => (importer: ImportDictionary) => string;
22
+ /**
23
+ * Registers `HttpError` of `@nestia/fetcher`.
24
+ *
25
+ * @evidence contracts/common.md#principled-implementation It is a type import.
26
+ * @evidence contracts/common.md#clear-and-simple-design One call.
27
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The import is fixed.
28
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
29
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.HttpError composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
30
+ */
4
31
  const HttpError: (importer: ImportDictionary) => string;
32
+ /**
33
+ * Registers `IConnection` of `@nestia/fetcher`.
34
+ *
35
+ * @evidence contracts/common.md#principled-implementation It is a type import.
36
+ * @evidence contracts/common.md#clear-and-simple-design One call.
37
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The import is fixed.
38
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
39
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.IConnection composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
40
+ */
5
41
  const IConnection: (importer: ImportDictionary) => string;
42
+ /**
43
+ * Registers `Primitive` of `typia`.
44
+ *
45
+ * @evidence contracts/common.md#principled-implementation It is a type import.
46
+ * @evidence contracts/common.md#clear-and-simple-design One call.
47
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The import is fixed.
48
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
49
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.Primitive composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
50
+ */
6
51
  const Primitive: (importer: ImportDictionary) => string;
52
+ /**
53
+ * Registers `Resolved` of `typia`.
54
+ *
55
+ * @evidence contracts/common.md#principled-implementation It is a type import.
56
+ * @evidence contracts/common.md#clear-and-simple-design One call.
57
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The import is fixed.
58
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
59
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.Resolved composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
60
+ */
7
61
  const Resolved: (importer: ImportDictionary) => string;
62
+ /**
63
+ * Registers the default import of `typia`.
64
+ *
65
+ * @evidence contracts/common.md#principled-implementation It is a value import.
66
+ * @evidence contracts/common.md#clear-and-simple-design One call.
67
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The import is fixed.
68
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
69
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.typia composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
70
+ */
8
71
  const typia: (importer: ImportDictionary) => string;
9
72
  }
@@ -1,33 +1,96 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SdkImportWizard = void 0;
4
+ /**
5
+ * The imports of the SDK's runtime dependencies.
6
+ *
7
+ * @evidence contracts/common.md#principled-implementation The namespace names each dependency once so every generator registers it the same way.
8
+ * @evidence contracts/common.md#clear-and-simple-design Six one-call helpers.
9
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Each helper registers one fixed import.
10
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
11
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
12
+ */
4
13
  var SdkImportWizard;
5
14
  (function (SdkImportWizard) {
15
+ /**
16
+ * Returns the import of the fetcher: the encrypted one or the plain one.
17
+ *
18
+ * @evidence contracts/common.md#principled-implementation The choice follows the route.
19
+ * @evidence contracts/common.md#clear-and-simple-design One conditional.
20
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts It returns the registering function.
21
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
22
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.Fetcher composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
23
+ */
6
24
  SdkImportWizard.Fetcher = (encrypted) => encrypted ? EncryptedFetcher : PlainFetcher;
25
+ /**
26
+ * Registers `HttpError` of `@nestia/fetcher`.
27
+ *
28
+ * @evidence contracts/common.md#principled-implementation It is a type import.
29
+ * @evidence contracts/common.md#clear-and-simple-design One call.
30
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The import is fixed.
31
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
32
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.HttpError composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
33
+ */
7
34
  SdkImportWizard.HttpError = (importer) => importer.external({
8
35
  declaration: true,
9
36
  file: "@nestia/fetcher",
10
37
  type: "element",
11
38
  name: "HttpError",
12
39
  });
40
+ /**
41
+ * Registers `IConnection` of `@nestia/fetcher`.
42
+ *
43
+ * @evidence contracts/common.md#principled-implementation It is a type import.
44
+ * @evidence contracts/common.md#clear-and-simple-design One call.
45
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The import is fixed.
46
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
47
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.IConnection composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
48
+ */
13
49
  SdkImportWizard.IConnection = (importer) => importer.external({
14
50
  declaration: true,
15
51
  file: "@nestia/fetcher",
16
52
  type: "element",
17
53
  name: "IConnection",
18
54
  });
55
+ /**
56
+ * Registers `Primitive` of `typia`.
57
+ *
58
+ * @evidence contracts/common.md#principled-implementation It is a type import.
59
+ * @evidence contracts/common.md#clear-and-simple-design One call.
60
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The import is fixed.
61
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
62
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.Primitive composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
63
+ */
19
64
  SdkImportWizard.Primitive = (importer) => importer.external({
20
65
  declaration: true,
21
66
  file: "typia",
22
67
  type: "element",
23
68
  name: "Primitive",
24
69
  });
70
+ /**
71
+ * Registers `Resolved` of `typia`.
72
+ *
73
+ * @evidence contracts/common.md#principled-implementation It is a type import.
74
+ * @evidence contracts/common.md#clear-and-simple-design One call.
75
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The import is fixed.
76
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
77
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.Resolved composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
78
+ */
25
79
  SdkImportWizard.Resolved = (importer) => importer.external({
26
80
  declaration: true,
27
81
  file: "typia",
28
82
  type: "element",
29
83
  name: "Resolved",
30
84
  });
85
+ /**
86
+ * Registers the default import of `typia`.
87
+ *
88
+ * @evidence contracts/common.md#principled-implementation It is a value import.
89
+ * @evidence contracts/common.md#clear-and-simple-design One call.
90
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The import is fixed.
91
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
92
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkImportWizard.typia composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
93
+ */
31
94
  SdkImportWizard.typia = (importer) => importer.external({
32
95
  declaration: false,
33
96
  file: "typia",
@@ -1 +1 @@
1
- {"version":3,"file":"SdkImportWizard.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkImportWizard.ts"],"names":[],"mappings":";;;AAEA,IAAiB,eAAe,CA2C/B;AA3CD,WAAiB,eAAe;IACjB,uBAAO,GAAG,CAAC,SAAkB,EAAE,EAAE,CAC5C,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,CAAC;IAEjC,yBAAS,GAAG,CAAC,QAA0B,EAAE,EAAE,CACtD,QAAQ,CAAC,QAAQ,CAAC;QAChB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,WAAW;KAClB,CAAC,CAAC;IAEQ,2BAAW,GAAG,CAAC,QAA0B,EAAE,EAAE,CACxD,QAAQ,CAAC,QAAQ,CAAC;QAChB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,aAAa;KACpB,CAAC,CAAC;IAEQ,yBAAS,GAAG,CAAC,QAA0B,EAAE,EAAE,CACtD,QAAQ,CAAC,QAAQ,CAAC;QAChB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,WAAW;KAClB,CAAC,CAAC;IAEQ,wBAAQ,GAAG,CAAC,QAA0B,EAAE,EAAE,CACrD,QAAQ,CAAC,QAAQ,CAAC;QAChB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;KACjB,CAAC,CAAC;IAEQ,qBAAK,GAAG,CAAC,QAA0B,EAAE,EAAE,CAClD,QAAQ,CAAC,QAAQ,CAAC;QAChB,WAAW,EAAE,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,IAAI,EAAE,aAAa;KACpB,CAAC,CAAC;IAEL;;;;;;;;OAQG;IACU,yBAAS,GAAG,CAAC,QAA0B,EAAE,EAAE,CACtD,QAAQ,CAAC,QAAQ,CAAC;QAChB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,WAAW;KAClB,CAAC,CAAC;IAEL;;;;;;;;OAQG;IACU,wBAAQ,GAAG,CAAC,QAA0B,EAAE,EAAE,CACrD,QAAQ,CAAC,QAAQ,CAAC;QAChB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;KACjB,CAAC,CAAC;IAEL;;;;;;;;OAQG;IACU,qBAAK,GAAG,CAAC,QAA0B,EAAE,EAAE,CAClD,QAAQ,CAAC,QAAQ,CAAC;QAChB,WAAW,EAAE,KAAK;QAClB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,OAAO;KACd,CAAC,CAAC;AACP,CAAC,EAjGgB,eAAe,aAAf,eAAe,GAAf,eAAe,QAiG/B;AAED,MAAM,YAAY,GAAG,CAAC,QAA0B,EAAE,EAAE,CAClD,QAAQ,CAAC,QAAQ,CAAC;IAChB,WAAW,EAAE,KAAK;IAClB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,cAAc;CACrB,CAAC,CAAC;AAEL,MAAM,gBAAgB,GAAG,CAAC,QAA0B,EAAE,EAAE,CACtD,QAAQ,CAAC,QAAQ,CAAC;IAChB,WAAW,EAAE,KAAK;IAClB,IAAI,EAAE,sCAAsC;IAC5C,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,kBAAkB;CACzB,CAAC,CAAC"}
@@ -5,11 +5,26 @@ import { ImportDictionary } from "./ImportDictionary";
5
5
  /**
6
6
  * Emits a typed client wrapper for an MCP tool.
7
7
  *
8
- * Object output types are wrapped in `Primitive<T>` because MCP round-trips
9
- * values through JSON. Void MCP tools return `Promise<void>`.
8
+ * Cloned input and output declarations use the native JSON wire graph.
9
+ * Source-reference output types use `Primitive<T>` for the same JSON
10
+ * round-trip. Void MCP tools return `Promise<void>`.
10
11
  *
11
12
  * @author wildduck - https://github.com/wildduck2
13
+ * @evidence contracts/common.md#principled-implementation The namespace prints the wrapper that calls the tool and its metadata, and turns a tool error into an exception.
14
+ * @evidence contracts/common.md#clear-and-simple-design One public function and the writers.
15
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The function's identifiers yield to the tool's own name.
16
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
17
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkMcpRouteProgrammer composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
12
18
  */
13
19
  export declare namespace SdkMcpRouteProgrammer {
20
+ /**
21
+ * Returns the function and the namespace of an MCP tool.
22
+ *
23
+ * @evidence contracts/common.md#principled-implementation The two nodes are composed together so they share names.
24
+ * @evidence contracts/common.md#clear-and-simple-design One function.
25
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts The shape follows the tool metadata.
26
+ * @evidence contracts/common.md#meaningful-documentation The comment states what the declaration produces and its result.
27
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation SdkMcpRouteProgrammer.write composes SDK syntax, identifiers or import bindings; it does not resolve native file identity or launch a process. Source resolution and file emission belong to their filesystem owners.
28
+ */
14
29
  const write: (project: INestiaProject) => (importer: ImportDictionary) => (route: ITypedMcpRoute) => Node[];
15
30
  }