pi-proactive 0.2.0-beta.2 → 0.2.0-beta.3

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 (243) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +32 -28
  3. package/build/cli.mjs +121 -0
  4. package/build/extensions/proactive.js +47 -6
  5. package/build/src/commands.js +78 -2
  6. package/build/src/config.js +511 -4
  7. package/build/src/daemon-config.js +221 -0
  8. package/build/src/daemon-contact.js +103 -0
  9. package/build/src/daemon-host.js +84 -0
  10. package/build/src/daemon.js +193 -3
  11. package/build/src/health.js +84 -0
  12. package/build/src/lineage.js +41 -2
  13. package/build/src/notify.js +183 -0
  14. package/build/src/progress-eta.js +134 -0
  15. package/build/src/trigger.js +43 -0
  16. package/build/src/trust-loop.js +321 -0
  17. package/build/src/trust-metrics.js +236 -0
  18. package/build/src/trust-notify.js +73 -0
  19. package/build/src/trust-policy.js +58 -0
  20. package/build/src/trust-registry.js +323 -0
  21. package/daemon/launchd.plist +48 -0
  22. package/daemon/pi-proactive-daemon.service +29 -0
  23. package/daemon/run-daemon.sh +84 -0
  24. package/node_modules/typebox/build/compile/code.mjs +2 -1
  25. package/node_modules/typebox/build/compile/validator.mjs +1 -5
  26. package/node_modules/typebox/build/format/date_time.d.mts +1 -2
  27. package/node_modules/typebox/build/format/date_time.mjs +3 -12
  28. package/node_modules/typebox/build/format/duration.d.mts +2 -2
  29. package/node_modules/typebox/build/format/duration.mjs +2 -2
  30. package/node_modules/typebox/build/format/idn_email.d.mts +0 -1
  31. package/node_modules/typebox/build/format/idn_email.mjs +0 -1
  32. package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -1
  33. package/node_modules/typebox/build/format/idn_hostname.mjs +1 -1
  34. package/node_modules/typebox/build/format/ipv4.d.mts +2 -2
  35. package/node_modules/typebox/build/format/ipv4.mjs +2 -2
  36. package/node_modules/typebox/build/format/ipv6.d.mts +1 -1
  37. package/node_modules/typebox/build/format/ipv6.mjs +1 -1
  38. package/node_modules/typebox/build/format/iri.mjs +9 -16
  39. package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
  40. package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
  41. package/node_modules/typebox/build/guard/emit.mjs +2 -2
  42. package/node_modules/typebox/build/guard/guard.d.mts +5 -7
  43. package/node_modules/typebox/build/guard/guard.mjs +9 -14
  44. package/node_modules/typebox/build/guard/index.mjs +0 -6
  45. package/node_modules/typebox/build/guard/{unicode/unicode_segment.mjs → string.mjs} +19 -16
  46. package/node_modules/typebox/build/schema/build.mjs +5 -5
  47. package/node_modules/typebox/build/schema/check.mjs +1 -1
  48. package/node_modules/typebox/build/schema/engine/_context.d.mts +1 -5
  49. package/node_modules/typebox/build/schema/engine/_context.mjs +3 -16
  50. package/node_modules/typebox/build/schema/engine/_functions.d.mts +2 -2
  51. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
  52. package/node_modules/typebox/build/schema/engine/_reducer.d.mts +3 -3
  53. package/node_modules/typebox/build/schema/engine/_refine.d.mts +5 -5
  54. package/node_modules/typebox/build/schema/engine/_refine.mjs +9 -14
  55. package/node_modules/typebox/build/schema/engine/_stack.d.mts +20 -34
  56. package/node_modules/typebox/build/schema/engine/_stack.mjs +202 -143
  57. package/node_modules/typebox/build/schema/engine/_unique.d.mts +2 -4
  58. package/node_modules/typebox/build/schema/engine/_unique.mjs +3 -7
  59. package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +4 -4
  60. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +3 -3
  61. package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +8 -5
  62. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +32 -27
  63. package/node_modules/typebox/build/schema/engine/allOf.d.mts +4 -4
  64. package/node_modules/typebox/build/schema/engine/allOf.mjs +1 -1
  65. package/node_modules/typebox/build/schema/engine/anyOf.d.mts +4 -4
  66. package/node_modules/typebox/build/schema/engine/anyOf.mjs +9 -4
  67. package/node_modules/typebox/build/schema/engine/boolean.d.mts +4 -4
  68. package/node_modules/typebox/build/schema/engine/boolean.mjs +6 -2
  69. package/node_modules/typebox/build/schema/engine/const.d.mts +4 -4
  70. package/node_modules/typebox/build/schema/engine/const.mjs +6 -2
  71. package/node_modules/typebox/build/schema/engine/contains.d.mts +4 -4
  72. package/node_modules/typebox/build/schema/engine/contains.mjs +9 -5
  73. package/node_modules/typebox/build/schema/engine/dependencies.d.mts +4 -4
  74. package/node_modules/typebox/build/schema/engine/dependencies.mjs +7 -5
  75. package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +4 -4
  76. package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +6 -2
  77. package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +4 -4
  78. package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +1 -2
  79. package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +4 -4
  80. package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +8 -12
  81. package/node_modules/typebox/build/schema/engine/enum.d.mts +4 -4
  82. package/node_modules/typebox/build/schema/engine/enum.mjs +6 -2
  83. package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +4 -4
  84. package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +6 -2
  85. package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +4 -4
  86. package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +6 -2
  87. package/node_modules/typebox/build/schema/engine/format.d.mts +4 -4
  88. package/node_modules/typebox/build/schema/engine/format.mjs +8 -11
  89. package/node_modules/typebox/build/schema/engine/if.d.mts +4 -4
  90. package/node_modules/typebox/build/schema/engine/if.mjs +13 -5
  91. package/node_modules/typebox/build/schema/engine/index.d.mts +0 -1
  92. package/node_modules/typebox/build/schema/engine/index.mjs +0 -1
  93. package/node_modules/typebox/build/schema/engine/items.d.mts +4 -4
  94. package/node_modules/typebox/build/schema/engine/items.mjs +5 -8
  95. package/node_modules/typebox/build/schema/engine/maxContains.d.mts +4 -4
  96. package/node_modules/typebox/build/schema/engine/maxContains.mjs +8 -4
  97. package/node_modules/typebox/build/schema/engine/maxItems.d.mts +4 -4
  98. package/node_modules/typebox/build/schema/engine/maxItems.mjs +6 -2
  99. package/node_modules/typebox/build/schema/engine/maxLength.d.mts +4 -4
  100. package/node_modules/typebox/build/schema/engine/maxLength.mjs +6 -2
  101. package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +4 -4
  102. package/node_modules/typebox/build/schema/engine/maxProperties.mjs +6 -2
  103. package/node_modules/typebox/build/schema/engine/maximum.d.mts +4 -4
  104. package/node_modules/typebox/build/schema/engine/maximum.mjs +6 -2
  105. package/node_modules/typebox/build/schema/engine/minContains.d.mts +4 -4
  106. package/node_modules/typebox/build/schema/engine/minContains.mjs +9 -5
  107. package/node_modules/typebox/build/schema/engine/minItems.d.mts +5 -5
  108. package/node_modules/typebox/build/schema/engine/minItems.mjs +6 -2
  109. package/node_modules/typebox/build/schema/engine/minLength.d.mts +4 -4
  110. package/node_modules/typebox/build/schema/engine/minLength.mjs +6 -2
  111. package/node_modules/typebox/build/schema/engine/minProperties.d.mts +4 -4
  112. package/node_modules/typebox/build/schema/engine/minProperties.mjs +6 -2
  113. package/node_modules/typebox/build/schema/engine/minimum.d.mts +4 -4
  114. package/node_modules/typebox/build/schema/engine/minimum.mjs +6 -2
  115. package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +4 -4
  116. package/node_modules/typebox/build/schema/engine/multipleOf.mjs +6 -2
  117. package/node_modules/typebox/build/schema/engine/not.d.mts +4 -4
  118. package/node_modules/typebox/build/schema/engine/not.mjs +8 -4
  119. package/node_modules/typebox/build/schema/engine/oneOf.d.mts +4 -4
  120. package/node_modules/typebox/build/schema/engine/oneOf.mjs +11 -6
  121. package/node_modules/typebox/build/schema/engine/pattern.d.mts +4 -4
  122. package/node_modules/typebox/build/schema/engine/pattern.mjs +7 -3
  123. package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +4 -4
  124. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +5 -6
  125. package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +4 -4
  126. package/node_modules/typebox/build/schema/engine/prefixItems.mjs +1 -1
  127. package/node_modules/typebox/build/schema/engine/properties.d.mts +4 -4
  128. package/node_modules/typebox/build/schema/engine/properties.mjs +3 -4
  129. package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +4 -4
  130. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +10 -7
  131. package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +4 -4
  132. package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +8 -12
  133. package/node_modules/typebox/build/schema/engine/ref.d.mts +4 -4
  134. package/node_modules/typebox/build/schema/engine/ref.mjs +14 -18
  135. package/node_modules/typebox/build/schema/engine/required.d.mts +4 -4
  136. package/node_modules/typebox/build/schema/engine/required.mjs +6 -2
  137. package/node_modules/typebox/build/schema/engine/schema.d.mts +7 -7
  138. package/node_modules/typebox/build/schema/engine/schema.mjs +138 -136
  139. package/node_modules/typebox/build/schema/engine/type.d.mts +4 -4
  140. package/node_modules/typebox/build/schema/engine/type.mjs +6 -2
  141. package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +4 -4
  142. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +9 -5
  143. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +4 -4
  144. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +9 -5
  145. package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +4 -4
  146. package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +6 -2
  147. package/node_modules/typebox/build/schema/errors.mjs +1 -1
  148. package/node_modules/typebox/build/schema/intern/intern.d.mts +9 -6
  149. package/node_modules/typebox/build/schema/intern/intern.mjs +56 -90
  150. package/node_modules/typebox/build/schema/parse.mjs +0 -3
  151. package/node_modules/typebox/build/schema/pointer/pointer.d.mts +6 -1
  152. package/node_modules/typebox/build/schema/pointer/pointer.mjs +64 -47
  153. package/node_modules/typebox/build/schema/resolve/resolve.d.mts +32 -6
  154. package/node_modules/typebox/build/schema/resolve/resolve.mjs +227 -231
  155. package/node_modules/typebox/build/schema/schema.d.mts +0 -1
  156. package/node_modules/typebox/build/schema/schema.mjs +0 -1
  157. package/node_modules/typebox/build/system/hashing/hash.mjs +34 -63
  158. package/node_modules/typebox/build/system/locale/en_US.mjs +1 -2
  159. package/node_modules/typebox/build/system/memory/assign.d.mts +8 -2
  160. package/node_modules/typebox/build/system/memory/assign.mjs +6 -13
  161. package/node_modules/typebox/build/system/memory/clone.d.mts +5 -4
  162. package/node_modules/typebox/build/system/memory/clone.mjs +96 -8
  163. package/node_modules/typebox/build/system/memory/create.d.mts +5 -1
  164. package/node_modules/typebox/build/system/memory/create.mjs +13 -18
  165. package/node_modules/typebox/build/system/memory/discard.d.mts +1 -1
  166. package/node_modules/typebox/build/system/memory/discard.mjs +8 -9
  167. package/node_modules/typebox/build/system/memory/freeze.d.mts +4 -0
  168. package/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
  169. package/node_modules/typebox/build/system/memory/update.d.mts +4 -1
  170. package/node_modules/typebox/build/system/memory/update.mjs +16 -43
  171. package/node_modules/typebox/build/system/settings/settings.d.mts +0 -11
  172. package/node_modules/typebox/build/system/settings/settings.mjs +0 -14
  173. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +24 -2
  174. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +29 -2
  175. package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +0 -1
  176. package/node_modules/typebox/build/type/engine/evaluate/index.mjs +0 -1
  177. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +1 -5
  178. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +1 -6
  179. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +3 -1
  180. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +4 -1
  181. package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +2 -2
  182. package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +2 -2
  183. package/node_modules/typebox/build/type/engine/object/from_union.d.mts +2 -2
  184. package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
  185. package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +3 -1
  186. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +4 -1
  187. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +3 -1
  188. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +4 -1
  189. package/node_modules/typebox/build/type/extends/inference.d.mts +1 -1
  190. package/node_modules/typebox/build/type/extends/inference.mjs +2 -15
  191. package/node_modules/typebox/build/type/extends/tuple.d.mts +1 -2
  192. package/node_modules/typebox/build/type/extends/tuple.mjs +1 -21
  193. package/node_modules/typebox/build/value/clean/from_object.mjs +1 -1
  194. package/node_modules/typebox/build/value/clone/clone.d.mts +3 -4
  195. package/node_modules/typebox/build/value/clone/clone.mjs +7 -5
  196. package/node_modules/typebox/build/value/parse/parse.mjs +4 -10
  197. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +14 -25
  198. package/node_modules/typebox/package.json +1 -1
  199. package/node_modules/typebox/readme.md +84 -52
  200. package/package.json +11 -3
  201. package/skills/pi-proactive/SKILL.md +27 -24
  202. package/tools/cli.mjs +121 -0
  203. package/tools/daemon-install.sh +397 -0
  204. package/tools/daemon-uninstall.sh +226 -0
  205. package/node_modules/typebox/build/guard/unicode/unicode.d.mts +0 -6
  206. package/node_modules/typebox/build/guard/unicode/unicode.mjs +0 -35
  207. package/node_modules/typebox/build/schema/engine/_pathing.d.mts +0 -1
  208. package/node_modules/typebox/build/schema/engine/_pathing.mjs +0 -11
  209. package/node_modules/typebox/build/schema/meta/draft_2019_09.d.mts +0 -2
  210. package/node_modules/typebox/build/schema/meta/draft_2019_09.mjs +0 -288
  211. package/node_modules/typebox/build/schema/meta/draft_2020_12.d.mts +0 -2
  212. package/node_modules/typebox/build/schema/meta/draft_2020_12.mjs +0 -300
  213. package/node_modules/typebox/build/schema/meta/draft_3.d.mts +0 -2
  214. package/node_modules/typebox/build/schema/meta/draft_3.mjs +0 -143
  215. package/node_modules/typebox/build/schema/meta/draft_4.d.mts +0 -2
  216. package/node_modules/typebox/build/schema/meta/draft_4.mjs +0 -149
  217. package/node_modules/typebox/build/schema/meta/draft_6.d.mts +0 -2
  218. package/node_modules/typebox/build/schema/meta/draft_6.mjs +0 -155
  219. package/node_modules/typebox/build/schema/meta/draft_7.d.mts +0 -2
  220. package/node_modules/typebox/build/schema/meta/draft_7.mjs +0 -172
  221. package/node_modules/typebox/build/schema/meta/index.d.mts +0 -2
  222. package/node_modules/typebox/build/schema/meta/index.mjs +0 -2
  223. package/node_modules/typebox/build/schema/meta/meta.d.mts +0 -9
  224. package/node_modules/typebox/build/schema/meta/meta.mjs +0 -15
  225. package/node_modules/typebox/build/schema/meta/schema.d.mts +0 -6
  226. package/node_modules/typebox/build/schema/meta/schema.mjs +0 -1
  227. package/node_modules/typebox/build/system/memory/deep.d.mts +0 -2
  228. package/node_modules/typebox/build/system/memory/deep.mjs +0 -108
  229. package/node_modules/typebox/build/system/memory/finalize.d.mts +0 -4
  230. package/node_modules/typebox/build/system/memory/finalize.mjs +0 -30
  231. package/node_modules/typebox/build/system/memory/keys.d.mts +0 -2
  232. package/node_modules/typebox/build/system/memory/keys.mjs +0 -8
  233. package/node_modules/typebox/build/system/settings/internal.d.mts +0 -2
  234. package/node_modules/typebox/build/system/settings/internal.mjs +0 -20
  235. package/node_modules/typebox/build/type/engine/call/index.d.mts +0 -1
  236. package/node_modules/typebox/build/type/engine/call/index.mjs +0 -1
  237. package/node_modules/typebox/build/type/engine/evaluate/property.d.mts +0 -30
  238. package/node_modules/typebox/build/type/engine/evaluate/property.mjs +0 -29
  239. package/node_modules/typebox/build/type/engine/this/index.d.mts +0 -1
  240. package/node_modules/typebox/build/type/engine/this/index.mjs +0 -1
  241. package/node_modules/typebox/build/value/repair/from_cyclic.d.mts +0 -2
  242. package/node_modules/typebox/build/value/repair/from_cyclic.mjs +0 -6
  243. /package/node_modules/typebox/build/guard/{unicode/unicode_segment.d.mts → string.d.mts} +0 -0
@@ -1,11 +0,0 @@
1
- // ------------------------------------------------------------------
2
- // EncodeFragment
3
- //
4
- // We use this function to encode instancePath and schemaPath path
5
- // fragments for errors. We need this encoding such that callers
6
- // can use Pointer to deref error targets. We should consider adding
7
- // this to the Pointer module as Pointer.Encode(...) (review)
8
- // ------------------------------------------------------------------
9
- export function EncodeFragment(fragment) {
10
- return fragment.replace(/~/g, '~0').replace(/\//g, '~1');
11
- }
@@ -1,2 +0,0 @@
1
- import type { XMetaSchemaObject } from './schema.mjs';
2
- export declare const Draft_2019_09: XMetaSchemaObject;
@@ -1,288 +0,0 @@
1
- export const Draft_2019_09 = {
2
- '$schema': 'https://json-schema.org/draft/2019-09/schema',
3
- '$id': 'https://json-schema.org/draft/2019-09/schema',
4
- '$vocabulary': {
5
- 'https://json-schema.org/draft/2019-09/vocab/core': true,
6
- 'https://json-schema.org/draft/2019-09/vocab/applicator': true,
7
- 'https://json-schema.org/draft/2019-09/vocab/validation': true,
8
- 'https://json-schema.org/draft/2019-09/vocab/meta-data': true,
9
- 'https://json-schema.org/draft/2019-09/vocab/format': false,
10
- 'https://json-schema.org/draft/2019-09/vocab/content': true
11
- },
12
- '$recursiveAnchor': true,
13
- 'title': 'Core and Validation specifications meta-schema',
14
- 'allOf': [
15
- {
16
- '$schema': 'https://json-schema.org/draft/2019-09/schema',
17
- '$id': 'https://json-schema.org/draft/2019-09/meta/core',
18
- '$recursiveAnchor': true,
19
- 'title': 'Core vocabulary meta-schema',
20
- 'type': ['object', 'boolean'],
21
- 'properties': {
22
- '$id': {
23
- 'type': 'string',
24
- 'format': 'uri-reference',
25
- '$comment': 'Non-empty fragments not allowed.',
26
- 'pattern': '^[^#]*#?$'
27
- },
28
- '$schema': {
29
- 'type': 'string',
30
- 'format': 'uri'
31
- },
32
- '$anchor': {
33
- 'type': 'string',
34
- 'pattern': '^[A-Za-z][-A-Za-z0-9.:_]*$'
35
- },
36
- '$ref': {
37
- 'type': 'string',
38
- 'format': 'uri-reference'
39
- },
40
- '$recursiveRef': {
41
- 'type': 'string',
42
- 'format': 'uri-reference'
43
- },
44
- '$recursiveAnchor': {
45
- 'type': 'boolean',
46
- 'default': false
47
- },
48
- '$vocabulary': {
49
- 'type': 'object',
50
- 'propertyNames': {
51
- 'type': 'string',
52
- 'format': 'uri'
53
- },
54
- 'additionalProperties': {
55
- 'type': 'boolean'
56
- }
57
- },
58
- '$comment': {
59
- 'type': 'string'
60
- },
61
- '$defs': {
62
- 'type': 'object',
63
- 'additionalProperties': { '$recursiveRef': '#' },
64
- 'default': {}
65
- }
66
- }
67
- },
68
- {
69
- '$schema': 'https://json-schema.org/draft/2019-09/schema',
70
- '$id': 'https://json-schema.org/draft/2019-09/meta/applicator',
71
- '$recursiveAnchor': true,
72
- 'title': 'Applicator vocabulary meta-schema',
73
- 'type': ['object', 'boolean'],
74
- 'properties': {
75
- 'additionalItems': { '$recursiveRef': '#' },
76
- 'unevaluatedItems': { '$recursiveRef': '#' },
77
- 'items': {
78
- 'anyOf': [
79
- { '$recursiveRef': '#' },
80
- { '$ref': '#/$defs/schemaArray' }
81
- ]
82
- },
83
- 'contains': { '$recursiveRef': '#' },
84
- 'additionalProperties': { '$recursiveRef': '#' },
85
- 'unevaluatedProperties': { '$recursiveRef': '#' },
86
- 'properties': {
87
- 'type': 'object',
88
- 'additionalProperties': { '$recursiveRef': '#' },
89
- 'default': {}
90
- },
91
- 'patternProperties': {
92
- 'type': 'object',
93
- 'additionalProperties': { '$recursiveRef': '#' },
94
- 'propertyNames': { 'format': 'regex' },
95
- 'default': {}
96
- },
97
- 'dependentSchemas': {
98
- 'type': 'object',
99
- 'additionalProperties': {
100
- '$recursiveRef': '#'
101
- }
102
- },
103
- 'propertyNames': { '$recursiveRef': '#' },
104
- 'if': { '$recursiveRef': '#' },
105
- 'then': { '$recursiveRef': '#' },
106
- 'else': { '$recursiveRef': '#' },
107
- 'allOf': { '$ref': '#/$defs/schemaArray' },
108
- 'anyOf': { '$ref': '#/$defs/schemaArray' },
109
- 'oneOf': { '$ref': '#/$defs/schemaArray' },
110
- 'not': { '$recursiveRef': '#' }
111
- },
112
- '$defs': {
113
- 'schemaArray': {
114
- 'type': 'array',
115
- 'minItems': 1,
116
- 'items': { '$recursiveRef': '#' }
117
- }
118
- }
119
- },
120
- {
121
- '$schema': 'https://json-schema.org/draft/2019-09/schema',
122
- '$id': 'https://json-schema.org/draft/2019-09/meta/validation',
123
- '$recursiveAnchor': true,
124
- 'title': 'Validation vocabulary meta-schema',
125
- 'type': ['object', 'boolean'],
126
- 'properties': {
127
- 'multipleOf': {
128
- 'type': 'number',
129
- 'exclusiveMinimum': 0
130
- },
131
- 'maximum': {
132
- 'type': 'number'
133
- },
134
- 'exclusiveMaximum': {
135
- 'type': 'number'
136
- },
137
- 'minimum': {
138
- 'type': 'number'
139
- },
140
- 'exclusiveMinimum': {
141
- 'type': 'number'
142
- },
143
- 'maxLength': { '$ref': '#/$defs/nonNegativeInteger' },
144
- 'minLength': { '$ref': '#/$defs/nonNegativeIntegerDefault0' },
145
- 'pattern': {
146
- 'type': 'string',
147
- 'format': 'regex'
148
- },
149
- 'maxItems': { '$ref': '#/$defs/nonNegativeInteger' },
150
- 'minItems': { '$ref': '#/$defs/nonNegativeIntegerDefault0' },
151
- 'uniqueItems': {
152
- 'type': 'boolean',
153
- 'default': false
154
- },
155
- 'maxContains': { '$ref': '#/$defs/nonNegativeInteger' },
156
- 'minContains': {
157
- '$ref': '#/$defs/nonNegativeInteger',
158
- 'default': 1
159
- },
160
- 'maxProperties': { '$ref': '#/$defs/nonNegativeInteger' },
161
- 'minProperties': { '$ref': '#/$defs/nonNegativeIntegerDefault0' },
162
- 'required': { '$ref': '#/$defs/stringArray' },
163
- 'dependentRequired': {
164
- 'type': 'object',
165
- 'additionalProperties': {
166
- '$ref': '#/$defs/stringArray'
167
- }
168
- },
169
- 'const': true,
170
- 'enum': {
171
- 'type': 'array',
172
- 'items': true
173
- },
174
- 'type': {
175
- 'anyOf': [
176
- { '$ref': '#/$defs/simpleTypes' },
177
- {
178
- 'type': 'array',
179
- 'items': { '$ref': '#/$defs/simpleTypes' },
180
- 'minItems': 1,
181
- 'uniqueItems': true
182
- }
183
- ]
184
- }
185
- },
186
- '$defs': {
187
- 'nonNegativeInteger': {
188
- 'type': 'integer',
189
- 'minimum': 0
190
- },
191
- 'nonNegativeIntegerDefault0': {
192
- '$ref': '#/$defs/nonNegativeInteger',
193
- 'default': 0
194
- },
195
- 'simpleTypes': {
196
- 'enum': [
197
- 'array',
198
- 'boolean',
199
- 'integer',
200
- 'null',
201
- 'number',
202
- 'object',
203
- 'string'
204
- ]
205
- },
206
- 'stringArray': {
207
- 'type': 'array',
208
- 'items': { 'type': 'string' },
209
- 'uniqueItems': true,
210
- 'default': []
211
- }
212
- }
213
- },
214
- {
215
- '$schema': 'https://json-schema.org/draft/2019-09/schema',
216
- '$id': 'https://json-schema.org/draft/2019-09/meta/meta-data',
217
- '$recursiveAnchor': true,
218
- 'title': 'Meta-data vocabulary meta-schema',
219
- 'type': ['object', 'boolean'],
220
- 'properties': {
221
- 'title': {
222
- 'type': 'string'
223
- },
224
- 'description': {
225
- 'type': 'string'
226
- },
227
- 'default': true,
228
- 'deprecated': {
229
- 'type': 'boolean',
230
- 'default': false
231
- },
232
- 'readOnly': {
233
- 'type': 'boolean',
234
- 'default': false
235
- },
236
- 'writeOnly': {
237
- 'type': 'boolean',
238
- 'default': false
239
- },
240
- 'examples': {
241
- 'type': 'array',
242
- 'items': true
243
- }
244
- }
245
- },
246
- {
247
- '$schema': 'https://json-schema.org/draft/2019-09/schema',
248
- '$id': 'https://json-schema.org/draft/2019-09/meta/format',
249
- '$recursiveAnchor': true,
250
- 'title': 'Format vocabulary meta-schema',
251
- 'type': ['object', 'boolean'],
252
- 'properties': {
253
- 'format': { 'type': 'string' }
254
- }
255
- },
256
- {
257
- '$schema': 'https://json-schema.org/draft/2019-09/schema',
258
- '$id': 'https://json-schema.org/draft/2019-09/meta/content',
259
- '$recursiveAnchor': true,
260
- 'title': 'Content vocabulary meta-schema',
261
- 'type': ['object', 'boolean'],
262
- 'properties': {
263
- 'contentMediaType': { 'type': 'string' },
264
- 'contentEncoding': { 'type': 'string' },
265
- 'contentSchema': { '$recursiveRef': '#' }
266
- }
267
- }
268
- ],
269
- 'type': ['object', 'boolean'],
270
- 'properties': {
271
- 'definitions': {
272
- '$comment': 'While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.',
273
- 'type': 'object',
274
- 'additionalProperties': { '$recursiveRef': '#' },
275
- 'default': {}
276
- },
277
- 'dependencies': {
278
- '$comment': '"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',
279
- 'type': 'object',
280
- 'additionalProperties': {
281
- 'anyOf': [
282
- { '$recursiveRef': '#' },
283
- { '$ref': 'meta/validation#/$defs/stringArray' }
284
- ]
285
- }
286
- }
287
- }
288
- };
@@ -1,2 +0,0 @@
1
- import type { XMetaSchemaObject } from './schema.mjs';
2
- export declare const Draft_2020_12: XMetaSchemaObject;
@@ -1,300 +0,0 @@
1
- export const Draft_2020_12 = {
2
- '$schema': 'https://json-schema.org/draft/2020-12/schema',
3
- '$id': 'https://json-schema.org/draft/2020-12/schema',
4
- '$vocabulary': {
5
- 'https://json-schema.org/draft/2020-12/vocab/core': true,
6
- 'https://json-schema.org/draft/2020-12/vocab/applicator': true,
7
- 'https://json-schema.org/draft/2020-12/vocab/unevaluated': true,
8
- 'https://json-schema.org/draft/2020-12/vocab/validation': true,
9
- 'https://json-schema.org/draft/2020-12/vocab/meta-data': true,
10
- 'https://json-schema.org/draft/2020-12/vocab/format-annotation': true,
11
- 'https://json-schema.org/draft/2020-12/vocab/content': true
12
- },
13
- '$dynamicAnchor': 'meta',
14
- 'title': 'Core and Validation specifications meta-schema',
15
- 'allOf': [
16
- {
17
- '$schema': 'https://json-schema.org/draft/2020-12/schema',
18
- '$id': 'https://json-schema.org/draft/2020-12/meta/core',
19
- '$dynamicAnchor': 'meta',
20
- 'title': 'Core vocabulary meta-schema',
21
- 'type': ['object', 'boolean'],
22
- 'properties': {
23
- '$id': {
24
- '$ref': '#/$defs/uriReferenceString',
25
- '$comment': 'Non-empty fragments not allowed.',
26
- 'pattern': '^[^#]*#?$'
27
- },
28
- '$schema': { '$ref': '#/$defs/uriString' },
29
- '$ref': { '$ref': '#/$defs/uriReferenceString' },
30
- '$anchor': { '$ref': '#/$defs/anchorString' },
31
- '$dynamicRef': { '$ref': '#/$defs/uriReferenceString' },
32
- '$dynamicAnchor': { '$ref': '#/$defs/anchorString' },
33
- '$vocabulary': {
34
- 'type': 'object',
35
- 'propertyNames': { '$ref': '#/$defs/uriString' },
36
- 'additionalProperties': {
37
- 'type': 'boolean'
38
- }
39
- },
40
- '$comment': {
41
- 'type': 'string'
42
- },
43
- '$defs': {
44
- 'type': 'object',
45
- 'additionalProperties': { '$dynamicRef': '#meta' }
46
- }
47
- },
48
- '$defs': {
49
- 'anchorString': {
50
- 'type': 'string',
51
- 'pattern': '^[A-Za-z_][-A-Za-z0-9._]*$'
52
- },
53
- 'uriString': {
54
- 'type': 'string',
55
- 'format': 'uri'
56
- },
57
- 'uriReferenceString': {
58
- 'type': 'string',
59
- 'format': 'uri-reference'
60
- }
61
- }
62
- },
63
- {
64
- '$schema': 'https://json-schema.org/draft/2020-12/schema',
65
- '$id': 'https://json-schema.org/draft/2020-12/meta/applicator',
66
- '$dynamicAnchor': 'meta',
67
- 'title': 'Applicator vocabulary meta-schema',
68
- 'type': ['object', 'boolean'],
69
- 'properties': {
70
- 'prefixItems': { '$ref': '#/$defs/schemaArray' },
71
- 'items': { '$dynamicRef': '#meta' },
72
- 'contains': { '$dynamicRef': '#meta' },
73
- 'additionalProperties': { '$dynamicRef': '#meta' },
74
- 'properties': {
75
- 'type': 'object',
76
- 'additionalProperties': { '$dynamicRef': '#meta' },
77
- 'default': {}
78
- },
79
- 'patternProperties': {
80
- 'type': 'object',
81
- 'additionalProperties': { '$dynamicRef': '#meta' },
82
- 'propertyNames': { 'format': 'regex' },
83
- 'default': {}
84
- },
85
- 'dependentSchemas': {
86
- 'type': 'object',
87
- 'additionalProperties': { '$dynamicRef': '#meta' },
88
- 'default': {}
89
- },
90
- 'propertyNames': { '$dynamicRef': '#meta' },
91
- 'if': { '$dynamicRef': '#meta' },
92
- 'then': { '$dynamicRef': '#meta' },
93
- 'else': { '$dynamicRef': '#meta' },
94
- 'allOf': { '$ref': '#/$defs/schemaArray' },
95
- 'anyOf': { '$ref': '#/$defs/schemaArray' },
96
- 'oneOf': { '$ref': '#/$defs/schemaArray' },
97
- 'not': { '$dynamicRef': '#meta' }
98
- },
99
- '$defs': {
100
- 'schemaArray': {
101
- 'type': 'array',
102
- 'minItems': 1,
103
- 'items': { '$dynamicRef': '#meta' }
104
- }
105
- }
106
- },
107
- {
108
- '$schema': 'https://json-schema.org/draft/2020-12/schema',
109
- '$id': 'https://json-schema.org/draft/2020-12/meta/unevaluated',
110
- '$dynamicAnchor': 'meta',
111
- 'title': 'Unevaluated applicator vocabulary meta-schema',
112
- 'type': ['object', 'boolean'],
113
- 'properties': {
114
- 'unevaluatedItems': { '$dynamicRef': '#meta' },
115
- 'unevaluatedProperties': { '$dynamicRef': '#meta' }
116
- }
117
- },
118
- {
119
- '$schema': 'https://json-schema.org/draft/2020-12/schema',
120
- '$id': 'https://json-schema.org/draft/2020-12/meta/validation',
121
- '$dynamicAnchor': 'meta',
122
- 'title': 'Validation vocabulary meta-schema',
123
- 'type': ['object', 'boolean'],
124
- 'properties': {
125
- 'type': {
126
- 'anyOf': [
127
- { '$ref': '#/$defs/simpleTypes' },
128
- {
129
- 'type': 'array',
130
- 'items': { '$ref': '#/$defs/simpleTypes' },
131
- 'minItems': 1,
132
- 'uniqueItems': true
133
- }
134
- ]
135
- },
136
- 'const': true,
137
- 'enum': {
138
- 'type': 'array',
139
- 'items': true
140
- },
141
- 'multipleOf': {
142
- 'type': 'number',
143
- 'exclusiveMinimum': 0
144
- },
145
- 'maximum': {
146
- 'type': 'number'
147
- },
148
- 'exclusiveMaximum': {
149
- 'type': 'number'
150
- },
151
- 'minimum': {
152
- 'type': 'number'
153
- },
154
- 'exclusiveMinimum': {
155
- 'type': 'number'
156
- },
157
- 'maxLength': { '$ref': '#/$defs/nonNegativeInteger' },
158
- 'minLength': { '$ref': '#/$defs/nonNegativeIntegerDefault0' },
159
- 'pattern': {
160
- 'type': 'string',
161
- 'format': 'regex'
162
- },
163
- 'maxItems': { '$ref': '#/$defs/nonNegativeInteger' },
164
- 'minItems': { '$ref': '#/$defs/nonNegativeIntegerDefault0' },
165
- 'uniqueItems': {
166
- 'type': 'boolean',
167
- 'default': false
168
- },
169
- 'maxContains': { '$ref': '#/$defs/nonNegativeInteger' },
170
- 'minContains': {
171
- '$ref': '#/$defs/nonNegativeInteger',
172
- 'default': 1
173
- },
174
- 'maxProperties': { '$ref': '#/$defs/nonNegativeInteger' },
175
- 'minProperties': { '$ref': '#/$defs/nonNegativeIntegerDefault0' },
176
- 'required': { '$ref': '#/$defs/stringArray' },
177
- 'dependentRequired': {
178
- 'type': 'object',
179
- 'additionalProperties': {
180
- '$ref': '#/$defs/stringArray'
181
- }
182
- }
183
- },
184
- '$defs': {
185
- 'nonNegativeInteger': {
186
- 'type': 'integer',
187
- 'minimum': 0
188
- },
189
- 'nonNegativeIntegerDefault0': {
190
- '$ref': '#/$defs/nonNegativeInteger',
191
- 'default': 0
192
- },
193
- 'simpleTypes': {
194
- 'enum': [
195
- 'array',
196
- 'boolean',
197
- 'integer',
198
- 'null',
199
- 'number',
200
- 'object',
201
- 'string'
202
- ]
203
- },
204
- 'stringArray': {
205
- 'type': 'array',
206
- 'items': { 'type': 'string' },
207
- 'uniqueItems': true,
208
- 'default': []
209
- }
210
- }
211
- },
212
- {
213
- '$schema': 'https://json-schema.org/draft/2020-12/schema',
214
- '$id': 'https://json-schema.org/draft/2020-12/meta/meta-data',
215
- '$dynamicAnchor': 'meta',
216
- 'title': 'Meta-data vocabulary meta-schema',
217
- 'type': ['object', 'boolean'],
218
- 'properties': {
219
- 'title': {
220
- 'type': 'string'
221
- },
222
- 'description': {
223
- 'type': 'string'
224
- },
225
- 'default': true,
226
- 'deprecated': {
227
- 'type': 'boolean',
228
- 'default': false
229
- },
230
- 'readOnly': {
231
- 'type': 'boolean',
232
- 'default': false
233
- },
234
- 'writeOnly': {
235
- 'type': 'boolean',
236
- 'default': false
237
- },
238
- 'examples': {
239
- 'type': 'array',
240
- 'items': true
241
- }
242
- }
243
- },
244
- {
245
- '$schema': 'https://json-schema.org/draft/2020-12/schema',
246
- '$id': 'https://json-schema.org/draft/2020-12/meta/format-annotation',
247
- '$dynamicAnchor': 'meta',
248
- 'title': 'Format vocabulary meta-schema for annotation results',
249
- 'type': ['object', 'boolean'],
250
- 'properties': {
251
- 'format': { 'type': 'string' }
252
- }
253
- },
254
- {
255
- '$schema': 'https://json-schema.org/draft/2020-12/schema',
256
- '$id': 'https://json-schema.org/draft/2020-12/meta/content',
257
- '$dynamicAnchor': 'meta',
258
- 'title': 'Content vocabulary meta-schema',
259
- 'type': ['object', 'boolean'],
260
- 'properties': {
261
- 'contentEncoding': { 'type': 'string' },
262
- 'contentMediaType': { 'type': 'string' },
263
- 'contentSchema': { '$dynamicRef': '#meta' }
264
- }
265
- }
266
- ],
267
- 'type': ['object', 'boolean'],
268
- '$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.',
269
- 'properties': {
270
- 'definitions': {
271
- '$comment': '"definitions" has been replaced by "$defs".',
272
- 'type': 'object',
273
- 'additionalProperties': { '$dynamicRef': '#meta' },
274
- 'deprecated': true,
275
- 'default': {}
276
- },
277
- 'dependencies': {
278
- '$comment': '"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',
279
- 'type': 'object',
280
- 'additionalProperties': {
281
- 'anyOf': [
282
- { '$dynamicRef': '#meta' },
283
- { '$ref': 'meta/validation#/$defs/stringArray' }
284
- ]
285
- },
286
- 'deprecated': true,
287
- 'default': {}
288
- },
289
- '$recursiveAnchor': {
290
- '$comment': '"$recursiveAnchor" has been replaced by "$dynamicAnchor".',
291
- '$ref': 'meta/core#/$defs/anchorString',
292
- 'deprecated': true
293
- },
294
- '$recursiveRef': {
295
- '$comment': '"$recursiveRef" has been replaced by "$dynamicRef".',
296
- '$ref': 'meta/core#/$defs/uriReferenceString',
297
- 'deprecated': true
298
- }
299
- }
300
- };
@@ -1,2 +0,0 @@
1
- import type { XMetaSchemaObject } from './schema.mjs';
2
- export declare const Draft_3: XMetaSchemaObject;