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,143 +0,0 @@
1
- export const Draft_3 = {
2
- '$schema': 'http://json-schema.org/draft-03/schema#',
3
- 'id': 'http://json-schema.org/draft-03/schema#',
4
- 'type': 'object',
5
- 'properties': {
6
- 'type': {
7
- 'type': ['string', 'array'],
8
- 'items': {
9
- 'type': ['string', { '$ref': '#' }]
10
- },
11
- 'uniqueItems': true,
12
- 'default': 'any'
13
- },
14
- 'properties': {
15
- 'type': 'object',
16
- 'additionalProperties': { '$ref': '#' },
17
- 'default': {}
18
- },
19
- 'patternProperties': {
20
- 'type': 'object',
21
- 'additionalProperties': { '$ref': '#' },
22
- 'default': {}
23
- },
24
- 'additionalProperties': {
25
- 'type': [{ '$ref': '#' }, 'boolean'],
26
- 'default': {}
27
- },
28
- 'items': {
29
- 'type': [{ '$ref': '#' }, 'array'],
30
- 'items': { '$ref': '#' },
31
- 'default': {}
32
- },
33
- 'additionalItems': {
34
- 'type': [{ '$ref': '#' }, 'boolean'],
35
- 'default': {}
36
- },
37
- 'required': {
38
- 'type': 'boolean',
39
- 'default': false
40
- },
41
- 'dependencies': {
42
- 'type': 'object',
43
- 'additionalProperties': {
44
- 'type': ['string', 'array', { '$ref': '#' }],
45
- 'items': {
46
- 'type': 'string'
47
- }
48
- },
49
- 'default': {}
50
- },
51
- 'minimum': {
52
- 'type': 'number'
53
- },
54
- 'maximum': {
55
- 'type': 'number'
56
- },
57
- 'exclusiveMinimum': {
58
- 'type': 'boolean',
59
- 'default': false
60
- },
61
- 'exclusiveMaximum': {
62
- 'type': 'boolean',
63
- 'default': false
64
- },
65
- 'minItems': {
66
- 'type': 'integer',
67
- 'minimum': 0,
68
- 'default': 0
69
- },
70
- 'maxItems': {
71
- 'type': 'integer',
72
- 'minimum': 0
73
- },
74
- 'uniqueItems': {
75
- 'type': 'boolean',
76
- 'default': false
77
- },
78
- 'pattern': {
79
- 'type': 'string',
80
- 'format': 'regex'
81
- },
82
- 'minLength': {
83
- 'type': 'integer',
84
- 'minimum': 0,
85
- 'default': 0
86
- },
87
- 'maxLength': {
88
- 'type': 'integer'
89
- },
90
- 'enum': {
91
- 'type': 'array',
92
- 'minItems': 1,
93
- 'uniqueItems': true
94
- },
95
- 'default': {
96
- 'type': 'any'
97
- },
98
- 'title': {
99
- 'type': 'string'
100
- },
101
- 'description': {
102
- 'type': 'string'
103
- },
104
- 'format': {
105
- 'type': 'string'
106
- },
107
- 'divisibleBy': {
108
- 'type': 'number',
109
- 'minimum': 0,
110
- 'exclusiveMinimum': true,
111
- 'default': 1
112
- },
113
- 'disallow': {
114
- 'type': ['string', 'array'],
115
- 'items': {
116
- 'type': ['string', { '$ref': '#' }]
117
- },
118
- 'uniqueItems': true
119
- },
120
- 'extends': {
121
- 'type': [{ '$ref': '#' }, 'array'],
122
- 'items': { '$ref': '#' },
123
- 'default': {}
124
- },
125
- 'id': {
126
- 'type': 'string',
127
- 'format': 'uri'
128
- },
129
- '$ref': {
130
- 'type': 'string',
131
- 'format': 'uri'
132
- },
133
- '$schema': {
134
- 'type': 'string',
135
- 'format': 'uri'
136
- }
137
- },
138
- 'dependencies': {
139
- 'exclusiveMinimum': 'minimum',
140
- 'exclusiveMaximum': 'maximum'
141
- },
142
- 'default': {}
143
- };
@@ -1,2 +0,0 @@
1
- import type { XMetaSchemaObject } from './schema.mjs';
2
- export declare const Draft_4: XMetaSchemaObject;
@@ -1,149 +0,0 @@
1
- export const Draft_4 = {
2
- 'id': 'http://json-schema.org/draft-04/schema#',
3
- '$schema': 'http://json-schema.org/draft-04/schema#',
4
- 'description': 'Core schema meta-schema',
5
- 'definitions': {
6
- 'schemaArray': {
7
- 'type': 'array',
8
- 'minItems': 1,
9
- 'items': { '$ref': '#' }
10
- },
11
- 'positiveInteger': {
12
- 'type': 'integer',
13
- 'minimum': 0
14
- },
15
- 'positiveIntegerDefault0': {
16
- 'allOf': [{ '$ref': '#/definitions/positiveInteger' }, { 'default': 0 }]
17
- },
18
- 'simpleTypes': {
19
- 'enum': ['array', 'boolean', 'integer', 'null', 'number', 'object', 'string']
20
- },
21
- 'stringArray': {
22
- 'type': 'array',
23
- 'items': { 'type': 'string' },
24
- 'minItems': 1,
25
- 'uniqueItems': true
26
- }
27
- },
28
- 'type': 'object',
29
- 'properties': {
30
- 'id': {
31
- 'type': 'string'
32
- },
33
- '$schema': {
34
- 'type': 'string'
35
- },
36
- 'title': {
37
- 'type': 'string'
38
- },
39
- 'description': {
40
- 'type': 'string'
41
- },
42
- 'default': {},
43
- 'multipleOf': {
44
- 'type': 'number',
45
- 'minimum': 0,
46
- 'exclusiveMinimum': true
47
- },
48
- 'maximum': {
49
- 'type': 'number'
50
- },
51
- 'exclusiveMaximum': {
52
- 'type': 'boolean',
53
- 'default': false
54
- },
55
- 'minimum': {
56
- 'type': 'number'
57
- },
58
- 'exclusiveMinimum': {
59
- 'type': 'boolean',
60
- 'default': false
61
- },
62
- 'maxLength': { '$ref': '#/definitions/positiveInteger' },
63
- 'minLength': { '$ref': '#/definitions/positiveIntegerDefault0' },
64
- 'pattern': {
65
- 'type': 'string',
66
- 'format': 'regex'
67
- },
68
- 'additionalItems': {
69
- 'anyOf': [
70
- { 'type': 'boolean' },
71
- { '$ref': '#' }
72
- ],
73
- 'default': {}
74
- },
75
- 'items': {
76
- 'anyOf': [
77
- { '$ref': '#' },
78
- { '$ref': '#/definitions/schemaArray' }
79
- ],
80
- 'default': {}
81
- },
82
- 'maxItems': { '$ref': '#/definitions/positiveInteger' },
83
- 'minItems': { '$ref': '#/definitions/positiveIntegerDefault0' },
84
- 'uniqueItems': {
85
- 'type': 'boolean',
86
- 'default': false
87
- },
88
- 'maxProperties': { '$ref': '#/definitions/positiveInteger' },
89
- 'minProperties': { '$ref': '#/definitions/positiveIntegerDefault0' },
90
- 'required': { '$ref': '#/definitions/stringArray' },
91
- 'additionalProperties': {
92
- 'anyOf': [
93
- { 'type': 'boolean' },
94
- { '$ref': '#' }
95
- ],
96
- 'default': {}
97
- },
98
- 'definitions': {
99
- 'type': 'object',
100
- 'additionalProperties': { '$ref': '#' },
101
- 'default': {}
102
- },
103
- 'properties': {
104
- 'type': 'object',
105
- 'additionalProperties': { '$ref': '#' },
106
- 'default': {}
107
- },
108
- 'patternProperties': {
109
- 'type': 'object',
110
- 'additionalProperties': { '$ref': '#' },
111
- 'default': {}
112
- },
113
- 'dependencies': {
114
- 'type': 'object',
115
- 'additionalProperties': {
116
- 'anyOf': [
117
- { '$ref': '#' },
118
- { '$ref': '#/definitions/stringArray' }
119
- ]
120
- }
121
- },
122
- 'enum': {
123
- 'type': 'array',
124
- 'minItems': 1,
125
- 'uniqueItems': true
126
- },
127
- 'type': {
128
- 'anyOf': [
129
- { '$ref': '#/definitions/simpleTypes' },
130
- {
131
- 'type': 'array',
132
- 'items': { '$ref': '#/definitions/simpleTypes' },
133
- 'minItems': 1,
134
- 'uniqueItems': true
135
- }
136
- ]
137
- },
138
- 'format': { 'type': 'string' },
139
- 'allOf': { '$ref': '#/definitions/schemaArray' },
140
- 'anyOf': { '$ref': '#/definitions/schemaArray' },
141
- 'oneOf': { '$ref': '#/definitions/schemaArray' },
142
- 'not': { '$ref': '#' }
143
- },
144
- 'dependencies': {
145
- 'exclusiveMaximum': ['maximum'],
146
- 'exclusiveMinimum': ['minimum']
147
- },
148
- 'default': {}
149
- };
@@ -1,2 +0,0 @@
1
- import type { XMetaSchemaObject } from './schema.mjs';
2
- export declare const Draft_6: XMetaSchemaObject;
@@ -1,155 +0,0 @@
1
- export const Draft_6 = {
2
- '$schema': 'http://json-schema.org/draft-06/schema#',
3
- '$id': 'http://json-schema.org/draft-06/schema#',
4
- 'title': 'Core schema meta-schema',
5
- 'definitions': {
6
- 'schemaArray': {
7
- 'type': 'array',
8
- 'minItems': 1,
9
- 'items': { '$ref': '#' }
10
- },
11
- 'nonNegativeInteger': {
12
- 'type': 'integer',
13
- 'minimum': 0
14
- },
15
- 'nonNegativeIntegerDefault0': {
16
- 'allOf': [
17
- { '$ref': '#/definitions/nonNegativeInteger' },
18
- { 'default': 0 }
19
- ]
20
- },
21
- 'simpleTypes': {
22
- 'enum': [
23
- 'array',
24
- 'boolean',
25
- 'integer',
26
- 'null',
27
- 'number',
28
- 'object',
29
- 'string'
30
- ]
31
- },
32
- 'stringArray': {
33
- 'type': 'array',
34
- 'items': { 'type': 'string' },
35
- 'uniqueItems': true,
36
- 'default': []
37
- }
38
- },
39
- 'type': ['object', 'boolean'],
40
- 'properties': {
41
- '$id': {
42
- 'type': 'string',
43
- 'format': 'uri-reference'
44
- },
45
- '$schema': {
46
- 'type': 'string',
47
- 'format': 'uri'
48
- },
49
- '$ref': {
50
- 'type': 'string',
51
- 'format': 'uri-reference'
52
- },
53
- 'title': {
54
- 'type': 'string'
55
- },
56
- 'description': {
57
- 'type': 'string'
58
- },
59
- 'default': {},
60
- 'examples': {
61
- 'type': 'array',
62
- 'items': {}
63
- },
64
- 'multipleOf': {
65
- 'type': 'number',
66
- 'exclusiveMinimum': 0
67
- },
68
- 'maximum': {
69
- 'type': 'number'
70
- },
71
- 'exclusiveMaximum': {
72
- 'type': 'number'
73
- },
74
- 'minimum': {
75
- 'type': 'number'
76
- },
77
- 'exclusiveMinimum': {
78
- 'type': 'number'
79
- },
80
- 'maxLength': { '$ref': '#/definitions/nonNegativeInteger' },
81
- 'minLength': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
82
- 'pattern': {
83
- 'type': 'string',
84
- 'format': 'regex'
85
- },
86
- 'additionalItems': { '$ref': '#' },
87
- 'items': {
88
- 'anyOf': [
89
- { '$ref': '#' },
90
- { '$ref': '#/definitions/schemaArray' }
91
- ],
92
- 'default': {}
93
- },
94
- 'maxItems': { '$ref': '#/definitions/nonNegativeInteger' },
95
- 'minItems': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
96
- 'uniqueItems': {
97
- 'type': 'boolean',
98
- 'default': false
99
- },
100
- 'contains': { '$ref': '#' },
101
- 'maxProperties': { '$ref': '#/definitions/nonNegativeInteger' },
102
- 'minProperties': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
103
- 'required': { '$ref': '#/definitions/stringArray' },
104
- 'additionalProperties': { '$ref': '#' },
105
- 'definitions': {
106
- 'type': 'object',
107
- 'additionalProperties': { '$ref': '#' },
108
- 'default': {}
109
- },
110
- 'properties': {
111
- 'type': 'object',
112
- 'additionalProperties': { '$ref': '#' },
113
- 'default': {}
114
- },
115
- 'patternProperties': {
116
- 'type': 'object',
117
- 'additionalProperties': { '$ref': '#' },
118
- 'propertyNames': { 'format': 'regex' },
119
- 'default': {}
120
- },
121
- 'dependencies': {
122
- 'type': 'object',
123
- 'additionalProperties': {
124
- 'anyOf': [
125
- { '$ref': '#' },
126
- { '$ref': '#/definitions/stringArray' }
127
- ]
128
- }
129
- },
130
- 'propertyNames': { '$ref': '#' },
131
- 'const': {},
132
- 'enum': {
133
- 'type': 'array',
134
- 'minItems': 1,
135
- 'uniqueItems': true
136
- },
137
- 'type': {
138
- 'anyOf': [
139
- { '$ref': '#/definitions/simpleTypes' },
140
- {
141
- 'type': 'array',
142
- 'items': { '$ref': '#/definitions/simpleTypes' },
143
- 'minItems': 1,
144
- 'uniqueItems': true
145
- }
146
- ]
147
- },
148
- 'format': { 'type': 'string' },
149
- 'allOf': { '$ref': '#/definitions/schemaArray' },
150
- 'anyOf': { '$ref': '#/definitions/schemaArray' },
151
- 'oneOf': { '$ref': '#/definitions/schemaArray' },
152
- 'not': { '$ref': '#' }
153
- },
154
- 'default': {}
155
- };
@@ -1,2 +0,0 @@
1
- import type { XMetaSchemaObject } from './schema.mjs';
2
- export declare const Draft_7: XMetaSchemaObject;
@@ -1,172 +0,0 @@
1
- export const Draft_7 = {
2
- '$schema': 'http://json-schema.org/draft-07/schema#',
3
- '$id': 'http://json-schema.org/draft-07/schema#',
4
- 'title': 'Core schema meta-schema',
5
- 'definitions': {
6
- 'schemaArray': {
7
- 'type': 'array',
8
- 'minItems': 1,
9
- 'items': { '$ref': '#' }
10
- },
11
- 'nonNegativeInteger': {
12
- 'type': 'integer',
13
- 'minimum': 0
14
- },
15
- 'nonNegativeIntegerDefault0': {
16
- 'allOf': [
17
- { '$ref': '#/definitions/nonNegativeInteger' },
18
- { 'default': 0 }
19
- ]
20
- },
21
- 'simpleTypes': {
22
- 'enum': [
23
- 'array',
24
- 'boolean',
25
- 'integer',
26
- 'null',
27
- 'number',
28
- 'object',
29
- 'string'
30
- ]
31
- },
32
- 'stringArray': {
33
- 'type': 'array',
34
- 'items': { 'type': 'string' },
35
- 'uniqueItems': true,
36
- 'default': []
37
- }
38
- },
39
- 'type': ['object', 'boolean'],
40
- 'properties': {
41
- '$id': {
42
- 'type': 'string',
43
- 'format': 'uri-reference'
44
- },
45
- '$schema': {
46
- 'type': 'string',
47
- 'format': 'uri'
48
- },
49
- '$ref': {
50
- 'type': 'string',
51
- 'format': 'uri-reference'
52
- },
53
- '$comment': {
54
- 'type': 'string'
55
- },
56
- 'title': {
57
- 'type': 'string'
58
- },
59
- 'description': {
60
- 'type': 'string'
61
- },
62
- 'default': true,
63
- 'readOnly': {
64
- 'type': 'boolean',
65
- 'default': false
66
- },
67
- 'writeOnly': {
68
- 'type': 'boolean',
69
- 'default': false
70
- },
71
- 'examples': {
72
- 'type': 'array',
73
- 'items': true
74
- },
75
- 'multipleOf': {
76
- 'type': 'number',
77
- 'exclusiveMinimum': 0
78
- },
79
- 'maximum': {
80
- 'type': 'number'
81
- },
82
- 'exclusiveMaximum': {
83
- 'type': 'number'
84
- },
85
- 'minimum': {
86
- 'type': 'number'
87
- },
88
- 'exclusiveMinimum': {
89
- 'type': 'number'
90
- },
91
- 'maxLength': { '$ref': '#/definitions/nonNegativeInteger' },
92
- 'minLength': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
93
- 'pattern': {
94
- 'type': 'string',
95
- 'format': 'regex'
96
- },
97
- 'additionalItems': { '$ref': '#' },
98
- 'items': {
99
- 'anyOf': [
100
- { '$ref': '#' },
101
- { '$ref': '#/definitions/schemaArray' }
102
- ],
103
- 'default': true
104
- },
105
- 'maxItems': { '$ref': '#/definitions/nonNegativeInteger' },
106
- 'minItems': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
107
- 'uniqueItems': {
108
- 'type': 'boolean',
109
- 'default': false
110
- },
111
- 'contains': { '$ref': '#' },
112
- 'maxProperties': { '$ref': '#/definitions/nonNegativeInteger' },
113
- 'minProperties': { '$ref': '#/definitions/nonNegativeIntegerDefault0' },
114
- 'required': { '$ref': '#/definitions/stringArray' },
115
- 'additionalProperties': { '$ref': '#' },
116
- 'definitions': {
117
- 'type': 'object',
118
- 'additionalProperties': { '$ref': '#' },
119
- 'default': {}
120
- },
121
- 'properties': {
122
- 'type': 'object',
123
- 'additionalProperties': { '$ref': '#' },
124
- 'default': {}
125
- },
126
- 'patternProperties': {
127
- 'type': 'object',
128
- 'additionalProperties': { '$ref': '#' },
129
- 'propertyNames': { 'format': 'regex' },
130
- 'default': {}
131
- },
132
- 'dependencies': {
133
- 'type': 'object',
134
- 'additionalProperties': {
135
- 'anyOf': [
136
- { '$ref': '#' },
137
- { '$ref': '#/definitions/stringArray' }
138
- ]
139
- }
140
- },
141
- 'propertyNames': { '$ref': '#' },
142
- 'const': true,
143
- 'enum': {
144
- 'type': 'array',
145
- 'items': true,
146
- 'minItems': 1,
147
- 'uniqueItems': true
148
- },
149
- 'type': {
150
- 'anyOf': [
151
- { '$ref': '#/definitions/simpleTypes' },
152
- {
153
- 'type': 'array',
154
- 'items': { '$ref': '#/definitions/simpleTypes' },
155
- 'minItems': 1,
156
- 'uniqueItems': true
157
- }
158
- ]
159
- },
160
- 'format': { 'type': 'string' },
161
- 'contentMediaType': { 'type': 'string' },
162
- 'contentEncoding': { 'type': 'string' },
163
- 'if': { '$ref': '#' },
164
- 'then': { '$ref': '#' },
165
- 'else': { '$ref': '#' },
166
- 'allOf': { '$ref': '#/definitions/schemaArray' },
167
- 'anyOf': { '$ref': '#/definitions/schemaArray' },
168
- 'oneOf': { '$ref': '#/definitions/schemaArray' },
169
- 'not': { '$ref': '#' }
170
- },
171
- 'default': true
172
- };
@@ -1,2 +0,0 @@
1
- export * from './schema.mjs';
2
- export * from './meta.mjs';
@@ -1,2 +0,0 @@
1
- export * from './schema.mjs';
2
- export * from './meta.mjs';
@@ -1,9 +0,0 @@
1
- /** A collection of all meta schemas. */
2
- export declare const Meta: {
3
- 'http://json-schema.org/draft-03/schema#': import("./schema.mjs").XMetaSchemaObject;
4
- 'http://json-schema.org/draft-04/schema#': import("./schema.mjs").XMetaSchemaObject;
5
- 'http://json-schema.org/draft-06/schema#': import("./schema.mjs").XMetaSchemaObject;
6
- 'http://json-schema.org/draft-07/schema#': import("./schema.mjs").XMetaSchemaObject;
7
- 'https://json-schema.org/draft/2019-09/schema': import("./schema.mjs").XMetaSchemaObject;
8
- 'https://json-schema.org/draft/2020-12/schema': import("./schema.mjs").XMetaSchemaObject;
9
- };
@@ -1,15 +0,0 @@
1
- import { Draft_2020_12 } from './draft_2020_12.mjs';
2
- import { Draft_2019_09 } from './draft_2019_09.mjs';
3
- import { Draft_7 } from './draft_7.mjs';
4
- import { Draft_6 } from './draft_6.mjs';
5
- import { Draft_4 } from './draft_4.mjs';
6
- import { Draft_3 } from './draft_3.mjs';
7
- /** A collection of all meta schemas. */
8
- export const Meta = {
9
- 'http://json-schema.org/draft-03/schema#': Draft_3,
10
- 'http://json-schema.org/draft-04/schema#': Draft_4,
11
- 'http://json-schema.org/draft-06/schema#': Draft_6,
12
- 'http://json-schema.org/draft-07/schema#': Draft_7,
13
- 'https://json-schema.org/draft/2019-09/schema': Draft_2019_09,
14
- 'https://json-schema.org/draft/2020-12/schema': Draft_2020_12
15
- };
@@ -1,6 +0,0 @@
1
- import type { XSchema } from '../types/schema.mjs';
2
- /** Represents a JSON Schema meta-schema that infers as XSchema. */
3
- export type XMetaSchemaObject = {
4
- $schema: string;
5
- ['~unsafe']: XSchema;
6
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- /** Returns a deep Clone of the given value. This function is similar to structuredClone() but also supports deep cloning instances of Map, Set and TypeArray. */
2
- export declare function Deep<Value extends unknown = unknown>(value: Value): Value;