@astrale-os/kernel-dsl 0.2.0-beta.4 → 0.2.0-beta.40

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 (943) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -1
  3. package/dist/upgrade/contract.d.ts +0 -1
  4. package/dist/upgrade/contract.js +0 -1
  5. package/dist/upgrade/index.d.ts +0 -1
  6. package/dist/upgrade/index.js +0 -1
  7. package/dist/v1/addressing/class-key.d.ts +12 -0
  8. package/dist/v1/addressing/class-key.js +39 -0
  9. package/dist/v1/addressing/definition-ref.d.ts +28 -0
  10. package/dist/v1/addressing/definition-ref.js +63 -0
  11. package/dist/v1/addressing/domain-dependency.d.ts +18 -0
  12. package/dist/v1/addressing/domain-dependency.js +6 -0
  13. package/dist/v1/addressing/index.d.ts +10 -4
  14. package/dist/v1/addressing/index.js +5 -3
  15. package/dist/v1/addressing/key.d.ts +14 -16
  16. package/dist/v1/addressing/key.js +24 -34
  17. package/dist/v1/addressing/method-address.d.ts +9 -0
  18. package/dist/v1/addressing/method-address.js +1 -0
  19. package/dist/v1/addressing/method-key.d.ts +15 -0
  20. package/dist/v1/addressing/method-key.js +60 -0
  21. package/dist/v1/addressing/ordering.d.ts +6 -0
  22. package/dist/v1/addressing/ordering.js +20 -0
  23. package/dist/v1/addressing/patterns.d.ts +12 -3
  24. package/dist/v1/addressing/patterns.js +11 -2
  25. package/dist/v1/addressing/property-key.d.ts +10 -15
  26. package/dist/v1/addressing/property-key.js +24 -15
  27. package/dist/v1/addressing/revision.d.ts +8 -0
  28. package/dist/v1/addressing/revision.js +8 -0
  29. package/dist/v1/builder/callable/authoring.d.ts +137 -0
  30. package/dist/v1/builder/callable/authoring.js +80 -0
  31. package/dist/v1/builder/class/authoring.d.ts +400 -0
  32. package/dist/v1/builder/class/authoring.js +134 -0
  33. package/dist/v1/builder/class/property.d.ts +58 -0
  34. package/dist/v1/builder/class/property.js +57 -0
  35. package/dist/v1/builder/core/authoring.d.ts +47 -0
  36. package/dist/v1/builder/core/authoring.js +39 -0
  37. package/dist/v1/builder/index.d.ts +26 -22
  38. package/dist/v1/builder/index.js +11 -11
  39. package/dist/v1/builder/lowering/callable.d.ts +24 -0
  40. package/dist/v1/builder/lowering/callable.js +149 -0
  41. package/dist/v1/builder/lowering/class.d.ts +22 -0
  42. package/dist/v1/builder/lowering/class.js +134 -0
  43. package/dist/v1/builder/lowering/core-properties.d.ts +10 -0
  44. package/dist/v1/builder/lowering/core-properties.js +76 -0
  45. package/dist/v1/builder/lowering/core.d.ts +22 -0
  46. package/dist/v1/builder/lowering/core.js +50 -0
  47. package/dist/v1/builder/lowering/policy.d.ts +16 -0
  48. package/dist/v1/builder/lowering/policy.js +60 -0
  49. package/dist/v1/builder/lowering/schema/capture.d.ts +4 -0
  50. package/dist/v1/builder/lowering/schema/capture.js +75 -0
  51. package/dist/v1/builder/lowering/schema/compile.d.ts +10 -0
  52. package/dist/v1/builder/lowering/schema/compile.js +80 -0
  53. package/dist/v1/builder/lowering/schema/context.d.ts +49 -0
  54. package/dist/v1/builder/lowering/schema/context.js +277 -0
  55. package/dist/v1/builder/lowering/schema/ownership.d.ts +8 -0
  56. package/dist/v1/builder/lowering/schema/ownership.js +30 -0
  57. package/dist/v1/builder/lowering/value/compile.d.ts +15 -0
  58. package/dist/v1/builder/lowering/value/compile.js +143 -0
  59. package/dist/v1/builder/lowering/value/path.d.ts +3 -0
  60. package/dist/v1/builder/lowering/value/path.js +20 -0
  61. package/dist/v1/builder/lowering/value/zod.d.ts +32 -0
  62. package/dist/v1/builder/lowering/value/zod.js +342 -0
  63. package/dist/v1/builder/lowering/view.d.ts +11 -0
  64. package/dist/v1/builder/lowering/view.js +27 -0
  65. package/dist/v1/builder/policy/authoring.d.ts +61 -0
  66. package/dist/v1/builder/policy/authoring.js +117 -0
  67. package/dist/v1/builder/schema/define.d.ts +11 -0
  68. package/dist/v1/builder/schema/define.js +5 -0
  69. package/dist/v1/builder/schema/diagnostic.d.ts +16 -0
  70. package/dist/v1/builder/schema/diagnostic.js +31 -0
  71. package/dist/v1/builder/schema/handle.d.ts +7 -0
  72. package/dist/v1/builder/schema/handle.js +14 -0
  73. package/dist/v1/builder/schema/input.d.ts +15 -0
  74. package/dist/v1/builder/schema/input.js +1 -0
  75. package/dist/v1/builder/schema/lazy.d.ts +2 -0
  76. package/dist/v1/builder/schema/lazy.js +13 -0
  77. package/dist/v1/builder/schema/projection.d.ts +370 -0
  78. package/dist/v1/builder/schema/projection.js +1 -0
  79. package/dist/v1/builder/value/full-match.d.ts +4 -0
  80. package/dist/v1/builder/value/full-match.js +11 -0
  81. package/dist/v1/builder/value/path-metadata.d.ts +4 -0
  82. package/dist/v1/builder/value/path-metadata.js +7 -0
  83. package/dist/v1/builder/value/path.d.ts +8 -0
  84. package/dist/v1/builder/value/path.js +11 -0
  85. package/dist/v1/builder/value/schema.d.ts +16 -0
  86. package/dist/v1/builder/value/schema.js +10 -0
  87. package/dist/v1/builder/view/authoring.d.ts +17 -0
  88. package/dist/v1/builder/view/authoring.js +16 -0
  89. package/dist/v1/bundle/codec.d.ts +0 -1
  90. package/dist/v1/bundle/codec.js +36 -19
  91. package/dist/v1/bundle/create.d.ts +3 -0
  92. package/dist/v1/bundle/create.js +5 -0
  93. package/dist/v1/bundle/diagnostic.d.ts +10 -0
  94. package/dist/v1/bundle/diagnostic.js +17 -0
  95. package/dist/v1/bundle/index.d.ts +3 -2
  96. package/dist/v1/bundle/index.js +2 -2
  97. package/dist/v1/bundle/model.d.ts +1 -4
  98. package/dist/v1/bundle/model.js +0 -6
  99. package/dist/v1/bundle/structure.d.ts +1 -2
  100. package/dist/v1/bundle/structure.js +6 -6
  101. package/dist/v1/bundle/transport.d.ts +8 -0
  102. package/dist/v1/bundle/transport.js +7 -0
  103. package/dist/v1/compiled/admission/accept.d.ts +3 -0
  104. package/dist/v1/compiled/admission/accept.js +1050 -0
  105. package/dist/v1/compiled/admission/revision.d.ts +4 -0
  106. package/dist/v1/compiled/admission/revision.js +79 -0
  107. package/dist/v1/compiled/admission/semantics.d.ts +7 -0
  108. package/dist/v1/compiled/admission/semantics.js +1186 -0
  109. package/dist/v1/compiled/codec/json.d.ts +3 -0
  110. package/dist/v1/compiled/codec/json.js +9 -0
  111. package/dist/v1/compiled/compiler/compile.d.ts +4 -0
  112. package/dist/v1/compiled/compiler/compile.js +140 -0
  113. package/dist/v1/compiled/diagnostic.d.ts +11 -0
  114. package/dist/v1/compiled/diagnostic.js +13 -0
  115. package/dist/v1/compiled/generated.d.ts +10 -0
  116. package/dist/v1/compiled/generated.js +15 -0
  117. package/dist/v1/compiled/index.d.ts +7 -0
  118. package/dist/v1/compiled/index.js +5 -0
  119. package/dist/v1/compiled/loader/index.d.ts +1 -0
  120. package/dist/v1/compiled/loader/index.js +1 -0
  121. package/dist/v1/compiled/loader/load.d.ts +18 -0
  122. package/dist/v1/compiled/loader/load.js +156 -0
  123. package/dist/v1/compiled/model/schema.d.ts +78 -0
  124. package/dist/v1/compiled/model/schema.js +1 -0
  125. package/dist/v1/domain/create.d.ts +8 -0
  126. package/dist/v1/domain/create.js +272 -0
  127. package/dist/v1/domain/index.d.ts +2 -0
  128. package/dist/v1/domain/index.js +1 -0
  129. package/dist/v1/domain/model/domain.d.ts +59 -0
  130. package/dist/v1/domain/model/domain.js +1 -0
  131. package/dist/v1/domain/model/input.d.ts +31 -0
  132. package/dist/v1/domain/model/input.js +1 -0
  133. package/dist/v1/domain/namespace/member-collection.d.ts +5 -0
  134. package/dist/v1/domain/namespace/member-collection.js +81 -0
  135. package/dist/v1/domain/projection/classes.d.ts +4 -0
  136. package/dist/v1/domain/projection/classes.js +175 -0
  137. package/dist/v1/domain/validation/create.d.ts +18 -0
  138. package/dist/v1/domain/validation/create.js +75 -0
  139. package/dist/v1/index.d.ts +15 -5
  140. package/dist/v1/index.js +7 -3
  141. package/dist/v1/language/callable/composition.d.ts +27 -0
  142. package/dist/v1/language/callable/composition.js +52 -0
  143. package/dist/v1/language/callable/executable.d.ts +6 -0
  144. package/dist/v1/language/callable/executable.js +4 -0
  145. package/dist/v1/language/callable/index.d.ts +2 -0
  146. package/dist/v1/language/callable/index.js +1 -0
  147. package/dist/v1/language/callable/model/callable.d.ts +46 -0
  148. package/dist/v1/language/callable/model/callable.js +3 -0
  149. package/dist/v1/language/callable/resolved.d.ts +79 -0
  150. package/dist/v1/language/callable/resolved.js +1 -0
  151. package/dist/v1/language/class/facets.d.ts +61 -0
  152. package/dist/v1/language/class/facets.js +1 -0
  153. package/dist/v1/language/class/index.d.ts +8 -0
  154. package/dist/v1/language/class/index.js +1 -0
  155. package/dist/v1/language/class/model/class.d.ts +37 -0
  156. package/dist/v1/language/class/model/class.js +1 -0
  157. package/dist/v1/language/class/model/data.d.ts +11 -0
  158. package/dist/v1/language/class/model/data.js +2 -0
  159. package/dist/v1/language/class/model/edge.d.ts +38 -0
  160. package/dist/v1/language/class/model/edge.js +1 -0
  161. package/dist/v1/language/class/model/property.d.ts +17 -0
  162. package/dist/v1/language/class/model/property.js +1 -0
  163. package/dist/v1/language/class/property-values.d.ts +15 -0
  164. package/dist/v1/language/class/property-values.js +33 -0
  165. package/dist/v1/language/class/resolved.d.ts +126 -0
  166. package/dist/v1/language/class/resolved.js +1 -0
  167. package/dist/v1/language/core/index.d.ts +2 -0
  168. package/dist/v1/language/core/index.js +1 -0
  169. package/dist/v1/language/core/model/core.d.ts +26 -0
  170. package/dist/v1/language/core/model/core.js +1 -0
  171. package/dist/v1/language/core/resolved.d.ts +25 -0
  172. package/dist/v1/language/core/resolved.js +1 -0
  173. package/dist/v1/language/definition/metadata.d.ts +12 -0
  174. package/dist/v1/language/definition/metadata.js +12 -0
  175. package/dist/v1/language/definition.d.ts +7 -0
  176. package/dist/v1/language/definition.js +1 -0
  177. package/dist/v1/language/index.d.ts +28 -0
  178. package/dist/v1/language/index.js +5 -0
  179. package/dist/v1/language/policy/analysis/branches.d.ts +20 -0
  180. package/dist/v1/language/policy/analysis/branches.js +174 -0
  181. package/dist/v1/language/policy/analysis/budgets.d.ts +16 -0
  182. package/dist/v1/language/policy/analysis/budgets.js +25 -0
  183. package/dist/v1/language/policy/index.d.ts +4 -0
  184. package/dist/v1/language/policy/index.js +2 -0
  185. package/dist/v1/language/policy/model/policy.d.ts +116 -0
  186. package/dist/v1/language/policy/model/policy.js +35 -0
  187. package/dist/v1/language/policy/normalization/normalize.d.ts +4 -0
  188. package/dist/v1/language/policy/normalization/normalize.js +275 -0
  189. package/dist/v1/language/policy/resolved.d.ts +9 -0
  190. package/dist/v1/language/policy/resolved.js +1 -0
  191. package/dist/v1/language/resolved.d.ts +10 -0
  192. package/dist/v1/language/resolved.js +1 -0
  193. package/dist/v1/language/state/index.d.ts +3 -0
  194. package/dist/v1/language/state/index.js +1 -0
  195. package/dist/v1/language/state/machine.d.ts +28 -0
  196. package/dist/v1/language/state/machine.js +40 -0
  197. package/dist/v1/language/state/topology.d.ts +14 -0
  198. package/dist/v1/language/state/topology.js +69 -0
  199. package/dist/v1/language/validation/diagnostic.d.ts +8 -0
  200. package/dist/v1/language/validation/diagnostic.js +3 -0
  201. package/dist/v1/language/value/compile/fields.d.ts +3 -0
  202. package/dist/v1/language/value/compile/fields.js +60 -0
  203. package/dist/v1/language/value/compile/load.d.ts +6 -0
  204. package/dist/v1/language/value/compile/load.js +62 -0
  205. package/dist/v1/language/value/compile/model.d.ts +42 -0
  206. package/dist/v1/language/value/compile/model.js +1 -0
  207. package/dist/v1/language/value/evaluate/assertions.d.ts +8 -0
  208. package/dist/v1/language/value/evaluate/assertions.js +71 -0
  209. package/dist/v1/language/value/evaluate/evaluator.d.ts +4 -0
  210. package/dist/v1/language/value/evaluate/evaluator.js +426 -0
  211. package/dist/v1/language/value/evaluate/preparation.d.ts +22 -0
  212. package/dist/v1/language/value/evaluate/preparation.js +126 -0
  213. package/dist/v1/language/value/evaluate/program.d.ts +3 -0
  214. package/dist/v1/language/value/evaluate/program.js +16 -0
  215. package/dist/v1/language/value/evaluate/types.d.ts +36 -0
  216. package/dist/v1/language/value/evaluate/types.js +9 -0
  217. package/dist/v1/language/value/evaluate/validate.d.ts +16 -0
  218. package/dist/v1/language/value/evaluate/validate.js +50 -0
  219. package/dist/v1/language/value/index.d.ts +11 -0
  220. package/dist/v1/language/value/index.js +8 -0
  221. package/dist/v1/language/value/model/blob.d.ts +33 -0
  222. package/dist/v1/language/value/model/blob.js +90 -0
  223. package/dist/v1/language/value/model/instant.d.ts +9 -0
  224. package/dist/v1/language/value/model/instant.js +37 -0
  225. package/dist/v1/language/value/model/object.d.ts +5 -0
  226. package/dist/v1/language/value/model/object.js +3 -0
  227. package/dist/v1/language/value/model/schema.d.ts +25 -0
  228. package/dist/v1/language/value/model/schema.js +11 -0
  229. package/dist/v1/language/value/ordering.d.ts +15 -0
  230. package/dist/v1/language/value/ordering.js +170 -0
  231. package/dist/v1/language/value/profile/canonicalize.d.ts +4 -0
  232. package/dist/v1/language/value/profile/canonicalize.js +130 -0
  233. package/dist/v1/language/value/profile/json.validate.d.ts +2 -0
  234. package/dist/v1/language/value/profile/json.validate.js +14 -0
  235. package/dist/v1/language/value/profile/meta-schema.compiled.d.ts +78 -0
  236. package/dist/v1/language/value/profile/meta-schema.compiled.js +2079 -0
  237. package/dist/v1/language/value/profile/meta-schema.d.ts +4 -0
  238. package/dist/v1/language/value/profile/meta-schema.js +19 -0
  239. package/dist/v1/language/value/profile/rules.d.ts +3 -0
  240. package/dist/v1/language/value/profile/rules.js +141 -0
  241. package/dist/v1/language/value/profile/validate.d.ts +4 -0
  242. package/dist/v1/language/value/profile/validate.js +39 -0
  243. package/dist/v1/language/value/profile/vocabulary.d.ts +2 -0
  244. package/dist/v1/language/value/profile/vocabulary.js +68 -0
  245. package/dist/v1/language/value/reference/closure.d.ts +11 -0
  246. package/dist/v1/language/value/reference/closure.js +51 -0
  247. package/dist/v1/language/value/reference/recursion.d.ts +5 -0
  248. package/dist/v1/language/value/reference/recursion.js +95 -0
  249. package/dist/v1/language/value/reference/references.d.ts +17 -0
  250. package/dist/v1/language/value/reference/references.js +45 -0
  251. package/dist/v1/language/value/reference/registry.d.ts +24 -0
  252. package/dist/v1/language/value/reference/registry.index.d.ts +14 -0
  253. package/dist/v1/language/value/reference/registry.index.js +76 -0
  254. package/dist/v1/language/value/reference/registry.js +1 -0
  255. package/dist/v1/language/value/regexp/ast.d.ts +21 -0
  256. package/dist/v1/language/value/regexp/ast.js +326 -0
  257. package/dist/v1/language/value/regexp/compile.d.ts +3 -0
  258. package/dist/v1/language/value/regexp/compile.js +138 -0
  259. package/dist/v1/language/value/regexp/lower.d.ts +3 -0
  260. package/dist/v1/language/value/regexp/lower.js +26 -0
  261. package/dist/v1/language/value/regexp/matcher.d.ts +10 -0
  262. package/dist/v1/language/value/regexp/matcher.js +207 -0
  263. package/dist/v1/language/value/regexp/pattern.d.ts +2 -0
  264. package/dist/v1/language/value/regexp/pattern.js +38 -0
  265. package/dist/v1/language/value/regexp/syntax.d.ts +2 -0
  266. package/dist/v1/language/value/regexp/syntax.js +5 -0
  267. package/dist/v1/language/value/syntax/full-match.d.ts +6 -0
  268. package/dist/v1/language/value/syntax/full-match.js +20 -0
  269. package/dist/v1/language/value/syntax/keywords.d.ts +3 -0
  270. package/dist/v1/language/value/syntax/keywords.js +20 -0
  271. package/dist/v1/language/value/syntax/node-path/schema.d.ts +5 -0
  272. package/dist/v1/language/value/syntax/node-path/schema.js +18 -0
  273. package/dist/v1/language/value/syntax/node-path/validate.d.ts +4 -0
  274. package/dist/v1/language/value/syntax/node-path/validate.js +78 -0
  275. package/dist/v1/language/value/syntax/pointer.d.ts +4 -0
  276. package/dist/v1/language/value/syntax/pointer.js +49 -0
  277. package/dist/v1/language/value/syntax/walk.d.ts +10 -0
  278. package/dist/v1/language/value/syntax/walk.js +53 -0
  279. package/dist/v1/language/view/index.d.ts +2 -0
  280. package/dist/v1/language/view/index.js +1 -0
  281. package/dist/v1/language/view/model/view.d.ts +11 -0
  282. package/dist/v1/language/view/model/view.js +1 -0
  283. package/dist/v1/language/view/resolved.d.ts +9 -0
  284. package/dist/v1/language/view/resolved.js +1 -0
  285. package/dist/v1/schema/admission/accept.d.ts +3 -0
  286. package/dist/v1/schema/admission/accept.js +26 -0
  287. package/dist/v1/schema/analysis/class.d.ts +63 -0
  288. package/dist/v1/schema/analysis/class.js +141 -0
  289. package/dist/v1/schema/canonical/domain.d.ts +2 -2
  290. package/dist/v1/schema/canonical/domain.digest.d.ts +1 -2
  291. package/dist/v1/schema/canonical/domain.digest.js +2 -6
  292. package/dist/v1/schema/canonical/domain.js +3 -224
  293. package/dist/v1/schema/canonical/freeze.d.ts +0 -1
  294. package/dist/v1/schema/canonical/freeze.js +0 -1
  295. package/dist/v1/schema/canonical/revision.d.ts +11 -0
  296. package/dist/v1/schema/canonical/revision.js +20 -0
  297. package/dist/v1/schema/codec/header.d.ts +17 -0
  298. package/dist/v1/schema/codec/header.js +26 -0
  299. package/dist/v1/schema/codec/schema.d.ts +5 -0
  300. package/dist/v1/schema/codec/schema.js +21 -0
  301. package/dist/v1/schema/compatibility/api.d.ts +2 -0
  302. package/dist/v1/schema/compatibility/api.js +1 -0
  303. package/dist/v1/schema/compatibility/comparators/callables.d.ts +27 -0
  304. package/dist/v1/schema/compatibility/comparators/callables.js +84 -0
  305. package/dist/v1/schema/compatibility/comparators/classes.d.ts +28 -0
  306. package/dist/v1/schema/compatibility/comparators/classes.js +96 -0
  307. package/dist/v1/schema/compatibility/comparators/index.d.ts +12 -0
  308. package/dist/v1/schema/compatibility/comparators/index.js +41 -0
  309. package/dist/v1/schema/compatibility/comparators/members.d.ts +4 -0
  310. package/dist/v1/schema/compatibility/comparators/members.js +49 -0
  311. package/dist/v1/schema/compatibility/comparators/values.d.ts +5 -0
  312. package/dist/v1/schema/compatibility/comparators/values.js +37 -0
  313. package/dist/v1/schema/compatibility/compare.d.ts +5 -0
  314. package/dist/v1/schema/compatibility/compare.js +23 -0
  315. package/dist/v1/schema/compatibility/context.d.ts +15 -0
  316. package/dist/v1/schema/compatibility/context.js +43 -0
  317. package/dist/v1/schema/compatibility/coordinate.d.ts +39 -0
  318. package/dist/v1/schema/compatibility/coordinate.js +38 -0
  319. package/dist/v1/schema/compatibility/diff.d.ts +12 -0
  320. package/dist/v1/schema/compatibility/diff.js +39 -0
  321. package/dist/v1/schema/compatibility/evidence.d.ts +5 -0
  322. package/dist/v1/schema/compatibility/evidence.js +51 -0
  323. package/dist/v1/schema/compatibility/fields.d.ts +186 -0
  324. package/dist/v1/schema/compatibility/fields.js +88 -0
  325. package/dist/v1/schema/compatibility/index.d.ts +8 -0
  326. package/dist/v1/schema/compatibility/index.js +4 -0
  327. package/dist/v1/schema/compatibility/legacy/index.d.ts +58 -0
  328. package/dist/v1/schema/compatibility/legacy/index.js +145 -0
  329. package/dist/v1/schema/compatibility/meaning/footprint.d.ts +7 -0
  330. package/dist/v1/schema/compatibility/meaning/footprint.js +57 -0
  331. package/dist/v1/schema/compatibility/meaning/index.d.ts +3 -0
  332. package/dist/v1/schema/compatibility/meaning/index.js +14 -0
  333. package/dist/v1/schema/compatibility/model.d.ts +96 -0
  334. package/dist/v1/schema/compatibility/model.js +1 -0
  335. package/dist/v1/schema/compatibility/references.d.ts +30 -0
  336. package/dist/v1/schema/compatibility/references.js +122 -0
  337. package/dist/v1/schema/compatibility/report.d.ts +26 -0
  338. package/dist/v1/schema/compatibility/report.js +100 -0
  339. package/dist/v1/schema/compatibility/scope.d.ts +27 -0
  340. package/dist/v1/schema/compatibility/scope.js +78 -0
  341. package/dist/v1/schema/compatibility/structure/index.d.ts +3 -0
  342. package/dist/v1/schema/compatibility/structure/index.js +16 -0
  343. package/dist/v1/schema/compatibility/structure/inheritance.d.ts +7 -0
  344. package/dist/v1/schema/compatibility/structure/inheritance.js +68 -0
  345. package/dist/v1/schema/compatibility/structure/requirements.d.ts +7 -0
  346. package/dist/v1/schema/compatibility/structure/requirements.js +70 -0
  347. package/dist/v1/schema/compatibility/subjects.d.ts +34 -0
  348. package/dist/v1/schema/compatibility/subjects.js +86 -0
  349. package/dist/v1/schema/dependency/lookup.d.ts +18 -0
  350. package/dist/v1/schema/dependency/lookup.js +31 -0
  351. package/dist/v1/schema/diagnostic.d.ts +7 -7
  352. package/dist/v1/schema/diagnostic.js +9 -9
  353. package/dist/v1/schema/fingerprint.d.ts +2 -0
  354. package/dist/v1/schema/fingerprint.js +1 -0
  355. package/dist/v1/schema/index.d.ts +27 -40
  356. package/dist/v1/schema/index.js +13 -18
  357. package/dist/v1/schema/model/format.d.ts +2 -0
  358. package/dist/v1/schema/model/format.js +2 -0
  359. package/dist/v1/schema/model/schema.d.ts +30 -0
  360. package/dist/v1/schema/model/schema.js +4 -0
  361. package/dist/v1/schema/normalization/domain.d.ts +2 -0
  362. package/dist/v1/schema/normalization/domain.js +232 -0
  363. package/dist/v1/schema/resolution/closure.d.ts +3 -4
  364. package/dist/v1/schema/resolution/closure.js +6 -7
  365. package/dist/v1/schema/resolution/context.d.ts +11 -12
  366. package/dist/v1/schema/resolution/context.js +82 -50
  367. package/dist/v1/schema/resolution/definition.index.d.ts +13 -35
  368. package/dist/v1/schema/resolution/definition.index.js +8 -18
  369. package/dist/v1/schema/resolution/domain.d.ts +4 -0
  370. package/dist/v1/schema/resolution/domain.js +120 -0
  371. package/dist/v1/schema/resolution/origins.d.ts +27 -14
  372. package/dist/v1/schema/resolution/origins.js +87 -58
  373. package/dist/v1/schema/resolution/value.registry.d.ts +3 -4
  374. package/dist/v1/schema/resolution/value.registry.js +7 -14
  375. package/dist/v1/schema/revision.d.ts +1 -0
  376. package/dist/v1/schema/revision.js +1 -0
  377. package/dist/v1/schema/validation/class.d.ts +5 -0
  378. package/dist/v1/schema/validation/class.js +247 -0
  379. package/dist/v1/schema/validation/core.d.ts +5 -0
  380. package/dist/v1/schema/validation/core.js +318 -0
  381. package/dist/v1/schema/validation/domain.d.ts +11 -0
  382. package/dist/v1/schema/validation/domain.js +36 -0
  383. package/dist/v1/schema/validation/domain.route.d.ts +1 -2
  384. package/dist/v1/schema/validation/domain.route.js +3 -4
  385. package/dist/v1/schema/validation/domain.structure.d.ts +3 -4
  386. package/dist/v1/schema/validation/domain.structure.js +230 -218
  387. package/dist/v1/schema/validation/policy/budgets.d.ts +4 -0
  388. package/dist/v1/schema/validation/policy/budgets.js +119 -0
  389. package/dist/v1/schema/validation/policy/context.d.ts +28 -0
  390. package/dist/v1/schema/validation/policy/context.js +89 -0
  391. package/dist/v1/schema/validation/policy/objects.d.ts +4 -0
  392. package/dist/v1/schema/validation/policy/objects.js +71 -0
  393. package/dist/v1/schema/validation/policy/references.d.ts +2 -0
  394. package/dist/v1/schema/validation/policy/references.js +155 -0
  395. package/dist/v1/schema/validation/policy/typing.d.ts +19 -0
  396. package/dist/v1/schema/validation/policy/typing.js +347 -0
  397. package/dist/v1/schema/validation/policy/uses.d.ts +5 -0
  398. package/dist/v1/schema/validation/policy/uses.js +196 -0
  399. package/dist/v1/schema/validation/policy/validate.d.ts +11 -0
  400. package/dist/v1/schema/validation/policy/validate.js +23 -0
  401. package/dist/v1/schema/validation/value-api.d.ts +15 -0
  402. package/dist/v1/schema/validation/value-api.js +24 -0
  403. package/dist/v1/schema/validation/value.d.ts +4 -5
  404. package/dist/v1/schema/validation/value.js +11 -10
  405. package/dist/v1/schema/validation/view.d.ts +3 -0
  406. package/dist/v1/schema/validation/view.js +29 -0
  407. package/dist/v1/value/full-match.d.ts +2 -0
  408. package/dist/v1/value/full-match.js +2 -0
  409. package/dist/v1.d.ts +1 -2
  410. package/dist/v1.js +1 -2
  411. package/dist/value/accept.d.ts +9 -1
  412. package/dist/value/accept.js +78 -6
  413. package/dist/value/canonical.d.ts +3 -1
  414. package/dist/value/canonical.js +13 -6
  415. package/dist/value/decode.d.ts +0 -1
  416. package/dist/value/decode.js +0 -1
  417. package/dist/value/equal.d.ts +0 -1
  418. package/dist/value/equal.js +0 -1
  419. package/dist/value/error.d.ts +0 -1
  420. package/dist/value/error.js +0 -1
  421. package/dist/value/immutable.optimization.d.ts +12 -0
  422. package/dist/value/immutable.optimization.js +28 -0
  423. package/dist/value/index.d.ts +1 -2
  424. package/dist/value/index.js +1 -2
  425. package/dist/value/json.d.ts +1 -2
  426. package/dist/value/json.js +1 -2
  427. package/dist/value/limits.d.ts +0 -1
  428. package/dist/value/limits.js +0 -1
  429. package/dist/value/types.d.ts +0 -1
  430. package/dist/value/types.js +0 -1
  431. package/dist/value/unicode.d.ts +1 -2
  432. package/dist/value/unicode.js +1 -1
  433. package/dist/version/dispatch.d.ts +0 -1
  434. package/dist/version/dispatch.js +0 -1
  435. package/dist/version/index.d.ts +0 -1
  436. package/dist/version/index.js +0 -1
  437. package/package.json +52 -21
  438. package/dist/index.d.ts.map +0 -1
  439. package/dist/index.js.map +0 -1
  440. package/dist/upgrade/contract.d.ts.map +0 -1
  441. package/dist/upgrade/contract.js.map +0 -1
  442. package/dist/upgrade/index.d.ts.map +0 -1
  443. package/dist/upgrade/index.js.map +0 -1
  444. package/dist/v1/addressing/index.d.ts.map +0 -1
  445. package/dist/v1/addressing/index.js.map +0 -1
  446. package/dist/v1/addressing/key.d.ts.map +0 -1
  447. package/dist/v1/addressing/key.js.map +0 -1
  448. package/dist/v1/addressing/patterns.d.ts.map +0 -1
  449. package/dist/v1/addressing/patterns.js.map +0 -1
  450. package/dist/v1/addressing/property-key.d.ts.map +0 -1
  451. package/dist/v1/addressing/property-key.js.map +0 -1
  452. package/dist/v1/addressing/ref.d.ts +0 -35
  453. package/dist/v1/addressing/ref.d.ts.map +0 -1
  454. package/dist/v1/addressing/ref.js +0 -94
  455. package/dist/v1/addressing/ref.js.map +0 -1
  456. package/dist/v1/addressing/schema-ref.d.ts +0 -8
  457. package/dist/v1/addressing/schema-ref.d.ts.map +0 -1
  458. package/dist/v1/addressing/schema-ref.js +0 -2
  459. package/dist/v1/addressing/schema-ref.js.map +0 -1
  460. package/dist/v1/builder/callable.d.ts +0 -91
  461. package/dist/v1/builder/callable.d.ts.map +0 -1
  462. package/dist/v1/builder/callable.js +0 -46
  463. package/dist/v1/builder/callable.js.map +0 -1
  464. package/dist/v1/builder/compiler/callable.d.ts +0 -20
  465. package/dist/v1/builder/compiler/callable.d.ts.map +0 -1
  466. package/dist/v1/builder/compiler/callable.js +0 -138
  467. package/dist/v1/builder/compiler/callable.js.map +0 -1
  468. package/dist/v1/builder/compiler/core.d.ts +0 -6
  469. package/dist/v1/builder/compiler/core.d.ts.map +0 -1
  470. package/dist/v1/builder/compiler/core.js +0 -44
  471. package/dist/v1/builder/compiler/core.js.map +0 -1
  472. package/dist/v1/builder/compiler/core.properties.d.ts +0 -6
  473. package/dist/v1/builder/compiler/core.properties.d.ts.map +0 -1
  474. package/dist/v1/builder/compiler/core.properties.js +0 -70
  475. package/dist/v1/builder/compiler/core.properties.js.map +0 -1
  476. package/dist/v1/builder/compiler/definition.d.ts +0 -32
  477. package/dist/v1/builder/compiler/definition.d.ts.map +0 -1
  478. package/dist/v1/builder/compiler/definition.js +0 -197
  479. package/dist/v1/builder/compiler/definition.js.map +0 -1
  480. package/dist/v1/builder/compiler/policy.d.ts +0 -17
  481. package/dist/v1/builder/compiler/policy.d.ts.map +0 -1
  482. package/dist/v1/builder/compiler/policy.js +0 -54
  483. package/dist/v1/builder/compiler/policy.js.map +0 -1
  484. package/dist/v1/builder/compiler/schema.capture.d.ts +0 -5
  485. package/dist/v1/builder/compiler/schema.capture.d.ts.map +0 -1
  486. package/dist/v1/builder/compiler/schema.capture.js +0 -85
  487. package/dist/v1/builder/compiler/schema.capture.js.map +0 -1
  488. package/dist/v1/builder/compiler/schema.context.d.ts +0 -45
  489. package/dist/v1/builder/compiler/schema.context.d.ts.map +0 -1
  490. package/dist/v1/builder/compiler/schema.context.js +0 -255
  491. package/dist/v1/builder/compiler/schema.context.js.map +0 -1
  492. package/dist/v1/builder/compiler/schema.d.ts +0 -10
  493. package/dist/v1/builder/compiler/schema.d.ts.map +0 -1
  494. package/dist/v1/builder/compiler/schema.js +0 -90
  495. package/dist/v1/builder/compiler/schema.js.map +0 -1
  496. package/dist/v1/builder/compiler/schema.ownership.d.ts +0 -9
  497. package/dist/v1/builder/compiler/schema.ownership.d.ts.map +0 -1
  498. package/dist/v1/builder/compiler/schema.ownership.js +0 -30
  499. package/dist/v1/builder/compiler/schema.ownership.js.map +0 -1
  500. package/dist/v1/builder/compiler/value.d.ts +0 -26
  501. package/dist/v1/builder/compiler/value.d.ts.map +0 -1
  502. package/dist/v1/builder/compiler/value.js +0 -160
  503. package/dist/v1/builder/compiler/value.js.map +0 -1
  504. package/dist/v1/builder/compiler/value.path.d.ts +0 -4
  505. package/dist/v1/builder/compiler/value.path.d.ts.map +0 -1
  506. package/dist/v1/builder/compiler/value.path.js +0 -21
  507. package/dist/v1/builder/compiler/value.path.js.map +0 -1
  508. package/dist/v1/builder/compiler/value.zod.d.ts +0 -33
  509. package/dist/v1/builder/compiler/value.zod.d.ts.map +0 -1
  510. package/dist/v1/builder/compiler/value.zod.js +0 -343
  511. package/dist/v1/builder/compiler/value.zod.js.map +0 -1
  512. package/dist/v1/builder/compiler/view.d.ts +0 -12
  513. package/dist/v1/builder/compiler/view.d.ts.map +0 -1
  514. package/dist/v1/builder/compiler/view.js +0 -27
  515. package/dist/v1/builder/compiler/view.js.map +0 -1
  516. package/dist/v1/builder/core.d.ts +0 -27
  517. package/dist/v1/builder/core.d.ts.map +0 -1
  518. package/dist/v1/builder/core.js +0 -21
  519. package/dist/v1/builder/core.js.map +0 -1
  520. package/dist/v1/builder/definition.d.ts +0 -155
  521. package/dist/v1/builder/definition.d.ts.map +0 -1
  522. package/dist/v1/builder/definition.js +0 -141
  523. package/dist/v1/builder/definition.js.map +0 -1
  524. package/dist/v1/builder/full-match.d.ts +0 -5
  525. package/dist/v1/builder/full-match.d.ts.map +0 -1
  526. package/dist/v1/builder/full-match.js +0 -12
  527. package/dist/v1/builder/full-match.js.map +0 -1
  528. package/dist/v1/builder/index.d.ts.map +0 -1
  529. package/dist/v1/builder/index.js.map +0 -1
  530. package/dist/v1/builder/internal/authoring.d.ts +0 -8
  531. package/dist/v1/builder/internal/authoring.d.ts.map +0 -1
  532. package/dist/v1/builder/internal/authoring.js +0 -15
  533. package/dist/v1/builder/internal/authoring.js.map +0 -1
  534. package/dist/v1/builder/internal/authoring.lazy.d.ts +0 -3
  535. package/dist/v1/builder/internal/authoring.lazy.d.ts.map +0 -1
  536. package/dist/v1/builder/internal/authoring.lazy.js +0 -14
  537. package/dist/v1/builder/internal/authoring.lazy.js.map +0 -1
  538. package/dist/v1/builder/internal/diagnostic.d.ts +0 -4
  539. package/dist/v1/builder/internal/diagnostic.d.ts.map +0 -1
  540. package/dist/v1/builder/internal/diagnostic.js +0 -16
  541. package/dist/v1/builder/internal/diagnostic.js.map +0 -1
  542. package/dist/v1/builder/internal/path.metadata.d.ts +0 -5
  543. package/dist/v1/builder/internal/path.metadata.d.ts.map +0 -1
  544. package/dist/v1/builder/internal/path.metadata.js +0 -8
  545. package/dist/v1/builder/internal/path.metadata.js.map +0 -1
  546. package/dist/v1/builder/path.d.ts +0 -9
  547. package/dist/v1/builder/path.d.ts.map +0 -1
  548. package/dist/v1/builder/path.js +0 -12
  549. package/dist/v1/builder/path.js.map +0 -1
  550. package/dist/v1/builder/policy.d.ts +0 -50
  551. package/dist/v1/builder/policy.d.ts.map +0 -1
  552. package/dist/v1/builder/policy.js +0 -79
  553. package/dist/v1/builder/policy.js.map +0 -1
  554. package/dist/v1/builder/property.d.ts +0 -37
  555. package/dist/v1/builder/property.d.ts.map +0 -1
  556. package/dist/v1/builder/property.js +0 -36
  557. package/dist/v1/builder/property.js.map +0 -1
  558. package/dist/v1/builder/schema.d.ts +0 -6
  559. package/dist/v1/builder/schema.d.ts.map +0 -1
  560. package/dist/v1/builder/schema.input.d.ts +0 -19
  561. package/dist/v1/builder/schema.input.d.ts.map +0 -1
  562. package/dist/v1/builder/schema.input.js +0 -2
  563. package/dist/v1/builder/schema.input.js.map +0 -1
  564. package/dist/v1/builder/schema.js +0 -6
  565. package/dist/v1/builder/schema.js.map +0 -1
  566. package/dist/v1/builder/value-schema.d.ts +0 -17
  567. package/dist/v1/builder/value-schema.d.ts.map +0 -1
  568. package/dist/v1/builder/value-schema.js +0 -11
  569. package/dist/v1/builder/value-schema.js.map +0 -1
  570. package/dist/v1/builder/view.d.ts +0 -19
  571. package/dist/v1/builder/view.d.ts.map +0 -1
  572. package/dist/v1/builder/view.js +0 -7
  573. package/dist/v1/builder/view.js.map +0 -1
  574. package/dist/v1/builder.d.ts +0 -3
  575. package/dist/v1/builder.d.ts.map +0 -1
  576. package/dist/v1/builder.js +0 -2
  577. package/dist/v1/builder.js.map +0 -1
  578. package/dist/v1/bundle/codec.d.ts.map +0 -1
  579. package/dist/v1/bundle/codec.js.map +0 -1
  580. package/dist/v1/bundle/index.d.ts.map +0 -1
  581. package/dist/v1/bundle/index.js.map +0 -1
  582. package/dist/v1/bundle/model.d.ts.map +0 -1
  583. package/dist/v1/bundle/model.js.map +0 -1
  584. package/dist/v1/bundle/structure.d.ts.map +0 -1
  585. package/dist/v1/bundle/structure.js.map +0 -1
  586. package/dist/v1/bundle.d.ts +0 -3
  587. package/dist/v1/bundle.d.ts.map +0 -1
  588. package/dist/v1/bundle.js +0 -3
  589. package/dist/v1/bundle.js.map +0 -1
  590. package/dist/v1/index.d.ts.map +0 -1
  591. package/dist/v1/index.js.map +0 -1
  592. package/dist/v1/schema/callable.d.ts +0 -29
  593. package/dist/v1/schema/callable.d.ts.map +0 -1
  594. package/dist/v1/schema/callable.js +0 -2
  595. package/dist/v1/schema/callable.js.map +0 -1
  596. package/dist/v1/schema/canonical/domain.d.ts.map +0 -1
  597. package/dist/v1/schema/canonical/domain.digest.d.ts.map +0 -1
  598. package/dist/v1/schema/canonical/domain.digest.js.map +0 -1
  599. package/dist/v1/schema/canonical/domain.js.map +0 -1
  600. package/dist/v1/schema/canonical/freeze.d.ts.map +0 -1
  601. package/dist/v1/schema/canonical/freeze.js.map +0 -1
  602. package/dist/v1/schema/compiled/admission.d.ts +0 -4
  603. package/dist/v1/schema/compiled/admission.d.ts.map +0 -1
  604. package/dist/v1/schema/compiled/admission.js +0 -217
  605. package/dist/v1/schema/compiled/admission.js.map +0 -1
  606. package/dist/v1/schema/compiled/authored-validator.d.ts +0 -5
  607. package/dist/v1/schema/compiled/authored-validator.d.ts.map +0 -1
  608. package/dist/v1/schema/compiled/authored-validator.js +0 -7
  609. package/dist/v1/schema/compiled/authored-validator.js.map +0 -1
  610. package/dist/v1/schema/compiled/compiler.d.ts +0 -5
  611. package/dist/v1/schema/compiled/compiler.d.ts.map +0 -1
  612. package/dist/v1/schema/compiled/compiler.js +0 -86
  613. package/dist/v1/schema/compiled/compiler.js.map +0 -1
  614. package/dist/v1/schema/compiled/model.d.ts +0 -61
  615. package/dist/v1/schema/compiled/model.d.ts.map +0 -1
  616. package/dist/v1/schema/compiled/model.js +0 -2
  617. package/dist/v1/schema/compiled/model.js.map +0 -1
  618. package/dist/v1/schema/compiled/program.d.ts +0 -5
  619. package/dist/v1/schema/compiled/program.d.ts.map +0 -1
  620. package/dist/v1/schema/compiled/program.js +0 -42
  621. package/dist/v1/schema/compiled/program.js.map +0 -1
  622. package/dist/v1/schema/compiled/validator.d.ts +0 -23
  623. package/dist/v1/schema/compiled/validator.d.ts.map +0 -1
  624. package/dist/v1/schema/compiled/validator.js +0 -62
  625. package/dist/v1/schema/compiled/validator.js.map +0 -1
  626. package/dist/v1/schema/core/declaration.d.ts +0 -17
  627. package/dist/v1/schema/core/declaration.d.ts.map +0 -1
  628. package/dist/v1/schema/core/declaration.js +0 -2
  629. package/dist/v1/schema/core/declaration.js.map +0 -1
  630. package/dist/v1/schema/core/validate.d.ts +0 -6
  631. package/dist/v1/schema/core/validate.d.ts.map +0 -1
  632. package/dist/v1/schema/core/validate.js +0 -257
  633. package/dist/v1/schema/core/validate.js.map +0 -1
  634. package/dist/v1/schema/definition/analysis.d.ts +0 -43
  635. package/dist/v1/schema/definition/analysis.d.ts.map +0 -1
  636. package/dist/v1/schema/definition/analysis.js +0 -190
  637. package/dist/v1/schema/definition/analysis.js.map +0 -1
  638. package/dist/v1/schema/definition/class.d.ts +0 -28
  639. package/dist/v1/schema/definition/class.d.ts.map +0 -1
  640. package/dist/v1/schema/definition/class.js +0 -2
  641. package/dist/v1/schema/definition/class.js.map +0 -1
  642. package/dist/v1/schema/definition/data.d.ts +0 -12
  643. package/dist/v1/schema/definition/data.d.ts.map +0 -1
  644. package/dist/v1/schema/definition/data.js +0 -3
  645. package/dist/v1/schema/definition/data.js.map +0 -1
  646. package/dist/v1/schema/definition/edge.d.ts +0 -35
  647. package/dist/v1/schema/definition/edge.d.ts.map +0 -1
  648. package/dist/v1/schema/definition/edge.js +0 -2
  649. package/dist/v1/schema/definition/edge.js.map +0 -1
  650. package/dist/v1/schema/definition/interface.d.ts +0 -22
  651. package/dist/v1/schema/definition/interface.d.ts.map +0 -1
  652. package/dist/v1/schema/definition/interface.js +0 -2
  653. package/dist/v1/schema/definition/interface.js.map +0 -1
  654. package/dist/v1/schema/definition/property.d.ts +0 -18
  655. package/dist/v1/schema/definition/property.d.ts.map +0 -1
  656. package/dist/v1/schema/definition/property.js +0 -2
  657. package/dist/v1/schema/definition/property.js.map +0 -1
  658. package/dist/v1/schema/definition/validate.d.ts +0 -5
  659. package/dist/v1/schema/definition/validate.d.ts.map +0 -1
  660. package/dist/v1/schema/definition/validate.js +0 -221
  661. package/dist/v1/schema/definition/validate.js.map +0 -1
  662. package/dist/v1/schema/dependency.meaning.d.ts +0 -30
  663. package/dist/v1/schema/dependency.meaning.d.ts.map +0 -1
  664. package/dist/v1/schema/dependency.meaning.js +0 -608
  665. package/dist/v1/schema/dependency.meaning.js.map +0 -1
  666. package/dist/v1/schema/diagnostic.d.ts.map +0 -1
  667. package/dist/v1/schema/diagnostic.js.map +0 -1
  668. package/dist/v1/schema/domain.accept.d.ts +0 -4
  669. package/dist/v1/schema/domain.accept.d.ts.map +0 -1
  670. package/dist/v1/schema/domain.accept.js +0 -27
  671. package/dist/v1/schema/domain.accept.js.map +0 -1
  672. package/dist/v1/schema/domain.codec.d.ts +0 -6
  673. package/dist/v1/schema/domain.codec.d.ts.map +0 -1
  674. package/dist/v1/schema/domain.codec.js +0 -22
  675. package/dist/v1/schema/domain.codec.js.map +0 -1
  676. package/dist/v1/schema/domain.header.d.ts +0 -15
  677. package/dist/v1/schema/domain.header.d.ts.map +0 -1
  678. package/dist/v1/schema/domain.header.js +0 -21
  679. package/dist/v1/schema/domain.header.js.map +0 -1
  680. package/dist/v1/schema/domain.ir.d.ts +0 -40
  681. package/dist/v1/schema/domain.ir.d.ts.map +0 -1
  682. package/dist/v1/schema/domain.ir.js +0 -5
  683. package/dist/v1/schema/domain.ir.js.map +0 -1
  684. package/dist/v1/schema/domain.lookup.d.ts +0 -19
  685. package/dist/v1/schema/domain.lookup.d.ts.map +0 -1
  686. package/dist/v1/schema/domain.lookup.js +0 -32
  687. package/dist/v1/schema/domain.lookup.js.map +0 -1
  688. package/dist/v1/schema/domain.resolve.d.ts +0 -26
  689. package/dist/v1/schema/domain.resolve.d.ts.map +0 -1
  690. package/dist/v1/schema/domain.resolve.js +0 -43
  691. package/dist/v1/schema/domain.resolve.js.map +0 -1
  692. package/dist/v1/schema/domain.revision.d.ts +0 -12
  693. package/dist/v1/schema/domain.revision.d.ts.map +0 -1
  694. package/dist/v1/schema/domain.revision.js +0 -18
  695. package/dist/v1/schema/domain.revision.js.map +0 -1
  696. package/dist/v1/schema/domain.validate.d.ts +0 -12
  697. package/dist/v1/schema/domain.validate.d.ts.map +0 -1
  698. package/dist/v1/schema/domain.validate.js +0 -36
  699. package/dist/v1/schema/domain.validate.js.map +0 -1
  700. package/dist/v1/schema/index.d.ts.map +0 -1
  701. package/dist/v1/schema/index.js.map +0 -1
  702. package/dist/v1/schema/metadata.d.ts +0 -13
  703. package/dist/v1/schema/metadata.d.ts.map +0 -1
  704. package/dist/v1/schema/metadata.js +0 -13
  705. package/dist/v1/schema/metadata.js.map +0 -1
  706. package/dist/v1/schema/policy/ast.d.ts +0 -77
  707. package/dist/v1/schema/policy/ast.d.ts.map +0 -1
  708. package/dist/v1/schema/policy/ast.js +0 -2
  709. package/dist/v1/schema/policy/ast.js.map +0 -1
  710. package/dist/v1/schema/policy/normalize.d.ts +0 -5
  711. package/dist/v1/schema/policy/normalize.d.ts.map +0 -1
  712. package/dist/v1/schema/policy/normalize.js +0 -230
  713. package/dist/v1/schema/policy/normalize.js.map +0 -1
  714. package/dist/v1/schema/policy/validation/branches.d.ts +0 -21
  715. package/dist/v1/schema/policy/validation/branches.d.ts.map +0 -1
  716. package/dist/v1/schema/policy/validation/branches.js +0 -155
  717. package/dist/v1/schema/policy/validation/branches.js.map +0 -1
  718. package/dist/v1/schema/policy/validation/budgets.d.ts +0 -19
  719. package/dist/v1/schema/policy/validation/budgets.d.ts.map +0 -1
  720. package/dist/v1/schema/policy/validation/budgets.js +0 -132
  721. package/dist/v1/schema/policy/validation/budgets.js.map +0 -1
  722. package/dist/v1/schema/policy/validation/context.d.ts +0 -28
  723. package/dist/v1/schema/policy/validation/context.d.ts.map +0 -1
  724. package/dist/v1/schema/policy/validation/context.js +0 -99
  725. package/dist/v1/schema/policy/validation/context.js.map +0 -1
  726. package/dist/v1/schema/policy/validation/references.d.ts +0 -3
  727. package/dist/v1/schema/policy/validation/references.d.ts.map +0 -1
  728. package/dist/v1/schema/policy/validation/references.js +0 -136
  729. package/dist/v1/schema/policy/validation/references.js.map +0 -1
  730. package/dist/v1/schema/policy/validation/typing.d.ts +0 -23
  731. package/dist/v1/schema/policy/validation/typing.d.ts.map +0 -1
  732. package/dist/v1/schema/policy/validation/typing.js +0 -360
  733. package/dist/v1/schema/policy/validation/typing.js.map +0 -1
  734. package/dist/v1/schema/policy/validation/uses.d.ts +0 -6
  735. package/dist/v1/schema/policy/validation/uses.d.ts.map +0 -1
  736. package/dist/v1/schema/policy/validation/uses.js +0 -272
  737. package/dist/v1/schema/policy/validation/uses.js.map +0 -1
  738. package/dist/v1/schema/policy/validation/validate.d.ts +0 -12
  739. package/dist/v1/schema/policy/validation/validate.d.ts.map +0 -1
  740. package/dist/v1/schema/policy/validation/validate.js +0 -24
  741. package/dist/v1/schema/policy/validation/validate.js.map +0 -1
  742. package/dist/v1/schema/reference.d.ts +0 -43
  743. package/dist/v1/schema/reference.d.ts.map +0 -1
  744. package/dist/v1/schema/reference.js +0 -31
  745. package/dist/v1/schema/reference.js.map +0 -1
  746. package/dist/v1/schema/resolution/closure.d.ts.map +0 -1
  747. package/dist/v1/schema/resolution/closure.js.map +0 -1
  748. package/dist/v1/schema/resolution/context.d.ts.map +0 -1
  749. package/dist/v1/schema/resolution/context.js.map +0 -1
  750. package/dist/v1/schema/resolution/definition.index.d.ts.map +0 -1
  751. package/dist/v1/schema/resolution/definition.index.js.map +0 -1
  752. package/dist/v1/schema/resolution/origins.d.ts.map +0 -1
  753. package/dist/v1/schema/resolution/origins.js.map +0 -1
  754. package/dist/v1/schema/resolution/value.registry.d.ts.map +0 -1
  755. package/dist/v1/schema/resolution/value.registry.js.map +0 -1
  756. package/dist/v1/schema/validation/domain.route.d.ts.map +0 -1
  757. package/dist/v1/schema/validation/domain.route.js.map +0 -1
  758. package/dist/v1/schema/validation/domain.structure.d.ts.map +0 -1
  759. package/dist/v1/schema/validation/domain.structure.js.map +0 -1
  760. package/dist/v1/schema/validation/value.d.ts.map +0 -1
  761. package/dist/v1/schema/validation/value.js.map +0 -1
  762. package/dist/v1/schema/value/extensions/node-path/schema.d.ts +0 -6
  763. package/dist/v1/schema/value/extensions/node-path/schema.d.ts.map +0 -1
  764. package/dist/v1/schema/value/extensions/node-path/schema.js +0 -19
  765. package/dist/v1/schema/value/extensions/node-path/schema.js.map +0 -1
  766. package/dist/v1/schema/value/extensions/node-path/validate.d.ts +0 -5
  767. package/dist/v1/schema/value/extensions/node-path/validate.d.ts.map +0 -1
  768. package/dist/v1/schema/value/extensions/node-path/validate.js +0 -80
  769. package/dist/v1/schema/value/extensions/node-path/validate.js.map +0 -1
  770. package/dist/v1/schema/value/full-match.d.ts +0 -7
  771. package/dist/v1/schema/value/full-match.d.ts.map +0 -1
  772. package/dist/v1/schema/value/full-match.js +0 -21
  773. package/dist/v1/schema/value/full-match.js.map +0 -1
  774. package/dist/v1/schema/value/index.d.ts +0 -14
  775. package/dist/v1/schema/value/index.d.ts.map +0 -1
  776. package/dist/v1/schema/value/index.js +0 -24
  777. package/dist/v1/schema/value/index.js.map +0 -1
  778. package/dist/v1/schema/value/instance/assertions.d.ts +0 -7
  779. package/dist/v1/schema/value/instance/assertions.d.ts.map +0 -1
  780. package/dist/v1/schema/value/instance/assertions.js +0 -59
  781. package/dist/v1/schema/value/instance/assertions.js.map +0 -1
  782. package/dist/v1/schema/value/instance/evaluator.d.ts +0 -5
  783. package/dist/v1/schema/value/instance/evaluator.d.ts.map +0 -1
  784. package/dist/v1/schema/value/instance/evaluator.js +0 -362
  785. package/dist/v1/schema/value/instance/evaluator.js.map +0 -1
  786. package/dist/v1/schema/value/instance/preparation.d.ts +0 -14
  787. package/dist/v1/schema/value/instance/preparation.d.ts.map +0 -1
  788. package/dist/v1/schema/value/instance/preparation.js +0 -137
  789. package/dist/v1/schema/value/instance/preparation.js.map +0 -1
  790. package/dist/v1/schema/value/instance/types.d.ts +0 -37
  791. package/dist/v1/schema/value/instance/types.d.ts.map +0 -1
  792. package/dist/v1/schema/value/instance/types.js +0 -10
  793. package/dist/v1/schema/value/instance/types.js.map +0 -1
  794. package/dist/v1/schema/value/instance.validate.d.ts +0 -13
  795. package/dist/v1/schema/value/instance.validate.d.ts.map +0 -1
  796. package/dist/v1/schema/value/instance.validate.js +0 -44
  797. package/dist/v1/schema/value/instance.validate.js.map +0 -1
  798. package/dist/v1/schema/value/instant.d.ts +0 -9
  799. package/dist/v1/schema/value/instant.d.ts.map +0 -1
  800. package/dist/v1/schema/value/instant.js +0 -37
  801. package/dist/v1/schema/value/instant.js.map +0 -1
  802. package/dist/v1/schema/value/location/keywords.d.ts +0 -4
  803. package/dist/v1/schema/value/location/keywords.d.ts.map +0 -1
  804. package/dist/v1/schema/value/location/keywords.js +0 -21
  805. package/dist/v1/schema/value/location/keywords.js.map +0 -1
  806. package/dist/v1/schema/value/location/pointer.d.ts +0 -5
  807. package/dist/v1/schema/value/location/pointer.d.ts.map +0 -1
  808. package/dist/v1/schema/value/location/pointer.js +0 -50
  809. package/dist/v1/schema/value/location/pointer.js.map +0 -1
  810. package/dist/v1/schema/value/location/walk.d.ts +0 -11
  811. package/dist/v1/schema/value/location/walk.d.ts.map +0 -1
  812. package/dist/v1/schema/value/location/walk.js +0 -54
  813. package/dist/v1/schema/value/location/walk.js.map +0 -1
  814. package/dist/v1/schema/value/object.d.ts +0 -5
  815. package/dist/v1/schema/value/object.d.ts.map +0 -1
  816. package/dist/v1/schema/value/object.js +0 -4
  817. package/dist/v1/schema/value/object.js.map +0 -1
  818. package/dist/v1/schema/value/ordering.d.ts +0 -11
  819. package/dist/v1/schema/value/ordering.d.ts.map +0 -1
  820. package/dist/v1/schema/value/ordering.js +0 -172
  821. package/dist/v1/schema/value/ordering.js.map +0 -1
  822. package/dist/v1/schema/value/profile/canonicalize.d.ts +0 -5
  823. package/dist/v1/schema/value/profile/canonicalize.d.ts.map +0 -1
  824. package/dist/v1/schema/value/profile/canonicalize.js +0 -133
  825. package/dist/v1/schema/value/profile/canonicalize.js.map +0 -1
  826. package/dist/v1/schema/value/profile/dialect.d.ts +0 -5
  827. package/dist/v1/schema/value/profile/dialect.d.ts.map +0 -1
  828. package/dist/v1/schema/value/profile/dialect.js +0 -36
  829. package/dist/v1/schema/value/profile/dialect.js.map +0 -1
  830. package/dist/v1/schema/value/profile/json.validate.d.ts +0 -3
  831. package/dist/v1/schema/value/profile/json.validate.d.ts.map +0 -1
  832. package/dist/v1/schema/value/profile/json.validate.js +0 -15
  833. package/dist/v1/schema/value/profile/json.validate.js.map +0 -1
  834. package/dist/v1/schema/value/profile/meta-schema.compiled.d.ts +0 -79
  835. package/dist/v1/schema/value/profile/meta-schema.compiled.d.ts.map +0 -1
  836. package/dist/v1/schema/value/profile/meta-schema.compiled.js +0 -2080
  837. package/dist/v1/schema/value/profile/meta-schema.compiled.js.map +0 -1
  838. package/dist/v1/schema/value/profile/meta-schema.d.ts +0 -5
  839. package/dist/v1/schema/value/profile/meta-schema.d.ts.map +0 -1
  840. package/dist/v1/schema/value/profile/meta-schema.js +0 -20
  841. package/dist/v1/schema/value/profile/meta-schema.js.map +0 -1
  842. package/dist/v1/schema/value/profile/rules.d.ts +0 -5
  843. package/dist/v1/schema/value/profile/rules.d.ts.map +0 -1
  844. package/dist/v1/schema/value/profile/rules.js +0 -152
  845. package/dist/v1/schema/value/profile/rules.js.map +0 -1
  846. package/dist/v1/schema/value/profile/validate.d.ts +0 -5
  847. package/dist/v1/schema/value/profile/validate.d.ts.map +0 -1
  848. package/dist/v1/schema/value/profile/validate.js +0 -47
  849. package/dist/v1/schema/value/profile/validate.js.map +0 -1
  850. package/dist/v1/schema/value/profile/vocabulary.d.ts +0 -3
  851. package/dist/v1/schema/value/profile/vocabulary.d.ts.map +0 -1
  852. package/dist/v1/schema/value/profile/vocabulary.js +0 -69
  853. package/dist/v1/schema/value/profile/vocabulary.js.map +0 -1
  854. package/dist/v1/schema/value/regexp/ast.d.ts +0 -22
  855. package/dist/v1/schema/value/regexp/ast.d.ts.map +0 -1
  856. package/dist/v1/schema/value/regexp/ast.js +0 -327
  857. package/dist/v1/schema/value/regexp/ast.js.map +0 -1
  858. package/dist/v1/schema/value/regexp/compile.d.ts +0 -4
  859. package/dist/v1/schema/value/regexp/compile.d.ts.map +0 -1
  860. package/dist/v1/schema/value/regexp/compile.js +0 -97
  861. package/dist/v1/schema/value/regexp/compile.js.map +0 -1
  862. package/dist/v1/schema/value/regexp/linear.d.ts +0 -20
  863. package/dist/v1/schema/value/regexp/linear.d.ts.map +0 -1
  864. package/dist/v1/schema/value/regexp/linear.js +0 -24
  865. package/dist/v1/schema/value/regexp/linear.js.map +0 -1
  866. package/dist/v1/schema/value/regexp/lower.d.ts +0 -4
  867. package/dist/v1/schema/value/regexp/lower.d.ts.map +0 -1
  868. package/dist/v1/schema/value/regexp/lower.js +0 -27
  869. package/dist/v1/schema/value/regexp/lower.js.map +0 -1
  870. package/dist/v1/schema/value/regexp/matcher.d.ts +0 -8
  871. package/dist/v1/schema/value/regexp/matcher.d.ts.map +0 -1
  872. package/dist/v1/schema/value/regexp/matcher.js +0 -51
  873. package/dist/v1/schema/value/regexp/matcher.js.map +0 -1
  874. package/dist/v1/schema/value/regexp/pattern.d.ts +0 -3
  875. package/dist/v1/schema/value/regexp/pattern.d.ts.map +0 -1
  876. package/dist/v1/schema/value/regexp/pattern.js +0 -39
  877. package/dist/v1/schema/value/regexp/pattern.js.map +0 -1
  878. package/dist/v1/schema/value/regexp/syntax.d.ts +0 -3
  879. package/dist/v1/schema/value/regexp/syntax.d.ts.map +0 -1
  880. package/dist/v1/schema/value/regexp/syntax.js +0 -6
  881. package/dist/v1/schema/value/regexp/syntax.js.map +0 -1
  882. package/dist/v1/schema/value/registry.d.ts +0 -22
  883. package/dist/v1/schema/value/registry.d.ts.map +0 -1
  884. package/dist/v1/schema/value/registry.js +0 -2
  885. package/dist/v1/schema/value/registry.js.map +0 -1
  886. package/dist/v1/schema/value/resources/closure.d.ts +0 -12
  887. package/dist/v1/schema/value/resources/closure.d.ts.map +0 -1
  888. package/dist/v1/schema/value/resources/closure.js +0 -59
  889. package/dist/v1/schema/value/resources/closure.js.map +0 -1
  890. package/dist/v1/schema/value/resources/recursion.d.ts +0 -6
  891. package/dist/v1/schema/value/resources/recursion.d.ts.map +0 -1
  892. package/dist/v1/schema/value/resources/recursion.js +0 -96
  893. package/dist/v1/schema/value/resources/recursion.js.map +0 -1
  894. package/dist/v1/schema/value/resources/references.d.ts +0 -25
  895. package/dist/v1/schema/value/resources/references.d.ts.map +0 -1
  896. package/dist/v1/schema/value/resources/references.js +0 -93
  897. package/dist/v1/schema/value/resources/references.js.map +0 -1
  898. package/dist/v1/schema/value/resources/registry.index.d.ts +0 -22
  899. package/dist/v1/schema/value/resources/registry.index.d.ts.map +0 -1
  900. package/dist/v1/schema/value/resources/registry.index.js +0 -114
  901. package/dist/v1/schema/value/resources/registry.index.js.map +0 -1
  902. package/dist/v1/schema/value/schema.d.ts +0 -26
  903. package/dist/v1/schema/value/schema.d.ts.map +0 -1
  904. package/dist/v1/schema/value/schema.js +0 -13
  905. package/dist/v1/schema/value/schema.js.map +0 -1
  906. package/dist/v1/schema/view/declaration.d.ts +0 -14
  907. package/dist/v1/schema/view/declaration.d.ts.map +0 -1
  908. package/dist/v1/schema/view/declaration.js +0 -2
  909. package/dist/v1/schema/view/declaration.js.map +0 -1
  910. package/dist/v1/schema/view/validate.d.ts +0 -4
  911. package/dist/v1/schema/view/validate.d.ts.map +0 -1
  912. package/dist/v1/schema/view/validate.js +0 -22
  913. package/dist/v1/schema/view/validate.js.map +0 -1
  914. package/dist/v1/schema.d.ts +0 -3
  915. package/dist/v1/schema.d.ts.map +0 -1
  916. package/dist/v1/schema.js +0 -3
  917. package/dist/v1/schema.js.map +0 -1
  918. package/dist/v1.d.ts.map +0 -1
  919. package/dist/v1.js.map +0 -1
  920. package/dist/value/accept.d.ts.map +0 -1
  921. package/dist/value/accept.js.map +0 -1
  922. package/dist/value/canonical.d.ts.map +0 -1
  923. package/dist/value/canonical.js.map +0 -1
  924. package/dist/value/decode.d.ts.map +0 -1
  925. package/dist/value/decode.js.map +0 -1
  926. package/dist/value/equal.d.ts.map +0 -1
  927. package/dist/value/equal.js.map +0 -1
  928. package/dist/value/error.d.ts.map +0 -1
  929. package/dist/value/error.js.map +0 -1
  930. package/dist/value/index.d.ts.map +0 -1
  931. package/dist/value/index.js.map +0 -1
  932. package/dist/value/json.d.ts.map +0 -1
  933. package/dist/value/json.js.map +0 -1
  934. package/dist/value/limits.d.ts.map +0 -1
  935. package/dist/value/limits.js.map +0 -1
  936. package/dist/value/types.d.ts.map +0 -1
  937. package/dist/value/types.js.map +0 -1
  938. package/dist/value/unicode.d.ts.map +0 -1
  939. package/dist/value/unicode.js.map +0 -1
  940. package/dist/version/dispatch.d.ts.map +0 -1
  941. package/dist/version/dispatch.js.map +0 -1
  942. package/dist/version/index.d.ts.map +0 -1
  943. package/dist/version/index.js.map +0 -1
@@ -1,2080 +0,0 @@
1
- /* Generated by scripts/generate-value-schema-meta-validator.mjs. */
2
- /* oxlint-disable */
3
- // @ts-nocheck -- Ajv standalone output is JavaScript with generated function properties.
4
- "use strict";
5
- export const validate = validate20;
6
- export default validate20;
7
- const schema31 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://schemas.astrale.ai/dsl/v1/value-schema", "$vocabulary": {}, "allOf": [{ "$ref": "https://json-schema.org/draft/2020-12/schema" }], "properties": { "fullMatch": { "type": "string" }, "x-astrale-path": { "type": "object" } } };
8
- const schema0 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/schema", "$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/core": true, "https://json-schema.org/draft/2020-12/vocab/applicator": true, "https://json-schema.org/draft/2020-12/vocab/unevaluated": true, "https://json-schema.org/draft/2020-12/vocab/validation": true, "https://json-schema.org/draft/2020-12/vocab/meta-data": true, "https://json-schema.org/draft/2020-12/vocab/format-annotation": true, "https://json-schema.org/draft/2020-12/vocab/content": true }, "$dynamicAnchor": "meta", "title": "Core and Validation specifications meta-schema", "allOf": [{ "$ref": "meta/core" }, { "$ref": "meta/applicator" }, { "$ref": "meta/unevaluated" }, { "$ref": "meta/validation" }, { "$ref": "meta/meta-data" }, { "$ref": "meta/format-annotation" }, { "$ref": "meta/content" }], "type": ["object", "boolean"], "$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", "properties": { "definitions": { "$comment": "\"definitions\" has been replaced by \"$defs\".", "type": "object", "additionalProperties": { "$dynamicRef": "#meta" }, "deprecated": true, "default": {} }, "dependencies": { "$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.", "type": "object", "additionalProperties": { "anyOf": [{ "$dynamicRef": "#meta" }, { "$ref": "meta/validation#/$defs/stringArray" }] }, "deprecated": true, "default": {} }, "$recursiveAnchor": { "$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".", "$ref": "meta/core#/$defs/anchorString", "deprecated": true }, "$recursiveRef": { "$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".", "$ref": "meta/core#/$defs/uriReferenceString", "deprecated": true } } };
9
- const schema23 = { "type": "array", "items": { "type": "string" }, "uniqueItems": true, "default": [] };
10
- const schema5 = { "type": "string", "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$" };
11
- const schema2 = { "type": "string", "format": "uri-reference" };
12
- const schema1 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/core", "$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/core": true }, "$dynamicAnchor": "meta", "title": "Core vocabulary meta-schema", "type": ["object", "boolean"], "properties": { "$id": { "$ref": "#/$defs/uriReferenceString", "$comment": "Non-empty fragments not allowed.", "pattern": "^[^#]*#?$" }, "$schema": { "$ref": "#/$defs/uriString" }, "$ref": { "$ref": "#/$defs/uriReferenceString" }, "$anchor": { "$ref": "#/$defs/anchorString" }, "$dynamicRef": { "$ref": "#/$defs/uriReferenceString" }, "$dynamicAnchor": { "$ref": "#/$defs/anchorString" }, "$vocabulary": { "type": "object", "propertyNames": { "$ref": "#/$defs/uriString" }, "additionalProperties": { "type": "boolean" } }, "$comment": { "type": "string" }, "$defs": { "type": "object", "additionalProperties": { "$dynamicRef": "#meta" } } }, "$defs": { "anchorString": { "type": "string", "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$" }, "uriString": { "type": "string", "format": "uri" }, "uriReferenceString": { "type": "string", "format": "uri-reference" } } };
13
- const schema3 = { "type": "string", "format": "uri" };
14
- const pattern0 = new RegExp("^[^#]*#?$", "u");
15
- const pattern1 = new RegExp("^[A-Za-z_][-A-Za-z0-9._]*$", "u");
16
- function validate1(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17
- /*# sourceURL="https://json-schema.org/draft/2020-12/meta/core" */ ;
18
- let vErrors = null;
19
- let errors = 0;
20
- const evaluated0 = validate1.evaluated;
21
- if (evaluated0.dynamicProps) {
22
- evaluated0.props = undefined;
23
- }
24
- if (evaluated0.dynamicItems) {
25
- evaluated0.items = undefined;
26
- }
27
- if ((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")) {
28
- const err0 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: schema1.type }, message: "must be object,boolean" };
29
- if (vErrors === null) {
30
- vErrors = [err0];
31
- }
32
- else {
33
- vErrors.push(err0);
34
- }
35
- errors++;
36
- }
37
- if (!dynamicAnchors.meta) {
38
- dynamicAnchors.meta = validate1;
39
- }
40
- if (data && typeof data == "object" && !Array.isArray(data)) {
41
- if (data.$id !== undefined) {
42
- let data0 = data.$id;
43
- if (!(typeof data0 === "string")) {
44
- const err1 = { instancePath: instancePath + "/$id", schemaPath: "#/$defs/uriReferenceString/type", keyword: "type", params: { type: "string" }, message: "must be string" };
45
- if (vErrors === null) {
46
- vErrors = [err1];
47
- }
48
- else {
49
- vErrors.push(err1);
50
- }
51
- errors++;
52
- }
53
- if (typeof data0 === "string") {
54
- if (!pattern0.test(data0)) {
55
- const err2 = { instancePath: instancePath + "/$id", schemaPath: "#/properties/%24id/pattern", keyword: "pattern", params: { pattern: "^[^#]*#?$" }, message: "must match pattern \"" + "^[^#]*#?$" + "\"" };
56
- if (vErrors === null) {
57
- vErrors = [err2];
58
- }
59
- else {
60
- vErrors.push(err2);
61
- }
62
- errors++;
63
- }
64
- }
65
- }
66
- if (data.$schema !== undefined) {
67
- if (!(typeof data.$schema === "string")) {
68
- const err3 = { instancePath: instancePath + "/$schema", schemaPath: "#/$defs/uriString/type", keyword: "type", params: { type: "string" }, message: "must be string" };
69
- if (vErrors === null) {
70
- vErrors = [err3];
71
- }
72
- else {
73
- vErrors.push(err3);
74
- }
75
- errors++;
76
- }
77
- }
78
- if (data.$ref !== undefined) {
79
- if (!(typeof data.$ref === "string")) {
80
- const err4 = { instancePath: instancePath + "/$ref", schemaPath: "#/$defs/uriReferenceString/type", keyword: "type", params: { type: "string" }, message: "must be string" };
81
- if (vErrors === null) {
82
- vErrors = [err4];
83
- }
84
- else {
85
- vErrors.push(err4);
86
- }
87
- errors++;
88
- }
89
- }
90
- if (data.$anchor !== undefined) {
91
- let data3 = data.$anchor;
92
- if (typeof data3 === "string") {
93
- if (!pattern1.test(data3)) {
94
- const err5 = { instancePath: instancePath + "/$anchor", schemaPath: "#/$defs/anchorString/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z_][-A-Za-z0-9._]*$" }, message: "must match pattern \"" + "^[A-Za-z_][-A-Za-z0-9._]*$" + "\"" };
95
- if (vErrors === null) {
96
- vErrors = [err5];
97
- }
98
- else {
99
- vErrors.push(err5);
100
- }
101
- errors++;
102
- }
103
- }
104
- else {
105
- const err6 = { instancePath: instancePath + "/$anchor", schemaPath: "#/$defs/anchorString/type", keyword: "type", params: { type: "string" }, message: "must be string" };
106
- if (vErrors === null) {
107
- vErrors = [err6];
108
- }
109
- else {
110
- vErrors.push(err6);
111
- }
112
- errors++;
113
- }
114
- }
115
- if (data.$dynamicRef !== undefined) {
116
- if (!(typeof data.$dynamicRef === "string")) {
117
- const err7 = { instancePath: instancePath + "/$dynamicRef", schemaPath: "#/$defs/uriReferenceString/type", keyword: "type", params: { type: "string" }, message: "must be string" };
118
- if (vErrors === null) {
119
- vErrors = [err7];
120
- }
121
- else {
122
- vErrors.push(err7);
123
- }
124
- errors++;
125
- }
126
- }
127
- if (data.$dynamicAnchor !== undefined) {
128
- let data5 = data.$dynamicAnchor;
129
- if (typeof data5 === "string") {
130
- if (!pattern1.test(data5)) {
131
- const err8 = { instancePath: instancePath + "/$dynamicAnchor", schemaPath: "#/$defs/anchorString/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z_][-A-Za-z0-9._]*$" }, message: "must match pattern \"" + "^[A-Za-z_][-A-Za-z0-9._]*$" + "\"" };
132
- if (vErrors === null) {
133
- vErrors = [err8];
134
- }
135
- else {
136
- vErrors.push(err8);
137
- }
138
- errors++;
139
- }
140
- }
141
- else {
142
- const err9 = { instancePath: instancePath + "/$dynamicAnchor", schemaPath: "#/$defs/anchorString/type", keyword: "type", params: { type: "string" }, message: "must be string" };
143
- if (vErrors === null) {
144
- vErrors = [err9];
145
- }
146
- else {
147
- vErrors.push(err9);
148
- }
149
- errors++;
150
- }
151
- }
152
- if (data.$vocabulary !== undefined) {
153
- let data6 = data.$vocabulary;
154
- if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
155
- for (const key0 in data6) {
156
- const _errs22 = errors;
157
- if (!(typeof key0 === "string")) {
158
- const err10 = { instancePath: instancePath + "/$vocabulary", schemaPath: "#/$defs/uriString/type", keyword: "type", params: { type: "string" }, message: "must be string", propertyName: key0 };
159
- if (vErrors === null) {
160
- vErrors = [err10];
161
- }
162
- else {
163
- vErrors.push(err10);
164
- }
165
- errors++;
166
- }
167
- var valid7 = _errs22 === errors;
168
- if (!valid7) {
169
- const err11 = { instancePath: instancePath + "/$vocabulary", schemaPath: "#/properties/%24vocabulary/propertyNames", keyword: "propertyNames", params: { propertyName: key0 }, message: "property name must be valid" };
170
- if (vErrors === null) {
171
- vErrors = [err11];
172
- }
173
- else {
174
- vErrors.push(err11);
175
- }
176
- errors++;
177
- }
178
- }
179
- for (const key1 in data6) {
180
- if (typeof data6[key1] !== "boolean") {
181
- const err12 = { instancePath: instancePath + "/$vocabulary/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/%24vocabulary/additionalProperties/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
182
- if (vErrors === null) {
183
- vErrors = [err12];
184
- }
185
- else {
186
- vErrors.push(err12);
187
- }
188
- errors++;
189
- }
190
- }
191
- }
192
- else {
193
- const err13 = { instancePath: instancePath + "/$vocabulary", schemaPath: "#/properties/%24vocabulary/type", keyword: "type", params: { type: "object" }, message: "must be object" };
194
- if (vErrors === null) {
195
- vErrors = [err13];
196
- }
197
- else {
198
- vErrors.push(err13);
199
- }
200
- errors++;
201
- }
202
- }
203
- if (data.$comment !== undefined) {
204
- if (typeof data.$comment !== "string") {
205
- const err14 = { instancePath: instancePath + "/$comment", schemaPath: "#/properties/%24comment/type", keyword: "type", params: { type: "string" }, message: "must be string" };
206
- if (vErrors === null) {
207
- vErrors = [err14];
208
- }
209
- else {
210
- vErrors.push(err14);
211
- }
212
- errors++;
213
- }
214
- }
215
- if (data.$defs !== undefined) {
216
- let data9 = data.$defs;
217
- if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
218
- for (const key2 in data9) {
219
- let data10 = data9[key2];
220
- let _v0 = dynamicAnchors.meta;
221
- if (_v0) {
222
- if (!(_v0(data10, { instancePath: instancePath + "/$defs/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data9, parentDataProperty: key2, rootData, dynamicAnchors }))) {
223
- vErrors = vErrors === null ? _v0.errors : vErrors.concat(_v0.errors);
224
- errors = vErrors.length;
225
- }
226
- else {
227
- var props0 = _v0.evaluated.props;
228
- var items0 = _v0.evaluated.items;
229
- }
230
- }
231
- else {
232
- if (!(validate1(data10, { instancePath: instancePath + "/$defs/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data9, parentDataProperty: key2, rootData, dynamicAnchors }))) {
233
- vErrors = vErrors === null ? validate1.errors : vErrors.concat(validate1.errors);
234
- errors = vErrors.length;
235
- }
236
- else {
237
- var props1 = validate1.evaluated.props;
238
- if (props0 !== true && props1 !== undefined) {
239
- if (props1 === true) {
240
- props0 = true;
241
- }
242
- else {
243
- props0 = props0 || {};
244
- Object.assign(props0, props1);
245
- }
246
- }
247
- var items1 = validate1.evaluated.items;
248
- if (items0 !== true && items1 !== undefined) {
249
- items0 = items1 === true ? true : items0 > items1 ? items0 : items1;
250
- }
251
- }
252
- }
253
- }
254
- }
255
- else {
256
- const err15 = { instancePath: instancePath + "/$defs", schemaPath: "#/properties/%24defs/type", keyword: "type", params: { type: "object" }, message: "must be object" };
257
- if (vErrors === null) {
258
- vErrors = [err15];
259
- }
260
- else {
261
- vErrors.push(err15);
262
- }
263
- errors++;
264
- }
265
- }
266
- }
267
- validate1.errors = vErrors;
268
- return errors === 0;
269
- }
270
- validate1.evaluated = { "props": { "$id": true, "$schema": true, "$ref": true, "$anchor": true, "$dynamicRef": true, "$dynamicAnchor": true, "$vocabulary": true, "$comment": true, "$defs": true }, "dynamicProps": false, "dynamicItems": false };
271
- const schema9 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/applicator", "$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/applicator": true }, "$dynamicAnchor": "meta", "title": "Applicator vocabulary meta-schema", "type": ["object", "boolean"], "properties": { "prefixItems": { "$ref": "#/$defs/schemaArray" }, "items": { "$dynamicRef": "#meta" }, "contains": { "$dynamicRef": "#meta" }, "additionalProperties": { "$dynamicRef": "#meta" }, "properties": { "type": "object", "additionalProperties": { "$dynamicRef": "#meta" }, "default": {} }, "patternProperties": { "type": "object", "additionalProperties": { "$dynamicRef": "#meta" }, "propertyNames": { "format": "regex" }, "default": {} }, "dependentSchemas": { "type": "object", "additionalProperties": { "$dynamicRef": "#meta" }, "default": {} }, "propertyNames": { "$dynamicRef": "#meta" }, "if": { "$dynamicRef": "#meta" }, "then": { "$dynamicRef": "#meta" }, "else": { "$dynamicRef": "#meta" }, "allOf": { "$ref": "#/$defs/schemaArray" }, "anyOf": { "$ref": "#/$defs/schemaArray" }, "oneOf": { "$ref": "#/$defs/schemaArray" }, "not": { "$dynamicRef": "#meta" } }, "$defs": { "schemaArray": { "type": "array", "minItems": 1, "items": { "$dynamicRef": "#meta" } } } };
272
- const schema10 = { "type": "array", "minItems": 1, "items": { "$dynamicRef": "#meta" } };
273
- function validate4(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
274
- let vErrors = null;
275
- let errors = 0;
276
- const evaluated0 = validate4.evaluated;
277
- if (evaluated0.dynamicProps) {
278
- evaluated0.props = undefined;
279
- }
280
- if (evaluated0.dynamicItems) {
281
- evaluated0.items = undefined;
282
- }
283
- if (Array.isArray(data)) {
284
- if (data.length < 1) {
285
- const err0 = { instancePath, schemaPath: "#/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
286
- if (vErrors === null) {
287
- vErrors = [err0];
288
- }
289
- else {
290
- vErrors.push(err0);
291
- }
292
- errors++;
293
- }
294
- const len0 = data.length;
295
- for (let i0 = 0; i0 < len0; i0++) {
296
- let data0 = data[i0];
297
- let _v0 = dynamicAnchors.meta;
298
- if (_v0) {
299
- if (!(_v0(data0, { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors }))) {
300
- vErrors = vErrors === null ? _v0.errors : vErrors.concat(_v0.errors);
301
- errors = vErrors.length;
302
- }
303
- else {
304
- var props0 = _v0.evaluated.props;
305
- var items0 = _v0.evaluated.items;
306
- }
307
- }
308
- else {
309
- if (!(validate4(data0, { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors }))) {
310
- vErrors = vErrors === null ? validate4.errors : vErrors.concat(validate4.errors);
311
- errors = vErrors.length;
312
- }
313
- else {
314
- var props1 = validate4.evaluated.props;
315
- if (props0 !== true && props1 !== undefined) {
316
- if (props1 === true) {
317
- props0 = true;
318
- }
319
- else {
320
- props0 = props0 || {};
321
- Object.assign(props0, props1);
322
- }
323
- }
324
- var items1 = validate4.evaluated.items;
325
- if (items0 !== true && items1 !== undefined) {
326
- items0 = items1 === true ? true : items0 > items1 ? items0 : items1;
327
- }
328
- }
329
- }
330
- }
331
- }
332
- else {
333
- const err1 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" };
334
- if (vErrors === null) {
335
- vErrors = [err1];
336
- }
337
- else {
338
- vErrors.push(err1);
339
- }
340
- errors++;
341
- }
342
- validate4.errors = vErrors;
343
- return errors === 0;
344
- }
345
- validate4.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
346
- function validate3(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
347
- /*# sourceURL="https://json-schema.org/draft/2020-12/meta/applicator" */ ;
348
- let vErrors = null;
349
- let errors = 0;
350
- const evaluated0 = validate3.evaluated;
351
- if (evaluated0.dynamicProps) {
352
- evaluated0.props = undefined;
353
- }
354
- if (evaluated0.dynamicItems) {
355
- evaluated0.items = undefined;
356
- }
357
- if ((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")) {
358
- const err0 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: schema9.type }, message: "must be object,boolean" };
359
- if (vErrors === null) {
360
- vErrors = [err0];
361
- }
362
- else {
363
- vErrors.push(err0);
364
- }
365
- errors++;
366
- }
367
- if (!dynamicAnchors.meta) {
368
- dynamicAnchors.meta = validate3;
369
- }
370
- if (data && typeof data == "object" && !Array.isArray(data)) {
371
- if (data.prefixItems !== undefined) {
372
- if (!(validate4(data.prefixItems, { instancePath: instancePath + "/prefixItems", parentData: data, parentDataProperty: "prefixItems", rootData, dynamicAnchors }))) {
373
- vErrors = vErrors === null ? validate4.errors : vErrors.concat(validate4.errors);
374
- errors = vErrors.length;
375
- }
376
- }
377
- if (data.items !== undefined) {
378
- let data1 = data.items;
379
- let _v0 = dynamicAnchors.meta;
380
- if (_v0) {
381
- if (!(_v0(data1, { instancePath: instancePath + "/items", parentData: data, parentDataProperty: "items", rootData, dynamicAnchors }))) {
382
- vErrors = vErrors === null ? _v0.errors : vErrors.concat(_v0.errors);
383
- errors = vErrors.length;
384
- }
385
- else {
386
- var props0 = _v0.evaluated.props;
387
- var items0 = _v0.evaluated.items;
388
- }
389
- }
390
- else {
391
- if (!(validate3(data1, { instancePath: instancePath + "/items", parentData: data, parentDataProperty: "items", rootData, dynamicAnchors }))) {
392
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
393
- errors = vErrors.length;
394
- }
395
- else {
396
- var props1 = validate3.evaluated.props;
397
- if (props0 !== true && props1 !== undefined) {
398
- if (props1 === true) {
399
- props0 = true;
400
- }
401
- else {
402
- props0 = props0 || {};
403
- Object.assign(props0, props1);
404
- }
405
- }
406
- var items1 = validate3.evaluated.items;
407
- if (items0 !== true && items1 !== undefined) {
408
- items0 = items1 === true ? true : items0 > items1 ? items0 : items1;
409
- }
410
- }
411
- }
412
- }
413
- if (data.contains !== undefined) {
414
- let data2 = data.contains;
415
- let _v1 = dynamicAnchors.meta;
416
- if (_v1) {
417
- if (!(_v1(data2, { instancePath: instancePath + "/contains", parentData: data, parentDataProperty: "contains", rootData, dynamicAnchors }))) {
418
- vErrors = vErrors === null ? _v1.errors : vErrors.concat(_v1.errors);
419
- errors = vErrors.length;
420
- }
421
- else {
422
- var props2 = _v1.evaluated.props;
423
- var items2 = _v1.evaluated.items;
424
- }
425
- }
426
- else {
427
- if (!(validate3(data2, { instancePath: instancePath + "/contains", parentData: data, parentDataProperty: "contains", rootData, dynamicAnchors }))) {
428
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
429
- errors = vErrors.length;
430
- }
431
- else {
432
- var props3 = validate3.evaluated.props;
433
- if (props2 !== true && props3 !== undefined) {
434
- if (props3 === true) {
435
- props2 = true;
436
- }
437
- else {
438
- props2 = props2 || {};
439
- Object.assign(props2, props3);
440
- }
441
- }
442
- var items3 = validate3.evaluated.items;
443
- if (items2 !== true && items3 !== undefined) {
444
- items2 = items3 === true ? true : items2 > items3 ? items2 : items3;
445
- }
446
- }
447
- }
448
- }
449
- if (data.additionalProperties !== undefined) {
450
- let data3 = data.additionalProperties;
451
- let _v2 = dynamicAnchors.meta;
452
- if (_v2) {
453
- if (!(_v2(data3, { instancePath: instancePath + "/additionalProperties", parentData: data, parentDataProperty: "additionalProperties", rootData, dynamicAnchors }))) {
454
- vErrors = vErrors === null ? _v2.errors : vErrors.concat(_v2.errors);
455
- errors = vErrors.length;
456
- }
457
- else {
458
- var props4 = _v2.evaluated.props;
459
- var items4 = _v2.evaluated.items;
460
- }
461
- }
462
- else {
463
- if (!(validate3(data3, { instancePath: instancePath + "/additionalProperties", parentData: data, parentDataProperty: "additionalProperties", rootData, dynamicAnchors }))) {
464
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
465
- errors = vErrors.length;
466
- }
467
- else {
468
- var props5 = validate3.evaluated.props;
469
- if (props4 !== true && props5 !== undefined) {
470
- if (props5 === true) {
471
- props4 = true;
472
- }
473
- else {
474
- props4 = props4 || {};
475
- Object.assign(props4, props5);
476
- }
477
- }
478
- var items5 = validate3.evaluated.items;
479
- if (items4 !== true && items5 !== undefined) {
480
- items4 = items5 === true ? true : items4 > items5 ? items4 : items5;
481
- }
482
- }
483
- }
484
- }
485
- if (data.properties !== undefined) {
486
- let data4 = data.properties;
487
- if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
488
- for (const key0 in data4) {
489
- let data5 = data4[key0];
490
- let _v3 = dynamicAnchors.meta;
491
- if (_v3) {
492
- if (!(_v3(data5, { instancePath: instancePath + "/properties/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data4, parentDataProperty: key0, rootData, dynamicAnchors }))) {
493
- vErrors = vErrors === null ? _v3.errors : vErrors.concat(_v3.errors);
494
- errors = vErrors.length;
495
- }
496
- else {
497
- var props6 = _v3.evaluated.props;
498
- var items6 = _v3.evaluated.items;
499
- }
500
- }
501
- else {
502
- if (!(validate3(data5, { instancePath: instancePath + "/properties/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data4, parentDataProperty: key0, rootData, dynamicAnchors }))) {
503
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
504
- errors = vErrors.length;
505
- }
506
- else {
507
- var props7 = validate3.evaluated.props;
508
- if (props6 !== true && props7 !== undefined) {
509
- if (props7 === true) {
510
- props6 = true;
511
- }
512
- else {
513
- props6 = props6 || {};
514
- Object.assign(props6, props7);
515
- }
516
- }
517
- var items7 = validate3.evaluated.items;
518
- if (items6 !== true && items7 !== undefined) {
519
- items6 = items7 === true ? true : items6 > items7 ? items6 : items7;
520
- }
521
- }
522
- }
523
- }
524
- }
525
- else {
526
- const err1 = { instancePath: instancePath + "/properties", schemaPath: "#/properties/properties/type", keyword: "type", params: { type: "object" }, message: "must be object" };
527
- if (vErrors === null) {
528
- vErrors = [err1];
529
- }
530
- else {
531
- vErrors.push(err1);
532
- }
533
- errors++;
534
- }
535
- }
536
- if (data.patternProperties !== undefined) {
537
- let data6 = data.patternProperties;
538
- if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
539
- for (const key1 in data6) {
540
- const _errs11 = errors;
541
- var valid2 = _errs11 === errors;
542
- if (!valid2) {
543
- const err2 = { instancePath: instancePath + "/patternProperties", schemaPath: "#/properties/patternProperties/propertyNames", keyword: "propertyNames", params: { propertyName: key1 }, message: "property name must be valid" };
544
- if (vErrors === null) {
545
- vErrors = [err2];
546
- }
547
- else {
548
- vErrors.push(err2);
549
- }
550
- errors++;
551
- }
552
- }
553
- for (const key2 in data6) {
554
- let data7 = data6[key2];
555
- let _v4 = dynamicAnchors.meta;
556
- if (_v4) {
557
- if (!(_v4(data7, { instancePath: instancePath + "/patternProperties/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data6, parentDataProperty: key2, rootData, dynamicAnchors }))) {
558
- vErrors = vErrors === null ? _v4.errors : vErrors.concat(_v4.errors);
559
- errors = vErrors.length;
560
- }
561
- else {
562
- var props8 = _v4.evaluated.props;
563
- var items8 = _v4.evaluated.items;
564
- }
565
- }
566
- else {
567
- if (!(validate3(data7, { instancePath: instancePath + "/patternProperties/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data6, parentDataProperty: key2, rootData, dynamicAnchors }))) {
568
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
569
- errors = vErrors.length;
570
- }
571
- else {
572
- var props9 = validate3.evaluated.props;
573
- if (props8 !== true && props9 !== undefined) {
574
- if (props9 === true) {
575
- props8 = true;
576
- }
577
- else {
578
- props8 = props8 || {};
579
- Object.assign(props8, props9);
580
- }
581
- }
582
- var items9 = validate3.evaluated.items;
583
- if (items8 !== true && items9 !== undefined) {
584
- items8 = items9 === true ? true : items8 > items9 ? items8 : items9;
585
- }
586
- }
587
- }
588
- }
589
- }
590
- else {
591
- const err3 = { instancePath: instancePath + "/patternProperties", schemaPath: "#/properties/patternProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" };
592
- if (vErrors === null) {
593
- vErrors = [err3];
594
- }
595
- else {
596
- vErrors.push(err3);
597
- }
598
- errors++;
599
- }
600
- }
601
- if (data.dependentSchemas !== undefined) {
602
- let data8 = data.dependentSchemas;
603
- if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
604
- for (const key3 in data8) {
605
- let data9 = data8[key3];
606
- let _v5 = dynamicAnchors.meta;
607
- if (_v5) {
608
- if (!(_v5(data9, { instancePath: instancePath + "/dependentSchemas/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data8, parentDataProperty: key3, rootData, dynamicAnchors }))) {
609
- vErrors = vErrors === null ? _v5.errors : vErrors.concat(_v5.errors);
610
- errors = vErrors.length;
611
- }
612
- else {
613
- var props10 = _v5.evaluated.props;
614
- var items10 = _v5.evaluated.items;
615
- }
616
- }
617
- else {
618
- if (!(validate3(data9, { instancePath: instancePath + "/dependentSchemas/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data8, parentDataProperty: key3, rootData, dynamicAnchors }))) {
619
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
620
- errors = vErrors.length;
621
- }
622
- else {
623
- var props11 = validate3.evaluated.props;
624
- if (props10 !== true && props11 !== undefined) {
625
- if (props11 === true) {
626
- props10 = true;
627
- }
628
- else {
629
- props10 = props10 || {};
630
- Object.assign(props10, props11);
631
- }
632
- }
633
- var items11 = validate3.evaluated.items;
634
- if (items10 !== true && items11 !== undefined) {
635
- items10 = items11 === true ? true : items10 > items11 ? items10 : items11;
636
- }
637
- }
638
- }
639
- }
640
- }
641
- else {
642
- const err4 = { instancePath: instancePath + "/dependentSchemas", schemaPath: "#/properties/dependentSchemas/type", keyword: "type", params: { type: "object" }, message: "must be object" };
643
- if (vErrors === null) {
644
- vErrors = [err4];
645
- }
646
- else {
647
- vErrors.push(err4);
648
- }
649
- errors++;
650
- }
651
- }
652
- if (data.propertyNames !== undefined) {
653
- let data10 = data.propertyNames;
654
- let _v6 = dynamicAnchors.meta;
655
- if (_v6) {
656
- if (!(_v6(data10, { instancePath: instancePath + "/propertyNames", parentData: data, parentDataProperty: "propertyNames", rootData, dynamicAnchors }))) {
657
- vErrors = vErrors === null ? _v6.errors : vErrors.concat(_v6.errors);
658
- errors = vErrors.length;
659
- }
660
- else {
661
- var props12 = _v6.evaluated.props;
662
- var items12 = _v6.evaluated.items;
663
- }
664
- }
665
- else {
666
- if (!(validate3(data10, { instancePath: instancePath + "/propertyNames", parentData: data, parentDataProperty: "propertyNames", rootData, dynamicAnchors }))) {
667
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
668
- errors = vErrors.length;
669
- }
670
- else {
671
- var props13 = validate3.evaluated.props;
672
- if (props12 !== true && props13 !== undefined) {
673
- if (props13 === true) {
674
- props12 = true;
675
- }
676
- else {
677
- props12 = props12 || {};
678
- Object.assign(props12, props13);
679
- }
680
- }
681
- var items13 = validate3.evaluated.items;
682
- if (items12 !== true && items13 !== undefined) {
683
- items12 = items13 === true ? true : items12 > items13 ? items12 : items13;
684
- }
685
- }
686
- }
687
- }
688
- if (data.if !== undefined) {
689
- let data11 = data.if;
690
- let _v7 = dynamicAnchors.meta;
691
- if (_v7) {
692
- if (!(_v7(data11, { instancePath: instancePath + "/if", parentData: data, parentDataProperty: "if", rootData, dynamicAnchors }))) {
693
- vErrors = vErrors === null ? _v7.errors : vErrors.concat(_v7.errors);
694
- errors = vErrors.length;
695
- }
696
- else {
697
- var props14 = _v7.evaluated.props;
698
- var items14 = _v7.evaluated.items;
699
- }
700
- }
701
- else {
702
- if (!(validate3(data11, { instancePath: instancePath + "/if", parentData: data, parentDataProperty: "if", rootData, dynamicAnchors }))) {
703
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
704
- errors = vErrors.length;
705
- }
706
- else {
707
- var props15 = validate3.evaluated.props;
708
- if (props14 !== true && props15 !== undefined) {
709
- if (props15 === true) {
710
- props14 = true;
711
- }
712
- else {
713
- props14 = props14 || {};
714
- Object.assign(props14, props15);
715
- }
716
- }
717
- var items15 = validate3.evaluated.items;
718
- if (items14 !== true && items15 !== undefined) {
719
- items14 = items15 === true ? true : items14 > items15 ? items14 : items15;
720
- }
721
- }
722
- }
723
- }
724
- if (data.then !== undefined) {
725
- let data12 = data.then;
726
- let _v8 = dynamicAnchors.meta;
727
- if (_v8) {
728
- if (!(_v8(data12, { instancePath: instancePath + "/then", parentData: data, parentDataProperty: "then", rootData, dynamicAnchors }))) {
729
- vErrors = vErrors === null ? _v8.errors : vErrors.concat(_v8.errors);
730
- errors = vErrors.length;
731
- }
732
- else {
733
- var props16 = _v8.evaluated.props;
734
- var items16 = _v8.evaluated.items;
735
- }
736
- }
737
- else {
738
- if (!(validate3(data12, { instancePath: instancePath + "/then", parentData: data, parentDataProperty: "then", rootData, dynamicAnchors }))) {
739
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
740
- errors = vErrors.length;
741
- }
742
- else {
743
- var props17 = validate3.evaluated.props;
744
- if (props16 !== true && props17 !== undefined) {
745
- if (props17 === true) {
746
- props16 = true;
747
- }
748
- else {
749
- props16 = props16 || {};
750
- Object.assign(props16, props17);
751
- }
752
- }
753
- var items17 = validate3.evaluated.items;
754
- if (items16 !== true && items17 !== undefined) {
755
- items16 = items17 === true ? true : items16 > items17 ? items16 : items17;
756
- }
757
- }
758
- }
759
- }
760
- if (data.else !== undefined) {
761
- let data13 = data.else;
762
- let _v9 = dynamicAnchors.meta;
763
- if (_v9) {
764
- if (!(_v9(data13, { instancePath: instancePath + "/else", parentData: data, parentDataProperty: "else", rootData, dynamicAnchors }))) {
765
- vErrors = vErrors === null ? _v9.errors : vErrors.concat(_v9.errors);
766
- errors = vErrors.length;
767
- }
768
- else {
769
- var props18 = _v9.evaluated.props;
770
- var items18 = _v9.evaluated.items;
771
- }
772
- }
773
- else {
774
- if (!(validate3(data13, { instancePath: instancePath + "/else", parentData: data, parentDataProperty: "else", rootData, dynamicAnchors }))) {
775
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
776
- errors = vErrors.length;
777
- }
778
- else {
779
- var props19 = validate3.evaluated.props;
780
- if (props18 !== true && props19 !== undefined) {
781
- if (props19 === true) {
782
- props18 = true;
783
- }
784
- else {
785
- props18 = props18 || {};
786
- Object.assign(props18, props19);
787
- }
788
- }
789
- var items19 = validate3.evaluated.items;
790
- if (items18 !== true && items19 !== undefined) {
791
- items18 = items19 === true ? true : items18 > items19 ? items18 : items19;
792
- }
793
- }
794
- }
795
- }
796
- if (data.allOf !== undefined) {
797
- if (!(validate4(data.allOf, { instancePath: instancePath + "/allOf", parentData: data, parentDataProperty: "allOf", rootData, dynamicAnchors }))) {
798
- vErrors = vErrors === null ? validate4.errors : vErrors.concat(validate4.errors);
799
- errors = vErrors.length;
800
- }
801
- }
802
- if (data.anyOf !== undefined) {
803
- if (!(validate4(data.anyOf, { instancePath: instancePath + "/anyOf", parentData: data, parentDataProperty: "anyOf", rootData, dynamicAnchors }))) {
804
- vErrors = vErrors === null ? validate4.errors : vErrors.concat(validate4.errors);
805
- errors = vErrors.length;
806
- }
807
- }
808
- if (data.oneOf !== undefined) {
809
- if (!(validate4(data.oneOf, { instancePath: instancePath + "/oneOf", parentData: data, parentDataProperty: "oneOf", rootData, dynamicAnchors }))) {
810
- vErrors = vErrors === null ? validate4.errors : vErrors.concat(validate4.errors);
811
- errors = vErrors.length;
812
- }
813
- }
814
- if (data.not !== undefined) {
815
- let data17 = data.not;
816
- let _v10 = dynamicAnchors.meta;
817
- if (_v10) {
818
- if (!(_v10(data17, { instancePath: instancePath + "/not", parentData: data, parentDataProperty: "not", rootData, dynamicAnchors }))) {
819
- vErrors = vErrors === null ? _v10.errors : vErrors.concat(_v10.errors);
820
- errors = vErrors.length;
821
- }
822
- else {
823
- var props20 = _v10.evaluated.props;
824
- var items20 = _v10.evaluated.items;
825
- }
826
- }
827
- else {
828
- if (!(validate3(data17, { instancePath: instancePath + "/not", parentData: data, parentDataProperty: "not", rootData, dynamicAnchors }))) {
829
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
830
- errors = vErrors.length;
831
- }
832
- else {
833
- var props21 = validate3.evaluated.props;
834
- if (props20 !== true && props21 !== undefined) {
835
- if (props21 === true) {
836
- props20 = true;
837
- }
838
- else {
839
- props20 = props20 || {};
840
- Object.assign(props20, props21);
841
- }
842
- }
843
- var items21 = validate3.evaluated.items;
844
- if (items20 !== true && items21 !== undefined) {
845
- items20 = items21 === true ? true : items20 > items21 ? items20 : items21;
846
- }
847
- }
848
- }
849
- }
850
- }
851
- validate3.errors = vErrors;
852
- return errors === 0;
853
- }
854
- validate3.evaluated = { "props": { "prefixItems": true, "items": true, "contains": true, "additionalProperties": true, "properties": true, "patternProperties": true, "dependentSchemas": true, "propertyNames": true, "if": true, "then": true, "else": true, "allOf": true, "anyOf": true, "oneOf": true, "not": true }, "dynamicProps": false, "dynamicItems": false };
855
- const schema11 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated", "$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/unevaluated": true }, "$dynamicAnchor": "meta", "title": "Unevaluated applicator vocabulary meta-schema", "type": ["object", "boolean"], "properties": { "unevaluatedItems": { "$dynamicRef": "#meta" }, "unevaluatedProperties": { "$dynamicRef": "#meta" } } };
856
- function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
857
- /*# sourceURL="https://json-schema.org/draft/2020-12/meta/unevaluated" */ ;
858
- let vErrors = null;
859
- let errors = 0;
860
- const evaluated0 = validate10.evaluated;
861
- if (evaluated0.dynamicProps) {
862
- evaluated0.props = undefined;
863
- }
864
- if (evaluated0.dynamicItems) {
865
- evaluated0.items = undefined;
866
- }
867
- if ((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")) {
868
- const err0 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: schema11.type }, message: "must be object,boolean" };
869
- if (vErrors === null) {
870
- vErrors = [err0];
871
- }
872
- else {
873
- vErrors.push(err0);
874
- }
875
- errors++;
876
- }
877
- if (!dynamicAnchors.meta) {
878
- dynamicAnchors.meta = validate10;
879
- }
880
- if (data && typeof data == "object" && !Array.isArray(data)) {
881
- if (data.unevaluatedItems !== undefined) {
882
- let data0 = data.unevaluatedItems;
883
- let _v0 = dynamicAnchors.meta;
884
- if (_v0) {
885
- if (!(_v0(data0, { instancePath: instancePath + "/unevaluatedItems", parentData: data, parentDataProperty: "unevaluatedItems", rootData, dynamicAnchors }))) {
886
- vErrors = vErrors === null ? _v0.errors : vErrors.concat(_v0.errors);
887
- errors = vErrors.length;
888
- }
889
- else {
890
- var props0 = _v0.evaluated.props;
891
- var items0 = _v0.evaluated.items;
892
- }
893
- }
894
- else {
895
- if (!(validate10(data0, { instancePath: instancePath + "/unevaluatedItems", parentData: data, parentDataProperty: "unevaluatedItems", rootData, dynamicAnchors }))) {
896
- vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
897
- errors = vErrors.length;
898
- }
899
- else {
900
- var props1 = validate10.evaluated.props;
901
- if (props0 !== true && props1 !== undefined) {
902
- if (props1 === true) {
903
- props0 = true;
904
- }
905
- else {
906
- props0 = props0 || {};
907
- Object.assign(props0, props1);
908
- }
909
- }
910
- var items1 = validate10.evaluated.items;
911
- if (items0 !== true && items1 !== undefined) {
912
- items0 = items1 === true ? true : items0 > items1 ? items0 : items1;
913
- }
914
- }
915
- }
916
- }
917
- if (data.unevaluatedProperties !== undefined) {
918
- let data1 = data.unevaluatedProperties;
919
- let _v1 = dynamicAnchors.meta;
920
- if (_v1) {
921
- if (!(_v1(data1, { instancePath: instancePath + "/unevaluatedProperties", parentData: data, parentDataProperty: "unevaluatedProperties", rootData, dynamicAnchors }))) {
922
- vErrors = vErrors === null ? _v1.errors : vErrors.concat(_v1.errors);
923
- errors = vErrors.length;
924
- }
925
- else {
926
- var props2 = _v1.evaluated.props;
927
- var items2 = _v1.evaluated.items;
928
- }
929
- }
930
- else {
931
- if (!(validate10(data1, { instancePath: instancePath + "/unevaluatedProperties", parentData: data, parentDataProperty: "unevaluatedProperties", rootData, dynamicAnchors }))) {
932
- vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
933
- errors = vErrors.length;
934
- }
935
- else {
936
- var props3 = validate10.evaluated.props;
937
- if (props2 !== true && props3 !== undefined) {
938
- if (props3 === true) {
939
- props2 = true;
940
- }
941
- else {
942
- props2 = props2 || {};
943
- Object.assign(props2, props3);
944
- }
945
- }
946
- var items3 = validate10.evaluated.items;
947
- if (items2 !== true && items3 !== undefined) {
948
- items2 = items3 === true ? true : items2 > items3 ? items2 : items3;
949
- }
950
- }
951
- }
952
- }
953
- }
954
- validate10.errors = vErrors;
955
- return errors === 0;
956
- }
957
- validate10.evaluated = { "props": { "unevaluatedItems": true, "unevaluatedProperties": true }, "dynamicProps": false, "dynamicItems": false };
958
- const schema12 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/validation", "$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/validation": true }, "$dynamicAnchor": "meta", "title": "Validation vocabulary meta-schema", "type": ["object", "boolean"], "properties": { "type": { "anyOf": [{ "$ref": "#/$defs/simpleTypes" }, { "type": "array", "items": { "$ref": "#/$defs/simpleTypes" }, "minItems": 1, "uniqueItems": true }] }, "const": true, "enum": { "type": "array", "items": true }, "multipleOf": { "type": "number", "exclusiveMinimum": 0 }, "maximum": { "type": "number" }, "exclusiveMaximum": { "type": "number" }, "minimum": { "type": "number" }, "exclusiveMinimum": { "type": "number" }, "maxLength": { "$ref": "#/$defs/nonNegativeInteger" }, "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" }, "pattern": { "type": "string", "format": "regex" }, "maxItems": { "$ref": "#/$defs/nonNegativeInteger" }, "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" }, "uniqueItems": { "type": "boolean", "default": false }, "maxContains": { "$ref": "#/$defs/nonNegativeInteger" }, "minContains": { "$ref": "#/$defs/nonNegativeInteger", "default": 1 }, "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" }, "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" }, "required": { "$ref": "#/$defs/stringArray" }, "dependentRequired": { "type": "object", "additionalProperties": { "$ref": "#/$defs/stringArray" } } }, "$defs": { "nonNegativeInteger": { "type": "integer", "minimum": 0 }, "nonNegativeIntegerDefault0": { "$ref": "#/$defs/nonNegativeInteger", "default": 0 }, "simpleTypes": { "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] }, "stringArray": { "type": "array", "items": { "type": "string" }, "uniqueItems": true, "default": [] } } };
959
- const schema13 = { "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] };
960
- const schema15 = { "type": "integer", "minimum": 0 };
961
- import { equal as func0 } from "../../../../value/index.js";
962
- function validate12(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
963
- /*# sourceURL="https://json-schema.org/draft/2020-12/meta/validation" */ ;
964
- let vErrors = null;
965
- let errors = 0;
966
- const evaluated0 = validate12.evaluated;
967
- if (evaluated0.dynamicProps) {
968
- evaluated0.props = undefined;
969
- }
970
- if (evaluated0.dynamicItems) {
971
- evaluated0.items = undefined;
972
- }
973
- if ((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")) {
974
- const err0 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: schema12.type }, message: "must be object,boolean" };
975
- if (vErrors === null) {
976
- vErrors = [err0];
977
- }
978
- else {
979
- vErrors.push(err0);
980
- }
981
- errors++;
982
- }
983
- if (!dynamicAnchors.meta) {
984
- dynamicAnchors.meta = validate12;
985
- }
986
- if (data && typeof data == "object" && !Array.isArray(data)) {
987
- if (data.type !== undefined) {
988
- let data0 = data.type;
989
- const _errs2 = errors;
990
- let valid1 = false;
991
- const _errs3 = errors;
992
- if (!(((((((data0 === "array") || (data0 === "boolean")) || (data0 === "integer")) || (data0 === "null")) || (data0 === "number")) || (data0 === "object")) || (data0 === "string"))) {
993
- const err1 = { instancePath: instancePath + "/type", schemaPath: "#/$defs/simpleTypes/enum", keyword: "enum", params: { allowedValues: schema13.enum }, message: "must be equal to one of the allowed values" };
994
- if (vErrors === null) {
995
- vErrors = [err1];
996
- }
997
- else {
998
- vErrors.push(err1);
999
- }
1000
- errors++;
1001
- }
1002
- var _valid0 = _errs3 === errors;
1003
- valid1 = valid1 || _valid0;
1004
- const _errs5 = errors;
1005
- if (Array.isArray(data0)) {
1006
- if (data0.length < 1) {
1007
- const err2 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/anyOf/1/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
1008
- if (vErrors === null) {
1009
- vErrors = [err2];
1010
- }
1011
- else {
1012
- vErrors.push(err2);
1013
- }
1014
- errors++;
1015
- }
1016
- const len0 = data0.length;
1017
- for (let i0 = 0; i0 < len0; i0++) {
1018
- let data1 = data0[i0];
1019
- if (!(((((((data1 === "array") || (data1 === "boolean")) || (data1 === "integer")) || (data1 === "null")) || (data1 === "number")) || (data1 === "object")) || (data1 === "string"))) {
1020
- const err3 = { instancePath: instancePath + "/type/" + i0, schemaPath: "#/$defs/simpleTypes/enum", keyword: "enum", params: { allowedValues: schema13.enum }, message: "must be equal to one of the allowed values" };
1021
- if (vErrors === null) {
1022
- vErrors = [err3];
1023
- }
1024
- else {
1025
- vErrors.push(err3);
1026
- }
1027
- errors++;
1028
- }
1029
- }
1030
- let i1 = data0.length;
1031
- let j0;
1032
- if (i1 > 1) {
1033
- outer0: for (; i1--;) {
1034
- for (j0 = i1; j0--;) {
1035
- if (func0(data0[i1], data0[j0])) {
1036
- const err4 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/anyOf/1/uniqueItems", keyword: "uniqueItems", params: { i: i1, j: j0 }, message: "must NOT have duplicate items (items ## " + j0 + " and " + i1 + " are identical)" };
1037
- if (vErrors === null) {
1038
- vErrors = [err4];
1039
- }
1040
- else {
1041
- vErrors.push(err4);
1042
- }
1043
- errors++;
1044
- break outer0;
1045
- }
1046
- }
1047
- }
1048
- }
1049
- }
1050
- else {
1051
- const err5 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1052
- if (vErrors === null) {
1053
- vErrors = [err5];
1054
- }
1055
- else {
1056
- vErrors.push(err5);
1057
- }
1058
- errors++;
1059
- }
1060
- var _valid0 = _errs5 === errors;
1061
- valid1 = valid1 || _valid0;
1062
- if (!valid1) {
1063
- const err6 = { instancePath: instancePath + "/type", schemaPath: "#/properties/type/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1064
- if (vErrors === null) {
1065
- vErrors = [err6];
1066
- }
1067
- else {
1068
- vErrors.push(err6);
1069
- }
1070
- errors++;
1071
- }
1072
- else {
1073
- errors = _errs2;
1074
- if (vErrors !== null) {
1075
- if (_errs2) {
1076
- vErrors.length = _errs2;
1077
- }
1078
- else {
1079
- vErrors = null;
1080
- }
1081
- }
1082
- }
1083
- }
1084
- if (data.enum !== undefined) {
1085
- if (!(Array.isArray(data.enum))) {
1086
- const err7 = { instancePath: instancePath + "/enum", schemaPath: "#/properties/enum/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1087
- if (vErrors === null) {
1088
- vErrors = [err7];
1089
- }
1090
- else {
1091
- vErrors.push(err7);
1092
- }
1093
- errors++;
1094
- }
1095
- }
1096
- if (data.multipleOf !== undefined) {
1097
- let data3 = data.multipleOf;
1098
- if (typeof data3 == "number") {
1099
- if (data3 <= 0 || isNaN(data3)) {
1100
- const err8 = { instancePath: instancePath + "/multipleOf", schemaPath: "#/properties/multipleOf/exclusiveMinimum", keyword: "exclusiveMinimum", params: { comparison: ">", limit: 0 }, message: "must be > 0" };
1101
- if (vErrors === null) {
1102
- vErrors = [err8];
1103
- }
1104
- else {
1105
- vErrors.push(err8);
1106
- }
1107
- errors++;
1108
- }
1109
- }
1110
- else {
1111
- const err9 = { instancePath: instancePath + "/multipleOf", schemaPath: "#/properties/multipleOf/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1112
- if (vErrors === null) {
1113
- vErrors = [err9];
1114
- }
1115
- else {
1116
- vErrors.push(err9);
1117
- }
1118
- errors++;
1119
- }
1120
- }
1121
- if (data.maximum !== undefined) {
1122
- if (!(typeof data.maximum == "number")) {
1123
- const err10 = { instancePath: instancePath + "/maximum", schemaPath: "#/properties/maximum/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1124
- if (vErrors === null) {
1125
- vErrors = [err10];
1126
- }
1127
- else {
1128
- vErrors.push(err10);
1129
- }
1130
- errors++;
1131
- }
1132
- }
1133
- if (data.exclusiveMaximum !== undefined) {
1134
- if (!(typeof data.exclusiveMaximum == "number")) {
1135
- const err11 = { instancePath: instancePath + "/exclusiveMaximum", schemaPath: "#/properties/exclusiveMaximum/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1136
- if (vErrors === null) {
1137
- vErrors = [err11];
1138
- }
1139
- else {
1140
- vErrors.push(err11);
1141
- }
1142
- errors++;
1143
- }
1144
- }
1145
- if (data.minimum !== undefined) {
1146
- if (!(typeof data.minimum == "number")) {
1147
- const err12 = { instancePath: instancePath + "/minimum", schemaPath: "#/properties/minimum/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1148
- if (vErrors === null) {
1149
- vErrors = [err12];
1150
- }
1151
- else {
1152
- vErrors.push(err12);
1153
- }
1154
- errors++;
1155
- }
1156
- }
1157
- if (data.exclusiveMinimum !== undefined) {
1158
- if (!(typeof data.exclusiveMinimum == "number")) {
1159
- const err13 = { instancePath: instancePath + "/exclusiveMinimum", schemaPath: "#/properties/exclusiveMinimum/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1160
- if (vErrors === null) {
1161
- vErrors = [err13];
1162
- }
1163
- else {
1164
- vErrors.push(err13);
1165
- }
1166
- errors++;
1167
- }
1168
- }
1169
- if (data.maxLength !== undefined) {
1170
- let data8 = data.maxLength;
1171
- if (!((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8)))) {
1172
- const err14 = { instancePath: instancePath + "/maxLength", schemaPath: "#/$defs/nonNegativeInteger/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
1173
- if (vErrors === null) {
1174
- vErrors = [err14];
1175
- }
1176
- else {
1177
- vErrors.push(err14);
1178
- }
1179
- errors++;
1180
- }
1181
- if (typeof data8 == "number") {
1182
- if (data8 < 0 || isNaN(data8)) {
1183
- const err15 = { instancePath: instancePath + "/maxLength", schemaPath: "#/$defs/nonNegativeInteger/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1184
- if (vErrors === null) {
1185
- vErrors = [err15];
1186
- }
1187
- else {
1188
- vErrors.push(err15);
1189
- }
1190
- errors++;
1191
- }
1192
- }
1193
- }
1194
- if (data.minLength !== undefined) {
1195
- let data9 = data.minLength;
1196
- if (!((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9)))) {
1197
- const err16 = { instancePath: instancePath + "/minLength", schemaPath: "#/$defs/nonNegativeIntegerDefault0/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
1198
- if (vErrors === null) {
1199
- vErrors = [err16];
1200
- }
1201
- else {
1202
- vErrors.push(err16);
1203
- }
1204
- errors++;
1205
- }
1206
- if (typeof data9 == "number") {
1207
- if (data9 < 0 || isNaN(data9)) {
1208
- const err17 = { instancePath: instancePath + "/minLength", schemaPath: "#/$defs/nonNegativeIntegerDefault0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1209
- if (vErrors === null) {
1210
- vErrors = [err17];
1211
- }
1212
- else {
1213
- vErrors.push(err17);
1214
- }
1215
- errors++;
1216
- }
1217
- }
1218
- }
1219
- if (data.pattern !== undefined) {
1220
- if (!(typeof data.pattern === "string")) {
1221
- const err18 = { instancePath: instancePath + "/pattern", schemaPath: "#/properties/pattern/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1222
- if (vErrors === null) {
1223
- vErrors = [err18];
1224
- }
1225
- else {
1226
- vErrors.push(err18);
1227
- }
1228
- errors++;
1229
- }
1230
- }
1231
- if (data.maxItems !== undefined) {
1232
- let data11 = data.maxItems;
1233
- if (!((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11)))) {
1234
- const err19 = { instancePath: instancePath + "/maxItems", schemaPath: "#/$defs/nonNegativeInteger/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
1235
- if (vErrors === null) {
1236
- vErrors = [err19];
1237
- }
1238
- else {
1239
- vErrors.push(err19);
1240
- }
1241
- errors++;
1242
- }
1243
- if (typeof data11 == "number") {
1244
- if (data11 < 0 || isNaN(data11)) {
1245
- const err20 = { instancePath: instancePath + "/maxItems", schemaPath: "#/$defs/nonNegativeInteger/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1246
- if (vErrors === null) {
1247
- vErrors = [err20];
1248
- }
1249
- else {
1250
- vErrors.push(err20);
1251
- }
1252
- errors++;
1253
- }
1254
- }
1255
- }
1256
- if (data.minItems !== undefined) {
1257
- let data12 = data.minItems;
1258
- if (!((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12)))) {
1259
- const err21 = { instancePath: instancePath + "/minItems", schemaPath: "#/$defs/nonNegativeIntegerDefault0/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
1260
- if (vErrors === null) {
1261
- vErrors = [err21];
1262
- }
1263
- else {
1264
- vErrors.push(err21);
1265
- }
1266
- errors++;
1267
- }
1268
- if (typeof data12 == "number") {
1269
- if (data12 < 0 || isNaN(data12)) {
1270
- const err22 = { instancePath: instancePath + "/minItems", schemaPath: "#/$defs/nonNegativeIntegerDefault0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1271
- if (vErrors === null) {
1272
- vErrors = [err22];
1273
- }
1274
- else {
1275
- vErrors.push(err22);
1276
- }
1277
- errors++;
1278
- }
1279
- }
1280
- }
1281
- if (data.uniqueItems !== undefined) {
1282
- if (typeof data.uniqueItems !== "boolean") {
1283
- const err23 = { instancePath: instancePath + "/uniqueItems", schemaPath: "#/properties/uniqueItems/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1284
- if (vErrors === null) {
1285
- vErrors = [err23];
1286
- }
1287
- else {
1288
- vErrors.push(err23);
1289
- }
1290
- errors++;
1291
- }
1292
- }
1293
- if (data.maxContains !== undefined) {
1294
- let data14 = data.maxContains;
1295
- if (!((typeof data14 == "number") && (!(data14 % 1) && !isNaN(data14)))) {
1296
- const err24 = { instancePath: instancePath + "/maxContains", schemaPath: "#/$defs/nonNegativeInteger/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
1297
- if (vErrors === null) {
1298
- vErrors = [err24];
1299
- }
1300
- else {
1301
- vErrors.push(err24);
1302
- }
1303
- errors++;
1304
- }
1305
- if (typeof data14 == "number") {
1306
- if (data14 < 0 || isNaN(data14)) {
1307
- const err25 = { instancePath: instancePath + "/maxContains", schemaPath: "#/$defs/nonNegativeInteger/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1308
- if (vErrors === null) {
1309
- vErrors = [err25];
1310
- }
1311
- else {
1312
- vErrors.push(err25);
1313
- }
1314
- errors++;
1315
- }
1316
- }
1317
- }
1318
- if (data.minContains !== undefined) {
1319
- let data15 = data.minContains;
1320
- if (!((typeof data15 == "number") && (!(data15 % 1) && !isNaN(data15)))) {
1321
- const err26 = { instancePath: instancePath + "/minContains", schemaPath: "#/$defs/nonNegativeInteger/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
1322
- if (vErrors === null) {
1323
- vErrors = [err26];
1324
- }
1325
- else {
1326
- vErrors.push(err26);
1327
- }
1328
- errors++;
1329
- }
1330
- if (typeof data15 == "number") {
1331
- if (data15 < 0 || isNaN(data15)) {
1332
- const err27 = { instancePath: instancePath + "/minContains", schemaPath: "#/$defs/nonNegativeInteger/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1333
- if (vErrors === null) {
1334
- vErrors = [err27];
1335
- }
1336
- else {
1337
- vErrors.push(err27);
1338
- }
1339
- errors++;
1340
- }
1341
- }
1342
- }
1343
- if (data.maxProperties !== undefined) {
1344
- let data16 = data.maxProperties;
1345
- if (!((typeof data16 == "number") && (!(data16 % 1) && !isNaN(data16)))) {
1346
- const err28 = { instancePath: instancePath + "/maxProperties", schemaPath: "#/$defs/nonNegativeInteger/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
1347
- if (vErrors === null) {
1348
- vErrors = [err28];
1349
- }
1350
- else {
1351
- vErrors.push(err28);
1352
- }
1353
- errors++;
1354
- }
1355
- if (typeof data16 == "number") {
1356
- if (data16 < 0 || isNaN(data16)) {
1357
- const err29 = { instancePath: instancePath + "/maxProperties", schemaPath: "#/$defs/nonNegativeInteger/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1358
- if (vErrors === null) {
1359
- vErrors = [err29];
1360
- }
1361
- else {
1362
- vErrors.push(err29);
1363
- }
1364
- errors++;
1365
- }
1366
- }
1367
- }
1368
- if (data.minProperties !== undefined) {
1369
- let data17 = data.minProperties;
1370
- if (!((typeof data17 == "number") && (!(data17 % 1) && !isNaN(data17)))) {
1371
- const err30 = { instancePath: instancePath + "/minProperties", schemaPath: "#/$defs/nonNegativeIntegerDefault0/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
1372
- if (vErrors === null) {
1373
- vErrors = [err30];
1374
- }
1375
- else {
1376
- vErrors.push(err30);
1377
- }
1378
- errors++;
1379
- }
1380
- if (typeof data17 == "number") {
1381
- if (data17 < 0 || isNaN(data17)) {
1382
- const err31 = { instancePath: instancePath + "/minProperties", schemaPath: "#/$defs/nonNegativeIntegerDefault0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1383
- if (vErrors === null) {
1384
- vErrors = [err31];
1385
- }
1386
- else {
1387
- vErrors.push(err31);
1388
- }
1389
- errors++;
1390
- }
1391
- }
1392
- }
1393
- if (data.required !== undefined) {
1394
- let data18 = data.required;
1395
- if (Array.isArray(data18)) {
1396
- const len1 = data18.length;
1397
- for (let i2 = 0; i2 < len1; i2++) {
1398
- if (typeof data18[i2] !== "string") {
1399
- const err32 = { instancePath: instancePath + "/required/" + i2, schemaPath: "#/$defs/stringArray/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1400
- if (vErrors === null) {
1401
- vErrors = [err32];
1402
- }
1403
- else {
1404
- vErrors.push(err32);
1405
- }
1406
- errors++;
1407
- }
1408
- }
1409
- let i3 = data18.length;
1410
- let j1;
1411
- if (i3 > 1) {
1412
- const indices0 = {};
1413
- for (; i3--;) {
1414
- let item0 = data18[i3];
1415
- if (typeof item0 !== "string") {
1416
- continue;
1417
- }
1418
- if (typeof indices0[item0] == "number") {
1419
- j1 = indices0[item0];
1420
- const err33 = { instancePath: instancePath + "/required", schemaPath: "#/$defs/stringArray/uniqueItems", keyword: "uniqueItems", params: { i: i3, j: j1 }, message: "must NOT have duplicate items (items ## " + j1 + " and " + i3 + " are identical)" };
1421
- if (vErrors === null) {
1422
- vErrors = [err33];
1423
- }
1424
- else {
1425
- vErrors.push(err33);
1426
- }
1427
- errors++;
1428
- break;
1429
- }
1430
- indices0[item0] = i3;
1431
- }
1432
- }
1433
- }
1434
- else {
1435
- const err34 = { instancePath: instancePath + "/required", schemaPath: "#/$defs/stringArray/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1436
- if (vErrors === null) {
1437
- vErrors = [err34];
1438
- }
1439
- else {
1440
- vErrors.push(err34);
1441
- }
1442
- errors++;
1443
- }
1444
- }
1445
- if (data.dependentRequired !== undefined) {
1446
- let data20 = data.dependentRequired;
1447
- if (data20 && typeof data20 == "object" && !Array.isArray(data20)) {
1448
- for (const key0 in data20) {
1449
- let data21 = data20[key0];
1450
- if (Array.isArray(data21)) {
1451
- const len2 = data21.length;
1452
- for (let i4 = 0; i4 < len2; i4++) {
1453
- if (typeof data21[i4] !== "string") {
1454
- const err35 = { instancePath: instancePath + "/dependentRequired/" + key0.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/$defs/stringArray/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1455
- if (vErrors === null) {
1456
- vErrors = [err35];
1457
- }
1458
- else {
1459
- vErrors.push(err35);
1460
- }
1461
- errors++;
1462
- }
1463
- }
1464
- let i5 = data21.length;
1465
- let j2;
1466
- if (i5 > 1) {
1467
- const indices1 = {};
1468
- for (; i5--;) {
1469
- let item1 = data21[i5];
1470
- if (typeof item1 !== "string") {
1471
- continue;
1472
- }
1473
- if (typeof indices1[item1] == "number") {
1474
- j2 = indices1[item1];
1475
- const err36 = { instancePath: instancePath + "/dependentRequired/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/stringArray/uniqueItems", keyword: "uniqueItems", params: { i: i5, j: j2 }, message: "must NOT have duplicate items (items ## " + j2 + " and " + i5 + " are identical)" };
1476
- if (vErrors === null) {
1477
- vErrors = [err36];
1478
- }
1479
- else {
1480
- vErrors.push(err36);
1481
- }
1482
- errors++;
1483
- break;
1484
- }
1485
- indices1[item1] = i5;
1486
- }
1487
- }
1488
- }
1489
- else {
1490
- const err37 = { instancePath: instancePath + "/dependentRequired/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/stringArray/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1491
- if (vErrors === null) {
1492
- vErrors = [err37];
1493
- }
1494
- else {
1495
- vErrors.push(err37);
1496
- }
1497
- errors++;
1498
- }
1499
- }
1500
- }
1501
- else {
1502
- const err38 = { instancePath: instancePath + "/dependentRequired", schemaPath: "#/properties/dependentRequired/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1503
- if (vErrors === null) {
1504
- vErrors = [err38];
1505
- }
1506
- else {
1507
- vErrors.push(err38);
1508
- }
1509
- errors++;
1510
- }
1511
- }
1512
- }
1513
- validate12.errors = vErrors;
1514
- return errors === 0;
1515
- }
1516
- validate12.evaluated = { "props": { "type": true, "const": true, "enum": true, "multipleOf": true, "maximum": true, "exclusiveMaximum": true, "minimum": true, "exclusiveMinimum": true, "maxLength": true, "minLength": true, "pattern": true, "maxItems": true, "minItems": true, "uniqueItems": true, "maxContains": true, "minContains": true, "maxProperties": true, "minProperties": true, "required": true, "dependentRequired": true }, "dynamicProps": false, "dynamicItems": false };
1517
- const schema25 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/meta-data", "$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/meta-data": true }, "$dynamicAnchor": "meta", "title": "Meta-data vocabulary meta-schema", "type": ["object", "boolean"], "properties": { "title": { "type": "string" }, "description": { "type": "string" }, "default": true, "deprecated": { "type": "boolean", "default": false }, "readOnly": { "type": "boolean", "default": false }, "writeOnly": { "type": "boolean", "default": false }, "examples": { "type": "array", "items": true } } };
1518
- function validate14(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
1519
- /*# sourceURL="https://json-schema.org/draft/2020-12/meta/meta-data" */ ;
1520
- let vErrors = null;
1521
- let errors = 0;
1522
- const evaluated0 = validate14.evaluated;
1523
- if (evaluated0.dynamicProps) {
1524
- evaluated0.props = undefined;
1525
- }
1526
- if (evaluated0.dynamicItems) {
1527
- evaluated0.items = undefined;
1528
- }
1529
- if ((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")) {
1530
- const err0 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: schema25.type }, message: "must be object,boolean" };
1531
- if (vErrors === null) {
1532
- vErrors = [err0];
1533
- }
1534
- else {
1535
- vErrors.push(err0);
1536
- }
1537
- errors++;
1538
- }
1539
- if (!dynamicAnchors.meta) {
1540
- dynamicAnchors.meta = validate14;
1541
- }
1542
- if (data && typeof data == "object" && !Array.isArray(data)) {
1543
- if (data.title !== undefined) {
1544
- if (typeof data.title !== "string") {
1545
- const err1 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1546
- if (vErrors === null) {
1547
- vErrors = [err1];
1548
- }
1549
- else {
1550
- vErrors.push(err1);
1551
- }
1552
- errors++;
1553
- }
1554
- }
1555
- if (data.description !== undefined) {
1556
- if (typeof data.description !== "string") {
1557
- const err2 = { instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1558
- if (vErrors === null) {
1559
- vErrors = [err2];
1560
- }
1561
- else {
1562
- vErrors.push(err2);
1563
- }
1564
- errors++;
1565
- }
1566
- }
1567
- if (data.deprecated !== undefined) {
1568
- if (typeof data.deprecated !== "boolean") {
1569
- const err3 = { instancePath: instancePath + "/deprecated", schemaPath: "#/properties/deprecated/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1570
- if (vErrors === null) {
1571
- vErrors = [err3];
1572
- }
1573
- else {
1574
- vErrors.push(err3);
1575
- }
1576
- errors++;
1577
- }
1578
- }
1579
- if (data.readOnly !== undefined) {
1580
- if (typeof data.readOnly !== "boolean") {
1581
- const err4 = { instancePath: instancePath + "/readOnly", schemaPath: "#/properties/readOnly/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1582
- if (vErrors === null) {
1583
- vErrors = [err4];
1584
- }
1585
- else {
1586
- vErrors.push(err4);
1587
- }
1588
- errors++;
1589
- }
1590
- }
1591
- if (data.writeOnly !== undefined) {
1592
- if (typeof data.writeOnly !== "boolean") {
1593
- const err5 = { instancePath: instancePath + "/writeOnly", schemaPath: "#/properties/writeOnly/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1594
- if (vErrors === null) {
1595
- vErrors = [err5];
1596
- }
1597
- else {
1598
- vErrors.push(err5);
1599
- }
1600
- errors++;
1601
- }
1602
- }
1603
- if (data.examples !== undefined) {
1604
- if (!(Array.isArray(data.examples))) {
1605
- const err6 = { instancePath: instancePath + "/examples", schemaPath: "#/properties/examples/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1606
- if (vErrors === null) {
1607
- vErrors = [err6];
1608
- }
1609
- else {
1610
- vErrors.push(err6);
1611
- }
1612
- errors++;
1613
- }
1614
- }
1615
- }
1616
- validate14.errors = vErrors;
1617
- return errors === 0;
1618
- }
1619
- validate14.evaluated = { "props": { "title": true, "description": true, "default": true, "deprecated": true, "readOnly": true, "writeOnly": true, "examples": true }, "dynamicProps": false, "dynamicItems": false };
1620
- const schema26 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation", "$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/format-annotation": true }, "$dynamicAnchor": "meta", "title": "Format vocabulary meta-schema for annotation results", "type": ["object", "boolean"], "properties": { "format": { "type": "string" } } };
1621
- function validate16(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
1622
- /*# sourceURL="https://json-schema.org/draft/2020-12/meta/format-annotation" */ ;
1623
- let vErrors = null;
1624
- let errors = 0;
1625
- const evaluated0 = validate16.evaluated;
1626
- if (evaluated0.dynamicProps) {
1627
- evaluated0.props = undefined;
1628
- }
1629
- if (evaluated0.dynamicItems) {
1630
- evaluated0.items = undefined;
1631
- }
1632
- if ((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")) {
1633
- const err0 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: schema26.type }, message: "must be object,boolean" };
1634
- if (vErrors === null) {
1635
- vErrors = [err0];
1636
- }
1637
- else {
1638
- vErrors.push(err0);
1639
- }
1640
- errors++;
1641
- }
1642
- if (!dynamicAnchors.meta) {
1643
- dynamicAnchors.meta = validate16;
1644
- }
1645
- if (data && typeof data == "object" && !Array.isArray(data)) {
1646
- if (data.format !== undefined) {
1647
- if (typeof data.format !== "string") {
1648
- const err1 = { instancePath: instancePath + "/format", schemaPath: "#/properties/format/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1649
- if (vErrors === null) {
1650
- vErrors = [err1];
1651
- }
1652
- else {
1653
- vErrors.push(err1);
1654
- }
1655
- errors++;
1656
- }
1657
- }
1658
- }
1659
- validate16.errors = vErrors;
1660
- return errors === 0;
1661
- }
1662
- validate16.evaluated = { "props": { "format": true }, "dynamicProps": false, "dynamicItems": false };
1663
- const schema27 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://json-schema.org/draft/2020-12/meta/content", "$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/content": true }, "$dynamicAnchor": "meta", "title": "Content vocabulary meta-schema", "type": ["object", "boolean"], "properties": { "contentEncoding": { "type": "string" }, "contentMediaType": { "type": "string" }, "contentSchema": { "$dynamicRef": "#meta" } } };
1664
- function validate18(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
1665
- /*# sourceURL="https://json-schema.org/draft/2020-12/meta/content" */ ;
1666
- let vErrors = null;
1667
- let errors = 0;
1668
- const evaluated0 = validate18.evaluated;
1669
- if (evaluated0.dynamicProps) {
1670
- evaluated0.props = undefined;
1671
- }
1672
- if (evaluated0.dynamicItems) {
1673
- evaluated0.items = undefined;
1674
- }
1675
- if ((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")) {
1676
- const err0 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: schema27.type }, message: "must be object,boolean" };
1677
- if (vErrors === null) {
1678
- vErrors = [err0];
1679
- }
1680
- else {
1681
- vErrors.push(err0);
1682
- }
1683
- errors++;
1684
- }
1685
- if (!dynamicAnchors.meta) {
1686
- dynamicAnchors.meta = validate18;
1687
- }
1688
- if (data && typeof data == "object" && !Array.isArray(data)) {
1689
- if (data.contentEncoding !== undefined) {
1690
- if (typeof data.contentEncoding !== "string") {
1691
- const err1 = { instancePath: instancePath + "/contentEncoding", schemaPath: "#/properties/contentEncoding/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1692
- if (vErrors === null) {
1693
- vErrors = [err1];
1694
- }
1695
- else {
1696
- vErrors.push(err1);
1697
- }
1698
- errors++;
1699
- }
1700
- }
1701
- if (data.contentMediaType !== undefined) {
1702
- if (typeof data.contentMediaType !== "string") {
1703
- const err2 = { instancePath: instancePath + "/contentMediaType", schemaPath: "#/properties/contentMediaType/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1704
- if (vErrors === null) {
1705
- vErrors = [err2];
1706
- }
1707
- else {
1708
- vErrors.push(err2);
1709
- }
1710
- errors++;
1711
- }
1712
- }
1713
- if (data.contentSchema !== undefined) {
1714
- let data2 = data.contentSchema;
1715
- let _v0 = dynamicAnchors.meta;
1716
- if (_v0) {
1717
- if (!(_v0(data2, { instancePath: instancePath + "/contentSchema", parentData: data, parentDataProperty: "contentSchema", rootData, dynamicAnchors }))) {
1718
- vErrors = vErrors === null ? _v0.errors : vErrors.concat(_v0.errors);
1719
- errors = vErrors.length;
1720
- }
1721
- else {
1722
- var props0 = _v0.evaluated.props;
1723
- var items0 = _v0.evaluated.items;
1724
- }
1725
- }
1726
- else {
1727
- if (!(validate18(data2, { instancePath: instancePath + "/contentSchema", parentData: data, parentDataProperty: "contentSchema", rootData, dynamicAnchors }))) {
1728
- vErrors = vErrors === null ? validate18.errors : vErrors.concat(validate18.errors);
1729
- errors = vErrors.length;
1730
- }
1731
- else {
1732
- var props1 = validate18.evaluated.props;
1733
- if (props0 !== true && props1 !== undefined) {
1734
- if (props1 === true) {
1735
- props0 = true;
1736
- }
1737
- else {
1738
- props0 = props0 || {};
1739
- Object.assign(props0, props1);
1740
- }
1741
- }
1742
- var items1 = validate18.evaluated.items;
1743
- if (items0 !== true && items1 !== undefined) {
1744
- items0 = items1 === true ? true : items0 > items1 ? items0 : items1;
1745
- }
1746
- }
1747
- }
1748
- }
1749
- }
1750
- validate18.errors = vErrors;
1751
- return errors === 0;
1752
- }
1753
- validate18.evaluated = { "props": { "contentEncoding": true, "contentMediaType": true, "contentSchema": true }, "dynamicProps": false, "dynamicItems": false };
1754
- function validate0(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
1755
- /*# sourceURL="https://json-schema.org/draft/2020-12/schema" */ ;
1756
- let vErrors = null;
1757
- let errors = 0;
1758
- const evaluated0 = validate0.evaluated;
1759
- if (evaluated0.dynamicProps) {
1760
- evaluated0.props = undefined;
1761
- }
1762
- if (evaluated0.dynamicItems) {
1763
- evaluated0.items = undefined;
1764
- }
1765
- if ((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")) {
1766
- const err0 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: schema0.type }, message: "must be object,boolean" };
1767
- if (vErrors === null) {
1768
- vErrors = [err0];
1769
- }
1770
- else {
1771
- vErrors.push(err0);
1772
- }
1773
- errors++;
1774
- }
1775
- if (!dynamicAnchors.meta) {
1776
- dynamicAnchors.meta = validate0;
1777
- }
1778
- if (!(validate1(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
1779
- vErrors = vErrors === null ? validate1.errors : vErrors.concat(validate1.errors);
1780
- errors = vErrors.length;
1781
- }
1782
- if (!(validate3(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
1783
- vErrors = vErrors === null ? validate3.errors : vErrors.concat(validate3.errors);
1784
- errors = vErrors.length;
1785
- }
1786
- if (!(validate10(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
1787
- vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
1788
- errors = vErrors.length;
1789
- }
1790
- if (!(validate12(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
1791
- vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);
1792
- errors = vErrors.length;
1793
- }
1794
- if (!(validate14(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
1795
- vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);
1796
- errors = vErrors.length;
1797
- }
1798
- if (!(validate16(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
1799
- vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);
1800
- errors = vErrors.length;
1801
- }
1802
- if (!(validate18(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
1803
- vErrors = vErrors === null ? validate18.errors : vErrors.concat(validate18.errors);
1804
- errors = vErrors.length;
1805
- }
1806
- if (data && typeof data == "object" && !Array.isArray(data)) {
1807
- if (data.definitions !== undefined) {
1808
- let data0 = data.definitions;
1809
- if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
1810
- for (const key0 in data0) {
1811
- let data1 = data0[key0];
1812
- let _v0 = dynamicAnchors.meta;
1813
- if (_v0) {
1814
- if (!(_v0(data1, { instancePath: instancePath + "/definitions/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data0, parentDataProperty: key0, rootData, dynamicAnchors }))) {
1815
- vErrors = vErrors === null ? _v0.errors : vErrors.concat(_v0.errors);
1816
- errors = vErrors.length;
1817
- }
1818
- else {
1819
- var props0 = _v0.evaluated.props;
1820
- var items0 = _v0.evaluated.items;
1821
- }
1822
- }
1823
- else {
1824
- if (!(validate0(data1, { instancePath: instancePath + "/definitions/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data0, parentDataProperty: key0, rootData, dynamicAnchors }))) {
1825
- vErrors = vErrors === null ? validate0.errors : vErrors.concat(validate0.errors);
1826
- errors = vErrors.length;
1827
- }
1828
- else {
1829
- var props1 = validate0.evaluated.props;
1830
- if (props0 !== true && props1 !== undefined) {
1831
- if (props1 === true) {
1832
- props0 = true;
1833
- }
1834
- else {
1835
- props0 = props0 || {};
1836
- Object.assign(props0, props1);
1837
- }
1838
- }
1839
- var items1 = validate0.evaluated.items;
1840
- if (items0 !== true && items1 !== undefined) {
1841
- items0 = items1 === true ? true : items0 > items1 ? items0 : items1;
1842
- }
1843
- }
1844
- }
1845
- }
1846
- }
1847
- else {
1848
- const err1 = { instancePath: instancePath + "/definitions", schemaPath: "#/properties/definitions/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1849
- if (vErrors === null) {
1850
- vErrors = [err1];
1851
- }
1852
- else {
1853
- vErrors.push(err1);
1854
- }
1855
- errors++;
1856
- }
1857
- }
1858
- if (data.dependencies !== undefined) {
1859
- let data2 = data.dependencies;
1860
- if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
1861
- for (const key1 in data2) {
1862
- let data3 = data2[key1];
1863
- const _errs19 = errors;
1864
- let valid4 = false;
1865
- const _errs20 = errors;
1866
- let _v1 = dynamicAnchors.meta;
1867
- if (_v1) {
1868
- if (!(_v1(data3, { instancePath: instancePath + "/dependencies/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data2, parentDataProperty: key1, rootData, dynamicAnchors }))) {
1869
- vErrors = vErrors === null ? _v1.errors : vErrors.concat(_v1.errors);
1870
- errors = vErrors.length;
1871
- }
1872
- else {
1873
- var props2 = _v1.evaluated.props;
1874
- var items2 = _v1.evaluated.items;
1875
- }
1876
- }
1877
- else {
1878
- if (!(validate0(data3, { instancePath: instancePath + "/dependencies/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data2, parentDataProperty: key1, rootData, dynamicAnchors }))) {
1879
- vErrors = vErrors === null ? validate0.errors : vErrors.concat(validate0.errors);
1880
- errors = vErrors.length;
1881
- }
1882
- else {
1883
- var props3 = validate0.evaluated.props;
1884
- if (props2 !== true && props3 !== undefined) {
1885
- if (props3 === true) {
1886
- props2 = true;
1887
- }
1888
- else {
1889
- props2 = props2 || {};
1890
- Object.assign(props2, props3);
1891
- }
1892
- }
1893
- var items3 = validate0.evaluated.items;
1894
- if (items2 !== true && items3 !== undefined) {
1895
- items2 = items3 === true ? true : items2 > items3 ? items2 : items3;
1896
- }
1897
- }
1898
- }
1899
- var _valid0 = _errs20 === errors;
1900
- valid4 = valid4 || _valid0;
1901
- const _errs21 = errors;
1902
- if (Array.isArray(data3)) {
1903
- const len0 = data3.length;
1904
- for (let i0 = 0; i0 < len0; i0++) {
1905
- if (typeof data3[i0] !== "string") {
1906
- const err2 = { instancePath: instancePath + "/dependencies/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i0, schemaPath: "meta/validation#/$defs/stringArray/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1907
- if (vErrors === null) {
1908
- vErrors = [err2];
1909
- }
1910
- else {
1911
- vErrors.push(err2);
1912
- }
1913
- errors++;
1914
- }
1915
- }
1916
- let i1 = data3.length;
1917
- let j0;
1918
- if (i1 > 1) {
1919
- const indices0 = {};
1920
- for (; i1--;) {
1921
- let item0 = data3[i1];
1922
- if (typeof item0 !== "string") {
1923
- continue;
1924
- }
1925
- if (typeof indices0[item0] == "number") {
1926
- j0 = indices0[item0];
1927
- const err3 = { instancePath: instancePath + "/dependencies/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "meta/validation#/$defs/stringArray/uniqueItems", keyword: "uniqueItems", params: { i: i1, j: j0 }, message: "must NOT have duplicate items (items ## " + j0 + " and " + i1 + " are identical)" };
1928
- if (vErrors === null) {
1929
- vErrors = [err3];
1930
- }
1931
- else {
1932
- vErrors.push(err3);
1933
- }
1934
- errors++;
1935
- break;
1936
- }
1937
- indices0[item0] = i1;
1938
- }
1939
- }
1940
- }
1941
- else {
1942
- const err4 = { instancePath: instancePath + "/dependencies/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "meta/validation#/$defs/stringArray/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1943
- if (vErrors === null) {
1944
- vErrors = [err4];
1945
- }
1946
- else {
1947
- vErrors.push(err4);
1948
- }
1949
- errors++;
1950
- }
1951
- var _valid0 = _errs21 === errors;
1952
- valid4 = valid4 || _valid0;
1953
- if (_valid0) {
1954
- if (items2 !== true) {
1955
- items2 = true;
1956
- }
1957
- }
1958
- if (!valid4) {
1959
- const err5 = { instancePath: instancePath + "/dependencies/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/dependencies/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1960
- if (vErrors === null) {
1961
- vErrors = [err5];
1962
- }
1963
- else {
1964
- vErrors.push(err5);
1965
- }
1966
- errors++;
1967
- }
1968
- else {
1969
- errors = _errs19;
1970
- if (vErrors !== null) {
1971
- if (_errs19) {
1972
- vErrors.length = _errs19;
1973
- }
1974
- else {
1975
- vErrors = null;
1976
- }
1977
- }
1978
- }
1979
- }
1980
- }
1981
- else {
1982
- const err6 = { instancePath: instancePath + "/dependencies", schemaPath: "#/properties/dependencies/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1983
- if (vErrors === null) {
1984
- vErrors = [err6];
1985
- }
1986
- else {
1987
- vErrors.push(err6);
1988
- }
1989
- errors++;
1990
- }
1991
- }
1992
- if (data.$recursiveAnchor !== undefined) {
1993
- let data5 = data.$recursiveAnchor;
1994
- if (typeof data5 === "string") {
1995
- if (!pattern1.test(data5)) {
1996
- const err7 = { instancePath: instancePath + "/$recursiveAnchor", schemaPath: "meta/core#/$defs/anchorString/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z_][-A-Za-z0-9._]*$" }, message: "must match pattern \"" + "^[A-Za-z_][-A-Za-z0-9._]*$" + "\"" };
1997
- if (vErrors === null) {
1998
- vErrors = [err7];
1999
- }
2000
- else {
2001
- vErrors.push(err7);
2002
- }
2003
- errors++;
2004
- }
2005
- }
2006
- else {
2007
- const err8 = { instancePath: instancePath + "/$recursiveAnchor", schemaPath: "meta/core#/$defs/anchorString/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2008
- if (vErrors === null) {
2009
- vErrors = [err8];
2010
- }
2011
- else {
2012
- vErrors.push(err8);
2013
- }
2014
- errors++;
2015
- }
2016
- }
2017
- if (data.$recursiveRef !== undefined) {
2018
- if (!(typeof data.$recursiveRef === "string")) {
2019
- const err9 = { instancePath: instancePath + "/$recursiveRef", schemaPath: "meta/core#/$defs/uriReferenceString/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2020
- if (vErrors === null) {
2021
- vErrors = [err9];
2022
- }
2023
- else {
2024
- vErrors.push(err9);
2025
- }
2026
- errors++;
2027
- }
2028
- }
2029
- }
2030
- validate0.errors = vErrors;
2031
- return errors === 0;
2032
- }
2033
- validate0.evaluated = { "props": { "definitions": true, "dependencies": true, "$recursiveAnchor": true, "$recursiveRef": true, "contentEncoding": true, "contentMediaType": true, "contentSchema": true, "format": true, "title": true, "description": true, "default": true, "deprecated": true, "readOnly": true, "writeOnly": true, "examples": true, "type": true, "const": true, "enum": true, "multipleOf": true, "maximum": true, "exclusiveMaximum": true, "minimum": true, "exclusiveMinimum": true, "maxLength": true, "minLength": true, "pattern": true, "maxItems": true, "minItems": true, "uniqueItems": true, "maxContains": true, "minContains": true, "maxProperties": true, "minProperties": true, "required": true, "dependentRequired": true, "unevaluatedItems": true, "unevaluatedProperties": true, "prefixItems": true, "items": true, "contains": true, "additionalProperties": true, "properties": true, "patternProperties": true, "dependentSchemas": true, "propertyNames": true, "if": true, "then": true, "else": true, "allOf": true, "anyOf": true, "oneOf": true, "not": true, "$id": true, "$schema": true, "$ref": true, "$anchor": true, "$dynamicRef": true, "$dynamicAnchor": true, "$vocabulary": true, "$comment": true, "$defs": true }, "dynamicProps": false, "dynamicItems": false };
2034
- function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
2035
- /*# sourceURL="https://schemas.astrale.ai/dsl/v1/value-schema" */ ;
2036
- let vErrors = null;
2037
- let errors = 0;
2038
- const evaluated0 = validate20.evaluated;
2039
- if (evaluated0.dynamicProps) {
2040
- evaluated0.props = undefined;
2041
- }
2042
- if (evaluated0.dynamicItems) {
2043
- evaluated0.items = undefined;
2044
- }
2045
- if (!(validate0(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
2046
- vErrors = vErrors === null ? validate0.errors : vErrors.concat(validate0.errors);
2047
- errors = vErrors.length;
2048
- }
2049
- if (data && typeof data == "object" && !Array.isArray(data)) {
2050
- if (data.fullMatch !== undefined) {
2051
- if (typeof data.fullMatch !== "string") {
2052
- const err0 = { instancePath: instancePath + "/fullMatch", schemaPath: "#/properties/fullMatch/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2053
- if (vErrors === null) {
2054
- vErrors = [err0];
2055
- }
2056
- else {
2057
- vErrors.push(err0);
2058
- }
2059
- errors++;
2060
- }
2061
- }
2062
- if (data["x-astrale-path"] !== undefined) {
2063
- let data1 = data["x-astrale-path"];
2064
- if (!(data1 && typeof data1 == "object" && !Array.isArray(data1))) {
2065
- const err1 = { instancePath: instancePath + "/x-astrale-path", schemaPath: "#/properties/x-astrale-path/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2066
- if (vErrors === null) {
2067
- vErrors = [err1];
2068
- }
2069
- else {
2070
- vErrors.push(err1);
2071
- }
2072
- errors++;
2073
- }
2074
- }
2075
- }
2076
- validate20.errors = vErrors;
2077
- return errors === 0;
2078
- }
2079
- validate20.evaluated = { "props": { "fullMatch": true, "x-astrale-path": true, "definitions": true, "dependencies": true, "$recursiveAnchor": true, "$recursiveRef": true, "contentEncoding": true, "contentMediaType": true, "contentSchema": true, "format": true, "title": true, "description": true, "default": true, "deprecated": true, "readOnly": true, "writeOnly": true, "examples": true, "type": true, "const": true, "enum": true, "multipleOf": true, "maximum": true, "exclusiveMaximum": true, "minimum": true, "exclusiveMinimum": true, "maxLength": true, "minLength": true, "pattern": true, "maxItems": true, "minItems": true, "uniqueItems": true, "maxContains": true, "minContains": true, "maxProperties": true, "minProperties": true, "required": true, "dependentRequired": true, "unevaluatedItems": true, "unevaluatedProperties": true, "prefixItems": true, "items": true, "contains": true, "additionalProperties": true, "properties": true, "patternProperties": true, "dependentSchemas": true, "propertyNames": true, "if": true, "then": true, "else": true, "allOf": true, "anyOf": true, "oneOf": true, "not": true, "$id": true, "$schema": true, "$ref": true, "$anchor": true, "$dynamicRef": true, "$dynamicAnchor": true, "$vocabulary": true, "$comment": true, "$defs": true }, "dynamicProps": false, "dynamicItems": false };
2080
- //# sourceMappingURL=meta-schema.compiled.js.map