@minca/core 0.1.18 → 0.3.1

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 (335) hide show
  1. package/README.md +1 -1
  2. package/dist/identity/abilities.d.ts +0 -2
  3. package/dist/identity/abilities.d.ts.map +1 -1
  4. package/dist/identity/abilities.js +2 -2
  5. package/dist/identity/abilities.js.map +1 -1
  6. package/dist/identity/account-vault.d.ts +0 -2
  7. package/dist/identity/account-vault.d.ts.map +1 -1
  8. package/dist/identity/account-vault.js +1 -1
  9. package/dist/identity/account-vault.js.map +1 -1
  10. package/dist/identity/crypto-p256.d.ts +1 -1
  11. package/dist/identity/crypto-p256.d.ts.map +1 -1
  12. package/dist/identity/ucan.d.ts +2 -1
  13. package/dist/identity/ucan.d.ts.map +1 -1
  14. package/dist/identity/ucan.js +1 -1
  15. package/dist/identity/ucan.js.map +1 -1
  16. package/dist/inbox/inbox.d.ts +0 -21
  17. package/dist/inbox/inbox.d.ts.map +1 -1
  18. package/dist/inbox/inbox.js +4 -4
  19. package/dist/inbox/inbox.js.map +1 -1
  20. package/dist/inbox/index.d.ts +4 -5
  21. package/dist/inbox/index.d.ts.map +1 -1
  22. package/dist/inbox/index.js +2 -3
  23. package/dist/inbox/index.js.map +1 -1
  24. package/dist/inbox/names.d.ts +0 -4
  25. package/dist/inbox/names.d.ts.map +1 -1
  26. package/dist/inbox/names.js +2 -2
  27. package/dist/inbox/names.js.map +1 -1
  28. package/dist/index.d.ts +45 -71
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +34 -53
  31. package/dist/index.js.map +1 -1
  32. package/dist/network/mesh.d.ts.map +1 -1
  33. package/dist/network/mesh.js +10 -0
  34. package/dist/network/mesh.js.map +1 -1
  35. package/dist/network/rendezvous.d.ts +2 -0
  36. package/dist/network/rendezvous.d.ts.map +1 -1
  37. package/dist/network/rendezvous.js +5 -0
  38. package/dist/network/rendezvous.js.map +1 -1
  39. package/dist/network/rtc-transport.d.ts.map +1 -1
  40. package/dist/network/rtc-transport.js +8 -3
  41. package/dist/network/rtc-transport.js.map +1 -1
  42. package/dist/node/carrier.d.ts +1 -33
  43. package/dist/node/carrier.d.ts.map +1 -1
  44. package/dist/node/carrier.js +38 -68
  45. package/dist/node/carrier.js.map +1 -1
  46. package/dist/node/index.d.ts +7 -14
  47. package/dist/node/index.d.ts.map +1 -1
  48. package/dist/node/index.js +4 -8
  49. package/dist/node/index.js.map +1 -1
  50. package/dist/node/node-carriers.d.ts.map +1 -1
  51. package/dist/node/node-carriers.js +21 -52
  52. package/dist/node/node-carriers.js.map +1 -1
  53. package/dist/node/node-context.d.ts +0 -2
  54. package/dist/node/node-context.d.ts.map +1 -1
  55. package/dist/node/node-context.js.map +1 -1
  56. package/dist/node/node-hosting.d.ts.map +1 -1
  57. package/dist/node/node-hosting.js +13 -4
  58. package/dist/node/node-hosting.js.map +1 -1
  59. package/dist/node/node-records.js +1 -1
  60. package/dist/node/node-records.js.map +1 -1
  61. package/dist/node/node.d.ts.map +1 -1
  62. package/dist/node/node.js +134 -36
  63. package/dist/node/node.js.map +1 -1
  64. package/dist/node/space-checks.d.ts +3 -1
  65. package/dist/node/space-checks.d.ts.map +1 -1
  66. package/dist/node/space-checks.js +7 -3
  67. package/dist/node/space-checks.js.map +1 -1
  68. package/dist/node/space-holding.d.ts +5 -0
  69. package/dist/node/space-holding.d.ts.map +1 -1
  70. package/dist/node/space-holding.js +90 -5
  71. package/dist/node/space-holding.js.map +1 -1
  72. package/dist/node/space-lines.d.ts +3 -0
  73. package/dist/node/space-lines.d.ts.map +1 -1
  74. package/dist/node/space-lines.js +13 -1
  75. package/dist/node/space-lines.js.map +1 -1
  76. package/dist/node/space-membership.js +4 -4
  77. package/dist/node/space-membership.js.map +1 -1
  78. package/dist/node/space-peers.d.ts +5 -2
  79. package/dist/node/space-peers.d.ts.map +1 -1
  80. package/dist/node/space-peers.js +3 -2
  81. package/dist/node/space-peers.js.map +1 -1
  82. package/dist/node/space-runtime.d.ts +3 -1
  83. package/dist/node/space-runtime.d.ts.map +1 -1
  84. package/dist/node/space-runtime.js +29 -8
  85. package/dist/node/space-runtime.js.map +1 -1
  86. package/dist/node/space-standing.d.ts +1 -1
  87. package/dist/node/space-standing.d.ts.map +1 -1
  88. package/dist/node/space-standing.js +11 -4
  89. package/dist/node/space-standing.js.map +1 -1
  90. package/dist/node/space-writing.d.ts.map +1 -1
  91. package/dist/node/space-writing.js +9 -0
  92. package/dist/node/space-writing.js.map +1 -1
  93. package/dist/node/stores.d.ts +9 -1
  94. package/dist/node/stores.d.ts.map +1 -1
  95. package/dist/node/stores.js +4 -2
  96. package/dist/node/stores.js.map +1 -1
  97. package/dist/node/types.d.ts +16 -5
  98. package/dist/node/types.d.ts.map +1 -1
  99. package/dist/node/worker.d.ts +14 -6
  100. package/dist/node/worker.d.ts.map +1 -1
  101. package/dist/node/worker.js +59 -20
  102. package/dist/node/worker.js.map +1 -1
  103. package/dist/node/writer-keys.d.ts +2 -2
  104. package/dist/node/writer-keys.d.ts.map +1 -1
  105. package/dist/node/writer-keys.js +12 -14
  106. package/dist/node/writer-keys.js.map +1 -1
  107. package/dist/privacy/direct.d.ts +0 -7
  108. package/dist/privacy/direct.d.ts.map +1 -1
  109. package/dist/privacy/direct.js +2 -2
  110. package/dist/privacy/direct.js.map +1 -1
  111. package/dist/query/filter.d.ts +0 -2
  112. package/dist/query/filter.d.ts.map +1 -1
  113. package/dist/query/filter.js +1 -1
  114. package/dist/query/filter.js.map +1 -1
  115. package/dist/query/types.d.ts +2 -6
  116. package/dist/query/types.d.ts.map +1 -1
  117. package/dist/query/types.js.map +1 -1
  118. package/dist/records/key.d.ts +2 -0
  119. package/dist/records/key.d.ts.map +1 -1
  120. package/dist/records/key.js +4 -0
  121. package/dist/records/key.js.map +1 -1
  122. package/dist/records/links.js +1 -1
  123. package/dist/schemas/direct.d.ts +70 -0
  124. package/dist/schemas/direct.d.ts.map +1 -0
  125. package/dist/schemas/direct.js +39 -0
  126. package/dist/schemas/direct.js.map +1 -0
  127. package/dist/schemas/index.d.ts +10 -73
  128. package/dist/schemas/index.d.ts.map +1 -1
  129. package/dist/schemas/index.js +8 -66
  130. package/dist/schemas/index.js.map +1 -1
  131. package/dist/session/account-hint.d.ts +2 -2
  132. package/dist/session/account-hint.d.ts.map +1 -1
  133. package/dist/session/account-hint.js +3 -3
  134. package/dist/session/account-hint.js.map +1 -1
  135. package/dist/session/connect.d.ts +12 -5
  136. package/dist/session/connect.d.ts.map +1 -1
  137. package/dist/session/connect.js +25 -21
  138. package/dist/session/connect.js.map +1 -1
  139. package/dist/session/connection.d.ts +26 -2
  140. package/dist/session/connection.d.ts.map +1 -1
  141. package/dist/session/connection.js +151 -11
  142. package/dist/session/connection.js.map +1 -1
  143. package/dist/session/hosting.d.ts +1 -7
  144. package/dist/session/hosting.d.ts.map +1 -1
  145. package/dist/session/hosting.js +3 -3
  146. package/dist/session/hosting.js.map +1 -1
  147. package/dist/session/index.d.ts +9 -14
  148. package/dist/session/index.d.ts.map +1 -1
  149. package/dist/session/index.js +8 -11
  150. package/dist/session/index.js.map +1 -1
  151. package/dist/session/stay-signed-in.d.ts +0 -1
  152. package/dist/session/stay-signed-in.d.ts.map +1 -1
  153. package/dist/session/stay-signed-in.js +1 -1
  154. package/dist/session/stay-signed-in.js.map +1 -1
  155. package/dist/space/account-registry.d.ts +0 -3
  156. package/dist/space/account-registry.d.ts.map +1 -1
  157. package/dist/space/account-registry.js.map +1 -1
  158. package/dist/space/own-automations.d.ts +51 -95
  159. package/dist/space/own-automations.d.ts.map +1 -1
  160. package/dist/space/own-automations.js +100 -295
  161. package/dist/space/own-automations.js.map +1 -1
  162. package/dist/space/pass.d.ts +8 -3
  163. package/dist/space/pass.d.ts.map +1 -1
  164. package/dist/space/pass.js +4 -3
  165. package/dist/space/pass.js.map +1 -1
  166. package/dist/space/space-manager.d.ts +1 -3
  167. package/dist/space/space-manager.d.ts.map +1 -1
  168. package/dist/space/space-manager.js +5 -7
  169. package/dist/space/space-manager.js.map +1 -1
  170. package/dist/storage/body-cache.d.ts +26 -0
  171. package/dist/storage/body-cache.d.ts.map +1 -0
  172. package/dist/storage/body-cache.js +41 -0
  173. package/dist/storage/body-cache.js.map +1 -0
  174. package/dist/storage/encrypted-adapter.d.ts +0 -5
  175. package/dist/storage/encrypted-adapter.d.ts.map +1 -1
  176. package/dist/storage/encrypted-adapter.js +1 -1
  177. package/dist/storage/encrypted-adapter.js.map +1 -1
  178. package/dist/storage/folder-adapter.d.ts +8 -2
  179. package/dist/storage/folder-adapter.d.ts.map +1 -1
  180. package/dist/storage/folder-adapter.js +43 -26
  181. package/dist/storage/folder-adapter.js.map +1 -1
  182. package/dist/storage/indexeddb-adapter.js +27 -2
  183. package/dist/storage/indexeddb-adapter.js.map +1 -1
  184. package/dist/storage/sqlite-adapter.d.ts +57 -0
  185. package/dist/storage/sqlite-adapter.d.ts.map +1 -0
  186. package/dist/storage/sqlite-adapter.js +213 -0
  187. package/dist/storage/sqlite-adapter.js.map +1 -0
  188. package/dist/storage/storage-provider.d.ts +21 -2
  189. package/dist/storage/storage-provider.d.ts.map +1 -1
  190. package/dist/storage/storage-provider.js +149 -56
  191. package/dist/storage/storage-provider.js.map +1 -1
  192. package/dist/sync/sync-engine.d.ts +10 -4
  193. package/dist/sync/sync-engine.d.ts.map +1 -1
  194. package/dist/sync/sync-engine.js +120 -38
  195. package/dist/sync/sync-engine.js.map +1 -1
  196. package/dist/sync/sync-messages.d.ts +4 -0
  197. package/dist/sync/sync-messages.d.ts.map +1 -1
  198. package/dist/sync/sync-messages.js.map +1 -1
  199. package/dist/types.d.ts +0 -7
  200. package/dist/types.d.ts.map +1 -1
  201. package/dist/types.js +0 -1
  202. package/dist/types.js.map +1 -1
  203. package/dist/utils/step.d.ts +8 -0
  204. package/dist/utils/step.d.ts.map +1 -0
  205. package/dist/utils/step.js +15 -0
  206. package/dist/utils/step.js.map +1 -0
  207. package/docs/README.md +1 -1
  208. package/docs/actions.md +41 -2
  209. package/docs/agents.md +13 -10
  210. package/docs/automations.md +16 -48
  211. package/docs/blueprints-and-guides.md +2 -2
  212. package/docs/bots.md +3 -3
  213. package/docs/building-an-app.md +16 -0
  214. package/docs/collections.md +2 -4
  215. package/docs/computed.md +1 -2
  216. package/docs/node.md +112 -39
  217. package/docs/proposing-collections.md +3 -3
  218. package/docs/sign-in.md +45 -52
  219. package/docs/spaces.md +0 -5
  220. package/docs/standard-library.md +20 -8
  221. package/docs/storage.md +78 -12
  222. package/docs/usernames.md +3 -3
  223. package/package.json +7 -13
  224. package/dist/elements/auth-styles.d.ts +0 -18
  225. package/dist/elements/auth-styles.d.ts.map +0 -1
  226. package/dist/elements/auth-styles.js +0 -206
  227. package/dist/elements/auth-styles.js.map +0 -1
  228. package/dist/elements/dom.d.ts +0 -29
  229. package/dist/elements/dom.d.ts.map +0 -1
  230. package/dist/elements/dom.js +0 -91
  231. package/dist/elements/dom.js.map +0 -1
  232. package/dist/elements/index.d.ts +0 -13
  233. package/dist/elements/index.d.ts.map +0 -1
  234. package/dist/elements/index.js +0 -11
  235. package/dist/elements/index.js.map +0 -1
  236. package/dist/elements/minca-auth.d.ts +0 -55
  237. package/dist/elements/minca-auth.d.ts.map +0 -1
  238. package/dist/elements/minca-auth.js +0 -768
  239. package/dist/elements/minca-auth.js.map +0 -1
  240. package/dist/node/actions.d.ts +0 -85
  241. package/dist/node/actions.d.ts.map +0 -1
  242. package/dist/node/actions.js +0 -921
  243. package/dist/node/actions.js.map +0 -1
  244. package/dist/node/host.d.ts +0 -187
  245. package/dist/node/host.d.ts.map +0 -1
  246. package/dist/node/host.js +0 -818
  247. package/dist/node/host.js.map +0 -1
  248. package/dist/node/usage.d.ts +0 -32
  249. package/dist/node/usage.d.ts.map +0 -1
  250. package/dist/node/usage.js +0 -217
  251. package/dist/node/usage.js.map +0 -1
  252. package/dist/node/watch-notifications.d.ts +0 -19
  253. package/dist/node/watch-notifications.d.ts.map +0 -1
  254. package/dist/node/watch-notifications.js +0 -128
  255. package/dist/node/watch-notifications.js.map +0 -1
  256. package/dist/schemas/automations.d.ts +0 -390
  257. package/dist/schemas/automations.d.ts.map +0 -1
  258. package/dist/schemas/automations.js +0 -619
  259. package/dist/schemas/automations.js.map +0 -1
  260. package/dist/schemas/blueprints.d.ts +0 -122
  261. package/dist/schemas/blueprints.d.ts.map +0 -1
  262. package/dist/schemas/blueprints.js +0 -337
  263. package/dist/schemas/blueprints.js.map +0 -1
  264. package/dist/schemas/choosing.d.ts +0 -19
  265. package/dist/schemas/choosing.d.ts.map +0 -1
  266. package/dist/schemas/choosing.js +0 -69
  267. package/dist/schemas/choosing.js.map +0 -1
  268. package/dist/schemas/connectors.d.ts +0 -202
  269. package/dist/schemas/connectors.d.ts.map +0 -1
  270. package/dist/schemas/connectors.js +0 -140
  271. package/dist/schemas/connectors.js.map +0 -1
  272. package/dist/schemas/cron.d.ts +0 -14
  273. package/dist/schemas/cron.d.ts.map +0 -1
  274. package/dist/schemas/cron.js +0 -75
  275. package/dist/schemas/cron.js.map +0 -1
  276. package/dist/schemas/geo.d.ts +0 -63
  277. package/dist/schemas/geo.d.ts.map +0 -1
  278. package/dist/schemas/geo.js +0 -131
  279. package/dist/schemas/geo.js.map +0 -1
  280. package/dist/schemas/guides.d.ts +0 -26
  281. package/dist/schemas/guides.d.ts.map +0 -1
  282. package/dist/schemas/guides.js +0 -33
  283. package/dist/schemas/guides.js.map +0 -1
  284. package/dist/schemas/library/annotations.d.ts +0 -616
  285. package/dist/schemas/library/annotations.d.ts.map +0 -1
  286. package/dist/schemas/library/annotations.js +0 -156
  287. package/dist/schemas/library/annotations.js.map +0 -1
  288. package/dist/schemas/library/collections.d.ts +0 -211
  289. package/dist/schemas/library/collections.d.ts.map +0 -1
  290. package/dist/schemas/library/collections.js +0 -57
  291. package/dist/schemas/library/collections.js.map +0 -1
  292. package/dist/schemas/library/community.d.ts +0 -1136
  293. package/dist/schemas/library/community.d.ts.map +0 -1
  294. package/dist/schemas/library/community.js +0 -315
  295. package/dist/schemas/library/community.js.map +0 -1
  296. package/dist/schemas/library/life.d.ts +0 -1440
  297. package/dist/schemas/library/life.d.ts.map +0 -1
  298. package/dist/schemas/library/life.js +0 -202
  299. package/dist/schemas/library/life.js.map +0 -1
  300. package/dist/schemas/library/media.d.ts +0 -1002
  301. package/dist/schemas/library/media.d.ts.map +0 -1
  302. package/dist/schemas/library/media.js +0 -110
  303. package/dist/schemas/library/media.js.map +0 -1
  304. package/dist/schemas/library/money.d.ts +0 -1221
  305. package/dist/schemas/library/money.d.ts.map +0 -1
  306. package/dist/schemas/library/money.js +0 -168
  307. package/dist/schemas/library/money.js.map +0 -1
  308. package/dist/schemas/library/planning.d.ts +0 -1107
  309. package/dist/schemas/library/planning.d.ts.map +0 -1
  310. package/dist/schemas/library/planning.js +0 -214
  311. package/dist/schemas/library/planning.js.map +0 -1
  312. package/dist/schemas/library/publishing.d.ts +0 -1499
  313. package/dist/schemas/library/publishing.d.ts.map +0 -1
  314. package/dist/schemas/library/publishing.js +0 -285
  315. package/dist/schemas/library/publishing.js.map +0 -1
  316. package/dist/schemas/library/social.d.ts +0 -1257
  317. package/dist/schemas/library/social.d.ts.map +0 -1
  318. package/dist/schemas/library/social.js +0 -147
  319. package/dist/schemas/library/social.js.map +0 -1
  320. package/dist/schemas/standard.d.ts +0 -21
  321. package/dist/schemas/standard.d.ts.map +0 -1
  322. package/dist/schemas/standard.js +0 -39
  323. package/dist/schemas/standard.js.map +0 -1
  324. package/dist/session/auth.d.ts +0 -411
  325. package/dist/session/auth.d.ts.map +0 -1
  326. package/dist/session/auth.js +0 -1529
  327. package/dist/session/auth.js.map +0 -1
  328. package/dist/session/credentials.d.ts +0 -30
  329. package/dist/session/credentials.d.ts.map +0 -1
  330. package/dist/session/credentials.js +0 -63
  331. package/dist/session/credentials.js.map +0 -1
  332. package/dist/session/password-strength.d.ts +0 -22
  333. package/dist/session/password-strength.d.ts.map +0 -1
  334. package/dist/session/password-strength.js +0 -130
  335. package/dist/session/password-strength.js.map +0 -1
@@ -1,156 +0,0 @@
1
- /** Annotations: records that attach to any other record with an `about` link. */
2
- import { about, choice, count, people, person, text, define, words } from '../fragments.js';
3
- /** An emoji reaction to any record. Link it: `{ rel: 'about', to: <key> }`. */
4
- export const reaction = define({
5
- name: 'std.reaction',
6
- title: 'Reaction',
7
- description: 'An emoji reaction to any record.',
8
- schema: {
9
- type: 'object',
10
- properties: {
11
- respondingTo: person('Whose record it responds to, so they can be told'),
12
- emoji: { type: 'string', minLength: 1, maxLength: 16 },
13
- },
14
- required: ['emoji'],
15
- },
16
- links: { about: about('The record reacted to') },
17
- // One of each emoji per person per record; only yours to take back.
18
- rules: { onePer: ['@author', 'link:about', 'emoji'] },
19
- topics: ['respondingTo'],
20
- });
21
- /**
22
- * A comment on any record, optionally a reply to another comment. As on a
23
- * `std.message`, `mentions` names who it calls on and `replyingTo` whose
24
- * comment it answers, and both are topics: "mentions me" and "replies to me"
25
- * can be asked of a keeper that can't read it. Commenting is also how to
26
- * mention someone on a record of any kind, whatever its own definition holds.
27
- */
28
- export const comment = define({
29
- name: 'std.comment',
30
- title: 'Comment',
31
- description: 'A comment on any record, optionally replying to another comment. To chat, use std.message.',
32
- schema: {
33
- type: 'object',
34
- properties: {
35
- respondingTo: person('Whose record it responds to, so they can be told'),
36
- text: { type: 'string', minLength: 1, maxLength: 10000 },
37
- mentions: people(64, 'Who it mentions, so they can be told'),
38
- replyingTo: person('Whose comment it replies to, so they can be told'),
39
- },
40
- required: ['text'],
41
- },
42
- topics: ['mentions', 'replyingTo', 'respondingTo'],
43
- links: {
44
- about: about('The record commented on'),
45
- replyTo: { to: ['std.comment'], cardinality: 'one', description: 'The comment this replies to' },
46
- shares: { to: '*', cardinality: 'one', description: 'A record this comment shares, like a poll' },
47
- },
48
- });
49
- /** A label on one or more records. */
50
- export const tag = define({
51
- name: 'std.tag',
52
- title: 'Tag',
53
- description: 'A loose label on one record, like #urgent: many per record, and anyone may add one. For a named group that exists while empty, use std.list; for a moderator’s label that apps act on, use std.label.',
54
- schema: {
55
- type: 'object',
56
- properties: { label: { type: 'string', minLength: 1, maxLength: 100 } },
57
- required: ['label'],
58
- },
59
- links: { about: about('The record tagged') },
60
- rules: { onePer: ['@author', 'link:about', 'label'] },
61
- });
62
- /** One person's score for something, from 1 to 5, and what they thought. */
63
- export const rating = define({
64
- name: 'std.rating',
65
- title: 'Rating',
66
- description: 'A score from 1 to 5, one per person per thing, changed by rating again.',
67
- schema: {
68
- type: 'object',
69
- properties: { score: count(1, 5), review: text(10000) },
70
- required: ['score'],
71
- },
72
- links: { about: about('What is rated') },
73
- rules: { onePer: ['@author', 'link:about'] },
74
- });
75
- /**
76
- * A passage marked in a longer text. `prefix` and `suffix` find it again when
77
- * the quote appears more than once (as W3C Web Annotation's text quote does).
78
- */
79
- export const highlight = define({
80
- name: 'std.highlight',
81
- title: 'Highlight',
82
- description: 'A passage marked in a text, with an optional note.',
83
- schema: {
84
- type: 'object',
85
- properties: {
86
- quote: words(10000),
87
- prefix: text(500, 'Text just before the quote'),
88
- suffix: text(500, 'Text just after the quote'),
89
- note: text(10000),
90
- },
91
- required: ['quote'],
92
- },
93
- links: { about: about('The text highlighted') },
94
- });
95
- /** A record pinned where everyone sees it. Pinning is for moderators. */
96
- export const pin = define({
97
- name: 'std.pin',
98
- title: 'Pin',
99
- description: 'A record pinned for everyone by a moderator. To keep something for yourself, put it on a std.list.',
100
- schema: { type: 'object', properties: { note: text(500) } },
101
- links: { about: about('The record pinned') },
102
- rules: { onePer: ['link:about'] },
103
- });
104
- /** A report that something breaks the space's norms, for its moderators to see. */
105
- export const report = define({
106
- name: 'std.report',
107
- title: 'Report',
108
- description: 'A report that a record breaks the rules, for moderators.',
109
- schema: {
110
- type: 'object',
111
- properties: {
112
- reason: choice(['spam', 'abuse', 'sexual', 'misleading', 'illegal', 'other']),
113
- note: text(2000),
114
- },
115
- required: ['reason'],
116
- },
117
- links: { about: about('The record reported') },
118
- rules: { onePer: ['@author', 'link:about'] },
119
- });
120
- /**
121
- * A moderator's label on a record, which apps act on: `nsfw` blurs, `spoiler`
122
- * hides until asked. Unlike a tag, only moderators add one.
123
- */
124
- export const label = define({
125
- name: 'std.label',
126
- title: 'Label',
127
- description: 'A moderator’s label that apps act on, like nsfw (blurred) or spoiler (hidden). Members label things with std.tag.',
128
- schema: {
129
- type: 'object',
130
- properties: { value: words(64, 'Like "nsfw", "spoiler", "outdated"') },
131
- required: ['value'],
132
- },
133
- links: { about: about('The record labelled') },
134
- rules: { onePer: ['link:about', 'value'] },
135
- });
136
- /**
137
- * "I'll take it": one claimer per thing. A potluck dish, a shift, a chore.
138
- * Whoever claims first holds it until they let it go.
139
- */
140
- export const claim = define({
141
- name: 'std.claim',
142
- title: 'Claim',
143
- description: 'Someone taking something on, one per thing, first come: a task, an item to bring, a std.slot to book.',
144
- schema: {
145
- type: 'object',
146
- properties: { respondingTo: person('Whose record it responds to, so they can be told'), note: text(500) },
147
- },
148
- links: { about: about('What is claimed') },
149
- rules: { onePer: ['link:about'] },
150
- topics: ['respondingTo'],
151
- });
152
- /** This file's part of `standardGroups` */
153
- export const annotationGroups = {
154
- Annotations: [reaction, comment, tag, rating, highlight, pin, report, label, claim],
155
- };
156
- //# sourceMappingURL=annotations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/schemas/library/annotations.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAG5F,+EAA+E;AAC/E,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC;IAC7B,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,kCAAkC;IAC/C,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YA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: blueprints of collections someone proposes,
3
- * and guides to how the ones it has are meant to be used. Neither is about
4
- * any one app. How they are used is in `schemas/blueprints.ts` and
5
- * `schemas/guides.ts`.
6
- */
7
- import type { JsonSchema } from '../../schema/collection-def.js';
8
- import type { LinkDeclaration } from '../../records/links.js';
9
- import type { CollectionRules } from '../../records/rules.js';
10
- import type { CollectionContract } from '../../records/contracts.js';
11
- import type { BodyOf } from '../../query/types.js';
12
- /** One collection a blueprint would add, as `collections_define` takes it, without a version: the space decides that */
13
- export interface DraftCollection {
14
- readonly name: string;
15
- readonly title?: string;
16
- readonly description?: string;
17
- readonly schema: JsonSchema;
18
- readonly history?: 'latest' | 'all';
19
- readonly links?: Readonly<Record<string, LinkDeclaration>>;
20
- readonly permissions?: ReadonlyArray<string>;
21
- readonly rules?: CollectionRules;
22
- /** What a version must be to count, judged by readers */
23
- readonly contract?: CollectionContract;
24
- /** Fields whose values keepers can match without reading: `mentions`, `channel` */
25
- readonly topics?: ReadonlyArray<string>;
26
- }
27
- export interface Blueprint {
28
- /** What it is for, in a few words: "Carpool" */
29
- readonly title: string;
30
- /** What it is for, in its proposer's words: shown as theirs, never as what it does */
31
- readonly description?: string;
32
- readonly collections: ReadonlyArray<DraftCollection>;
33
- /** Where it was copied from: `<space id>/<record key>` */
34
- readonly from?: string;
35
- /** The key of the blueprint in this space that this one is a new version of */
36
- readonly updates?: string;
37
- }
38
- /** At most this many collections in one blueprint */
39
- export declare const MAX_BLUEPRINT_COLLECTIONS = 10;
40
- /** Collections someone proposes for the space: what they are for, and each definition, not yet added. */
41
- export declare const blueprint: {
42
- readonly name: "std.blueprint";
43
- readonly title: "Blueprint";
44
- readonly description: "Collections someone proposes for this space, not yet added.";
45
- readonly schema: {
46
- readonly type: "object";
47
- readonly properties: {
48
- readonly title: {
49
- readonly type: "string";
50
- readonly minLength: 1;
51
- readonly maxLength: 100;
52
- };
53
- readonly description: {
54
- readonly type: "string";
55
- readonly maxLength: 1000;
56
- };
57
- readonly collections: {
58
- readonly type: "array";
59
- readonly minItems: 1;
60
- readonly maxItems: 10;
61
- readonly items: {
62
- readonly type: "object";
63
- };
64
- };
65
- readonly from: {
66
- readonly type: "string";
67
- readonly maxLength: 300;
68
- };
69
- readonly updates: {
70
- readonly type: "string";
71
- readonly minLength: 1;
72
- readonly maxLength: 100;
73
- };
74
- };
75
- readonly required: readonly ["title", "collections"];
76
- };
77
- } & import("../../index.js").Typed<Blueprint>;
78
- /**
79
- * How some of the space's collections are meant to be used, for whoever
80
- * writes to them next. One of each name: whoever writes it first holds it.
81
- */
82
- export declare const guide: {
83
- readonly name: "std.guide";
84
- readonly title: "Guide";
85
- readonly description: "How some of the space’s collections are meant to be used, for whoever writes to them next.";
86
- readonly schema: {
87
- readonly type: "object";
88
- readonly properties: {
89
- readonly name: {
90
- readonly type: "string";
91
- readonly minLength: 1;
92
- readonly maxLength: 100;
93
- readonly description: "Which guide, so there is one of each: \"launcher.apps\"";
94
- };
95
- readonly title: {
96
- readonly type: "string";
97
- readonly minLength: 1;
98
- readonly maxLength: 200;
99
- };
100
- readonly text: {
101
- readonly type: "string";
102
- readonly minLength: 1;
103
- readonly maxLength: 20000;
104
- };
105
- readonly collections: {
106
- readonly type: "array";
107
- readonly maxItems: 16;
108
- readonly items: {
109
- readonly type: "string";
110
- readonly minLength: 1;
111
- readonly maxLength: 200;
112
- };
113
- readonly description: "The collections it is about";
114
- };
115
- };
116
- readonly required: readonly ["name", "title", "text"];
117
- };
118
- readonly rules: {
119
- readonly onePer: readonly ["name"];
120
- };
121
- } & import("../../index.js").Typed<{
122
- readonly name: string;
123
- readonly title: string;
124
- readonly text: string;
125
- readonly collections?: readonly string[] | undefined;
126
- }>;
127
- export type Guide = BodyOf<typeof guide>;
128
- export declare const collectionsGroups: {
129
- Collections: (({
130
- readonly name: "std.blueprint";
131
- readonly title: "Blueprint";
132
- readonly description: "Collections someone proposes for this space, not yet added.";
133
- readonly schema: {
134
- readonly type: "object";
135
- readonly properties: {
136
- readonly title: {
137
- readonly type: "string";
138
- readonly minLength: 1;
139
- readonly maxLength: 100;
140
- };
141
- readonly description: {
142
- readonly type: "string";
143
- readonly maxLength: 1000;
144
- };
145
- readonly collections: {
146
- readonly type: "array";
147
- readonly minItems: 1;
148
- readonly maxItems: 10;
149
- readonly items: {
150
- readonly type: "object";
151
- };
152
- };
153
- readonly from: {
154
- readonly type: "string";
155
- readonly maxLength: 300;
156
- };
157
- readonly updates: {
158
- readonly type: "string";
159
- readonly minLength: 1;
160
- readonly maxLength: 100;
161
- };
162
- };
163
- readonly required: readonly ["title", "collections"];
164
- };
165
- } & import("../../index.js").Typed<Blueprint>) | ({
166
- readonly name: "std.guide";
167
- readonly title: "Guide";
168
- readonly description: "How some of the space’s collections are meant to be used, for whoever writes to them next.";
169
- readonly schema: {
170
- readonly type: "object";
171
- readonly properties: {
172
- readonly name: {
173
- readonly type: "string";
174
- readonly minLength: 1;
175
- readonly maxLength: 100;
176
- readonly description: "Which guide, so there is one of each: \"launcher.apps\"";
177
- };
178
- readonly title: {
179
- readonly type: "string";
180
- readonly minLength: 1;
181
- readonly maxLength: 200;
182
- };
183
- readonly text: {
184
- readonly type: "string";
185
- readonly minLength: 1;
186
- readonly maxLength: 20000;
187
- };
188
- readonly collections: {
189
- readonly type: "array";
190
- readonly maxItems: 16;
191
- readonly items: {
192
- readonly type: "string";
193
- readonly minLength: 1;
194
- readonly maxLength: 200;
195
- };
196
- readonly description: "The collections it is about";
197
- };
198
- };
199
- readonly required: readonly ["name", "title", "text"];
200
- };
201
- readonly rules: {
202
- readonly onePer: readonly ["name"];
203
- };
204
- } & import("../../index.js").Typed<{
205
- readonly name: string;
206
- readonly title: string;
207
- readonly text: string;
208
- readonly collections?: readonly string[] | undefined;
209
- }>))[];
210
- };
211
- //# sourceMappingURL=collections.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../src/schemas/library/collections.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAA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/E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,qDAAqD;AACrD,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAE5C,yGAAyG;AACzG,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAoBpB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBhB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,KAAK,CAAC,CAAC;AAEzC,eAAO,MAAM,iBAAiB;IAAK,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsB,CAAC"}
@@ -1,57 +0,0 @@
1
- import { define, typed } from '../fragments.js';
2
- /** At most this many collections in one blueprint */
3
- export const MAX_BLUEPRINT_COLLECTIONS = 10;
4
- /** Collections someone proposes for the space: what they are for, and each definition, not yet added. */
5
- export const blueprint = typed()({
6
- name: 'std.blueprint',
7
- title: 'Blueprint',
8
- description: 'Collections someone proposes for this space, not yet added.',
9
- schema: {
10
- type: 'object',
11
- properties: {
12
- title: { type: 'string', minLength: 1, maxLength: 100 },
13
- description: { type: 'string', maxLength: 1000 },
14
- collections: {
15
- type: 'array',
16
- minItems: 1,
17
- maxItems: MAX_BLUEPRINT_COLLECTIONS,
18
- items: { type: 'object' },
19
- },
20
- from: { type: 'string', maxLength: 300 },
21
- updates: { type: 'string', minLength: 1, maxLength: 100 },
22
- },
23
- required: ['title', 'collections'],
24
- },
25
- });
26
- /**
27
- * How some of the space's collections are meant to be used, for whoever
28
- * writes to them next. One of each name: whoever writes it first holds it.
29
- */
30
- export const guide = define({
31
- name: 'std.guide',
32
- title: 'Guide',
33
- description: 'How some of the space’s collections are meant to be used, for whoever writes to them next.',
34
- schema: {
35
- type: 'object',
36
- properties: {
37
- name: {
38
- type: 'string',
39
- minLength: 1,
40
- maxLength: 100,
41
- description: 'Which guide, so there is one of each: "launcher.apps"',
42
- },
43
- title: { type: 'string', minLength: 1, maxLength: 200 },
44
- text: { type: 'string', minLength: 1, maxLength: 20000 },
45
- collections: {
46
- type: 'array',
47
- maxItems: 16,
48
- items: { type: 'string', minLength: 1, maxLength: 200 },
49
- description: 'The collections it is about',
50
- },
51
- },
52
- required: ['name', 'title', 'text'],
53
- },
54
- rules: { onePer: ['name'] },
55
- });
56
- export const collectionsGroups = { Collections: [blueprint, guide] };
57
- //# sourceMappingURL=collections.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collections.js","sourceRoot":"","sources":["../../../src/schemas/library/collections.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AA8BhD,qDAAqD;AACrD,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAE5C,yGAAyG;AACzG,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAa,CAAC;IAC1C,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,6DAA6D;IAC1E,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE;YACvD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE;YAChD,WAAW,EAAE;gBACX,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,CAAC;gBACX,QAAQ,EAAE,yBAAyB;gBACnC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC1B;YACD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE;YACxC,OAAO,EAAE,EAAE,IAAI,EAAE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