@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,1257 +0,0 @@
1
- import type { BodyOf } from '../../query/types.js';
2
- /**
3
- * How someone presents themselves: more than the name every space keeps for
4
- * them (`sys.profile`). One per person, and only theirs to write.
5
- *
6
- * `bot` is the account saying it is software someone runs, not a person, so
7
- * apps can show it. It is the account's own word, like the rest: an honest
8
- * operator discloses with it, and it proves nothing about anyone who doesn't.
9
- */
10
- export declare const profile: {
11
- readonly name: "std.profile";
12
- readonly title: "Profile";
13
- readonly description: "How someone presents themselves: one per person.";
14
- readonly schema: {
15
- readonly type: "object";
16
- readonly properties: {
17
- readonly name: {
18
- type: 'string';
19
- minLength?: number | undefined;
20
- maxLength: number;
21
- };
22
- readonly bio: {
23
- type: 'string';
24
- minLength?: number | undefined;
25
- maxLength: number;
26
- };
27
- readonly avatar: {
28
- type: 'object';
29
- properties: {
30
- hash: {
31
- type: 'string';
32
- minLength: number;
33
- maxLength: number;
34
- };
35
- size: {
36
- type: 'integer';
37
- minimum: number;
38
- };
39
- mime: {
40
- type: 'string';
41
- minLength?: number | undefined;
42
- maxLength: number;
43
- };
44
- name: {
45
- type: 'string';
46
- minLength?: number | undefined;
47
- maxLength: number;
48
- };
49
- key: {
50
- type: 'string';
51
- minLength: number;
52
- maxLength: number;
53
- };
54
- salt: {
55
- type: 'string';
56
- minLength: number;
57
- maxLength: number;
58
- };
59
- };
60
- required: readonly ["hash", "size", "mime"];
61
- } & {
62
- readonly 'x-kind': "file";
63
- };
64
- readonly banner: {
65
- type: 'object';
66
- properties: {
67
- hash: {
68
- type: 'string';
69
- minLength: number;
70
- maxLength: number;
71
- };
72
- size: {
73
- type: 'integer';
74
- minimum: number;
75
- };
76
- mime: {
77
- type: 'string';
78
- minLength?: number | undefined;
79
- maxLength: number;
80
- };
81
- name: {
82
- type: 'string';
83
- minLength?: number | undefined;
84
- maxLength: number;
85
- };
86
- key: {
87
- type: 'string';
88
- minLength: number;
89
- maxLength: number;
90
- };
91
- salt: {
92
- type: 'string';
93
- minLength: number;
94
- maxLength: number;
95
- };
96
- };
97
- required: readonly ["hash", "size", "mime"];
98
- } & {
99
- readonly 'x-kind': "file";
100
- };
101
- readonly pronouns: {
102
- type: 'string';
103
- minLength?: number | undefined;
104
- maxLength: number;
105
- };
106
- readonly links: {
107
- readonly type: "array";
108
- readonly maxItems: 16;
109
- readonly items: {
110
- readonly type: "object";
111
- readonly properties: {
112
- title: {
113
- type: 'string';
114
- minLength?: number | undefined;
115
- maxLength: number;
116
- };
117
- url: {
118
- type: 'string';
119
- minLength?: number | undefined;
120
- maxLength: number;
121
- } & {
122
- readonly 'x-kind': "url";
123
- };
124
- };
125
- readonly required: readonly ["url"];
126
- };
127
- };
128
- readonly bot: {
129
- readonly type: "boolean";
130
- readonly description: "The account is software someone runs, not a person";
131
- };
132
- };
133
- };
134
- readonly rules: {
135
- readonly onePer: readonly ["@author"];
136
- };
137
- } & import("../../index.js").Typed<{
138
- readonly name?: string | undefined;
139
- readonly bio?: string | undefined;
140
- readonly avatar?: {
141
- readonly hash: string;
142
- readonly size: number;
143
- readonly mime: string;
144
- readonly name?: string | undefined;
145
- readonly key?: string | undefined;
146
- readonly salt?: string | undefined;
147
- } | undefined;
148
- readonly banner?: {
149
- readonly hash: string;
150
- readonly size: number;
151
- readonly mime: string;
152
- readonly name?: string | undefined;
153
- readonly key?: string | undefined;
154
- readonly salt?: string | undefined;
155
- } | undefined;
156
- readonly pronouns?: string | undefined;
157
- readonly links?: readonly {
158
- readonly title?: string | undefined;
159
- readonly url: string;
160
- }[] | undefined;
161
- readonly bot?: boolean | undefined;
162
- }>;
163
- export type Profile = BodyOf<typeof profile>;
164
- /**
165
- * How the space presents itself, as `std.profile` is how someone does: what
166
- * apps show in place of the name its constitution was founded with, and a
167
- * picture. One record per space: it names the space it is of, and `onePer`
168
- * that gives every writer the same shared key, so changing it is editing it,
169
- * and which edit stands is the versions' order, never a writer's clock. A
170
- * reader takes only the one whose `space` is the space it is in. Who may
171
- * write it is the space's grants, so the presets leave it to those who keep
172
- * order (`STAFF_COLLECTIONS`).
173
- */
174
- export declare const spaceProfile: {
175
- readonly name: "std.space-profile";
176
- readonly title: "Space profile";
177
- readonly description: "How the space presents itself: its name, a line about it and its picture. One per space: \"space\" is its id.";
178
- readonly schema: {
179
- readonly type: "object";
180
- readonly properties: {
181
- readonly space: {
182
- readonly type: "string";
183
- readonly minLength: 1;
184
- readonly maxLength: 256;
185
- readonly description: "The space it presents: its id";
186
- };
187
- readonly name: {
188
- type: 'string';
189
- minLength?: number | undefined;
190
- maxLength: number;
191
- };
192
- readonly bio: {
193
- type: 'string';
194
- minLength?: number | undefined;
195
- maxLength: number;
196
- };
197
- readonly avatar: {
198
- type: 'object';
199
- properties: {
200
- hash: {
201
- type: 'string';
202
- minLength: number;
203
- maxLength: number;
204
- };
205
- size: {
206
- type: 'integer';
207
- minimum: number;
208
- };
209
- mime: {
210
- type: 'string';
211
- minLength?: number | undefined;
212
- maxLength: number;
213
- };
214
- name: {
215
- type: 'string';
216
- minLength?: number | undefined;
217
- maxLength: number;
218
- };
219
- key: {
220
- type: 'string';
221
- minLength: number;
222
- maxLength: number;
223
- };
224
- salt: {
225
- type: 'string';
226
- minLength: number;
227
- maxLength: number;
228
- };
229
- };
230
- required: readonly ["hash", "size", "mime"];
231
- } & {
232
- readonly 'x-kind': "file";
233
- };
234
- readonly banner: {
235
- type: 'object';
236
- properties: {
237
- hash: {
238
- type: 'string';
239
- minLength: number;
240
- maxLength: number;
241
- };
242
- size: {
243
- type: 'integer';
244
- minimum: number;
245
- };
246
- mime: {
247
- type: 'string';
248
- minLength?: number | undefined;
249
- maxLength: number;
250
- };
251
- name: {
252
- type: 'string';
253
- minLength?: number | undefined;
254
- maxLength: number;
255
- };
256
- key: {
257
- type: 'string';
258
- minLength: number;
259
- maxLength: number;
260
- };
261
- salt: {
262
- type: 'string';
263
- minLength: number;
264
- maxLength: number;
265
- };
266
- };
267
- required: readonly ["hash", "size", "mime"];
268
- } & {
269
- readonly 'x-kind': "file";
270
- };
271
- };
272
- readonly required: readonly ["space"];
273
- };
274
- readonly rules: {
275
- readonly onePer: readonly ["space"];
276
- };
277
- } & import("../../index.js").Typed<{
278
- readonly space: string;
279
- readonly name?: string | undefined;
280
- readonly bio?: string | undefined;
281
- readonly avatar?: {
282
- readonly hash: string;
283
- readonly size: number;
284
- readonly mime: string;
285
- readonly name?: string | undefined;
286
- readonly key?: string | undefined;
287
- readonly salt?: string | undefined;
288
- } | undefined;
289
- readonly banner?: {
290
- readonly hash: string;
291
- readonly size: number;
292
- readonly mime: string;
293
- readonly name?: string | undefined;
294
- readonly key?: string | undefined;
295
- readonly salt?: string | undefined;
296
- } | undefined;
297
- }>;
298
- export type SpaceProfileRecord = BodyOf<typeof spaceProfile>;
299
- /**
300
- * A person who may not be on Minca: a subset of JSContact (RFC 9553). For
301
- * people who are, `std.contact` keeps their DID.
302
- */
303
- export declare const card: {
304
- readonly name: "std.card";
305
- readonly title: "Contact card";
306
- readonly description: "An address-book entry for anyone, on Minca or not. Your own public self is std.profile; a Minca account you can message is std.contact.";
307
- readonly schema: {
308
- readonly type: "object";
309
- readonly properties: {
310
- readonly name: {
311
- readonly type: "object";
312
- readonly properties: {
313
- full: {
314
- type: 'string';
315
- minLength?: number | undefined;
316
- maxLength: number;
317
- };
318
- given: {
319
- type: 'string';
320
- minLength?: number | undefined;
321
- maxLength: number;
322
- };
323
- family: {
324
- type: 'string';
325
- minLength?: number | undefined;
326
- maxLength: number;
327
- };
328
- };
329
- };
330
- readonly emails: {
331
- type: 'array';
332
- maxItems: number;
333
- items: {
334
- type: 'object';
335
- properties: {
336
- readonly address: {
337
- type: 'string';
338
- minLength?: number | undefined;
339
- maxLength: number;
340
- };
341
- } & {
342
- label: {
343
- type: 'string';
344
- minLength?: number | undefined;
345
- maxLength: number;
346
- };
347
- };
348
- required: readonly ["address"];
349
- };
350
- };
351
- readonly phones: {
352
- type: 'array';
353
- maxItems: number;
354
- items: {
355
- type: 'object';
356
- properties: {
357
- readonly number: {
358
- type: 'string';
359
- minLength?: number | undefined;
360
- maxLength: number;
361
- };
362
- } & {
363
- label: {
364
- type: 'string';
365
- minLength?: number | undefined;
366
- maxLength: number;
367
- };
368
- };
369
- required: readonly ["number"];
370
- };
371
- };
372
- readonly addresses: {
373
- type: 'array';
374
- maxItems: number;
375
- items: {
376
- type: 'object';
377
- properties: {
378
- readonly address: {
379
- type: 'object';
380
- properties: {
381
- street: {
382
- type: 'string';
383
- minLength?: number | undefined;
384
- maxLength: number;
385
- };
386
- locality: {
387
- type: 'string';
388
- minLength?: number | undefined;
389
- maxLength: number;
390
- };
391
- region: {
392
- type: 'string';
393
- minLength?: number | undefined;
394
- maxLength: number;
395
- };
396
- postcode: {
397
- type: 'string';
398
- minLength?: number | undefined;
399
- maxLength: number;
400
- };
401
- country: {
402
- type: 'string';
403
- minLength?: number | undefined;
404
- maxLength: number;
405
- };
406
- };
407
- };
408
- } & {
409
- label: {
410
- type: 'string';
411
- minLength?: number | undefined;
412
- maxLength: number;
413
- };
414
- };
415
- required: readonly ["address"];
416
- };
417
- };
418
- readonly organization: {
419
- type: 'string';
420
- minLength?: number | undefined;
421
- maxLength: number;
422
- };
423
- readonly jobTitle: {
424
- type: 'string';
425
- minLength?: number | undefined;
426
- maxLength: number;
427
- };
428
- readonly birthday: {
429
- type: 'string';
430
- minLength: number;
431
- maxLength: number;
432
- } & {
433
- readonly 'x-kind': "day";
434
- };
435
- readonly photo: {
436
- type: 'object';
437
- properties: {
438
- hash: {
439
- type: 'string';
440
- minLength: number;
441
- maxLength: number;
442
- };
443
- size: {
444
- type: 'integer';
445
- minimum: number;
446
- };
447
- mime: {
448
- type: 'string';
449
- minLength?: number | undefined;
450
- maxLength: number;
451
- };
452
- name: {
453
- type: 'string';
454
- minLength?: number | undefined;
455
- maxLength: number;
456
- };
457
- key: {
458
- type: 'string';
459
- minLength: number;
460
- maxLength: number;
461
- };
462
- salt: {
463
- type: 'string';
464
- minLength: number;
465
- maxLength: number;
466
- };
467
- };
468
- required: readonly ["hash", "size", "mime"];
469
- } & {
470
- readonly 'x-kind': "file";
471
- };
472
- readonly urls: {
473
- readonly type: "array";
474
- readonly maxItems: 16;
475
- readonly items: {
476
- type: 'string';
477
- minLength?: number | undefined;
478
- maxLength: number;
479
- } & {
480
- readonly 'x-kind': "url";
481
- };
482
- };
483
- readonly note: {
484
- type: 'string';
485
- minLength?: number | undefined;
486
- maxLength: number;
487
- };
488
- };
489
- };
490
- } & import("../../index.js").Typed<{
491
- readonly name?: {
492
- readonly full?: string | undefined;
493
- readonly given?: string | undefined;
494
- readonly family?: string | undefined;
495
- } | undefined;
496
- readonly emails?: readonly {
497
- readonly label?: string | undefined;
498
- readonly address: string;
499
- }[] | undefined;
500
- readonly phones?: readonly {
501
- readonly label?: string | undefined;
502
- readonly number: string;
503
- }[] | undefined;
504
- readonly addresses?: readonly {
505
- readonly label?: string | undefined;
506
- readonly address: {
507
- readonly street?: string | undefined;
508
- readonly locality?: string | undefined;
509
- readonly region?: string | undefined;
510
- readonly postcode?: string | undefined;
511
- readonly country?: string | undefined;
512
- };
513
- }[] | undefined;
514
- readonly organization?: string | undefined;
515
- readonly jobTitle?: string | undefined;
516
- readonly birthday?: string | undefined;
517
- readonly photo?: {
518
- readonly hash: string;
519
- readonly size: number;
520
- readonly mime: string;
521
- readonly name?: string | undefined;
522
- readonly key?: string | undefined;
523
- readonly salt?: string | undefined;
524
- } | undefined;
525
- readonly urls?: readonly string[] | undefined;
526
- readonly note?: string | undefined;
527
- }>;
528
- export type Card = BodyOf<typeof card>;
529
- /** Following someone: their DID, and the space they publish in if known. */
530
- export declare const follow: {
531
- readonly name: "std.follow";
532
- readonly title: "Follow";
533
- readonly description: "Following a person: one per person followed.";
534
- readonly schema: {
535
- readonly type: "object";
536
- readonly properties: {
537
- did: {
538
- type: 'string';
539
- minLength?: number | undefined;
540
- maxLength: number;
541
- } & {
542
- readonly 'x-kind': "did";
543
- };
544
- space: {
545
- type: 'string';
546
- minLength?: number | undefined;
547
- maxLength: number;
548
- };
549
- };
550
- readonly required: readonly ["did"];
551
- };
552
- readonly rules: {
553
- readonly onePer: readonly ["@author", "did"];
554
- };
555
- readonly topics: readonly ["did"];
556
- } & import("../../index.js").Typed<{
557
- readonly did: string;
558
- readonly space?: string | undefined;
559
- }>;
560
- export type Follow = BodyOf<typeof follow>;
561
- export type Avoid = BodyOf<typeof block>;
562
- /** Someone whose records an app hides and whose invitations it refuses. Keep it in your own space. */
563
- export declare const block: {
564
- readonly name: string;
565
- readonly title: string;
566
- readonly description: string;
567
- readonly schema: {
568
- readonly type: "object";
569
- readonly properties: {
570
- did: {
571
- type: 'string';
572
- minLength?: number | undefined;
573
- maxLength: number;
574
- } & {
575
- readonly 'x-kind': "did";
576
- };
577
- until: {
578
- type: 'string';
579
- minLength?: number | undefined;
580
- maxLength: number;
581
- } & {
582
- readonly 'x-kind': "when";
583
- };
584
- };
585
- readonly required: readonly ["did"];
586
- };
587
- readonly rules: {
588
- readonly onePer: readonly ["@author", "did"];
589
- };
590
- } & import("../../index.js").Typed<{
591
- readonly did: string;
592
- readonly until?: string | undefined;
593
- }>;
594
- /** Someone whose records an app quiets but still shows when asked. Keep it in your own space. */
595
- export declare const mute: {
596
- readonly name: string;
597
- readonly title: string;
598
- readonly description: string;
599
- readonly schema: {
600
- readonly type: "object";
601
- readonly properties: {
602
- did: {
603
- type: 'string';
604
- minLength?: number | undefined;
605
- maxLength: number;
606
- } & {
607
- readonly 'x-kind': "did";
608
- };
609
- until: {
610
- type: 'string';
611
- minLength?: number | undefined;
612
- maxLength: number;
613
- } & {
614
- readonly 'x-kind': "when";
615
- };
616
- };
617
- readonly required: readonly ["did"];
618
- };
619
- readonly rules: {
620
- readonly onePer: readonly ["@author", "did"];
621
- };
622
- } & import("../../index.js").Typed<{
623
- readonly did: string;
624
- readonly until?: string | undefined;
625
- }>;
626
- /** What someone is up to right now: one per person, gone after `until`. */
627
- export declare const status: {
628
- readonly name: "std.status";
629
- readonly title: "Status";
630
- readonly description: "What someone is up to now: one per person.";
631
- readonly schema: {
632
- readonly type: "object";
633
- readonly properties: {
634
- text: {
635
- type: 'string';
636
- minLength?: number | undefined;
637
- maxLength: number;
638
- };
639
- emoji: {
640
- type: 'string';
641
- minLength?: number | undefined;
642
- maxLength: number;
643
- };
644
- until: {
645
- type: 'string';
646
- minLength?: number | undefined;
647
- maxLength: number;
648
- } & {
649
- readonly 'x-kind': "when";
650
- };
651
- };
652
- };
653
- readonly rules: {
654
- readonly onePer: readonly ["@author"];
655
- };
656
- } & import("../../index.js").Typed<{
657
- readonly text?: string | undefined;
658
- readonly emoji?: string | undefined;
659
- readonly until?: string | undefined;
660
- }>;
661
- export type Status = BodyOf<typeof status>;
662
- /** This file's part of `standardGroups` */
663
- export declare const socialGroups: {
664
- People: (({
665
- readonly name: "std.profile";
666
- readonly title: "Profile";
667
- readonly description: "How someone presents themselves: one per person.";
668
- readonly schema: {
669
- readonly type: "object";
670
- readonly properties: {
671
- readonly name: {
672
- type: 'string';
673
- minLength?: number | undefined;
674
- maxLength: number;
675
- };
676
- readonly bio: {
677
- type: 'string';
678
- minLength?: number | undefined;
679
- maxLength: number;
680
- };
681
- readonly avatar: {
682
- type: 'object';
683
- properties: {
684
- hash: {
685
- type: 'string';
686
- minLength: number;
687
- maxLength: number;
688
- };
689
- size: {
690
- type: 'integer';
691
- minimum: number;
692
- };
693
- mime: {
694
- type: 'string';
695
- minLength?: number | undefined;
696
- maxLength: number;
697
- };
698
- name: {
699
- type: 'string';
700
- minLength?: number | undefined;
701
- maxLength: number;
702
- };
703
- key: {
704
- type: 'string';
705
- minLength: number;
706
- maxLength: number;
707
- };
708
- salt: {
709
- type: 'string';
710
- minLength: number;
711
- maxLength: number;
712
- };
713
- };
714
- required: readonly ["hash", "size", "mime"];
715
- } & {
716
- readonly 'x-kind': "file";
717
- };
718
- readonly banner: {
719
- type: 'object';
720
- properties: {
721
- hash: {
722
- type: 'string';
723
- minLength: number;
724
- maxLength: number;
725
- };
726
- size: {
727
- type: 'integer';
728
- minimum: number;
729
- };
730
- mime: {
731
- type: 'string';
732
- minLength?: number | undefined;
733
- maxLength: number;
734
- };
735
- name: {
736
- type: 'string';
737
- minLength?: number | undefined;
738
- maxLength: number;
739
- };
740
- key: {
741
- type: 'string';
742
- minLength: number;
743
- maxLength: number;
744
- };
745
- salt: {
746
- type: 'string';
747
- minLength: number;
748
- maxLength: number;
749
- };
750
- };
751
- required: readonly ["hash", "size", "mime"];
752
- } & {
753
- readonly 'x-kind': "file";
754
- };
755
- readonly pronouns: {
756
- type: 'string';
757
- minLength?: number | undefined;
758
- maxLength: number;
759
- };
760
- readonly links: {
761
- readonly type: "array";
762
- readonly maxItems: 16;
763
- readonly items: {
764
- readonly type: "object";
765
- readonly properties: {
766
- title: {
767
- type: 'string';
768
- minLength?: number | undefined;
769
- maxLength: number;
770
- };
771
- url: {
772
- type: 'string';
773
- minLength?: number | undefined;
774
- maxLength: number;
775
- } & {
776
- readonly 'x-kind': "url";
777
- };
778
- };
779
- readonly required: readonly ["url"];
780
- };
781
- };
782
- readonly bot: {
783
- readonly type: "boolean";
784
- readonly description: "The account is software someone runs, not a person";
785
- };
786
- };
787
- };
788
- readonly rules: {
789
- readonly onePer: readonly ["@author"];
790
- };
791
- } & import("../../index.js").Typed<{
792
- readonly name?: string | undefined;
793
- readonly bio?: string | undefined;
794
- readonly avatar?: {
795
- readonly hash: string;
796
- readonly size: number;
797
- readonly mime: string;
798
- readonly name?: string | undefined;
799
- readonly key?: string | undefined;
800
- readonly salt?: string | undefined;
801
- } | undefined;
802
- readonly banner?: {
803
- readonly hash: string;
804
- readonly size: number;
805
- readonly mime: string;
806
- readonly name?: string | undefined;
807
- readonly key?: string | undefined;
808
- readonly salt?: string | undefined;
809
- } | undefined;
810
- readonly pronouns?: string | undefined;
811
- readonly links?: readonly {
812
- readonly title?: string | undefined;
813
- readonly url: string;
814
- }[] | undefined;
815
- readonly bot?: boolean | undefined;
816
- }>) | ({
817
- readonly name: "std.space-profile";
818
- readonly title: "Space profile";
819
- readonly description: "How the space presents itself: its name, a line about it and its picture. One per space: \"space\" is its id.";
820
- readonly schema: {
821
- readonly type: "object";
822
- readonly properties: {
823
- readonly space: {
824
- readonly type: "string";
825
- readonly minLength: 1;
826
- readonly maxLength: 256;
827
- readonly description: "The space it presents: its id";
828
- };
829
- readonly name: {
830
- type: 'string';
831
- minLength?: number | undefined;
832
- maxLength: number;
833
- };
834
- readonly bio: {
835
- type: 'string';
836
- minLength?: number | undefined;
837
- maxLength: number;
838
- };
839
- readonly avatar: {
840
- type: 'object';
841
- properties: {
842
- hash: {
843
- type: 'string';
844
- minLength: number;
845
- maxLength: number;
846
- };
847
- size: {
848
- type: 'integer';
849
- minimum: number;
850
- };
851
- mime: {
852
- type: 'string';
853
- minLength?: number | undefined;
854
- maxLength: number;
855
- };
856
- name: {
857
- type: 'string';
858
- minLength?: number | undefined;
859
- maxLength: number;
860
- };
861
- key: {
862
- type: 'string';
863
- minLength: number;
864
- maxLength: number;
865
- };
866
- salt: {
867
- type: 'string';
868
- minLength: number;
869
- maxLength: number;
870
- };
871
- };
872
- required: readonly ["hash", "size", "mime"];
873
- } & {
874
- readonly 'x-kind': "file";
875
- };
876
- readonly banner: {
877
- type: 'object';
878
- properties: {
879
- hash: {
880
- type: 'string';
881
- minLength: number;
882
- maxLength: number;
883
- };
884
- size: {
885
- type: 'integer';
886
- minimum: number;
887
- };
888
- mime: {
889
- type: 'string';
890
- minLength?: number | undefined;
891
- maxLength: number;
892
- };
893
- name: {
894
- type: 'string';
895
- minLength?: number | undefined;
896
- maxLength: number;
897
- };
898
- key: {
899
- type: 'string';
900
- minLength: number;
901
- maxLength: number;
902
- };
903
- salt: {
904
- type: 'string';
905
- minLength: number;
906
- maxLength: number;
907
- };
908
- };
909
- required: readonly ["hash", "size", "mime"];
910
- } & {
911
- readonly 'x-kind': "file";
912
- };
913
- };
914
- readonly required: readonly ["space"];
915
- };
916
- readonly rules: {
917
- readonly onePer: readonly ["space"];
918
- };
919
- } & import("../../index.js").Typed<{
920
- readonly space: string;
921
- readonly name?: string | undefined;
922
- readonly bio?: string | undefined;
923
- readonly avatar?: {
924
- readonly hash: string;
925
- readonly size: number;
926
- readonly mime: string;
927
- readonly name?: string | undefined;
928
- readonly key?: string | undefined;
929
- readonly salt?: string | undefined;
930
- } | undefined;
931
- readonly banner?: {
932
- readonly hash: string;
933
- readonly size: number;
934
- readonly mime: string;
935
- readonly name?: string | undefined;
936
- readonly key?: string | undefined;
937
- readonly salt?: string | undefined;
938
- } | undefined;
939
- }>) | ({
940
- readonly name: "std.card";
941
- readonly title: "Contact card";
942
- readonly description: "An address-book entry for anyone, on Minca or not. Your own public self is std.profile; a Minca account you can message is std.contact.";
943
- readonly schema: {
944
- readonly type: "object";
945
- readonly properties: {
946
- readonly name: {
947
- readonly type: "object";
948
- readonly properties: {
949
- full: {
950
- type: 'string';
951
- minLength?: number | undefined;
952
- maxLength: number;
953
- };
954
- given: {
955
- type: 'string';
956
- minLength?: number | undefined;
957
- maxLength: number;
958
- };
959
- family: {
960
- type: 'string';
961
- minLength?: number | undefined;
962
- maxLength: number;
963
- };
964
- };
965
- };
966
- readonly emails: {
967
- type: 'array';
968
- maxItems: number;
969
- items: {
970
- type: 'object';
971
- properties: {
972
- readonly address: {
973
- type: 'string';
974
- minLength?: number | undefined;
975
- maxLength: number;
976
- };
977
- } & {
978
- label: {
979
- type: 'string';
980
- minLength?: number | undefined;
981
- maxLength: number;
982
- };
983
- };
984
- required: readonly ["address"];
985
- };
986
- };
987
- readonly phones: {
988
- type: 'array';
989
- maxItems: number;
990
- items: {
991
- type: 'object';
992
- properties: {
993
- readonly number: {
994
- type: 'string';
995
- minLength?: number | undefined;
996
- maxLength: number;
997
- };
998
- } & {
999
- label: {
1000
- type: 'string';
1001
- minLength?: number | undefined;
1002
- maxLength: number;
1003
- };
1004
- };
1005
- required: readonly ["number"];
1006
- };
1007
- };
1008
- readonly addresses: {
1009
- type: 'array';
1010
- maxItems: number;
1011
- items: {
1012
- type: 'object';
1013
- properties: {
1014
- readonly address: {
1015
- type: 'object';
1016
- properties: {
1017
- street: {
1018
- type: 'string';
1019
- minLength?: number | undefined;
1020
- maxLength: number;
1021
- };
1022
- locality: {
1023
- type: 'string';
1024
- minLength?: number | undefined;
1025
- maxLength: number;
1026
- };
1027
- region: {
1028
- type: 'string';
1029
- minLength?: number | undefined;
1030
- maxLength: number;
1031
- };
1032
- postcode: {
1033
- type: 'string';
1034
- minLength?: number | undefined;
1035
- maxLength: number;
1036
- };
1037
- country: {
1038
- type: 'string';
1039
- minLength?: number | undefined;
1040
- maxLength: number;
1041
- };
1042
- };
1043
- };
1044
- } & {
1045
- label: {
1046
- type: 'string';
1047
- minLength?: number | undefined;
1048
- maxLength: number;
1049
- };
1050
- };
1051
- required: readonly ["address"];
1052
- };
1053
- };
1054
- readonly organization: {
1055
- type: 'string';
1056
- minLength?: number | undefined;
1057
- maxLength: number;
1058
- };
1059
- readonly jobTitle: {
1060
- type: 'string';
1061
- minLength?: number | undefined;
1062
- maxLength: number;
1063
- };
1064
- readonly birthday: {
1065
- type: 'string';
1066
- minLength: number;
1067
- maxLength: number;
1068
- } & {
1069
- readonly 'x-kind': "day";
1070
- };
1071
- readonly photo: {
1072
- type: 'object';
1073
- properties: {
1074
- hash: {
1075
- type: 'string';
1076
- minLength: number;
1077
- maxLength: number;
1078
- };
1079
- size: {
1080
- type: 'integer';
1081
- minimum: number;
1082
- };
1083
- mime: {
1084
- type: 'string';
1085
- minLength?: number | undefined;
1086
- maxLength: number;
1087
- };
1088
- name: {
1089
- type: 'string';
1090
- minLength?: number | undefined;
1091
- maxLength: number;
1092
- };
1093
- key: {
1094
- type: 'string';
1095
- minLength: number;
1096
- maxLength: number;
1097
- };
1098
- salt: {
1099
- type: 'string';
1100
- minLength: number;
1101
- maxLength: number;
1102
- };
1103
- };
1104
- required: readonly ["hash", "size", "mime"];
1105
- } & {
1106
- readonly 'x-kind': "file";
1107
- };
1108
- readonly urls: {
1109
- readonly type: "array";
1110
- readonly maxItems: 16;
1111
- readonly items: {
1112
- type: 'string';
1113
- minLength?: number | undefined;
1114
- maxLength: number;
1115
- } & {
1116
- readonly 'x-kind': "url";
1117
- };
1118
- };
1119
- readonly note: {
1120
- type: 'string';
1121
- minLength?: number | undefined;
1122
- maxLength: number;
1123
- };
1124
- };
1125
- };
1126
- } & import("../../index.js").Typed<{
1127
- readonly name?: {
1128
- readonly full?: string | undefined;
1129
- readonly given?: string | undefined;
1130
- readonly family?: string | undefined;
1131
- } | undefined;
1132
- readonly emails?: readonly {
1133
- readonly label?: string | undefined;
1134
- readonly address: string;
1135
- }[] | undefined;
1136
- readonly phones?: readonly {
1137
- readonly label?: string | undefined;
1138
- readonly number: string;
1139
- }[] | undefined;
1140
- readonly addresses?: readonly {
1141
- readonly label?: string | undefined;
1142
- readonly address: {
1143
- readonly street?: string | undefined;
1144
- readonly locality?: string | undefined;
1145
- readonly region?: string | undefined;
1146
- readonly postcode?: string | undefined;
1147
- readonly country?: string | undefined;
1148
- };
1149
- }[] | undefined;
1150
- readonly organization?: string | undefined;
1151
- readonly jobTitle?: string | undefined;
1152
- readonly birthday?: string | undefined;
1153
- readonly photo?: {
1154
- readonly hash: string;
1155
- readonly size: number;
1156
- readonly mime: string;
1157
- readonly name?: string | undefined;
1158
- readonly key?: string | undefined;
1159
- readonly salt?: string | undefined;
1160
- } | undefined;
1161
- readonly urls?: readonly string[] | undefined;
1162
- readonly note?: string | undefined;
1163
- }>) | ({
1164
- readonly name: "std.follow";
1165
- readonly title: "Follow";
1166
- readonly description: "Following a person: one per person followed.";
1167
- readonly schema: {
1168
- readonly type: "object";
1169
- readonly properties: {
1170
- did: {
1171
- type: 'string';
1172
- minLength?: number | undefined;
1173
- maxLength: number;
1174
- } & {
1175
- readonly 'x-kind': "did";
1176
- };
1177
- space: {
1178
- type: 'string';
1179
- minLength?: number | undefined;
1180
- maxLength: number;
1181
- };
1182
- };
1183
- readonly required: readonly ["did"];
1184
- };
1185
- readonly rules: {
1186
- readonly onePer: readonly ["@author", "did"];
1187
- };
1188
- readonly topics: readonly ["did"];
1189
- } & import("../../index.js").Typed<{
1190
- readonly did: string;
1191
- readonly space?: string | undefined;
1192
- }>) | ({
1193
- readonly name: string;
1194
- readonly title: string;
1195
- readonly description: string;
1196
- readonly schema: {
1197
- readonly type: "object";
1198
- readonly properties: {
1199
- did: {
1200
- type: 'string';
1201
- minLength?: number | undefined;
1202
- maxLength: number;
1203
- } & {
1204
- readonly 'x-kind': "did";
1205
- };
1206
- until: {
1207
- type: 'string';
1208
- minLength?: number | undefined;
1209
- maxLength: number;
1210
- } & {
1211
- readonly 'x-kind': "when";
1212
- };
1213
- };
1214
- readonly required: readonly ["did"];
1215
- };
1216
- readonly rules: {
1217
- readonly onePer: readonly ["@author", "did"];
1218
- };
1219
- } & import("../../index.js").Typed<{
1220
- readonly did: string;
1221
- readonly until?: string | undefined;
1222
- }>) | ({
1223
- readonly name: "std.status";
1224
- readonly title: "Status";
1225
- readonly description: "What someone is up to now: one per person.";
1226
- readonly schema: {
1227
- readonly type: "object";
1228
- readonly properties: {
1229
- text: {
1230
- type: 'string';
1231
- minLength?: number | undefined;
1232
- maxLength: number;
1233
- };
1234
- emoji: {
1235
- type: 'string';
1236
- minLength?: number | undefined;
1237
- maxLength: number;
1238
- };
1239
- until: {
1240
- type: 'string';
1241
- minLength?: number | undefined;
1242
- maxLength: number;
1243
- } & {
1244
- readonly 'x-kind': "when";
1245
- };
1246
- };
1247
- };
1248
- readonly rules: {
1249
- readonly onePer: readonly ["@author"];
1250
- };
1251
- } & import("../../index.js").Typed<{
1252
- readonly text?: string | undefined;
1253
- readonly emoji?: string | undefined;
1254
- readonly until?: string | undefined;
1255
- }>))[];
1256
- };
1257
- //# sourceMappingURL=social.d.ts.map