@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.
- package/README.md +2 -2
- package/dist/{session → hosting}/hosting.d.ts +2 -8
- package/dist/hosting/hosting.d.ts.map +1 -0
- package/dist/{session → hosting}/hosting.js +3 -3
- package/dist/hosting/hosting.js.map +1 -0
- package/dist/identity/abilities.d.ts +0 -2
- package/dist/identity/abilities.d.ts.map +1 -1
- package/dist/identity/abilities.js +2 -2
- package/dist/identity/abilities.js.map +1 -1
- package/dist/identity/account-vault.d.ts +0 -2
- package/dist/identity/account-vault.d.ts.map +1 -1
- package/dist/identity/account-vault.js +1 -1
- package/dist/identity/account-vault.js.map +1 -1
- package/dist/identity/crypto-p256.d.ts +1 -1
- package/dist/identity/crypto-p256.d.ts.map +1 -1
- package/dist/identity/ucan.d.ts +2 -1
- package/dist/identity/ucan.d.ts.map +1 -1
- package/dist/identity/ucan.js +1 -1
- package/dist/identity/ucan.js.map +1 -1
- package/dist/inbox/inbox.d.ts +0 -21
- package/dist/inbox/inbox.d.ts.map +1 -1
- package/dist/inbox/inbox.js +4 -4
- package/dist/inbox/inbox.js.map +1 -1
- package/dist/inbox/index.d.ts +4 -5
- package/dist/inbox/index.d.ts.map +1 -1
- package/dist/inbox/index.js +2 -3
- package/dist/inbox/index.js.map +1 -1
- package/dist/inbox/names.d.ts +0 -4
- package/dist/inbox/names.d.ts.map +1 -1
- package/dist/inbox/names.js +2 -2
- package/dist/inbox/names.js.map +1 -1
- package/dist/index.d.ts +50 -84
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -60
- package/dist/index.js.map +1 -1
- package/dist/network/mesh.d.ts.map +1 -1
- package/dist/network/mesh.js +23 -3
- package/dist/network/mesh.js.map +1 -1
- package/dist/network/network-manager.d.ts +5 -0
- package/dist/network/network-manager.d.ts.map +1 -1
- package/dist/network/network-manager.js +3 -0
- package/dist/network/network-manager.js.map +1 -1
- package/dist/network/peer-auth.d.ts +17 -5
- package/dist/network/peer-auth.d.ts.map +1 -1
- package/dist/network/peer-auth.js +19 -9
- package/dist/network/peer-auth.js.map +1 -1
- package/dist/network/rendezvous.d.ts +2 -0
- package/dist/network/rendezvous.d.ts.map +1 -1
- package/dist/network/rendezvous.js +5 -0
- package/dist/network/rendezvous.js.map +1 -1
- package/dist/network/rtc-transport.d.ts.map +1 -1
- package/dist/network/rtc-transport.js +9 -3
- package/dist/network/rtc-transport.js.map +1 -1
- package/dist/network/transport.d.ts +12 -0
- package/dist/network/transport.d.ts.map +1 -1
- package/dist/network/ws-transport.d.ts +1 -1
- package/dist/network/ws-transport.d.ts.map +1 -1
- package/dist/network/ws-transport.js +14 -4
- package/dist/network/ws-transport.js.map +1 -1
- package/dist/node/carrier.d.ts +1 -33
- package/dist/node/carrier.d.ts.map +1 -1
- package/dist/node/carrier.js +38 -68
- package/dist/node/carrier.js.map +1 -1
- package/dist/node/index.d.ts +5 -16
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +2 -9
- package/dist/node/index.js.map +1 -1
- package/dist/node/node-carriers.d.ts.map +1 -1
- package/dist/node/node-carriers.js +21 -52
- package/dist/node/node-carriers.js.map +1 -1
- package/dist/node/node-context.d.ts +0 -2
- package/dist/node/node-context.d.ts.map +1 -1
- package/dist/node/node-context.js.map +1 -1
- package/dist/node/node-hosting.d.ts.map +1 -1
- package/dist/node/node-hosting.js +14 -5
- package/dist/node/node-hosting.js.map +1 -1
- package/dist/node/node-records.js +2 -2
- package/dist/node/node-records.js.map +1 -1
- package/dist/node/node.d.ts.map +1 -1
- package/dist/node/node.js +152 -36
- package/dist/node/node.js.map +1 -1
- package/dist/node/space-checks.d.ts +3 -1
- package/dist/node/space-checks.d.ts.map +1 -1
- package/dist/node/space-checks.js +7 -3
- package/dist/node/space-checks.js.map +1 -1
- package/dist/node/space-holding.d.ts +5 -0
- package/dist/node/space-holding.d.ts.map +1 -1
- package/dist/node/space-holding.js +90 -5
- package/dist/node/space-holding.js.map +1 -1
- package/dist/node/space-lines.d.ts +3 -0
- package/dist/node/space-lines.d.ts.map +1 -1
- package/dist/node/space-lines.js +13 -1
- package/dist/node/space-lines.js.map +1 -1
- package/dist/node/space-membership.js +4 -4
- package/dist/node/space-membership.js.map +1 -1
- package/dist/node/space-mirrors.d.ts +1 -1
- package/dist/node/space-mirrors.d.ts.map +1 -1
- package/dist/node/space-mirrors.js +17 -5
- package/dist/node/space-mirrors.js.map +1 -1
- package/dist/node/space-peers.d.ts +7 -2
- package/dist/node/space-peers.d.ts.map +1 -1
- package/dist/node/space-peers.js +44 -10
- package/dist/node/space-peers.js.map +1 -1
- package/dist/node/space-runtime.d.ts +7 -3
- package/dist/node/space-runtime.d.ts.map +1 -1
- package/dist/node/space-runtime.js +32 -10
- package/dist/node/space-runtime.js.map +1 -1
- package/dist/node/space-standing.d.ts +1 -1
- package/dist/node/space-standing.d.ts.map +1 -1
- package/dist/node/space-standing.js +23 -42
- package/dist/node/space-standing.js.map +1 -1
- package/dist/node/space-warrants.js +1 -1
- package/dist/node/space-warrants.js.map +1 -1
- package/dist/node/space-writing.d.ts.map +1 -1
- package/dist/node/space-writing.js +21 -32
- package/dist/node/space-writing.js.map +1 -1
- package/dist/node/stores.d.ts +9 -57
- package/dist/node/stores.d.ts.map +1 -1
- package/dist/node/stores.js +1 -72
- package/dist/node/stores.js.map +1 -1
- package/dist/node/types.d.ts +19 -8
- package/dist/node/types.d.ts.map +1 -1
- package/dist/node/writer-keys.d.ts +15 -14
- package/dist/node/writer-keys.d.ts.map +1 -1
- package/dist/node/writer-keys.js +3 -115
- package/dist/node/writer-keys.js.map +1 -1
- package/dist/privacy/direct.d.ts +0 -7
- package/dist/privacy/direct.d.ts.map +1 -1
- package/dist/privacy/direct.js +2 -2
- package/dist/privacy/direct.js.map +1 -1
- package/dist/query/filter.d.ts +0 -2
- package/dist/query/filter.d.ts.map +1 -1
- package/dist/query/filter.js +1 -1
- package/dist/query/filter.js.map +1 -1
- package/dist/query/types.d.ts +2 -6
- package/dist/query/types.d.ts.map +1 -1
- package/dist/query/types.js.map +1 -1
- package/dist/records/key.d.ts +18 -19
- package/dist/records/key.d.ts.map +1 -1
- package/dist/records/key.js +55 -43
- package/dist/records/key.js.map +1 -1
- package/dist/records/links.js +1 -1
- package/dist/records/rules.d.ts +1 -1
- package/dist/records/rules.d.ts.map +1 -1
- package/dist/records/rules.js +6 -4
- package/dist/records/rules.js.map +1 -1
- package/dist/schemas/direct.d.ts +70 -0
- package/dist/schemas/direct.d.ts.map +1 -0
- package/dist/schemas/direct.js +39 -0
- package/dist/schemas/direct.js.map +1 -0
- package/dist/schemas/index.d.ts +10 -73
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +8 -66
- package/dist/schemas/index.js.map +1 -1
- package/dist/space/account-registry.d.ts +0 -3
- package/dist/space/account-registry.d.ts.map +1 -1
- package/dist/space/account-registry.js.map +1 -1
- package/dist/space/own-automations.d.ts +51 -95
- package/dist/space/own-automations.d.ts.map +1 -1
- package/dist/space/own-automations.js +100 -295
- package/dist/space/own-automations.js.map +1 -1
- package/dist/space/pass.d.ts +8 -3
- package/dist/space/pass.d.ts.map +1 -1
- package/dist/space/pass.js +4 -3
- package/dist/space/pass.js.map +1 -1
- package/dist/space/space-manager.d.ts +1 -3
- package/dist/space/space-manager.d.ts.map +1 -1
- package/dist/space/space-manager.js +5 -7
- package/dist/space/space-manager.js.map +1 -1
- package/dist/storage/body-cache.d.ts +29 -0
- package/dist/storage/body-cache.d.ts.map +1 -0
- package/dist/storage/body-cache.js +64 -0
- package/dist/storage/body-cache.js.map +1 -0
- package/dist/storage/encrypted-adapter.d.ts +0 -5
- package/dist/storage/encrypted-adapter.d.ts.map +1 -1
- package/dist/storage/encrypted-adapter.js +1 -1
- package/dist/storage/encrypted-adapter.js.map +1 -1
- package/dist/storage/mirror.d.ts.map +1 -1
- package/dist/storage/mirror.js +35 -16
- package/dist/storage/mirror.js.map +1 -1
- package/dist/storage/segment.d.ts +6 -2
- package/dist/storage/segment.d.ts.map +1 -1
- package/dist/storage/segment.js +8 -4
- package/dist/storage/segment.js.map +1 -1
- package/dist/storage/shared-store.d.ts +32 -0
- package/dist/storage/shared-store.d.ts.map +1 -0
- package/dist/storage/{folder-reconcile.js → shared-store.js} +15 -15
- package/dist/storage/shared-store.js.map +1 -0
- package/dist/storage/storage-provider.d.ts +19 -9
- package/dist/storage/storage-provider.d.ts.map +1 -1
- package/dist/storage/storage-provider.js +155 -62
- package/dist/storage/storage-provider.js.map +1 -1
- package/dist/sync/sync-engine.d.ts +17 -4
- package/dist/sync/sync-engine.d.ts.map +1 -1
- package/dist/sync/sync-engine.js +298 -84
- package/dist/sync/sync-engine.js.map +1 -1
- package/dist/sync/sync-messages.d.ts +5 -1
- package/dist/sync/sync-messages.d.ts.map +1 -1
- package/dist/sync/sync-messages.js +1 -1
- package/dist/sync/sync-messages.js.map +1 -1
- package/dist/types.d.ts +19 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +4 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +5 -5
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/step.d.ts +8 -0
- package/dist/utils/step.d.ts.map +1 -0
- package/dist/utils/step.js +15 -0
- package/dist/utils/step.js.map +1 -0
- package/docs/README.md +4 -3
- package/docs/actions.md +41 -2
- package/docs/agents.md +13 -10
- package/docs/automations.md +16 -48
- package/docs/blueprints-and-guides.md +2 -2
- package/docs/bots.md +3 -3
- package/docs/building-an-app.md +2 -2
- package/docs/collections.md +2 -4
- package/docs/computed.md +1 -2
- package/docs/node.md +108 -40
- package/docs/proposing-collections.md +3 -3
- package/docs/query-format.md +6 -5
- package/docs/records-and-queries.md +12 -13
- package/docs/sign-in.md +16 -16
- package/docs/spaces.md +0 -5
- package/docs/standard-library.md +6 -8
- package/docs/storage.md +114 -22
- package/docs/usernames.md +1 -1
- package/package.json +15 -25
- package/dist/identity/account-store.d.ts +0 -83
- package/dist/identity/account-store.d.ts.map +0 -1
- package/dist/identity/account-store.js +0 -234
- package/dist/identity/account-store.js.map +0 -1
- package/dist/identity/device-key.d.ts +0 -26
- package/dist/identity/device-key.d.ts.map +0 -1
- package/dist/identity/device-key.js +0 -48
- package/dist/identity/device-key.js.map +0 -1
- package/dist/identity/idb.d.ts +0 -19
- package/dist/identity/idb.d.ts.map +0 -1
- package/dist/identity/idb.js +0 -56
- package/dist/identity/idb.js.map +0 -1
- package/dist/node/actions.d.ts +0 -85
- package/dist/node/actions.d.ts.map +0 -1
- package/dist/node/actions.js +0 -921
- package/dist/node/actions.js.map +0 -1
- package/dist/node/host.d.ts +0 -187
- package/dist/node/host.d.ts.map +0 -1
- package/dist/node/host.js +0 -818
- package/dist/node/host.js.map +0 -1
- package/dist/node/usage.d.ts +0 -32
- package/dist/node/usage.d.ts.map +0 -1
- package/dist/node/usage.js +0 -217
- package/dist/node/usage.js.map +0 -1
- package/dist/node/watch-notifications.d.ts +0 -25
- package/dist/node/watch-notifications.d.ts.map +0 -1
- package/dist/node/watch-notifications.js +0 -166
- package/dist/node/watch-notifications.js.map +0 -1
- package/dist/node/worker.d.ts +0 -83
- package/dist/node/worker.d.ts.map +0 -1
- package/dist/node/worker.js +0 -305
- package/dist/node/worker.js.map +0 -1
- package/dist/node-worker.d.ts +0 -2
- package/dist/node-worker.d.ts.map +0 -1
- package/dist/node-worker.js +0 -16
- package/dist/node-worker.js.map +0 -1
- package/dist/schemas/automations.d.ts +0 -390
- package/dist/schemas/automations.d.ts.map +0 -1
- package/dist/schemas/automations.js +0 -619
- package/dist/schemas/automations.js.map +0 -1
- package/dist/schemas/blueprints.d.ts +0 -122
- package/dist/schemas/blueprints.d.ts.map +0 -1
- package/dist/schemas/blueprints.js +0 -337
- package/dist/schemas/blueprints.js.map +0 -1
- package/dist/schemas/choosing.d.ts +0 -19
- package/dist/schemas/choosing.d.ts.map +0 -1
- package/dist/schemas/choosing.js +0 -69
- package/dist/schemas/choosing.js.map +0 -1
- package/dist/schemas/connectors.d.ts +0 -202
- package/dist/schemas/connectors.d.ts.map +0 -1
- package/dist/schemas/connectors.js +0 -140
- package/dist/schemas/connectors.js.map +0 -1
- package/dist/schemas/cron.d.ts +0 -14
- package/dist/schemas/cron.d.ts.map +0 -1
- package/dist/schemas/cron.js +0 -75
- package/dist/schemas/cron.js.map +0 -1
- package/dist/schemas/geo.d.ts +0 -63
- package/dist/schemas/geo.d.ts.map +0 -1
- package/dist/schemas/geo.js +0 -131
- package/dist/schemas/geo.js.map +0 -1
- package/dist/schemas/guides.d.ts +0 -26
- package/dist/schemas/guides.d.ts.map +0 -1
- package/dist/schemas/guides.js +0 -33
- package/dist/schemas/guides.js.map +0 -1
- package/dist/schemas/library/annotations.d.ts +0 -616
- package/dist/schemas/library/annotations.d.ts.map +0 -1
- package/dist/schemas/library/annotations.js +0 -156
- package/dist/schemas/library/annotations.js.map +0 -1
- package/dist/schemas/library/collections.d.ts +0 -211
- package/dist/schemas/library/collections.d.ts.map +0 -1
- package/dist/schemas/library/collections.js +0 -57
- package/dist/schemas/library/collections.js.map +0 -1
- package/dist/schemas/library/community.d.ts +0 -1136
- package/dist/schemas/library/community.d.ts.map +0 -1
- package/dist/schemas/library/community.js +0 -315
- package/dist/schemas/library/community.js.map +0 -1
- package/dist/schemas/library/life.d.ts +0 -1440
- package/dist/schemas/library/life.d.ts.map +0 -1
- package/dist/schemas/library/life.js +0 -202
- package/dist/schemas/library/life.js.map +0 -1
- package/dist/schemas/library/media.d.ts +0 -1002
- package/dist/schemas/library/media.d.ts.map +0 -1
- package/dist/schemas/library/media.js +0 -110
- package/dist/schemas/library/media.js.map +0 -1
- package/dist/schemas/library/money.d.ts +0 -1221
- package/dist/schemas/library/money.d.ts.map +0 -1
- package/dist/schemas/library/money.js +0 -168
- package/dist/schemas/library/money.js.map +0 -1
- package/dist/schemas/library/planning.d.ts +0 -1107
- package/dist/schemas/library/planning.d.ts.map +0 -1
- package/dist/schemas/library/planning.js +0 -214
- package/dist/schemas/library/planning.js.map +0 -1
- package/dist/schemas/library/publishing.d.ts +0 -1499
- package/dist/schemas/library/publishing.d.ts.map +0 -1
- package/dist/schemas/library/publishing.js +0 -285
- package/dist/schemas/library/publishing.js.map +0 -1
- package/dist/schemas/library/social.d.ts +0 -1257
- package/dist/schemas/library/social.d.ts.map +0 -1
- package/dist/schemas/library/social.js +0 -147
- package/dist/schemas/library/social.js.map +0 -1
- package/dist/schemas/standard.d.ts +0 -21
- package/dist/schemas/standard.d.ts.map +0 -1
- package/dist/schemas/standard.js +0 -39
- package/dist/schemas/standard.js.map +0 -1
- package/dist/session/account-hint.d.ts +0 -13
- package/dist/session/account-hint.d.ts.map +0 -1
- package/dist/session/account-hint.js +0 -54
- package/dist/session/account-hint.js.map +0 -1
- package/dist/session/auth.d.ts +0 -411
- package/dist/session/auth.d.ts.map +0 -1
- package/dist/session/auth.js +0 -1529
- package/dist/session/auth.js.map +0 -1
- package/dist/session/channel-room.d.ts +0 -26
- package/dist/session/channel-room.d.ts.map +0 -1
- package/dist/session/channel-room.js +0 -56
- package/dist/session/channel-room.js.map +0 -1
- package/dist/session/connect-code.d.ts +0 -127
- package/dist/session/connect-code.d.ts.map +0 -1
- package/dist/session/connect-code.js +0 -408
- package/dist/session/connect-code.js.map +0 -1
- package/dist/session/connect.d.ts +0 -386
- package/dist/session/connect.d.ts.map +0 -1
- package/dist/session/connect.js +0 -583
- package/dist/session/connect.js.map +0 -1
- package/dist/session/connection.d.ts +0 -135
- package/dist/session/connection.d.ts.map +0 -1
- package/dist/session/connection.js +0 -215
- package/dist/session/connection.js.map +0 -1
- package/dist/session/credentials.d.ts +0 -30
- package/dist/session/credentials.d.ts.map +0 -1
- package/dist/session/credentials.js +0 -63
- package/dist/session/credentials.js.map +0 -1
- package/dist/session/hosting.d.ts.map +0 -1
- package/dist/session/hosting.js.map +0 -1
- package/dist/session/index.d.ts +0 -29
- package/dist/session/index.d.ts.map +0 -1
- package/dist/session/index.js +0 -21
- package/dist/session/index.js.map +0 -1
- package/dist/session/pairing.d.ts +0 -97
- package/dist/session/pairing.d.ts.map +0 -1
- package/dist/session/pairing.js +0 -251
- package/dist/session/pairing.js.map +0 -1
- package/dist/session/password-strength.d.ts +0 -22
- package/dist/session/password-strength.d.ts.map +0 -1
- package/dist/session/password-strength.js +0 -130
- package/dist/session/password-strength.js.map +0 -1
- package/dist/session/places.d.ts +0 -71
- package/dist/session/places.d.ts.map +0 -1
- package/dist/session/places.js +0 -130
- package/dist/session/places.js.map +0 -1
- package/dist/session/popup.d.ts +0 -13
- package/dist/session/popup.d.ts.map +0 -1
- package/dist/session/popup.js +0 -23
- package/dist/session/popup.js.map +0 -1
- package/dist/session/stay-signed-in.d.ts +0 -49
- package/dist/session/stay-signed-in.d.ts.map +0 -1
- package/dist/session/stay-signed-in.js +0 -141
- package/dist/session/stay-signed-in.js.map +0 -1
- package/dist/storage/blob/directory.d.ts +0 -14
- package/dist/storage/blob/directory.d.ts.map +0 -1
- package/dist/storage/blob/directory.js +0 -87
- package/dist/storage/blob/directory.js.map +0 -1
- package/dist/storage/blob/memory.d.ts +0 -6
- package/dist/storage/blob/memory.d.ts.map +0 -1
- package/dist/storage/blob/memory.js +0 -20
- package/dist/storage/blob/memory.js.map +0 -1
- package/dist/storage/blob/s3.d.ts +0 -16
- package/dist/storage/blob/s3.d.ts.map +0 -1
- package/dist/storage/blob/s3.js +0 -91
- package/dist/storage/blob/s3.js.map +0 -1
- package/dist/storage/directory-access.d.ts +0 -36
- package/dist/storage/directory-access.d.ts.map +0 -1
- package/dist/storage/directory-access.js +0 -89
- package/dist/storage/directory-access.js.map +0 -1
- package/dist/storage/folder-adapter.d.ts +0 -94
- package/dist/storage/folder-adapter.d.ts.map +0 -1
- package/dist/storage/folder-adapter.js +0 -215
- package/dist/storage/folder-adapter.js.map +0 -1
- package/dist/storage/folder-reconcile.d.ts +0 -33
- package/dist/storage/folder-reconcile.d.ts.map +0 -1
- package/dist/storage/folder-reconcile.js.map +0 -1
- package/dist/storage/index.d.ts +0 -6
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/index.js +0 -5
- package/dist/storage/index.js.map +0 -1
- package/dist/storage/indexeddb-adapter.d.ts +0 -8
- package/dist/storage/indexeddb-adapter.d.ts.map +0 -1
- package/dist/storage/indexeddb-adapter.js +0 -103
- package/dist/storage/indexeddb-adapter.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../src/records/key.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../src/records/key.ts"],"names":[],"mappings":"AAsBA,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB,QAA0B,CAAC;AAc1D,2FAA2F;AAC3F,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,OAAqC,CAAC;AAEnF,2GAA2G;AAC3G,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,CAE9D;AAOD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE1E;AAOD,iFAAiF;AACjF,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAK9F;AAED,oFAAoF;AACpF,wBAAsB,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEhF;AAED,0IAA0I;AAC1I,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE9E;AAED,gEAAgE;AAChE,wBAAsB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE7F;AAED,sDAAsD;AACtD,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAKrF;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEzE"}
|
package/dist/records/key.js
CHANGED
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
* Record keys: their shape, and whose they are (spec 02 §4.1).
|
|
3
3
|
*
|
|
4
4
|
* Outside `sys.*`, a record's first version must be at a key of one of two
|
|
5
|
-
* kinds, so that whose a record is
|
|
6
|
-
* take over another's:
|
|
5
|
+
* kinds, so that whose a record is, and which collection it is in, can be
|
|
6
|
+
* read from its key, and no member can take over another's:
|
|
7
7
|
*
|
|
8
|
-
* - **owned**, `<owner>.<name>`: `<owner>` is a hash of the creator's account
|
|
9
|
-
* so only that account can write a first version there
|
|
10
|
-
*
|
|
11
|
-
* an owned key with that
|
|
12
|
-
*
|
|
13
|
-
*
|
|
8
|
+
* - **owned**, `<owner>.<name>`: `<owner>` is a hash of the creator's account
|
|
9
|
+
* and the collection, so only that account can write a first version there,
|
|
10
|
+
* and only in that collection. A fresh key is an owned key with a random
|
|
11
|
+
* name; a key an app chooses (`profile`, a line) is an owned key with that
|
|
12
|
+
* name.
|
|
13
|
+
* - **shared**, `one:<tag>.<hex>`: a `onePer` key that does not name its
|
|
14
|
+
* author (one decision per proposal), anyone's to write first. `<tag>` is a
|
|
15
|
+
* hash of the collection.
|
|
14
16
|
*
|
|
15
17
|
* On its own so that `version` and `links` can both check a key's shape
|
|
16
18
|
* without importing each other.
|
|
@@ -19,57 +21,67 @@ import { base32Encode, sha256 } from '../utils/hash.js';
|
|
|
19
21
|
import { utf8Encode } from '../utils/encoding.js';
|
|
20
22
|
/** What any record key looks like: `profile`, `collection:app.todo.item`, an owned key */
|
|
21
23
|
export const RECORD_KEY_PATTERN = /^[a-z0-9:._-]{1,128}$/;
|
|
22
|
-
/** Characters of the owner part of an owned key: 16 bytes of hash, base32 */
|
|
23
|
-
const
|
|
24
|
+
/** Characters of the owner part of an owned key, and of a shared key's tag: 16 bytes of hash, base32 */
|
|
25
|
+
const TAG_LENGTH = 26;
|
|
24
26
|
/** An owned key: the owner part, a dot, and a name of 1–101 key characters */
|
|
25
27
|
const OWNED_KEY_PATTERN = /^[a-z2-7]{26}\.[a-z0-9:._-]{1,101}$/;
|
|
26
|
-
/** A shared `onePer` key: `one
|
|
27
|
-
const SHARED_KEY_PATTERN = /^one:[0-9a-f]{40}$/;
|
|
28
|
-
/**
|
|
29
|
-
const
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
*/
|
|
35
|
-
export function onePerForm(key) {
|
|
36
|
-
return SHARED_KEY_PATTERN.test(key) ? 'shared' : OWNED_ONE_PER_PATTERN.test(key) ? 'owned' : null;
|
|
37
|
-
}
|
|
28
|
+
/** A shared `onePer` key: `one:`, the collection's tag, a dot, and 20 bytes of HMAC in hex */
|
|
29
|
+
const SHARED_KEY_PATTERN = /^one:[a-z2-7]{26}\.[0-9a-f]{40}$/;
|
|
30
|
+
/** Where a shared key's tag starts, after `one:` */
|
|
31
|
+
const SHARED_TAG_START = 4;
|
|
32
|
+
/** A line's key: `<owner>.line` ({@link lineKey}) */
|
|
33
|
+
const LINE_KEY_PATTERN = /^[a-z2-7]{26}\.line$/;
|
|
34
|
+
/** Whether a key has a line key's form, whoever's line and whichever collection's it is */
|
|
35
|
+
export const hasLineKeyForm = (key) => LINE_KEY_PATTERN.test(key);
|
|
38
36
|
/** Which kind a key is, or null when it is neither (and so no first version outside `sys.*` may use it) */
|
|
39
37
|
export function keyKind(key) {
|
|
40
38
|
return OWNED_KEY_PATTERN.test(key) ? 'owned' : SHARED_KEY_PATTERN.test(key) ? 'shared' : null;
|
|
41
39
|
}
|
|
40
|
+
/** The first 16 bytes of SHA-256 over `input`, in base32 */
|
|
41
|
+
async function tagOf(input) {
|
|
42
|
+
return base32Encode((await sha256(utf8Encode(input))).subarray(0, 16));
|
|
43
|
+
}
|
|
42
44
|
/**
|
|
43
|
-
* The owner part of every key an account owns
|
|
44
|
-
*
|
|
45
|
-
*
|
|
45
|
+
* The owner part of every key an account owns in a collection. Root DIDs are
|
|
46
|
+
* not lower case, so a key names a hash of one; they hold no `|`, so the
|
|
47
|
+
* input reads one way.
|
|
46
48
|
*/
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
return base32Encode(digest.subarray(0, 16));
|
|
49
|
+
export function ownerTag(root, collection) {
|
|
50
|
+
return tagOf(`minca/record-owner/v2|${root}|${collection}`);
|
|
50
51
|
}
|
|
51
|
-
/** The
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
/** The tag that names a collection in its shared keys */
|
|
53
|
+
function sharedKeyTag(collection) {
|
|
54
|
+
return tagOf(`minca/shared-key/v1|${collection}`);
|
|
55
|
+
}
|
|
56
|
+
/** The key `name` has in `root`'s namespace in a collection: `<owner>.<name>` */
|
|
57
|
+
export async function ownedKey(root, collection, name) {
|
|
58
|
+
const key = `${await ownerTag(root, collection)}.${name}`;
|
|
54
59
|
if (!OWNED_KEY_PATTERN.test(key))
|
|
55
60
|
throw new Error('A record key name is 1–101 characters of a–z, 0–9 and : . _ -');
|
|
56
61
|
return key;
|
|
57
62
|
}
|
|
58
|
-
/** A
|
|
59
|
-
export async function
|
|
60
|
-
return
|
|
63
|
+
/** A shared key of a collection's, for a `onePer` HMAC in hex: `one:<tag>.<hex>` */
|
|
64
|
+
export async function sharedKey(collection, hex) {
|
|
65
|
+
return `one:${await sharedKeyTag(collection)}.${hex}`;
|
|
66
|
+
}
|
|
67
|
+
/** A fresh key of `root`'s in a collection: 128 random bits as its name. Random rather than time-based, so it says nothing about when. */
|
|
68
|
+
export function newRecordKey(root, collection) {
|
|
69
|
+
return ownedKey(root, collection, base32Encode(globalThis.crypto.getRandomValues(new Uint8Array(16))));
|
|
70
|
+
}
|
|
71
|
+
/** Whether `key` is an owned key of `root`'s in `collection` */
|
|
72
|
+
export async function ownsKey(key, root, collection) {
|
|
73
|
+
return keyKind(key) === 'owned' && key.slice(0, TAG_LENGTH) === (await ownerTag(root, collection));
|
|
61
74
|
}
|
|
62
|
-
/** Whether `key` is
|
|
63
|
-
export async function
|
|
64
|
-
return keyKind(key) === '
|
|
75
|
+
/** Whether `key` is a shared key of `collection`'s */
|
|
76
|
+
export async function isSharedKeyOf(key, collection) {
|
|
77
|
+
return (keyKind(key) === 'shared' &&
|
|
78
|
+
key.slice(SHARED_TAG_START, SHARED_TAG_START + TAG_LENGTH) === (await sharedKeyTag(collection)));
|
|
65
79
|
}
|
|
66
80
|
/**
|
|
67
|
-
* The key of an account's line in a collection (`spec/
|
|
68
|
-
*
|
|
69
|
-
* collection is hashed, so a line has a key whatever the collection's name.
|
|
81
|
+
* The key of an account's line in a collection (`spec/09-contracts.md`): an
|
|
82
|
+
* owned key, so only that account can write a version in it.
|
|
70
83
|
*/
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
return ownedKey(root, `line:${base32Encode(digest.subarray(0, 16))}`);
|
|
84
|
+
export function lineKey(root, collection) {
|
|
85
|
+
return ownedKey(root, collection, 'line');
|
|
74
86
|
}
|
|
75
87
|
//# sourceMappingURL=key.js.map
|
package/dist/records/key.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key.js","sourceRoot":"","sources":["../../src/records/key.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"key.js","sourceRoot":"","sources":["../../src/records/key.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACxD,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CAChG,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,IAAY,EAAE,UAAkB;IACtD,OAAO,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AAC5C,CAAC"}
|
package/dist/records/links.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* A collection declares its link roles in its definition. The protocol has no
|
|
10
10
|
* built-in kinds of record: well-known shapes like reactions and comments are
|
|
11
|
-
* an optional library (`@minca/
|
|
11
|
+
* an optional library (`@minca/std`), defined into a space like
|
|
12
12
|
* any other collection.
|
|
13
13
|
*/
|
|
14
14
|
import { RECORD_KEY_PATTERN } from './key.js';
|
package/dist/records/rules.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare function onePerSecret(material: {
|
|
|
32
32
|
* The key a record must have under `onePer`, or null when something it names
|
|
33
33
|
* is missing (no such link, no such field). With `@author` among the parts,
|
|
34
34
|
* an owned key of the author's (`records/key.ts`), so no one else can write
|
|
35
|
-
* its first version; without, a shared
|
|
35
|
+
* its first version; without, a shared key of the collection's.
|
|
36
36
|
*/
|
|
37
37
|
export declare function onePerKey(secret: CryptoKey, collection: string, onePer: ReadonlyArray<string>, record: {
|
|
38
38
|
root: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/records/rules.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACxC,6DAA6D;IAC7D,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;CACvB;AAWD,8DAA8D;A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EAAE,MAAM,CAAA;CAAE,GACzE,OAAO,CAAC,SAAS,CAAC,CAGpB;AAKD;;;;;GAKG;AACH,wBAAsB,SAAS,CAC7B,MAAM,EAAE,SAAS,EACjB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,EAC7B,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAClE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQxB;AAgBD,yFAAyF;AACzF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,SAAS,EACxC,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,OAAO,GACZ,MAAM,GAAG,IAAI,CAEf"}
|
package/dist/records/rules.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* before and versions it cites. It is the definition's `contract`, apart from
|
|
13
13
|
* these, because readers judge it and peers don't (`records/contracts.ts`).
|
|
14
14
|
*/
|
|
15
|
-
import { ownedKey } from './key.js';
|
|
15
|
+
import { ownedKey, sharedKey } from './key.js';
|
|
16
16
|
import { canonicalize } from '../schema/version.js';
|
|
17
17
|
import { bytesToHex, utf8Encode } from '../utils/encoding.js';
|
|
18
18
|
import { isRecord, readField } from '../utils/guards.js';
|
|
@@ -64,15 +64,17 @@ const publicSeed = (spaceId) => utf8Encode(`minca/public-one-per/v1|${spaceId}`)
|
|
|
64
64
|
* The key a record must have under `onePer`, or null when something it names
|
|
65
65
|
* is missing (no such link, no such field). With `@author` among the parts,
|
|
66
66
|
* an owned key of the author's (`records/key.ts`), so no one else can write
|
|
67
|
-
* its first version; without, a shared
|
|
67
|
+
* its first version; without, a shared key of the collection's.
|
|
68
68
|
*/
|
|
69
69
|
export async function onePerKey(secret, collection, onePer, record) {
|
|
70
70
|
const parts = onePer.map((part) => onePerPart(part, record));
|
|
71
71
|
if (parts.includes(null))
|
|
72
72
|
return null;
|
|
73
73
|
const mac = await hmacPrefix(secret, [collection, ...parts].join('\n'), 20);
|
|
74
|
-
const
|
|
75
|
-
return onePer.includes('@author')
|
|
74
|
+
const hex = bytesToHex(mac);
|
|
75
|
+
return onePer.includes('@author')
|
|
76
|
+
? ownedKey(record.root, collection, `one:${hex}`)
|
|
77
|
+
: sharedKey(collection, hex);
|
|
76
78
|
}
|
|
77
79
|
/** One part of a `onePer` key's input: `<part>=<value>`, or null when the record has no value for it */
|
|
78
80
|
function onePerPart(part, record) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../src/records/rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../src/records/rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAoB3D,MAAM,KAAK,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAC3C,+CAA+C;AAC/C,MAAM,IAAI,GAAqC;IAC7C,MAAM,EAAE,kDAAkD;IAC1D,IAAI,EAAE,kDAAkD;IACxD,MAAM,EAAE,kDAAkD;IAC1D,KAAK,EAAE,4DAA4D;CACpE,CAAC;AAEF,8DAA8D;AAC9D,MAAM,UAAU,UAAU,CAAC,KAAc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
|
4
|
+
* only the people in `to` and whoever wrote it can read it, with each one's
|
|
5
|
+
* member key (`docs/direct-messages.md`). Other members see who wrote to whom and
|
|
6
|
+
* when, not what. `to` is a topic, so "sent to me" can be asked of a keeper
|
|
7
|
+
* that can't read it. Write and read it through `node.direct`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const direct: {
|
|
10
|
+
readonly name: "std.direct";
|
|
11
|
+
readonly title: "Direct message";
|
|
12
|
+
readonly description: "A message only the people it is sent to can read.";
|
|
13
|
+
readonly schema: {
|
|
14
|
+
readonly type: "object";
|
|
15
|
+
readonly properties: {
|
|
16
|
+
readonly to: {
|
|
17
|
+
readonly type: "array";
|
|
18
|
+
readonly items: {
|
|
19
|
+
type: 'string';
|
|
20
|
+
minLength?: number | undefined;
|
|
21
|
+
maxLength: number;
|
|
22
|
+
} & {
|
|
23
|
+
readonly 'x-kind': "did";
|
|
24
|
+
};
|
|
25
|
+
readonly minItems: 1;
|
|
26
|
+
readonly maxItems: 16;
|
|
27
|
+
readonly description: "Who it is for, not whoever wrote it";
|
|
28
|
+
};
|
|
29
|
+
readonly data: {
|
|
30
|
+
type: 'string';
|
|
31
|
+
minLength?: number | undefined;
|
|
32
|
+
maxLength: number;
|
|
33
|
+
};
|
|
34
|
+
readonly boxes: {
|
|
35
|
+
readonly type: "array";
|
|
36
|
+
readonly maxItems: 17;
|
|
37
|
+
readonly description: "The message key, sealed to each reader: everyone in `to`, and whoever wrote it";
|
|
38
|
+
readonly items: {
|
|
39
|
+
readonly type: "object";
|
|
40
|
+
readonly properties: {
|
|
41
|
+
to: {
|
|
42
|
+
type: 'string';
|
|
43
|
+
minLength?: number | undefined;
|
|
44
|
+
maxLength: number;
|
|
45
|
+
} & {
|
|
46
|
+
readonly 'x-kind': "did";
|
|
47
|
+
};
|
|
48
|
+
sealed: {
|
|
49
|
+
type: 'string';
|
|
50
|
+
minLength?: number | undefined;
|
|
51
|
+
maxLength: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly required: readonly ["to", "sealed"];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly required: readonly ["to", "data", "boxes"];
|
|
59
|
+
};
|
|
60
|
+
readonly topics: readonly ["to"];
|
|
61
|
+
} & import("../index.js").Typed<{
|
|
62
|
+
readonly to: readonly string[];
|
|
63
|
+
readonly data: string;
|
|
64
|
+
readonly boxes: readonly {
|
|
65
|
+
readonly to: string;
|
|
66
|
+
readonly sealed: string;
|
|
67
|
+
}[];
|
|
68
|
+
}>;
|
|
69
|
+
export type Direct = BodyOf<typeof direct>;
|
|
70
|
+
//# sourceMappingURL=direct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct.d.ts","sourceRoot":"","sources":["../../src/schemas/direct.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;;GAMG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqBK,EAAE;;;;;;;wBAAY,MAAM;;;;;;;;;;;;;;;;;;;;EAQ1C,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { define, person, text } from './fragments.js';
|
|
2
|
+
/**
|
|
3
|
+
* A direct message between some members of a space: its text is sealed so
|
|
4
|
+
* only the people in `to` and whoever wrote it can read it, with each one's
|
|
5
|
+
* member key (`docs/direct-messages.md`). Other members see who wrote to whom and
|
|
6
|
+
* when, not what. `to` is a topic, so "sent to me" can be asked of a keeper
|
|
7
|
+
* that can't read it. Write and read it through `node.direct`.
|
|
8
|
+
*/
|
|
9
|
+
export const direct = define({
|
|
10
|
+
name: 'std.direct',
|
|
11
|
+
title: 'Direct message',
|
|
12
|
+
description: 'A message only the people it is sent to can read.',
|
|
13
|
+
schema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
to: {
|
|
17
|
+
type: 'array',
|
|
18
|
+
items: person(),
|
|
19
|
+
minItems: 1,
|
|
20
|
+
maxItems: 16,
|
|
21
|
+
description: 'Who it is for, not whoever wrote it',
|
|
22
|
+
},
|
|
23
|
+
data: text(60000, 'The text, sealed with the message key'),
|
|
24
|
+
boxes: {
|
|
25
|
+
type: 'array',
|
|
26
|
+
maxItems: 17,
|
|
27
|
+
description: 'The message key, sealed to each reader: everyone in `to`, and whoever wrote it',
|
|
28
|
+
items: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
properties: { to: person(), sealed: text(1000) },
|
|
31
|
+
required: ['to', 'sealed'],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
required: ['to', 'data', 'boxes'],
|
|
36
|
+
},
|
|
37
|
+
topics: ['to'],
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=direct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct.js","sourceRoot":"","sources":["../../src/schemas/direct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC;IAC3B,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,mDAAmD;IAChE,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,MAAM,EAAE;gBACf,QAAQ,EAAE,CAAC;gBACX,QAAQ,EAAE,EAAE;gBACZ,WAAW,EAAE,qCAAqC;aACnD;YACD,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,uCAAuC,CAAC;YAC1D,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,EAAE;gBACZ,WAAW,EAAE,gFAAgF;gBAC7F,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;oBAChD,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC;iBAC3B;aACF;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC;KAClC;IACD,MAAM,EAAE,CAAC,IAAI,CAAC;CACf,CAAC,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,79 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* one the same way it learns any other, when someone defines it there:
|
|
6
|
-
*
|
|
7
|
-
* ```ts
|
|
8
|
-
* import { reaction, comment, useSchemas } from '@minca/core/schemas';
|
|
9
|
-
*
|
|
10
|
-
* await useSchemas(node, space.id, [reaction, comment]);
|
|
11
|
-
* await node.records.put(space.id, reaction, { emoji: '👍' }, {
|
|
12
|
-
* links: [{ rel: 'about', to: post.key }],
|
|
13
|
-
* });
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* The point of sharing them is agreement, not privilege: two apps that both
|
|
17
|
-
* use `std.reaction` see each other's reactions. An app that prefers its own
|
|
18
|
-
* shape defines its own collection instead, and loses nothing but that.
|
|
19
|
-
*
|
|
20
|
-
* **Two kinds.** Annotations attach to anything (their links point at
|
|
21
|
-
* `'*'`): reactions, comments, ratings, bookmarks. Nouns are the things apps
|
|
22
|
-
* keep — messages, tasks, events, lists, photos, expenses — shared so that two
|
|
23
|
-
* chat apps, or a board and a to-do list, read the same records. Nouns say
|
|
24
|
-
* exactly what they point at. `standardGroups` lists them all by area.
|
|
25
|
-
*
|
|
26
|
-
* They follow a few conventions: what several people edit is several records,
|
|
27
|
-
* not an array in one body; "one per person" is `onePer`; bodies carry no
|
|
28
|
-
* `createdAt`, since the record has one; times, money, places, people and
|
|
29
|
-
* files use the same `fragments` everywhere; and link roles share one
|
|
30
|
-
* vocabulary — `about`, `replyTo`, `root`, `parent`, `in`, `shares`.
|
|
31
|
-
*
|
|
32
|
-
* Nouns that keep a hand-made order carry a `position`: a string that sorts
|
|
33
|
-
* where the record goes. {@link positionBetween} makes one between two others,
|
|
34
|
-
* so moving a card rewrites only that card, and two people moving cards at
|
|
35
|
-
* once never renumber each other's. It is optional, so a record made by
|
|
36
|
-
* something that knows nothing of order still counts: it goes at the end.
|
|
2
|
+
* The collections the node itself reads and writes, and the pieces
|
|
3
|
+
* definitions are built from. The standard library of record shapes apps
|
|
4
|
+
* share is `@minca/std`.
|
|
37
5
|
*/
|
|
38
|
-
import type { DefineCollection, P2PNode } from '../node/types.js';
|
|
39
|
-
export * from './library/annotations.js';
|
|
40
|
-
export * from './library/social.js';
|
|
41
|
-
export * from './library/publishing.js';
|
|
42
|
-
export * from './library/media.js';
|
|
43
|
-
export * from './library/planning.js';
|
|
44
|
-
export * from './library/life.js';
|
|
45
|
-
export * from './library/money.js';
|
|
46
|
-
export * from './library/community.js';
|
|
47
|
-
export { CELL_PRECISIONS, geohash, cellOf, centreOf, aroundCell, cellsOf, cellsAround, distanceKm, type Cell, } from './geo.js';
|
|
48
6
|
/** The pieces the definitions are built from — a time, money, a place, a file — for definitions of your own */
|
|
49
7
|
export * as fragments from './fragments.js';
|
|
50
|
-
export type { Money, Address, Place
|
|
51
|
-
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
* missing, for the ends. Positions compare as plain strings and never end in
|
|
55
|
-
* `0`, so there is always room for another between any two. Equal positions
|
|
56
|
-
* (two people dropping in the same spot at once) are fine; sort those by key.
|
|
57
|
-
*/
|
|
58
|
-
export declare function positionBetween(before?: string | null, after?: string | null): string;
|
|
59
|
-
/**
|
|
60
|
-
* Makes sure a space knows these collections: defines the ones it has no
|
|
61
|
-
* definition for, and leaves the rest alone — so calling it every time a
|
|
62
|
-
* space opens is fine, and it never bumps a definition someone else owns.
|
|
63
|
-
* A space you cannot write in is skipped.
|
|
64
|
-
*/
|
|
65
|
-
export declare function useSchemas(node: P2PNode, spaceId: string, schemas: ReadonlyArray<DefineCollection>): Promise<void>;
|
|
8
|
+
export type { Money, Address, Place } from './fragments.js';
|
|
9
|
+
export { definedIn, definedNames } from './defined.js';
|
|
10
|
+
export { direct } from './direct.js';
|
|
11
|
+
export type { Direct } from './direct.js';
|
|
66
12
|
export { contact, contactRequest, inbox, knock, spaceInvite } from './contacts.js';
|
|
67
|
-
export type { Contact,
|
|
68
|
-
export
|
|
69
|
-
export {
|
|
70
|
-
export { guidesOf, writeGuide } from './guides.js';
|
|
71
|
-
export { automation, automationRun, activity, ACTIVITY_STATES, ACTIVITY_STALE_SECONDS, activeNow, setActivity, IT, ME, asRunner, INSTRUCT, checkAutomation, automationOf, matching, act, runAutomations, startAutomations, automationsFor, suggestedAutomations, fillAutomationText, } from './automations.js';
|
|
72
|
-
export type { ActiveAutomation, Automation, AutomationAction, AutomationLink, AutomationMatch, AutomationRun, AutomationApp, AutomationSpaces, Activity, ActivityState, AutomationTrigger, AutomationWhen, AutomationNotifier, RunAutomationsOptions, StartAutomationsOptions, } from './automations.js';
|
|
73
|
-
export { connect, connector, CONNECT_REQUEST_SECONDS, askToConnect, askToDisconnect, connectPage, botSettings, BOT_INSTRUCTIONS_MAX, mayConfigure, holdsBotRoles, } from './connectors.js';
|
|
74
|
-
export type { BotSettings, Connect, ConnectAsk, Connector } from './connectors.js';
|
|
75
|
-
export { checkCron, cronMatches, SCHEDULES } from './cron.js';
|
|
76
|
-
export type { BlueprintReview, CollectionReview, ReviewContext } from './blueprints.js';
|
|
77
|
-
export { notifyOn, namesTheRunner } from '../space/own-automations.js';
|
|
78
|
-
export type { AppAutomation } from '../space/own-automations.js';
|
|
13
|
+
export type { Contact, Inbox, Knock, SpaceInviteRecord } from './contacts.js';
|
|
14
|
+
export { notifyOn, ME, asRunner } from '../space/own-automations.js';
|
|
15
|
+
export type { AppAutomation, AutomationApp, AutomationSpaces } from '../space/own-automations.js';
|
|
79
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,+GAA+G;AAC/G,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACnF,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACrE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,70 +1,12 @@
|
|
|
1
|
-
import { definedNames } from './defined.js';
|
|
2
|
-
export * from './library/annotations.js';
|
|
3
|
-
export * from './library/social.js';
|
|
4
|
-
export * from './library/publishing.js';
|
|
5
|
-
export * from './library/media.js';
|
|
6
|
-
export * from './library/planning.js';
|
|
7
|
-
export * from './library/life.js';
|
|
8
|
-
export * from './library/money.js';
|
|
9
|
-
export * from './library/community.js';
|
|
10
|
-
export { CELL_PRECISIONS, geohash, cellOf, centreOf, aroundCell, cellsOf, cellsAround, distanceKm, } from './geo.js';
|
|
11
|
-
/** The pieces the definitions are built from — a time, money, a place, a file — for definitions of your own */
|
|
12
|
-
export * as fragments from './fragments.js';
|
|
13
|
-
export { standardAnnotations, standardGroups, standardNouns, standardSchemas, standardDefinition, } from './standard.js';
|
|
14
|
-
const DIGITS = '0123456789abcdefghijklmnopqrstuvwxyz';
|
|
15
|
-
/**
|
|
16
|
-
* A `position` that sorts after `before` and ahead of `after` — either may be
|
|
17
|
-
* missing, for the ends. Positions compare as plain strings and never end in
|
|
18
|
-
* `0`, so there is always room for another between any two. Equal positions
|
|
19
|
-
* (two people dropping in the same spot at once) are fine; sort those by key.
|
|
20
|
-
*/
|
|
21
|
-
export function positionBetween(before, after) {
|
|
22
|
-
const a = before ?? '';
|
|
23
|
-
let b = after && after > a ? after : null;
|
|
24
|
-
let out = '';
|
|
25
|
-
for (let i = 0;; i++) {
|
|
26
|
-
const low = digitAt(a, i);
|
|
27
|
-
const high = b === null ? DIGITS.length : digitAt(b, i);
|
|
28
|
-
const mid = middleDigit(low, high, i < a.length, b !== null);
|
|
29
|
-
if (mid > low && mid < high)
|
|
30
|
-
return out + DIGITS[mid];
|
|
31
|
-
out += DIGITS[low];
|
|
32
|
-
// Adjacent digits: keep the lower one, and anything above the rest of `a` will do.
|
|
33
|
-
if (low !== high)
|
|
34
|
-
b = null;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const digitAt = (text, i) => (i < text.length ? DIGITS.indexOf(text[i]) : 0);
|
|
38
|
-
/** At an open end, step by one rather than halving, so a list that only grows at one end keeps short positions */
|
|
39
|
-
function middleDigit(low, high, insideBefore, bounded) {
|
|
40
|
-
if (insideBefore && !bounded)
|
|
41
|
-
return low + 1;
|
|
42
|
-
if (!insideBefore && bounded)
|
|
43
|
-
return high - 1;
|
|
44
|
-
return Math.floor((low + high) / 2);
|
|
45
|
-
}
|
|
46
1
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* A space you cannot write in is skipped.
|
|
2
|
+
* The collections the node itself reads and writes, and the pieces
|
|
3
|
+
* definitions are built from. The standard library of record shapes apps
|
|
4
|
+
* share is `@minca/std`.
|
|
51
5
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const known = await definedNames(node, spaceId);
|
|
57
|
-
for (const schema of schemas) {
|
|
58
|
-
if (!known.has(schema.name))
|
|
59
|
-
await node.collections.define(spaceId, schema);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
6
|
+
/** The pieces the definitions are built from — a time, money, a place, a file — for definitions of your own */
|
|
7
|
+
export * as fragments from './fragments.js';
|
|
8
|
+
export { definedIn, definedNames } from './defined.js';
|
|
9
|
+
export { direct } from './direct.js';
|
|
62
10
|
export { contact, contactRequest, inbox, knock, spaceInvite } from './contacts.js';
|
|
63
|
-
export
|
|
64
|
-
export { checkBlueprint, reviewBlueprint, standardCollections, supersededBlueprints, proposeCollections, applyBlueprint, copyBlueprint, } from './blueprints.js';
|
|
65
|
-
export { guidesOf, writeGuide } from './guides.js';
|
|
66
|
-
export { automation, automationRun, activity, ACTIVITY_STATES, ACTIVITY_STALE_SECONDS, activeNow, setActivity, IT, ME, asRunner, INSTRUCT, checkAutomation, automationOf, matching, act, runAutomations, startAutomations, automationsFor, suggestedAutomations, fillAutomationText, } from './automations.js';
|
|
67
|
-
export { connect, connector, CONNECT_REQUEST_SECONDS, askToConnect, askToDisconnect, connectPage, botSettings, BOT_INSTRUCTIONS_MAX, mayConfigure, holdsBotRoles, } from './connectors.js';
|
|
68
|
-
export { checkCron, cronMatches, SCHEDULES } from './cron.js';
|
|
69
|
-
export { notifyOn, namesTheRunner } from '../space/own-automations.js';
|
|
11
|
+
export { notifyOn, ME, asRunner } from '../space/own-automations.js';
|
|
70
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,+GAA+G;AAC/G,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEnF,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -88,9 +88,6 @@ export interface Carrier {
|
|
|
88
88
|
readonly gen?: number;
|
|
89
89
|
/** When the account stopped using it. Kept, so adding it again takes a new carry space. */
|
|
90
90
|
readonly removed?: string;
|
|
91
|
-
/** Added before carry spaces were derived: the carry space made for it, and a view-only invite to it */
|
|
92
|
-
readonly space?: string;
|
|
93
|
-
readonly invite?: string;
|
|
94
91
|
}
|
|
95
92
|
/**
|
|
96
93
|
* The account's registry space, derived — the same on every device.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-registry.d.ts","sourceRoot":"","sources":["../../src/space/account-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,cAAc,EAAS,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWtD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAEhD,kEAAkE;AAClE,eAAO,MAAM,WAAW,YAAY,CAAC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