@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,1002 +0,0 @@
1
- import type { BodyOf } from '../../query/types.js';
2
- /**
3
- * A list of anything: shopping, packing, reading, people, a playlist. `kind`
4
- * is a hint for how to show it, not a constraint.
5
- */
6
- export declare const list: {
7
- readonly name: "std.list";
8
- readonly title: "List";
9
- readonly description: "A named, ordered group of anything that exists while empty: a checklist, a folder, an album, a playlist, a category (`kind`). Each member is a std.list-item in it, about the record it stands for. For loose labels, use std.tag.";
10
- readonly schema: {
11
- readonly type: "object";
12
- readonly properties: {
13
- title: {
14
- type: 'string';
15
- minLength?: number | undefined;
16
- maxLength: number;
17
- };
18
- description: {
19
- type: 'string';
20
- minLength?: number | undefined;
21
- maxLength: number;
22
- };
23
- icon: {
24
- type: 'string';
25
- minLength?: number | undefined;
26
- maxLength: number;
27
- };
28
- kind: {
29
- type: 'string';
30
- minLength?: number | undefined;
31
- maxLength: number;
32
- };
33
- };
34
- readonly required: readonly ["title"];
35
- };
36
- } & import("../../index.js").Typed<{
37
- readonly title: string;
38
- readonly description?: string | undefined;
39
- readonly icon?: string | undefined;
40
- readonly kind?: string | undefined;
41
- }>;
42
- export type List = BodyOf<typeof list>;
43
- /** One thing on a list: some text, a web page, a person, or a record it is `about`. */
44
- export declare const listItem: {
45
- readonly name: "std.list-item";
46
- readonly title: "List item";
47
- readonly description: "One thing on a list: text, a link, a person or a record.";
48
- readonly schema: {
49
- readonly type: "object";
50
- readonly properties: {
51
- readonly text: {
52
- type: 'string';
53
- minLength?: number | undefined;
54
- maxLength: number;
55
- };
56
- readonly url: {
57
- type: 'string';
58
- minLength?: number | undefined;
59
- maxLength: number;
60
- } & {
61
- readonly 'x-kind': "url";
62
- };
63
- readonly did: {
64
- type: 'string';
65
- minLength?: number | undefined;
66
- maxLength: number;
67
- } & {
68
- readonly 'x-kind': "did";
69
- };
70
- readonly checked: {
71
- readonly type: "boolean";
72
- };
73
- readonly quantity: {
74
- readonly type: "number";
75
- readonly minimum: 0;
76
- };
77
- readonly position: {
78
- type: 'string';
79
- minLength?: number | undefined;
80
- maxLength: number;
81
- } & {
82
- readonly 'x-kind': "position";
83
- };
84
- };
85
- };
86
- readonly links: {
87
- in: import("../../records/links.js").LinkDeclaration;
88
- about: import("../../records/links.js").LinkDeclaration;
89
- };
90
- readonly topics: readonly ["did"];
91
- } & import("../../index.js").Typed<{
92
- readonly text?: string | undefined;
93
- readonly url?: string | undefined;
94
- readonly did?: string | undefined;
95
- readonly checked?: boolean | undefined;
96
- readonly quantity?: number | undefined;
97
- readonly position?: string | undefined;
98
- }>;
99
- export type ListItem = BodyOf<typeof listItem>;
100
- /**
101
- * A file kept in the space, or one kept elsewhere at `url`: the one record for
102
- * every file, whatever app shares it. A photo, a video or a song's audio is a
103
- * file with the fields that suit it. `about` is the record it was shared on or
104
- * attached to, like a message or a task; a file shared on its own has none.
105
- * Groups of files (folders, albums, categories) are `std.list`s with an item
106
- * about each file, so one file can be in many.
107
- */
108
- export declare const file: {
109
- readonly name: "std.file";
110
- readonly title: "File";
111
- readonly description: "Any file people share: a document, photo, video or recording, on its own or attached to a record (about). The only collection for files: a photo or video is a std.file too. For a folder, album or category of files, use std.list with a std.list-item about each file.";
112
- readonly schema: {
113
- readonly type: "object";
114
- readonly properties: {
115
- readonly name: {
116
- type: 'string';
117
- minLength?: number | undefined;
118
- maxLength: number;
119
- };
120
- readonly mime: {
121
- readonly type: "string";
122
- readonly minLength: 1;
123
- readonly maxLength: 255;
124
- };
125
- readonly size: {
126
- type: 'integer';
127
- minimum: number;
128
- maximum?: number | undefined;
129
- };
130
- readonly blob: {
131
- type: 'object';
132
- properties: {
133
- hash: {
134
- type: 'string';
135
- minLength: number;
136
- maxLength: number;
137
- };
138
- size: {
139
- type: 'integer';
140
- minimum: number;
141
- };
142
- mime: {
143
- type: 'string';
144
- minLength?: number | undefined;
145
- maxLength: number;
146
- };
147
- name: {
148
- type: 'string';
149
- minLength?: number | undefined;
150
- maxLength: number;
151
- };
152
- key: {
153
- type: 'string';
154
- minLength: number;
155
- maxLength: number;
156
- };
157
- salt: {
158
- type: 'string';
159
- minLength: number;
160
- maxLength: number;
161
- };
162
- };
163
- required: readonly ["hash", "size", "mime"];
164
- } & {
165
- readonly 'x-kind': "file";
166
- };
167
- readonly url: {
168
- type: 'string';
169
- minLength?: number | undefined;
170
- maxLength: number;
171
- } & {
172
- readonly 'x-kind': "url";
173
- };
174
- readonly alt: {
175
- type: 'string';
176
- minLength?: number | undefined;
177
- maxLength: number;
178
- };
179
- readonly width: {
180
- type: 'integer';
181
- minimum: number;
182
- maximum?: number | undefined;
183
- };
184
- readonly height: {
185
- type: 'integer';
186
- minimum: number;
187
- maximum?: number | undefined;
188
- };
189
- readonly duration: {
190
- readonly type: "number";
191
- readonly minimum: 0;
192
- readonly description: "Seconds, for a video or a sound";
193
- };
194
- readonly takenAt: {
195
- type: 'string';
196
- minLength?: number | undefined;
197
- maxLength: number;
198
- } & {
199
- readonly 'x-kind': "when";
200
- };
201
- readonly place: {
202
- type: 'object';
203
- properties: {
204
- name: {
205
- type: 'string';
206
- minLength?: number | undefined;
207
- maxLength: number;
208
- };
209
- address: {
210
- type: 'object';
211
- properties: {
212
- street: {
213
- type: 'string';
214
- minLength?: number | undefined;
215
- maxLength: number;
216
- };
217
- locality: {
218
- type: 'string';
219
- minLength?: number | undefined;
220
- maxLength: number;
221
- };
222
- region: {
223
- type: 'string';
224
- minLength?: number | undefined;
225
- maxLength: number;
226
- };
227
- postcode: {
228
- type: 'string';
229
- minLength?: number | undefined;
230
- maxLength: number;
231
- };
232
- country: {
233
- type: 'string';
234
- minLength?: number | undefined;
235
- maxLength: number;
236
- };
237
- };
238
- };
239
- lat: {
240
- type: 'number';
241
- minimum: number;
242
- maximum: number;
243
- };
244
- lon: {
245
- type: 'number';
246
- minimum: number;
247
- maximum: number;
248
- };
249
- cells: {
250
- type: 'array';
251
- maxItems: number;
252
- items: {
253
- type: 'string';
254
- minLength?: number | undefined;
255
- maxLength: number;
256
- };
257
- description: string;
258
- };
259
- };
260
- };
261
- readonly thumbnail: {
262
- type: 'object';
263
- properties: {
264
- hash: {
265
- type: 'string';
266
- minLength: number;
267
- maxLength: number;
268
- };
269
- size: {
270
- type: 'integer';
271
- minimum: number;
272
- };
273
- mime: {
274
- type: 'string';
275
- minLength?: number | undefined;
276
- maxLength: number;
277
- };
278
- name: {
279
- type: 'string';
280
- minLength?: number | undefined;
281
- maxLength: number;
282
- };
283
- key: {
284
- type: 'string';
285
- minLength: number;
286
- maxLength: number;
287
- };
288
- salt: {
289
- type: 'string';
290
- minLength: number;
291
- maxLength: number;
292
- };
293
- };
294
- required: readonly ["hash", "size", "mime"];
295
- } & {
296
- readonly 'x-kind': "file";
297
- };
298
- readonly captions: {
299
- type: 'object';
300
- properties: {
301
- hash: {
302
- type: 'string';
303
- minLength: number;
304
- maxLength: number;
305
- };
306
- size: {
307
- type: 'integer';
308
- minimum: number;
309
- };
310
- mime: {
311
- type: 'string';
312
- minLength?: number | undefined;
313
- maxLength: number;
314
- };
315
- name: {
316
- type: 'string';
317
- minLength?: number | undefined;
318
- maxLength: number;
319
- };
320
- key: {
321
- type: 'string';
322
- minLength: number;
323
- maxLength: number;
324
- };
325
- salt: {
326
- type: 'string';
327
- minLength: number;
328
- maxLength: number;
329
- };
330
- };
331
- required: readonly ["hash", "size", "mime"];
332
- } & {
333
- readonly 'x-kind': "file";
334
- };
335
- };
336
- readonly required: readonly ["name", "mime"];
337
- };
338
- readonly links: {
339
- about: import("../../records/links.js").LinkDeclaration;
340
- };
341
- } & import("../../index.js").Typed<{
342
- readonly name: string;
343
- readonly mime: string;
344
- readonly size?: number | undefined;
345
- readonly blob?: {
346
- readonly hash: string;
347
- readonly size: number;
348
- readonly mime: string;
349
- readonly name?: string | undefined;
350
- readonly key?: string | undefined;
351
- readonly salt?: string | undefined;
352
- } | undefined;
353
- readonly url?: string | undefined;
354
- readonly alt?: string | undefined;
355
- readonly width?: number | undefined;
356
- readonly height?: number | undefined;
357
- readonly duration?: number | undefined;
358
- readonly takenAt?: string | undefined;
359
- readonly place?: {
360
- readonly name?: string | undefined;
361
- readonly address?: {
362
- readonly street?: string | undefined;
363
- readonly locality?: string | undefined;
364
- readonly region?: string | undefined;
365
- readonly postcode?: string | undefined;
366
- readonly country?: string | undefined;
367
- } | undefined;
368
- readonly lat?: number | undefined;
369
- readonly lon?: number | undefined;
370
- readonly cells?: readonly string[] | undefined;
371
- } | undefined;
372
- readonly thumbnail?: {
373
- readonly hash: string;
374
- readonly size: number;
375
- readonly mime: string;
376
- readonly name?: string | undefined;
377
- readonly key?: string | undefined;
378
- readonly salt?: string | undefined;
379
- } | undefined;
380
- readonly captions?: {
381
- readonly hash: string;
382
- readonly size: number;
383
- readonly mime: string;
384
- readonly name?: string | undefined;
385
- readonly key?: string | undefined;
386
- readonly salt?: string | undefined;
387
- } | undefined;
388
- }>;
389
- export type FileRecord = BodyOf<typeof file>;
390
- /** A piece of music, known by its ids; `file` when the space holds the audio. */
391
- export declare const track: {
392
- readonly name: "std.track";
393
- readonly title: "Track";
394
- readonly description: "A piece of music, by title, artists and ids. Its audio, when the space holds it, is a std.file it links to. A playlist is a std.list.";
395
- readonly schema: {
396
- readonly type: "object";
397
- readonly properties: {
398
- readonly title: {
399
- type: 'string';
400
- minLength?: number | undefined;
401
- maxLength: number;
402
- };
403
- readonly artists: {
404
- readonly type: 'array';
405
- readonly maxItems: 20;
406
- readonly items: {
407
- type: 'string';
408
- minLength?: number | undefined;
409
- maxLength: number;
410
- };
411
- };
412
- readonly album: {
413
- type: 'string';
414
- minLength?: number | undefined;
415
- maxLength: number;
416
- };
417
- readonly duration: {
418
- readonly type: 'number';
419
- readonly minimum: 0;
420
- readonly description: 'Seconds';
421
- };
422
- readonly isrc: {
423
- type: 'string';
424
- minLength?: number | undefined;
425
- maxLength: number;
426
- };
427
- readonly mbid: {
428
- type: 'string';
429
- minLength?: number | undefined;
430
- maxLength: number;
431
- };
432
- };
433
- readonly required: readonly ["title"];
434
- };
435
- readonly links: {
436
- file: import("../../records/links.js").LinkDeclaration;
437
- };
438
- } & import("../../index.js").Typed<{
439
- readonly title: string;
440
- readonly artists?: readonly string[] | undefined;
441
- readonly album?: string | undefined;
442
- readonly duration?: number | undefined;
443
- readonly isrc?: string | undefined;
444
- readonly mbid?: string | undefined;
445
- }>;
446
- export type Track = BodyOf<typeof track>;
447
- /** A track someone listened to, and when: a listening history. */
448
- export declare const play: {
449
- readonly name: "std.play";
450
- readonly title: "Play";
451
- readonly description: "A track someone listened to, and when: about the std.track when the space has it.";
452
- readonly schema: {
453
- readonly type: "object";
454
- readonly properties: {
455
- readonly title: {
456
- type: 'string';
457
- minLength?: number | undefined;
458
- maxLength: number;
459
- };
460
- readonly artists: {
461
- readonly type: 'array';
462
- readonly maxItems: 20;
463
- readonly items: {
464
- type: 'string';
465
- minLength?: number | undefined;
466
- maxLength: number;
467
- };
468
- };
469
- readonly album: {
470
- type: 'string';
471
- minLength?: number | undefined;
472
- maxLength: number;
473
- };
474
- readonly duration: {
475
- readonly type: 'number';
476
- readonly minimum: 0;
477
- readonly description: 'Seconds';
478
- };
479
- readonly isrc: {
480
- type: 'string';
481
- minLength?: number | undefined;
482
- maxLength: number;
483
- };
484
- readonly mbid: {
485
- type: 'string';
486
- minLength?: number | undefined;
487
- maxLength: number;
488
- };
489
- readonly playedAt: {
490
- type: 'string';
491
- minLength?: number | undefined;
492
- maxLength: number;
493
- } & {
494
- readonly 'x-kind': "when";
495
- };
496
- };
497
- readonly required: readonly ["title", "playedAt"];
498
- };
499
- readonly links: {
500
- about: import("../../records/links.js").LinkDeclaration;
501
- };
502
- } & import("../../index.js").Typed<{
503
- readonly title: string;
504
- readonly artists?: readonly string[] | undefined;
505
- readonly album?: string | undefined;
506
- readonly duration?: number | undefined;
507
- readonly isrc?: string | undefined;
508
- readonly mbid?: string | undefined;
509
- readonly playedAt: string;
510
- }>;
511
- export type Play = BodyOf<typeof play>;
512
- /** This file's part of `standardGroups` */
513
- export declare const mediaGroups: {
514
- Lists: (({
515
- readonly name: "std.list";
516
- readonly title: "List";
517
- readonly description: "A named, ordered group of anything that exists while empty: a checklist, a folder, an album, a playlist, a category (`kind`). Each member is a std.list-item in it, about the record it stands for. For loose labels, use std.tag.";
518
- readonly schema: {
519
- readonly type: "object";
520
- readonly properties: {
521
- title: {
522
- type: 'string';
523
- minLength?: number | undefined;
524
- maxLength: number;
525
- };
526
- description: {
527
- type: 'string';
528
- minLength?: number | undefined;
529
- maxLength: number;
530
- };
531
- icon: {
532
- type: 'string';
533
- minLength?: number | undefined;
534
- maxLength: number;
535
- };
536
- kind: {
537
- type: 'string';
538
- minLength?: number | undefined;
539
- maxLength: number;
540
- };
541
- };
542
- readonly required: readonly ["title"];
543
- };
544
- } & import("../../index.js").Typed<{
545
- readonly title: string;
546
- readonly description?: string | undefined;
547
- readonly icon?: string | undefined;
548
- readonly kind?: string | undefined;
549
- }>) | ({
550
- readonly name: "std.list-item";
551
- readonly title: "List item";
552
- readonly description: "One thing on a list: text, a link, a person or a record.";
553
- readonly schema: {
554
- readonly type: "object";
555
- readonly properties: {
556
- readonly text: {
557
- type: 'string';
558
- minLength?: number | undefined;
559
- maxLength: number;
560
- };
561
- readonly url: {
562
- type: 'string';
563
- minLength?: number | undefined;
564
- maxLength: number;
565
- } & {
566
- readonly 'x-kind': "url";
567
- };
568
- readonly did: {
569
- type: 'string';
570
- minLength?: number | undefined;
571
- maxLength: number;
572
- } & {
573
- readonly 'x-kind': "did";
574
- };
575
- readonly checked: {
576
- readonly type: "boolean";
577
- };
578
- readonly quantity: {
579
- readonly type: "number";
580
- readonly minimum: 0;
581
- };
582
- readonly position: {
583
- type: 'string';
584
- minLength?: number | undefined;
585
- maxLength: number;
586
- } & {
587
- readonly 'x-kind': "position";
588
- };
589
- };
590
- };
591
- readonly links: {
592
- in: import("../../records/links.js").LinkDeclaration;
593
- about: import("../../records/links.js").LinkDeclaration;
594
- };
595
- readonly topics: readonly ["did"];
596
- } & import("../../index.js").Typed<{
597
- readonly text?: string | undefined;
598
- readonly url?: string | undefined;
599
- readonly did?: string | undefined;
600
- readonly checked?: boolean | undefined;
601
- readonly quantity?: number | undefined;
602
- readonly position?: string | undefined;
603
- }>))[];
604
- 'Files and media': (({
605
- readonly name: "std.file";
606
- readonly title: "File";
607
- readonly description: "Any file people share: a document, photo, video or recording, on its own or attached to a record (about). The only collection for files: a photo or video is a std.file too. For a folder, album or category of files, use std.list with a std.list-item about each file.";
608
- readonly schema: {
609
- readonly type: "object";
610
- readonly properties: {
611
- readonly name: {
612
- type: 'string';
613
- minLength?: number | undefined;
614
- maxLength: number;
615
- };
616
- readonly mime: {
617
- readonly type: "string";
618
- readonly minLength: 1;
619
- readonly maxLength: 255;
620
- };
621
- readonly size: {
622
- type: 'integer';
623
- minimum: number;
624
- maximum?: number | undefined;
625
- };
626
- readonly blob: {
627
- type: 'object';
628
- properties: {
629
- hash: {
630
- type: 'string';
631
- minLength: number;
632
- maxLength: number;
633
- };
634
- size: {
635
- type: 'integer';
636
- minimum: number;
637
- };
638
- mime: {
639
- type: 'string';
640
- minLength?: number | undefined;
641
- maxLength: number;
642
- };
643
- name: {
644
- type: 'string';
645
- minLength?: number | undefined;
646
- maxLength: number;
647
- };
648
- key: {
649
- type: 'string';
650
- minLength: number;
651
- maxLength: number;
652
- };
653
- salt: {
654
- type: 'string';
655
- minLength: number;
656
- maxLength: number;
657
- };
658
- };
659
- required: readonly ["hash", "size", "mime"];
660
- } & {
661
- readonly 'x-kind': "file";
662
- };
663
- readonly url: {
664
- type: 'string';
665
- minLength?: number | undefined;
666
- maxLength: number;
667
- } & {
668
- readonly 'x-kind': "url";
669
- };
670
- readonly alt: {
671
- type: 'string';
672
- minLength?: number | undefined;
673
- maxLength: number;
674
- };
675
- readonly width: {
676
- type: 'integer';
677
- minimum: number;
678
- maximum?: number | undefined;
679
- };
680
- readonly height: {
681
- type: 'integer';
682
- minimum: number;
683
- maximum?: number | undefined;
684
- };
685
- readonly duration: {
686
- readonly type: "number";
687
- readonly minimum: 0;
688
- readonly description: "Seconds, for a video or a sound";
689
- };
690
- readonly takenAt: {
691
- type: 'string';
692
- minLength?: number | undefined;
693
- maxLength: number;
694
- } & {
695
- readonly 'x-kind': "when";
696
- };
697
- readonly place: {
698
- type: 'object';
699
- properties: {
700
- name: {
701
- type: 'string';
702
- minLength?: number | undefined;
703
- maxLength: number;
704
- };
705
- address: {
706
- type: 'object';
707
- properties: {
708
- street: {
709
- type: 'string';
710
- minLength?: number | undefined;
711
- maxLength: number;
712
- };
713
- locality: {
714
- type: 'string';
715
- minLength?: number | undefined;
716
- maxLength: number;
717
- };
718
- region: {
719
- type: 'string';
720
- minLength?: number | undefined;
721
- maxLength: number;
722
- };
723
- postcode: {
724
- type: 'string';
725
- minLength?: number | undefined;
726
- maxLength: number;
727
- };
728
- country: {
729
- type: 'string';
730
- minLength?: number | undefined;
731
- maxLength: number;
732
- };
733
- };
734
- };
735
- lat: {
736
- type: 'number';
737
- minimum: number;
738
- maximum: number;
739
- };
740
- lon: {
741
- type: 'number';
742
- minimum: number;
743
- maximum: number;
744
- };
745
- cells: {
746
- type: 'array';
747
- maxItems: number;
748
- items: {
749
- type: 'string';
750
- minLength?: number | undefined;
751
- maxLength: number;
752
- };
753
- description: string;
754
- };
755
- };
756
- };
757
- readonly thumbnail: {
758
- type: 'object';
759
- properties: {
760
- hash: {
761
- type: 'string';
762
- minLength: number;
763
- maxLength: number;
764
- };
765
- size: {
766
- type: 'integer';
767
- minimum: number;
768
- };
769
- mime: {
770
- type: 'string';
771
- minLength?: number | undefined;
772
- maxLength: number;
773
- };
774
- name: {
775
- type: 'string';
776
- minLength?: number | undefined;
777
- maxLength: number;
778
- };
779
- key: {
780
- type: 'string';
781
- minLength: number;
782
- maxLength: number;
783
- };
784
- salt: {
785
- type: 'string';
786
- minLength: number;
787
- maxLength: number;
788
- };
789
- };
790
- required: readonly ["hash", "size", "mime"];
791
- } & {
792
- readonly 'x-kind': "file";
793
- };
794
- readonly captions: {
795
- type: 'object';
796
- properties: {
797
- hash: {
798
- type: 'string';
799
- minLength: number;
800
- maxLength: number;
801
- };
802
- size: {
803
- type: 'integer';
804
- minimum: number;
805
- };
806
- mime: {
807
- type: 'string';
808
- minLength?: number | undefined;
809
- maxLength: number;
810
- };
811
- name: {
812
- type: 'string';
813
- minLength?: number | undefined;
814
- maxLength: number;
815
- };
816
- key: {
817
- type: 'string';
818
- minLength: number;
819
- maxLength: number;
820
- };
821
- salt: {
822
- type: 'string';
823
- minLength: number;
824
- maxLength: number;
825
- };
826
- };
827
- required: readonly ["hash", "size", "mime"];
828
- } & {
829
- readonly 'x-kind': "file";
830
- };
831
- };
832
- readonly required: readonly ["name", "mime"];
833
- };
834
- readonly links: {
835
- about: import("../../records/links.js").LinkDeclaration;
836
- };
837
- } & import("../../index.js").Typed<{
838
- readonly name: string;
839
- readonly mime: string;
840
- readonly size?: number | undefined;
841
- readonly blob?: {
842
- readonly hash: string;
843
- readonly size: number;
844
- readonly mime: string;
845
- readonly name?: string | undefined;
846
- readonly key?: string | undefined;
847
- readonly salt?: string | undefined;
848
- } | undefined;
849
- readonly url?: string | undefined;
850
- readonly alt?: string | undefined;
851
- readonly width?: number | undefined;
852
- readonly height?: number | undefined;
853
- readonly duration?: number | undefined;
854
- readonly takenAt?: string | undefined;
855
- readonly place?: {
856
- readonly name?: string | undefined;
857
- readonly address?: {
858
- readonly street?: string | undefined;
859
- readonly locality?: string | undefined;
860
- readonly region?: string | undefined;
861
- readonly postcode?: string | undefined;
862
- readonly country?: string | undefined;
863
- } | undefined;
864
- readonly lat?: number | undefined;
865
- readonly lon?: number | undefined;
866
- readonly cells?: readonly string[] | undefined;
867
- } | undefined;
868
- readonly thumbnail?: {
869
- readonly hash: string;
870
- readonly size: number;
871
- readonly mime: string;
872
- readonly name?: string | undefined;
873
- readonly key?: string | undefined;
874
- readonly salt?: string | undefined;
875
- } | undefined;
876
- readonly captions?: {
877
- readonly hash: string;
878
- readonly size: number;
879
- readonly mime: string;
880
- readonly name?: string | undefined;
881
- readonly key?: string | undefined;
882
- readonly salt?: string | undefined;
883
- } | undefined;
884
- }>) | ({
885
- readonly name: "std.track";
886
- readonly title: "Track";
887
- readonly description: "A piece of music, by title, artists and ids. Its audio, when the space holds it, is a std.file it links to. A playlist is a std.list.";
888
- readonly schema: {
889
- readonly type: "object";
890
- readonly properties: {
891
- readonly title: {
892
- type: 'string';
893
- minLength?: number | undefined;
894
- maxLength: number;
895
- };
896
- readonly artists: {
897
- readonly type: 'array';
898
- readonly maxItems: 20;
899
- readonly items: {
900
- type: 'string';
901
- minLength?: number | undefined;
902
- maxLength: number;
903
- };
904
- };
905
- readonly album: {
906
- type: 'string';
907
- minLength?: number | undefined;
908
- maxLength: number;
909
- };
910
- readonly duration: {
911
- readonly type: 'number';
912
- readonly minimum: 0;
913
- readonly description: 'Seconds';
914
- };
915
- readonly isrc: {
916
- type: 'string';
917
- minLength?: number | undefined;
918
- maxLength: number;
919
- };
920
- readonly mbid: {
921
- type: 'string';
922
- minLength?: number | undefined;
923
- maxLength: number;
924
- };
925
- };
926
- readonly required: readonly ["title"];
927
- };
928
- readonly links: {
929
- file: import("../../records/links.js").LinkDeclaration;
930
- };
931
- } & import("../../index.js").Typed<{
932
- readonly title: string;
933
- readonly artists?: readonly string[] | undefined;
934
- readonly album?: string | undefined;
935
- readonly duration?: number | undefined;
936
- readonly isrc?: string | undefined;
937
- readonly mbid?: string | undefined;
938
- }>) | ({
939
- readonly name: "std.play";
940
- readonly title: "Play";
941
- readonly description: "A track someone listened to, and when: about the std.track when the space has it.";
942
- readonly schema: {
943
- readonly type: "object";
944
- readonly properties: {
945
- readonly title: {
946
- type: 'string';
947
- minLength?: number | undefined;
948
- maxLength: number;
949
- };
950
- readonly artists: {
951
- readonly type: 'array';
952
- readonly maxItems: 20;
953
- readonly items: {
954
- type: 'string';
955
- minLength?: number | undefined;
956
- maxLength: number;
957
- };
958
- };
959
- readonly album: {
960
- type: 'string';
961
- minLength?: number | undefined;
962
- maxLength: number;
963
- };
964
- readonly duration: {
965
- readonly type: 'number';
966
- readonly minimum: 0;
967
- readonly description: 'Seconds';
968
- };
969
- readonly isrc: {
970
- type: 'string';
971
- minLength?: number | undefined;
972
- maxLength: number;
973
- };
974
- readonly mbid: {
975
- type: 'string';
976
- minLength?: number | undefined;
977
- maxLength: number;
978
- };
979
- readonly playedAt: {
980
- type: 'string';
981
- minLength?: number | undefined;
982
- maxLength: number;
983
- } & {
984
- readonly 'x-kind': "when";
985
- };
986
- };
987
- readonly required: readonly ["title", "playedAt"];
988
- };
989
- readonly links: {
990
- about: import("../../records/links.js").LinkDeclaration;
991
- };
992
- } & import("../../index.js").Typed<{
993
- readonly title: string;
994
- readonly artists?: readonly string[] | undefined;
995
- readonly album?: string | undefined;
996
- readonly duration?: number | undefined;
997
- readonly isrc?: string | undefined;
998
- readonly mbid?: string | undefined;
999
- readonly playedAt: string;
1000
- }>))[];
1001
- };
1002
- //# sourceMappingURL=media.d.ts.map