@minca/core 0.2.0 → 0.4.0

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 (420) hide show
  1. package/README.md +2 -2
  2. package/dist/{session → hosting}/hosting.d.ts +2 -8
  3. package/dist/hosting/hosting.d.ts.map +1 -0
  4. package/dist/{session → hosting}/hosting.js +3 -3
  5. package/dist/hosting/hosting.js.map +1 -0
  6. package/dist/identity/abilities.d.ts +0 -2
  7. package/dist/identity/abilities.d.ts.map +1 -1
  8. package/dist/identity/abilities.js +2 -2
  9. package/dist/identity/abilities.js.map +1 -1
  10. package/dist/identity/account-vault.d.ts +0 -2
  11. package/dist/identity/account-vault.d.ts.map +1 -1
  12. package/dist/identity/account-vault.js +1 -1
  13. package/dist/identity/account-vault.js.map +1 -1
  14. package/dist/identity/crypto-p256.d.ts +1 -1
  15. package/dist/identity/crypto-p256.d.ts.map +1 -1
  16. package/dist/identity/ucan.d.ts +2 -1
  17. package/dist/identity/ucan.d.ts.map +1 -1
  18. package/dist/identity/ucan.js +1 -1
  19. package/dist/identity/ucan.js.map +1 -1
  20. package/dist/inbox/inbox.d.ts +0 -21
  21. package/dist/inbox/inbox.d.ts.map +1 -1
  22. package/dist/inbox/inbox.js +4 -4
  23. package/dist/inbox/inbox.js.map +1 -1
  24. package/dist/inbox/index.d.ts +4 -5
  25. package/dist/inbox/index.d.ts.map +1 -1
  26. package/dist/inbox/index.js +2 -3
  27. package/dist/inbox/index.js.map +1 -1
  28. package/dist/inbox/names.d.ts +0 -4
  29. package/dist/inbox/names.d.ts.map +1 -1
  30. package/dist/inbox/names.js +2 -2
  31. package/dist/inbox/names.js.map +1 -1
  32. package/dist/index.d.ts +50 -84
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +38 -60
  35. package/dist/index.js.map +1 -1
  36. package/dist/network/mesh.d.ts.map +1 -1
  37. package/dist/network/mesh.js +23 -3
  38. package/dist/network/mesh.js.map +1 -1
  39. package/dist/network/network-manager.d.ts +5 -0
  40. package/dist/network/network-manager.d.ts.map +1 -1
  41. package/dist/network/network-manager.js +3 -0
  42. package/dist/network/network-manager.js.map +1 -1
  43. package/dist/network/peer-auth.d.ts +17 -5
  44. package/dist/network/peer-auth.d.ts.map +1 -1
  45. package/dist/network/peer-auth.js +19 -9
  46. package/dist/network/peer-auth.js.map +1 -1
  47. package/dist/network/rendezvous.d.ts +2 -0
  48. package/dist/network/rendezvous.d.ts.map +1 -1
  49. package/dist/network/rendezvous.js +5 -0
  50. package/dist/network/rendezvous.js.map +1 -1
  51. package/dist/network/rtc-transport.d.ts.map +1 -1
  52. package/dist/network/rtc-transport.js +9 -3
  53. package/dist/network/rtc-transport.js.map +1 -1
  54. package/dist/network/transport.d.ts +12 -0
  55. package/dist/network/transport.d.ts.map +1 -1
  56. package/dist/network/ws-transport.d.ts +1 -1
  57. package/dist/network/ws-transport.d.ts.map +1 -1
  58. package/dist/network/ws-transport.js +14 -4
  59. package/dist/network/ws-transport.js.map +1 -1
  60. package/dist/node/carrier.d.ts +1 -33
  61. package/dist/node/carrier.d.ts.map +1 -1
  62. package/dist/node/carrier.js +38 -68
  63. package/dist/node/carrier.js.map +1 -1
  64. package/dist/node/index.d.ts +5 -16
  65. package/dist/node/index.d.ts.map +1 -1
  66. package/dist/node/index.js +2 -9
  67. package/dist/node/index.js.map +1 -1
  68. package/dist/node/node-carriers.d.ts.map +1 -1
  69. package/dist/node/node-carriers.js +21 -52
  70. package/dist/node/node-carriers.js.map +1 -1
  71. package/dist/node/node-context.d.ts +0 -2
  72. package/dist/node/node-context.d.ts.map +1 -1
  73. package/dist/node/node-context.js.map +1 -1
  74. package/dist/node/node-hosting.d.ts.map +1 -1
  75. package/dist/node/node-hosting.js +14 -5
  76. package/dist/node/node-hosting.js.map +1 -1
  77. package/dist/node/node-records.js +2 -2
  78. package/dist/node/node-records.js.map +1 -1
  79. package/dist/node/node.d.ts.map +1 -1
  80. package/dist/node/node.js +152 -36
  81. package/dist/node/node.js.map +1 -1
  82. package/dist/node/space-checks.d.ts +3 -1
  83. package/dist/node/space-checks.d.ts.map +1 -1
  84. package/dist/node/space-checks.js +7 -3
  85. package/dist/node/space-checks.js.map +1 -1
  86. package/dist/node/space-holding.d.ts +5 -0
  87. package/dist/node/space-holding.d.ts.map +1 -1
  88. package/dist/node/space-holding.js +90 -5
  89. package/dist/node/space-holding.js.map +1 -1
  90. package/dist/node/space-lines.d.ts +3 -0
  91. package/dist/node/space-lines.d.ts.map +1 -1
  92. package/dist/node/space-lines.js +13 -1
  93. package/dist/node/space-lines.js.map +1 -1
  94. package/dist/node/space-membership.js +4 -4
  95. package/dist/node/space-membership.js.map +1 -1
  96. package/dist/node/space-mirrors.d.ts +1 -1
  97. package/dist/node/space-mirrors.d.ts.map +1 -1
  98. package/dist/node/space-mirrors.js +17 -5
  99. package/dist/node/space-mirrors.js.map +1 -1
  100. package/dist/node/space-peers.d.ts +7 -2
  101. package/dist/node/space-peers.d.ts.map +1 -1
  102. package/dist/node/space-peers.js +44 -10
  103. package/dist/node/space-peers.js.map +1 -1
  104. package/dist/node/space-runtime.d.ts +7 -3
  105. package/dist/node/space-runtime.d.ts.map +1 -1
  106. package/dist/node/space-runtime.js +32 -10
  107. package/dist/node/space-runtime.js.map +1 -1
  108. package/dist/node/space-standing.d.ts +1 -1
  109. package/dist/node/space-standing.d.ts.map +1 -1
  110. package/dist/node/space-standing.js +23 -42
  111. package/dist/node/space-standing.js.map +1 -1
  112. package/dist/node/space-warrants.js +1 -1
  113. package/dist/node/space-warrants.js.map +1 -1
  114. package/dist/node/space-writing.d.ts.map +1 -1
  115. package/dist/node/space-writing.js +21 -32
  116. package/dist/node/space-writing.js.map +1 -1
  117. package/dist/node/stores.d.ts +9 -57
  118. package/dist/node/stores.d.ts.map +1 -1
  119. package/dist/node/stores.js +1 -72
  120. package/dist/node/stores.js.map +1 -1
  121. package/dist/node/types.d.ts +19 -8
  122. package/dist/node/types.d.ts.map +1 -1
  123. package/dist/node/writer-keys.d.ts +15 -14
  124. package/dist/node/writer-keys.d.ts.map +1 -1
  125. package/dist/node/writer-keys.js +3 -115
  126. package/dist/node/writer-keys.js.map +1 -1
  127. package/dist/privacy/direct.d.ts +0 -7
  128. package/dist/privacy/direct.d.ts.map +1 -1
  129. package/dist/privacy/direct.js +2 -2
  130. package/dist/privacy/direct.js.map +1 -1
  131. package/dist/query/filter.d.ts +0 -2
  132. package/dist/query/filter.d.ts.map +1 -1
  133. package/dist/query/filter.js +1 -1
  134. package/dist/query/filter.js.map +1 -1
  135. package/dist/query/types.d.ts +2 -6
  136. package/dist/query/types.d.ts.map +1 -1
  137. package/dist/query/types.js.map +1 -1
  138. package/dist/records/key.d.ts +18 -19
  139. package/dist/records/key.d.ts.map +1 -1
  140. package/dist/records/key.js +55 -43
  141. package/dist/records/key.js.map +1 -1
  142. package/dist/records/links.js +1 -1
  143. package/dist/records/rules.d.ts +1 -1
  144. package/dist/records/rules.d.ts.map +1 -1
  145. package/dist/records/rules.js +6 -4
  146. package/dist/records/rules.js.map +1 -1
  147. package/dist/schemas/direct.d.ts +70 -0
  148. package/dist/schemas/direct.d.ts.map +1 -0
  149. package/dist/schemas/direct.js +39 -0
  150. package/dist/schemas/direct.js.map +1 -0
  151. package/dist/schemas/index.d.ts +10 -73
  152. package/dist/schemas/index.d.ts.map +1 -1
  153. package/dist/schemas/index.js +8 -66
  154. package/dist/schemas/index.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 +29 -0
  171. package/dist/storage/body-cache.d.ts.map +1 -0
  172. package/dist/storage/body-cache.js +64 -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/mirror.d.ts.map +1 -1
  179. package/dist/storage/mirror.js +35 -16
  180. package/dist/storage/mirror.js.map +1 -1
  181. package/dist/storage/segment.d.ts +6 -2
  182. package/dist/storage/segment.d.ts.map +1 -1
  183. package/dist/storage/segment.js +8 -4
  184. package/dist/storage/segment.js.map +1 -1
  185. package/dist/storage/shared-store.d.ts +32 -0
  186. package/dist/storage/shared-store.d.ts.map +1 -0
  187. package/dist/storage/{folder-reconcile.js → shared-store.js} +15 -15
  188. package/dist/storage/shared-store.js.map +1 -0
  189. package/dist/storage/storage-provider.d.ts +19 -9
  190. package/dist/storage/storage-provider.d.ts.map +1 -1
  191. package/dist/storage/storage-provider.js +155 -62
  192. package/dist/storage/storage-provider.js.map +1 -1
  193. package/dist/sync/sync-engine.d.ts +17 -4
  194. package/dist/sync/sync-engine.d.ts.map +1 -1
  195. package/dist/sync/sync-engine.js +298 -84
  196. package/dist/sync/sync-engine.js.map +1 -1
  197. package/dist/sync/sync-messages.d.ts +5 -1
  198. package/dist/sync/sync-messages.d.ts.map +1 -1
  199. package/dist/sync/sync-messages.js +1 -1
  200. package/dist/sync/sync-messages.js.map +1 -1
  201. package/dist/types.d.ts +19 -7
  202. package/dist/types.d.ts.map +1 -1
  203. package/dist/types.js +4 -1
  204. package/dist/types.js.map +1 -1
  205. package/dist/utils/index.d.ts +5 -5
  206. package/dist/utils/index.d.ts.map +1 -1
  207. package/dist/utils/index.js +5 -5
  208. package/dist/utils/index.js.map +1 -1
  209. package/dist/utils/step.d.ts +8 -0
  210. package/dist/utils/step.d.ts.map +1 -0
  211. package/dist/utils/step.js +15 -0
  212. package/dist/utils/step.js.map +1 -0
  213. package/docs/README.md +4 -3
  214. package/docs/actions.md +41 -2
  215. package/docs/agents.md +13 -10
  216. package/docs/automations.md +16 -48
  217. package/docs/blueprints-and-guides.md +2 -2
  218. package/docs/bots.md +3 -3
  219. package/docs/building-an-app.md +2 -2
  220. package/docs/collections.md +2 -4
  221. package/docs/computed.md +1 -2
  222. package/docs/node.md +108 -40
  223. package/docs/proposing-collections.md +3 -3
  224. package/docs/query-format.md +6 -5
  225. package/docs/records-and-queries.md +12 -13
  226. package/docs/sign-in.md +16 -16
  227. package/docs/spaces.md +0 -5
  228. package/docs/standard-library.md +6 -8
  229. package/docs/storage.md +114 -22
  230. package/docs/usernames.md +1 -1
  231. package/package.json +15 -25
  232. package/dist/identity/account-store.d.ts +0 -83
  233. package/dist/identity/account-store.d.ts.map +0 -1
  234. package/dist/identity/account-store.js +0 -234
  235. package/dist/identity/account-store.js.map +0 -1
  236. package/dist/identity/device-key.d.ts +0 -26
  237. package/dist/identity/device-key.d.ts.map +0 -1
  238. package/dist/identity/device-key.js +0 -48
  239. package/dist/identity/device-key.js.map +0 -1
  240. package/dist/identity/idb.d.ts +0 -19
  241. package/dist/identity/idb.d.ts.map +0 -1
  242. package/dist/identity/idb.js +0 -56
  243. package/dist/identity/idb.js.map +0 -1
  244. package/dist/node/actions.d.ts +0 -85
  245. package/dist/node/actions.d.ts.map +0 -1
  246. package/dist/node/actions.js +0 -921
  247. package/dist/node/actions.js.map +0 -1
  248. package/dist/node/host.d.ts +0 -187
  249. package/dist/node/host.d.ts.map +0 -1
  250. package/dist/node/host.js +0 -818
  251. package/dist/node/host.js.map +0 -1
  252. package/dist/node/usage.d.ts +0 -32
  253. package/dist/node/usage.d.ts.map +0 -1
  254. package/dist/node/usage.js +0 -217
  255. package/dist/node/usage.js.map +0 -1
  256. package/dist/node/watch-notifications.d.ts +0 -25
  257. package/dist/node/watch-notifications.d.ts.map +0 -1
  258. package/dist/node/watch-notifications.js +0 -166
  259. package/dist/node/watch-notifications.js.map +0 -1
  260. package/dist/node/worker.d.ts +0 -83
  261. package/dist/node/worker.d.ts.map +0 -1
  262. package/dist/node/worker.js +0 -305
  263. package/dist/node/worker.js.map +0 -1
  264. package/dist/node-worker.d.ts +0 -2
  265. package/dist/node-worker.d.ts.map +0 -1
  266. package/dist/node-worker.js +0 -16
  267. package/dist/node-worker.js.map +0 -1
  268. package/dist/schemas/automations.d.ts +0 -390
  269. package/dist/schemas/automations.d.ts.map +0 -1
  270. package/dist/schemas/automations.js +0 -619
  271. package/dist/schemas/automations.js.map +0 -1
  272. package/dist/schemas/blueprints.d.ts +0 -122
  273. package/dist/schemas/blueprints.d.ts.map +0 -1
  274. package/dist/schemas/blueprints.js +0 -337
  275. package/dist/schemas/blueprints.js.map +0 -1
  276. package/dist/schemas/choosing.d.ts +0 -19
  277. package/dist/schemas/choosing.d.ts.map +0 -1
  278. package/dist/schemas/choosing.js +0 -69
  279. package/dist/schemas/choosing.js.map +0 -1
  280. package/dist/schemas/connectors.d.ts +0 -202
  281. package/dist/schemas/connectors.d.ts.map +0 -1
  282. package/dist/schemas/connectors.js +0 -140
  283. package/dist/schemas/connectors.js.map +0 -1
  284. package/dist/schemas/cron.d.ts +0 -14
  285. package/dist/schemas/cron.d.ts.map +0 -1
  286. package/dist/schemas/cron.js +0 -75
  287. package/dist/schemas/cron.js.map +0 -1
  288. package/dist/schemas/geo.d.ts +0 -63
  289. package/dist/schemas/geo.d.ts.map +0 -1
  290. package/dist/schemas/geo.js +0 -131
  291. package/dist/schemas/geo.js.map +0 -1
  292. package/dist/schemas/guides.d.ts +0 -26
  293. package/dist/schemas/guides.d.ts.map +0 -1
  294. package/dist/schemas/guides.js +0 -33
  295. package/dist/schemas/guides.js.map +0 -1
  296. package/dist/schemas/library/annotations.d.ts +0 -616
  297. package/dist/schemas/library/annotations.d.ts.map +0 -1
  298. package/dist/schemas/library/annotations.js +0 -156
  299. package/dist/schemas/library/annotations.js.map +0 -1
  300. package/dist/schemas/library/collections.d.ts +0 -211
  301. package/dist/schemas/library/collections.d.ts.map +0 -1
  302. package/dist/schemas/library/collections.js +0 -57
  303. package/dist/schemas/library/collections.js.map +0 -1
  304. package/dist/schemas/library/community.d.ts +0 -1136
  305. package/dist/schemas/library/community.d.ts.map +0 -1
  306. package/dist/schemas/library/community.js +0 -315
  307. package/dist/schemas/library/community.js.map +0 -1
  308. package/dist/schemas/library/life.d.ts +0 -1440
  309. package/dist/schemas/library/life.d.ts.map +0 -1
  310. package/dist/schemas/library/life.js +0 -202
  311. package/dist/schemas/library/life.js.map +0 -1
  312. package/dist/schemas/library/media.d.ts +0 -1002
  313. package/dist/schemas/library/media.d.ts.map +0 -1
  314. package/dist/schemas/library/media.js +0 -110
  315. package/dist/schemas/library/media.js.map +0 -1
  316. package/dist/schemas/library/money.d.ts +0 -1221
  317. package/dist/schemas/library/money.d.ts.map +0 -1
  318. package/dist/schemas/library/money.js +0 -168
  319. package/dist/schemas/library/money.js.map +0 -1
  320. package/dist/schemas/library/planning.d.ts +0 -1107
  321. package/dist/schemas/library/planning.d.ts.map +0 -1
  322. package/dist/schemas/library/planning.js +0 -214
  323. package/dist/schemas/library/planning.js.map +0 -1
  324. package/dist/schemas/library/publishing.d.ts +0 -1499
  325. package/dist/schemas/library/publishing.d.ts.map +0 -1
  326. package/dist/schemas/library/publishing.js +0 -285
  327. package/dist/schemas/library/publishing.js.map +0 -1
  328. package/dist/schemas/library/social.d.ts +0 -1257
  329. package/dist/schemas/library/social.d.ts.map +0 -1
  330. package/dist/schemas/library/social.js +0 -147
  331. package/dist/schemas/library/social.js.map +0 -1
  332. package/dist/schemas/standard.d.ts +0 -21
  333. package/dist/schemas/standard.d.ts.map +0 -1
  334. package/dist/schemas/standard.js +0 -39
  335. package/dist/schemas/standard.js.map +0 -1
  336. package/dist/session/account-hint.d.ts +0 -13
  337. package/dist/session/account-hint.d.ts.map +0 -1
  338. package/dist/session/account-hint.js +0 -54
  339. package/dist/session/account-hint.js.map +0 -1
  340. package/dist/session/auth.d.ts +0 -411
  341. package/dist/session/auth.d.ts.map +0 -1
  342. package/dist/session/auth.js +0 -1529
  343. package/dist/session/auth.js.map +0 -1
  344. package/dist/session/channel-room.d.ts +0 -26
  345. package/dist/session/channel-room.d.ts.map +0 -1
  346. package/dist/session/channel-room.js +0 -56
  347. package/dist/session/channel-room.js.map +0 -1
  348. package/dist/session/connect-code.d.ts +0 -127
  349. package/dist/session/connect-code.d.ts.map +0 -1
  350. package/dist/session/connect-code.js +0 -408
  351. package/dist/session/connect-code.js.map +0 -1
  352. package/dist/session/connect.d.ts +0 -386
  353. package/dist/session/connect.d.ts.map +0 -1
  354. package/dist/session/connect.js +0 -583
  355. package/dist/session/connect.js.map +0 -1
  356. package/dist/session/connection.d.ts +0 -135
  357. package/dist/session/connection.d.ts.map +0 -1
  358. package/dist/session/connection.js +0 -215
  359. package/dist/session/connection.js.map +0 -1
  360. package/dist/session/credentials.d.ts +0 -30
  361. package/dist/session/credentials.d.ts.map +0 -1
  362. package/dist/session/credentials.js +0 -63
  363. package/dist/session/credentials.js.map +0 -1
  364. package/dist/session/hosting.d.ts.map +0 -1
  365. package/dist/session/hosting.js.map +0 -1
  366. package/dist/session/index.d.ts +0 -29
  367. package/dist/session/index.d.ts.map +0 -1
  368. package/dist/session/index.js +0 -21
  369. package/dist/session/index.js.map +0 -1
  370. package/dist/session/pairing.d.ts +0 -97
  371. package/dist/session/pairing.d.ts.map +0 -1
  372. package/dist/session/pairing.js +0 -251
  373. package/dist/session/pairing.js.map +0 -1
  374. package/dist/session/password-strength.d.ts +0 -22
  375. package/dist/session/password-strength.d.ts.map +0 -1
  376. package/dist/session/password-strength.js +0 -130
  377. package/dist/session/password-strength.js.map +0 -1
  378. package/dist/session/places.d.ts +0 -71
  379. package/dist/session/places.d.ts.map +0 -1
  380. package/dist/session/places.js +0 -130
  381. package/dist/session/places.js.map +0 -1
  382. package/dist/session/popup.d.ts +0 -13
  383. package/dist/session/popup.d.ts.map +0 -1
  384. package/dist/session/popup.js +0 -23
  385. package/dist/session/popup.js.map +0 -1
  386. package/dist/session/stay-signed-in.d.ts +0 -49
  387. package/dist/session/stay-signed-in.d.ts.map +0 -1
  388. package/dist/session/stay-signed-in.js +0 -141
  389. package/dist/session/stay-signed-in.js.map +0 -1
  390. package/dist/storage/blob/directory.d.ts +0 -14
  391. package/dist/storage/blob/directory.d.ts.map +0 -1
  392. package/dist/storage/blob/directory.js +0 -87
  393. package/dist/storage/blob/directory.js.map +0 -1
  394. package/dist/storage/blob/memory.d.ts +0 -6
  395. package/dist/storage/blob/memory.d.ts.map +0 -1
  396. package/dist/storage/blob/memory.js +0 -20
  397. package/dist/storage/blob/memory.js.map +0 -1
  398. package/dist/storage/blob/s3.d.ts +0 -16
  399. package/dist/storage/blob/s3.d.ts.map +0 -1
  400. package/dist/storage/blob/s3.js +0 -91
  401. package/dist/storage/blob/s3.js.map +0 -1
  402. package/dist/storage/directory-access.d.ts +0 -36
  403. package/dist/storage/directory-access.d.ts.map +0 -1
  404. package/dist/storage/directory-access.js +0 -89
  405. package/dist/storage/directory-access.js.map +0 -1
  406. package/dist/storage/folder-adapter.d.ts +0 -94
  407. package/dist/storage/folder-adapter.d.ts.map +0 -1
  408. package/dist/storage/folder-adapter.js +0 -215
  409. package/dist/storage/folder-adapter.js.map +0 -1
  410. package/dist/storage/folder-reconcile.d.ts +0 -33
  411. package/dist/storage/folder-reconcile.d.ts.map +0 -1
  412. package/dist/storage/folder-reconcile.js.map +0 -1
  413. package/dist/storage/index.d.ts +0 -6
  414. package/dist/storage/index.d.ts.map +0 -1
  415. package/dist/storage/index.js +0 -5
  416. package/dist/storage/index.js.map +0 -1
  417. package/dist/storage/indexeddb-adapter.d.ts +0 -8
  418. package/dist/storage/indexeddb-adapter.d.ts.map +0 -1
  419. package/dist/storage/indexeddb-adapter.js +0 -103
  420. package/dist/storage/indexeddb-adapter.js.map +0 -1
@@ -1,1499 +0,0 @@
1
- import type { BodyOf } from '../../query/types.js';
2
- /**
3
- * A chat message. The space is the room, or it links the `channel` it is in;
4
- * order is by when it was written. It can share one record — a poll to vote
5
- * on, a task — which a chat that knows the record's kind shows in place. The
6
- * text should still make sense alone ("Poll: Where to?"), for chats that don't.
7
- *
8
- * `mentions` names who it calls on ("@Sam"), and `replyingTo` whose message
9
- * it answers. With its channel they are its topics, so "mentions me", "replies
10
- * to me" and "in #design" can be asked of a keeper that can't read it.
11
- */
12
- export declare const message: {
13
- readonly name: "std.message";
14
- readonly title: "Message";
15
- readonly description: "A chat message, in order with the rest, optionally in a std.channel, replying to another or sharing a record. Posts to a feed are std.post; remarks on a record are std.comment.";
16
- readonly schema: {
17
- readonly type: "object";
18
- readonly properties: {
19
- readonly text: {
20
- readonly type: "string";
21
- readonly minLength: 1;
22
- readonly maxLength: 10000;
23
- };
24
- readonly mentions: {
25
- type: 'array';
26
- items: {
27
- type: 'string';
28
- minLength?: number | undefined;
29
- maxLength: number;
30
- } & {
31
- readonly 'x-kind': "did";
32
- };
33
- maxItems: number;
34
- };
35
- readonly replyingTo: {
36
- type: 'string';
37
- minLength?: number | undefined;
38
- maxLength: number;
39
- } & {
40
- readonly 'x-kind': "did";
41
- };
42
- };
43
- readonly required: readonly ["text"];
44
- };
45
- readonly topics: readonly ["link:in", "mentions", "replyingTo"];
46
- readonly links: {
47
- readonly in: import("../../records/links.js").LinkDeclaration;
48
- readonly replyTo: {
49
- readonly to: readonly ["std.message"];
50
- readonly cardinality: "one";
51
- readonly description: "The message this replies to";
52
- };
53
- readonly shares: {
54
- readonly to: "*";
55
- readonly cardinality: "one";
56
- readonly description: "A record this message shares, like a poll";
57
- };
58
- };
59
- } & import("../../index.js").Typed<{
60
- readonly text: string;
61
- readonly mentions?: readonly string[] | undefined;
62
- readonly replyingTo?: string | undefined;
63
- }>;
64
- export type Message = BodyOf<typeof message>;
65
- /**
66
- * A call worth remembering, in the space it happened in. Calls themselves are
67
- * live and kept nowhere (`minca-protocol/calls`); this is only the history —
68
- * a ring nobody answered, or a call that ended and who was in it.
69
- */
70
- export declare const call: {
71
- readonly name: "std.call";
72
- readonly title: "Call";
73
- readonly description: "A missed call, or one that ended and who was in it.";
74
- readonly schema: {
75
- readonly type: "object";
76
- readonly properties: {
77
- readonly status: {
78
- readonly enum: readonly ["missed", "ended"];
79
- };
80
- readonly to: {
81
- readonly type: "string";
82
- readonly maxLength: 256;
83
- readonly description: "Who was rung, for a missed call";
84
- };
85
- readonly startedAt: {
86
- readonly type: "string";
87
- readonly maxLength: 64;
88
- };
89
- readonly endedAt: {
90
- readonly type: "string";
91
- readonly maxLength: 64;
92
- };
93
- readonly people: {
94
- readonly type: "array";
95
- readonly items: {
96
- readonly type: "string";
97
- readonly maxLength: 256;
98
- };
99
- readonly maxItems: 64;
100
- readonly description: "Everyone who was in it";
101
- };
102
- };
103
- readonly required: readonly ["status", "startedAt"];
104
- };
105
- readonly topics: readonly ["to", "people"];
106
- } & import("../../index.js").Typed<{
107
- readonly status: "ended" | "missed";
108
- readonly to?: string | undefined;
109
- readonly startedAt: string;
110
- readonly endedAt?: string | undefined;
111
- readonly people?: readonly string[] | undefined;
112
- }>;
113
- export type Call = BodyOf<typeof call>;
114
- /** A channel in a space with more than one conversation. Messages link it as their `channel`. */
115
- export declare const channel: {
116
- readonly name: "std.channel";
117
- readonly title: "Channel";
118
- readonly description: "A named conversation within a space.";
119
- readonly schema: {
120
- readonly type: "object";
121
- readonly properties: {
122
- name: {
123
- type: 'string';
124
- minLength?: number | undefined;
125
- maxLength: number;
126
- };
127
- topic: {
128
- type: 'string';
129
- minLength?: number | undefined;
130
- maxLength: number;
131
- };
132
- position: {
133
- type: 'string';
134
- minLength?: number | undefined;
135
- maxLength: number;
136
- } & {
137
- readonly 'x-kind': "position";
138
- };
139
- };
140
- readonly required: readonly ["name"];
141
- };
142
- } & import("../../index.js").Typed<{
143
- readonly name: string;
144
- readonly topic?: string | undefined;
145
- readonly position?: string | undefined;
146
- }>;
147
- export type Channel = BodyOf<typeof channel>;
148
- /**
149
- * A direct message between some members of a space: its text is sealed so
150
- * only the people in `to` and whoever wrote it can read it, with each one's
151
- * member key (`docs/direct-messages.md`). Other members see who wrote to whom and
152
- * when, not what. `to` is a topic, so "sent to me" can be asked of a keeper
153
- * that can't read it. Write and read it through `node.direct`.
154
- */
155
- export declare const direct: {
156
- readonly name: "std.direct";
157
- readonly title: "Direct message";
158
- readonly description: "A message only the people it is sent to can read.";
159
- readonly schema: {
160
- readonly type: "object";
161
- readonly properties: {
162
- readonly to: {
163
- readonly type: "array";
164
- readonly items: {
165
- type: 'string';
166
- minLength?: number | undefined;
167
- maxLength: number;
168
- } & {
169
- readonly 'x-kind': "did";
170
- };
171
- readonly minItems: 1;
172
- readonly maxItems: 16;
173
- readonly description: "Who it is for, not whoever wrote it";
174
- };
175
- readonly data: {
176
- type: 'string';
177
- minLength?: number | undefined;
178
- maxLength: number;
179
- };
180
- readonly boxes: {
181
- readonly type: "array";
182
- readonly maxItems: 17;
183
- readonly description: "The message key, sealed to each reader: everyone in `to`, and whoever wrote it";
184
- readonly items: {
185
- readonly type: "object";
186
- readonly properties: {
187
- to: {
188
- type: 'string';
189
- minLength?: number | undefined;
190
- maxLength: number;
191
- } & {
192
- readonly 'x-kind': "did";
193
- };
194
- sealed: {
195
- type: 'string';
196
- minLength?: number | undefined;
197
- maxLength: number;
198
- };
199
- };
200
- readonly required: readonly ["to", "sealed"];
201
- };
202
- };
203
- };
204
- readonly required: readonly ["to", "data", "boxes"];
205
- };
206
- readonly topics: readonly ["to"];
207
- } & import("../../index.js").Typed<{
208
- readonly to: readonly string[];
209
- readonly data: string;
210
- readonly boxes: readonly {
211
- readonly to: string;
212
- readonly sealed: string;
213
- }[];
214
- }>;
215
- export type Direct = BodyOf<typeof direct>;
216
- /**
217
- * A post to a feed: short text, pictures, a reply or a quote. `root` is the
218
- * first post of the thread, so a reader gathers a thread with one query.
219
- * `mentions` and `replyingTo` are its topics, as on a `std.message`.
220
- */
221
- export declare const post: {
222
- readonly name: "std.post";
223
- readonly title: "Post";
224
- readonly description: "A post to a feed, optionally replying to or quoting another. Chat in order is std.message.";
225
- readonly schema: {
226
- readonly type: "object";
227
- readonly properties: {
228
- readonly text: {
229
- type: 'string';
230
- minLength?: number | undefined;
231
- maxLength: number;
232
- };
233
- readonly images: {
234
- readonly type: "array";
235
- readonly maxItems: 8;
236
- readonly items: {
237
- type: 'object';
238
- properties: {
239
- blob: {
240
- type: 'object';
241
- properties: {
242
- hash: {
243
- type: 'string';
244
- minLength: number;
245
- maxLength: number;
246
- };
247
- size: {
248
- type: 'integer';
249
- minimum: number;
250
- };
251
- mime: {
252
- type: 'string';
253
- minLength?: number | undefined;
254
- maxLength: number;
255
- };
256
- name: {
257
- type: 'string';
258
- minLength?: number | undefined;
259
- maxLength: number;
260
- };
261
- key: {
262
- type: 'string';
263
- minLength: number;
264
- maxLength: number;
265
- };
266
- salt: {
267
- type: 'string';
268
- minLength: number;
269
- maxLength: number;
270
- };
271
- };
272
- required: readonly ["hash", "size", "mime"];
273
- } & {
274
- readonly 'x-kind': "file";
275
- };
276
- alt: {
277
- type: 'string';
278
- minLength?: number | undefined;
279
- maxLength: number;
280
- };
281
- };
282
- required: readonly ["blob"];
283
- } & {
284
- readonly 'x-kind': "image";
285
- };
286
- };
287
- readonly langs: {
288
- readonly type: "array";
289
- readonly maxItems: 3;
290
- readonly items: {
291
- type: 'string';
292
- minLength?: number | undefined;
293
- maxLength: number;
294
- };
295
- };
296
- readonly mentions: {
297
- type: 'array';
298
- items: {
299
- type: 'string';
300
- minLength?: number | undefined;
301
- maxLength: number;
302
- } & {
303
- readonly 'x-kind': "did";
304
- };
305
- maxItems: number;
306
- };
307
- readonly replyingTo: {
308
- type: 'string';
309
- minLength?: number | undefined;
310
- maxLength: number;
311
- } & {
312
- readonly 'x-kind': "did";
313
- };
314
- };
315
- };
316
- readonly topics: readonly ["mentions", "replyingTo"];
317
- readonly links: {
318
- replyTo: import("../../records/links.js").LinkDeclaration;
319
- root: import("../../records/links.js").LinkDeclaration;
320
- shares: import("../../records/links.js").LinkDeclaration;
321
- };
322
- } & import("../../index.js").Typed<{
323
- readonly text?: string | undefined;
324
- readonly images?: readonly {
325
- readonly blob: {
326
- readonly hash: string;
327
- readonly size: number;
328
- readonly mime: string;
329
- readonly name?: string | undefined;
330
- readonly key?: string | undefined;
331
- readonly salt?: string | undefined;
332
- };
333
- readonly alt?: string | undefined;
334
- }[] | undefined;
335
- readonly langs?: readonly string[] | undefined;
336
- readonly mentions?: readonly string[] | undefined;
337
- readonly replyingTo?: string | undefined;
338
- }>;
339
- export type Post = BodyOf<typeof post>;
340
- /** Passing a post on as it is: one per person per post. */
341
- export declare const repost: {
342
- readonly name: "std.repost";
343
- readonly title: "Repost";
344
- readonly description: "Passing a record on as it is: one per person per record.";
345
- readonly schema: {
346
- readonly type: "object";
347
- readonly properties: {
348
- respondingTo: {
349
- type: 'string';
350
- minLength?: number | undefined;
351
- maxLength: number;
352
- } & {
353
- readonly 'x-kind': "did";
354
- };
355
- };
356
- };
357
- readonly links: {
358
- about: import("../../records/links.js").LinkDeclaration;
359
- };
360
- readonly rules: {
361
- readonly onePer: readonly ["@author", "link:about"];
362
- };
363
- readonly topics: readonly ["respondingTo"];
364
- } & import("../../index.js").Typed<{
365
- readonly respondingTo?: string | undefined;
366
- }>;
367
- export type Repost = BodyOf<typeof repost>;
368
- /** Long-form writing, optionally in a publication. `draft` keeps it unlisted. */
369
- export declare const article: {
370
- readonly name: "std.article";
371
- readonly title: "Article";
372
- readonly description: "Long-form writing, in CommonMark.";
373
- readonly schema: {
374
- readonly type: "object";
375
- readonly properties: {
376
- readonly mentions: {
377
- type: 'array';
378
- items: {
379
- type: 'string';
380
- minLength?: number | undefined;
381
- maxLength: number;
382
- } & {
383
- readonly 'x-kind': "did";
384
- };
385
- maxItems: number;
386
- };
387
- readonly title: {
388
- type: 'string';
389
- minLength?: number | undefined;
390
- maxLength: number;
391
- };
392
- readonly summary: {
393
- type: 'string';
394
- minLength?: number | undefined;
395
- maxLength: number;
396
- };
397
- readonly content: {
398
- type: 'string';
399
- minLength?: number | undefined;
400
- maxLength: number;
401
- };
402
- readonly cover: {
403
- type: 'object';
404
- properties: {
405
- hash: {
406
- type: 'string';
407
- minLength: number;
408
- maxLength: number;
409
- };
410
- size: {
411
- type: 'integer';
412
- minimum: number;
413
- };
414
- mime: {
415
- type: 'string';
416
- minLength?: number | undefined;
417
- maxLength: number;
418
- };
419
- name: {
420
- type: 'string';
421
- minLength?: number | undefined;
422
- maxLength: number;
423
- };
424
- key: {
425
- type: 'string';
426
- minLength: number;
427
- maxLength: number;
428
- };
429
- salt: {
430
- type: 'string';
431
- minLength: number;
432
- maxLength: number;
433
- };
434
- };
435
- required: readonly ["hash", "size", "mime"];
436
- } & {
437
- readonly 'x-kind': "file";
438
- };
439
- readonly slug: {
440
- type: 'string';
441
- minLength?: number | undefined;
442
- maxLength: number;
443
- };
444
- readonly publishedAt: {
445
- type: 'string';
446
- minLength?: number | undefined;
447
- maxLength: number;
448
- } & {
449
- readonly 'x-kind': "when";
450
- };
451
- readonly draft: {
452
- readonly type: "boolean";
453
- };
454
- };
455
- readonly required: readonly ["title"];
456
- };
457
- readonly links: {
458
- in: import("../../records/links.js").LinkDeclaration;
459
- };
460
- readonly topics: readonly ["mentions"];
461
- } & import("../../index.js").Typed<{
462
- readonly mentions?: readonly string[] | undefined;
463
- readonly title: string;
464
- readonly summary?: string | undefined;
465
- readonly content?: string | undefined;
466
- readonly cover?: {
467
- readonly hash: string;
468
- readonly size: number;
469
- readonly mime: string;
470
- readonly name?: string | undefined;
471
- readonly key?: string | undefined;
472
- readonly salt?: string | undefined;
473
- } | undefined;
474
- readonly slug?: string | undefined;
475
- readonly publishedAt?: string | undefined;
476
- readonly draft?: boolean | undefined;
477
- }>;
478
- export type Article = BodyOf<typeof article>;
479
- /** A blog, a newsletter: what articles are published in. */
480
- export declare const publication: {
481
- readonly name: "std.publication";
482
- readonly title: "Publication";
483
- readonly description: "A blog or newsletter that articles are published in.";
484
- readonly schema: {
485
- readonly type: "object";
486
- readonly properties: {
487
- title: {
488
- type: 'string';
489
- minLength?: number | undefined;
490
- maxLength: number;
491
- };
492
- description: {
493
- type: 'string';
494
- minLength?: number | undefined;
495
- maxLength: number;
496
- };
497
- icon: {
498
- type: 'object';
499
- properties: {
500
- hash: {
501
- type: 'string';
502
- minLength: number;
503
- maxLength: number;
504
- };
505
- size: {
506
- type: 'integer';
507
- minimum: number;
508
- };
509
- mime: {
510
- type: 'string';
511
- minLength?: number | undefined;
512
- maxLength: number;
513
- };
514
- name: {
515
- type: 'string';
516
- minLength?: number | undefined;
517
- maxLength: number;
518
- };
519
- key: {
520
- type: 'string';
521
- minLength: number;
522
- maxLength: number;
523
- };
524
- salt: {
525
- type: 'string';
526
- minLength: number;
527
- maxLength: number;
528
- };
529
- };
530
- required: readonly ["hash", "size", "mime"];
531
- } & {
532
- readonly 'x-kind': "file";
533
- };
534
- };
535
- readonly required: readonly ["title"];
536
- };
537
- } & import("../../index.js").Typed<{
538
- readonly title: string;
539
- readonly description?: string | undefined;
540
- readonly icon?: {
541
- readonly hash: string;
542
- readonly size: number;
543
- readonly mime: string;
544
- readonly name?: string | undefined;
545
- readonly key?: string | undefined;
546
- readonly salt?: string | undefined;
547
- } | undefined;
548
- }>;
549
- export type Publication = BodyOf<typeof publication>;
550
- /** A document: its title here, its content in `std.doc-block`s linked `in` it. */
551
- export declare const doc: {
552
- readonly name: "std.doc";
553
- readonly title: "Document";
554
- readonly description: "A document people write together, as std.doc-blocks in it. An uploaded file, like a PDF or .docx, is a std.file.";
555
- readonly schema: {
556
- readonly type: "object";
557
- readonly properties: {
558
- title: {
559
- type: 'string';
560
- minLength?: number | undefined;
561
- maxLength: number;
562
- };
563
- };
564
- readonly required: readonly ["title"];
565
- };
566
- } & import("../../index.js").Typed<{
567
- readonly title: string;
568
- }>;
569
- export type Doc = BodyOf<typeof doc>;
570
- /**
571
- * One block of a document, in order by `position`. A nested list item or a
572
- * toggle's contents has a `parent` block.
573
- */
574
- export declare const docBlock: {
575
- readonly name: "std.doc-block";
576
- readonly title: "Block";
577
- readonly description: "One block of a document: a paragraph, heading, list item, image…";
578
- readonly schema: {
579
- readonly type: "object";
580
- readonly properties: {
581
- readonly mentions: {
582
- type: 'array';
583
- items: {
584
- type: 'string';
585
- minLength?: number | undefined;
586
- maxLength: number;
587
- } & {
588
- readonly 'x-kind': "did";
589
- };
590
- maxItems: number;
591
- };
592
- readonly type: {
593
- enum: ("bullet" | "code" | "divider" | "heading1" | "heading2" | "heading3" | "image" | "numbered" | "paragraph" | "quote" | "todo")[];
594
- };
595
- readonly text: {
596
- type: 'string';
597
- minLength?: number | undefined;
598
- maxLength: number;
599
- };
600
- readonly checked: {
601
- readonly type: "boolean";
602
- readonly description: "For a todo";
603
- };
604
- readonly language: {
605
- type: 'string';
606
- minLength?: number | undefined;
607
- maxLength: number;
608
- };
609
- readonly image: {
610
- type: 'object';
611
- properties: {
612
- blob: {
613
- type: 'object';
614
- properties: {
615
- hash: {
616
- type: 'string';
617
- minLength: number;
618
- maxLength: number;
619
- };
620
- size: {
621
- type: 'integer';
622
- minimum: number;
623
- };
624
- mime: {
625
- type: 'string';
626
- minLength?: number | undefined;
627
- maxLength: number;
628
- };
629
- name: {
630
- type: 'string';
631
- minLength?: number | undefined;
632
- maxLength: number;
633
- };
634
- key: {
635
- type: 'string';
636
- minLength: number;
637
- maxLength: number;
638
- };
639
- salt: {
640
- type: 'string';
641
- minLength: number;
642
- maxLength: number;
643
- };
644
- };
645
- required: readonly ["hash", "size", "mime"];
646
- } & {
647
- readonly 'x-kind': "file";
648
- };
649
- alt: {
650
- type: 'string';
651
- minLength?: number | undefined;
652
- maxLength: number;
653
- };
654
- };
655
- required: readonly ["blob"];
656
- } & {
657
- readonly 'x-kind': "image";
658
- };
659
- readonly position: {
660
- type: 'string';
661
- minLength?: number | undefined;
662
- maxLength: number;
663
- } & {
664
- readonly 'x-kind': "position";
665
- };
666
- };
667
- readonly required: readonly ["type"];
668
- };
669
- readonly links: {
670
- in: import("../../records/links.js").LinkDeclaration;
671
- parent: import("../../records/links.js").LinkDeclaration;
672
- };
673
- readonly topics: readonly ["mentions"];
674
- } & import("../../index.js").Typed<{
675
- readonly mentions?: readonly string[] | undefined;
676
- readonly type: "bullet" | "code" | "divider" | "heading1" | "heading2" | "heading3" | "image" | "numbered" | "paragraph" | "quote" | "todo";
677
- readonly text?: string | undefined;
678
- readonly checked?: boolean | undefined;
679
- readonly language?: string | undefined;
680
- readonly image?: {
681
- readonly blob: {
682
- readonly hash: string;
683
- readonly size: number;
684
- readonly mime: string;
685
- readonly name?: string | undefined;
686
- readonly key?: string | undefined;
687
- readonly salt?: string | undefined;
688
- };
689
- readonly alt?: string | undefined;
690
- } | undefined;
691
- readonly position?: string | undefined;
692
- }>;
693
- export type DocBlock = BodyOf<typeof docBlock>;
694
- /**
695
- * A wiki page: one per slug, anyone may change it, and every version is kept
696
- * so its history can be read and restored.
697
- */
698
- export declare const wikiPage: {
699
- readonly name: "std.wiki-page";
700
- readonly title: "Wiki page";
701
- readonly description: "A page anyone can edit, one per name, keeping every version. For a note of one’s own, use std.note.";
702
- readonly schema: {
703
- readonly type: "object";
704
- readonly properties: {
705
- slug: {
706
- type: 'string';
707
- minLength?: number | undefined;
708
- maxLength: number;
709
- };
710
- title: {
711
- type: 'string';
712
- minLength?: number | undefined;
713
- maxLength: number;
714
- };
715
- content: {
716
- type: 'string';
717
- minLength?: number | undefined;
718
- maxLength: number;
719
- };
720
- };
721
- readonly required: readonly ["slug", "title"];
722
- };
723
- readonly history: "all";
724
- readonly rules: {
725
- readonly onePer: readonly ["slug"];
726
- };
727
- } & import("../../index.js").Typed<{
728
- readonly slug: string;
729
- readonly title: string;
730
- readonly content?: string | undefined;
731
- }>;
732
- export type WikiPage = BodyOf<typeof wikiPage>;
733
- /** A note, as a notes app keeps them. */
734
- export declare const note: {
735
- readonly name: "std.note";
736
- readonly title: "Note";
737
- readonly description: "A note: a title and some text. A page anyone edits under one name is std.wiki-page; a document several people write at once is std.doc.";
738
- readonly schema: {
739
- readonly type: "object";
740
- readonly properties: {
741
- readonly mentions: {
742
- type: 'array';
743
- items: {
744
- type: 'string';
745
- minLength?: number | undefined;
746
- maxLength: number;
747
- } & {
748
- readonly 'x-kind': "did";
749
- };
750
- maxItems: number;
751
- };
752
- readonly title: {
753
- type: 'string';
754
- minLength?: number | undefined;
755
- maxLength: number;
756
- };
757
- readonly content: {
758
- type: 'string';
759
- minLength?: number | undefined;
760
- maxLength: number;
761
- };
762
- readonly pinned: {
763
- readonly type: "boolean";
764
- };
765
- readonly color: {
766
- type: 'string';
767
- minLength?: number | undefined;
768
- maxLength: number;
769
- };
770
- };
771
- };
772
- readonly topics: readonly ["mentions"];
773
- } & import("../../index.js").Typed<{
774
- readonly mentions?: readonly string[] | undefined;
775
- readonly title?: string | undefined;
776
- readonly content?: string | undefined;
777
- readonly pinned?: boolean | undefined;
778
- readonly color?: string | undefined;
779
- }>;
780
- export type Note = BodyOf<typeof note>;
781
- /** This file's part of `standardGroups` */
782
- export declare const publishingGroups: {
783
- 'Messaging and publishing': (({
784
- readonly name: "std.message";
785
- readonly title: "Message";
786
- readonly description: "A chat message, in order with the rest, optionally in a std.channel, replying to another or sharing a record. Posts to a feed are std.post; remarks on a record are std.comment.";
787
- readonly schema: {
788
- readonly type: "object";
789
- readonly properties: {
790
- readonly text: {
791
- readonly type: "string";
792
- readonly minLength: 1;
793
- readonly maxLength: 10000;
794
- };
795
- readonly mentions: {
796
- type: 'array';
797
- items: {
798
- type: 'string';
799
- minLength?: number | undefined;
800
- maxLength: number;
801
- } & {
802
- readonly 'x-kind': "did";
803
- };
804
- maxItems: number;
805
- };
806
- readonly replyingTo: {
807
- type: 'string';
808
- minLength?: number | undefined;
809
- maxLength: number;
810
- } & {
811
- readonly 'x-kind': "did";
812
- };
813
- };
814
- readonly required: readonly ["text"];
815
- };
816
- readonly topics: readonly ["link:in", "mentions", "replyingTo"];
817
- readonly links: {
818
- readonly in: import("../../records/links.js").LinkDeclaration;
819
- readonly replyTo: {
820
- readonly to: readonly ["std.message"];
821
- readonly cardinality: "one";
822
- readonly description: "The message this replies to";
823
- };
824
- readonly shares: {
825
- readonly to: "*";
826
- readonly cardinality: "one";
827
- readonly description: "A record this message shares, like a poll";
828
- };
829
- };
830
- } & import("../../index.js").Typed<{
831
- readonly text: string;
832
- readonly mentions?: readonly string[] | undefined;
833
- readonly replyingTo?: string | undefined;
834
- }>) | ({
835
- readonly name: "std.call";
836
- readonly title: "Call";
837
- readonly description: "A missed call, or one that ended and who was in it.";
838
- readonly schema: {
839
- readonly type: "object";
840
- readonly properties: {
841
- readonly status: {
842
- readonly enum: readonly ["missed", "ended"];
843
- };
844
- readonly to: {
845
- readonly type: "string";
846
- readonly maxLength: 256;
847
- readonly description: "Who was rung, for a missed call";
848
- };
849
- readonly startedAt: {
850
- readonly type: "string";
851
- readonly maxLength: 64;
852
- };
853
- readonly endedAt: {
854
- readonly type: "string";
855
- readonly maxLength: 64;
856
- };
857
- readonly people: {
858
- readonly type: "array";
859
- readonly items: {
860
- readonly type: "string";
861
- readonly maxLength: 256;
862
- };
863
- readonly maxItems: 64;
864
- readonly description: "Everyone who was in it";
865
- };
866
- };
867
- readonly required: readonly ["status", "startedAt"];
868
- };
869
- readonly topics: readonly ["to", "people"];
870
- } & import("../../index.js").Typed<{
871
- readonly status: "ended" | "missed";
872
- readonly to?: string | undefined;
873
- readonly startedAt: string;
874
- readonly endedAt?: string | undefined;
875
- readonly people?: readonly string[] | undefined;
876
- }>) | ({
877
- readonly name: "std.channel";
878
- readonly title: "Channel";
879
- readonly description: "A named conversation within a space.";
880
- readonly schema: {
881
- readonly type: "object";
882
- readonly properties: {
883
- name: {
884
- type: 'string';
885
- minLength?: number | undefined;
886
- maxLength: number;
887
- };
888
- topic: {
889
- type: 'string';
890
- minLength?: number | undefined;
891
- maxLength: number;
892
- };
893
- position: {
894
- type: 'string';
895
- minLength?: number | undefined;
896
- maxLength: number;
897
- } & {
898
- readonly 'x-kind': "position";
899
- };
900
- };
901
- readonly required: readonly ["name"];
902
- };
903
- } & import("../../index.js").Typed<{
904
- readonly name: string;
905
- readonly topic?: string | undefined;
906
- readonly position?: string | undefined;
907
- }>) | ({
908
- readonly name: "std.direct";
909
- readonly title: "Direct message";
910
- readonly description: "A message only the people it is sent to can read.";
911
- readonly schema: {
912
- readonly type: "object";
913
- readonly properties: {
914
- readonly to: {
915
- readonly type: "array";
916
- readonly items: {
917
- type: 'string';
918
- minLength?: number | undefined;
919
- maxLength: number;
920
- } & {
921
- readonly 'x-kind': "did";
922
- };
923
- readonly minItems: 1;
924
- readonly maxItems: 16;
925
- readonly description: "Who it is for, not whoever wrote it";
926
- };
927
- readonly data: {
928
- type: 'string';
929
- minLength?: number | undefined;
930
- maxLength: number;
931
- };
932
- readonly boxes: {
933
- readonly type: "array";
934
- readonly maxItems: 17;
935
- readonly description: "The message key, sealed to each reader: everyone in `to`, and whoever wrote it";
936
- readonly items: {
937
- readonly type: "object";
938
- readonly properties: {
939
- to: {
940
- type: 'string';
941
- minLength?: number | undefined;
942
- maxLength: number;
943
- } & {
944
- readonly 'x-kind': "did";
945
- };
946
- sealed: {
947
- type: 'string';
948
- minLength?: number | undefined;
949
- maxLength: number;
950
- };
951
- };
952
- readonly required: readonly ["to", "sealed"];
953
- };
954
- };
955
- };
956
- readonly required: readonly ["to", "data", "boxes"];
957
- };
958
- readonly topics: readonly ["to"];
959
- } & import("../../index.js").Typed<{
960
- readonly to: readonly string[];
961
- readonly data: string;
962
- readonly boxes: readonly {
963
- readonly to: string;
964
- readonly sealed: string;
965
- }[];
966
- }>) | ({
967
- readonly name: "std.post";
968
- readonly title: "Post";
969
- readonly description: "A post to a feed, optionally replying to or quoting another. Chat in order is std.message.";
970
- readonly schema: {
971
- readonly type: "object";
972
- readonly properties: {
973
- readonly text: {
974
- type: 'string';
975
- minLength?: number | undefined;
976
- maxLength: number;
977
- };
978
- readonly images: {
979
- readonly type: "array";
980
- readonly maxItems: 8;
981
- readonly items: {
982
- type: 'object';
983
- properties: {
984
- blob: {
985
- type: 'object';
986
- properties: {
987
- hash: {
988
- type: 'string';
989
- minLength: number;
990
- maxLength: number;
991
- };
992
- size: {
993
- type: 'integer';
994
- minimum: number;
995
- };
996
- mime: {
997
- type: 'string';
998
- minLength?: number | undefined;
999
- maxLength: number;
1000
- };
1001
- name: {
1002
- type: 'string';
1003
- minLength?: number | undefined;
1004
- maxLength: number;
1005
- };
1006
- key: {
1007
- type: 'string';
1008
- minLength: number;
1009
- maxLength: number;
1010
- };
1011
- salt: {
1012
- type: 'string';
1013
- minLength: number;
1014
- maxLength: number;
1015
- };
1016
- };
1017
- required: readonly ["hash", "size", "mime"];
1018
- } & {
1019
- readonly 'x-kind': "file";
1020
- };
1021
- alt: {
1022
- type: 'string';
1023
- minLength?: number | undefined;
1024
- maxLength: number;
1025
- };
1026
- };
1027
- required: readonly ["blob"];
1028
- } & {
1029
- readonly 'x-kind': "image";
1030
- };
1031
- };
1032
- readonly langs: {
1033
- readonly type: "array";
1034
- readonly maxItems: 3;
1035
- readonly items: {
1036
- type: 'string';
1037
- minLength?: number | undefined;
1038
- maxLength: number;
1039
- };
1040
- };
1041
- readonly mentions: {
1042
- type: 'array';
1043
- items: {
1044
- type: 'string';
1045
- minLength?: number | undefined;
1046
- maxLength: number;
1047
- } & {
1048
- readonly 'x-kind': "did";
1049
- };
1050
- maxItems: number;
1051
- };
1052
- readonly replyingTo: {
1053
- type: 'string';
1054
- minLength?: number | undefined;
1055
- maxLength: number;
1056
- } & {
1057
- readonly 'x-kind': "did";
1058
- };
1059
- };
1060
- };
1061
- readonly topics: readonly ["mentions", "replyingTo"];
1062
- readonly links: {
1063
- replyTo: import("../../records/links.js").LinkDeclaration;
1064
- root: import("../../records/links.js").LinkDeclaration;
1065
- shares: import("../../records/links.js").LinkDeclaration;
1066
- };
1067
- } & import("../../index.js").Typed<{
1068
- readonly text?: string | undefined;
1069
- readonly images?: readonly {
1070
- readonly blob: {
1071
- readonly hash: string;
1072
- readonly size: number;
1073
- readonly mime: string;
1074
- readonly name?: string | undefined;
1075
- readonly key?: string | undefined;
1076
- readonly salt?: string | undefined;
1077
- };
1078
- readonly alt?: string | undefined;
1079
- }[] | undefined;
1080
- readonly langs?: readonly string[] | undefined;
1081
- readonly mentions?: readonly string[] | undefined;
1082
- readonly replyingTo?: string | undefined;
1083
- }>) | ({
1084
- readonly name: "std.repost";
1085
- readonly title: "Repost";
1086
- readonly description: "Passing a record on as it is: one per person per record.";
1087
- readonly schema: {
1088
- readonly type: "object";
1089
- readonly properties: {
1090
- respondingTo: {
1091
- type: 'string';
1092
- minLength?: number | undefined;
1093
- maxLength: number;
1094
- } & {
1095
- readonly 'x-kind': "did";
1096
- };
1097
- };
1098
- };
1099
- readonly links: {
1100
- about: import("../../records/links.js").LinkDeclaration;
1101
- };
1102
- readonly rules: {
1103
- readonly onePer: readonly ["@author", "link:about"];
1104
- };
1105
- readonly topics: readonly ["respondingTo"];
1106
- } & import("../../index.js").Typed<{
1107
- readonly respondingTo?: string | undefined;
1108
- }>) | ({
1109
- readonly name: "std.article";
1110
- readonly title: "Article";
1111
- readonly description: "Long-form writing, in CommonMark.";
1112
- readonly schema: {
1113
- readonly type: "object";
1114
- readonly properties: {
1115
- readonly mentions: {
1116
- type: 'array';
1117
- items: {
1118
- type: 'string';
1119
- minLength?: number | undefined;
1120
- maxLength: number;
1121
- } & {
1122
- readonly 'x-kind': "did";
1123
- };
1124
- maxItems: number;
1125
- };
1126
- readonly title: {
1127
- type: 'string';
1128
- minLength?: number | undefined;
1129
- maxLength: number;
1130
- };
1131
- readonly summary: {
1132
- type: 'string';
1133
- minLength?: number | undefined;
1134
- maxLength: number;
1135
- };
1136
- readonly content: {
1137
- type: 'string';
1138
- minLength?: number | undefined;
1139
- maxLength: number;
1140
- };
1141
- readonly cover: {
1142
- type: 'object';
1143
- properties: {
1144
- hash: {
1145
- type: 'string';
1146
- minLength: number;
1147
- maxLength: number;
1148
- };
1149
- size: {
1150
- type: 'integer';
1151
- minimum: number;
1152
- };
1153
- mime: {
1154
- type: 'string';
1155
- minLength?: number | undefined;
1156
- maxLength: number;
1157
- };
1158
- name: {
1159
- type: 'string';
1160
- minLength?: number | undefined;
1161
- maxLength: number;
1162
- };
1163
- key: {
1164
- type: 'string';
1165
- minLength: number;
1166
- maxLength: number;
1167
- };
1168
- salt: {
1169
- type: 'string';
1170
- minLength: number;
1171
- maxLength: number;
1172
- };
1173
- };
1174
- required: readonly ["hash", "size", "mime"];
1175
- } & {
1176
- readonly 'x-kind': "file";
1177
- };
1178
- readonly slug: {
1179
- type: 'string';
1180
- minLength?: number | undefined;
1181
- maxLength: number;
1182
- };
1183
- readonly publishedAt: {
1184
- type: 'string';
1185
- minLength?: number | undefined;
1186
- maxLength: number;
1187
- } & {
1188
- readonly 'x-kind': "when";
1189
- };
1190
- readonly draft: {
1191
- readonly type: "boolean";
1192
- };
1193
- };
1194
- readonly required: readonly ["title"];
1195
- };
1196
- readonly links: {
1197
- in: import("../../records/links.js").LinkDeclaration;
1198
- };
1199
- readonly topics: readonly ["mentions"];
1200
- } & import("../../index.js").Typed<{
1201
- readonly mentions?: readonly string[] | undefined;
1202
- readonly title: string;
1203
- readonly summary?: string | undefined;
1204
- readonly content?: string | undefined;
1205
- readonly cover?: {
1206
- readonly hash: string;
1207
- readonly size: number;
1208
- readonly mime: string;
1209
- readonly name?: string | undefined;
1210
- readonly key?: string | undefined;
1211
- readonly salt?: string | undefined;
1212
- } | undefined;
1213
- readonly slug?: string | undefined;
1214
- readonly publishedAt?: string | undefined;
1215
- readonly draft?: boolean | undefined;
1216
- }>) | ({
1217
- readonly name: "std.publication";
1218
- readonly title: "Publication";
1219
- readonly description: "A blog or newsletter that articles are published in.";
1220
- readonly schema: {
1221
- readonly type: "object";
1222
- readonly properties: {
1223
- title: {
1224
- type: 'string';
1225
- minLength?: number | undefined;
1226
- maxLength: number;
1227
- };
1228
- description: {
1229
- type: 'string';
1230
- minLength?: number | undefined;
1231
- maxLength: number;
1232
- };
1233
- icon: {
1234
- type: 'object';
1235
- properties: {
1236
- hash: {
1237
- type: 'string';
1238
- minLength: number;
1239
- maxLength: number;
1240
- };
1241
- size: {
1242
- type: 'integer';
1243
- minimum: number;
1244
- };
1245
- mime: {
1246
- type: 'string';
1247
- minLength?: number | undefined;
1248
- maxLength: number;
1249
- };
1250
- name: {
1251
- type: 'string';
1252
- minLength?: number | undefined;
1253
- maxLength: number;
1254
- };
1255
- key: {
1256
- type: 'string';
1257
- minLength: number;
1258
- maxLength: number;
1259
- };
1260
- salt: {
1261
- type: 'string';
1262
- minLength: number;
1263
- maxLength: number;
1264
- };
1265
- };
1266
- required: readonly ["hash", "size", "mime"];
1267
- } & {
1268
- readonly 'x-kind': "file";
1269
- };
1270
- };
1271
- readonly required: readonly ["title"];
1272
- };
1273
- } & import("../../index.js").Typed<{
1274
- readonly title: string;
1275
- readonly description?: string | undefined;
1276
- readonly icon?: {
1277
- readonly hash: string;
1278
- readonly size: number;
1279
- readonly mime: string;
1280
- readonly name?: string | undefined;
1281
- readonly key?: string | undefined;
1282
- readonly salt?: string | undefined;
1283
- } | undefined;
1284
- }>) | ({
1285
- readonly name: "std.doc";
1286
- readonly title: "Document";
1287
- readonly description: "A document people write together, as std.doc-blocks in it. An uploaded file, like a PDF or .docx, is a std.file.";
1288
- readonly schema: {
1289
- readonly type: "object";
1290
- readonly properties: {
1291
- title: {
1292
- type: 'string';
1293
- minLength?: number | undefined;
1294
- maxLength: number;
1295
- };
1296
- };
1297
- readonly required: readonly ["title"];
1298
- };
1299
- } & import("../../index.js").Typed<{
1300
- readonly title: string;
1301
- }>) | ({
1302
- readonly name: "std.doc-block";
1303
- readonly title: "Block";
1304
- readonly description: "One block of a document: a paragraph, heading, list item, image…";
1305
- readonly schema: {
1306
- readonly type: "object";
1307
- readonly properties: {
1308
- readonly mentions: {
1309
- type: 'array';
1310
- items: {
1311
- type: 'string';
1312
- minLength?: number | undefined;
1313
- maxLength: number;
1314
- } & {
1315
- readonly 'x-kind': "did";
1316
- };
1317
- maxItems: number;
1318
- };
1319
- readonly type: {
1320
- enum: ("bullet" | "code" | "divider" | "heading1" | "heading2" | "heading3" | "image" | "numbered" | "paragraph" | "quote" | "todo")[];
1321
- };
1322
- readonly text: {
1323
- type: 'string';
1324
- minLength?: number | undefined;
1325
- maxLength: number;
1326
- };
1327
- readonly checked: {
1328
- readonly type: "boolean";
1329
- readonly description: "For a todo";
1330
- };
1331
- readonly language: {
1332
- type: 'string';
1333
- minLength?: number | undefined;
1334
- maxLength: number;
1335
- };
1336
- readonly image: {
1337
- type: 'object';
1338
- properties: {
1339
- blob: {
1340
- type: 'object';
1341
- properties: {
1342
- hash: {
1343
- type: 'string';
1344
- minLength: number;
1345
- maxLength: number;
1346
- };
1347
- size: {
1348
- type: 'integer';
1349
- minimum: number;
1350
- };
1351
- mime: {
1352
- type: 'string';
1353
- minLength?: number | undefined;
1354
- maxLength: number;
1355
- };
1356
- name: {
1357
- type: 'string';
1358
- minLength?: number | undefined;
1359
- maxLength: number;
1360
- };
1361
- key: {
1362
- type: 'string';
1363
- minLength: number;
1364
- maxLength: number;
1365
- };
1366
- salt: {
1367
- type: 'string';
1368
- minLength: number;
1369
- maxLength: number;
1370
- };
1371
- };
1372
- required: readonly ["hash", "size", "mime"];
1373
- } & {
1374
- readonly 'x-kind': "file";
1375
- };
1376
- alt: {
1377
- type: 'string';
1378
- minLength?: number | undefined;
1379
- maxLength: number;
1380
- };
1381
- };
1382
- required: readonly ["blob"];
1383
- } & {
1384
- readonly 'x-kind': "image";
1385
- };
1386
- readonly position: {
1387
- type: 'string';
1388
- minLength?: number | undefined;
1389
- maxLength: number;
1390
- } & {
1391
- readonly 'x-kind': "position";
1392
- };
1393
- };
1394
- readonly required: readonly ["type"];
1395
- };
1396
- readonly links: {
1397
- in: import("../../records/links.js").LinkDeclaration;
1398
- parent: import("../../records/links.js").LinkDeclaration;
1399
- };
1400
- readonly topics: readonly ["mentions"];
1401
- } & import("../../index.js").Typed<{
1402
- readonly mentions?: readonly string[] | undefined;
1403
- readonly type: "bullet" | "code" | "divider" | "heading1" | "heading2" | "heading3" | "image" | "numbered" | "paragraph" | "quote" | "todo";
1404
- readonly text?: string | undefined;
1405
- readonly checked?: boolean | undefined;
1406
- readonly language?: string | undefined;
1407
- readonly image?: {
1408
- readonly blob: {
1409
- readonly hash: string;
1410
- readonly size: number;
1411
- readonly mime: string;
1412
- readonly name?: string | undefined;
1413
- readonly key?: string | undefined;
1414
- readonly salt?: string | undefined;
1415
- };
1416
- readonly alt?: string | undefined;
1417
- } | undefined;
1418
- readonly position?: string | undefined;
1419
- }>) | ({
1420
- readonly name: "std.wiki-page";
1421
- readonly title: "Wiki page";
1422
- readonly description: "A page anyone can edit, one per name, keeping every version. For a note of one’s own, use std.note.";
1423
- readonly schema: {
1424
- readonly type: "object";
1425
- readonly properties: {
1426
- slug: {
1427
- type: 'string';
1428
- minLength?: number | undefined;
1429
- maxLength: number;
1430
- };
1431
- title: {
1432
- type: 'string';
1433
- minLength?: number | undefined;
1434
- maxLength: number;
1435
- };
1436
- content: {
1437
- type: 'string';
1438
- minLength?: number | undefined;
1439
- maxLength: number;
1440
- };
1441
- };
1442
- readonly required: readonly ["slug", "title"];
1443
- };
1444
- readonly history: "all";
1445
- readonly rules: {
1446
- readonly onePer: readonly ["slug"];
1447
- };
1448
- } & import("../../index.js").Typed<{
1449
- readonly slug: string;
1450
- readonly title: string;
1451
- readonly content?: string | undefined;
1452
- }>) | ({
1453
- readonly name: "std.note";
1454
- readonly title: "Note";
1455
- readonly description: "A note: a title and some text. A page anyone edits under one name is std.wiki-page; a document several people write at once is std.doc.";
1456
- readonly schema: {
1457
- readonly type: "object";
1458
- readonly properties: {
1459
- readonly mentions: {
1460
- type: 'array';
1461
- items: {
1462
- type: 'string';
1463
- minLength?: number | undefined;
1464
- maxLength: number;
1465
- } & {
1466
- readonly 'x-kind': "did";
1467
- };
1468
- maxItems: number;
1469
- };
1470
- readonly title: {
1471
- type: 'string';
1472
- minLength?: number | undefined;
1473
- maxLength: number;
1474
- };
1475
- readonly content: {
1476
- type: 'string';
1477
- minLength?: number | undefined;
1478
- maxLength: number;
1479
- };
1480
- readonly pinned: {
1481
- readonly type: "boolean";
1482
- };
1483
- readonly color: {
1484
- type: 'string';
1485
- minLength?: number | undefined;
1486
- maxLength: number;
1487
- };
1488
- };
1489
- };
1490
- readonly topics: readonly ["mentions"];
1491
- } & import("../../index.js").Typed<{
1492
- readonly mentions?: readonly string[] | undefined;
1493
- readonly title?: string | undefined;
1494
- readonly content?: string | undefined;
1495
- readonly pinned?: boolean | undefined;
1496
- readonly color?: string | undefined;
1497
- }>))[];
1498
- };
1499
- //# sourceMappingURL=publishing.d.ts.map