@bluefly/openstandardagents 0.4.8 → 0.4.9

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 (651) hide show
  1. package/.version.json +4 -4
  2. package/CHANGELOG.md +14 -0
  3. package/README.md +20 -5
  4. package/dist/.version.json +4 -4
  5. package/dist/adapters/a2a/__tests__/mcp-integration.spec.js +1 -1
  6. package/dist/adapters/a2a/a2a-protocol.d.ts +1 -1
  7. package/dist/adapters/a2a/a2a-tool.js +3 -3
  8. package/dist/adapters/a2a/delegation.js +1 -1
  9. package/dist/adapters/base/common-file-generator.d.ts +1 -1
  10. package/dist/adapters/base/common-file-generator.js +22 -0
  11. package/dist/cli/banner.js +1 -1
  12. package/dist/cli/commands/agents-sync.command.d.ts +19 -0
  13. package/dist/cli/commands/agents-sync.command.js +268 -0
  14. package/dist/cli/commands/discover.js +48 -52
  15. package/dist/cli/commands/export.command.js +41 -12
  16. package/dist/cli/commands/lifecycle.command.d.ts +29 -0
  17. package/dist/cli/commands/lifecycle.command.js +495 -0
  18. package/dist/cli/commands/policy.command.d.ts +11 -0
  19. package/dist/cli/commands/policy.command.js +85 -0
  20. package/dist/cli/commands/publish.command.js +29 -3
  21. package/dist/cli/commands/search.command.js +31 -2
  22. package/dist/cli/commands/serve-builder-routes.d.ts +17 -0
  23. package/dist/cli/commands/serve-builder-routes.js +390 -0
  24. package/dist/cli/commands/validate.command.js +48 -2
  25. package/dist/cli/commands/verify.js +61 -34
  26. package/dist/cli/commands/wizard-api-first.command.js +6 -0
  27. package/dist/cli/commands/wizard.command.js +6 -0
  28. package/dist/cli/commands/workspace.command.js +65 -65
  29. package/dist/cli/index.js +11 -3
  30. package/dist/cli/utils/standard-options.js +1 -1
  31. package/dist/confidence/index.d.ts +67 -0
  32. package/dist/confidence/index.js +130 -0
  33. package/dist/data/platform-matrix.js +29 -0
  34. package/dist/mcp-server/index.js +0 -0
  35. package/dist/mesh/discovery-providers.js +2 -2
  36. package/dist/mesh/discovery.js +1 -1
  37. package/dist/mesh/index.d.ts +2 -2
  38. package/dist/mesh/index.js +2 -2
  39. package/dist/mesh/types.d.ts +202 -1
  40. package/dist/package.json +6 -12
  41. package/dist/services/agent-card-generator.d.ts +2 -2
  42. package/dist/services/agent-card-generator.js +3 -1
  43. package/dist/services/agents-md/agents-md.service.d.ts +4 -0
  44. package/dist/services/agents-md/agents-md.service.js +18 -0
  45. package/dist/services/governance/cedar-validator.service.d.ts +32 -0
  46. package/dist/services/governance/cedar-validator.service.js +88 -0
  47. package/dist/services/mcp/bridge.service.d.ts +1 -0
  48. package/dist/services/mcp/bridge.service.js +31 -0
  49. package/dist/services/skills-pipeline/skills-install.service.js +2 -2
  50. package/dist/services/skills-pipeline/skills-research.service.d.ts +5 -7
  51. package/dist/services/skills-pipeline/skills-research.service.js +13 -58
  52. package/dist/services/trust/trust.service.d.ts +9 -0
  53. package/dist/services/trust/trust.service.js +35 -0
  54. package/dist/services/validators/a2a.validator.js +2 -2
  55. package/dist/skills/test-skill/package.json +1 -1
  56. package/dist/spec/uadp/README.md +1 -1
  57. package/dist/spec/v0.4/agent-card.schema.json +2 -2
  58. package/dist/spec/v0.4/agent.schema.json +69 -0
  59. package/dist/spec/v0.4/extensions/a2a/a2a.schema.json +1 -1
  60. package/dist/spec/v0.5/agent-card.schema.json +1 -1
  61. package/dist/spec/v0.5/agent.schema.json +137 -67
  62. package/dist/types/index.d.ts +3 -1
  63. package/dist/validation/progressive-scorer.d.ts +1 -1
  64. package/dist/validation/progressive-scorer.js +19 -2
  65. package/dist/version-management/api/server.d.ts +1 -1
  66. package/examples/agent-mesh/DISCOVERY.md +25 -25
  67. package/examples/agent-mesh/README.ts +6 -6
  68. package/examples/agent-mesh/basic-usage.ts +11 -11
  69. package/examples/agent-mesh/discovery-system.ts +37 -37
  70. package/openapi/agent-communication.yaml +12 -12
  71. package/openapi/marketplace-plugin.openapi.yaml +1 -1
  72. package/openapi/protocols/sse-streams.yaml +3 -3
  73. package/openapi/protocols/websocket-events.yaml +3 -3
  74. package/openapi/uadp-asyncapi.yaml +1 -1
  75. package/openapi/uadp-openapi.yaml +99 -5
  76. package/package.json +4 -10
  77. package/spec/uadp/README.md +393 -0
  78. package/spec/uadp/openapi.yaml +387 -0
  79. package/spec/uadp/schemas/uadp-agents-response.schema.json +68 -0
  80. package/spec/uadp/schemas/uadp-federation-response.schema.json +46 -0
  81. package/spec/uadp/schemas/uadp-manifest.schema.json +82 -0
  82. package/spec/uadp/schemas/uadp-skills-response.schema.json +72 -0
  83. package/spec/v0.4/agent-card.schema.json +2 -2
  84. package/spec/v0.4/extensions/a2a/a2a.schema.json +1 -1
  85. package/spec/v0.5/agent-card.schema.json +477 -0
  86. package/spec/v0.5/agent.schema.json +1626 -0
  87. package/spec/v0.5/conformance/profiles/baseline.json +19 -0
  88. package/spec/v0.5/conformance/profiles/enterprise.json +20 -0
  89. package/spec/v0.5/extensions/a2a/README.md +193 -0
  90. package/spec/v0.5/extensions/a2a/a2a.schema.json +77 -0
  91. package/spec/v0.5/extensions/ag2/ag2.schema.json +277 -0
  92. package/spec/v0.5/extensions/cognition/cognition.schema.json +94 -0
  93. package/spec/v0.5/extensions/cognition/thought-node.schema.json +80 -0
  94. package/spec/v0.5/extensions/crewai/crewai.schema.json +256 -0
  95. package/spec/v0.5/extensions/drupal/drupal.schema.json +318 -0
  96. package/spec/v0.5/extensions/evals/evals.schema.json +597 -0
  97. package/spec/v0.5/extensions/governance/governance-extension.yaml +161 -0
  98. package/spec/v0.5/extensions/identity/identity.schema.json +302 -0
  99. package/spec/v0.5/extensions/kagent/README.md +315 -0
  100. package/spec/v0.5/extensions/kagent/kagent.schema.json +624 -0
  101. package/spec/v0.5/extensions/langchain/langchain.schema.json +243 -0
  102. package/spec/v0.5/extensions/langgraph/langgraph.schema.json +211 -0
  103. package/spec/v0.5/extensions/mcp/README.md +276 -0
  104. package/spec/v0.5/extensions/mcp/mcp.schema.json +84 -0
  105. package/spec/v0.5/extensions/memory/memory.schema.json +7 -0
  106. package/spec/v0.5/extensions/team/team.schema.json +304 -0
  107. package/spec/v0.5/extensions/token-efficiency/token-efficiency.schema.json +47 -0
  108. package/spec/v0.5/mcp.schema.json +1 -0
  109. package/spec/v0.5/skill.schema.json +1 -0
  110. package/spec/v0.5/validator.schema.json +282 -0
  111. package/node_modules/ajv/.runkit_example.js +0 -23
  112. package/node_modules/ajv/LICENSE +0 -22
  113. package/node_modules/ajv/README.md +0 -207
  114. package/node_modules/ajv/dist/2019.d.ts +0 -19
  115. package/node_modules/ajv/dist/2019.js +0 -61
  116. package/node_modules/ajv/dist/2019.js.map +0 -1
  117. package/node_modules/ajv/dist/2020.d.ts +0 -19
  118. package/node_modules/ajv/dist/2020.js +0 -55
  119. package/node_modules/ajv/dist/2020.js.map +0 -1
  120. package/node_modules/ajv/dist/ajv.d.ts +0 -18
  121. package/node_modules/ajv/dist/ajv.js +0 -50
  122. package/node_modules/ajv/dist/ajv.js.map +0 -1
  123. package/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  124. package/node_modules/ajv/dist/compile/codegen/code.js +0 -156
  125. package/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  126. package/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  127. package/node_modules/ajv/dist/compile/codegen/index.js +0 -697
  128. package/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  129. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  130. package/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
  131. package/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  132. package/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  133. package/node_modules/ajv/dist/compile/errors.js +0 -123
  134. package/node_modules/ajv/dist/compile/errors.js.map +0 -1
  135. package/node_modules/ajv/dist/compile/index.d.ts +0 -80
  136. package/node_modules/ajv/dist/compile/index.js +0 -242
  137. package/node_modules/ajv/dist/compile/index.js.map +0 -1
  138. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  139. package/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
  140. package/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
  141. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  142. package/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
  143. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
  144. package/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  145. package/node_modules/ajv/dist/compile/jtd/types.js +0 -14
  146. package/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
  147. package/node_modules/ajv/dist/compile/names.d.ts +0 -20
  148. package/node_modules/ajv/dist/compile/names.js +0 -28
  149. package/node_modules/ajv/dist/compile/names.js.map +0 -1
  150. package/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  151. package/node_modules/ajv/dist/compile/ref_error.js +0 -12
  152. package/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  153. package/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  154. package/node_modules/ajv/dist/compile/resolve.js +0 -155
  155. package/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  156. package/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  157. package/node_modules/ajv/dist/compile/rules.js +0 -26
  158. package/node_modules/ajv/dist/compile/rules.js.map +0 -1
  159. package/node_modules/ajv/dist/compile/util.d.ts +0 -40
  160. package/node_modules/ajv/dist/compile/util.js +0 -178
  161. package/node_modules/ajv/dist/compile/util.js.map +0 -1
  162. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  163. package/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
  164. package/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  165. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  166. package/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
  167. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  168. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  169. package/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
  170. package/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  171. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  172. package/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
  173. package/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  174. package/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  175. package/node_modules/ajv/dist/compile/validate/index.js +0 -520
  176. package/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  177. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  178. package/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
  179. package/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  180. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  181. package/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
  182. package/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  183. package/node_modules/ajv/dist/core.d.ts +0 -174
  184. package/node_modules/ajv/dist/core.js +0 -618
  185. package/node_modules/ajv/dist/core.js.map +0 -1
  186. package/node_modules/ajv/dist/jtd.d.ts +0 -47
  187. package/node_modules/ajv/dist/jtd.js +0 -72
  188. package/node_modules/ajv/dist/jtd.js.map +0 -1
  189. package/node_modules/ajv/dist/refs/data.json +0 -13
  190. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  191. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
  192. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
  193. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
  194. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
  195. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
  196. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
  197. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  198. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
  199. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
  200. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  201. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  202. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
  203. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  204. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  205. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  206. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  207. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  208. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  209. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  210. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  211. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
  212. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
  213. package/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
  214. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  215. package/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
  216. package/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
  217. package/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  218. package/node_modules/ajv/dist/runtime/equal.js +0 -7
  219. package/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  220. package/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  221. package/node_modules/ajv/dist/runtime/parseJson.js +0 -185
  222. package/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
  223. package/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  224. package/node_modules/ajv/dist/runtime/quote.js +0 -30
  225. package/node_modules/ajv/dist/runtime/quote.js.map +0 -1
  226. package/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  227. package/node_modules/ajv/dist/runtime/re2.js +0 -6
  228. package/node_modules/ajv/dist/runtime/re2.js.map +0 -1
  229. package/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  230. package/node_modules/ajv/dist/runtime/timestamp.js +0 -42
  231. package/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
  232. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  233. package/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
  234. package/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  235. package/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  236. package/node_modules/ajv/dist/runtime/uri.js +0 -6
  237. package/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  238. package/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  239. package/node_modules/ajv/dist/runtime/validation_error.js +0 -11
  240. package/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  241. package/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  242. package/node_modules/ajv/dist/standalone/index.js +0 -90
  243. package/node_modules/ajv/dist/standalone/index.js.map +0 -1
  244. package/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  245. package/node_modules/ajv/dist/standalone/instance.js +0 -35
  246. package/node_modules/ajv/dist/standalone/instance.js.map +0 -1
  247. package/node_modules/ajv/dist/types/index.d.ts +0 -183
  248. package/node_modules/ajv/dist/types/index.js +0 -3
  249. package/node_modules/ajv/dist/types/index.js.map +0 -1
  250. package/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  251. package/node_modules/ajv/dist/types/json-schema.js +0 -3
  252. package/node_modules/ajv/dist/types/json-schema.js.map +0 -1
  253. package/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  254. package/node_modules/ajv/dist/types/jtd-schema.js +0 -3
  255. package/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
  256. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  257. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  258. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  259. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  260. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
  261. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  262. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  263. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  264. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  265. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  266. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  267. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  268. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  269. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
  270. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  271. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  272. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  273. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  274. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  275. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  276. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
  277. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  278. package/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
  279. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  280. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  281. package/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
  282. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  283. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  284. package/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
  285. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  286. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  287. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  288. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  289. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  290. package/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
  291. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  292. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  293. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  294. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  295. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  296. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  297. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  298. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  299. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  300. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  301. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  302. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
  303. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  304. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  305. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  306. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  307. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  308. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  309. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  310. package/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  311. package/node_modules/ajv/dist/vocabularies/code.js +0 -131
  312. package/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  313. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  314. package/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
  315. package/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  316. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  317. package/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
  318. package/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  319. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  320. package/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
  321. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  322. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  323. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
  324. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  325. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  326. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
  327. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  328. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  329. package/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
  330. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
  331. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  332. package/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
  333. package/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  334. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  335. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  336. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
  337. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  338. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  339. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
  340. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  341. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
  342. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
  343. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  344. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  345. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
  346. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  347. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  348. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
  349. package/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  350. package/node_modules/ajv/dist/vocabularies/errors.js +0 -3
  351. package/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
  352. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  353. package/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
  354. package/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  355. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  356. package/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
  357. package/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  358. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  359. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
  360. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
  361. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  362. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
  363. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
  364. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  365. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
  366. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
  367. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  368. package/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
  369. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
  370. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  371. package/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
  372. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
  373. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  374. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
  375. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
  376. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  377. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
  378. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
  379. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  380. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
  381. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
  382. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  383. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
  384. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
  385. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  386. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
  387. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
  388. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  389. package/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
  390. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
  391. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  392. package/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
  393. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
  394. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  395. package/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
  396. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
  397. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  398. package/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
  399. package/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  400. package/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  401. package/node_modules/ajv/dist/vocabularies/next.js +0 -8
  402. package/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
  403. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  404. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  405. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
  406. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  407. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  408. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
  409. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  410. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
  411. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
  412. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  413. package/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
  414. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  415. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  416. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  417. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
  418. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  419. package/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
  420. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  421. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  422. package/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
  423. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  424. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  425. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  426. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
  427. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  428. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  429. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  430. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  431. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  432. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  433. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  434. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  435. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  436. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  437. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  438. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  439. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  440. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  441. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  442. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  443. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
  444. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  445. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  446. package/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
  447. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  448. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  449. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  450. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  451. package/node_modules/ajv/lib/2019.ts +0 -81
  452. package/node_modules/ajv/lib/2020.ts +0 -75
  453. package/node_modules/ajv/lib/ajv.ts +0 -70
  454. package/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
  455. package/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
  456. package/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
  457. package/node_modules/ajv/lib/compile/errors.ts +0 -184
  458. package/node_modules/ajv/lib/compile/index.ts +0 -324
  459. package/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
  460. package/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
  461. package/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
  462. package/node_modules/ajv/lib/compile/names.ts +0 -27
  463. package/node_modules/ajv/lib/compile/ref_error.ts +0 -13
  464. package/node_modules/ajv/lib/compile/resolve.ts +0 -149
  465. package/node_modules/ajv/lib/compile/rules.ts +0 -50
  466. package/node_modules/ajv/lib/compile/util.ts +0 -213
  467. package/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
  468. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
  469. package/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
  470. package/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
  471. package/node_modules/ajv/lib/compile/validate/index.ts +0 -582
  472. package/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
  473. package/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
  474. package/node_modules/ajv/lib/core.ts +0 -892
  475. package/node_modules/ajv/lib/jtd.ts +0 -132
  476. package/node_modules/ajv/lib/refs/data.json +0 -13
  477. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
  478. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
  479. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
  480. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
  481. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
  482. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  483. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
  484. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
  485. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
  486. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
  487. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
  488. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
  489. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  490. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  491. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  492. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
  493. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
  494. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
  495. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
  496. package/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
  497. package/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
  498. package/node_modules/ajv/lib/runtime/equal.ts +0 -7
  499. package/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
  500. package/node_modules/ajv/lib/runtime/quote.ts +0 -31
  501. package/node_modules/ajv/lib/runtime/re2.ts +0 -6
  502. package/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
  503. package/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
  504. package/node_modules/ajv/lib/runtime/uri.ts +0 -6
  505. package/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
  506. package/node_modules/ajv/lib/standalone/index.ts +0 -100
  507. package/node_modules/ajv/lib/standalone/instance.ts +0 -36
  508. package/node_modules/ajv/lib/types/index.ts +0 -244
  509. package/node_modules/ajv/lib/types/json-schema.ts +0 -187
  510. package/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
  511. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
  512. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
  513. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
  514. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
  515. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
  516. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
  517. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
  518. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
  519. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
  520. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
  521. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
  522. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
  523. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
  524. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
  525. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
  526. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
  527. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
  528. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
  529. package/node_modules/ajv/lib/vocabularies/code.ts +0 -168
  530. package/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
  531. package/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
  532. package/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
  533. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
  534. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
  535. package/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
  536. package/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
  537. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
  538. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
  539. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
  540. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
  541. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
  542. package/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
  543. package/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
  544. package/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
  545. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
  546. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
  547. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
  548. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
  549. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
  550. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
  551. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
  552. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
  553. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
  554. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
  555. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
  556. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
  557. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
  558. package/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
  559. package/node_modules/ajv/lib/vocabularies/next.ts +0 -8
  560. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
  561. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
  562. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
  563. package/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
  564. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
  565. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
  566. package/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
  567. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
  568. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
  569. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
  570. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
  571. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
  572. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
  573. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
  574. package/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
  575. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
  576. package/node_modules/ajv/package.json +0 -127
  577. package/node_modules/ajv-formats/LICENSE +0 -21
  578. package/node_modules/ajv-formats/README.md +0 -125
  579. package/node_modules/ajv-formats/dist/formats.d.ts +0 -9
  580. package/node_modules/ajv-formats/dist/formats.js +0 -208
  581. package/node_modules/ajv-formats/dist/formats.js.map +0 -1
  582. package/node_modules/ajv-formats/dist/index.d.ts +0 -15
  583. package/node_modules/ajv-formats/dist/index.js +0 -37
  584. package/node_modules/ajv-formats/dist/index.js.map +0 -1
  585. package/node_modules/ajv-formats/dist/limit.d.ts +0 -10
  586. package/node_modules/ajv-formats/dist/limit.js +0 -69
  587. package/node_modules/ajv-formats/dist/limit.js.map +0 -1
  588. package/node_modules/ajv-formats/package.json +0 -74
  589. package/node_modules/ajv-formats/src/formats.ts +0 -269
  590. package/node_modules/ajv-formats/src/index.ts +0 -62
  591. package/node_modules/ajv-formats/src/limit.ts +0 -99
  592. package/node_modules/fast-deep-equal/LICENSE +0 -21
  593. package/node_modules/fast-deep-equal/README.md +0 -96
  594. package/node_modules/fast-deep-equal/es6/index.d.ts +0 -2
  595. package/node_modules/fast-deep-equal/es6/index.js +0 -72
  596. package/node_modules/fast-deep-equal/es6/react.d.ts +0 -2
  597. package/node_modules/fast-deep-equal/es6/react.js +0 -79
  598. package/node_modules/fast-deep-equal/index.d.ts +0 -4
  599. package/node_modules/fast-deep-equal/index.js +0 -46
  600. package/node_modules/fast-deep-equal/package.json +0 -61
  601. package/node_modules/fast-deep-equal/react.d.ts +0 -2
  602. package/node_modules/fast-deep-equal/react.js +0 -53
  603. package/node_modules/fast-uri/.gitattributes +0 -2
  604. package/node_modules/fast-uri/.github/.stale.yml +0 -21
  605. package/node_modules/fast-uri/.github/dependabot.yml +0 -13
  606. package/node_modules/fast-uri/.github/tests_checker.yml +0 -8
  607. package/node_modules/fast-uri/.github/workflows/ci.yml +0 -101
  608. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +0 -24
  609. package/node_modules/fast-uri/LICENSE +0 -32
  610. package/node_modules/fast-uri/README.md +0 -143
  611. package/node_modules/fast-uri/benchmark/benchmark.mjs +0 -159
  612. package/node_modules/fast-uri/benchmark/equal.mjs +0 -51
  613. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +0 -22
  614. package/node_modules/fast-uri/benchmark/package.json +0 -17
  615. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +0 -24
  616. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +0 -65
  617. package/node_modules/fast-uri/eslint.config.js +0 -6
  618. package/node_modules/fast-uri/index.js +0 -340
  619. package/node_modules/fast-uri/lib/schemes.js +0 -267
  620. package/node_modules/fast-uri/lib/utils.js +0 -336
  621. package/node_modules/fast-uri/package.json +0 -69
  622. package/node_modules/fast-uri/test/ajv.test.js +0 -43
  623. package/node_modules/fast-uri/test/equal.test.js +0 -108
  624. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +0 -501
  625. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +0 -120
  626. package/node_modules/fast-uri/test/parse.test.js +0 -318
  627. package/node_modules/fast-uri/test/resolve.test.js +0 -78
  628. package/node_modules/fast-uri/test/rfc-3986.test.js +0 -90
  629. package/node_modules/fast-uri/test/serialize.test.js +0 -151
  630. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +0 -33
  631. package/node_modules/fast-uri/test/uri-js.test.js +0 -912
  632. package/node_modules/fast-uri/test/util.test.js +0 -38
  633. package/node_modules/fast-uri/tsconfig.json +0 -9
  634. package/node_modules/fast-uri/types/index.d.ts +0 -60
  635. package/node_modules/fast-uri/types/index.test-d.ts +0 -17
  636. package/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  637. package/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
  638. package/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
  639. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
  640. package/node_modules/json-schema-traverse/LICENSE +0 -21
  641. package/node_modules/json-schema-traverse/README.md +0 -95
  642. package/node_modules/json-schema-traverse/index.d.ts +0 -40
  643. package/node_modules/json-schema-traverse/index.js +0 -93
  644. package/node_modules/json-schema-traverse/package.json +0 -43
  645. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  646. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  647. package/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  648. package/node_modules/require-from-string/index.js +0 -34
  649. package/node_modules/require-from-string/license +0 -21
  650. package/node_modules/require-from-string/package.json +0 -28
  651. package/node_modules/require-from-string/readme.md +0 -56
@@ -1,125 +0,0 @@
1
- # ajv-formats
2
-
3
- JSON Schema formats for Ajv
4
-
5
- [![Build Status](https://travis-ci.org/ajv-validator/ajv-formats.svg?branch=master)](https://travis-ci.org/ajv-validator/ajv-formats)
6
- [![npm](https://img.shields.io/npm/v/ajv-formats.svg)](https://www.npmjs.com/package/ajv-formats)
7
- [![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv)
8
- [![GitHub Sponsors](https://img.shields.io/badge/$-sponsors-brightgreen)](https://github.com/sponsors/epoberezkin)
9
-
10
- ## Usage
11
-
12
- ```javascript
13
- // ESM/TypeScript import
14
- import Ajv from "ajv"
15
- import addFormats from "ajv-formats"
16
- // Node.js require:
17
- const Ajv = require("ajv")
18
- const addFormats = require("ajv-formats")
19
-
20
- const ajv = new Ajv()
21
- addFormats(ajv)
22
- ```
23
-
24
- ## Formats
25
-
26
- The package defines these formats:
27
-
28
- - _date_: full-date according to [RFC3339](http://tools.ietf.org/html/rfc3339#section-5.6).
29
- - _time_: time (time-zone is mandatory).
30
- - _date-time_: date-time (time-zone is mandatory).
31
- - _iso-time_: time with optional time-zone.
32
- - _iso-date-time_: date-time with optional time-zone.
33
- - _duration_: duration from [RFC3339](https://tools.ietf.org/html/rfc3339#appendix-A)
34
- - _uri_: full URI.
35
- - _uri-reference_: URI reference, including full and relative URIs.
36
- - _uri-template_: URI template according to [RFC6570](https://tools.ietf.org/html/rfc6570)
37
- - _url_ (deprecated): [URL record](https://url.spec.whatwg.org/#concept-url).
38
- - _email_: email address.
39
- - _hostname_: host name according to [RFC1034](http://tools.ietf.org/html/rfc1034#section-3.5).
40
- - _ipv4_: IP address v4.
41
- - _ipv6_: IP address v6.
42
- - _regex_: tests whether a string is a valid regular expression by passing it to RegExp constructor.
43
- - _uuid_: Universally Unique IDentifier according to [RFC4122](http://tools.ietf.org/html/rfc4122).
44
- - _json-pointer_: JSON-pointer according to [RFC6901](https://tools.ietf.org/html/rfc6901).
45
- - _relative-json-pointer_: relative JSON-pointer according to [this draft](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00).
46
- - _byte_: base64 encoded data according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
47
- - _int32_: signed 32 bits integer according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
48
- - _int64_: signed 64 bits according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
49
- - _float_: float according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
50
- - _double_: double according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
51
- - _password_: password string according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
52
- - _binary_: binary string according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
53
-
54
- See regular expressions used for format validation and the sources that were used in [formats.ts](https://github.com/ajv-validator/ajv-formats/blob/master/src/formats.ts).
55
-
56
- **Please note**: JSON Schema draft-07 also defines formats `iri`, `iri-reference`, `idn-hostname` and `idn-email` for URLs, hostnames and emails with international characters. These formats are available in [ajv-formats-draft2019](https://github.com/luzlab/ajv-formats-draft2019) plugin.
57
-
58
- ## Keywords to compare values: `formatMaximum` / `formatMinimum` and `formatExclusiveMaximum` / `formatExclusiveMinimum`
59
-
60
- These keywords allow to define minimum/maximum constraints when the format keyword defines ordering (`compare` function in format definition).
61
-
62
- These keywords are added to ajv instance when ajv-formats is used without options or with option `keywords: true`.
63
-
64
- These keywords apply only to strings. If the data is not a string, the validation succeeds.
65
-
66
- The value of keywords `formatMaximum`/`formatMinimum` and `formatExclusiveMaximum`/`formatExclusiveMinimum` should be a string or [\$data reference](https://github.com/ajv-validator/ajv/blob/master/docs/validation.md#data-reference). This value is the maximum (minimum) allowed value for the data to be valid as determined by `format` keyword. If `format` keyword is not present schema compilation will throw exception.
67
-
68
- When these keyword are added, they also add comparison functions to formats `"date"`, `"time"` and `"date-time"`. User-defined formats also can have comparison functions. See [addFormat](https://github.com/ajv-validator/ajv/blob/master/docs/api.md#api-addformat) method.
69
-
70
- ```javascript
71
- require("ajv-formats")(ajv)
72
-
73
- const schema = {
74
- type: "string",
75
- format: "date",
76
- formatMinimum: "2016-02-06",
77
- formatExclusiveMaximum: "2016-12-27",
78
- }
79
-
80
- const validDataList = ["2016-02-06", "2016-12-26"]
81
-
82
- const invalidDataList = ["2016-02-05", "2016-12-27", "abc"]
83
- ```
84
-
85
- ## Options
86
-
87
- Options can be passed via the second parameter. Options value can be
88
-
89
- 1. The list of format names that will be added to ajv instance:
90
-
91
- ```javascript
92
- addFormats(ajv, ["date", "time"])
93
- ```
94
-
95
- **Please note**: when ajv encounters an undefined format it throws exception (unless ajv instance was configured with `strict: false` option). To allow specific undefined formats they have to be passed to ajv instance via `formats` option with `true` value:
96
-
97
- ```javascript
98
- const ajv = new Ajv((formats: {date: true, time: true})) // to ignore "date" and "time" formats in schemas.
99
- ```
100
-
101
- 2. Format validation mode (default is `"full"`) with optional list of format names and `keywords` option to add additional format comparison keywords:
102
-
103
- ```javascript
104
- addFormats(ajv, {mode: "fast"})
105
- ```
106
-
107
- or
108
-
109
- ```javascript
110
- addFormats(ajv, {mode: "fast", formats: ["date", "time"], keywords: true})
111
- ```
112
-
113
- In `"fast"` mode the following formats are simplified: `"date"`, `"time"`, `"date-time"`, `"iso-time"`, `"iso-date-time"`, `"uri"`, `"uri-reference"`, `"email"`. For example, `"date"`, `"time"` and `"date-time"` do not validate ranges in `"fast"` mode, only string structure, and other formats have simplified regular expressions.
114
-
115
- ## Tests
116
-
117
- ```bash
118
- npm install
119
- git submodule update --init
120
- npm test
121
- ```
122
-
123
- ## License
124
-
125
- [MIT](https://github.com/ajv-validator/ajv-formats/blob/master/LICENSE)
@@ -1,9 +0,0 @@
1
- import type { Format } from "ajv";
2
- export type FormatMode = "fast" | "full";
3
- export type FormatName = "date" | "time" | "date-time" | "iso-time" | "iso-date-time" | "duration" | "uri" | "uri-reference" | "uri-template" | "url" | "email" | "hostname" | "ipv4" | "ipv6" | "regex" | "uuid" | "json-pointer" | "json-pointer-uri-fragment" | "relative-json-pointer" | "byte" | "int32" | "int64" | "float" | "double" | "password" | "binary";
4
- export type DefinedFormats = {
5
- [key in FormatName]: Format;
6
- };
7
- export declare const fullFormats: DefinedFormats;
8
- export declare const fastFormats: DefinedFormats;
9
- export declare const formatNames: FormatName[];
@@ -1,208 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
4
- function fmtDef(validate, compare) {
5
- return { validate, compare };
6
- }
7
- exports.fullFormats = {
8
- // date: http://tools.ietf.org/html/rfc3339#section-5.6
9
- date: fmtDef(date, compareDate),
10
- // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
11
- time: fmtDef(getTime(true), compareTime),
12
- "date-time": fmtDef(getDateTime(true), compareDateTime),
13
- "iso-time": fmtDef(getTime(), compareIsoTime),
14
- "iso-date-time": fmtDef(getDateTime(), compareIsoDateTime),
15
- // duration: https://tools.ietf.org/html/rfc3339#appendix-A
16
- duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)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-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,
19
- // uri-template: https://tools.ietf.org/html/rfc6570
20
- "uri-template": /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,
21
- // For the source: https://gist.github.com/dperini/729294
22
- // For test cases: https://mathiasbynens.be/demo/url-regex
23
- url: /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,
24
- email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
25
- hostname: /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,
26
- // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
27
- ipv4: /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,
28
- ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,
29
- regex,
30
- // uuid: http://tools.ietf.org/html/rfc4122
31
- uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,
32
- // JSON-pointer: https://tools.ietf.org/html/rfc6901
33
- // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
34
- "json-pointer": /^(?:\/(?:[^~/]|~0|~1)*)*$/,
35
- "json-pointer-uri-fragment": /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,
36
- // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
37
- "relative-json-pointer": /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,
38
- // the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types
39
- // byte: https://github.com/miguelmota/is-base64
40
- byte,
41
- // signed 32 bit integer
42
- int32: { type: "number", validate: validateInt32 },
43
- // signed 64 bit integer
44
- int64: { type: "number", validate: validateInt64 },
45
- // C-type float
46
- float: { type: "number", validate: validateNumber },
47
- // C-type double
48
- double: { type: "number", validate: validateNumber },
49
- // hint to the UI to hide input strings
50
- password: true,
51
- // unchecked string payload
52
- binary: true,
53
- };
54
- exports.fastFormats = {
55
- ...exports.fullFormats,
56
- date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
57
- time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
58
- "date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
59
- "iso-time": fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareIsoTime),
60
- "iso-date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareIsoDateTime),
61
- // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
62
- uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
63
- "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
64
- // email (sources from jsen validator):
65
- // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
66
- // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
67
- email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
68
- };
69
- exports.formatNames = Object.keys(exports.fullFormats);
70
- function isLeapYear(year) {
71
- // https://tools.ietf.org/html/rfc3339#appendix-C
72
- return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
73
- }
74
- const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
75
- const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
76
- function date(str) {
77
- // full-date from http://tools.ietf.org/html/rfc3339#section-5.6
78
- const matches = DATE.exec(str);
79
- if (!matches)
80
- return false;
81
- const year = +matches[1];
82
- const month = +matches[2];
83
- const day = +matches[3];
84
- return (month >= 1 &&
85
- month <= 12 &&
86
- day >= 1 &&
87
- day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]));
88
- }
89
- function compareDate(d1, d2) {
90
- if (!(d1 && d2))
91
- return undefined;
92
- if (d1 > d2)
93
- return 1;
94
- if (d1 < d2)
95
- return -1;
96
- return 0;
97
- }
98
- const TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
99
- function getTime(strictTimeZone) {
100
- return function time(str) {
101
- const matches = TIME.exec(str);
102
- if (!matches)
103
- return false;
104
- const hr = +matches[1];
105
- const min = +matches[2];
106
- const sec = +matches[3];
107
- const tz = matches[4];
108
- const tzSign = matches[5] === "-" ? -1 : 1;
109
- const tzH = +(matches[6] || 0);
110
- const tzM = +(matches[7] || 0);
111
- if (tzH > 23 || tzM > 59 || (strictTimeZone && !tz))
112
- return false;
113
- if (hr <= 23 && min <= 59 && sec < 60)
114
- return true;
115
- // leap second
116
- const utcMin = min - tzM * tzSign;
117
- const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);
118
- return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;
119
- };
120
- }
121
- function compareTime(s1, s2) {
122
- if (!(s1 && s2))
123
- return undefined;
124
- const t1 = new Date("2020-01-01T" + s1).valueOf();
125
- const t2 = new Date("2020-01-01T" + s2).valueOf();
126
- if (!(t1 && t2))
127
- return undefined;
128
- return t1 - t2;
129
- }
130
- function compareIsoTime(t1, t2) {
131
- if (!(t1 && t2))
132
- return undefined;
133
- const a1 = TIME.exec(t1);
134
- const a2 = TIME.exec(t2);
135
- if (!(a1 && a2))
136
- return undefined;
137
- t1 = a1[1] + a1[2] + a1[3];
138
- t2 = a2[1] + a2[2] + a2[3];
139
- if (t1 > t2)
140
- return 1;
141
- if (t1 < t2)
142
- return -1;
143
- return 0;
144
- }
145
- const DATE_TIME_SEPARATOR = /t|\s/i;
146
- function getDateTime(strictTimeZone) {
147
- const time = getTime(strictTimeZone);
148
- return function date_time(str) {
149
- // http://tools.ietf.org/html/rfc3339#section-5.6
150
- const dateTime = str.split(DATE_TIME_SEPARATOR);
151
- return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1]);
152
- };
153
- }
154
- function compareDateTime(dt1, dt2) {
155
- if (!(dt1 && dt2))
156
- return undefined;
157
- const d1 = new Date(dt1).valueOf();
158
- const d2 = new Date(dt2).valueOf();
159
- if (!(d1 && d2))
160
- return undefined;
161
- return d1 - d2;
162
- }
163
- function compareIsoDateTime(dt1, dt2) {
164
- if (!(dt1 && dt2))
165
- return undefined;
166
- const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);
167
- const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR);
168
- const res = compareDate(d1, d2);
169
- if (res === undefined)
170
- return undefined;
171
- return res || compareTime(t1, t2);
172
- }
173
- const NOT_URI_FRAGMENT = /\/|:/;
174
- const URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
175
- function uri(str) {
176
- // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "."
177
- return NOT_URI_FRAGMENT.test(str) && URI.test(str);
178
- }
179
- const BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
180
- function byte(str) {
181
- BYTE.lastIndex = 0;
182
- return BYTE.test(str);
183
- }
184
- const MIN_INT32 = -(2 ** 31);
185
- const MAX_INT32 = 2 ** 31 - 1;
186
- function validateInt32(value) {
187
- return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
188
- }
189
- function validateInt64(value) {
190
- // JSON and javascript max Int is 2**53, so any int that passes isInteger is valid for Int64
191
- return Number.isInteger(value);
192
- }
193
- function validateNumber() {
194
- return true;
195
- }
196
- const Z_ANCHOR = /[^\\]\\Z/;
197
- function regex(str) {
198
- if (Z_ANCHOR.test(str))
199
- return false;
200
- try {
201
- new RegExp(str);
202
- return true;
203
- }
204
- catch (e) {
205
- return false;
206
- }
207
- }
208
- //# sourceMappingURL=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AC,CAAA;AACpD,CAAC;AAED,MAAM,IAAI,GAAG,oEAAoE,CAAA;AAEjF,SAAS,IAAI,CAAC,GAAW;IACvB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAA;IAClB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACvB,CAAC;AAED,MAAM,SAAS,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;AAC5B,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;AAE7B,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,IAAI,SAAS,CAAA;AAC5E,CAAC;AAED,SAAS,aAAa,CAAC,KAAa;IAClC,4FAA4F;IAC5F,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAChC,CAAC;AAED,SAAS,cAAc;IACrB,OAAO,IAAI,CAAA;AACb,CAAC;AAED,MAAM,QAAQ,GAAG,UAAU,CAAA;AAC3B,SAAS,KAAK,CAAC,GAAW;IACxB,IAAI,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAA;IACpC,IAAI;QACF,IAAI,MAAM,CAAC,GAAG,CAAC,CAAA;QACf,OAAO,IAAI,CAAA;KACZ;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,KAAK,CAAA;KACb;AACH,CAAC"}
@@ -1,15 +0,0 @@
1
- import { FormatMode, FormatName } from "./formats";
2
- import type { Plugin, Format } from "ajv";
3
- export { FormatMode, FormatName } from "./formats";
4
- export { LimitFormatError } from "./limit";
5
- export interface FormatOptions {
6
- mode?: FormatMode;
7
- formats?: FormatName[];
8
- keywords?: boolean;
9
- }
10
- export type FormatsPluginOptions = FormatName[] | FormatOptions;
11
- export interface FormatsPlugin extends Plugin<FormatsPluginOptions> {
12
- get: (format: FormatName, mode?: FormatMode) => Format;
13
- }
14
- declare const formatsPlugin: FormatsPlugin;
15
- export default formatsPlugin;
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const formats_1 = require("./formats");
4
- const limit_1 = require("./limit");
5
- const codegen_1 = require("ajv/dist/compile/codegen");
6
- const fullName = new codegen_1.Name("fullFormats");
7
- const fastName = new codegen_1.Name("fastFormats");
8
- const formatsPlugin = (ajv, opts = { keywords: true }) => {
9
- if (Array.isArray(opts)) {
10
- addFormats(ajv, opts, formats_1.fullFormats, fullName);
11
- return ajv;
12
- }
13
- const [formats, exportName] = opts.mode === "fast" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName];
14
- const list = opts.formats || formats_1.formatNames;
15
- addFormats(ajv, list, formats, exportName);
16
- if (opts.keywords)
17
- (0, limit_1.default)(ajv);
18
- return ajv;
19
- };
20
- formatsPlugin.get = (name, mode = "full") => {
21
- const formats = mode === "fast" ? formats_1.fastFormats : formats_1.fullFormats;
22
- const f = formats[name];
23
- if (!f)
24
- throw new Error(`Unknown format "${name}"`);
25
- return f;
26
- };
27
- function addFormats(ajv, list, fs, exportName) {
28
- var _a;
29
- var _b;
30
- (_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : (_b.formats = (0, codegen_1._) `require("ajv-formats/dist/formats").${exportName}`);
31
- for (const f of list)
32
- ajv.addFormat(f, fs[f]);
33
- }
34
- module.exports = exports = formatsPlugin;
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.default = formatsPlugin;
37
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,uCAOkB;AAClB,mCAAiC;AAGjC,sDAAgD;AAgBhD,MAAM,QAAQ,GAAG,IAAI,cAAI,CAAC,aAAa,CAAC,CAAA;AACxC,MAAM,QAAQ,GAAG,IAAI,cAAI,CAAC,aAAa,CAAC,CAAA;AAExC,MA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KAAK,MAAM,CAAC,IAAI,IAAI;QAAE,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;AAC/C,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,GAAG,aAAa,CAAA;AACxC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAA;AAE3D,kBAAe,aAAa,CAAA"}
@@ -1,10 +0,0 @@
1
- import type { Plugin, CodeKeywordDefinition, ErrorObject } from "ajv";
2
- type Kwd = "formatMaximum" | "formatMinimum" | "formatExclusiveMaximum" | "formatExclusiveMinimum";
3
- type Comparison = "<=" | ">=" | "<" | ">";
4
- export type LimitFormatError = ErrorObject<Kwd, {
5
- limit: string;
6
- comparison: Comparison;
7
- }>;
8
- export declare const formatLimitDefinition: CodeKeywordDefinition;
9
- declare const formatLimitPlugin: Plugin<undefined>;
10
- export default formatLimitPlugin;
@@ -1,69 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatLimitDefinition = void 0;
4
- const ajv_1 = require("ajv");
5
- const codegen_1 = require("ajv/dist/compile/codegen");
6
- const ops = codegen_1.operators;
7
- const KWDs = {
8
- formatMaximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT },
9
- formatMinimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT },
10
- formatExclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
11
- formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE },
12
- };
13
- const error = {
14
- message: ({ keyword, schemaCode }) => (0, codegen_1.str) `should be ${KWDs[keyword].okStr} ${schemaCode}`,
15
- params: ({ keyword, schemaCode }) => (0, codegen_1._) `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,
16
- };
17
- exports.formatLimitDefinition = {
18
- keyword: Object.keys(KWDs),
19
- type: "string",
20
- schemaType: "string",
21
- $data: true,
22
- error,
23
- code(cxt) {
24
- const { gen, data, schemaCode, keyword, it } = cxt;
25
- const { opts, self } = it;
26
- if (!opts.validateFormats)
27
- return;
28
- const fCxt = new ajv_1.KeywordCxt(it, self.RULES.all.format.definition, "format");
29
- if (fCxt.$data)
30
- validate$DataFormat();
31
- else
32
- validateFormat();
33
- function validate$DataFormat() {
34
- const fmts = gen.scopeValue("formats", {
35
- ref: self.formats,
36
- code: opts.code.formats,
37
- });
38
- const fmt = gen.const("fmt", (0, codegen_1._) `${fmts}[${fCxt.schemaCode}]`);
39
- cxt.fail$data((0, codegen_1.or)((0, codegen_1._) `typeof ${fmt} != "object"`, (0, codegen_1._) `${fmt} instanceof RegExp`, (0, codegen_1._) `typeof ${fmt}.compare != "function"`, compareCode(fmt)));
40
- }
41
- function validateFormat() {
42
- const format = fCxt.schema;
43
- const fmtDef = self.formats[format];
44
- if (!fmtDef || fmtDef === true)
45
- return;
46
- if (typeof fmtDef != "object" ||
47
- fmtDef instanceof RegExp ||
48
- typeof fmtDef.compare != "function") {
49
- throw new Error(`"${keyword}": format "${format}" does not define "compare" function`);
50
- }
51
- const fmt = gen.scopeValue("formats", {
52
- key: format,
53
- ref: fmtDef,
54
- code: opts.code.formats ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(format)}` : undefined,
55
- });
56
- cxt.fail$data(compareCode(fmt));
57
- }
58
- function compareCode(fmt) {
59
- return (0, codegen_1._) `${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`;
60
- }
61
- },
62
- dependencies: ["format"],
63
- };
64
- const formatLimitPlugin = (ajv) => {
65
- ajv.addKeyword(exports.formatLimitDefinition);
66
- return ajv;
67
- };
68
- exports.default = formatLimitPlugin;
69
- //# sourceMappingURL=limit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"limit.js","sourceRoot":"","sources":["../src/limit.ts"],"names":[],"mappings":";;;AAWA,6BAA8B;AAC9B,sDAA2E;AAM3E,MA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G,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE;gBACpC,GAAG,EAAE,MAAM;gBACX,GAAG,EAAE,MAAM;gBACX,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,IAAA,qBAAW,EAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;aACpF,CAAC,CAAA;YAEF,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QACjC,CAAC;QAED,SAAS,WAAW,CAAC,GAAS;YAC5B,OAAO,IAAA,WAAC,EAAA,GAAG,GAAG,YAAY,IAAI,KAAK,UAAU,KAAK,IAAI,CAAC,OAAc,CAAC,CAAC,IAAI,IAAI,CAAA;QACjF,CAAC;IACH,CAAC;IACD,YAAY,EAAE,CAAC,QAAQ,CAAC;CACzB,CAAA;AAED,MAAM,iBAAiB,GAAsB,CAAC,GAAQ,EAAO,EAAE;IAC7D,GAAG,CAAC,UAAU,CAAC,6BAAqB,CAAC,CAAA;IACrC,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,kBAAe,iBAAiB,CAAA"}
@@ -1,74 +0,0 @@
1
- {
2
- "name": "ajv-formats",
3
- "version": "3.0.1",
4
- "description": "Format validation for Ajv v7+",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "src/",
9
- "dist/"
10
- ],
11
- "scripts": {
12
- "build": "tsc",
13
- "prettier:write": "prettier --write \"./**/*.{md,json,yaml,js,ts}\"",
14
- "prettier:check": "prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"",
15
- "eslint": "eslint --ext .ts ./src/**/*",
16
- "test-spec": "jest",
17
- "test-cov": "jest --coverage",
18
- "test": "npm run prettier:check && npm run build && npm run eslint && npm run test-cov",
19
- "ci-test": "npm run test"
20
- },
21
- "repository": {
22
- "type": "git",
23
- "url": "git+https://github.com/ajv-validator/ajv-formats.git"
24
- },
25
- "keywords": [
26
- "Ajv",
27
- "JSON-Schema",
28
- "format",
29
- "validation"
30
- ],
31
- "author": "Evgeny Poberezkin",
32
- "license": "MIT",
33
- "bugs": {
34
- "url": "https://github.com/ajv-validator/ajv-formats/issues"
35
- },
36
- "homepage": "https://github.com/ajv-validator/ajv-formats#readme",
37
- "dependencies": {
38
- "ajv": "^8.0.0"
39
- },
40
- "peerDependencies": {
41
- "ajv": "^8.0.0"
42
- },
43
- "peerDependenciesMeta": {
44
- "ajv": {
45
- "optional": true
46
- }
47
- },
48
- "devDependencies": {
49
- "@ajv-validator/config": "^0.3.0",
50
- "@types/jest": "^26.0.5",
51
- "@types/node": "^14.10.1",
52
- "@typescript-eslint/eslint-plugin": "^3.7.0",
53
- "@typescript-eslint/parser": "^3.7.0",
54
- "ajv": "^8.0.0",
55
- "eslint": "^7.5.0",
56
- "eslint-config-prettier": "^6.11.0",
57
- "husky": "^4.2.5",
58
- "jest": "^26.1.0",
59
- "json-schema-test": "^2.0.0",
60
- "lint-staged": "^10.2.11",
61
- "prettier": "^2.3.2",
62
- "ts-jest": "^26.1.3",
63
- "typescript": "^4.0.0"
64
- },
65
- "prettier": "@ajv-validator/config/prettierrc.json",
66
- "husky": {
67
- "hooks": {
68
- "pre-commit": "lint-staged && npm test"
69
- }
70
- },
71
- "lint-staged": {
72
- "*.{md,json,yaml,js,ts}": "prettier --write"
73
- }
74
- }