@agentshouse/mdmodel 0.1.0-ccf1367190878 → 0.1.0-cd1e8229f067b

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 (458) hide show
  1. package/API.md +287 -278
  2. package/README.md +28 -29
  3. package/dist/body.d.ts +85 -0
  4. package/dist/body.d.ts.map +1 -0
  5. package/dist/body.js +1083 -0
  6. package/dist/built-in.d.ts +4 -0
  7. package/dist/built-in.d.ts.map +1 -0
  8. package/dist/built-in.js +19 -0
  9. package/dist/definition.d.ts +26 -11
  10. package/dist/definition.d.ts.map +1 -1
  11. package/dist/definition.js +259 -93
  12. package/dist/document.d.ts +16 -9
  13. package/dist/document.d.ts.map +1 -1
  14. package/dist/document.js +1000 -254
  15. package/dist/event.d.ts +77 -0
  16. package/dist/event.d.ts.map +1 -0
  17. package/dist/event.js +200 -0
  18. package/dist/facts.d.ts +15 -0
  19. package/dist/facts.d.ts.map +1 -0
  20. package/dist/facts.js +41 -0
  21. package/dist/fields.d.ts +1 -1
  22. package/dist/fields.d.ts.map +1 -1
  23. package/dist/fields.js +2 -2
  24. package/dist/form.d.ts +4 -0
  25. package/dist/form.d.ts.map +1 -0
  26. package/dist/form.js +153 -0
  27. package/dist/house-model.d.ts +920 -0
  28. package/dist/house-model.d.ts.map +1 -0
  29. package/dist/house-model.js +504 -0
  30. package/dist/house-references/crockford.d.ts +4 -0
  31. package/dist/house-references/crockford.d.ts.map +1 -0
  32. package/dist/house-references/crockford.js +3 -0
  33. package/dist/house-references/patterns.d.ts +9 -0
  34. package/dist/house-references/patterns.d.ts.map +1 -0
  35. package/dist/house-references/patterns.js +13 -0
  36. package/dist/index.d.ts +45 -16
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +27 -11
  39. package/dist/indexed.d.ts +9 -0
  40. package/dist/indexed.d.ts.map +1 -0
  41. package/dist/indexed.js +55 -0
  42. package/dist/kinds.d.ts +21 -0
  43. package/dist/kinds.d.ts.map +1 -0
  44. package/dist/kinds.js +210 -0
  45. package/dist/markdown.d.ts +71 -0
  46. package/dist/markdown.d.ts.map +1 -0
  47. package/dist/markdown.js +232 -0
  48. package/dist/media-type.d.ts +72 -0
  49. package/dist/media-type.d.ts.map +1 -0
  50. package/dist/media-type.js +157 -0
  51. package/dist/moment.d.ts +7 -0
  52. package/dist/moment.d.ts.map +1 -0
  53. package/dist/moment.js +18 -0
  54. package/dist/not-ready.d.ts +2 -0
  55. package/dist/not-ready.d.ts.map +1 -0
  56. package/dist/not-ready.js +5 -0
  57. package/dist/paths.d.ts +25 -2
  58. package/dist/paths.d.ts.map +1 -1
  59. package/dist/paths.js +129 -18
  60. package/dist/pattern.d.ts +10 -0
  61. package/dist/pattern.d.ts.map +1 -0
  62. package/dist/pattern.js +356 -0
  63. package/dist/query/language.d.ts +257 -0
  64. package/dist/query/language.d.ts.map +1 -0
  65. package/dist/query/language.js +621 -0
  66. package/dist/query/match.d.ts +14 -0
  67. package/dist/query/match.d.ts.map +1 -0
  68. package/dist/query/match.js +129 -0
  69. package/dist/query/rows.d.ts +36 -0
  70. package/dist/query/rows.d.ts.map +1 -0
  71. package/dist/query/rows.js +179 -0
  72. package/dist/query/sql.d.ts +45 -0
  73. package/dist/query/sql.d.ts.map +1 -0
  74. package/dist/query/sql.js +296 -0
  75. package/dist/query/walk.d.ts +69 -0
  76. package/dist/query/walk.d.ts.map +1 -0
  77. package/dist/query/walk.js +274 -0
  78. package/dist/references.d.ts +2 -2
  79. package/dist/references.d.ts.map +1 -1
  80. package/dist/references.js +7 -2
  81. package/dist/refuse.d.ts +1 -0
  82. package/dist/refuse.d.ts.map +1 -1
  83. package/dist/refuse.js +1 -0
  84. package/dist/reserved.d.ts +7 -0
  85. package/dist/reserved.d.ts.map +1 -0
  86. package/dist/reserved.js +32 -0
  87. package/dist/room-types.d.ts +7 -0
  88. package/dist/room-types.d.ts.map +1 -0
  89. package/dist/room-types.js +137 -0
  90. package/dist/schema.d.ts +1 -2
  91. package/dist/schema.d.ts.map +1 -1
  92. package/dist/schema.js +10 -23
  93. package/dist/types.d.ts +44 -34
  94. package/dist/types.d.ts.map +1 -1
  95. package/dist/validate.d.ts +34 -4
  96. package/dist/validate.d.ts.map +1 -1
  97. package/dist/validate.js +349 -152
  98. package/dist/yaml.d.ts +7 -5
  99. package/dist/yaml.d.ts.map +1 -1
  100. package/dist/yaml.js +190 -43
  101. package/fixtures/README.md +93 -65
  102. package/fixtures/cases/absent-link-dangles/library/item.md +1 -1
  103. package/fixtures/cases/absent-link-dangles/schema.yaml +2 -3
  104. package/fixtures/cases/absent-optional-field/library/companies/acme.md +1 -1
  105. package/fixtures/cases/absent-optional-field/library/deals/lead.md +3 -3
  106. package/fixtures/cases/absent-optional-field/schema.yaml +10 -11
  107. package/fixtures/cases/absolute-link/library/item.md +1 -1
  108. package/fixtures/cases/absolute-link/schema.yaml +2 -3
  109. package/fixtures/cases/attachment-reference-any-file/library/companies/acme.md +1 -1
  110. package/fixtures/cases/attachment-reference-any-file/library/deals/renewal.md +13 -10
  111. package/fixtures/cases/attachment-reference-any-file/library/places/depot.md +1 -1
  112. package/fixtures/cases/attachment-reference-any-file/library/products/seats.md +1 -1
  113. package/fixtures/cases/attachment-reference-any-file/library/products/support.md +1 -1
  114. package/fixtures/cases/attachment-reference-dangles/library/companies/acme.md +1 -1
  115. package/fixtures/cases/attachment-reference-dangles/library/deals/renewal.md +13 -10
  116. package/fixtures/cases/attachment-reference-dangles/library/places/depot.md +1 -1
  117. package/fixtures/cases/attachment-reference-dangles/library/products/seats.md +1 -1
  118. package/fixtures/cases/attachment-reference-dangles/library/products/support.md +1 -1
  119. package/fixtures/cases/attachment-reference-outside/expected.json +2 -1
  120. package/fixtures/cases/attachment-reference-outside/library/companies/acme.md +1 -1
  121. package/fixtures/cases/attachment-reference-outside/library/deals/renewal.md +13 -10
  122. package/fixtures/cases/attachment-reference-outside/library/places/depot.md +1 -1
  123. package/fixtures/cases/attachment-reference-outside/library/products/seats.md +1 -1
  124. package/fixtures/cases/attachment-reference-outside/library/products/support.md +1 -1
  125. package/fixtures/cases/binary-any-reference/expected.json +2 -1
  126. package/fixtures/cases/binary-any-reference/library/notes/draft.md +1 -1
  127. package/fixtures/cases/binary-prototype-reference/expected.json +2 -1
  128. package/fixtures/cases/binary-prototype-reference/library/notes/draft.md +1 -1
  129. package/fixtures/cases/binary-typed-reference/expected.json +2 -1
  130. package/fixtures/cases/binary-typed-reference/library/notes/draft.md +1 -1
  131. package/fixtures/cases/block-scalar-frontmatter/library/notes/literal.md +17 -0
  132. package/fixtures/cases/block-scalar-frontmatter/library/skills/notes/SKILL.md +10 -0
  133. package/fixtures/cases/boolean-field/expected.json +2 -1
  134. package/fixtures/cases/boolean-field/library/companies/acme.md +1 -1
  135. package/fixtures/cases/boolean-field/library/deals/renewal.md +49 -24
  136. package/fixtures/cases/boolean-field/schema.yaml +10 -11
  137. package/fixtures/cases/bracketed-link-definition/library/item.md +1 -1
  138. package/fixtures/cases/bracketed-link-definition/schema.yaml +2 -3
  139. package/fixtures/cases/closed-nested-object/expected.json +2 -1
  140. package/fixtures/cases/closed-nested-object/library/companies/acme.md +1 -1
  141. package/fixtures/cases/closed-nested-object/library/deals/renewal.md +50 -25
  142. package/fixtures/cases/closed-nested-object/schema.yaml +10 -11
  143. package/fixtures/cases/composed-root-reference/library/a.md +2 -2
  144. package/fixtures/cases/conditional-long-text/expected.json +7 -0
  145. package/fixtures/cases/conditional-long-text/library/questions/hosting.md +9 -0
  146. package/fixtures/cases/conditional-long-text/library/questions/payments.md +12 -0
  147. package/fixtures/cases/conditional-long-text/schema.yaml +13 -0
  148. package/fixtures/cases/cross-room-link/expected.json +1 -0
  149. package/fixtures/cases/cross-room-link/library/clients/acme.md +6 -0
  150. package/fixtures/cases/cross-room-link/schema.yaml +3 -0
  151. package/fixtures/cases/cross-room-reference/expected.json +1 -0
  152. package/fixtures/cases/cross-room-reference/library/clients/acme.md +9 -0
  153. package/fixtures/cases/cross-room-reference/schema.yaml +8 -0
  154. package/fixtures/cases/date-time-format/expected.json +2 -1
  155. package/fixtures/cases/date-time-format/library/companies/acme.md +1 -1
  156. package/fixtures/cases/date-time-format/library/deals/renewal.md +49 -24
  157. package/fixtures/cases/date-time-format/schema.yaml +10 -11
  158. package/fixtures/cases/default-unfilled/library/companies/acme.md +1 -1
  159. package/fixtures/cases/default-unfilled/library/deals/renewal.md +47 -22
  160. package/fixtures/cases/default-unfilled/schema.yaml +10 -11
  161. package/fixtures/cases/defs-pattern/expected.json +2 -1
  162. package/fixtures/cases/defs-pattern/library/companies/acme.md +1 -1
  163. package/fixtures/cases/defs-pattern/library/deals/renewal.md +49 -24
  164. package/fixtures/cases/defs-pattern/schema.yaml +10 -11
  165. package/fixtures/cases/dependent-rule/library/companies/acme.md +1 -1
  166. package/fixtures/cases/dependent-rule/library/deals/renewal.md +48 -23
  167. package/fixtures/cases/dependent-rule/schema.yaml +10 -11
  168. package/fixtures/cases/duplicate-link-definition/library/item.md +1 -1
  169. package/fixtures/cases/duplicate-link-definition/schema.yaml +2 -3
  170. package/fixtures/cases/email-format/expected.json +2 -1
  171. package/fixtures/cases/email-format/library/companies/acme.md +1 -1
  172. package/fixtures/cases/email-format/library/deals/renewal.md +49 -24
  173. package/fixtures/cases/email-format/schema.yaml +10 -11
  174. package/fixtures/cases/equal-labels/expected.json +5 -0
  175. package/fixtures/cases/equal-labels/schema.yaml +4 -0
  176. package/fixtures/cases/fenced-link-definition/library/item.md +1 -1
  177. package/fixtures/cases/fenced-link-definition/schema.yaml +2 -3
  178. package/fixtures/cases/field-enum/expected.json +2 -1
  179. package/fixtures/cases/field-enum/library/item.md +2 -2
  180. package/fixtures/cases/field-enum/schema.yaml +3 -4
  181. package/fixtures/cases/frontmatter-construct/expected.json +7 -0
  182. package/fixtures/cases/frontmatter-construct/library/note.md +6 -0
  183. package/fixtures/cases/integer-field/expected.json +2 -1
  184. package/fixtures/cases/integer-field/library/companies/acme.md +1 -1
  185. package/fixtures/cases/integer-field/library/deals/renewal.md +49 -24
  186. package/fixtures/cases/integer-field/schema.yaml +10 -11
  187. package/fixtures/cases/json-schema-constructs/library/companies/acme.md +1 -1
  188. package/fixtures/cases/json-schema-constructs/library/deals/renewal.md +49 -24
  189. package/fixtures/cases/json-schema-constructs/schema.yaml +10 -11
  190. package/fixtures/cases/labels-in-the-rooms-language/expected.json +1 -0
  191. package/fixtures/cases/labels-in-the-rooms-language/library/deals/atlas.md +7 -0
  192. package/fixtures/cases/labels-in-the-rooms-language/schema.yaml +9 -0
  193. package/fixtures/cases/lazy-list-item/expected.json +3 -0
  194. package/fixtures/cases/lazy-list-item/library/item.md +10 -0
  195. package/fixtures/cases/lazy-list-item/schema.yaml +3 -0
  196. package/fixtures/cases/link-into-a-reserved-name/context.json +1 -0
  197. package/fixtures/cases/link-into-a-reserved-name/expected.json +5 -0
  198. package/fixtures/cases/link-into-a-reserved-name/library/notes/a.md +6 -0
  199. package/fixtures/cases/link-into-a-reserved-name/schema.yaml +3 -0
  200. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/expected.json +5 -0
  201. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/library/notes/b.md +5 -0
  202. package/fixtures/cases/list-item-enum/context.json +1 -0
  203. package/fixtures/cases/list-item-enum/expected.json +7 -0
  204. package/fixtures/cases/list-item-enum/library/task.md +7 -0
  205. package/fixtures/cases/list-item-enum/schema.yaml +3 -0
  206. package/fixtures/cases/list-item-kind/context.json +1 -0
  207. package/fixtures/cases/list-item-kind/expected.json +7 -0
  208. package/fixtures/cases/list-item-kind/library/task.md +6 -0
  209. package/fixtures/cases/list-item-kind/schema.yaml +3 -0
  210. package/fixtures/cases/list-items/context.json +1 -0
  211. package/fixtures/cases/list-items/expected.json +1 -0
  212. package/fixtures/cases/list-items/library/page.md +26 -0
  213. package/fixtures/cases/list-items/schema.yaml +10 -0
  214. package/fixtures/cases/list-of-objects-closed/expected.json +2 -1
  215. package/fixtures/cases/list-of-objects-closed/library/companies/acme.md +1 -1
  216. package/fixtures/cases/list-of-objects-closed/library/deals/renewal.md +49 -25
  217. package/fixtures/cases/list-of-objects-closed/schema.yaml +10 -11
  218. package/fixtures/cases/list-of-objects-item/expected.json +2 -1
  219. package/fixtures/cases/list-of-objects-item/library/companies/acme.md +1 -1
  220. package/fixtures/cases/list-of-objects-item/library/deals/renewal.md +49 -24
  221. package/fixtures/cases/list-of-objects-item/schema.yaml +10 -11
  222. package/fixtures/cases/list-of-objects-reference/expected.json +2 -1
  223. package/fixtures/cases/list-of-objects-reference/library/companies/acme.md +1 -1
  224. package/fixtures/cases/list-of-objects-reference/library/deals/renewal.md +12 -9
  225. package/fixtures/cases/list-of-objects-reference/library/places/depot.md +1 -1
  226. package/fixtures/cases/list-of-objects-reference/library/products/seats.md +1 -1
  227. package/fixtures/cases/list-of-objects-reference/library/products/support.md +1 -1
  228. package/fixtures/cases/list-reference-path/context.json +1 -0
  229. package/fixtures/cases/list-reference-path/expected.json +7 -0
  230. package/fixtures/cases/list-reference-path/library/page.md +5 -0
  231. package/fixtures/cases/list-reference-path/schema.yaml +3 -0
  232. package/fixtures/cases/list-reference-type/context.json +1 -0
  233. package/fixtures/cases/list-reference-type/expected.json +7 -0
  234. package/fixtures/cases/list-reference-type/library/page.md +6 -0
  235. package/fixtures/cases/list-reference-type/schema.yaml +3 -0
  236. package/fixtures/cases/list-size/expected.json +2 -1
  237. package/fixtures/cases/list-size/library/companies/acme.md +1 -1
  238. package/fixtures/cases/list-size/library/deals/renewal.md +51 -24
  239. package/fixtures/cases/list-size/schema.yaml +10 -11
  240. package/fixtures/cases/long-value-past-six-levels/context.json +1 -0
  241. package/fixtures/cases/long-value-past-six-levels/expected.json +5 -0
  242. package/fixtures/cases/long-value-past-six-levels/schema.yaml +15 -0
  243. package/fixtures/cases/malformed-list/context.json +1 -0
  244. package/fixtures/cases/malformed-list/expected.json +7 -0
  245. package/fixtures/cases/{structured-section → malformed-list}/library/item.md +1 -1
  246. package/fixtures/cases/malformed-list/schema.yaml +6 -0
  247. package/fixtures/cases/member-document/library/people/ana.md +2 -2
  248. package/fixtures/cases/member-on-an-untyped-document/context.json +1 -0
  249. package/fixtures/cases/member-on-an-untyped-document/expected.json +6 -0
  250. package/fixtures/cases/member-on-an-untyped-document/library/note.md +4 -0
  251. package/fixtures/cases/member-on-another-type/context.json +1 -0
  252. package/fixtures/cases/member-on-another-type/expected.json +6 -0
  253. package/fixtures/cases/member-on-another-type/library/note.md +4 -0
  254. package/fixtures/cases/member-on-another-type/schema.yaml +7 -0
  255. package/fixtures/cases/missing-required-field/library/item.md +1 -1
  256. package/fixtures/cases/missing-required-field/schema.yaml +3 -4
  257. package/fixtures/cases/misspelled-key/expected.json +2 -1
  258. package/fixtures/cases/misspelled-key/library/companies/acme.md +1 -1
  259. package/fixtures/cases/misspelled-key/library/deals/renewal.md +50 -25
  260. package/fixtures/cases/misspelled-key/schema.yaml +10 -11
  261. package/fixtures/cases/name-not-a-string/context.json +1 -0
  262. package/fixtures/cases/name-not-a-string/expected.json +5 -0
  263. package/fixtures/cases/name-not-a-string/schema.yaml +5 -0
  264. package/fixtures/cases/nested-defs/expected.json +2 -1
  265. package/fixtures/cases/nested-defs/library/deal.md +3 -3
  266. package/fixtures/cases/nested-object-reference/expected.json +2 -1
  267. package/fixtures/cases/nested-object-reference/library/companies/acme.md +1 -1
  268. package/fixtures/cases/nested-object-reference/library/deals/renewal.md +12 -9
  269. package/fixtures/cases/nested-object-reference/library/places/depot.md +1 -1
  270. package/fixtures/cases/nested-object-reference/library/products/seats.md +1 -1
  271. package/fixtures/cases/nested-object-reference/library/products/support.md +1 -1
  272. package/fixtures/cases/nested-reference/library/companies/acme.md +1 -1
  273. package/fixtures/cases/nested-reference/library/deals/renewal.md +13 -10
  274. package/fixtures/cases/nested-reference/library/places/depot.md +1 -1
  275. package/fixtures/cases/nested-reference/library/products/seats.md +1 -1
  276. package/fixtures/cases/nested-reference/library/products/support.md +1 -1
  277. package/fixtures/cases/nested-required-field/expected.json +2 -1
  278. package/fixtures/cases/nested-required-field/library/companies/acme.md +1 -1
  279. package/fixtures/cases/nested-required-field/library/deals/renewal.md +48 -23
  280. package/fixtures/cases/nested-required-field/schema.yaml +10 -11
  281. package/fixtures/cases/numeric-range/expected.json +2 -1
  282. package/fixtures/cases/numeric-range/library/companies/acme.md +1 -1
  283. package/fixtures/cases/numeric-range/library/deals/renewal.md +49 -24
  284. package/fixtures/cases/numeric-range/schema.yaml +10 -11
  285. package/fixtures/cases/one-key-two-labels/context.json +1 -0
  286. package/fixtures/cases/one-key-two-labels/expected.json +5 -0
  287. package/fixtures/cases/one-key-two-labels/schema.yaml +5 -0
  288. package/fixtures/cases/one-key-two-types/context.json +1 -0
  289. package/fixtures/cases/one-key-two-types/expected.json +5 -0
  290. package/fixtures/cases/one-key-two-types/schema.yaml +4 -0
  291. package/fixtures/cases/one-of-variant/expected.json +2 -1
  292. package/fixtures/cases/one-of-variant/library/companies/acme.md +1 -1
  293. package/fixtures/cases/one-of-variant/library/deals/renewal.md +49 -24
  294. package/fixtures/cases/one-of-variant/schema.yaml +10 -11
  295. package/fixtures/cases/other-room-reference/expected.json +2 -1
  296. package/fixtures/cases/other-room-reference/library/companies/acme.md +1 -1
  297. package/fixtures/cases/other-room-reference/library/deals/renewal.md +12 -9
  298. package/fixtures/cases/other-room-reference/library/places/depot.md +1 -1
  299. package/fixtures/cases/other-room-reference/library/products/seats.md +1 -1
  300. package/fixtures/cases/other-room-reference/library/products/support.md +1 -1
  301. package/fixtures/cases/prototype-field/expected.json +2 -1
  302. package/fixtures/cases/prototype-field/library/item.md +2 -2
  303. package/fixtures/cases/prototype-field/schema.yaml +2 -3
  304. package/fixtures/cases/reference-into-a-reserved-name/context.json +1 -0
  305. package/fixtures/cases/reference-into-a-reserved-name/expected.json +7 -0
  306. package/fixtures/cases/reference-into-a-reserved-name/library/notes/a.md +4 -0
  307. package/fixtures/cases/reference-into-a-reserved-name/library/settings/brief.md +1 -0
  308. package/fixtures/cases/reference-into-a-reserved-name/schema.yaml +3 -0
  309. package/fixtures/cases/reference-to-any-file-name/context.json +1 -0
  310. package/fixtures/cases/reference-to-any-file-name/expected.json +1 -0
  311. package/fixtures/cases/reference-to-any-file-name/library/people/100%.md +4 -0
  312. package/fixtures/cases/reference-to-any-file-name/library/people/C#.md +4 -0
  313. package/fixtures/cases/reference-to-any-file-name/library/people/My notes.md +4 -0
  314. package/fixtures/cases/reference-to-any-file-name/library/people/[draft].md +4 -0
  315. package/fixtures/cases/reference-to-any-file-name/library/people/c (d).md +4 -0
  316. package/fixtures/cases/reference-to-any-file-name/library/people/caf/303/251.md +4 -0
  317. package/fixtures/cases/reference-to-any-file-name/library/people//320/236/321/202/321/207/321/221/321/202.md +4 -0
  318. package/fixtures/cases/reference-to-any-file-name/library/tasks/bracket.md +9 -0
  319. package/fixtures/cases/reference-to-any-file-name/library/tasks/cyrillic.md +9 -0
  320. package/fixtures/cases/reference-to-any-file-name/library/tasks/decomposed.md +9 -0
  321. package/fixtures/cases/reference-to-any-file-name/library/tasks/hash.md +9 -0
  322. package/fixtures/cases/reference-to-any-file-name/library/tasks/parenthesis.md +9 -0
  323. package/fixtures/cases/reference-to-any-file-name/library/tasks/percent.md +9 -0
  324. package/fixtures/cases/reference-to-any-file-name/library/tasks/spaced.md +9 -0
  325. package/fixtures/cases/reference-to-any-file-name/schema.yaml +10 -0
  326. package/fixtures/cases/referenced-missing-file/library/a.md +2 -2
  327. package/fixtures/cases/referenced-missing-file/library/b.md +2 -2
  328. package/fixtures/cases/referenced-missing-file/schema.yaml +3 -4
  329. package/fixtures/cases/referenced-missing-non-latin-file/context.json +1 -0
  330. package/fixtures/cases/referenced-missing-non-latin-file/expected.json +6 -0
  331. package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/a.md +9 -0
  332. package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/b.md +9 -0
  333. package/fixtures/cases/referenced-missing-non-latin-file/schema.yaml +10 -0
  334. package/fixtures/cases/room-md-declares-a-type/context.json +1 -0
  335. package/fixtures/cases/room-md-declares-a-type/expected.json +6 -0
  336. package/fixtures/cases/room-md-declares-a-type/library/ROOM.md +5 -0
  337. package/fixtures/cases/sections-keyword-refused/context.json +1 -0
  338. package/fixtures/cases/sections-keyword-refused/expected.json +5 -0
  339. package/fixtures/cases/{structured-section → sections-keyword-refused}/schema.yaml +1 -2
  340. package/fixtures/cases/shortcut-reference-link/library/item.md +1 -1
  341. package/fixtures/cases/shortcut-reference-link/schema.yaml +2 -3
  342. package/fixtures/cases/string-length/expected.json +2 -1
  343. package/fixtures/cases/string-length/library/companies/acme.md +1 -1
  344. package/fixtures/cases/string-length/library/deals/renewal.md +49 -24
  345. package/fixtures/cases/string-length/schema.yaml +10 -11
  346. package/fixtures/cases/submission-keys/library/notes/visitor.md +2 -2
  347. package/fixtures/cases/text-field-kind/expected.json +1 -4
  348. package/fixtures/cases/text-field-kind/library/page.md +1 -1
  349. package/fixtures/cases/thematic-break-ends-the-values/context.json +1 -0
  350. package/fixtures/cases/thematic-break-ends-the-values/expected.json +1 -0
  351. package/fixtures/cases/thematic-break-ends-the-values/library/item.md +10 -0
  352. package/fixtures/cases/thematic-break-ends-the-values/schema.yaml +3 -0
  353. package/fixtures/cases/typed-path-names-another-type/context.json +11 -0
  354. package/fixtures/cases/typed-path-names-another-type/expected.json +6 -0
  355. package/fixtures/cases/typed-path-names-another-type/library/settings/prefs/one.md +3 -0
  356. package/fixtures/cases/typed-path-names-another-type/schema.yaml +6 -0
  357. package/fixtures/cases/typed-path-names-its-type/context.json +11 -0
  358. package/fixtures/cases/typed-path-names-its-type/expected.json +3 -0
  359. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/deeper/two.md +1 -0
  360. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/one.md +4 -0
  361. package/fixtures/cases/typed-path-names-its-type/schema.yaml +6 -0
  362. package/fixtures/cases/typed-path-names-no-type/context.json +11 -0
  363. package/fixtures/cases/typed-path-names-no-type/expected.json +6 -0
  364. package/fixtures/cases/typed-path-names-no-type/library/settings/prefs/one.md +1 -0
  365. package/fixtures/cases/typed-path-names-no-type/schema.yaml +6 -0
  366. package/fixtures/cases/types-folder-content/library/types/task.md +1 -1
  367. package/fixtures/cases/undeclared-field/expected.json +2 -1
  368. package/fixtures/cases/undeclared-field/library/item.md +2 -2
  369. package/fixtures/cases/undeclared-field/schema.yaml +2 -3
  370. package/fixtures/cases/unevaluated-items-closed/expected.json +2 -1
  371. package/fixtures/cases/unevaluated-items-closed/library/trip.md +13 -3
  372. package/fixtures/cases/unnamed-typed-path-checks-its-fields/context.json +11 -0
  373. package/fixtures/cases/unnamed-typed-path-checks-its-fields/expected.json +6 -0
  374. package/fixtures/cases/unnamed-typed-path-checks-its-fields/library/rooms/team/tasks/plan.md +5 -0
  375. package/fixtures/cases/unnamed-typed-path-checks-its-fields/schema.yaml +5 -0
  376. package/fixtures/cases/unnamed-typed-path-names-a-type/context.json +11 -0
  377. package/fixtures/cases/unnamed-typed-path-names-a-type/expected.json +6 -0
  378. package/fixtures/cases/unnamed-typed-path-names-a-type/library/rooms/team/tasks/plan.md +7 -0
  379. package/fixtures/cases/unnamed-typed-path-names-a-type/schema.yaml +5 -0
  380. package/fixtures/cases/unnamed-typed-path-reads-its-type/context.json +11 -0
  381. package/fixtures/cases/unnamed-typed-path-reads-its-type/expected.json +3 -0
  382. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/plan.md +1 -0
  383. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/tasks/plan.md +6 -0
  384. package/fixtures/cases/unnamed-typed-path-reads-its-type/schema.yaml +5 -0
  385. package/fixtures/cases/unnamed-typed-path-without-a-body/context.json +11 -0
  386. package/fixtures/cases/unnamed-typed-path-without-a-body/expected.json +5 -0
  387. package/fixtures/cases/unnamed-typed-path-without-a-body/library/rooms/team/tasks/plan.md +5 -0
  388. package/fixtures/cases/unnamed-typed-path-without-a-body/schema.yaml +5 -0
  389. package/fixtures/cases/unresolved-link/library/item.md +1 -1
  390. package/fixtures/cases/unresolved-link/schema.yaml +2 -3
  391. package/fixtures/cases/valid-typed-document/library/people/ada.md +1 -1
  392. package/fixtures/cases/valid-typed-document/library/tasks/one.md +11 -11
  393. package/fixtures/cases/valid-typed-document/schema.yaml +5 -6
  394. package/fixtures/forms.json +371 -0
  395. package/fixtures/preamble.json +29 -8
  396. package/fixtures/queries.json +1562 -0
  397. package/package.json +16 -2
  398. package/dist/blocks.d.ts +0 -11
  399. package/dist/blocks.d.ts.map +0 -1
  400. package/dist/blocks.js +0 -76
  401. package/dist/condition.d.ts +0 -149
  402. package/dist/condition.d.ts.map +0 -1
  403. package/dist/condition.js +0 -500
  404. package/dist/divide.d.ts +0 -3
  405. package/dist/divide.d.ts.map +0 -1
  406. package/dist/divide.js +0 -310
  407. package/dist/links.d.ts +0 -27
  408. package/dist/links.d.ts.map +0 -1
  409. package/dist/links.js +0 -774
  410. package/dist/profile.d.ts +0 -6
  411. package/dist/profile.d.ts.map +0 -1
  412. package/dist/profile.js +0 -5
  413. package/dist/project.d.ts +0 -21
  414. package/dist/project.d.ts.map +0 -1
  415. package/dist/project.js +0 -105
  416. package/dist/sections.d.ts +0 -11
  417. package/dist/sections.d.ts.map +0 -1
  418. package/dist/sections.js +0 -57
  419. package/fixtures/cases/missing-section-item-kind/expected.json +0 -5
  420. package/fixtures/cases/missing-section-item-kind/schema.yaml +0 -6
  421. package/fixtures/cases/null-refused/expected.json +0 -6
  422. package/fixtures/cases/null-refused/library/companies/acme.md +0 -4
  423. package/fixtures/cases/null-refused/library/deals/renewal.md +0 -31
  424. package/fixtures/cases/null-refused/schema.yaml +0 -56
  425. package/fixtures/cases/open-map-value/expected.json +0 -6
  426. package/fixtures/cases/open-map-value/library/companies/acme.md +0 -4
  427. package/fixtures/cases/open-map-value/library/deals/renewal.md +0 -31
  428. package/fixtures/cases/open-map-value/schema.yaml +0 -56
  429. package/fixtures/cases/section-item-enum/expected.json +0 -6
  430. package/fixtures/cases/section-item-enum/library/task.md +0 -8
  431. package/fixtures/cases/section-item-enum/schema.yaml +0 -3
  432. package/fixtures/cases/section-item-kind/expected.json +0 -6
  433. package/fixtures/cases/section-item-kind/library/task.md +0 -8
  434. package/fixtures/cases/section-item-kind/schema.yaml +0 -3
  435. package/fixtures/cases/section-items/library/page.md +0 -42
  436. package/fixtures/cases/section-items/schema.yaml +0 -10
  437. package/fixtures/cases/section-reference-path/expected.json +0 -6
  438. package/fixtures/cases/section-reference-path/library/page.md +0 -7
  439. package/fixtures/cases/section-reference-path/schema.yaml +0 -3
  440. package/fixtures/cases/section-reference-type/expected.json +0 -6
  441. package/fixtures/cases/section-reference-type/library/page.md +0 -7
  442. package/fixtures/cases/section-reference-type/schema.yaml +0 -3
  443. package/fixtures/cases/structured-section/expected.json +0 -6
  444. package/fixtures/division.json +0 -409
  445. package/fixtures/projection.json +0 -255
  446. /package/fixtures/cases/{missing-section-item-kind → block-scalar-frontmatter}/context.json +0 -0
  447. /package/fixtures/cases/{section-items → block-scalar-frontmatter}/expected.json +0 -0
  448. /package/fixtures/cases/{null-refused → conditional-long-text}/context.json +0 -0
  449. /package/fixtures/cases/{open-map-value → cross-room-link}/context.json +0 -0
  450. /package/fixtures/cases/{section-item-enum → cross-room-reference}/context.json +0 -0
  451. /package/fixtures/cases/{section-item-kind → equal-labels}/context.json +0 -0
  452. /package/fixtures/cases/{section-items → frontmatter-construct}/context.json +0 -0
  453. /package/fixtures/cases/{section-reference-path → labels-in-the-rooms-language}/context.json +0 -0
  454. /package/fixtures/cases/{section-reference-type → lazy-list-item}/context.json +0 -0
  455. /package/fixtures/cases/{structured-section → link-into-a-reserved-name-from-an-untyped-document}/context.json +0 -0
  456. /package/fixtures/cases/{section-items → list-items}/library/other.md +0 -0
  457. /package/fixtures/cases/{section-reference-path → list-reference-path}/library/other.md +0 -0
  458. /package/fixtures/cases/{section-reference-type → list-reference-type}/library/note.md +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"house-model.d.ts","s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_MODEL_DECLARATION = {
4
+ $defs: {
5
+ room: {
6
+ description: 'A Room, by its Room reference, under the key `room`.',
7
+ type: 'string',
8
+ pattern: ROOM_REFERENCE_PATTERN.source,
9
+ },
10
+ app: {
11
+ description: 'An App, by its App reference, under the key `app`.',
12
+ type: 'string',
13
+ pattern: APP_REFERENCE_PATTERN.source,
14
+ },
15
+ space: {
16
+ description: 'A Space, by its Space reference, under the key `space`.',
17
+ type: 'string',
18
+ pattern: SPACE_REFERENCE_PATTERN.source,
19
+ },
20
+ id: {
21
+ description: 'Any other entity, by its identifier, under the key of its kind. An entity a type says more about is an object holding it under that key beside its facts.',
22
+ type: 'string',
23
+ format: 'uuid',
24
+ },
25
+ },
26
+ 'house-app-preferences': {
27
+ description: "An App's preferences. Its own vocabulary is in the body.",
28
+ properties: { app: { title: 'App', $ref: '#/$defs/app' } },
29
+ required: ['app'],
30
+ },
31
+ 'house-notification': {
32
+ description: "One kept Notification for this User: its kind, when it was sent as `created`, its way in, its email's subject and each fact of its value that is not sealed, named in snake_case. An entity a fact names is an object holding its identifier under the key of its kind, when the notification carries it, and its `name`, `email` and other facts beside it; a fact holding null is absent. `way_in` is either the House `path` it opens or the entity it is about, by its identifier under the key of its kind, a Trigger with its `room`. Its body is its email's words in Markdown. Both were worded once, in the User's language when it was delivered; an App may show them or word it itself from its kind and value. `read` is when the User opened it or marked it read, on any device: the one field House adds after delivery.",
33
+ properties: {
34
+ notification: { title: 'Notification', $ref: '#/$defs/id' },
35
+ kind: {
36
+ title: 'Kind',
37
+ type: 'string',
38
+ enum: [
39
+ 'share-offer',
40
+ 'join-request',
41
+ 'join-request-approved',
42
+ 'room-ownership-offer',
43
+ 'managed-environment-retention-opened',
44
+ 'storage-full',
45
+ 'sandbox-budget-spent',
46
+ 'trigger-failed',
47
+ 'app-origins-added',
48
+ 'room-telegram-chat-paused',
49
+ 'viber-number-unlinked',
50
+ 'break-glass-owner-disclosure',
51
+ 'export-ready',
52
+ 'export-failed',
53
+ 'custom',
54
+ 'agent-function-request-finished',
55
+ 'storage-past-included',
56
+ ],
57
+ },
58
+ created: { title: 'Created', type: 'string', format: 'date-time' },
59
+ read: { title: 'Read', type: 'string', format: 'date-time' },
60
+ way_in: {
61
+ title: 'Way in',
62
+ type: 'object',
63
+ additionalProperties: false,
64
+ properties: {
65
+ path: { title: 'Path', type: 'string', pattern: '^\\/' },
66
+ room: { title: 'Room', $ref: '#/$defs/room' },
67
+ environment: { title: 'Environment', $ref: '#/$defs/id' },
68
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
69
+ },
70
+ minProperties: 1,
71
+ },
72
+ subject: { title: 'Subject', type: 'string' },
73
+ share: { title: 'Share', $ref: '#/$defs/id' },
74
+ issuer: {
75
+ title: 'Issuer',
76
+ type: 'object',
77
+ additionalProperties: false,
78
+ properties: {
79
+ name: { title: 'Name', type: 'string' },
80
+ email: { title: 'Email', type: 'string', format: 'email' },
81
+ },
82
+ required: ['name'],
83
+ },
84
+ rooms: {
85
+ title: 'Rooms',
86
+ type: 'array',
87
+ items: {
88
+ type: 'object',
89
+ additionalProperties: false,
90
+ properties: { name: { title: 'Name', type: 'string' } },
91
+ required: ['name'],
92
+ },
93
+ },
94
+ apps: {
95
+ title: 'Apps',
96
+ type: 'array',
97
+ items: {
98
+ type: 'object',
99
+ additionalProperties: false,
100
+ properties: {
101
+ name: { title: 'Name', type: 'string', minLength: 1, maxLength: 200 },
102
+ reaches: {
103
+ title: 'Reaches',
104
+ type: 'array',
105
+ items: { type: 'string', minLength: 1, maxLength: 512 },
106
+ },
107
+ },
108
+ required: ['name', 'reaches'],
109
+ },
110
+ },
111
+ spaces: {
112
+ title: 'Spaces',
113
+ type: 'array',
114
+ items: {
115
+ type: 'object',
116
+ additionalProperties: false,
117
+ properties: { name: { title: 'Name', type: 'string' } },
118
+ required: ['name'],
119
+ },
120
+ },
121
+ expires_at: { title: 'Expires at', type: 'string', format: 'date-time' },
122
+ join_request: { title: 'Join request', $ref: '#/$defs/id' },
123
+ user: {
124
+ title: 'User',
125
+ type: 'object',
126
+ additionalProperties: false,
127
+ properties: {
128
+ name: { title: 'Name', type: 'string' },
129
+ email: { title: 'Email', type: 'string', format: 'email' },
130
+ },
131
+ required: ['name'],
132
+ },
133
+ room: {
134
+ title: 'Room',
135
+ type: 'object',
136
+ additionalProperties: false,
137
+ properties: {
138
+ room: { title: 'Room', $ref: '#/$defs/room' },
139
+ name: { title: 'Name', type: 'string' },
140
+ },
141
+ minProperties: 1,
142
+ },
143
+ app: {
144
+ title: 'App',
145
+ type: 'object',
146
+ additionalProperties: false,
147
+ properties: {
148
+ app: { title: 'App', $ref: '#/$defs/app' },
149
+ name: { title: 'Name', type: 'string' },
150
+ },
151
+ required: ['app'],
152
+ },
153
+ origins: {
154
+ title: 'Origins',
155
+ type: 'array',
156
+ items: { type: 'string', minLength: 1, maxLength: 512 },
157
+ },
158
+ triggers: {
159
+ title: 'Triggers',
160
+ type: 'array',
161
+ items: {
162
+ type: 'object',
163
+ additionalProperties: false,
164
+ properties: {
165
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
166
+ description: { title: 'Description', type: 'string' },
167
+ room: {
168
+ title: 'Room',
169
+ type: 'object',
170
+ additionalProperties: false,
171
+ properties: {
172
+ room: { title: 'Room', $ref: '#/$defs/room' },
173
+ name: { title: 'Name', type: 'string' },
174
+ },
175
+ required: ['room', 'name'],
176
+ },
177
+ },
178
+ required: ['trigger', 'description', 'room'],
179
+ },
180
+ },
181
+ space: {
182
+ title: 'Space',
183
+ type: 'object',
184
+ additionalProperties: false,
185
+ properties: { space: { title: 'Space', $ref: '#/$defs/space' } },
186
+ required: ['space'],
187
+ },
188
+ ownership_offer: { title: 'Ownership offer', $ref: '#/$defs/id' },
189
+ offerer: {
190
+ title: 'Offerer',
191
+ type: 'object',
192
+ additionalProperties: false,
193
+ properties: {
194
+ name: { title: 'Name', type: 'string' },
195
+ email: { title: 'Email', type: 'string', format: 'email' },
196
+ },
197
+ required: ['name'],
198
+ },
199
+ environment: {
200
+ title: 'Environment',
201
+ type: 'object',
202
+ additionalProperties: false,
203
+ properties: {
204
+ environment: { title: 'Environment', $ref: '#/$defs/id' },
205
+ name: { title: 'Name', type: 'string' },
206
+ kind: { title: 'Kind', enum: ['vps', 'sandbox'] },
207
+ },
208
+ required: ['environment', 'name'],
209
+ },
210
+ reason: { title: 'Reason', type: 'string' },
211
+ deadline: { title: 'Deadline', type: 'string', format: 'date-time' },
212
+ free: {
213
+ title: 'Free',
214
+ type: 'object',
215
+ additionalProperties: false,
216
+ properties: {
217
+ held: { title: 'Held', type: 'string', pattern: '^\\d+$' },
218
+ limit: { title: 'Limit', type: 'string', pattern: '^[1-9]\\d*$' },
219
+ measure: { title: 'Measure', type: 'string', enum: ['content', 'retained'] },
220
+ },
221
+ required: ['held', 'limit', 'measure'],
222
+ },
223
+ chat: { title: 'Chat', type: 'string' },
224
+ missing: {
225
+ title: 'Missing',
226
+ type: 'array',
227
+ items: {
228
+ type: 'string',
229
+ enum: [
230
+ 'private',
231
+ 'topics',
232
+ 'ban_users',
233
+ 'invite_users',
234
+ 'manage_topics',
235
+ 'post_messages',
236
+ 'edit_messages',
237
+ 'inbox_manage_topics',
238
+ 'inbox_delete_messages',
239
+ ],
240
+ },
241
+ },
242
+ number: { title: 'Number', type: 'string' },
243
+ budget: { title: 'Budget', type: 'string', pattern: '^\\d+(?:\\.\\d+)?$' },
244
+ resets_at: { title: 'Resets at', type: 'string', format: 'date-time' },
245
+ grant: { title: 'Grant', $ref: '#/$defs/id' },
246
+ category: { title: 'Category', type: 'string' },
247
+ access_started_at: { title: 'Access started at', type: 'string', format: 'date-time' },
248
+ access_ended_at: { title: 'Access ended at', type: 'string', format: 'date-time' },
249
+ systems: { title: 'Systems', type: 'array', items: { type: 'string' } },
250
+ case_reference: { title: 'Case reference', type: 'string' },
251
+ export: { title: 'Export', $ref: '#/$defs/id' },
252
+ size_bytes: { title: 'Size in bytes', type: 'integer', minimum: 0 },
253
+ name: { title: 'Name', type: 'string' },
254
+ authorship: {
255
+ title: 'Authorship',
256
+ type: 'object',
257
+ additionalProperties: false,
258
+ properties: {
259
+ kind: { title: 'Kind', type: 'string', const: 'trigger-action' },
260
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
261
+ position: { title: 'Position', type: 'integer', minimum: 0 },
262
+ },
263
+ required: ['kind', 'trigger', 'position'],
264
+ },
265
+ path: { title: 'Path', type: 'string', maxLength: 4096, pattern: '^\\/.*' },
266
+ trigger: {
267
+ title: 'Trigger',
268
+ type: 'object',
269
+ additionalProperties: false,
270
+ properties: {
271
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
272
+ description: { title: 'Description', type: 'string' },
273
+ },
274
+ required: ['trigger', 'description'],
275
+ },
276
+ code: {
277
+ title: 'Code',
278
+ type: 'string',
279
+ enum: [
280
+ 'failed',
281
+ 'internal_error',
282
+ 'agent_function_unreadable',
283
+ 'function_failed',
284
+ 'function_not_started',
285
+ 'agent_function_request_not_started',
286
+ 'post_not_confirmed',
287
+ ],
288
+ },
289
+ action: { title: 'Action', type: 'integer', minimum: 0 },
290
+ moment: { title: 'Moment', type: 'string', format: 'date-time' },
291
+ error: { title: 'Error', type: 'string' },
292
+ document_path: { title: 'Document path', type: 'string' },
293
+ agent_function: {
294
+ title: 'Agent function',
295
+ type: 'object',
296
+ additionalProperties: false,
297
+ properties: { name: { title: 'Name', type: 'string' } },
298
+ required: ['name'],
299
+ },
300
+ agent: {
301
+ title: 'Agent',
302
+ type: 'object',
303
+ additionalProperties: false,
304
+ properties: { name: { title: 'Name', type: 'string' } },
305
+ required: ['name'],
306
+ },
307
+ ended: { title: 'Ended', type: 'string', enum: ['finished', 'failed'] },
308
+ duration: { title: 'Duration', type: 'integer', minimum: 1 },
309
+ meter: { title: 'Meter', type: 'string', enum: ['indexed_text', 'blob'] },
310
+ average_bytes: { title: 'Average in bytes', type: 'integer', minimum: 0 },
311
+ included_bytes: { title: 'Included in bytes', type: 'integer', minimum: 1 },
312
+ block_bytes: { title: 'Block in bytes', type: 'integer', minimum: 1 },
313
+ block_usd: { title: 'Block price in USD', type: 'number', exclusiveMinimum: 0 },
314
+ amount_usd: { title: 'Amount in USD', type: 'number', exclusiveMinimum: 0 },
315
+ },
316
+ required: ['notification', 'kind', 'created', 'way_in', 'subject'],
317
+ },
318
+ 'house-panel-preferences': {
319
+ description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.",
320
+ properties: {},
321
+ },
322
+ 'house-agent-function': {
323
+ description: "One Agent function that serves this Room, which House alone writes from its owner's document in their Private Room and their Standing answer for it: the `agent_function` by identifier, its `description`, the `input` a caller sends, empty when it takes nothing, the `agent` it starts, by `agent` and the `name` that Agent had when this card was last written, and its `answer`, how a request from anyone but its owner starts: `at_once`, `ask_me`, which waits for its owner's approval, or `off`, which refuses it. The Agent function's instruction is never written here.",
324
+ properties: {
325
+ reflected: { title: 'Reflected', type: 'string', format: 'date-time' },
326
+ agent_function: { title: 'Agent function', $ref: '#/$defs/id' },
327
+ description: { title: 'Description', type: 'string' },
328
+ input: { title: 'Input', type: 'string' },
329
+ agent: {
330
+ title: 'Agent',
331
+ type: 'object',
332
+ additionalProperties: false,
333
+ properties: {
334
+ agent: { title: 'Agent', $ref: '#/$defs/id' },
335
+ name: { title: 'Name', type: 'string' },
336
+ },
337
+ required: ['agent', 'name'],
338
+ },
339
+ answer: { title: 'Answer', type: 'string', enum: ['at_once', 'ask_me', 'off'] },
340
+ },
341
+ required: ['reflected', 'agent_function', 'description', 'input', 'agent', 'answer'],
342
+ },
343
+ 'house-agent-function-document': {
344
+ description: 'One Agent function as its owner writes it in their Private Room at rooms/<room-handle>/agent-functions/<name>.md, a path that binds this type and a document that names no type: what it does as `description`, what a caller sends as `input`, empty when it takes nothing, the `agent` it starts, by identifier, and `afk`, true for a run nobody watches, off when absent. Its body is the instruction that Agent follows.',
345
+ properties: {
346
+ description: { title: 'Description', type: 'string', maxLength: 2000, pattern: '\\S' },
347
+ input: { title: 'Input', type: 'string' },
348
+ agent: { title: 'Agent', $ref: '#/$defs/id' },
349
+ afk: { title: 'AFK', type: 'boolean' },
350
+ },
351
+ required: ['description', 'input', 'agent'],
352
+ },
353
+ 'house-trigger': {
354
+ description: "One Trigger of this Room as its acts wrote it, which House alone writes: its `description`, the `condition` it fires on, its `actions` in order, whether each action and the Trigger are `enabled`, `paused_by` `types` while a change of the Room's types paused it, its `creator` by `user` and the `name` they had then, and when it was `created`. A `notify` action reaches the `users` its `to` names, the members its `fields` name in the matched document and the holders of its `roles`, or, `in_group`, posts once in this Room's Telegram group in their place, mentioning each; an `agent_function` action sends its `payload` to the Agent function whose card under this Room's `house/agent-functions/` its `card` names, absent while this Room holds no card of that Agent function; a `message` action puts its `text` into the active conversation that Agent function started for what the Event is about, or starts that Agent function when none is active; a `function` action runs the `function` its `app`'s latest release declares, on House's servers, while the `user` it was `attached_by` owns this Room, or, naming no `app`, the Room owner's Environment function of that name on its Environment, which only a Trigger of their Private Room holds. Whether an action's target holds is not written: it follows from the Room's members, the Agent function's card, the App's latest release, who owns this Room and the owner's functions.",
355
+ properties: {
356
+ reflected: { title: 'Reflected', type: 'string', format: 'date-time' },
357
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
358
+ description: { title: 'Description', type: 'string' },
359
+ condition: {
360
+ title: 'Condition',
361
+ description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.',
362
+ type: 'object',
363
+ additionalProperties: true,
364
+ },
365
+ actions: {
366
+ title: 'Actions',
367
+ type: 'array',
368
+ items: {
369
+ anyOf: [
370
+ {
371
+ type: 'object',
372
+ additionalProperties: false,
373
+ properties: {
374
+ kind: { title: 'Kind', const: 'notify' },
375
+ enabled: { title: 'Enabled', type: 'boolean' },
376
+ title: { title: 'Title', type: 'string' },
377
+ text: { title: 'Text', type: 'string' },
378
+ to: {
379
+ title: 'To',
380
+ type: 'object',
381
+ additionalProperties: false,
382
+ properties: {
383
+ users: {
384
+ title: 'Users',
385
+ type: 'array',
386
+ items: {
387
+ type: 'object',
388
+ additionalProperties: false,
389
+ properties: { user: { title: 'User', $ref: '#/$defs/id' } },
390
+ required: ['user'],
391
+ },
392
+ },
393
+ fields: { title: 'Fields', type: 'array', items: { type: 'string' } },
394
+ roles: { title: 'Roles', type: 'array', items: { type: 'string' } },
395
+ },
396
+ required: ['users', 'fields', 'roles'],
397
+ },
398
+ in_group: { title: 'In group', const: true },
399
+ },
400
+ required: ['kind', 'enabled', 'title', 'text', 'to'],
401
+ },
402
+ {
403
+ type: 'object',
404
+ additionalProperties: false,
405
+ properties: {
406
+ kind: { title: 'Kind', const: 'agent_function' },
407
+ enabled: { title: 'Enabled', type: 'boolean' },
408
+ card: { title: 'Card', type: 'string', minLength: 1 },
409
+ payload: { title: 'Payload', type: 'string' },
410
+ },
411
+ required: ['kind', 'enabled', 'payload'],
412
+ },
413
+ {
414
+ type: 'object',
415
+ additionalProperties: false,
416
+ properties: {
417
+ kind: { title: 'Kind', const: 'message' },
418
+ enabled: { title: 'Enabled', type: 'boolean' },
419
+ card: { title: 'Card', type: 'string', minLength: 1 },
420
+ text: { title: 'Text', type: 'string' },
421
+ },
422
+ required: ['kind', 'enabled', 'text'],
423
+ },
424
+ {
425
+ type: 'object',
426
+ additionalProperties: false,
427
+ properties: {
428
+ kind: { title: 'Kind', const: 'function' },
429
+ enabled: { title: 'Enabled', type: 'boolean' },
430
+ app: { title: 'App', $ref: '#/$defs/app' },
431
+ function: { title: 'Function', type: 'string' },
432
+ attached_by: {
433
+ title: 'Attached by',
434
+ type: 'object',
435
+ additionalProperties: false,
436
+ properties: { user: { title: 'User', $ref: '#/$defs/id' } },
437
+ required: ['user'],
438
+ },
439
+ },
440
+ required: ['kind', 'enabled', 'function'],
441
+ },
442
+ ],
443
+ },
444
+ },
445
+ enabled: { title: 'Enabled', type: 'boolean' },
446
+ paused_by: { title: 'Paused by', enum: ['types'] },
447
+ creator: {
448
+ title: 'Creator',
449
+ type: 'object',
450
+ additionalProperties: false,
451
+ properties: {
452
+ user: { title: 'User', $ref: '#/$defs/id' },
453
+ name: { title: 'Name', type: 'string' },
454
+ },
455
+ required: ['user', 'name'],
456
+ },
457
+ created: { title: 'Created', type: 'string', format: 'date-time' },
458
+ },
459
+ required: [
460
+ 'reflected',
461
+ 'trigger',
462
+ 'description',
463
+ 'condition',
464
+ 'actions',
465
+ 'enabled',
466
+ 'creator',
467
+ 'created',
468
+ ],
469
+ },
470
+ 'house-web-wizard': {
471
+ description: "One Web Wizard an agent made for this User: the `environment` it runs on, with the `name` that Environment had when the Web Wizard was made, and its `state`, `waiting` until its owner presses Run or Keep, `running`, `finished` with the script's `exit_code`, `failed`, `cancelled` when its page closed before the script ended, `lapsed` when nobody ran it in its time, or `kept` when its owner kept the script, without running it, as their Environment function named `function`. Its body is the script, whole, in one fenced code block. The terminal's output is never kept.",
472
+ properties: {
473
+ reflected: { title: 'Reflected', type: 'string', format: 'date-time' },
474
+ web_wizard: { title: 'Web Wizard', $ref: '#/$defs/id' },
475
+ environment: {
476
+ title: 'Environment',
477
+ type: 'object',
478
+ additionalProperties: false,
479
+ properties: {
480
+ environment: { title: 'Environment', $ref: '#/$defs/id' },
481
+ name: { title: 'Name', type: 'string' },
482
+ },
483
+ required: ['environment', 'name'],
484
+ },
485
+ state: {
486
+ title: 'State',
487
+ enum: ['waiting', 'running', 'finished', 'failed', 'cancelled', 'lapsed', 'kept'],
488
+ },
489
+ exit_code: { title: 'Exit code', type: 'integer' },
490
+ function: { title: 'Function', type: 'string' },
491
+ },
492
+ required: ['reflected', 'web_wizard', 'environment', 'state'],
493
+ },
494
+ };
495
+ export const HOUSE_TYPED_PATHS = [
496
+ { path: 'settings/panel.md', type: 'house-panel-preferences', named: true, body: false },
497
+ { path: `${APP_PREFERENCES_HOME}/*.md`, type: 'house-app-preferences', named: true, body: false },
498
+ {
499
+ path: 'rooms/*/agent-functions/*.md',
500
+ type: 'house-agent-function-document',
501
+ named: false,
502
+ body: true,
503
+ },
504
+ ];
@@ -0,0 +1,4 @@
1
+ export declare const CROCKFORD_ALPHABET = "0123456789abcdefghjkmnpqrstvwxyz";
2
+ export declare const CROCKFORD_CHARACTER = "[0123456789abcdefghjkmnpqrstvwxyz]";
3
+ export declare const CROCKFORD_LEADING_CHARACTER: string;
4
+ //# sourceMappingURL=crockford.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crockford.d.ts","sourceRoot":"","sources":["../../src/house-references/crockford.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,qCAAqC,CAAC;AAErE,eAAO,MAAM,mBAAmB,uCAA4B,CAAC;AAE7D,eAAO,MAAM,2BAA2B,QAAqC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export const CROCKFORD_ALPHABET = '0123456789abcdefghjkmnpqrstvwxyz';
2
+ export const CROCKFORD_CHARACTER = `[${CROCKFORD_ALPHABET}]`;
3
+ export const CROCKFORD_LEADING_CHARACTER = `[${CROCKFORD_ALPHABET.slice(1)}]`;
@@ -0,0 +1,9 @@
1
+ export declare const ROOM_REFERENCE_PREFIX = "r_";
2
+ export declare const APP_REFERENCE_PREFIX = "a_";
3
+ export declare const SPACE_REFERENCE_PREFIX = "sp_";
4
+ export declare const REVISION_REFERENCE_PREFIX = "fr_";
5
+ export declare const ROOM_REFERENCE_PATTERN: RegExp;
6
+ export declare const APP_REFERENCE_PATTERN: RegExp;
7
+ export declare const SPACE_REFERENCE_PATTERN: RegExp;
8
+ export declare const REVISION_REFERENCE_PATTERN: RegExp;
9
+ //# sourceMappingURL=patterns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patterns.d.ts","sourceRoot":"","sources":["../../src/house-references/patterns.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAM/C,eAAO,MAAM,sBAAsB,QAA0C,CAAC;AAE9E,eAAO,MAAM,qBAAqB,QAAyC,CAAC;AAE5E,eAAO,MAAM,uBAAuB,QAA2C,CAAC;AAIhF,eAAO,MAAM,0BAA0B,QAEtC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { CROCKFORD_CHARACTER, CROCKFORD_LEADING_CHARACTER } from './crockford.js';
2
+ export const ROOM_REFERENCE_PREFIX = 'r_';
3
+ export const APP_REFERENCE_PREFIX = 'a_';
4
+ export const SPACE_REFERENCE_PREFIX = 'sp_';
5
+ export const REVISION_REFERENCE_PREFIX = 'fr_';
6
+ function referencePattern(prefix) {
7
+ return new RegExp(`^${prefix}(${CROCKFORD_CHARACTER}+)\\.(${CROCKFORD_CHARACTER})$`);
8
+ }
9
+ export const ROOM_REFERENCE_PATTERN = referencePattern(ROOM_REFERENCE_PREFIX);
10
+ export const APP_REFERENCE_PATTERN = referencePattern(APP_REFERENCE_PREFIX);
11
+ export const SPACE_REFERENCE_PATTERN = referencePattern(SPACE_REFERENCE_PREFIX);
12
+ const ORDINAL = `${CROCKFORD_LEADING_CHARACTER}${CROCKFORD_CHARACTER}*`;
13
+ export const REVISION_REFERENCE_PATTERN = new RegExp(`^${REVISION_REFERENCE_PREFIX}(${ORDINAL})\\.(${ORDINAL})\\.(${CROCKFORD_CHARACTER})$`);