@typia/utils 12.1.0-dev.20260325 → 13.0.0-dev.20260426

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 (619) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +85 -85
  3. package/lib/_virtual/ArrayUtil.mjs +4 -0
  4. package/lib/_virtual/ArrayUtil.mjs.map +1 -0
  5. package/lib/_virtual/EndpointUtil.mjs +4 -0
  6. package/lib/_virtual/EndpointUtil.mjs.map +1 -0
  7. package/lib/_virtual/HttpError.mjs +4 -0
  8. package/lib/_virtual/HttpError.mjs.map +1 -0
  9. package/lib/_virtual/HttpLlm.mjs +4 -0
  10. package/lib/_virtual/HttpLlm.mjs.map +1 -0
  11. package/lib/_virtual/HttpLlmApplicationComposer.mjs +4 -0
  12. package/lib/_virtual/HttpLlmApplicationComposer.mjs.map +1 -0
  13. package/lib/_virtual/HttpLlmFunctionFetcher.mjs +4 -0
  14. package/lib/_virtual/HttpLlmFunctionFetcher.mjs.map +1 -0
  15. package/lib/_virtual/HttpMigrateApplicationComposer.mjs +4 -0
  16. package/lib/_virtual/HttpMigrateApplicationComposer.mjs.map +1 -0
  17. package/lib/_virtual/HttpMigrateRouteAccessor.mjs +4 -0
  18. package/lib/_virtual/HttpMigrateRouteAccessor.mjs.map +1 -0
  19. package/lib/_virtual/HttpMigrateRouteComposer.mjs +4 -0
  20. package/lib/_virtual/HttpMigrateRouteComposer.mjs.map +1 -0
  21. package/lib/_virtual/HttpMigrateRouteFetcher.mjs +4 -0
  22. package/lib/_virtual/HttpMigrateRouteFetcher.mjs.map +1 -0
  23. package/lib/_virtual/HttpMigration.mjs +4 -0
  24. package/lib/_virtual/HttpMigration.mjs.map +1 -0
  25. package/lib/_virtual/IOpenApiValidatorContext.mjs +4 -0
  26. package/lib/_virtual/IOpenApiValidatorContext.mjs.map +1 -0
  27. package/lib/_virtual/JsonDescriptor.mjs +4 -0
  28. package/lib/_virtual/JsonDescriptor.mjs.map +1 -0
  29. package/lib/_virtual/LlmDescriptionInverter.mjs +4 -0
  30. package/lib/_virtual/LlmDescriptionInverter.mjs.map +1 -0
  31. package/lib/_virtual/LlmJson.mjs +4 -0
  32. package/lib/_virtual/LlmJson.mjs.map +1 -0
  33. package/lib/_virtual/LlmParametersComposer.mjs +4 -0
  34. package/lib/_virtual/LlmParametersComposer.mjs.map +1 -0
  35. package/lib/_virtual/LlmSchemaConverter.mjs +4 -0
  36. package/lib/_virtual/LlmSchemaConverter.mjs.map +1 -0
  37. package/lib/_virtual/LlmTypeChecker.mjs +4 -0
  38. package/lib/_virtual/LlmTypeChecker.mjs.map +1 -0
  39. package/lib/_virtual/MapUtil.mjs +4 -0
  40. package/lib/_virtual/MapUtil.mjs.map +1 -0
  41. package/lib/_virtual/NamingConvention.mjs +4 -0
  42. package/lib/_virtual/NamingConvention.mjs.map +1 -0
  43. package/lib/_virtual/OpenApiArrayValidator.mjs +4 -0
  44. package/lib/_virtual/OpenApiArrayValidator.mjs.map +1 -0
  45. package/lib/_virtual/OpenApiBooleanValidator.mjs +4 -0
  46. package/lib/_virtual/OpenApiBooleanValidator.mjs.map +1 -0
  47. package/lib/_virtual/OpenApiConstantValidator.mjs +4 -0
  48. package/lib/_virtual/OpenApiConstantValidator.mjs.map +1 -0
  49. package/lib/_virtual/OpenApiConstraintShifter.mjs +4 -0
  50. package/lib/_virtual/OpenApiConstraintShifter.mjs.map +1 -0
  51. package/lib/_virtual/OpenApiConverter.mjs +4 -0
  52. package/lib/_virtual/OpenApiConverter.mjs.map +1 -0
  53. package/lib/_virtual/OpenApiExclusiveEmender.mjs +4 -0
  54. package/lib/_virtual/OpenApiExclusiveEmender.mjs.map +1 -0
  55. package/lib/_virtual/OpenApiIntegerValidator.mjs +4 -0
  56. package/lib/_virtual/OpenApiIntegerValidator.mjs.map +1 -0
  57. package/lib/_virtual/OpenApiNumberValidator.mjs +4 -0
  58. package/lib/_virtual/OpenApiNumberValidator.mjs.map +1 -0
  59. package/lib/_virtual/OpenApiObjectValidator.mjs +4 -0
  60. package/lib/_virtual/OpenApiObjectValidator.mjs.map +1 -0
  61. package/lib/_virtual/OpenApiOneOfValidator.mjs +4 -0
  62. package/lib/_virtual/OpenApiOneOfValidator.mjs.map +1 -0
  63. package/lib/_virtual/OpenApiSchemaNamingRule.mjs +4 -0
  64. package/lib/_virtual/OpenApiSchemaNamingRule.mjs.map +1 -0
  65. package/lib/_virtual/OpenApiStationValidator.mjs +4 -0
  66. package/lib/_virtual/OpenApiStationValidator.mjs.map +1 -0
  67. package/lib/_virtual/OpenApiStringValidator.mjs +4 -0
  68. package/lib/_virtual/OpenApiStringValidator.mjs.map +1 -0
  69. package/lib/_virtual/OpenApiTupleValidator.mjs +4 -0
  70. package/lib/_virtual/OpenApiTupleValidator.mjs.map +1 -0
  71. package/lib/_virtual/OpenApiTypeChecker.mjs +4 -0
  72. package/lib/_virtual/OpenApiTypeChecker.mjs.map +1 -0
  73. package/lib/_virtual/OpenApiTypeCheckerBase.mjs +4 -0
  74. package/lib/_virtual/OpenApiTypeCheckerBase.mjs.map +1 -0
  75. package/lib/_virtual/OpenApiV3Downgrader.mjs +4 -0
  76. package/lib/_virtual/OpenApiV3Downgrader.mjs.map +1 -0
  77. package/lib/_virtual/OpenApiV3TypeChecker.mjs +4 -0
  78. package/lib/_virtual/OpenApiV3TypeChecker.mjs.map +1 -0
  79. package/lib/_virtual/OpenApiV3Upgrader.mjs +4 -0
  80. package/lib/_virtual/OpenApiV3Upgrader.mjs.map +1 -0
  81. package/lib/_virtual/OpenApiV3_1Downgrader.mjs +4 -0
  82. package/lib/_virtual/OpenApiV3_1Downgrader.mjs.map +1 -0
  83. package/lib/_virtual/OpenApiV3_1TypeChecker.mjs +4 -0
  84. package/lib/_virtual/OpenApiV3_1TypeChecker.mjs.map +1 -0
  85. package/lib/_virtual/OpenApiV3_1Upgrader.mjs +4 -0
  86. package/lib/_virtual/OpenApiV3_1Upgrader.mjs.map +1 -0
  87. package/lib/_virtual/OpenApiV3_2Upgrader.mjs +4 -0
  88. package/lib/_virtual/OpenApiV3_2Upgrader.mjs.map +1 -0
  89. package/lib/_virtual/OpenApiValidator.mjs +4 -0
  90. package/lib/_virtual/OpenApiValidator.mjs.map +1 -0
  91. package/lib/_virtual/Singleton.mjs +4 -0
  92. package/lib/_virtual/Singleton.mjs.map +1 -0
  93. package/lib/_virtual/StringUtil.mjs +4 -0
  94. package/lib/_virtual/StringUtil.mjs.map +1 -0
  95. package/lib/_virtual/SwaggerV2Downgrader.mjs +4 -0
  96. package/lib/_virtual/SwaggerV2Downgrader.mjs.map +1 -0
  97. package/lib/_virtual/SwaggerV2TypeChecker.mjs +4 -0
  98. package/lib/_virtual/SwaggerV2TypeChecker.mjs.map +1 -0
  99. package/lib/_virtual/SwaggerV2Upgrader.mjs +4 -0
  100. package/lib/_virtual/SwaggerV2Upgrader.mjs.map +1 -0
  101. package/lib/_virtual/_commonjsHelpers.mjs +6 -0
  102. package/lib/_virtual/_commonjsHelpers.mjs.map +1 -0
  103. package/lib/_virtual/_isBigintString.mjs +4 -0
  104. package/lib/_virtual/_isBigintString.mjs.map +1 -0
  105. package/lib/_virtual/_isFormatByte.mjs +4 -0
  106. package/lib/_virtual/_isFormatByte.mjs.map +1 -0
  107. package/lib/_virtual/_isFormatDate.mjs +4 -0
  108. package/lib/_virtual/_isFormatDate.mjs.map +1 -0
  109. package/lib/_virtual/_isFormatDateTime.mjs +4 -0
  110. package/lib/_virtual/_isFormatDateTime.mjs.map +1 -0
  111. package/lib/_virtual/_isFormatDuration.mjs +4 -0
  112. package/lib/_virtual/_isFormatDuration.mjs.map +1 -0
  113. package/lib/_virtual/_isFormatEmail.mjs +4 -0
  114. package/lib/_virtual/_isFormatEmail.mjs.map +1 -0
  115. package/lib/_virtual/_isFormatHostname.mjs +4 -0
  116. package/lib/_virtual/_isFormatHostname.mjs.map +1 -0
  117. package/lib/_virtual/_isFormatIdnEmail.mjs +4 -0
  118. package/lib/_virtual/_isFormatIdnEmail.mjs.map +1 -0
  119. package/lib/_virtual/_isFormatIdnHostname.mjs +4 -0
  120. package/lib/_virtual/_isFormatIdnHostname.mjs.map +1 -0
  121. package/lib/_virtual/_isFormatIpv4.mjs +4 -0
  122. package/lib/_virtual/_isFormatIpv4.mjs.map +1 -0
  123. package/lib/_virtual/_isFormatIpv6.mjs +4 -0
  124. package/lib/_virtual/_isFormatIpv6.mjs.map +1 -0
  125. package/lib/_virtual/_isFormatIri.mjs +4 -0
  126. package/lib/_virtual/_isFormatIri.mjs.map +1 -0
  127. package/lib/_virtual/_isFormatIriReference.mjs +4 -0
  128. package/lib/_virtual/_isFormatIriReference.mjs.map +1 -0
  129. package/lib/_virtual/_isFormatJsonPointer.mjs +4 -0
  130. package/lib/_virtual/_isFormatJsonPointer.mjs.map +1 -0
  131. package/lib/_virtual/_isFormatPassword.mjs +4 -0
  132. package/lib/_virtual/_isFormatPassword.mjs.map +1 -0
  133. package/lib/_virtual/_isFormatRegex.mjs +4 -0
  134. package/lib/_virtual/_isFormatRegex.mjs.map +1 -0
  135. package/lib/_virtual/_isFormatRelativeJsonPointer.mjs +4 -0
  136. package/lib/_virtual/_isFormatRelativeJsonPointer.mjs.map +1 -0
  137. package/lib/_virtual/_isFormatTime.mjs +4 -0
  138. package/lib/_virtual/_isFormatTime.mjs.map +1 -0
  139. package/lib/_virtual/_isFormatUri.mjs +4 -0
  140. package/lib/_virtual/_isFormatUri.mjs.map +1 -0
  141. package/lib/_virtual/_isFormatUriReference.mjs +4 -0
  142. package/lib/_virtual/_isFormatUriReference.mjs.map +1 -0
  143. package/lib/_virtual/_isFormatUriTemplate.mjs +4 -0
  144. package/lib/_virtual/_isFormatUriTemplate.mjs.map +1 -0
  145. package/lib/_virtual/_isFormatUrl.mjs +4 -0
  146. package/lib/_virtual/_isFormatUrl.mjs.map +1 -0
  147. package/lib/_virtual/_isFormatUuid.mjs +4 -0
  148. package/lib/_virtual/_isFormatUuid.mjs.map +1 -0
  149. package/lib/_virtual/_isUniqueItems.mjs +4 -0
  150. package/lib/_virtual/_isUniqueItems.mjs.map +1 -0
  151. package/lib/_virtual/coerceLlmArguments.mjs +4 -0
  152. package/lib/_virtual/coerceLlmArguments.mjs.map +1 -0
  153. package/lib/_virtual/dedent.mjs +4 -0
  154. package/lib/_virtual/dedent.mjs.map +1 -0
  155. package/lib/_virtual/index.mjs +4 -0
  156. package/lib/_virtual/index.mjs.map +1 -0
  157. package/lib/_virtual/index2.mjs +4 -0
  158. package/lib/_virtual/index2.mjs.map +1 -0
  159. package/lib/_virtual/index3.mjs +4 -0
  160. package/lib/_virtual/index3.mjs.map +1 -0
  161. package/lib/_virtual/index4.mjs +4 -0
  162. package/lib/_virtual/index4.mjs.map +1 -0
  163. package/lib/_virtual/index5.mjs +4 -0
  164. package/lib/_virtual/index5.mjs.map +1 -0
  165. package/lib/_virtual/parseLenientJson.mjs +4 -0
  166. package/lib/_virtual/parseLenientJson.mjs.map +1 -0
  167. package/lib/_virtual/stringifyValidationFailure.mjs +4 -0
  168. package/lib/_virtual/stringifyValidationFailure.mjs.map +1 -0
  169. package/lib/converters/LlmSchemaConverter.js +149 -51
  170. package/lib/converters/LlmSchemaConverter.js.map +1 -1
  171. package/lib/converters/LlmSchemaConverter.mjs +5 -511
  172. package/lib/converters/LlmSchemaConverter.mjs.map +1 -1
  173. package/lib/converters/LlmSchemaConverter2.mjs +551 -0
  174. package/lib/converters/LlmSchemaConverter2.mjs.map +1 -0
  175. package/lib/converters/OpenApiConverter.js.map +1 -1
  176. package/lib/converters/OpenApiConverter.mjs +5 -146
  177. package/lib/converters/OpenApiConverter.mjs.map +1 -1
  178. package/lib/converters/OpenApiConverter2.mjs +167 -0
  179. package/lib/converters/OpenApiConverter2.mjs.map +1 -0
  180. package/lib/converters/index.mjs +7 -3
  181. package/lib/converters/index.mjs.map +1 -1
  182. package/lib/converters/index2.mjs +37 -0
  183. package/lib/converters/index2.mjs.map +1 -0
  184. package/lib/converters/internal/LlmDescriptionInverter.js.map +1 -1
  185. package/lib/converters/internal/LlmDescriptionInverter.mjs +5 -138
  186. package/lib/converters/internal/LlmDescriptionInverter.mjs.map +1 -1
  187. package/lib/converters/internal/LlmDescriptionInverter2.mjs +153 -0
  188. package/lib/converters/internal/LlmDescriptionInverter2.mjs.map +1 -0
  189. package/lib/converters/internal/LlmParametersComposer.js +14 -17
  190. package/lib/converters/internal/LlmParametersComposer.js.map +1 -1
  191. package/lib/converters/internal/LlmParametersComposer.mjs +5 -39
  192. package/lib/converters/internal/LlmParametersComposer.mjs.map +1 -1
  193. package/lib/converters/internal/LlmParametersComposer2.mjs +48 -0
  194. package/lib/converters/internal/LlmParametersComposer2.mjs.map +1 -0
  195. package/lib/converters/internal/OpenApiConstraintShifter.js.map +1 -1
  196. package/lib/converters/internal/OpenApiConstraintShifter.mjs +5 -99
  197. package/lib/converters/internal/OpenApiConstraintShifter.mjs.map +1 -1
  198. package/lib/converters/internal/OpenApiConstraintShifter2.mjs +115 -0
  199. package/lib/converters/internal/OpenApiConstraintShifter2.mjs.map +1 -0
  200. package/lib/converters/internal/OpenApiExclusiveEmender.js.map +1 -1
  201. package/lib/converters/internal/OpenApiExclusiveEmender.mjs +6 -33
  202. package/lib/converters/internal/OpenApiExclusiveEmender.mjs.map +1 -1
  203. package/lib/converters/internal/OpenApiExclusiveEmender2.mjs +43 -0
  204. package/lib/converters/internal/OpenApiExclusiveEmender2.mjs.map +1 -0
  205. package/lib/converters/internal/OpenApiV3Downgrader.js +2 -1
  206. package/lib/converters/internal/OpenApiV3Downgrader.js.map +1 -1
  207. package/lib/converters/internal/OpenApiV3Downgrader.mjs +5 -299
  208. package/lib/converters/internal/OpenApiV3Downgrader.mjs.map +1 -1
  209. package/lib/converters/internal/OpenApiV3Downgrader2.mjs +247 -0
  210. package/lib/converters/internal/OpenApiV3Downgrader2.mjs.map +1 -0
  211. package/lib/converters/internal/OpenApiV3Upgrader.js +58 -67
  212. package/lib/converters/internal/OpenApiV3Upgrader.js.map +1 -1
  213. package/lib/converters/internal/OpenApiV3Upgrader.mjs +5 -367
  214. package/lib/converters/internal/OpenApiV3Upgrader.mjs.map +1 -1
  215. package/lib/converters/internal/OpenApiV3Upgrader2.mjs +308 -0
  216. package/lib/converters/internal/OpenApiV3Upgrader2.mjs.map +1 -0
  217. package/lib/converters/internal/OpenApiV3_1Downgrader.js.map +1 -1
  218. package/lib/converters/internal/OpenApiV3_1Downgrader.mjs +5 -236
  219. package/lib/converters/internal/OpenApiV3_1Downgrader.mjs.map +1 -1
  220. package/lib/converters/internal/OpenApiV3_1Downgrader2.mjs +203 -0
  221. package/lib/converters/internal/OpenApiV3_1Downgrader2.mjs.map +1 -0
  222. package/lib/converters/internal/OpenApiV3_1Upgrader.js +68 -70
  223. package/lib/converters/internal/OpenApiV3_1Upgrader.js.map +1 -1
  224. package/lib/converters/internal/OpenApiV3_1Upgrader.mjs +5 -564
  225. package/lib/converters/internal/OpenApiV3_1Upgrader.mjs.map +1 -1
  226. package/lib/converters/internal/OpenApiV3_1Upgrader2.mjs +435 -0
  227. package/lib/converters/internal/OpenApiV3_1Upgrader2.mjs.map +1 -0
  228. package/lib/converters/internal/OpenApiV3_2Upgrader.js +57 -63
  229. package/lib/converters/internal/OpenApiV3_2Upgrader.js.map +1 -1
  230. package/lib/converters/internal/OpenApiV3_2Upgrader.mjs +5 -240
  231. package/lib/converters/internal/OpenApiV3_2Upgrader.mjs.map +1 -1
  232. package/lib/converters/internal/OpenApiV3_2Upgrader2.mjs +211 -0
  233. package/lib/converters/internal/OpenApiV3_2Upgrader2.mjs.map +1 -0
  234. package/lib/converters/internal/SwaggerV2Downgrader.js +44 -56
  235. package/lib/converters/internal/SwaggerV2Downgrader.js.map +1 -1
  236. package/lib/converters/internal/SwaggerV2Downgrader.mjs +5 -352
  237. package/lib/converters/internal/SwaggerV2Downgrader.mjs.map +1 -1
  238. package/lib/converters/internal/SwaggerV2Downgrader2.mjs +297 -0
  239. package/lib/converters/internal/SwaggerV2Downgrader2.mjs.map +1 -0
  240. package/lib/converters/internal/SwaggerV2Upgrader.js +52 -63
  241. package/lib/converters/internal/SwaggerV2Upgrader.js.map +1 -1
  242. package/lib/converters/internal/SwaggerV2Upgrader.mjs +5 -421
  243. package/lib/converters/internal/SwaggerV2Upgrader.mjs.map +1 -1
  244. package/lib/converters/internal/SwaggerV2Upgrader2.mjs +378 -0
  245. package/lib/converters/internal/SwaggerV2Upgrader2.mjs.map +1 -0
  246. package/lib/http/HttpError.js.map +1 -1
  247. package/lib/http/HttpError.mjs +6 -74
  248. package/lib/http/HttpError.mjs.map +1 -1
  249. package/lib/http/HttpError2.mjs +81 -0
  250. package/lib/http/HttpError2.mjs.map +1 -0
  251. package/lib/http/HttpLlm.js +5 -4
  252. package/lib/http/HttpLlm.js.map +1 -1
  253. package/lib/http/HttpLlm.mjs +5 -96
  254. package/lib/http/HttpLlm.mjs.map +1 -1
  255. package/lib/http/HttpLlm2.mjs +115 -0
  256. package/lib/http/HttpLlm2.mjs.map +1 -0
  257. package/lib/http/HttpMigration.js.map +1 -1
  258. package/lib/http/HttpMigration.mjs +5 -49
  259. package/lib/http/HttpMigration.mjs.map +1 -1
  260. package/lib/http/HttpMigration2.mjs +66 -0
  261. package/lib/http/HttpMigration2.mjs.map +1 -0
  262. package/lib/http/index.mjs +7 -3
  263. package/lib/http/index.mjs.map +1 -1
  264. package/lib/http/index2.mjs +36 -0
  265. package/lib/http/index2.mjs.map +1 -0
  266. package/lib/http/internal/HttpLlmApplicationComposer.js +12 -13
  267. package/lib/http/internal/HttpLlmApplicationComposer.js.map +1 -1
  268. package/lib/http/internal/HttpLlmApplicationComposer.mjs +5 -297
  269. package/lib/http/internal/HttpLlmApplicationComposer.mjs.map +1 -1
  270. package/lib/http/internal/HttpLlmApplicationComposer2.mjs +309 -0
  271. package/lib/http/internal/HttpLlmApplicationComposer2.mjs.map +1 -0
  272. package/lib/http/internal/HttpLlmFunctionFetcher.js.map +1 -1
  273. package/lib/http/internal/HttpLlmFunctionFetcher.mjs +5 -21
  274. package/lib/http/internal/HttpLlmFunctionFetcher.mjs.map +1 -1
  275. package/lib/http/internal/HttpLlmFunctionFetcher2.mjs +36 -0
  276. package/lib/http/internal/HttpLlmFunctionFetcher2.mjs.map +1 -0
  277. package/lib/http/internal/HttpMigrateApplicationComposer.js.map +1 -1
  278. package/lib/http/internal/HttpMigrateApplicationComposer.mjs +5 -44
  279. package/lib/http/internal/HttpMigrateApplicationComposer.mjs.map +1 -1
  280. package/lib/http/internal/HttpMigrateApplicationComposer2.mjs +59 -0
  281. package/lib/http/internal/HttpMigrateApplicationComposer2.mjs.map +1 -0
  282. package/lib/http/internal/HttpMigrateRouteAccessor.js.map +1 -1
  283. package/lib/http/internal/HttpMigrateRouteAccessor.mjs +5 -103
  284. package/lib/http/internal/HttpMigrateRouteAccessor.mjs.map +1 -1
  285. package/lib/http/internal/HttpMigrateRouteAccessor2.mjs +121 -0
  286. package/lib/http/internal/HttpMigrateRouteAccessor2.mjs.map +1 -0
  287. package/lib/http/internal/HttpMigrateRouteComposer.js +35 -54
  288. package/lib/http/internal/HttpMigrateRouteComposer.js.map +1 -1
  289. package/lib/http/internal/HttpMigrateRouteComposer.mjs +5 -381
  290. package/lib/http/internal/HttpMigrateRouteComposer.mjs.map +1 -1
  291. package/lib/http/internal/HttpMigrateRouteComposer2.mjs +384 -0
  292. package/lib/http/internal/HttpMigrateRouteComposer2.mjs.map +1 -0
  293. package/lib/http/internal/HttpMigrateRouteFetcher.js +7 -6
  294. package/lib/http/internal/HttpMigrateRouteFetcher.js.map +1 -1
  295. package/lib/http/internal/HttpMigrateRouteFetcher.mjs +5 -171
  296. package/lib/http/internal/HttpMigrateRouteFetcher.mjs.map +1 -1
  297. package/lib/http/internal/HttpMigrateRouteFetcher2.mjs +192 -0
  298. package/lib/http/internal/HttpMigrateRouteFetcher2.mjs.map +1 -0
  299. package/lib/index.mjs +7 -19
  300. package/lib/index.mjs.map +1 -1
  301. package/lib/index2.mjs +38 -0
  302. package/lib/index2.mjs.map +1 -0
  303. package/lib/utils/ArrayUtil.js.map +1 -1
  304. package/lib/utils/ArrayUtil.mjs +6 -26
  305. package/lib/utils/ArrayUtil.mjs.map +1 -1
  306. package/lib/utils/ArrayUtil2.mjs +40 -0
  307. package/lib/utils/ArrayUtil2.mjs.map +1 -0
  308. package/lib/utils/LlmJson.d.ts +1 -1
  309. package/lib/utils/LlmJson.js.map +1 -1
  310. package/lib/utils/LlmJson.mjs +5 -153
  311. package/lib/utils/LlmJson.mjs.map +1 -1
  312. package/lib/utils/LlmJson2.mjs +172 -0
  313. package/lib/utils/LlmJson2.mjs.map +1 -0
  314. package/lib/utils/MapUtil.js.map +1 -1
  315. package/lib/utils/MapUtil.mjs +6 -13
  316. package/lib/utils/MapUtil.mjs.map +1 -1
  317. package/lib/utils/MapUtil2.mjs +27 -0
  318. package/lib/utils/MapUtil2.mjs.map +1 -0
  319. package/lib/utils/NamingConvention.js.map +1 -1
  320. package/lib/utils/NamingConvention.mjs +6 -196
  321. package/lib/utils/NamingConvention.mjs.map +1 -1
  322. package/lib/utils/NamingConvention2.mjs +210 -0
  323. package/lib/utils/NamingConvention2.mjs.map +1 -0
  324. package/lib/utils/Singleton.d.ts +6 -1
  325. package/lib/utils/Singleton.js +0 -1
  326. package/lib/utils/Singleton.js.map +1 -1
  327. package/lib/utils/Singleton.mjs +6 -16
  328. package/lib/utils/Singleton.mjs.map +1 -1
  329. package/lib/utils/Singleton2.mjs +28 -0
  330. package/lib/utils/Singleton2.mjs.map +1 -0
  331. package/lib/utils/StringUtil.js +6 -9
  332. package/lib/utils/StringUtil.js.map +1 -1
  333. package/lib/utils/StringUtil.mjs +6 -11
  334. package/lib/utils/StringUtil.mjs.map +1 -1
  335. package/lib/utils/StringUtil2.mjs +25 -0
  336. package/lib/utils/StringUtil2.mjs.map +1 -0
  337. package/lib/utils/dedent.js.map +1 -1
  338. package/lib/utils/dedent.mjs +6 -48
  339. package/lib/utils/dedent.mjs.map +1 -1
  340. package/lib/utils/dedent2.mjs +62 -0
  341. package/lib/utils/dedent2.mjs.map +1 -0
  342. package/lib/utils/index.mjs +7 -7
  343. package/lib/utils/index.mjs.map +1 -1
  344. package/lib/utils/index2.mjs +44 -0
  345. package/lib/utils/index2.mjs.map +1 -0
  346. package/lib/utils/internal/EndpointUtil.js.map +1 -1
  347. package/lib/utils/internal/EndpointUtil.mjs +5 -34
  348. package/lib/utils/internal/EndpointUtil.mjs.map +1 -1
  349. package/lib/utils/internal/EndpointUtil2.mjs +49 -0
  350. package/lib/utils/internal/EndpointUtil2.mjs.map +1 -0
  351. package/lib/utils/internal/JsonDescriptor.js +18 -25
  352. package/lib/utils/internal/JsonDescriptor.js.map +1 -1
  353. package/lib/utils/internal/JsonDescriptor.mjs +5 -45
  354. package/lib/utils/internal/JsonDescriptor.mjs.map +1 -1
  355. package/lib/utils/internal/JsonDescriptor2.mjs +64 -0
  356. package/lib/utils/internal/JsonDescriptor2.mjs.map +1 -0
  357. package/lib/utils/internal/OpenApiTypeCheckerBase.js +15 -9
  358. package/lib/utils/internal/OpenApiTypeCheckerBase.js.map +1 -1
  359. package/lib/utils/internal/OpenApiTypeCheckerBase.mjs +5 -581
  360. package/lib/utils/internal/OpenApiTypeCheckerBase.mjs.map +1 -1
  361. package/lib/utils/internal/OpenApiTypeCheckerBase2.mjs +539 -0
  362. package/lib/utils/internal/OpenApiTypeCheckerBase2.mjs.map +1 -0
  363. package/lib/utils/internal/coerceLlmArguments.js +18 -4
  364. package/lib/utils/internal/coerceLlmArguments.js.map +1 -1
  365. package/lib/utils/internal/coerceLlmArguments.mjs +5 -245
  366. package/lib/utils/internal/coerceLlmArguments.mjs.map +1 -1
  367. package/lib/utils/internal/coerceLlmArguments2.mjs +276 -0
  368. package/lib/utils/internal/coerceLlmArguments2.mjs.map +1 -0
  369. package/lib/utils/internal/parseLenientJson.js.map +1 -1
  370. package/lib/utils/internal/parseLenientJson.mjs +6 -803
  371. package/lib/utils/internal/parseLenientJson.mjs.map +1 -1
  372. package/lib/utils/internal/parseLenientJson2.mjs +815 -0
  373. package/lib/utils/internal/parseLenientJson2.mjs.map +1 -0
  374. package/lib/utils/internal/stringifyValidationFailure.js.map +1 -1
  375. package/lib/utils/internal/stringifyValidationFailure.mjs +5 -315
  376. package/lib/utils/internal/stringifyValidationFailure.mjs.map +1 -1
  377. package/lib/utils/internal/stringifyValidationFailure2.mjs +333 -0
  378. package/lib/utils/internal/stringifyValidationFailure2.mjs.map +1 -0
  379. package/lib/validators/LlmTypeChecker.js +4 -3
  380. package/lib/validators/LlmTypeChecker.js.map +1 -1
  381. package/lib/validators/LlmTypeChecker.mjs +5 -297
  382. package/lib/validators/LlmTypeChecker.mjs.map +1 -1
  383. package/lib/validators/LlmTypeChecker2.mjs +323 -0
  384. package/lib/validators/LlmTypeChecker2.mjs.map +1 -0
  385. package/lib/validators/OpenApiTypeChecker.js.map +1 -1
  386. package/lib/validators/OpenApiTypeChecker.mjs +5 -215
  387. package/lib/validators/OpenApiTypeChecker.mjs.map +1 -1
  388. package/lib/validators/OpenApiTypeChecker2.mjs +219 -0
  389. package/lib/validators/OpenApiTypeChecker2.mjs.map +1 -0
  390. package/lib/validators/OpenApiV3TypeChecker.js.map +1 -1
  391. package/lib/validators/OpenApiV3TypeChecker.mjs +6 -27
  392. package/lib/validators/OpenApiV3TypeChecker.mjs.map +1 -1
  393. package/lib/validators/OpenApiV3TypeChecker2.mjs +41 -0
  394. package/lib/validators/OpenApiV3TypeChecker2.mjs.map +1 -0
  395. package/lib/validators/OpenApiV3_1TypeChecker.js.map +1 -1
  396. package/lib/validators/OpenApiV3_1TypeChecker.mjs +6 -31
  397. package/lib/validators/OpenApiV3_1TypeChecker.mjs.map +1 -1
  398. package/lib/validators/OpenApiV3_1TypeChecker2.mjs +45 -0
  399. package/lib/validators/OpenApiV3_1TypeChecker2.mjs.map +1 -0
  400. package/lib/validators/OpenApiValidator.js.map +1 -1
  401. package/lib/validators/OpenApiValidator.mjs +5 -72
  402. package/lib/validators/OpenApiValidator.mjs.map +1 -1
  403. package/lib/validators/OpenApiValidator2.mjs +83 -0
  404. package/lib/validators/OpenApiValidator2.mjs.map +1 -0
  405. package/lib/validators/SwaggerV2TypeChecker.js.map +1 -1
  406. package/lib/validators/SwaggerV2TypeChecker.mjs +6 -28
  407. package/lib/validators/SwaggerV2TypeChecker.mjs.map +1 -1
  408. package/lib/validators/SwaggerV2TypeChecker2.mjs +42 -0
  409. package/lib/validators/SwaggerV2TypeChecker2.mjs.map +1 -0
  410. package/lib/validators/functional/_isBigintString.js.map +1 -1
  411. package/lib/validators/functional/_isBigintString.mjs +6 -10
  412. package/lib/validators/functional/_isBigintString.mjs.map +1 -1
  413. package/lib/validators/functional/_isBigintString2.mjs +25 -0
  414. package/lib/validators/functional/_isBigintString2.mjs.map +1 -0
  415. package/lib/validators/functional/_isFormatByte.js.map +1 -1
  416. package/lib/validators/functional/_isFormatByte.mjs +6 -6
  417. package/lib/validators/functional/_isFormatByte.mjs.map +1 -1
  418. package/lib/validators/functional/_isFormatByte2.mjs +21 -0
  419. package/lib/validators/functional/_isFormatByte2.mjs.map +1 -0
  420. package/lib/validators/functional/_isFormatDate.js.map +1 -1
  421. package/lib/validators/functional/_isFormatDate.mjs +6 -3
  422. package/lib/validators/functional/_isFormatDate.mjs.map +1 -1
  423. package/lib/validators/functional/_isFormatDate2.mjs +18 -0
  424. package/lib/validators/functional/_isFormatDate2.mjs.map +1 -0
  425. package/lib/validators/functional/_isFormatDateTime.js.map +1 -1
  426. package/lib/validators/functional/_isFormatDateTime.mjs +6 -3
  427. package/lib/validators/functional/_isFormatDateTime.mjs.map +1 -1
  428. package/lib/validators/functional/_isFormatDateTime2.mjs +18 -0
  429. package/lib/validators/functional/_isFormatDateTime2.mjs.map +1 -0
  430. package/lib/validators/functional/_isFormatDuration.js.map +1 -1
  431. package/lib/validators/functional/_isFormatDuration.mjs +6 -3
  432. package/lib/validators/functional/_isFormatDuration.mjs.map +1 -1
  433. package/lib/validators/functional/_isFormatDuration2.mjs +18 -0
  434. package/lib/validators/functional/_isFormatDuration2.mjs.map +1 -0
  435. package/lib/validators/functional/_isFormatEmail.js.map +1 -1
  436. package/lib/validators/functional/_isFormatEmail.mjs +6 -3
  437. package/lib/validators/functional/_isFormatEmail.mjs.map +1 -1
  438. package/lib/validators/functional/_isFormatEmail2.mjs +18 -0
  439. package/lib/validators/functional/_isFormatEmail2.mjs.map +1 -0
  440. package/lib/validators/functional/_isFormatHostname.js.map +1 -1
  441. package/lib/validators/functional/_isFormatHostname.mjs +6 -3
  442. package/lib/validators/functional/_isFormatHostname.mjs.map +1 -1
  443. package/lib/validators/functional/_isFormatHostname2.mjs +18 -0
  444. package/lib/validators/functional/_isFormatHostname2.mjs.map +1 -0
  445. package/lib/validators/functional/_isFormatIdnEmail.js.map +1 -1
  446. package/lib/validators/functional/_isFormatIdnEmail.mjs +6 -3
  447. package/lib/validators/functional/_isFormatIdnEmail.mjs.map +1 -1
  448. package/lib/validators/functional/_isFormatIdnEmail2.mjs +18 -0
  449. package/lib/validators/functional/_isFormatIdnEmail2.mjs.map +1 -0
  450. package/lib/validators/functional/_isFormatIdnHostname.js.map +1 -1
  451. package/lib/validators/functional/_isFormatIdnHostname.mjs +6 -3
  452. package/lib/validators/functional/_isFormatIdnHostname.mjs.map +1 -1
  453. package/lib/validators/functional/_isFormatIdnHostname2.mjs +18 -0
  454. package/lib/validators/functional/_isFormatIdnHostname2.mjs.map +1 -0
  455. package/lib/validators/functional/_isFormatIpv4.js.map +1 -1
  456. package/lib/validators/functional/_isFormatIpv4.mjs +6 -3
  457. package/lib/validators/functional/_isFormatIpv4.mjs.map +1 -1
  458. package/lib/validators/functional/_isFormatIpv42.mjs +18 -0
  459. package/lib/validators/functional/_isFormatIpv42.mjs.map +1 -0
  460. package/lib/validators/functional/_isFormatIpv6.js.map +1 -1
  461. package/lib/validators/functional/_isFormatIpv6.mjs +6 -3
  462. package/lib/validators/functional/_isFormatIpv6.mjs.map +1 -1
  463. package/lib/validators/functional/_isFormatIpv62.mjs +18 -0
  464. package/lib/validators/functional/_isFormatIpv62.mjs.map +1 -0
  465. package/lib/validators/functional/_isFormatIri.js.map +1 -1
  466. package/lib/validators/functional/_isFormatIri.mjs +6 -3
  467. package/lib/validators/functional/_isFormatIri.mjs.map +1 -1
  468. package/lib/validators/functional/_isFormatIri2.mjs +18 -0
  469. package/lib/validators/functional/_isFormatIri2.mjs.map +1 -0
  470. package/lib/validators/functional/_isFormatIriReference.js.map +1 -1
  471. package/lib/validators/functional/_isFormatIriReference.mjs +6 -3
  472. package/lib/validators/functional/_isFormatIriReference.mjs.map +1 -1
  473. package/lib/validators/functional/_isFormatIriReference2.mjs +18 -0
  474. package/lib/validators/functional/_isFormatIriReference2.mjs.map +1 -0
  475. package/lib/validators/functional/_isFormatJsonPointer.js.map +1 -1
  476. package/lib/validators/functional/_isFormatJsonPointer.mjs +6 -3
  477. package/lib/validators/functional/_isFormatJsonPointer.mjs.map +1 -1
  478. package/lib/validators/functional/_isFormatJsonPointer2.mjs +18 -0
  479. package/lib/validators/functional/_isFormatJsonPointer2.mjs.map +1 -0
  480. package/lib/validators/functional/_isFormatPassword.js.map +1 -1
  481. package/lib/validators/functional/_isFormatPassword.mjs +6 -2
  482. package/lib/validators/functional/_isFormatPassword.mjs.map +1 -1
  483. package/lib/validators/functional/_isFormatPassword2.mjs +17 -0
  484. package/lib/validators/functional/_isFormatPassword2.mjs.map +1 -0
  485. package/lib/validators/functional/_isFormatRegex.js.map +1 -1
  486. package/lib/validators/functional/_isFormatRegex.mjs +6 -10
  487. package/lib/validators/functional/_isFormatRegex.mjs.map +1 -1
  488. package/lib/validators/functional/_isFormatRegex2.mjs +25 -0
  489. package/lib/validators/functional/_isFormatRegex2.mjs.map +1 -0
  490. package/lib/validators/functional/_isFormatRelativeJsonPointer.js.map +1 -1
  491. package/lib/validators/functional/_isFormatRelativeJsonPointer.mjs +6 -3
  492. package/lib/validators/functional/_isFormatRelativeJsonPointer.mjs.map +1 -1
  493. package/lib/validators/functional/_isFormatRelativeJsonPointer2.mjs +18 -0
  494. package/lib/validators/functional/_isFormatRelativeJsonPointer2.mjs.map +1 -0
  495. package/lib/validators/functional/_isFormatTime.js.map +1 -1
  496. package/lib/validators/functional/_isFormatTime.mjs +6 -3
  497. package/lib/validators/functional/_isFormatTime.mjs.map +1 -1
  498. package/lib/validators/functional/_isFormatTime2.mjs +18 -0
  499. package/lib/validators/functional/_isFormatTime2.mjs.map +1 -0
  500. package/lib/validators/functional/_isFormatUri.js.map +1 -1
  501. package/lib/validators/functional/_isFormatUri.mjs +6 -4
  502. package/lib/validators/functional/_isFormatUri.mjs.map +1 -1
  503. package/lib/validators/functional/_isFormatUri2.mjs +19 -0
  504. package/lib/validators/functional/_isFormatUri2.mjs.map +1 -0
  505. package/lib/validators/functional/_isFormatUriReference.js.map +1 -1
  506. package/lib/validators/functional/_isFormatUriReference.mjs +6 -3
  507. package/lib/validators/functional/_isFormatUriReference.mjs.map +1 -1
  508. package/lib/validators/functional/_isFormatUriReference2.mjs +18 -0
  509. package/lib/validators/functional/_isFormatUriReference2.mjs.map +1 -0
  510. package/lib/validators/functional/_isFormatUriTemplate.js.map +1 -1
  511. package/lib/validators/functional/_isFormatUriTemplate.mjs +6 -3
  512. package/lib/validators/functional/_isFormatUriTemplate.mjs.map +1 -1
  513. package/lib/validators/functional/_isFormatUriTemplate2.mjs +18 -0
  514. package/lib/validators/functional/_isFormatUriTemplate2.mjs.map +1 -0
  515. package/lib/validators/functional/_isFormatUrl.js.map +1 -1
  516. package/lib/validators/functional/_isFormatUrl.mjs +6 -3
  517. package/lib/validators/functional/_isFormatUrl.mjs.map +1 -1
  518. package/lib/validators/functional/_isFormatUrl2.mjs +18 -0
  519. package/lib/validators/functional/_isFormatUrl2.mjs.map +1 -0
  520. package/lib/validators/functional/_isFormatUuid.js.map +1 -1
  521. package/lib/validators/functional/_isFormatUuid.mjs +6 -3
  522. package/lib/validators/functional/_isFormatUuid.mjs.map +1 -1
  523. package/lib/validators/functional/_isFormatUuid2.mjs +18 -0
  524. package/lib/validators/functional/_isFormatUuid2.mjs.map +1 -0
  525. package/lib/validators/functional/_isUniqueItems.js.map +1 -1
  526. package/lib/validators/functional/_isUniqueItems.mjs +6 -136
  527. package/lib/validators/functional/_isUniqueItems.mjs.map +1 -1
  528. package/lib/validators/functional/_isUniqueItems2.mjs +151 -0
  529. package/lib/validators/functional/_isUniqueItems2.mjs.map +1 -0
  530. package/lib/validators/index.d.ts +1 -0
  531. package/lib/validators/index.js +0 -1
  532. package/lib/validators/index.js.map +1 -1
  533. package/lib/validators/index.mjs +7 -6
  534. package/lib/validators/index.mjs.map +1 -1
  535. package/lib/validators/index2.mjs +45 -0
  536. package/lib/validators/index2.mjs.map +1 -0
  537. package/lib/validators/internal/IOpenApiValidatorContext.mjs +6 -0
  538. package/lib/validators/internal/IOpenApiValidatorContext.mjs.map +1 -1
  539. package/lib/validators/internal/IOpenApiValidatorContext2.mjs +14 -0
  540. package/lib/validators/internal/IOpenApiValidatorContext2.mjs.map +1 -0
  541. package/lib/validators/internal/OpenApiArrayValidator.js.map +1 -1
  542. package/lib/validators/internal/OpenApiArrayValidator.mjs +5 -44
  543. package/lib/validators/internal/OpenApiArrayValidator.mjs.map +1 -1
  544. package/lib/validators/internal/OpenApiArrayValidator2.mjs +45 -0
  545. package/lib/validators/internal/OpenApiArrayValidator2.mjs.map +1 -0
  546. package/lib/validators/internal/OpenApiBooleanValidator.js.map +1 -1
  547. package/lib/validators/internal/OpenApiBooleanValidator.mjs +6 -7
  548. package/lib/validators/internal/OpenApiBooleanValidator.mjs.map +1 -1
  549. package/lib/validators/internal/OpenApiBooleanValidator2.mjs +21 -0
  550. package/lib/validators/internal/OpenApiBooleanValidator2.mjs.map +1 -0
  551. package/lib/validators/internal/OpenApiConstantValidator.js.map +1 -1
  552. package/lib/validators/internal/OpenApiConstantValidator.mjs +6 -7
  553. package/lib/validators/internal/OpenApiConstantValidator.mjs.map +1 -1
  554. package/lib/validators/internal/OpenApiConstantValidator2.mjs +21 -0
  555. package/lib/validators/internal/OpenApiConstantValidator2.mjs.map +1 -0
  556. package/lib/validators/internal/OpenApiIntegerValidator.js.map +1 -1
  557. package/lib/validators/internal/OpenApiIntegerValidator.mjs +6 -45
  558. package/lib/validators/internal/OpenApiIntegerValidator.mjs.map +1 -1
  559. package/lib/validators/internal/OpenApiIntegerValidator2.mjs +44 -0
  560. package/lib/validators/internal/OpenApiIntegerValidator2.mjs.map +1 -0
  561. package/lib/validators/internal/OpenApiNumberValidator.js.map +1 -1
  562. package/lib/validators/internal/OpenApiNumberValidator.mjs +6 -45
  563. package/lib/validators/internal/OpenApiNumberValidator.mjs.map +1 -1
  564. package/lib/validators/internal/OpenApiNumberValidator2.mjs +44 -0
  565. package/lib/validators/internal/OpenApiNumberValidator2.mjs.map +1 -0
  566. package/lib/validators/internal/OpenApiObjectValidator.js +6 -12
  567. package/lib/validators/internal/OpenApiObjectValidator.js.map +1 -1
  568. package/lib/validators/internal/OpenApiObjectValidator.mjs +5 -65
  569. package/lib/validators/internal/OpenApiObjectValidator.mjs.map +1 -1
  570. package/lib/validators/internal/OpenApiObjectValidator2.mjs +65 -0
  571. package/lib/validators/internal/OpenApiObjectValidator2.mjs.map +1 -0
  572. package/lib/validators/internal/OpenApiOneOfValidator.js +20 -20
  573. package/lib/validators/internal/OpenApiOneOfValidator.js.map +1 -1
  574. package/lib/validators/internal/OpenApiOneOfValidator.mjs +5 -203
  575. package/lib/validators/internal/OpenApiOneOfValidator.mjs.map +1 -1
  576. package/lib/validators/internal/OpenApiOneOfValidator2.mjs +196 -0
  577. package/lib/validators/internal/OpenApiOneOfValidator2.mjs.map +1 -0
  578. package/lib/validators/internal/OpenApiSchemaNamingRule.js.map +1 -1
  579. package/lib/validators/internal/OpenApiSchemaNamingRule.mjs +5 -118
  580. package/lib/validators/internal/OpenApiSchemaNamingRule.mjs.map +1 -1
  581. package/lib/validators/internal/OpenApiSchemaNamingRule2.mjs +134 -0
  582. package/lib/validators/internal/OpenApiSchemaNamingRule2.mjs.map +1 -0
  583. package/lib/validators/internal/OpenApiStationValidator.js +2 -1
  584. package/lib/validators/internal/OpenApiStationValidator.js.map +1 -1
  585. package/lib/validators/internal/OpenApiStationValidator.mjs +5 -104
  586. package/lib/validators/internal/OpenApiStationValidator.mjs.map +1 -1
  587. package/lib/validators/internal/OpenApiStationValidator2.mjs +86 -0
  588. package/lib/validators/internal/OpenApiStationValidator2.mjs.map +1 -0
  589. package/lib/validators/internal/OpenApiStringValidator.js.map +1 -1
  590. package/lib/validators/internal/OpenApiStringValidator.mjs +5 -82
  591. package/lib/validators/internal/OpenApiStringValidator.mjs.map +1 -1
  592. package/lib/validators/internal/OpenApiStringValidator2.mjs +105 -0
  593. package/lib/validators/internal/OpenApiStringValidator2.mjs.map +1 -0
  594. package/lib/validators/internal/OpenApiTupleValidator.js.map +1 -1
  595. package/lib/validators/internal/OpenApiTupleValidator.mjs +5 -43
  596. package/lib/validators/internal/OpenApiTupleValidator.mjs.map +1 -1
  597. package/lib/validators/internal/OpenApiTupleValidator2.mjs +43 -0
  598. package/lib/validators/internal/OpenApiTupleValidator2.mjs.map +1 -0
  599. package/package.json +8 -9
  600. package/src/converters/LlmSchemaConverter.ts +152 -33
  601. package/src/converters/OpenApiConverter.ts +375 -375
  602. package/src/converters/internal/OpenApiV3Downgrader.ts +381 -381
  603. package/src/converters/internal/OpenApiV3Upgrader.ts +494 -494
  604. package/src/converters/internal/OpenApiV3_1Downgrader.ts +318 -318
  605. package/src/converters/internal/OpenApiV3_1Upgrader.ts +713 -710
  606. package/src/converters/internal/OpenApiV3_2Upgrader.ts +342 -342
  607. package/src/converters/internal/SwaggerV2Downgrader.ts +450 -450
  608. package/src/converters/internal/SwaggerV2Upgrader.ts +547 -547
  609. package/src/http/HttpError.ts +114 -114
  610. package/src/http/HttpLlm.ts +169 -169
  611. package/src/http/HttpMigration.ts +94 -94
  612. package/src/http/internal/HttpMigrateApplicationComposer.ts +56 -56
  613. package/src/http/internal/HttpMigrateRouteComposer.ts +505 -505
  614. package/src/utils/LlmJson.ts +173 -173
  615. package/src/utils/Singleton.ts +0 -1
  616. package/src/utils/internal/OpenApiTypeCheckerBase.ts +2 -0
  617. package/src/utils/internal/coerceLlmArguments.ts +21 -3
  618. package/src/utils/internal/parseLenientJson.ts +919 -919
  619. package/src/validators/index.ts +0 -1
@@ -1,239 +1,8 @@
1
- import { OpenApiTypeChecker } from '../../validators/OpenApiTypeChecker.mjs';
1
+ import { getDefaultExportFromCjs } from '../../_virtual/_commonjsHelpers.mjs';
2
+ import { __require as requireOpenApiV3_1Downgrader } from './OpenApiV3_1Downgrader2.mjs';
2
3
 
3
- var OpenApiV3_1Downgrader;
4
- (function (OpenApiV3_1Downgrader) {
5
- OpenApiV3_1Downgrader.downgrade = (input) => {
6
- const collection = OpenApiV3_1Downgrader.downgradeComponents(input.components);
7
- return {
8
- openapi: "3.1.0",
9
- servers: input.servers,
10
- info: input.info,
11
- components: collection.downgraded,
12
- paths: input.paths
13
- ? Object.fromEntries(Object.entries(input.paths)
14
- .filter(([_, v]) => v !== undefined)
15
- .map(([key, value]) => [key, downgradePathItem(collection)(value)]))
16
- : undefined,
17
- webhooks: input.webhooks
18
- ? Object.fromEntries(Object.entries(input.webhooks)
19
- .filter(([_, v]) => v !== undefined)
20
- .map(([key, value]) => [key, downgradePathItem(collection)(value)]))
21
- : undefined,
22
- security: input.security,
23
- tags: input.tags,
24
- };
25
- };
26
- /* -----------------------------------------------------------
27
- OPERATORS
28
- ----------------------------------------------------------- */
29
- const downgradePathItem = (collection) => (pathItem) => {
30
- // Collect non-standard operations for x-additionalOperations
31
- const xAdditionalOperations = {};
32
- // query method goes to x-additionalOperations
33
- if (pathItem.query) {
34
- xAdditionalOperations["query"] = downgradeOperation(collection)(pathItem.query);
35
- }
36
- // additionalOperations also go to x-additionalOperations
37
- if (pathItem.additionalOperations) {
38
- for (const [key, value] of Object.entries(pathItem.additionalOperations)) {
39
- if (value !== undefined) {
40
- xAdditionalOperations[key] = downgradeOperation(collection)(value);
41
- }
42
- }
43
- }
44
- return {
45
- ...pathItem,
46
- ...(pathItem.get
47
- ? { get: downgradeOperation(collection)(pathItem.get) }
48
- : undefined),
49
- ...(pathItem.put
50
- ? { put: downgradeOperation(collection)(pathItem.put) }
51
- : undefined),
52
- ...(pathItem.post
53
- ? { post: downgradeOperation(collection)(pathItem.post) }
54
- : undefined),
55
- ...(pathItem.delete
56
- ? { delete: downgradeOperation(collection)(pathItem.delete) }
57
- : undefined),
58
- ...(pathItem.options
59
- ? { options: downgradeOperation(collection)(pathItem.options) }
60
- : undefined),
61
- ...(pathItem.head
62
- ? { head: downgradeOperation(collection)(pathItem.head) }
63
- : undefined),
64
- ...(pathItem.patch
65
- ? { patch: downgradeOperation(collection)(pathItem.patch) }
66
- : undefined),
67
- ...(pathItem.trace
68
- ? { trace: downgradeOperation(collection)(pathItem.trace) }
69
- : undefined),
70
- ...(Object.keys(xAdditionalOperations).length > 0
71
- ? { "x-additionalOperations": xAdditionalOperations }
72
- : undefined),
73
- // Remove v3.2-only properties from spread
74
- query: undefined,
75
- additionalOperations: undefined,
76
- };
77
- };
78
- const downgradeOperation = (collection) => (input) => ({
79
- ...input,
80
- parameters: input.parameters
81
- ? input.parameters.map(downgradeParameter(collection))
82
- : undefined,
83
- requestBody: input.requestBody
84
- ? downgradeRequestBody(collection)(input.requestBody)
85
- : undefined,
86
- responses: input.responses
87
- ? Object.fromEntries(Object.entries(input.responses)
88
- .filter(([_, v]) => v !== undefined)
89
- .map(([key, value]) => [
90
- key,
91
- downgradeResponse(collection)(value),
92
- ]))
93
- : undefined,
94
- });
95
- const downgradeParameter = (collection) => (input) => ({
96
- ...input,
97
- in: input.in === "querystring" ? "query" : input.in,
98
- schema: OpenApiV3_1Downgrader.downgradeSchema(collection)(input.schema),
99
- });
100
- const downgradeRequestBody = (collection) => (input) => ({
101
- ...input,
102
- content: input.content
103
- ? downgradeContent(collection)(input.content)
104
- : undefined,
105
- });
106
- const downgradeResponse = (collection) => (input) => ({
107
- ...input,
108
- content: input.content
109
- ? downgradeContent(collection)(input.content)
110
- : undefined,
111
- headers: input.headers
112
- ? Object.fromEntries(Object.entries(input.headers)
113
- .filter(([_, v]) => v !== undefined)
114
- .map(([key, value]) => [
115
- key,
116
- {
117
- ...value,
118
- schema: OpenApiV3_1Downgrader.downgradeSchema(collection)(value.schema),
119
- },
120
- ]))
121
- : undefined,
122
- });
123
- const downgradeContent = (collection) => (record) => Object.fromEntries(Object.entries(record)
124
- .filter(([_, v]) => v !== undefined)
125
- .map(([key, value]) => [
126
- key,
127
- {
128
- ...value,
129
- schema: value?.schema
130
- ? OpenApiV3_1Downgrader.downgradeSchema(collection)(value.schema)
131
- : undefined,
132
- // itemSchema is v3.2-only, remove it
133
- itemSchema: undefined,
134
- },
135
- ]));
136
- /* -----------------------------------------------------------
137
- DEFINITIONS
138
- ----------------------------------------------------------- */
139
- OpenApiV3_1Downgrader.downgradeComponents = (input) => {
140
- const collection = {
141
- original: input,
142
- downgraded: {
143
- securitySchemes: input.securitySchemes
144
- ? downgradeSecuritySchemes(input.securitySchemes)
145
- : undefined,
146
- },
147
- };
148
- if (input.schemas) {
149
- collection.downgraded.schemas = {};
150
- for (const [key, value] of Object.entries(input.schemas))
151
- if (value !== undefined)
152
- collection.downgraded.schemas[key] =
153
- OpenApiV3_1Downgrader.downgradeSchema(collection)(value);
154
- }
155
- return collection;
156
- };
157
- OpenApiV3_1Downgrader.downgradeSchema = (collection) => (input) => {
158
- const union = [];
159
- const attribute = {
160
- title: input.title,
161
- description: input.description,
162
- deprecated: input.deprecated,
163
- readOnly: input.readOnly,
164
- writeOnly: input.writeOnly,
165
- example: input.example,
166
- examples: input.examples,
167
- ...Object.fromEntries(Object.entries(input).filter(([key, value]) => key.startsWith("x-") && value !== undefined)),
168
- };
169
- const visit = (schema) => {
170
- if (OpenApiTypeChecker.isNull(schema))
171
- union.push({ type: "null" });
172
- else if (OpenApiTypeChecker.isConstant(schema))
173
- union.push({ const: schema.const });
174
- else if (OpenApiTypeChecker.isBoolean(schema) ||
175
- OpenApiTypeChecker.isInteger(schema) ||
176
- OpenApiTypeChecker.isNumber(schema) ||
177
- OpenApiTypeChecker.isString(schema) ||
178
- OpenApiTypeChecker.isReference(schema))
179
- union.push({ ...schema });
180
- else if (OpenApiTypeChecker.isArray(schema))
181
- union.push({
182
- ...schema,
183
- items: OpenApiV3_1Downgrader.downgradeSchema(collection)(schema.items),
184
- });
185
- else if (OpenApiTypeChecker.isTuple(schema))
186
- union.push({
187
- ...schema,
188
- prefixItems: schema.prefixItems.map(OpenApiV3_1Downgrader.downgradeSchema(collection)),
189
- additionalItems: typeof schema.additionalItems === "object"
190
- ? OpenApiV3_1Downgrader.downgradeSchema(collection)(schema.additionalItems)
191
- : schema.additionalItems,
192
- });
193
- else if (OpenApiTypeChecker.isObject(schema))
194
- union.push({
195
- ...schema,
196
- properties: schema.properties
197
- ? Object.fromEntries(Object.entries(schema.properties)
198
- .filter(([_, v]) => v !== undefined)
199
- .map(([key, value]) => [
200
- key,
201
- OpenApiV3_1Downgrader.downgradeSchema(collection)(value),
202
- ]))
203
- : undefined,
204
- additionalProperties: typeof schema.additionalProperties === "object"
205
- ? OpenApiV3_1Downgrader.downgradeSchema(collection)(schema.additionalProperties)
206
- : schema.additionalProperties,
207
- required: schema.required,
208
- });
209
- else if (OpenApiTypeChecker.isOneOf(schema))
210
- schema.oneOf.forEach(visit);
211
- };
212
- visit(input);
213
- return {
214
- ...(union.length === 0
215
- ? { type: undefined }
216
- : union.length === 1
217
- ? { ...union[0] }
218
- : { oneOf: union }),
219
- ...attribute,
220
- };
221
- };
222
- const downgradeSecuritySchemes = (input) => Object.fromEntries(Object.entries(input)
223
- .filter(([_, v]) => v !== undefined)
224
- .map(([key, value]) => [key, downgradeSecurityScheme(value)]));
225
- const downgradeSecurityScheme = (input) => {
226
- if (input.type === "oauth2") {
227
- const { deviceAuthorization: _, ...flows } = input.flows;
228
- return {
229
- type: "oauth2",
230
- flows,
231
- description: input.description,
232
- };
233
- }
234
- return { ...input };
235
- };
236
- })(OpenApiV3_1Downgrader || (OpenApiV3_1Downgrader = {}));
4
+ var OpenApiV3_1DowngraderExports = requireOpenApiV3_1Downgrader();
5
+ var OpenApiV3_1Downgrader = /*@__PURE__*/getDefaultExportFromCjs(OpenApiV3_1DowngraderExports);
237
6
 
238
- export { OpenApiV3_1Downgrader };
7
+ export { OpenApiV3_1Downgrader as default };
239
8
  //# sourceMappingURL=OpenApiV3_1Downgrader.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenApiV3_1Downgrader.mjs","sources":["../../../src/converters/internal/OpenApiV3_1Downgrader.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIM,IAAW;AAAjB,CAAA,UAAiB,qBAAqB,EAAA;AAMvB,IAAA,qBAAA,CAAA,SAAS,GAAG,CAAC,KAAwB,KAA2B;QAC3E,MAAM,UAAU,GAA0B,qBAAA,CAAA,mBAAmB,CAC3D,KAAK,CAAC,UAAU,CACjB;QACD,OAAO;AACL,YAAA,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,UAAU,EAAE,UAAU,CAAC,UAAU;YACjC,KAAK,EAAE,KAAK,CAAC;AACX,kBAAE,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK;AACvB,qBAAA,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,SAAS;qBAClC,GAAG,CACF,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KACX,CAAC,GAAG,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,CAAU,CACvD;AAEP,kBAAE,SAAS;YACb,QAAQ,EAAE,KAAK,CAAC;AACd,kBAAE,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ;AAC1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IAAI,KAAK,QAAQ,EAAE;AAC3B,YAAA,MAAM,EAAE,mBAAmB,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC,KAAK;YACxD,OAAO;AACL,gBAAA,IAAI,EAAE,QAAQ;gBACd,KAAK;gBACL,WAAW,EAAE,KAAK,CAAC,WAAW;aAC/B;QACH;AACA,QAAA,OAAO,EAAE,GAAG,KAAK,EAAiC;AACpD,IAAA,CAAC;AACH,CAAC,EAzTgB,qBAAqB,KAArB,qBAAqB,GAAA,EAAA,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"OpenApiV3_1Downgrader.mjs","sources":["OpenApiV3_1Downgrader.js?commonjs-entry"],"sourcesContent":["import { getDefaultExportFromCjs } from \"\u0000commonjsHelpers.js\";\nimport { __require as requireOpenApiV3_1Downgrader } from \"/home/samchon/github/samchon/typia@next/packages/utils/lib/converters/internal/OpenApiV3_1Downgrader.js\";\nvar OpenApiV3_1DowngraderExports = requireOpenApiV3_1Downgrader();\nexport { OpenApiV3_1DowngraderExports as __moduleExports };\nexport default /*@__PURE__*/getDefaultExportFromCjs(OpenApiV3_1DowngraderExports);"],"names":[],"mappings":";;;AAEA,IAAI,4BAA4B,GAAG,4BAA4B,EAAE;AAEjE,4BAAe,aAAa,uBAAuB,CAAC,4BAA4B,CAAC;;;;"}
@@ -0,0 +1,203 @@
1
+ import { __exports as OpenApiV3_1Downgrader } from '../../_virtual/OpenApiV3_1Downgrader.mjs';
2
+ import { __require as requireOpenApiTypeChecker } from '../../validators/OpenApiTypeChecker2.mjs';
3
+
4
+ var hasRequiredOpenApiV3_1Downgrader;
5
+
6
+ function requireOpenApiV3_1Downgrader () {
7
+ if (hasRequiredOpenApiV3_1Downgrader) return OpenApiV3_1Downgrader;
8
+ hasRequiredOpenApiV3_1Downgrader = 1;
9
+ var __rest = (OpenApiV3_1Downgrader && OpenApiV3_1Downgrader.__rest) || function (s, e) {
10
+ var t = {};
11
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
12
+ t[p] = s[p];
13
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
14
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
15
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
16
+ t[p[i]] = s[p[i]];
17
+ }
18
+ return t;
19
+ };
20
+ Object.defineProperty(OpenApiV3_1Downgrader, "__esModule", { value: true });
21
+ OpenApiV3_1Downgrader.OpenApiV3_1Downgrader = void 0;
22
+ const OpenApiTypeChecker_1 = requireOpenApiTypeChecker();
23
+ var OpenApiV3_1Downgrader$1;
24
+ (function (OpenApiV3_1Downgrader) {
25
+ OpenApiV3_1Downgrader.downgrade = (input) => {
26
+ const collection = OpenApiV3_1Downgrader.downgradeComponents(input.components);
27
+ return {
28
+ openapi: "3.1.0",
29
+ servers: input.servers,
30
+ info: input.info,
31
+ components: collection.downgraded,
32
+ paths: input.paths
33
+ ? Object.fromEntries(Object.entries(input.paths)
34
+ .filter(([_, v]) => v !== undefined)
35
+ .map(([key, value]) => [key, downgradePathItem(collection)(value)]))
36
+ : undefined,
37
+ webhooks: input.webhooks
38
+ ? Object.fromEntries(Object.entries(input.webhooks)
39
+ .filter(([_, v]) => v !== undefined)
40
+ .map(([key, value]) => [key, downgradePathItem(collection)(value)]))
41
+ : undefined,
42
+ security: input.security,
43
+ tags: input.tags,
44
+ };
45
+ };
46
+ /* -----------------------------------------------------------
47
+ OPERATORS
48
+ ----------------------------------------------------------- */
49
+ const downgradePathItem = (collection) => (pathItem) => {
50
+ // Collect non-standard operations for x-additionalOperations
51
+ const xAdditionalOperations = {};
52
+ // query method goes to x-additionalOperations
53
+ if (pathItem.query) {
54
+ xAdditionalOperations["query"] = downgradeOperation(collection)(pathItem.query);
55
+ }
56
+ // additionalOperations also go to x-additionalOperations
57
+ if (pathItem.additionalOperations) {
58
+ for (const [key, value] of Object.entries(pathItem.additionalOperations)) {
59
+ if (value !== undefined) {
60
+ xAdditionalOperations[key] = downgradeOperation(collection)(value);
61
+ }
62
+ }
63
+ }
64
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, pathItem), (pathItem.get
65
+ ? { get: downgradeOperation(collection)(pathItem.get) }
66
+ : undefined)), (pathItem.put
67
+ ? { put: downgradeOperation(collection)(pathItem.put) }
68
+ : undefined)), (pathItem.post
69
+ ? { post: downgradeOperation(collection)(pathItem.post) }
70
+ : undefined)), (pathItem.delete
71
+ ? { delete: downgradeOperation(collection)(pathItem.delete) }
72
+ : undefined)), (pathItem.options
73
+ ? { options: downgradeOperation(collection)(pathItem.options) }
74
+ : undefined)), (pathItem.head
75
+ ? { head: downgradeOperation(collection)(pathItem.head) }
76
+ : undefined)), (pathItem.patch
77
+ ? { patch: downgradeOperation(collection)(pathItem.patch) }
78
+ : undefined)), (pathItem.trace
79
+ ? { trace: downgradeOperation(collection)(pathItem.trace) }
80
+ : undefined)), (Object.keys(xAdditionalOperations).length > 0
81
+ ? { "x-additionalOperations": xAdditionalOperations }
82
+ : undefined)), {
83
+ // Remove v3.2-only properties from spread
84
+ query: undefined, additionalOperations: undefined });
85
+ };
86
+ const downgradeOperation = (collection) => (input) => (Object.assign(Object.assign({}, input), { parameters: input.parameters
87
+ ? input.parameters.map(downgradeParameter(collection))
88
+ : undefined, requestBody: input.requestBody
89
+ ? downgradeRequestBody(collection)(input.requestBody)
90
+ : undefined, responses: input.responses
91
+ ? Object.fromEntries(Object.entries(input.responses)
92
+ .filter(([_, v]) => v !== undefined)
93
+ .map(([key, value]) => [
94
+ key,
95
+ downgradeResponse(collection)(value),
96
+ ]))
97
+ : undefined }));
98
+ const downgradeParameter = (collection) => (input) => (Object.assign(Object.assign({}, input), { in: input.in === "querystring" ? "query" : input.in, schema: OpenApiV3_1Downgrader.downgradeSchema(collection)(input.schema) }));
99
+ const downgradeRequestBody = (collection) => (input) => (Object.assign(Object.assign({}, input), { content: input.content
100
+ ? downgradeContent(collection)(input.content)
101
+ : undefined }));
102
+ const downgradeResponse = (collection) => (input) => (Object.assign(Object.assign({}, input), { content: input.content
103
+ ? downgradeContent(collection)(input.content)
104
+ : undefined, headers: input.headers
105
+ ? Object.fromEntries(Object.entries(input.headers)
106
+ .filter(([_, v]) => v !== undefined)
107
+ .map(([key, value]) => [
108
+ key,
109
+ Object.assign(Object.assign({}, value), { schema: OpenApiV3_1Downgrader.downgradeSchema(collection)(value.schema) }),
110
+ ]))
111
+ : undefined }));
112
+ const downgradeContent = (collection) => (record) => Object.fromEntries(Object.entries(record)
113
+ .filter(([_, v]) => v !== undefined)
114
+ .map(([key, value]) => [
115
+ key,
116
+ Object.assign(Object.assign({}, value), { schema: (value === null || value === void 0 ? void 0 : value.schema)
117
+ ? OpenApiV3_1Downgrader.downgradeSchema(collection)(value.schema)
118
+ : undefined,
119
+ // itemSchema is v3.2-only, remove it
120
+ itemSchema: undefined }),
121
+ ]));
122
+ /* -----------------------------------------------------------
123
+ DEFINITIONS
124
+ ----------------------------------------------------------- */
125
+ OpenApiV3_1Downgrader.downgradeComponents = (input) => {
126
+ const collection = {
127
+ original: input,
128
+ downgraded: {
129
+ securitySchemes: input.securitySchemes
130
+ ? downgradeSecuritySchemes(input.securitySchemes)
131
+ : undefined,
132
+ },
133
+ };
134
+ if (input.schemas) {
135
+ collection.downgraded.schemas = {};
136
+ for (const [key, value] of Object.entries(input.schemas))
137
+ if (value !== undefined)
138
+ collection.downgraded.schemas[key] =
139
+ OpenApiV3_1Downgrader.downgradeSchema(collection)(value);
140
+ }
141
+ return collection;
142
+ };
143
+ OpenApiV3_1Downgrader.downgradeSchema = (collection) => (input) => {
144
+ const union = [];
145
+ const attribute = Object.assign({ title: input.title, description: input.description, deprecated: input.deprecated, readOnly: input.readOnly, writeOnly: input.writeOnly, example: input.example, examples: input.examples }, Object.fromEntries(Object.entries(input).filter(([key, value]) => key.startsWith("x-") && value !== undefined)));
146
+ const visit = (schema) => {
147
+ if (OpenApiTypeChecker_1.OpenApiTypeChecker.isNull(schema))
148
+ union.push({ type: "null" });
149
+ else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isConstant(schema))
150
+ union.push({ const: schema.const });
151
+ else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isBoolean(schema) ||
152
+ OpenApiTypeChecker_1.OpenApiTypeChecker.isInteger(schema) ||
153
+ OpenApiTypeChecker_1.OpenApiTypeChecker.isNumber(schema) ||
154
+ OpenApiTypeChecker_1.OpenApiTypeChecker.isString(schema) ||
155
+ OpenApiTypeChecker_1.OpenApiTypeChecker.isReference(schema))
156
+ union.push(Object.assign({}, schema));
157
+ else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isArray(schema))
158
+ union.push(Object.assign(Object.assign({}, schema), { items: OpenApiV3_1Downgrader.downgradeSchema(collection)(schema.items) }));
159
+ else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isTuple(schema))
160
+ union.push(Object.assign(Object.assign({}, schema), { prefixItems: schema.prefixItems.map(OpenApiV3_1Downgrader.downgradeSchema(collection)), additionalItems: typeof schema.additionalItems === "object"
161
+ ? OpenApiV3_1Downgrader.downgradeSchema(collection)(schema.additionalItems)
162
+ : schema.additionalItems }));
163
+ else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isObject(schema))
164
+ union.push(Object.assign(Object.assign({}, schema), { properties: schema.properties
165
+ ? Object.fromEntries(Object.entries(schema.properties)
166
+ .filter(([_, v]) => v !== undefined)
167
+ .map(([key, value]) => [
168
+ key,
169
+ OpenApiV3_1Downgrader.downgradeSchema(collection)(value),
170
+ ]))
171
+ : undefined, additionalProperties: typeof schema.additionalProperties === "object"
172
+ ? OpenApiV3_1Downgrader.downgradeSchema(collection)(schema.additionalProperties)
173
+ : schema.additionalProperties, required: schema.required }));
174
+ else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isOneOf(schema))
175
+ schema.oneOf.forEach(visit);
176
+ };
177
+ visit(input);
178
+ return Object.assign(Object.assign({}, (union.length === 0
179
+ ? { type: undefined }
180
+ : union.length === 1
181
+ ? Object.assign({}, union[0]) : { oneOf: union })), attribute);
182
+ };
183
+ const downgradeSecuritySchemes = (input) => Object.fromEntries(Object.entries(input)
184
+ .filter(([_, v]) => v !== undefined)
185
+ .map(([key, value]) => [key, downgradeSecurityScheme(value)]));
186
+ const downgradeSecurityScheme = (input) => {
187
+ if (input.type === "oauth2") {
188
+ const _a = input.flows, { deviceAuthorization: _ } = _a, flows = __rest(_a, ["deviceAuthorization"]);
189
+ return {
190
+ type: "oauth2",
191
+ flows,
192
+ description: input.description,
193
+ };
194
+ }
195
+ return Object.assign({}, input);
196
+ };
197
+ })(OpenApiV3_1Downgrader$1 || (OpenApiV3_1Downgrader.OpenApiV3_1Downgrader = OpenApiV3_1Downgrader$1 = {}));
198
+
199
+ return OpenApiV3_1Downgrader;
200
+ }
201
+
202
+ export { requireOpenApiV3_1Downgrader as __require };
203
+ //# sourceMappingURL=OpenApiV3_1Downgrader2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenApiV3_1Downgrader2.mjs","sources":["OpenApiV3_1Downgrader.js"],"sourcesContent":["\"use strict\";\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.OpenApiV3_1Downgrader = void 0;\nconst OpenApiTypeChecker_1 = require(\"../../validators/OpenApiTypeChecker\");\nvar OpenApiV3_1Downgrader;\n(function (OpenApiV3_1Downgrader) {\n OpenApiV3_1Downgrader.downgrade = (input) => {\n const collection = OpenApiV3_1Downgrader.downgradeComponents(input.components);\n return {\n openapi: \"3.1.0\",\n servers: input.servers,\n info: input.info,\n components: collection.downgraded,\n paths: input.paths\n ? Object.fromEntries(Object.entries(input.paths)\n .filter(([_, v]) => v !== undefined)\n .map(([key, value]) => [key, downgradePathItem(collection)(value)]))\n : undefined,\n webhooks: input.webhooks\n ? Object.fromEntries(Object.entries(input.webhooks)\n .filter(([_, v]) => v !== undefined)\n .map(([key, value]) => [key, downgradePathItem(collection)(value)]))\n : undefined,\n security: input.security,\n tags: input.tags,\n };\n };\n /* -----------------------------------------------------------\n OPERATORS\n ----------------------------------------------------------- */\n const downgradePathItem = (collection) => (pathItem) => {\n // Collect non-standard operations for x-additionalOperations\n const xAdditionalOperations = {};\n // query method goes to x-additionalOperations\n if (pathItem.query) {\n xAdditionalOperations[\"query\"] = downgradeOperation(collection)(pathItem.query);\n }\n // additionalOperations also go to x-additionalOperations\n if (pathItem.additionalOperations) {\n for (const [key, value] of Object.entries(pathItem.additionalOperations)) {\n if (value !== undefined) {\n xAdditionalOperations[key] = downgradeOperation(collection)(value);\n }\n }\n }\n return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, pathItem), (pathItem.get\n ? { get: downgradeOperation(collection)(pathItem.get) }\n : undefined)), (pathItem.put\n ? { put: downgradeOperation(collection)(pathItem.put) }\n : undefined)), (pathItem.post\n ? { post: downgradeOperation(collection)(pathItem.post) }\n : undefined)), (pathItem.delete\n ? { delete: downgradeOperation(collection)(pathItem.delete) }\n : undefined)), (pathItem.options\n ? { options: downgradeOperation(collection)(pathItem.options) }\n : undefined)), (pathItem.head\n ? { head: downgradeOperation(collection)(pathItem.head) }\n : undefined)), (pathItem.patch\n ? { patch: downgradeOperation(collection)(pathItem.patch) }\n : undefined)), (pathItem.trace\n ? { trace: downgradeOperation(collection)(pathItem.trace) }\n : undefined)), (Object.keys(xAdditionalOperations).length > 0\n ? { \"x-additionalOperations\": xAdditionalOperations }\n : undefined)), { \n // Remove v3.2-only properties from spread\n query: undefined, additionalOperations: undefined });\n };\n const downgradeOperation = (collection) => (input) => (Object.assign(Object.assign({}, input), { parameters: input.parameters\n ? input.parameters.map(downgradeParameter(collection))\n : undefined, requestBody: input.requestBody\n ? downgradeRequestBody(collection)(input.requestBody)\n : undefined, responses: input.responses\n ? Object.fromEntries(Object.entries(input.responses)\n .filter(([_, v]) => v !== undefined)\n .map(([key, value]) => [\n key,\n downgradeResponse(collection)(value),\n ]))\n : undefined }));\n const downgradeParameter = (collection) => (input) => (Object.assign(Object.assign({}, input), { in: input.in === \"querystring\" ? \"query\" : input.in, schema: OpenApiV3_1Downgrader.downgradeSchema(collection)(input.schema) }));\n const downgradeRequestBody = (collection) => (input) => (Object.assign(Object.assign({}, input), { content: input.content\n ? downgradeContent(collection)(input.content)\n : undefined }));\n const downgradeResponse = (collection) => (input) => (Object.assign(Object.assign({}, input), { content: input.content\n ? downgradeContent(collection)(input.content)\n : undefined, headers: input.headers\n ? Object.fromEntries(Object.entries(input.headers)\n .filter(([_, v]) => v !== undefined)\n .map(([key, value]) => [\n key,\n Object.assign(Object.assign({}, value), { schema: OpenApiV3_1Downgrader.downgradeSchema(collection)(value.schema) }),\n ]))\n : undefined }));\n const downgradeContent = (collection) => (record) => Object.fromEntries(Object.entries(record)\n .filter(([_, v]) => v !== undefined)\n .map(([key, value]) => [\n key,\n Object.assign(Object.assign({}, value), { schema: (value === null || value === void 0 ? void 0 : value.schema)\n ? OpenApiV3_1Downgrader.downgradeSchema(collection)(value.schema)\n : undefined, \n // itemSchema is v3.2-only, remove it\n itemSchema: undefined }),\n ]));\n /* -----------------------------------------------------------\n DEFINITIONS\n ----------------------------------------------------------- */\n OpenApiV3_1Downgrader.downgradeComponents = (input) => {\n const collection = {\n original: input,\n downgraded: {\n securitySchemes: input.securitySchemes\n ? downgradeSecuritySchemes(input.securitySchemes)\n : undefined,\n },\n };\n if (input.schemas) {\n collection.downgraded.schemas = {};\n for (const [key, value] of Object.entries(input.schemas))\n if (value !== undefined)\n collection.downgraded.schemas[key] =\n OpenApiV3_1Downgrader.downgradeSchema(collection)(value);\n }\n return collection;\n };\n OpenApiV3_1Downgrader.downgradeSchema = (collection) => (input) => {\n const union = [];\n const attribute = Object.assign({ title: input.title, description: input.description, deprecated: input.deprecated, readOnly: input.readOnly, writeOnly: input.writeOnly, example: input.example, examples: input.examples }, Object.fromEntries(Object.entries(input).filter(([key, value]) => key.startsWith(\"x-\") && value !== undefined)));\n const visit = (schema) => {\n if (OpenApiTypeChecker_1.OpenApiTypeChecker.isNull(schema))\n union.push({ type: \"null\" });\n else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isConstant(schema))\n union.push({ const: schema.const });\n else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isBoolean(schema) ||\n OpenApiTypeChecker_1.OpenApiTypeChecker.isInteger(schema) ||\n OpenApiTypeChecker_1.OpenApiTypeChecker.isNumber(schema) ||\n OpenApiTypeChecker_1.OpenApiTypeChecker.isString(schema) ||\n OpenApiTypeChecker_1.OpenApiTypeChecker.isReference(schema))\n union.push(Object.assign({}, schema));\n else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isArray(schema))\n union.push(Object.assign(Object.assign({}, schema), { items: OpenApiV3_1Downgrader.downgradeSchema(collection)(schema.items) }));\n else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isTuple(schema))\n union.push(Object.assign(Object.assign({}, schema), { prefixItems: schema.prefixItems.map(OpenApiV3_1Downgrader.downgradeSchema(collection)), additionalItems: typeof schema.additionalItems === \"object\"\n ? OpenApiV3_1Downgrader.downgradeSchema(collection)(schema.additionalItems)\n : schema.additionalItems }));\n else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isObject(schema))\n union.push(Object.assign(Object.assign({}, schema), { properties: schema.properties\n ? Object.fromEntries(Object.entries(schema.properties)\n .filter(([_, v]) => v !== undefined)\n .map(([key, value]) => [\n key,\n OpenApiV3_1Downgrader.downgradeSchema(collection)(value),\n ]))\n : undefined, additionalProperties: typeof schema.additionalProperties === \"object\"\n ? OpenApiV3_1Downgrader.downgradeSchema(collection)(schema.additionalProperties)\n : schema.additionalProperties, required: schema.required }));\n else if (OpenApiTypeChecker_1.OpenApiTypeChecker.isOneOf(schema))\n schema.oneOf.forEach(visit);\n };\n visit(input);\n return Object.assign(Object.assign({}, (union.length === 0\n ? { type: undefined }\n : union.length === 1\n ? Object.assign({}, union[0]) : { oneOf: union })), attribute);\n };\n const downgradeSecuritySchemes = (input) => Object.fromEntries(Object.entries(input)\n .filter(([_, v]) => v !== undefined)\n .map(([key, value]) => [key, downgradeSecurityScheme(value)]));\n const downgradeSecurityScheme = (input) => {\n if (input.type === \"oauth2\") {\n const _a = input.flows, { deviceAuthorization: _ } = _a, flows = __rest(_a, [\"deviceAuthorization\"]);\n return {\n type: \"oauth2\",\n flows,\n description: input.description,\n };\n }\n return Object.assign({}, input);\n };\n})(OpenApiV3_1Downgrader || (exports.OpenApiV3_1Downgrader = OpenApiV3_1Downgrader = {}));\n//# sourceMappingURL=OpenApiV3_1Downgrader.js.map"],"names":["this","OpenApiV3_1Downgrader_1","require$$0","OpenApiV3_1Downgrader"],"mappings":";;;;;;;;AACA,CAAA,IAAI,MAAM,GAAG,CAACA,qBAAI,IAAIA,qBAAI,CAAC,MAAM,KAAK,UAAU,CAAC,EAAE,CAAC,EAAE;KAClD,IAAI,CAAC,GAAG,EAAE;KACV,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;SAC/E,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACf,IAAI,CAAC,IAAI,IAAI,IAAI,OAAO,MAAM,CAAC,qBAAqB,KAAK,UAAU;SAC/D,KAAK,IAAI,CAAC,GAAG,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