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