@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,386 +0,0 @@
|
|
|
1
|
-
import { type Delegation } from '../identity/ucan.js';
|
|
2
|
-
import { type NoteTerms } from '../identity/abilities.js';
|
|
3
|
-
import type { RootSigner } from '../identity/root-signer.js';
|
|
4
|
-
import { type WorkerLike } from '../node/worker.js';
|
|
5
|
-
import type { StoreFactory } from '../node/stores.js';
|
|
6
|
-
import type { Version } from '../types.js';
|
|
7
|
-
import type { CacheConfig, NewSpace, NodeNetworkConfig, P2PNode } from '../node/types.js';
|
|
8
|
-
import { type AutomationProposal } from '../space/own-automations.js';
|
|
9
|
-
import { type KeyValueStore } from './stay-signed-in.js';
|
|
10
|
-
/** What an app asks a home for */
|
|
11
|
-
export interface ConnectRequest {
|
|
12
|
-
readonly v: 1;
|
|
13
|
-
/** The app's key — the note is made out to it */
|
|
14
|
-
readonly audience: string;
|
|
15
|
-
/**
|
|
16
|
-
* That key's signature over what it agreed to (`keyProof`): its DID, how it
|
|
17
|
-
* reached the app (`via`) and whether it asked for records only. So a
|
|
18
|
-
* request can only name a key its sender holds, for what that key asked:
|
|
19
|
-
* disconnecting revokes the key, and must never revoke someone else's.
|
|
20
|
-
*/
|
|
21
|
-
readonly proof: string;
|
|
22
|
-
/** What the app calls itself. Shown, but never trusted: the home shows the origin too. */
|
|
23
|
-
readonly name?: string;
|
|
24
|
-
/**
|
|
25
|
-
* `write` to change the spaces it is given, `read` only to look. `carry` is
|
|
26
|
-
* for a carrier — a browser extension keeping the spaces online — which gets
|
|
27
|
-
* passes and no keys (`connectCarrier`).
|
|
28
|
-
*/
|
|
29
|
-
readonly access: 'read' | 'write' | 'carry';
|
|
30
|
-
/**
|
|
31
|
-
* `spaces` (the default): only the spaces the person picks, and any made for
|
|
32
|
-
* the app. `account`: every space, the account's space list, and making and
|
|
33
|
-
* joining spaces itself — for an app that is a view onto the whole account.
|
|
34
|
-
* Either way the app never gets the seed.
|
|
35
|
-
*/
|
|
36
|
-
readonly scope?: 'spaces' | 'account';
|
|
37
|
-
/** Spaces the home should make for the app, and give it */
|
|
38
|
-
readonly create?: ReadonlyArray<NewSpace>;
|
|
39
|
-
/**
|
|
40
|
-
* The account's contacts: the contacts space, and the contact key that opens
|
|
41
|
-
* contact requests sent to the account. Asking someone, or accepting, also
|
|
42
|
-
* needs `account` scope — both make or join a space for two.
|
|
43
|
-
*/
|
|
44
|
-
readonly contacts?: boolean;
|
|
45
|
-
/** Whether to offer the person's existing spaces to pick from. Default true. */
|
|
46
|
-
readonly chooseSpaces?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* A note that grants writing records and nothing more (`/record`), so
|
|
49
|
-
* every peer refuses its key changing a space's collections or who may do
|
|
50
|
-
* what, or writing in the account's own spaces. No contact key, no spaces
|
|
51
|
-
* made for it, and no carrying.
|
|
52
|
-
*/
|
|
53
|
-
readonly recordsOnly?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* `code`: the key is a program's, which reached the home itself over a
|
|
56
|
-
* connect code (`connect-code.ts`); the home makes such a request, an app
|
|
57
|
-
* never sends one. The home keeps its connection by its key. Absent: an
|
|
58
|
-
* app's own key.
|
|
59
|
-
*/
|
|
60
|
-
readonly via?: 'code';
|
|
61
|
-
/** How many days the note should last, 1–365. The home decides; default 7. */
|
|
62
|
-
readonly days?: number;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* What an app already connected to a home asks for when the person wants to
|
|
66
|
-
* be notified: automations of the account's own, and nothing else. Never part of connecting — a
|
|
67
|
-
* person signing in has asked for nothing yet. The home knows the app by the
|
|
68
|
-
* origin the browser reports, and refuses one it has no connection for, a
|
|
69
|
-
* carrier's and a program's connected by code.
|
|
70
|
-
*/
|
|
71
|
-
export interface ProposeRequest {
|
|
72
|
-
readonly v: 2;
|
|
73
|
-
readonly kind: 'propose';
|
|
74
|
-
/** What it calls itself. Shown, never trusted. */
|
|
75
|
-
readonly name?: string;
|
|
76
|
-
/** 1 to 8 automations to offer the person */
|
|
77
|
-
readonly automations: ReadonlyArray<AutomationProposal>;
|
|
78
|
-
}
|
|
79
|
-
/** What the home answers a {@link ProposeRequest} with, once the person decided */
|
|
80
|
-
export interface Proposed {
|
|
81
|
-
readonly v: 2;
|
|
82
|
-
readonly kind: 'proposed';
|
|
83
|
-
/** The automations added or found, by the person's yes: none when they kept none */
|
|
84
|
-
readonly automations: ReadonlyArray<{
|
|
85
|
-
readonly id: string;
|
|
86
|
-
readonly name: string;
|
|
87
|
-
}>;
|
|
88
|
-
/**
|
|
89
|
-
* For an app given the whole account: every version of those automations,
|
|
90
|
-
* signed, so its node holds them at once rather than once it meets another
|
|
91
|
-
* of the account's devices, which may be long after the home's window closed.
|
|
92
|
-
*/
|
|
93
|
-
readonly versions?: ReadonlyArray<Version>;
|
|
94
|
-
}
|
|
95
|
-
/** Whether a request the home received is a proposal rather than a connection */
|
|
96
|
-
export declare const isProposeRequest: (request: ConnectRequest | ProposeRequest) => request is ProposeRequest;
|
|
97
|
-
/** The longest a home gives a note for */
|
|
98
|
-
export declare const MAX_GRANT_DAYS = 365;
|
|
99
|
-
/** A space an app was given */
|
|
100
|
-
export interface GrantedSpace {
|
|
101
|
-
readonly id: string;
|
|
102
|
-
readonly name: string;
|
|
103
|
-
/** What the app joins it with — carrying the key, for a private space */
|
|
104
|
-
readonly invite: string;
|
|
105
|
-
/**
|
|
106
|
-
* For a private space: the account's member key there (base64url,
|
|
107
|
-
* `deriveMemberKeyBytes`), which opens the space's next key when it
|
|
108
|
-
* changes. It opens nothing else.
|
|
109
|
-
*/
|
|
110
|
-
readonly memberKey?: string;
|
|
111
|
-
}
|
|
112
|
-
/** A grant's format: 2 since its note is a delegation in the UCAN 1.0 profile (spec 01 §7) */
|
|
113
|
-
export declare const GRANT_VERSION = 2;
|
|
114
|
-
/** What the home hands back when the person approves */
|
|
115
|
-
export interface Grant {
|
|
116
|
-
readonly v: typeof GRANT_VERSION;
|
|
117
|
-
/** The account's identity — what the app acts for */
|
|
118
|
-
readonly did: string;
|
|
119
|
-
/** The account's name, for showing who is connected */
|
|
120
|
-
readonly name: string;
|
|
121
|
-
/** The signed note: the account → the app's key, for these spaces, until `expiresAt` */
|
|
122
|
-
readonly note: Delegation;
|
|
123
|
-
readonly access: 'read' | 'write';
|
|
124
|
-
readonly scope: 'spaces' | 'account';
|
|
125
|
-
readonly spaces: ReadonlyArray<GrantedSpace>;
|
|
126
|
-
/**
|
|
127
|
-
* With `account` scope: the key the account's space list is derived from
|
|
128
|
-
* (base64url), so the app sees every space and adds the ones it makes or
|
|
129
|
-
* joins. It opens every private space in the account — which is what whole
|
|
130
|
-
* account access means — but it cannot sign as the account.
|
|
131
|
-
*/
|
|
132
|
-
readonly accountKey?: string;
|
|
133
|
-
/**
|
|
134
|
-
* With `contacts`, or `account` scope: the contact key's private scalar
|
|
135
|
-
* (base64url), which opens contact requests sent to the account
|
|
136
|
-
* (`deriveContactKeyBytes`). It cannot sign as the account.
|
|
137
|
-
*/
|
|
138
|
-
readonly contactKey?: string;
|
|
139
|
-
/** With `contacts`: which of `spaces` is the account's contacts space */
|
|
140
|
-
readonly contactsSpace?: string;
|
|
141
|
-
/** Unix seconds */
|
|
142
|
-
readonly expiresAt: number;
|
|
143
|
-
/** The home that granted it, so the app can go back there */
|
|
144
|
-
readonly home: string;
|
|
145
|
-
/**
|
|
146
|
-
* Relays the home meets peers on. A home someone runs themselves may use
|
|
147
|
-
* different ones from the app, and two peers that share no relay never
|
|
148
|
-
* meet — so the app joins these as well.
|
|
149
|
-
*/
|
|
150
|
-
readonly relays?: ReadonlyArray<string>;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* What the home hands a carrier: a way into its carry space, which holds a
|
|
154
|
-
* pass for each of the account's spaces — and nothing that reads or writes
|
|
155
|
-
* them (`space/pass.ts`).
|
|
156
|
-
*/
|
|
157
|
-
export interface CarryGrant {
|
|
158
|
-
readonly v: 1;
|
|
159
|
-
readonly kind: 'carry';
|
|
160
|
-
/** The account it carries for */
|
|
161
|
-
readonly did: string;
|
|
162
|
-
/** The account's name, for showing whose spaces these are */
|
|
163
|
-
readonly name: string;
|
|
164
|
-
/** The carry space, and the view-only invite to it */
|
|
165
|
-
readonly carry: {
|
|
166
|
-
readonly space: string;
|
|
167
|
-
readonly invite: string;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Where the account keeps its data, when it lives in a pod: the path inside
|
|
171
|
-
* the pod folder, and the folder's name to help the person find it. Null
|
|
172
|
-
* when the account lives in the home's browser storage.
|
|
173
|
-
*/
|
|
174
|
-
readonly pod: {
|
|
175
|
-
readonly dataPath: string;
|
|
176
|
-
readonly folder: string;
|
|
177
|
-
} | null;
|
|
178
|
-
readonly relays?: ReadonlyArray<string>;
|
|
179
|
-
/** The home that granted it */
|
|
180
|
-
readonly home: string;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Turns what a person typed into a home's connect page:
|
|
184
|
-
* `minca.example.com` → `https://minca.example.com/connect`. Plain `http` only
|
|
185
|
-
* for this machine, where development happens.
|
|
186
|
-
* @throws When it is not a web address
|
|
187
|
-
*/
|
|
188
|
-
export declare function homeAddress(input: string): string;
|
|
189
|
-
/**
|
|
190
|
-
* The terms of the note a grant carries, for these spaces. Writing is every
|
|
191
|
-
* command; `records` is records only, for a key the account trusts less: it
|
|
192
|
-
* can't define collections, change who may do what, or write for the
|
|
193
|
-
* account (`identity/abilities.ts`).
|
|
194
|
-
*/
|
|
195
|
-
export declare function grantTerms(access: 'read' | 'write' | 'records', spaceIds: ReadonlyArray<string> | 'all'): NoteTerms;
|
|
196
|
-
/**
|
|
197
|
-
* What a key agrees to in a connect request: how it reached the home, how
|
|
198
|
-
* much it asks for, and, for a program's key handed over a code, the home it
|
|
199
|
-
* was handed to.
|
|
200
|
-
*/
|
|
201
|
-
export type KeyTerms =
|
|
202
|
-
/** An app's own key */
|
|
203
|
-
{
|
|
204
|
-
readonly via: 'popup';
|
|
205
|
-
readonly recordsOnly: boolean;
|
|
206
|
-
}
|
|
207
|
-
/** A program's key, handed to the home at `origin` over a connect code */
|
|
208
|
-
| {
|
|
209
|
-
readonly via: 'code';
|
|
210
|
-
readonly recordsOnly: boolean;
|
|
211
|
-
readonly origin: string;
|
|
212
|
-
};
|
|
213
|
-
/** The terms a request names, as the home received it from `origin` */
|
|
214
|
-
export declare const requestTerms: (request: Pick<ConnectRequest, 'via' | 'recordsOnly'>, origin: string) => KeyTerms;
|
|
215
|
-
/** A key's proof that it holds itself, for a connect request with these terms (`ConnectRequest.proof`) */
|
|
216
|
-
export declare function keyProof(key: {
|
|
217
|
-
readonly keys: CryptoKeyPair;
|
|
218
|
-
readonly did: string;
|
|
219
|
-
}, terms?: KeyTerms): Promise<string>;
|
|
220
|
-
/** Whether `proof` was made by the key `audience` names, for a request with these terms */
|
|
221
|
-
export declare function checkKeyProof(audience: string, proof: unknown, terms: KeyTerms): Promise<boolean>;
|
|
222
|
-
export interface AppKey {
|
|
223
|
-
readonly keys: CryptoKeyPair;
|
|
224
|
-
readonly did: string;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* This app's key: made once, kept in this site's IndexedDB, and never
|
|
228
|
-
* exportable — a script that gets into the page can sign with it while it is
|
|
229
|
-
* there, but cannot carry it off.
|
|
230
|
-
*/
|
|
231
|
-
export declare function appKey(name?: string): Promise<AppKey>;
|
|
232
|
-
/** Forgets this app's key. The next connection makes a new one. */
|
|
233
|
-
export declare function forgetAppKey(name?: string): Promise<void>;
|
|
234
|
-
export interface ConnectOptions {
|
|
235
|
-
/** The home's connect page, e.g. `https://minca.example/connect` */
|
|
236
|
-
readonly home: string;
|
|
237
|
-
/** What to ask for; `audience`, `proof` and `via` are filled in */
|
|
238
|
-
readonly request: Omit<ConnectRequest, 'v' | 'audience' | 'proof' | 'via'>;
|
|
239
|
-
/** The key to ask for, or its promise, awaited once the popup is open. Default: {@link appKey} under `keyName`. */
|
|
240
|
-
readonly key?: AppKey | Promise<AppKey>;
|
|
241
|
-
/** Which of this app's keys to use when `key` is not given. Default `default`. */
|
|
242
|
-
readonly keyName?: string;
|
|
243
|
-
/** How long to wait for the person. Default 10 minutes. */
|
|
244
|
-
readonly timeoutMs?: number;
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Opens the home and asks for access. Call it from a click — browsers only
|
|
248
|
-
* allow a popup that a person asked for.
|
|
249
|
-
*
|
|
250
|
-
* @returns The grant, checked: signed by the account, made out to this app's key
|
|
251
|
-
* @throws When the popup is blocked, closed, denied, or the answer does not check out
|
|
252
|
-
*/
|
|
253
|
-
export declare function connectToHome(options: ConnectOptions): Promise<Grant>;
|
|
254
|
-
/**
|
|
255
|
-
* Asks a home to use this carrier — a browser extension, say — for the
|
|
256
|
-
* account. Call it from a click, in a page that stays open until the answer
|
|
257
|
-
* comes: an extension's toolbar popup closes the moment the home's window
|
|
258
|
-
* takes focus, and the answer would have nowhere to go.
|
|
259
|
-
*
|
|
260
|
-
* @param options.key The carrier's own key; it becomes its name to peers
|
|
261
|
-
* @returns The grant, checked: an invite to a private carry space the account made
|
|
262
|
-
*/
|
|
263
|
-
export declare function connectCarrier(options: {
|
|
264
|
-
readonly home: string;
|
|
265
|
-
readonly key: AppKey;
|
|
266
|
-
readonly name?: string;
|
|
267
|
-
readonly timeoutMs?: number;
|
|
268
|
-
}): Promise<CarryGrant>;
|
|
269
|
-
/**
|
|
270
|
-
* Offers the person automations that notify them, from an app already connected to their
|
|
271
|
-
* home. Call it from a click on something that asked for it — "Notify me" —
|
|
272
|
-
* in a page that stays open: the home opens in a popup, and the person keeps
|
|
273
|
-
* the ones they want. The app shows the notifications itself
|
|
274
|
-
* (`watchNotifications`).
|
|
275
|
-
*
|
|
276
|
-
* @param options.home The home it connected to — a grant's `home`
|
|
277
|
-
* @returns What the home added or found; an empty list when the person kept none
|
|
278
|
-
* @throws When the popup is blocked, closed or denied, or the home knows no connection from here
|
|
279
|
-
*/
|
|
280
|
-
export declare function proposeToHome(options: {
|
|
281
|
-
readonly home: string;
|
|
282
|
-
readonly automations: ReadonlyArray<AutomationProposal>;
|
|
283
|
-
readonly name?: string;
|
|
284
|
-
readonly timeoutMs?: number;
|
|
285
|
-
}): Promise<Proposed>;
|
|
286
|
-
/**
|
|
287
|
-
* Refuses a grant that is not a valid note from the account to this key, or,
|
|
288
|
-
* when records only were asked for, one that grants more.
|
|
289
|
-
*/
|
|
290
|
-
export declare function checkGrant(grant: Grant, audience: string, asked?: {
|
|
291
|
-
readonly recordsOnly?: boolean;
|
|
292
|
-
}): Promise<void>;
|
|
293
|
-
/**
|
|
294
|
-
* A signer that answers with the note the home gave — the app holds nothing
|
|
295
|
-
* else. Given a getter, it answers with whichever grant is current.
|
|
296
|
-
*/
|
|
297
|
-
export declare function grantSigner(grant: Grant | (() => Grant | null)): RootSigner;
|
|
298
|
-
/** Whether a grant's note has run out */
|
|
299
|
-
export declare const grantExpired: (grant: Pick<Grant, 'expiresAt'>) => boolean;
|
|
300
|
-
/**
|
|
301
|
-
* Watches a node started under a grant: `onExpired` once its note runs out,
|
|
302
|
-
* `onRevoked` for each space where the home revoked its key.
|
|
303
|
-
* @returns How to stop watching
|
|
304
|
-
*/
|
|
305
|
-
export declare function watchGrant(node: Pick<P2PNode, 'subscribe'>, grant: Pick<Grant, 'expiresAt'>, on: {
|
|
306
|
-
readonly onExpired?: () => void;
|
|
307
|
-
readonly onRevoked?: (space: string) => void;
|
|
308
|
-
}): () => void;
|
|
309
|
-
/** Whether a kept grant still works: one kept in an older format holds a note no peer reads now */
|
|
310
|
-
export declare const usableGrant: (grant: Grant | null) => boolean;
|
|
311
|
-
/**
|
|
312
|
-
* Starts a node acting for the account, under a grant.
|
|
313
|
-
*
|
|
314
|
-
* It joins the granted spaces (again, harmlessly, on later starts) and keeps
|
|
315
|
-
* its data in this site's storage. It has no account key: it sees the spaces
|
|
316
|
-
* it was given, not the account's whole list.
|
|
317
|
-
*
|
|
318
|
-
* In a space that names a keeper it holds only the collections the app uses
|
|
319
|
-
* (`cache`); pass `cache: false` to hold every space whole.
|
|
320
|
-
*/
|
|
321
|
-
export declare function startConnectedNode(params: {
|
|
322
|
-
readonly grant: Grant;
|
|
323
|
-
readonly key?: AppKey;
|
|
324
|
-
readonly network?: NodeNetworkConfig;
|
|
325
|
-
readonly stores?: StoreFactory;
|
|
326
|
-
readonly cache?: CacheConfig | false;
|
|
327
|
-
/** Runs the node in a worker, off the page's main thread. Not with `stores`, which a worker can't be handed. */
|
|
328
|
-
readonly worker?: () => WorkerLike;
|
|
329
|
-
}): Promise<P2PNode>;
|
|
330
|
-
/**
|
|
331
|
-
* What a node started under a grant takes from it: the keys it carries, and
|
|
332
|
-
* the home's relays as well as the app's, so the two always share one.
|
|
333
|
-
*/
|
|
334
|
-
export declare function nodeOptionsFromGrant(grant: Grant, relays?: ReadonlyArray<string>): {
|
|
335
|
-
relays: string[];
|
|
336
|
-
accountKey?: Uint8Array<ArrayBuffer> | undefined;
|
|
337
|
-
contactKey?: Uint8Array<ArrayBuffer> | undefined;
|
|
338
|
-
contactsSpace?: string | undefined;
|
|
339
|
-
accountName?: string | undefined;
|
|
340
|
-
};
|
|
341
|
-
/**
|
|
342
|
-
* Joins the spaces a grant names that the node doesn't hold yet: again,
|
|
343
|
-
* harmlessly, on later starts. A space that won't join throws, unless
|
|
344
|
-
* `onError` takes it and the rest are joined.
|
|
345
|
-
*/
|
|
346
|
-
export declare function joinGranted(node: P2PNode, grant: Grant, onError?: (error: unknown) => void): Promise<void>;
|
|
347
|
-
/** An account an app is connected to: its grant, and the name of the app key it is made out to ({@link appKey}) */
|
|
348
|
-
export interface KeptGrant {
|
|
349
|
-
readonly grant: Grant;
|
|
350
|
-
readonly keyName: string;
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* Where an app keeps its grants between visits: one per account, each made
|
|
354
|
-
* out to a key of its own, so two accounts never show peers one key.
|
|
355
|
-
*/
|
|
356
|
-
export declare function grantStore(storage?: KeyValueStore | null, key?: string): {
|
|
357
|
-
/** Every account, the one connected first first; an expired grant stays, to show and renew */
|
|
358
|
-
list: () => ReadonlyArray<KeptGrant>;
|
|
359
|
-
get: (did: string) => KeptGrant | null;
|
|
360
|
-
save(grant: Grant, keyName: string): void;
|
|
361
|
-
forget: (did: string) => void;
|
|
362
|
-
};
|
|
363
|
-
/** A request as the home received it */
|
|
364
|
-
export interface IncomingRequest {
|
|
365
|
-
readonly request: ConnectRequest | ProposeRequest;
|
|
366
|
-
/** Where it came from, as the browser reports it — the only name to trust */
|
|
367
|
-
readonly origin: string;
|
|
368
|
-
/** For a program connected by code: the six digits the person gives the program, which keeps its note only then */
|
|
369
|
-
readonly check?: string;
|
|
370
|
-
/**
|
|
371
|
-
* Sends the answer back to that origin, and closes the window — once
|
|
372
|
-
* `closeAfter` settles, when given: what this window's node wrote for the
|
|
373
|
-
* asker may still have to reach it.
|
|
374
|
-
*/
|
|
375
|
-
approve(answer: Omit<Grant, 'home'> | Omit<CarryGrant, 'home'> | Proposed, closeAfter?: Promise<unknown>): void;
|
|
376
|
-
/** Says no, and closes the window */
|
|
377
|
-
deny(reason?: string): void;
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* Waits for the app that opened this page to say what it wants. It says hello
|
|
381
|
-
* once, and listens long: on a phone the app's tab behind this one may not run
|
|
382
|
-
* for a while, and its request (which it repeats) comes when it does.
|
|
383
|
-
* @returns The request, or null when this page was not opened by an app, the app's window closed, or none came in time
|
|
384
|
-
*/
|
|
385
|
-
export declare function receiveConnectRequest(timeoutMs?: number): Promise<IncomingRequest | null>;
|
|
386
|
-
//# sourceMappingURL=connect.d.ts.map
|
|
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