@skmtc/core 0.18.1 → 0.27.0

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 (586) hide show
  1. package/README.md +4 -3
  2. package/esm/anchors/ParserAdapter.d.ts +22 -3
  3. package/esm/anchors/ParserAdapter.d.ts.map +1 -1
  4. package/esm/anchors/attribute.d.ts.map +1 -1
  5. package/esm/anchors/buildSidecar.d.ts.map +1 -1
  6. package/esm/anchors/buildSidecar.js +1 -1
  7. package/esm/anchors/generationMap.d.ts.map +1 -1
  8. package/esm/anchors/postPass.d.ts +1 -1
  9. package/esm/anchors/postPass.js +1 -1
  10. package/esm/anchors/sidecar.d.ts +2 -2
  11. package/esm/anchors/sidecar.js +1 -1
  12. package/esm/context/CoreContext.d.ts +7 -1
  13. package/esm/context/CoreContext.d.ts.map +1 -1
  14. package/esm/context/CoreContext.js +17 -11
  15. package/esm/context/GenerateContext.d.ts +25 -4
  16. package/esm/context/GenerateContext.d.ts.map +1 -1
  17. package/esm/context/GenerateContext.js +159 -76
  18. package/esm/context/ParseContext.d.ts.map +1 -1
  19. package/esm/context/ParseIssue.d.ts +1 -1
  20. package/esm/context/RenderContext.d.ts +2 -6
  21. package/esm/context/RenderContext.d.ts.map +1 -1
  22. package/esm/context/RenderContext.js +4 -14
  23. package/esm/context/generateTypes.d.ts +35 -8
  24. package/esm/context/generateTypes.d.ts.map +1 -1
  25. package/{script/deps/jsr.io/@std/fs/1.0.23 → esm/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map +1 -1
  26. package/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/internal/1.0.14/_os.js +14 -0
  28. package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts.map +1 -1
  29. package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
  30. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts.map +1 -1
  31. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.js +1 -1
  32. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts.map +1 -1
  33. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.js +1 -1
  34. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts.map +1 -1
  35. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.js +1 -1
  36. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts.map +1 -1
  37. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.js +1 -1
  38. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts.map +1 -1
  39. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.js +1 -1
  40. package/esm/deps/jsr.io/@std/path/1.1.6/extname.d.ts +25 -0
  41. package/esm/deps/jsr.io/@std/path/1.1.6/extname.d.ts.map +1 -0
  42. package/esm/deps/jsr.io/@std/path/1.1.6/extname.js +31 -0
  43. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts.map +1 -1
  44. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.js +2 -2
  45. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts.map +1 -1
  46. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.js +2 -2
  47. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts.map +1 -1
  48. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.js +1 -1
  49. package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts +42 -0
  50. package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts.map +1 -0
  51. package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.js +98 -0
  52. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts.map +1 -1
  53. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.js +1 -1
  54. package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map +1 -1
  55. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.js +1 -1
  56. package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/normalize.d.ts.map +1 -1
  57. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.js +1 -1
  58. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts.map +1 -1
  59. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.js +1 -1
  60. package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts +18 -0
  61. package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts.map +1 -0
  62. package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.js +83 -0
  63. package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/from_file_url.d.ts.map +1 -1
  64. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.js +1 -1
  65. package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/join.d.ts.map +1 -1
  66. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.js +1 -1
  67. package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/normalize.d.ts.map +1 -1
  68. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.js +1 -1
  69. package/esm/dsl/CodeFileBase.d.ts +57 -24
  70. package/esm/dsl/CodeFileBase.d.ts.map +1 -1
  71. package/esm/dsl/CodeFileBase.js +35 -53
  72. package/esm/dsl/FileBase.d.ts +21 -25
  73. package/esm/dsl/FileBase.d.ts.map +1 -1
  74. package/esm/dsl/FileBase.js +20 -29
  75. package/esm/dsl/GeneratorKeys.d.ts +19 -19
  76. package/esm/dsl/GeneratorKeys.d.ts.map +1 -1
  77. package/esm/dsl/GeneratorKeys.js +6 -5
  78. package/esm/dsl/IdentifierBase.d.ts +19 -5
  79. package/esm/dsl/IdentifierBase.d.ts.map +1 -1
  80. package/esm/dsl/IdentifierBase.js +21 -5
  81. package/esm/dsl/IdentifierType.d.ts +8 -14
  82. package/esm/dsl/IdentifierType.d.ts.map +1 -1
  83. package/esm/dsl/Lang.d.ts +18 -38
  84. package/esm/dsl/Lang.d.ts.map +1 -1
  85. package/esm/dsl/MarkdownFile.d.ts +55 -0
  86. package/esm/dsl/MarkdownFile.d.ts.map +1 -0
  87. package/esm/dsl/MarkdownFile.js +58 -0
  88. package/esm/dsl/model/ModelDriver.d.ts +3 -1
  89. package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
  90. package/esm/dsl/model/ModelDriver.js +6 -8
  91. package/esm/dsl/model/toModelEntry.d.ts +21 -17
  92. package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
  93. package/esm/dsl/model/toModelEntry.js +3 -27
  94. package/esm/dsl/model/toModelProjectionBase.d.ts +15 -15
  95. package/esm/dsl/model/toModelProjectionBase.d.ts.map +1 -1
  96. package/esm/dsl/model/types.d.ts +2 -52
  97. package/esm/dsl/model/types.d.ts.map +1 -1
  98. package/esm/dsl/operation/gql/GqlOperationDriver.d.ts +3 -1
  99. package/esm/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -1
  100. package/esm/dsl/operation/gql/GqlOperationDriver.js +12 -9
  101. package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts +20 -15
  102. package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -1
  103. package/esm/dsl/operation/gql/toGqlOperationEntry.js +3 -25
  104. package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +11 -10
  105. package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -1
  106. package/esm/dsl/operation/gql/toGqlOperationProjectionBase.js +7 -1
  107. package/esm/dsl/operation/gql/types.d.ts +1 -33
  108. package/esm/dsl/operation/gql/types.d.ts.map +1 -1
  109. package/esm/dsl/operation/oas/OasOperationDriver.d.ts +3 -1
  110. package/esm/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -1
  111. package/esm/dsl/operation/oas/OasOperationDriver.js +12 -9
  112. package/esm/dsl/operation/oas/toOasOperationEntry.d.ts +21 -17
  113. package/esm/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -1
  114. package/esm/dsl/operation/oas/toOasOperationEntry.js +3 -32
  115. package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts +11 -10
  116. package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -1
  117. package/esm/dsl/operation/oas/types.d.ts +1 -43
  118. package/esm/dsl/operation/oas/types.d.ts.map +1 -1
  119. package/esm/dsl/webhook/WebhookDriver.d.ts +3 -1
  120. package/esm/dsl/webhook/WebhookDriver.d.ts.map +1 -1
  121. package/esm/dsl/webhook/WebhookDriver.js +12 -9
  122. package/esm/dsl/webhook/toWebhookEntry.d.ts +21 -16
  123. package/esm/dsl/webhook/toWebhookEntry.d.ts.map +1 -1
  124. package/esm/dsl/webhook/toWebhookEntry.js +3 -32
  125. package/esm/dsl/webhook/toWebhookProjectionBase.d.ts +11 -10
  126. package/esm/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -1
  127. package/esm/dsl/webhook/types.d.ts +1 -36
  128. package/esm/dsl/webhook/types.d.ts.map +1 -1
  129. package/esm/enrichments/toEnrichmentDescriptor.d.ts +72 -27
  130. package/esm/enrichments/toEnrichmentDescriptor.d.ts.map +1 -1
  131. package/esm/enrichments/toEnrichmentDescriptor.js +57 -31
  132. package/esm/enrichments/validateConfig.d.ts +1 -1
  133. package/esm/enrichments/validateConfig.d.ts.map +1 -1
  134. package/esm/enrichments/validateConfig.js +2 -2
  135. package/esm/gql/_helpers/unwrapType.d.ts.map +1 -1
  136. package/esm/gql/enum/toEnumType.d.ts.map +1 -1
  137. package/esm/gql/field/toFieldSchema.d.ts.map +1 -1
  138. package/esm/gql/input/toInputType.d.ts.map +1 -1
  139. package/esm/gql/interface/toInterfaceUnion.d.ts.map +1 -1
  140. package/esm/gql/object/toObjectType.d.ts.map +1 -1
  141. package/esm/gql/operation/toRootField.d.ts.map +1 -1
  142. package/esm/gql/union/toUnionType.d.ts.map +1 -1
  143. package/esm/helpers/applyGeneratedSuffix.d.ts +43 -0
  144. package/esm/helpers/applyGeneratedSuffix.d.ts.map +1 -0
  145. package/esm/helpers/applyGeneratedSuffix.js +79 -0
  146. package/esm/helpers/isImported.js +1 -1
  147. package/esm/helpers/strings.d.ts.map +1 -1
  148. package/esm/helpers/toResolvedArtifactPath.js +1 -1
  149. package/esm/mod.d.ts +8 -1
  150. package/esm/mod.d.ts.map +1 -1
  151. package/esm/mod.js +8 -1
  152. package/esm/oas/array/Array.d.ts +2 -0
  153. package/esm/oas/array/Array.d.ts.map +1 -1
  154. package/esm/oas/array/Array.js +4 -0
  155. package/esm/oas/boolean/Boolean.d.ts +3 -1
  156. package/esm/oas/boolean/Boolean.d.ts.map +1 -1
  157. package/esm/oas/boolean/Boolean.js +4 -0
  158. package/esm/oas/components/Components.d.ts +5 -0
  159. package/esm/oas/components/Components.d.ts.map +1 -1
  160. package/esm/oas/components/Components.js +6 -1
  161. package/esm/oas/document/Document.d.ts.map +1 -1
  162. package/esm/oas/integer/Integer.d.ts +3 -1
  163. package/esm/oas/integer/Integer.d.ts.map +1 -1
  164. package/esm/oas/integer/Integer.js +4 -0
  165. package/esm/oas/link/Link.d.ts +68 -0
  166. package/esm/oas/link/Link.d.ts.map +1 -0
  167. package/esm/oas/link/Link.js +107 -0
  168. package/esm/oas/number/Number.d.ts +3 -1
  169. package/esm/oas/number/Number.d.ts.map +1 -1
  170. package/esm/oas/number/Number.js +4 -0
  171. package/esm/oas/object/Object.d.ts +9 -0
  172. package/esm/oas/object/Object.d.ts.map +1 -1
  173. package/esm/oas/object/Object.js +14 -0
  174. package/esm/oas/operation/Operation.d.ts +15 -0
  175. package/esm/oas/operation/Operation.d.ts.map +1 -1
  176. package/esm/oas/operation/Operation.js +33 -0
  177. package/esm/oas/ref/Ref.d.ts +23 -1
  178. package/esm/oas/ref/Ref.d.ts.map +1 -1
  179. package/esm/oas/ref/Ref.js +32 -0
  180. package/esm/oas/ref/ref-types.d.ts +18 -1
  181. package/esm/oas/ref/ref-types.d.ts.map +1 -1
  182. package/esm/oas/ref/ref-types.js +12 -1
  183. package/esm/oas/response/Response.d.ts +4 -0
  184. package/esm/oas/response/Response.d.ts.map +1 -1
  185. package/esm/oas/response/Response.js +7 -0
  186. package/esm/oas/schemaPath/traverseSchema.d.ts +31 -0
  187. package/esm/oas/schemaPath/traverseSchema.d.ts.map +1 -0
  188. package/esm/oas/schemaPath/traverseSchema.js +115 -0
  189. package/esm/oas/string/String.d.ts +3 -1
  190. package/esm/oas/string/String.d.ts.map +1 -1
  191. package/esm/oas/string/String.js +4 -0
  192. package/esm/oas/union/Union.d.ts +9 -0
  193. package/esm/oas/union/Union.d.ts.map +1 -1
  194. package/esm/oas/union/Union.js +14 -0
  195. package/esm/oas/unknown/Unknown.d.ts +3 -1
  196. package/esm/oas/unknown/Unknown.d.ts.map +1 -1
  197. package/esm/oas/unknown/Unknown.js +4 -0
  198. package/esm/parse/v3-0/array/toArray.d.ts.map +1 -1
  199. package/esm/parse/v3-0/boolean/toBoolean.d.ts.map +1 -1
  200. package/esm/parse/v3-0/components/toComponentsV3.d.ts.map +1 -1
  201. package/esm/parse/v3-0/components/toComponentsV3.js +3 -1
  202. package/esm/parse/v3-0/integer/toInteger.d.ts.map +1 -1
  203. package/esm/parse/v3-0/link/toLinksV3.d.ts +17 -0
  204. package/esm/parse/v3-0/link/toLinksV3.d.ts.map +1 -0
  205. package/esm/parse/v3-0/link/toLinksV3.js +40 -0
  206. package/esm/parse/v3-0/object/toObject.d.ts.map +1 -1
  207. package/esm/parse/v3-0/object/toObject.js +3 -1
  208. package/esm/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -1
  209. package/esm/parse/v3-0/ref/toRefV31.d.ts.map +1 -1
  210. package/esm/parse/v3-0/response/toResponseV3.d.ts.map +1 -1
  211. package/esm/parse/v3-0/response/toResponseV3.js +4 -1
  212. package/esm/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
  213. package/esm/parse/v3-0/schema/toSchemasV3.js +7 -1
  214. package/esm/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
  215. package/esm/parse/v3-0/string/toString.d.ts.map +1 -1
  216. package/esm/parse/v3-0/union/toUnion.d.ts.map +1 -1
  217. package/esm/parse/v3-0/union/toUnion.js +3 -1
  218. package/esm/parse/v3-0/unknown/toUnknown.d.ts.map +1 -1
  219. package/esm/parse/v3-0/webhook/toWebhooksV3.d.ts.map +1 -1
  220. package/esm/parse/v3-1/array/toArray.d.ts.map +1 -1
  221. package/esm/parse/v3-1/boolean/toBoolean.d.ts.map +1 -1
  222. package/esm/parse/v3-1/components/toComponentsV3.d.ts.map +1 -1
  223. package/esm/parse/v3-1/components/toComponentsV3.js +3 -1
  224. package/esm/parse/v3-1/integer/toInteger.d.ts.map +1 -1
  225. package/esm/parse/v3-1/link/toLinksV3.d.ts +17 -0
  226. package/esm/parse/v3-1/link/toLinksV3.d.ts.map +1 -0
  227. package/esm/parse/v3-1/link/toLinksV3.js +40 -0
  228. package/esm/parse/v3-1/object/toObject.d.ts.map +1 -1
  229. package/esm/parse/v3-1/object/toObject.js +3 -1
  230. package/esm/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -1
  231. package/esm/parse/v3-1/ref/toRefV31.d.ts.map +1 -1
  232. package/esm/parse/v3-1/response/toResponseV3.d.ts.map +1 -1
  233. package/esm/parse/v3-1/response/toResponseV3.js +4 -1
  234. package/esm/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
  235. package/esm/parse/v3-1/schema/toSchemasV3.js +7 -1
  236. package/esm/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
  237. package/esm/parse/v3-1/string/toString.d.ts.map +1 -1
  238. package/esm/parse/v3-1/union/toUnion.d.ts.map +1 -1
  239. package/esm/parse/v3-1/union/toUnion.js +3 -1
  240. package/esm/parse/v3-1/unknown/toUnknown.d.ts.map +1 -1
  241. package/esm/parse/v3-1/webhook/toWebhooksV3.d.ts.map +1 -1
  242. package/esm/run/toArtifacts.d.ts +8 -1
  243. package/esm/run/toArtifacts.d.ts.map +1 -1
  244. package/esm/run/toArtifacts.js +5 -5
  245. package/esm/run/toInspection.d.ts +8 -0
  246. package/esm/run/toInspection.d.ts.map +1 -0
  247. package/esm/run/toInspection.js +78 -0
  248. package/esm/types/Enrichments.d.ts +19 -8
  249. package/esm/types/Enrichments.d.ts.map +1 -1
  250. package/esm/types/Enrichments.js +4 -3
  251. package/esm/types/GeneratorType.d.ts +5 -5
  252. package/esm/types/GeneratorType.d.ts.map +1 -1
  253. package/esm/types/Manifest.d.ts +9 -2
  254. package/esm/types/Manifest.d.ts.map +1 -1
  255. package/esm/types/Manifest.js +3 -3
  256. package/esm/types/ModuleSelect.d.ts +81 -0
  257. package/esm/types/ModuleSelect.d.ts.map +1 -0
  258. package/esm/types/ModuleSelect.js +63 -0
  259. package/esm/types/Preview.d.ts +4 -27
  260. package/esm/types/Preview.d.ts.map +1 -1
  261. package/esm/types/Preview.js +4 -25
  262. package/esm/types/SchemaPath.d.ts +17 -0
  263. package/esm/types/SchemaPath.d.ts.map +1 -0
  264. package/esm/types/SchemaPath.js +9 -0
  265. package/esm/types/Settings.d.ts +45 -3
  266. package/esm/types/Settings.d.ts.map +1 -1
  267. package/esm/types/Settings.js +16 -20
  268. package/esm/types/SkmtcDocument.d.ts +1 -1
  269. package/esm/types/SupportedSubjects.d.ts +1 -1
  270. package/package.json +1 -1
  271. package/script/anchors/ParserAdapter.d.ts +22 -3
  272. package/script/anchors/ParserAdapter.d.ts.map +1 -1
  273. package/script/anchors/attribute.d.ts.map +1 -1
  274. package/script/anchors/buildSidecar.d.ts.map +1 -1
  275. package/script/anchors/buildSidecar.js +1 -1
  276. package/script/anchors/generationMap.d.ts.map +1 -1
  277. package/script/anchors/postPass.d.ts +1 -1
  278. package/script/anchors/postPass.js +1 -1
  279. package/script/anchors/sidecar.d.ts +2 -2
  280. package/script/anchors/sidecar.js +1 -1
  281. package/script/context/CoreContext.d.ts +7 -1
  282. package/script/context/CoreContext.d.ts.map +1 -1
  283. package/script/context/CoreContext.js +17 -11
  284. package/script/context/GenerateContext.d.ts +25 -4
  285. package/script/context/GenerateContext.d.ts.map +1 -1
  286. package/script/context/GenerateContext.js +159 -76
  287. package/script/context/ParseContext.d.ts.map +1 -1
  288. package/script/context/ParseIssue.d.ts +1 -1
  289. package/script/context/RenderContext.d.ts +2 -6
  290. package/script/context/RenderContext.d.ts.map +1 -1
  291. package/script/context/RenderContext.js +4 -14
  292. package/script/context/generateTypes.d.ts +35 -8
  293. package/script/context/generateTypes.d.ts.map +1 -1
  294. package/{esm/deps/jsr.io/@std/fs/1.0.23 → script/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map +1 -1
  295. package/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
  296. package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.js +7 -5
  297. package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts.map +1 -1
  298. package/script/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
  299. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts.map +1 -1
  300. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.js +1 -1
  301. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts.map +1 -1
  302. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.js +1 -1
  303. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts.map +1 -1
  304. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.js +1 -1
  305. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts.map +1 -1
  306. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.js +1 -1
  307. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts.map +1 -1
  308. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.js +1 -1
  309. package/script/deps/jsr.io/@std/path/1.1.6/extname.d.ts +25 -0
  310. package/script/deps/jsr.io/@std/path/1.1.6/extname.d.ts.map +1 -0
  311. package/script/deps/jsr.io/@std/path/1.1.6/extname.js +34 -0
  312. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts.map +1 -1
  313. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.js +2 -2
  314. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts.map +1 -1
  315. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.js +2 -2
  316. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts.map +1 -1
  317. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.js +1 -1
  318. package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts +42 -0
  319. package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts.map +1 -0
  320. package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.js +101 -0
  321. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts.map +1 -1
  322. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.js +1 -1
  323. package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map +1 -1
  324. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.js +1 -1
  325. package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/posix/normalize.d.ts.map +1 -1
  326. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.js +1 -1
  327. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts.map +1 -1
  328. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.js +1 -1
  329. package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts +18 -0
  330. package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts.map +1 -0
  331. package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.js +86 -0
  332. package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/from_file_url.d.ts.map +1 -1
  333. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.js +1 -1
  334. package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/join.d.ts.map +1 -1
  335. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.js +1 -1
  336. package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/normalize.d.ts.map +1 -1
  337. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.js +1 -1
  338. package/script/dsl/CodeFileBase.d.ts +57 -24
  339. package/script/dsl/CodeFileBase.d.ts.map +1 -1
  340. package/script/dsl/CodeFileBase.js +37 -54
  341. package/script/dsl/FileBase.d.ts +21 -25
  342. package/script/dsl/FileBase.d.ts.map +1 -1
  343. package/script/dsl/FileBase.js +20 -29
  344. package/script/dsl/GeneratorKeys.d.ts +19 -19
  345. package/script/dsl/GeneratorKeys.d.ts.map +1 -1
  346. package/script/dsl/GeneratorKeys.js +6 -5
  347. package/script/dsl/IdentifierBase.d.ts +19 -5
  348. package/script/dsl/IdentifierBase.d.ts.map +1 -1
  349. package/script/dsl/IdentifierBase.js +21 -5
  350. package/script/dsl/IdentifierType.d.ts +8 -14
  351. package/script/dsl/IdentifierType.d.ts.map +1 -1
  352. package/script/dsl/Lang.d.ts +18 -38
  353. package/script/dsl/Lang.d.ts.map +1 -1
  354. package/script/dsl/MarkdownFile.d.ts +55 -0
  355. package/script/dsl/MarkdownFile.d.ts.map +1 -0
  356. package/script/dsl/MarkdownFile.js +62 -0
  357. package/script/dsl/model/ModelDriver.d.ts +3 -1
  358. package/script/dsl/model/ModelDriver.d.ts.map +1 -1
  359. package/script/dsl/model/ModelDriver.js +6 -8
  360. package/script/dsl/model/toModelEntry.d.ts +21 -17
  361. package/script/dsl/model/toModelEntry.d.ts.map +1 -1
  362. package/script/dsl/model/toModelEntry.js +3 -63
  363. package/script/dsl/model/toModelProjectionBase.d.ts +15 -15
  364. package/script/dsl/model/toModelProjectionBase.d.ts.map +1 -1
  365. package/script/dsl/model/types.d.ts +2 -52
  366. package/script/dsl/model/types.d.ts.map +1 -1
  367. package/script/dsl/operation/gql/GqlOperationDriver.d.ts +3 -1
  368. package/script/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -1
  369. package/script/dsl/operation/gql/GqlOperationDriver.js +12 -9
  370. package/script/dsl/operation/gql/toGqlOperationEntry.d.ts +20 -15
  371. package/script/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -1
  372. package/script/dsl/operation/gql/toGqlOperationEntry.js +3 -61
  373. package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +11 -10
  374. package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -1
  375. package/script/dsl/operation/gql/toGqlOperationProjectionBase.js +7 -1
  376. package/script/dsl/operation/gql/types.d.ts +1 -33
  377. package/script/dsl/operation/gql/types.d.ts.map +1 -1
  378. package/script/dsl/operation/oas/OasOperationDriver.d.ts +3 -1
  379. package/script/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -1
  380. package/script/dsl/operation/oas/OasOperationDriver.js +12 -9
  381. package/script/dsl/operation/oas/toOasOperationEntry.d.ts +21 -17
  382. package/script/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -1
  383. package/script/dsl/operation/oas/toOasOperationEntry.js +3 -68
  384. package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts +11 -10
  385. package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -1
  386. package/script/dsl/operation/oas/types.d.ts +1 -43
  387. package/script/dsl/operation/oas/types.d.ts.map +1 -1
  388. package/script/dsl/webhook/WebhookDriver.d.ts +3 -1
  389. package/script/dsl/webhook/WebhookDriver.d.ts.map +1 -1
  390. package/script/dsl/webhook/WebhookDriver.js +12 -9
  391. package/script/dsl/webhook/toWebhookEntry.d.ts +21 -16
  392. package/script/dsl/webhook/toWebhookEntry.d.ts.map +1 -1
  393. package/script/dsl/webhook/toWebhookEntry.js +3 -68
  394. package/script/dsl/webhook/toWebhookProjectionBase.d.ts +11 -10
  395. package/script/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -1
  396. package/script/dsl/webhook/types.d.ts +1 -36
  397. package/script/dsl/webhook/types.d.ts.map +1 -1
  398. package/script/enrichments/toEnrichmentDescriptor.d.ts +72 -27
  399. package/script/enrichments/toEnrichmentDescriptor.d.ts.map +1 -1
  400. package/script/enrichments/toEnrichmentDescriptor.js +57 -31
  401. package/script/enrichments/validateConfig.d.ts +1 -1
  402. package/script/enrichments/validateConfig.d.ts.map +1 -1
  403. package/script/enrichments/validateConfig.js +2 -2
  404. package/script/gql/_helpers/unwrapType.d.ts.map +1 -1
  405. package/script/gql/enum/toEnumType.d.ts.map +1 -1
  406. package/script/gql/field/toFieldSchema.d.ts.map +1 -1
  407. package/script/gql/input/toInputType.d.ts.map +1 -1
  408. package/script/gql/interface/toInterfaceUnion.d.ts.map +1 -1
  409. package/script/gql/object/toObjectType.d.ts.map +1 -1
  410. package/script/gql/operation/toRootField.d.ts.map +1 -1
  411. package/script/gql/union/toUnionType.d.ts.map +1 -1
  412. package/script/helpers/applyGeneratedSuffix.d.ts +43 -0
  413. package/script/helpers/applyGeneratedSuffix.d.ts.map +1 -0
  414. package/script/helpers/applyGeneratedSuffix.js +84 -0
  415. package/script/helpers/isImported.js +1 -1
  416. package/script/helpers/strings.d.ts.map +1 -1
  417. package/script/helpers/toResolvedArtifactPath.js +1 -1
  418. package/script/mod.d.ts +8 -1
  419. package/script/mod.d.ts.map +1 -1
  420. package/script/mod.js +8 -1
  421. package/script/oas/array/Array.d.ts +2 -0
  422. package/script/oas/array/Array.d.ts.map +1 -1
  423. package/script/oas/array/Array.js +4 -0
  424. package/script/oas/boolean/Boolean.d.ts +3 -1
  425. package/script/oas/boolean/Boolean.d.ts.map +1 -1
  426. package/script/oas/boolean/Boolean.js +4 -0
  427. package/script/oas/components/Components.d.ts +5 -0
  428. package/script/oas/components/Components.d.ts.map +1 -1
  429. package/script/oas/components/Components.js +6 -1
  430. package/script/oas/document/Document.d.ts.map +1 -1
  431. package/script/oas/integer/Integer.d.ts +3 -1
  432. package/script/oas/integer/Integer.d.ts.map +1 -1
  433. package/script/oas/integer/Integer.js +4 -0
  434. package/script/oas/link/Link.d.ts +68 -0
  435. package/script/oas/link/Link.d.ts.map +1 -0
  436. package/script/oas/link/Link.js +111 -0
  437. package/script/oas/number/Number.d.ts +3 -1
  438. package/script/oas/number/Number.d.ts.map +1 -1
  439. package/script/oas/number/Number.js +4 -0
  440. package/script/oas/object/Object.d.ts +9 -0
  441. package/script/oas/object/Object.d.ts.map +1 -1
  442. package/script/oas/object/Object.js +14 -0
  443. package/script/oas/operation/Operation.d.ts +15 -0
  444. package/script/oas/operation/Operation.d.ts.map +1 -1
  445. package/script/oas/operation/Operation.js +33 -0
  446. package/script/oas/ref/Ref.d.ts +23 -1
  447. package/script/oas/ref/Ref.d.ts.map +1 -1
  448. package/script/oas/ref/Ref.js +32 -0
  449. package/script/oas/ref/ref-types.d.ts +18 -1
  450. package/script/oas/ref/ref-types.d.ts.map +1 -1
  451. package/script/oas/ref/ref-types.js +13 -2
  452. package/script/oas/response/Response.d.ts +4 -0
  453. package/script/oas/response/Response.d.ts.map +1 -1
  454. package/script/oas/response/Response.js +7 -0
  455. package/script/oas/schemaPath/traverseSchema.d.ts +31 -0
  456. package/script/oas/schemaPath/traverseSchema.d.ts.map +1 -0
  457. package/script/oas/schemaPath/traverseSchema.js +119 -0
  458. package/script/oas/string/String.d.ts +3 -1
  459. package/script/oas/string/String.d.ts.map +1 -1
  460. package/script/oas/string/String.js +4 -0
  461. package/script/oas/union/Union.d.ts +9 -0
  462. package/script/oas/union/Union.d.ts.map +1 -1
  463. package/script/oas/union/Union.js +14 -0
  464. package/script/oas/unknown/Unknown.d.ts +3 -1
  465. package/script/oas/unknown/Unknown.d.ts.map +1 -1
  466. package/script/oas/unknown/Unknown.js +4 -0
  467. package/script/parse/v3-0/array/toArray.d.ts.map +1 -1
  468. package/script/parse/v3-0/boolean/toBoolean.d.ts.map +1 -1
  469. package/script/parse/v3-0/components/toComponentsV3.d.ts.map +1 -1
  470. package/script/parse/v3-0/components/toComponentsV3.js +3 -1
  471. package/script/parse/v3-0/integer/toInteger.d.ts.map +1 -1
  472. package/script/parse/v3-0/link/toLinksV3.d.ts +17 -0
  473. package/script/parse/v3-0/link/toLinksV3.d.ts.map +1 -0
  474. package/script/parse/v3-0/link/toLinksV3.js +44 -0
  475. package/script/parse/v3-0/object/toObject.d.ts.map +1 -1
  476. package/script/parse/v3-0/object/toObject.js +3 -1
  477. package/script/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -1
  478. package/script/parse/v3-0/ref/toRefV31.d.ts.map +1 -1
  479. package/script/parse/v3-0/response/toResponseV3.d.ts.map +1 -1
  480. package/script/parse/v3-0/response/toResponseV3.js +4 -1
  481. package/script/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
  482. package/script/parse/v3-0/schema/toSchemasV3.js +7 -1
  483. package/script/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
  484. package/script/parse/v3-0/string/toString.d.ts.map +1 -1
  485. package/script/parse/v3-0/union/toUnion.d.ts.map +1 -1
  486. package/script/parse/v3-0/union/toUnion.js +3 -1
  487. package/script/parse/v3-0/unknown/toUnknown.d.ts.map +1 -1
  488. package/script/parse/v3-0/webhook/toWebhooksV3.d.ts.map +1 -1
  489. package/script/parse/v3-1/array/toArray.d.ts.map +1 -1
  490. package/script/parse/v3-1/boolean/toBoolean.d.ts.map +1 -1
  491. package/script/parse/v3-1/components/toComponentsV3.d.ts.map +1 -1
  492. package/script/parse/v3-1/components/toComponentsV3.js +3 -1
  493. package/script/parse/v3-1/integer/toInteger.d.ts.map +1 -1
  494. package/script/parse/v3-1/link/toLinksV3.d.ts +17 -0
  495. package/script/parse/v3-1/link/toLinksV3.d.ts.map +1 -0
  496. package/script/parse/v3-1/link/toLinksV3.js +44 -0
  497. package/script/parse/v3-1/object/toObject.d.ts.map +1 -1
  498. package/script/parse/v3-1/object/toObject.js +3 -1
  499. package/script/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -1
  500. package/script/parse/v3-1/ref/toRefV31.d.ts.map +1 -1
  501. package/script/parse/v3-1/response/toResponseV3.d.ts.map +1 -1
  502. package/script/parse/v3-1/response/toResponseV3.js +4 -1
  503. package/script/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
  504. package/script/parse/v3-1/schema/toSchemasV3.js +7 -1
  505. package/script/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
  506. package/script/parse/v3-1/string/toString.d.ts.map +1 -1
  507. package/script/parse/v3-1/union/toUnion.d.ts.map +1 -1
  508. package/script/parse/v3-1/union/toUnion.js +3 -1
  509. package/script/parse/v3-1/unknown/toUnknown.d.ts.map +1 -1
  510. package/script/parse/v3-1/webhook/toWebhooksV3.d.ts.map +1 -1
  511. package/script/run/toArtifacts.d.ts +8 -1
  512. package/script/run/toArtifacts.d.ts.map +1 -1
  513. package/script/run/toArtifacts.js +5 -5
  514. package/script/run/toInspection.d.ts +8 -0
  515. package/script/run/toInspection.d.ts.map +1 -0
  516. package/script/run/toInspection.js +82 -0
  517. package/script/types/Enrichments.d.ts +19 -8
  518. package/script/types/Enrichments.d.ts.map +1 -1
  519. package/script/types/Enrichments.js +5 -4
  520. package/script/types/GeneratorType.d.ts +5 -5
  521. package/script/types/GeneratorType.d.ts.map +1 -1
  522. package/script/types/Manifest.d.ts +9 -2
  523. package/script/types/Manifest.d.ts.map +1 -1
  524. package/script/types/Manifest.js +2 -2
  525. package/script/types/ModuleSelect.d.ts +81 -0
  526. package/script/types/ModuleSelect.d.ts.map +1 -0
  527. package/script/types/ModuleSelect.js +101 -0
  528. package/script/types/Preview.d.ts +4 -27
  529. package/script/types/Preview.d.ts.map +1 -1
  530. package/script/types/Preview.js +5 -26
  531. package/script/types/SchemaPath.d.ts +17 -0
  532. package/script/types/SchemaPath.d.ts.map +1 -0
  533. package/script/types/{AccessorPath.js → SchemaPath.js} +7 -7
  534. package/script/types/Settings.d.ts +45 -3
  535. package/script/types/Settings.d.ts.map +1 -1
  536. package/script/types/Settings.js +13 -17
  537. package/script/types/SkmtcDocument.d.ts +1 -1
  538. package/script/types/SupportedSubjects.d.ts +1 -1
  539. package/esm/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +0 -1
  540. package/esm/deps/jsr.io/@std/internal/1.0.13/_os.js +0 -12
  541. package/esm/types/AccessorPath.d.ts +0 -17
  542. package/esm/types/AccessorPath.d.ts.map +0 -1
  543. package/esm/types/AccessorPath.js +0 -9
  544. package/script/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +0 -1
  545. package/script/types/AccessorPath.d.ts +0 -17
  546. package/script/types/AccessorPath.d.ts.map +0 -1
  547. /package/esm/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.d.ts +0 -0
  548. /package/esm/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.js +0 -0
  549. /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.d.ts +0 -0
  550. /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts +0 -0
  551. /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.js +0 -0
  552. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts +0 -0
  553. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts +0 -0
  554. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts +0 -0
  555. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts +0 -0
  556. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts +0 -0
  557. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts +0 -0
  558. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts +0 -0
  559. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts +0 -0
  560. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts +0 -0
  561. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.d.ts +0 -0
  562. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.d.ts +0 -0
  563. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts +0 -0
  564. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.d.ts +0 -0
  565. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.d.ts +0 -0
  566. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.d.ts +0 -0
  567. /package/script/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.d.ts +0 -0
  568. /package/script/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.js +0 -0
  569. /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.d.ts +0 -0
  570. /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts +0 -0
  571. /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.js +0 -0
  572. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts +0 -0
  573. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts +0 -0
  574. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts +0 -0
  575. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts +0 -0
  576. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts +0 -0
  577. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts +0 -0
  578. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts +0 -0
  579. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts +0 -0
  580. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts +0 -0
  581. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.d.ts +0 -0
  582. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.d.ts +0 -0
  583. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts +0 -0
  584. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.d.ts +0 -0
  585. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.d.ts +0 -0
  586. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.d.ts +0 -0
@@ -2,7 +2,7 @@ import type { GenerateContextType } from '../../context/generateTypes.js';
2
2
  import type { InsertModelOptions, InsertNormalizedModelArgs, InsertNormalizedModelReturn } from '../../context/generateTypes.js';
3
3
  import type { RefName } from '../../types/RefName.js';
4
4
  import type { ContentSettings } from '../ContentSettings.js';
5
- import type { Lang, LangSnippetConstructor } from '../Lang.js';
5
+ import type { LangSnippetConstructor } from '../Lang.js';
6
6
  import type { IdentifierType } from '../IdentifierType.js';
7
7
  import type { GeneratedValue } from '../GeneratedValue.js';
8
8
  import type { Inserted } from '../Inserted.js';
@@ -31,24 +31,24 @@ type ToEnrichmentsArgs = {
31
31
  /**
32
32
  * Configuration for {@link toModelProjectionBase}.
33
33
  *
34
- * Generic over the language `L`: a language veneer parameterizes this config
35
- * (`ModelProjectionBaseConfig<E, KtLang>`) so `toIdentifierType`'s return
36
- * tightens to that language's `IdentifierType<L>` — no recast. A bare
37
- * config (`L = Lang`) keeps the loose `kind: string` boundary.
34
+ * Generic over the identifier-type shape `IdType`: a language veneer
35
+ * parameterizes this config with its own `XxIdentifierType`
36
+ * (`ModelProjectionBaseConfig<E, KtIdentifierType>`) so `toIdentifierType`'s
37
+ * return tightens to that language's `type` vocabulary — no recast. The
38
+ * default keeps the loose `type: string` boundary.
38
39
  */
39
- export type ModelProjectionBaseConfig<EnrichmentType = undefined, L extends Lang = Lang> = {
40
+ export type ModelProjectionBaseConfig<EnrichmentType = undefined, IdType extends IdentifierType = IdentifierType> = {
40
41
  id: string;
41
42
  /** Pure: the cache-key name (the cache-check path runs this). */
42
43
  toIdentifierName: (args: ToModelIdentifierNameArgs<EnrichmentType>) => string;
43
44
  /**
44
45
  * Context-aware, overridable: the non-`name` parts of the identifier
45
- * (`kind` / `typeName` / `exported`), derived from the schema. Runs only
46
- * on cache-miss. Returns this language's `IdentifierType<L>` — the `kind`
47
- * is bound to `L`'s `EntityKind` vocabulary (the loose `string` when
48
- * `L = Lang`). The tightening rides the type argument, replacing the old
49
- * veneer recast.
46
+ * (`type` / `typeName` / `exported`), derived from the schema. Runs only
47
+ * on cache-miss. Returns `IdType` — the veneer's `XxIdentifierType`, whose
48
+ * `type` is bound to that language's `EntityType` vocabulary (the loose
49
+ * `string` by default). The tightening rides the type argument.
50
50
  */
51
- toIdentifierType: (refName: RefName, context: GenerateContextType) => IdentifierType<L>;
51
+ toIdentifierType: (refName: RefName, context: GenerateContextType) => IdType;
52
52
  toExportPath: (args: ToModelExportPathArgs<EnrichmentType>) => string;
53
53
  /**
54
54
  * Required composite schema for the `{ subject, generator, stack }`
@@ -96,7 +96,7 @@ export type ModelProjectionBaseConfig<EnrichmentType = undefined, L extends Lang
96
96
  * The projection machinery previously hosted on `ModelProjectionBase` lives
97
97
  * here now, because the base class is no longer statically known.
98
98
  */
99
- export declare const toModelProjectionBase: <EnrichmentType = undefined, L extends Lang = Lang>(base: LangSnippetConstructor<L>, config: ModelProjectionBaseConfig<EnrichmentType, L>) => {
99
+ export declare const toModelProjectionBase: <EnrichmentType = undefined, IdType extends IdentifierType = IdentifierType>(base: LangSnippetConstructor, config: ModelProjectionBaseConfig<EnrichmentType, IdType>) => {
100
100
  new (args: ModelProjectionArgs<EnrichmentType>): {
101
101
  settings: ContentSettings<EnrichmentType>;
102
102
  refName: RefName;
@@ -119,7 +119,7 @@ export declare const toModelProjectionBase: <EnrichmentType = undefined, L exten
119
119
  id: string;
120
120
  type: "model";
121
121
  toIdentifierName: (args: ToModelIdentifierNameArgs<EnrichmentType>) => string;
122
- toIdentifierType: (refName: RefName, context: GenerateContextType) => IdentifierType<L>;
122
+ toIdentifierType: (refName: RefName, context: GenerateContextType) => IdType;
123
123
  toExportPath: (args: ToModelExportPathArgs<EnrichmentType>) => string;
124
124
  toEnrichments: ({ refName, context, variant }: ToEnrichmentsArgs) => EnrichmentType;
125
125
  /**
@@ -132,7 +132,7 @@ export declare const toModelProjectionBase: <EnrichmentType = undefined, L exten
132
132
  refName: RefName;
133
133
  context: GenerateContextType;
134
134
  }) => boolean;
135
- lang: L;
135
+ lang: import("../Lang.js").Lang;
136
136
  };
137
137
  export {};
138
138
  //# sourceMappingURL=toModelProjectionBase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toModelProjectionBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelProjectionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,KAAK,EACV,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,CAAC,MAAM,SAAS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AC,MAAM,CAAC,EAAE,iBAAiB,CAAC,YAC3E,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,SAAS,CAAC,GACxD,2BAA2B,CAAC,CAAC,EAAE,MAAM,CAAC;;;;;;;UA7E3B,OAAO;2EA/DgD,MAAM;gCAQjD,OAAO,WAAW,mBAAmB;mEACF,MAAM;oBA2D3C,+BAA+B,iBAAiB,KAAG,cAAc;IAgBzF;;;;OAIG;2BAC4B,MAAM,iBAAiB,KAAG,cAAc,GAAG,SAAS;wBAzDhE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,mBAAmB,CAAA;KAAE,KAAK,OAAO;;CA2HpF,CAAA"}
@@ -5,9 +5,6 @@ import type { RefName } from '../../types/RefName.js';
5
5
  import type { IdentifierType } from '../IdentifierType.js';
6
6
  import type { IdentifierBase } from '../IdentifierBase.js';
7
7
  import type { GeneratedValue } from '../GeneratedValue.js';
8
- import type { EnrichmentRequest } from '../../types/EnrichmentRequest.js';
9
- import type * as v from 'valibot';
10
- import type { MappingModule, PreviewModule } from '../../types/Preview.js';
11
8
  import type { SchemaToValueFn } from '../../types/TypeSystem.js';
12
9
  /**
13
10
  * External constructor signature for a model projection class.
@@ -51,19 +48,6 @@ export type TransformModelArgs = {
51
48
  * resolves the schema itself (`context.resolveSchemaRefOnce(refName, id)`)
52
49
  * when it needs it, mirroring how `transform` works.
53
50
  */
54
- export type IsSupportedModelConfigArgs<EnrichmentType = undefined> = {
55
- context: GenerateContextType;
56
- refName: RefName;
57
- enrichments: EnrichmentType;
58
- /** Model variant being probed (see {@link Variant}) */
59
- variant: string;
60
- };
61
- /**
62
- * Arguments the engine passes to the wrapped `isSupported` on a built
63
- * {@link ModelConfig} — the enrichment-free outer shape (the
64
- * {@link toModelEntry} wrapper assembles the umbrella before calling the
65
- * user's predicate).
66
- */
67
51
  export type IsSupportedModelArgs = {
68
52
  context: GenerateContextType;
69
53
  refName: RefName;
@@ -123,7 +107,7 @@ export type ModelProjection<V extends GeneratedValue, EnrichmentType = undefined
123
107
  toIdentifierName: (args: ToModelIdentifierNameArgs<EnrichmentType>) => string;
124
108
  /**
125
109
  * Context-aware, overridable: the non-`name` parts of the identifier
126
- * (`kind` / `typeName` / `exported`), derived from the schema. The engine
110
+ * (`type` / `typeName` / `exported`), derived from the schema. The engine
127
111
  * assembles `lang.toIdentifier({ name: toIdentifierName(args),
128
112
  * ...toIdentifierType(refName, context) })`.
129
113
  */
@@ -137,10 +121,7 @@ export type ModelProjection<V extends GeneratedValue, EnrichmentType = undefined
137
121
  * unsupported. Optional: a hand-rolled projection may omit it, in which
138
122
  * case it is treated as supporting every model.
139
123
  */
140
- isSupported?: (args: {
141
- refName: RefName;
142
- context: GenerateContextType;
143
- }) => boolean;
124
+ isSupported?: (args: IsSupportedModelArgs) => boolean;
144
125
  schemaToValueFn: SchemaToValueFn;
145
126
  /**
146
127
  * The inline-schema fallback seam used by `insertNormalizedModel` when a
@@ -150,35 +131,4 @@ export type ModelProjection<V extends GeneratedValue, EnrichmentType = undefined
150
131
  */
151
132
  createIdentifier: (name: string) => IdentifierBase;
152
133
  } & Function;
153
- /**
154
- * Pipeline-side configuration for a model projection (built by
155
- * `toModelEntry`). Carries the iteration callback (`transform`) and
156
- * optional preview/mapping/enrichment hooks.
157
- */
158
- export type ModelConfig<EnrichmentType = undefined> = {
159
- id: string;
160
- type: 'model';
161
- transform: ({ context, refName, variant }: TransformModelArgs) => void;
162
- /**
163
- * Optional capability gate, evaluated by the engine before `include` /
164
- * `skip`. A model whose predicate returns `false` is recorded `notSupported`
165
- * and its `transform` is skipped. Absent → treated as `() => true` (every
166
- * model supported). {@link toModelEntry} still defaults it for built configs,
167
- * but a hand-constructed config may omit it.
168
- */
169
- isSupported?: ({ context, refName }: IsSupportedModelArgs) => boolean;
170
- toPreviewModule?: ({ context, refName, variant }: ToModelPreviewModuleArgs) => PreviewModule;
171
- toMappingModule?: ({ context, refName, variant }: ToModelMappingArgs) => MappingModule;
172
- toEnrichmentSchema: () => v.GenericSchema<EnrichmentType>;
173
- toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(refName: RefName) => EnrichmentRequest<RequestedEnrichment> | undefined;
174
- /**
175
- * Optional: compute the DEFAULT enrichment values for a model from its schema
176
- * — the seed the CMS persists and the user then edits. The pipeline
177
- * counterpart of the projection base's static of the same name; a generator
178
- * forwards `MyProjection.toEnrichmentDefaults` here so the seeding pass can
179
- * reach it via the generator-config map. Returns the `{ subject, generator,
180
- * stack }` umbrella, or `undefined` when no defaults are advertised.
181
- */
182
- toEnrichmentDefaults?: ({ refName, context, variant }: ToModelEnrichmentsArgs) => EnrichmentType | undefined;
183
- };
184
134
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AACjC,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE;;;;;;GAMG;AACH,MAAM,MAAM,8BAA8B,CAAC,cAAc,GAAG,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AE,OAAO,EAAE,mBAAmB,KAAK,cAAc,CAAA;IACpF,YAAY,EAAE,CAAC,IAAI,EAAE,qBAAqB,CAAC,cAAc,CAAC,KAAK,MAAM,CAAA;IACrE,aAAa,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,sBAAsB,KAAK,cAAc,CAAA;IACxF;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAA;IACrD,eAAe,EAAE,eAAe,CAAA;IAChC;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,cAAc,CAAA;CAEnD,GAAG,QAAQ,CAAA"}
@@ -15,8 +15,10 @@ type CreateGqlOperationArgs<V extends GeneratedValue, EnrichmentType = undefined
15
15
  * peer's enrichment for this variant, asserts the variant exists
16
16
  * (or is the default `'main'` which is always permitted), and
17
17
  * threads it into the projection's `ContentSettings`.
18
+ * Optional — omitting it means `'main'`, so variants-unaware
19
+ * callers keep working unchanged.
18
20
  */
19
- variant: string;
21
+ variant?: string;
20
22
  };
21
23
  /**
22
24
  * Driver for the GraphQL operation insertion lifecycle.
@@ -1 +1 @@
1
- {"version":3,"file":"GqlOperationDriver.d.ts","sourceRoot":"","sources":["../../../../src/dsl/operation/gql/GqlOperationDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAI/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAM5E,KAAK,sBAAsB,CAAC,CAAC,S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normalize } from '../../../deps/jsr.io/@std/path/1.1.4/normalize.js';
1
+ import { normalize } from '../../../deps/jsr.io/@std/path/1.1.6/normalize.js';
2
2
  import { toGqlOperationGeneratorKey } from '../../GeneratorKeys.js';
3
3
  import { DEFAULT_VARIANT } from '../../../types/Variant.js';
4
4
  import get from 'lodash-es/get.js';
@@ -12,7 +12,7 @@ import get from 'lodash-es/get.js';
12
12
  * into `destinationPath` if it differs from the projection's `exportPath`.
13
13
  */
14
14
  export class GqlOperationDriver {
15
- constructor({ context, projection, operation, destinationPath, noExport, variant }) {
15
+ constructor({ context, projection, operation, destinationPath, noExport, variant = DEFAULT_VARIANT }) {
16
16
  Object.defineProperty(this, "context", {
17
17
  enumerable: true,
18
18
  configurable: true,
@@ -73,7 +73,7 @@ export class GqlOperationDriver {
73
73
  operation,
74
74
  variant
75
75
  });
76
- assertPeerSupported({ context, projection, operation });
76
+ assertPeerSupported({ context, projection, operation, variant });
77
77
  this.settings = this.context.toOperationContentSettings({
78
78
  operation,
79
79
  projection,
@@ -164,7 +164,12 @@ const assertPeerVariantExists = ({ context, generatorId, operation, variant }) =
164
164
  if (variant === DEFAULT_VARIANT) {
165
165
  return;
166
166
  }
167
- const opEnrichments = get(context.settings, ['enrichments', generatorId, operation.rootKind, operation.fieldName]);
167
+ const opEnrichments = get(context.settings, [
168
+ 'enrichments',
169
+ generatorId,
170
+ operation.rootKind,
171
+ operation.fieldName
172
+ ]);
168
173
  const operationLabel = `${operation.rootKind} ${operation.fieldName}`;
169
174
  if (opEnrichments === null || opEnrichments === undefined) {
170
175
  throw new Error(`[${generatorId}] Cannot insert variant '${variant}' for '${operationLabel}' — ` +
@@ -191,11 +196,9 @@ const assertPeerVariantExists = ({ context, generatorId, operation, variant }) =
191
196
  * `GenerateContext`'s per-item `try/catch`. A peer with no static
192
197
  * `isSupported` is treated as supporting every operation.
193
198
  */
194
- const assertPeerSupported = ({ context, projection, operation }) => {
195
- if (typeof projection.isSupported !== 'function') {
196
- return;
197
- }
198
- if (!projection.isSupported({ operation, context })) {
199
+ const assertPeerSupported = ({ context, projection, operation, variant }) => {
200
+ const isSupported = projection.isSupported ?? (() => true);
201
+ if (!isSupported({ operation, context, variant })) {
199
202
  const operationLabel = `${operation.rootKind} ${operation.fieldName}`;
200
203
  throw new Error(`[${projection.id}] Cannot insert '${operationLabel}' — peer generator ` +
201
204
  `does not support this operation (isSupported returned false).`);
@@ -1,8 +1,8 @@
1
- import * as v from 'valibot';
1
+ import type * as v from 'valibot';
2
2
  import type { GqlOperation } from '../../../gql/operation/GqlOperation.js';
3
3
  import type { EnrichmentRequest } from '../../../types/EnrichmentRequest.js';
4
- import type { IsSupportedGqlOperationArgs, ToGqlOperationPreviewModuleArgs, ToGqlOperationMappingArgs, TransformGqlOperationArgs, IsSupportedGqlOperationConfigArgs } from './types.js';
5
- import type { MappingModule, PreviewModule } from '../../../types/Preview.js';
4
+ import type { IsSupportedGqlOperationArgs, ToGqlOperationPreviewModuleArgs, TransformGqlOperationArgs } from './types.js';
5
+ import type { PreviewModule } from '../../../types/Preview.js';
6
6
  /**
7
7
  * Configuration arguments for creating GraphQL operation generator entries.
8
8
  *
@@ -15,9 +15,23 @@ export type ToGqlOperationConfigArgs<EnrichmentType = undefined> = {
15
15
  id: string;
16
16
  transform: ({ context, operation, variant }: TransformGqlOperationArgs) => void;
17
17
  toEnrichmentSchema: () => v.GenericSchema<EnrichmentType>;
18
- isSupported?: ({ context, operation }: IsSupportedGqlOperationConfigArgs<EnrichmentType>) => boolean;
18
+ isSupported?: (args: IsSupportedGqlOperationArgs) => boolean;
19
+ /**
20
+ * Optional: whether this generator entry supports variants. Defaults to a
21
+ * function returning `false` when omitted.
22
+ */
23
+ supportsVariant?: () => boolean;
24
+ toPreviewModule?: ({ context, operation }: ToGqlOperationPreviewModuleArgs) => PreviewModule;
25
+ toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(operation: GqlOperation) => EnrichmentRequest<RequestedEnrichment> | undefined;
26
+ };
27
+ export type GqlOperationEntry<EnrichmentType = undefined> = {
28
+ id: string;
29
+ type: 'gqlOperation';
30
+ transform: ({ context, operation, variant }: TransformGqlOperationArgs) => void;
31
+ toEnrichmentSchema: () => v.GenericSchema<EnrichmentType>;
32
+ isSupported: (args: IsSupportedGqlOperationArgs) => boolean;
33
+ supportsVariant: () => boolean;
19
34
  toPreviewModule?: ({ context, operation }: ToGqlOperationPreviewModuleArgs) => PreviewModule;
20
- toMappingModule?: ({ context, operation }: ToGqlOperationMappingArgs) => MappingModule;
21
35
  toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(operation: GqlOperation) => EnrichmentRequest<RequestedEnrichment> | undefined;
22
36
  };
23
37
  /**
@@ -31,14 +45,5 @@ export type ToGqlOperationConfigArgs<EnrichmentType = undefined> = {
31
45
  * @param config - Configuration object defining operation behavior
32
46
  * @returns Configured operation generator entry ready for pipeline integration
33
47
  */
34
- export declare const toGqlOperationEntry: <EnrichmentType = undefined>({ id, transform, toEnrichmentSchema, isSupported, toPreviewModule, toMappingModule, toEnrichmentRequest }: ToGqlOperationConfigArgs<EnrichmentType>) => {
35
- id: string;
36
- type: "gqlOperation";
37
- transform: ({ context, operation, variant }: TransformGqlOperationArgs) => void;
38
- toEnrichmentSchema: () => v.GenericSchema<EnrichmentType>;
39
- isSupported: ({ context, operation }: IsSupportedGqlOperationArgs) => boolean;
40
- toPreviewModule?: ({ context, operation }: ToGqlOperationPreviewModuleArgs) => PreviewModule;
41
- toMappingModule?: ({ context, operation }: ToGqlOperationMappingArgs) => MappingModule;
42
- toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(operation: GqlOperation) => EnrichmentRequest<RequestedEnrichment> | undefined;
43
- };
48
+ export declare const toGqlOperationEntry: <EnrichmentType = undefined>({ id, transform, toEnrichmentSchema, isSupported, supportsVariant, toPreviewModule, toEnrichmentRequest }: ToGqlOperationConfigArgs<EnrichmentType>) => GqlOperationEntry<EnrichmentType>;
44
49
  //# sourceMappingURL=toGqlOperationE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AAE,2GAQ7D,wBAAwB,CAAC,cAAc,CAAC,KAAG,iBAAiB,CAAC,cAAc,CAW7E,CAAA"}
@@ -1,6 +1,3 @@
1
- import * as v from 'valibot';
2
- import { GENERATOR_ENRICHMENT_KEY, STACK_ENRICHMENT_KEY } from '../../../types/Enrichments.js';
3
- import get from 'lodash-es/get.js';
4
1
  /**
5
2
  * Creates a configured GraphQL operation generator entry.
6
3
  *
@@ -12,34 +9,15 @@ import get from 'lodash-es/get.js';
12
9
  * @param config - Configuration object defining operation behavior
13
10
  * @returns Configured operation generator entry ready for pipeline integration
14
11
  */
15
- export const toGqlOperationEntry = ({ id, transform, toEnrichmentSchema, isSupported, toPreviewModule, toMappingModule, toEnrichmentRequest }) => {
12
+ export const toGqlOperationEntry = ({ id, transform, toEnrichmentSchema, isSupported, supportsVariant, toPreviewModule, toEnrichmentRequest }) => {
16
13
  return {
17
14
  id,
18
15
  type: 'gqlOperation',
19
16
  transform,
20
17
  toEnrichmentSchema,
21
- isSupported: ({ context, operation, variant }) => {
22
- if (!isSupported) {
23
- return true;
24
- }
25
- // Assemble the `{ subject, generator, stack }` enrichment umbrella and
26
- // parse it cast-free — see the OAS-side shim for the rationale. Subject
27
- // is variant-scoped (`[id][rootKind][fieldName][variant]`); generator
28
- // and stack are run-constants.
29
- const raw = {
30
- subject: get(context.settings, ['enrichments', id, operation.rootKind, operation.fieldName, variant]),
31
- generator: get(context.settings, ['enrichments', id, GENERATOR_ENRICHMENT_KEY]),
32
- stack: get(context.settings, ['enrichments', STACK_ENRICHMENT_KEY])
33
- };
34
- return isSupported({
35
- context,
36
- operation,
37
- enrichments: v.parse(toEnrichmentSchema(), raw),
38
- variant
39
- });
40
- },
18
+ isSupported: isSupported ?? (() => true),
19
+ supportsVariant: supportsVariant ?? (() => false),
41
20
  toPreviewModule,
42
- toMappingModule,
43
21
  toEnrichmentRequest
44
22
  };
45
23
  };
@@ -2,7 +2,7 @@ import type { GenerateContextType } from '../../../context/generateTypes.js';
2
2
  import type { InsertOperationOptions, InsertModelOptions, InsertNormalizedModelArgs, InsertNormalizedModelReturn } from '../../../context/generateTypes.js';
3
3
  import type { GqlOperation } from '../../../gql/operation/GqlOperation.js';
4
4
  import type { ContentSettings } from '../../ContentSettings.js';
5
- import type { Lang, LangSnippetConstructor } from '../../Lang.js';
5
+ import type { LangSnippetConstructor } from '../../Lang.js';
6
6
  import type { IdentifierType } from '../../IdentifierType.js';
7
7
  import type { GeneratedValue } from '../../GeneratedValue.js';
8
8
  import type { Inserted } from '../../Inserted.js';
@@ -17,20 +17,21 @@ import * as v from 'valibot';
17
17
  * Configuration for {@link toGqlOperationProjectionBase}.
18
18
  *
19
19
  * Generic over the language `L`: a language veneer parameterizes this config
20
- * (`GqlOperationProjectionBaseConfig<E, KtLang>`) so `toIdentifierType`'s
21
- * return tightens to that language's `IdentifierType<L>` — no recast.
20
+ * (`GqlOperationProjectionBaseConfig<E, KtIdentifierType>`) so
21
+ * `toIdentifierType`'s return tightens to that language's `type` vocabulary —
22
+ * no recast.
22
23
  */
23
- export type GqlOperationProjectionBaseConfig<EnrichmentType = undefined, L extends Lang = Lang> = {
24
+ export type GqlOperationProjectionBaseConfig<EnrichmentType = undefined, IdType extends IdentifierType = IdentifierType> = {
24
25
  id: string;
25
26
  /** Pure: the cache-key name (the cache-check path runs this). */
26
27
  toIdentifierName: (args: ToGqlOperationIdentifierNameArgs<EnrichmentType>) => string;
27
28
  /**
28
29
  * Context-aware, overridable: the non-`name` parts of the identifier,
29
30
  * derived from the operation/schema. Runs only on cache-miss. Returns this
30
- * language's `IdentifierType<L>` (the loose `kind: string` when `L = Lang`);
31
- * the tightening rides the type argument, replacing the old veneer recast.
31
+ * language's `XxIdentifierType` (`IdType`; the loose `kind: string` by
32
+ * default); the tightening rides the type argument.
32
33
  */
33
- toIdentifierType: (operation: GqlOperation, context: GenerateContextType) => IdentifierType<L>;
34
+ toIdentifierType: (operation: GqlOperation, context: GenerateContextType) => IdType;
34
35
  toExportPath: (args: ToGqlOperationExportPathArgs<EnrichmentType>) => string;
35
36
  /**
36
37
  * Required composite schema for the `{ subject, generator, stack }`
@@ -77,7 +78,7 @@ type ToEnrichmentsArgs = {
77
78
  * `GqlOperationProjectionBase` lives here now, because the base class is no
78
79
  * longer statically known.
79
80
  */
80
- export declare const toGqlOperationProjectionBase: <EnrichmentType = undefined, L extends Lang = Lang>(base: LangSnippetConstructor<L>, config: GqlOperationProjectionBaseConfig<EnrichmentType, L>) => {
81
+ export declare const toGqlOperationProjectionBase: <EnrichmentType = undefined, IdType extends IdentifierType = IdentifierType>(base: LangSnippetConstructor, config: GqlOperationProjectionBaseConfig<EnrichmentType, IdType>) => {
81
82
  new (args: GqlOperationProjectionConstructorArgs<EnrichmentType>): {
82
83
  settings: ContentSettings<EnrichmentType>;
83
84
  operation: GqlOperation;
@@ -115,14 +116,14 @@ export declare const toGqlOperationProjectionBase: <EnrichmentType = undefined,
115
116
  id: string;
116
117
  type: "gqlOperation";
117
118
  toIdentifierName: (args: ToGqlOperationIdentifierNameArgs<EnrichmentType>) => string;
118
- toIdentifierType: (operation: GqlOperation, context: GenerateContextType) => IdentifierType<L>;
119
+ toIdentifierType: (operation: GqlOperation, context: GenerateContextType) => IdType;
119
120
  toExportPath: (args: ToGqlOperationExportPathArgs<EnrichmentType>) => string;
120
121
  isSupported: (args: {
121
122
  operation: GqlOperation;
122
123
  context: GenerateContextType;
123
124
  }) => boolean;
124
125
  toEnrichments: ({ operation, context, variant }: ToEnrichmentsArgs) => EnrichmentType;
125
- lang: L;
126
+ lang: import("../../Lang.js").Lang;
126
127
  };
127
128
  export {};
128
129
  //# sourceMappingURL=toGqlOperationProjectionBase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toGqlOperationProjectionBase.d.ts","sourceRoot":"","sources":["../../../../src/dsl/operation/gql/toGqlOperationProjectionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAC5E,OAAO,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id][_generator]`, `[_stack]`). The required composite
150
150
  // schema parses the raw umbrella once — typed, cast-free.
151
151
  const raw = {
152
- subject: get(context.settings, ['enrichments', config.id, operation.rootKind, operation.fieldName, variant]),
152
+ subject: get(context.settings, [
153
+ 'enrichments',
154
+ config.id,
155
+ operation.rootKind,
156
+ operation.fieldName,
157
+ variant
158
+ ]),
153
159
  generator: get(context.settings, ['enrichments', config.id, GENERATOR_ENRICHMENT_KEY]),
154
160
  stack: get(context.settings, ['enrichments', STACK_ENRICHMENT_KEY])
155
161
  };
@@ -4,9 +4,6 @@ import type { ContentSettings } from '../../ContentSettings.js';
4
4
  import type { GenerateContextType } from '../../../context/generateTypes.js';
5
5
  import type { IdentifierType } from '../../IdentifierType.js';
6
6
  import type { GeneratedValue } from '../../GeneratedValue.js';
7
- import type { EnrichmentRequest } from '../../../types/EnrichmentRequest.js';
8
- import type * as v from 'valibot';
9
- import type { MappingModule, PreviewModule } from '../../../types/Preview.js';
10
7
  /**
11
8
  * External constructor signature for a GraphQL operation projection class.
12
9
  *
@@ -32,13 +29,6 @@ export type TransformGqlOperationArgs = {
32
29
  export type WithTransformGqlOperation = {
33
30
  transformOperation: (operation: GqlOperation) => void;
34
31
  };
35
- export type IsSupportedGqlOperationConfigArgs<EnrichmentType = undefined> = {
36
- context: GenerateContextType;
37
- operation: GqlOperation;
38
- enrichments: EnrichmentType;
39
- /** Operation variant being probed (see {@link Variant}) */
40
- variant: string;
41
- };
42
32
  export type IsSupportedGqlOperationArgs = {
43
33
  context: GenerateContextType;
44
34
  operation: GqlOperation;
@@ -119,28 +109,6 @@ export type GqlOperationProjection<V extends GeneratedValue, EnrichmentType = un
119
109
  * projection may omit it, in which case it is treated as supporting
120
110
  * every operation.
121
111
  */
122
- isSupported?: (args: {
123
- operation: GqlOperation;
124
- context: GenerateContextType;
125
- }) => boolean;
112
+ isSupported?: (args: IsSupportedGqlOperationArgs) => boolean;
126
113
  } & Function;
127
- /**
128
- * Pipeline-side configuration for a GraphQL operation projection (built by
129
- * `toGqlOperationEntry`).
130
- */
131
- export type GqlOperationConfig<EnrichmentType = undefined> = {
132
- id: string;
133
- type: 'gqlOperation';
134
- transform: ({ context, operation, variant }: TransformGqlOperationArgs) => void;
135
- toEnrichmentSchema: () => v.GenericSchema<EnrichmentType>;
136
- /**
137
- * Optional capability gate, evaluated before `include` / `skip`. Absent →
138
- * treated as `() => true` (every operation supported). `toGqlOperationEntry`
139
- * defaults it for built configs; a hand-constructed config may omit it.
140
- */
141
- isSupported?: ({ context, operation }: IsSupportedGqlOperationArgs) => boolean;
142
- toPreviewModule?: ({ context, operation }: ToGqlOperationPreviewModuleArgs) => PreviewModule;
143
- toMappingModule?: ({ context, operation }: ToGqlOperationMappingArgs) => MappingModule;
144
- toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(operation: GqlOperation) => EnrichmentRequest<RequestedEnrichment> | undefined;
145
- };
146
114
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/dsl/operation/gql/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AACjC,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE7E;;;;;GAKG;AACH,MAAM,M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M,MAAM,4BAA4B,CAAC,cAAc,GAAG,SAAS,IAAI;IACrE,SAAS,EAAE,YAAY,CAAA;IACvB,WAAW,EAAE,cAAc,CAAA;IAC3B,kFAAkF;IAClF,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS,IAAI;IACzF,SAAS,EAAE,CAAC,CAAA;CACb,GAAG;IACF,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,qCAAqC,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;IAChG,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,cAAc,CAAA;IACpB;;;;;OAKG;IACH,IAAI,EAAE,IAAI,CAAA;IACV,gCAAgC;IAChC,gBAAgB,EAAE,CAAC,IAAI,EAAE,gCAAgC,CAAC,cAAc,CAAC,KAAK,MAAM,CAAA;IACpF;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,mBAAmB,KAAK,cAAc,CAAA;IAC3F,YAAY,EAAE,CAAC,IAAI,EAAE,4BAA4B,CAAC,cAAc,CAAC,KAAK,MAAM,CAAA;IAC5E,aAAa,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,6BAA6B,KAAK,cAAc,CAAA;IACxF;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,OAAO,CAAA;CAE7D,GAAG,QAAQ,CAAA"}
@@ -15,8 +15,10 @@ type CreateOperationArgs<V extends GeneratedValue, EnrichmentType = undefined> =
15
15
  * peer's enrichment for this variant, asserts the variant exists
16
16
  * (or is the default `'main'` which is always permitted), and
17
17
  * threads it into the projection's `ContentSettings`.
18
+ * Optional — omitting it means `'main'`, so variants-unaware
19
+ * callers keep working unchanged.
18
20
  */
19
- variant: string;
21
+ variant?: string;
20
22
  };
21
23
  /**
22
24
  * Driver for the OAS operation insertion lifecycle.
@@ -1 +1 @@
1
- {"version":3,"file":"OasOperationDriver.d.ts","sourceRoot":"","sources":["../../../../src/dsl/operation/oas/OasOperationDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAI/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAK5E,KAAK,mBAAmB,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS,IAAI;IAC/E,OAAO,EAAE,mBAAmB,CAAA;IAC5B,UAAU,EAAE,sBAAsB,CAAC,CAAC,EAAE,cAAc,CAAC,CAAA;IACrD,SAAS,EAAE,YAAY,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAWD;;;;;;;;GAQG;AACH,qBAAa,kBAAkB,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS;IAClF,OAAO,EAAE,mBAAmB,CAAA;IAC5B,UAAU,EAAE,sBAAsB,CAAC,CAAC,EAAE,cAAc,CAAC,CAAA;IACrD,SAAS,EAAE,YAAY,CAAA;IACvB,QAAQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CA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AAC,EAAE,cAAc,CAAC,CAAA;IACrD,SAAS,EAAE,YAAY,CAAA;IACvB,QAAQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;gBAEH,EACV,OAAO,EACP,UAAU,EACV,SAAS,EACT,eAAe,EACf,QAAQ,EACR,OAAyB,EAC1B,EAAE,mBAAmB,CAAC,CAAC,EAAE,cAAc,CAAC;IA0BzC,OAAO,CAAC,KAAK;IAsBb;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,aAAa;IAgCrB,OAAO,CAAC,gBAAgB;CAsBzB"}
@@ -1,4 +1,4 @@
1
- import { normalize } from '../../../deps/jsr.io/@std/path/1.1.4/normalize.js';
1
+ import { normalize } from '../../../deps/jsr.io/@std/path/1.1.6/normalize.js';
2
2
  import { toOasOperationGeneratorKey } from '../../GeneratorKeys.js';
3
3
  import { DEFAULT_VARIANT } from '../../../types/Variant.js';
4
4
  import get from 'lodash-es/get.js';
@@ -12,7 +12,7 @@ import get from 'lodash-es/get.js';
12
12
  * from the projection's `exportPath`.
13
13
  */
14
14
  export class OasOperationDriver {
15
- constructor({ context, projection, operation, destinationPath, noExport, variant }) {
15
+ constructor({ context, projection, operation, destinationPath, noExport, variant = DEFAULT_VARIANT }) {
16
16
  Object.defineProperty(this, "context", {
17
17
  enumerable: true,
18
18
  configurable: true,
@@ -73,7 +73,7 @@ export class OasOperationDriver {
73
73
  operation,
74
74
  variant
75
75
  });
76
- assertPeerSupported({ context, projection, operation });
76
+ assertPeerSupported({ context, projection, operation, variant });
77
77
  this.settings = this.context.toOperationContentSettings({
78
78
  operation,
79
79
  projection,
@@ -171,7 +171,12 @@ const assertPeerVariantExists = ({ context, generatorId, operation, variant }) =
171
171
  if (variant === DEFAULT_VARIANT) {
172
172
  return;
173
173
  }
174
- const opEnrichments = get(context.settings, ['enrichments', generatorId, operation.path, operation.method]);
174
+ const opEnrichments = get(context.settings, [
175
+ 'enrichments',
176
+ generatorId,
177
+ operation.path,
178
+ operation.method
179
+ ]);
175
180
  const operationLabel = `${operation.method.toUpperCase()} ${operation.path}`;
176
181
  if (opEnrichments === null || opEnrichments === undefined) {
177
182
  throw new Error(`[${generatorId}] Cannot insert variant '${variant}' for '${operationLabel}' — ` +
@@ -208,11 +213,9 @@ const assertPeerVariantExists = ({ context, generatorId, operation, variant }) =
208
213
  * supporting every operation: `toOasOperationProjectionBase` defaults
209
214
  * it to `() => true`, and a hand-rolled projection may omit it.
210
215
  */
211
- const assertPeerSupported = ({ context, projection, operation }) => {
212
- if (typeof projection.isSupported !== 'function') {
213
- return;
214
- }
215
- if (!projection.isSupported({ operation, context })) {
216
+ const assertPeerSupported = ({ context, projection, operation, variant }) => {
217
+ const isSupported = projection.isSupported ?? (() => true);
218
+ if (!isSupported({ operation, context, variant })) {
216
219
  const operationLabel = `${operation.method.toUpperCase()} ${operation.path}`;
217
220
  throw new Error(`[${projection.id}] Cannot insert '${operationLabel}' — peer generator ` +
218
221
  `does not support this operation (isSupported returned false).`);