@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,1136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Community and governance: polls and votes, proposals and the decisions
|
|
3
|
-
* they come to, goals and pledges, announcements, badges. And settings, for
|
|
4
|
-
* apps that keep a person's choices in a space.
|
|
5
|
-
*
|
|
6
|
-
* A decision and a goal reached are proven, not declared: each cites the
|
|
7
|
-
* records that prove it, and every device checks the proof (02 §7.6).
|
|
8
|
-
*/
|
|
9
|
-
import type { Contract } from '../../records/contracts.js';
|
|
10
|
-
import type { BodyOf } from '../../query/types.js';
|
|
11
|
-
/**
|
|
12
|
-
* A question with fixed options. The options cannot change once it is asked —
|
|
13
|
-
* votes point at them by position — but whoever asked can close it.
|
|
14
|
-
*/
|
|
15
|
-
export declare const poll: {
|
|
16
|
-
readonly name: "std.poll";
|
|
17
|
-
readonly title: "Poll";
|
|
18
|
-
readonly description: "A question with options to vote on.";
|
|
19
|
-
readonly schema: {
|
|
20
|
-
readonly type: "object";
|
|
21
|
-
readonly properties: {
|
|
22
|
-
readonly question: {
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly minLength: 1;
|
|
25
|
-
readonly maxLength: 500;
|
|
26
|
-
};
|
|
27
|
-
readonly options: {
|
|
28
|
-
readonly type: "array";
|
|
29
|
-
readonly items: {
|
|
30
|
-
readonly type: "string";
|
|
31
|
-
readonly minLength: 1;
|
|
32
|
-
readonly maxLength: 200;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
readonly closed: {
|
|
36
|
-
readonly type: "boolean";
|
|
37
|
-
readonly description: "No more votes, as the asker sees it";
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
readonly required: readonly ["question", "options"];
|
|
41
|
-
};
|
|
42
|
-
readonly rules: {
|
|
43
|
-
readonly fixed: readonly ["options"];
|
|
44
|
-
};
|
|
45
|
-
} & import("../../index.js").Typed<{
|
|
46
|
-
readonly question: string;
|
|
47
|
-
readonly options: readonly string[];
|
|
48
|
-
readonly closed?: boolean | undefined;
|
|
49
|
-
}>;
|
|
50
|
-
export type Poll = BodyOf<typeof poll>;
|
|
51
|
-
/**
|
|
52
|
-
* One person's vote on a poll or proposal: the position of their choice in
|
|
53
|
-
* its options. For more than one choice, or a ranking, `choices` lists them
|
|
54
|
-
* in order and `choice` is the first. One per person per poll — voting again
|
|
55
|
-
* changes it; deleting takes it back.
|
|
56
|
-
*/
|
|
57
|
-
export declare const vote: {
|
|
58
|
-
readonly name: "std.vote";
|
|
59
|
-
readonly title: "Vote";
|
|
60
|
-
readonly description: "One person’s vote on a std.poll, changed by voting again. To vote on a std.proposal, use std.ballot: it is final and counts toward a decision.";
|
|
61
|
-
readonly schema: {
|
|
62
|
-
readonly type: "object";
|
|
63
|
-
readonly properties: {
|
|
64
|
-
readonly respondingTo: {
|
|
65
|
-
type: 'string';
|
|
66
|
-
minLength?: number | undefined;
|
|
67
|
-
maxLength: number;
|
|
68
|
-
} & {
|
|
69
|
-
readonly 'x-kind': "did";
|
|
70
|
-
};
|
|
71
|
-
readonly choice: {
|
|
72
|
-
readonly type: "integer";
|
|
73
|
-
readonly minimum: 0;
|
|
74
|
-
readonly 'x-choicesFrom': {
|
|
75
|
-
readonly rel: "about";
|
|
76
|
-
readonly field: "options";
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
readonly choices: {
|
|
80
|
-
readonly type: "array";
|
|
81
|
-
readonly maxItems: 100;
|
|
82
|
-
readonly description: "Every choice, most preferred first, when there are several";
|
|
83
|
-
readonly items: {
|
|
84
|
-
readonly type: "integer";
|
|
85
|
-
readonly minimum: 0;
|
|
86
|
-
readonly 'x-choicesFrom': {
|
|
87
|
-
readonly rel: "about";
|
|
88
|
-
readonly field: "options";
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
readonly required: readonly ["choice"];
|
|
94
|
-
};
|
|
95
|
-
readonly links: {
|
|
96
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
97
|
-
};
|
|
98
|
-
readonly rules: {
|
|
99
|
-
readonly onePer: readonly ["@author", "link:about"];
|
|
100
|
-
};
|
|
101
|
-
readonly topics: readonly ["respondingTo"];
|
|
102
|
-
} & import("../../index.js").Typed<{
|
|
103
|
-
readonly respondingTo?: string | undefined;
|
|
104
|
-
readonly choice: number;
|
|
105
|
-
readonly choices?: readonly number[] | undefined;
|
|
106
|
-
}>;
|
|
107
|
-
export type Vote = BodyOf<typeof vote>;
|
|
108
|
-
/** Something put to the group to decide, by a `std.ballot` on one of its options each. */
|
|
109
|
-
export declare const proposal: {
|
|
110
|
-
readonly name: "std.proposal";
|
|
111
|
-
readonly title: "Proposal";
|
|
112
|
-
readonly description: "Something put to the group to decide: people cast a std.ballot on its options, and a std.decision proves the outcome. For a quick question, use std.poll.";
|
|
113
|
-
readonly schema: {
|
|
114
|
-
readonly type: "object";
|
|
115
|
-
readonly properties: {
|
|
116
|
-
readonly title: {
|
|
117
|
-
type: 'string';
|
|
118
|
-
minLength?: number | undefined;
|
|
119
|
-
maxLength: number;
|
|
120
|
-
};
|
|
121
|
-
readonly body: {
|
|
122
|
-
type: 'string';
|
|
123
|
-
minLength?: number | undefined;
|
|
124
|
-
maxLength: number;
|
|
125
|
-
};
|
|
126
|
-
readonly options: {
|
|
127
|
-
readonly type: "array";
|
|
128
|
-
readonly minItems: 1;
|
|
129
|
-
readonly maxItems: 20;
|
|
130
|
-
readonly items: {
|
|
131
|
-
type: 'string';
|
|
132
|
-
minLength?: number | undefined;
|
|
133
|
-
maxLength: number;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
readonly closesAt: {
|
|
137
|
-
type: 'string';
|
|
138
|
-
minLength?: number | undefined;
|
|
139
|
-
maxLength: number;
|
|
140
|
-
} & {
|
|
141
|
-
readonly 'x-kind': "when";
|
|
142
|
-
};
|
|
143
|
-
readonly status: {
|
|
144
|
-
enum: ("open" | "passed" | "rejected" | "withdrawn")[];
|
|
145
|
-
};
|
|
146
|
-
readonly quorum: {
|
|
147
|
-
type: 'integer';
|
|
148
|
-
minimum: number;
|
|
149
|
-
maximum?: number | undefined;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
readonly required: readonly ["title", "options"];
|
|
153
|
-
};
|
|
154
|
-
readonly rules: {
|
|
155
|
-
readonly fixed: readonly ["options"];
|
|
156
|
-
};
|
|
157
|
-
} & import("../../index.js").Typed<{
|
|
158
|
-
readonly title: string;
|
|
159
|
-
readonly body?: string | undefined;
|
|
160
|
-
readonly options: readonly string[];
|
|
161
|
-
readonly closesAt?: string | undefined;
|
|
162
|
-
readonly status?: "open" | "passed" | "rejected" | "withdrawn" | undefined;
|
|
163
|
-
readonly quorum?: number | undefined;
|
|
164
|
-
}>;
|
|
165
|
-
export type Proposal = BodyOf<typeof proposal>;
|
|
166
|
-
/**
|
|
167
|
-
* One person's final say on a proposal: the position of their choice in its
|
|
168
|
-
* options. Unlike a `std.vote`, it can't be changed once cast, so a
|
|
169
|
-
* `std.decision` can cite it and mean it.
|
|
170
|
-
*/
|
|
171
|
-
export declare const ballot: {
|
|
172
|
-
readonly name: "std.ballot";
|
|
173
|
-
readonly title: "Ballot";
|
|
174
|
-
readonly description: "One person’s final vote on a std.proposal: it can’t be changed, so a std.decision can count it. For a poll, use std.vote.";
|
|
175
|
-
readonly schema: {
|
|
176
|
-
readonly type: "object";
|
|
177
|
-
readonly properties: {
|
|
178
|
-
readonly respondingTo: {
|
|
179
|
-
type: 'string';
|
|
180
|
-
minLength?: number | undefined;
|
|
181
|
-
maxLength: number;
|
|
182
|
-
} & {
|
|
183
|
-
readonly 'x-kind': "did";
|
|
184
|
-
};
|
|
185
|
-
readonly choice: {
|
|
186
|
-
readonly type: "integer";
|
|
187
|
-
readonly minimum: 0;
|
|
188
|
-
readonly 'x-choicesFrom': {
|
|
189
|
-
readonly rel: "about";
|
|
190
|
-
readonly field: "options";
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
readonly required: readonly ["choice"];
|
|
195
|
-
};
|
|
196
|
-
readonly links: {
|
|
197
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
198
|
-
};
|
|
199
|
-
readonly rules: {
|
|
200
|
-
readonly onePer: readonly ["@author", "link:about"];
|
|
201
|
-
readonly fixed: readonly ["choice"];
|
|
202
|
-
};
|
|
203
|
-
readonly topics: readonly ["respondingTo"];
|
|
204
|
-
} & import("../../index.js").Typed<{
|
|
205
|
-
readonly respondingTo?: string | undefined;
|
|
206
|
-
readonly choice: number;
|
|
207
|
-
}>;
|
|
208
|
-
export type Ballot = BodyOf<typeof ballot>;
|
|
209
|
-
/**
|
|
210
|
-
* What a proposal came to, proven: it cites the proposal as first put and
|
|
211
|
-
* enough ballots for one option, from different people, to reach its
|
|
212
|
-
* quorum. Anyone may write it once the ballots are in; every device checks.
|
|
213
|
-
*/
|
|
214
|
-
export declare const decision: {
|
|
215
|
-
readonly name: "std.decision";
|
|
216
|
-
readonly title: "Decision";
|
|
217
|
-
readonly description: "What a proposal came to, proven by the ballots it cites.";
|
|
218
|
-
readonly schema: {
|
|
219
|
-
readonly type: "object";
|
|
220
|
-
readonly properties: {
|
|
221
|
-
readonly outcome: {
|
|
222
|
-
readonly type: "integer";
|
|
223
|
-
readonly minimum: 0;
|
|
224
|
-
readonly 'x-choicesFrom': {
|
|
225
|
-
readonly rel: "about";
|
|
226
|
-
readonly field: "options";
|
|
227
|
-
};
|
|
228
|
-
readonly description: "The option decided on";
|
|
229
|
-
};
|
|
230
|
-
readonly proposal: {
|
|
231
|
-
type: 'string';
|
|
232
|
-
minLength?: number | undefined;
|
|
233
|
-
maxLength: number;
|
|
234
|
-
};
|
|
235
|
-
readonly ballots: {
|
|
236
|
-
readonly type: "array";
|
|
237
|
-
readonly maxItems: 256;
|
|
238
|
-
readonly items: {
|
|
239
|
-
type: 'string';
|
|
240
|
-
minLength?: number | undefined;
|
|
241
|
-
maxLength: number;
|
|
242
|
-
};
|
|
243
|
-
readonly description: "Ids of the ballots it counts";
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
readonly required: readonly ["outcome", "proposal", "ballots"];
|
|
247
|
-
};
|
|
248
|
-
readonly links: {
|
|
249
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
250
|
-
};
|
|
251
|
-
readonly rules: {
|
|
252
|
-
readonly onePer: readonly ["link:about"];
|
|
253
|
-
};
|
|
254
|
-
readonly contract: {
|
|
255
|
-
check: readonly Contract[];
|
|
256
|
-
};
|
|
257
|
-
} & import("../../index.js").Typed<{
|
|
258
|
-
readonly outcome: number;
|
|
259
|
-
readonly proposal: string;
|
|
260
|
-
readonly ballots: readonly string[];
|
|
261
|
-
}>;
|
|
262
|
-
export type Decision = BodyOf<typeof decision>;
|
|
263
|
-
/**
|
|
264
|
-
* Something the group reaches together, a unit at a time: "40 people", "5000
|
|
265
|
-
* NOK", "100 hours". People pledge toward it; `std.goal-reached` proves it.
|
|
266
|
-
*/
|
|
267
|
-
export declare const goal: {
|
|
268
|
-
readonly name: "std.goal";
|
|
269
|
-
readonly title: "Goal";
|
|
270
|
-
readonly description: "A target the group reaches together, pledge by pledge.";
|
|
271
|
-
readonly schema: {
|
|
272
|
-
readonly type: "object";
|
|
273
|
-
readonly properties: {
|
|
274
|
-
title: {
|
|
275
|
-
type: 'string';
|
|
276
|
-
minLength?: number | undefined;
|
|
277
|
-
maxLength: number;
|
|
278
|
-
};
|
|
279
|
-
body: {
|
|
280
|
-
type: 'string';
|
|
281
|
-
minLength?: number | undefined;
|
|
282
|
-
maxLength: number;
|
|
283
|
-
};
|
|
284
|
-
target: {
|
|
285
|
-
type: 'integer';
|
|
286
|
-
minimum: number;
|
|
287
|
-
maximum?: number | undefined;
|
|
288
|
-
};
|
|
289
|
-
unit: {
|
|
290
|
-
type: 'string';
|
|
291
|
-
minLength?: number | undefined;
|
|
292
|
-
maxLength: number;
|
|
293
|
-
};
|
|
294
|
-
closesAt: {
|
|
295
|
-
type: 'string';
|
|
296
|
-
minLength?: number | undefined;
|
|
297
|
-
maxLength: number;
|
|
298
|
-
} & {
|
|
299
|
-
readonly 'x-kind': "when";
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
readonly required: readonly ["title", "target", "unit"];
|
|
303
|
-
};
|
|
304
|
-
readonly rules: {
|
|
305
|
-
readonly fixed: readonly ["target", "unit"];
|
|
306
|
-
};
|
|
307
|
-
} & import("../../index.js").Typed<{
|
|
308
|
-
readonly title: string;
|
|
309
|
-
readonly body?: string | undefined;
|
|
310
|
-
readonly target: number;
|
|
311
|
-
readonly unit: string;
|
|
312
|
-
readonly closesAt?: string | undefined;
|
|
313
|
-
}>;
|
|
314
|
-
export type Goal = BodyOf<typeof goal>;
|
|
315
|
-
/** One person's pledge toward a goal, in its units: once each, not changed once made. */
|
|
316
|
-
export declare const pledge: {
|
|
317
|
-
readonly name: "std.pledge";
|
|
318
|
-
readonly title: "Pledge";
|
|
319
|
-
readonly description: "A promise toward a goal: once per person, not changed once made.";
|
|
320
|
-
readonly schema: {
|
|
321
|
-
readonly type: "object";
|
|
322
|
-
readonly properties: {
|
|
323
|
-
respondingTo: {
|
|
324
|
-
type: 'string';
|
|
325
|
-
minLength?: number | undefined;
|
|
326
|
-
maxLength: number;
|
|
327
|
-
} & {
|
|
328
|
-
readonly 'x-kind': "did";
|
|
329
|
-
};
|
|
330
|
-
amount: {
|
|
331
|
-
type: 'integer';
|
|
332
|
-
minimum: number;
|
|
333
|
-
maximum?: number | undefined;
|
|
334
|
-
};
|
|
335
|
-
note: {
|
|
336
|
-
type: 'string';
|
|
337
|
-
minLength?: number | undefined;
|
|
338
|
-
maxLength: number;
|
|
339
|
-
};
|
|
340
|
-
};
|
|
341
|
-
readonly required: readonly ["amount"];
|
|
342
|
-
};
|
|
343
|
-
readonly links: {
|
|
344
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
345
|
-
};
|
|
346
|
-
readonly rules: {
|
|
347
|
-
readonly onePer: readonly ["@author", "link:about"];
|
|
348
|
-
readonly fixed: readonly ["amount"];
|
|
349
|
-
};
|
|
350
|
-
readonly topics: readonly ["respondingTo"];
|
|
351
|
-
} & import("../../index.js").Typed<{
|
|
352
|
-
readonly respondingTo?: string | undefined;
|
|
353
|
-
readonly amount: number;
|
|
354
|
-
readonly note?: string | undefined;
|
|
355
|
-
}>;
|
|
356
|
-
export type Pledge = BodyOf<typeof pledge>;
|
|
357
|
-
/** A goal reached, proven: it cites the goal as first set and pledges that add up to its target. */
|
|
358
|
-
export declare const goalReached: {
|
|
359
|
-
readonly name: "std.goal-reached";
|
|
360
|
-
readonly title: "Goal reached";
|
|
361
|
-
readonly description: "A goal reached, proven by the pledges it cites.";
|
|
362
|
-
readonly schema: {
|
|
363
|
-
readonly type: "object";
|
|
364
|
-
readonly properties: {
|
|
365
|
-
readonly goal: {
|
|
366
|
-
type: 'string';
|
|
367
|
-
minLength?: number | undefined;
|
|
368
|
-
maxLength: number;
|
|
369
|
-
};
|
|
370
|
-
readonly pledges: {
|
|
371
|
-
readonly type: "array";
|
|
372
|
-
readonly maxItems: 256;
|
|
373
|
-
readonly items: {
|
|
374
|
-
type: 'string';
|
|
375
|
-
minLength?: number | undefined;
|
|
376
|
-
maxLength: number;
|
|
377
|
-
};
|
|
378
|
-
readonly description: "Ids of the pledges it counts";
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
readonly required: readonly ["goal", "pledges"];
|
|
382
|
-
};
|
|
383
|
-
readonly links: {
|
|
384
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
385
|
-
};
|
|
386
|
-
readonly rules: {
|
|
387
|
-
readonly onePer: readonly ["link:about"];
|
|
388
|
-
};
|
|
389
|
-
readonly contract: {
|
|
390
|
-
check: readonly Contract[];
|
|
391
|
-
};
|
|
392
|
-
} & import("../../index.js").Typed<{
|
|
393
|
-
readonly goal: string;
|
|
394
|
-
readonly pledges: readonly string[];
|
|
395
|
-
}>;
|
|
396
|
-
export type GoalReached = BodyOf<typeof goalReached>;
|
|
397
|
-
/** News for everyone in the space, from whoever may announce. */
|
|
398
|
-
export declare const announcement: {
|
|
399
|
-
readonly name: "std.announcement";
|
|
400
|
-
readonly title: "Announcement";
|
|
401
|
-
readonly description: "News for everyone in the space.";
|
|
402
|
-
readonly schema: {
|
|
403
|
-
readonly type: "object";
|
|
404
|
-
readonly properties: {
|
|
405
|
-
title: {
|
|
406
|
-
type: 'string';
|
|
407
|
-
minLength?: number | undefined;
|
|
408
|
-
maxLength: number;
|
|
409
|
-
};
|
|
410
|
-
text: {
|
|
411
|
-
type: 'string';
|
|
412
|
-
minLength?: number | undefined;
|
|
413
|
-
maxLength: number;
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
readonly required: readonly ["title"];
|
|
417
|
-
};
|
|
418
|
-
} & import("../../index.js").Typed<{
|
|
419
|
-
readonly title: string;
|
|
420
|
-
readonly text?: string | undefined;
|
|
421
|
-
}>;
|
|
422
|
-
export type Announcement = BodyOf<typeof announcement>;
|
|
423
|
-
/** A badge that can be awarded. */
|
|
424
|
-
export declare const badge: {
|
|
425
|
-
readonly name: "std.badge";
|
|
426
|
-
readonly title: "Badge";
|
|
427
|
-
readonly description: "A badge that people can be awarded.";
|
|
428
|
-
readonly schema: {
|
|
429
|
-
readonly type: "object";
|
|
430
|
-
readonly properties: {
|
|
431
|
-
name: {
|
|
432
|
-
type: 'string';
|
|
433
|
-
minLength?: number | undefined;
|
|
434
|
-
maxLength: number;
|
|
435
|
-
};
|
|
436
|
-
description: {
|
|
437
|
-
type: 'string';
|
|
438
|
-
minLength?: number | undefined;
|
|
439
|
-
maxLength: number;
|
|
440
|
-
};
|
|
441
|
-
image: {
|
|
442
|
-
type: 'object';
|
|
443
|
-
properties: {
|
|
444
|
-
hash: {
|
|
445
|
-
type: 'string';
|
|
446
|
-
minLength: number;
|
|
447
|
-
maxLength: number;
|
|
448
|
-
};
|
|
449
|
-
size: {
|
|
450
|
-
type: 'integer';
|
|
451
|
-
minimum: number;
|
|
452
|
-
};
|
|
453
|
-
mime: {
|
|
454
|
-
type: 'string';
|
|
455
|
-
minLength?: number | undefined;
|
|
456
|
-
maxLength: number;
|
|
457
|
-
};
|
|
458
|
-
name: {
|
|
459
|
-
type: 'string';
|
|
460
|
-
minLength?: number | undefined;
|
|
461
|
-
maxLength: number;
|
|
462
|
-
};
|
|
463
|
-
key: {
|
|
464
|
-
type: 'string';
|
|
465
|
-
minLength: number;
|
|
466
|
-
maxLength: number;
|
|
467
|
-
};
|
|
468
|
-
salt: {
|
|
469
|
-
type: 'string';
|
|
470
|
-
minLength: number;
|
|
471
|
-
maxLength: number;
|
|
472
|
-
};
|
|
473
|
-
};
|
|
474
|
-
required: readonly ["hash", "size", "mime"];
|
|
475
|
-
} & {
|
|
476
|
-
readonly 'x-kind': "file";
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
readonly required: readonly ["name"];
|
|
480
|
-
};
|
|
481
|
-
} & import("../../index.js").Typed<{
|
|
482
|
-
readonly name: string;
|
|
483
|
-
readonly description?: string | undefined;
|
|
484
|
-
readonly image?: {
|
|
485
|
-
readonly hash: string;
|
|
486
|
-
readonly size: number;
|
|
487
|
-
readonly mime: string;
|
|
488
|
-
readonly name?: string | undefined;
|
|
489
|
-
readonly key?: string | undefined;
|
|
490
|
-
readonly salt?: string | undefined;
|
|
491
|
-
} | undefined;
|
|
492
|
-
}>;
|
|
493
|
-
export type Badge = BodyOf<typeof badge>;
|
|
494
|
-
/** A badge given to someone: once per person per badge. */
|
|
495
|
-
export declare const award: {
|
|
496
|
-
readonly name: "std.award";
|
|
497
|
-
readonly title: "Award";
|
|
498
|
-
readonly description: "A badge given to someone, once.";
|
|
499
|
-
readonly schema: {
|
|
500
|
-
readonly type: "object";
|
|
501
|
-
readonly properties: {
|
|
502
|
-
did: {
|
|
503
|
-
type: 'string';
|
|
504
|
-
minLength?: number | undefined;
|
|
505
|
-
maxLength: number;
|
|
506
|
-
} & {
|
|
507
|
-
readonly 'x-kind': "did";
|
|
508
|
-
};
|
|
509
|
-
note: {
|
|
510
|
-
type: 'string';
|
|
511
|
-
minLength?: number | undefined;
|
|
512
|
-
maxLength: number;
|
|
513
|
-
};
|
|
514
|
-
};
|
|
515
|
-
readonly required: readonly ["did"];
|
|
516
|
-
};
|
|
517
|
-
readonly links: {
|
|
518
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
519
|
-
};
|
|
520
|
-
readonly rules: {
|
|
521
|
-
readonly onePer: readonly ["link:about", "did"];
|
|
522
|
-
};
|
|
523
|
-
readonly topics: readonly ["did"];
|
|
524
|
-
} & import("../../index.js").Typed<{
|
|
525
|
-
readonly did: string;
|
|
526
|
-
readonly note?: string | undefined;
|
|
527
|
-
}>;
|
|
528
|
-
export type Award = BodyOf<typeof award>;
|
|
529
|
-
/** One of a person's settings for an app: one per person per app per key. */
|
|
530
|
-
export declare const setting: {
|
|
531
|
-
readonly name: "std.setting";
|
|
532
|
-
readonly title: "Setting";
|
|
533
|
-
readonly description: "A person’s setting for an app: one per app and key.";
|
|
534
|
-
readonly schema: {
|
|
535
|
-
readonly type: "object";
|
|
536
|
-
readonly properties: {
|
|
537
|
-
readonly app: {
|
|
538
|
-
type: 'string';
|
|
539
|
-
minLength?: number | undefined;
|
|
540
|
-
maxLength: number;
|
|
541
|
-
};
|
|
542
|
-
readonly key: {
|
|
543
|
-
type: 'string';
|
|
544
|
-
minLength?: number | undefined;
|
|
545
|
-
maxLength: number;
|
|
546
|
-
};
|
|
547
|
-
readonly value: {
|
|
548
|
-
readonly description: "Any JSON";
|
|
549
|
-
};
|
|
550
|
-
};
|
|
551
|
-
readonly required: readonly ["app", "key"];
|
|
552
|
-
};
|
|
553
|
-
readonly rules: {
|
|
554
|
-
readonly onePer: readonly ["@author", "app", "key"];
|
|
555
|
-
};
|
|
556
|
-
} & import("../../index.js").Typed<{
|
|
557
|
-
readonly app: string;
|
|
558
|
-
readonly key: string;
|
|
559
|
-
readonly value?: unknown;
|
|
560
|
-
}>;
|
|
561
|
-
export type Setting = BodyOf<typeof setting>;
|
|
562
|
-
/**
|
|
563
|
-
* A host the space pays to keep it online: its own subscription there
|
|
564
|
-
* (`space:<id>`, spec 08 §2), which anyone in the space may chip in for.
|
|
565
|
-
* Members' devices hand that host the space's pass once someone has paid, so
|
|
566
|
-
* it carries the space without being able to read it. Only those who may
|
|
567
|
-
* manage it choose the host: naming one sends it every member's pass.
|
|
568
|
-
*/
|
|
569
|
-
export declare const host: {
|
|
570
|
-
readonly name: "std.host";
|
|
571
|
-
readonly title: "Host";
|
|
572
|
-
readonly description: "A host the space pays to keep it online, and anyone in it may chip in for.";
|
|
573
|
-
readonly schema: {
|
|
574
|
-
readonly type: "object";
|
|
575
|
-
readonly properties: {
|
|
576
|
-
url: {
|
|
577
|
-
type: 'string';
|
|
578
|
-
minLength?: number | undefined;
|
|
579
|
-
maxLength: number;
|
|
580
|
-
};
|
|
581
|
-
did: {
|
|
582
|
-
type: 'string';
|
|
583
|
-
minLength?: number | undefined;
|
|
584
|
-
maxLength: number;
|
|
585
|
-
};
|
|
586
|
-
name: {
|
|
587
|
-
type: 'string';
|
|
588
|
-
minLength?: number | undefined;
|
|
589
|
-
maxLength: number;
|
|
590
|
-
};
|
|
591
|
-
};
|
|
592
|
-
readonly required: readonly ["url"];
|
|
593
|
-
};
|
|
594
|
-
readonly rules: {
|
|
595
|
-
readonly onePer: readonly ["url"];
|
|
596
|
-
};
|
|
597
|
-
} & import("../../index.js").Typed<{
|
|
598
|
-
readonly url: string;
|
|
599
|
-
readonly did?: string | undefined;
|
|
600
|
-
readonly name?: string | undefined;
|
|
601
|
-
}>;
|
|
602
|
-
export type Host = BodyOf<typeof host>;
|
|
603
|
-
/** This file's part of `standardGroups` */
|
|
604
|
-
export declare const communityGroups: {
|
|
605
|
-
'Community and governance': (({
|
|
606
|
-
readonly name: "std.poll";
|
|
607
|
-
readonly title: "Poll";
|
|
608
|
-
readonly description: "A question with options to vote on.";
|
|
609
|
-
readonly schema: {
|
|
610
|
-
readonly type: "object";
|
|
611
|
-
readonly properties: {
|
|
612
|
-
readonly question: {
|
|
613
|
-
readonly type: "string";
|
|
614
|
-
readonly minLength: 1;
|
|
615
|
-
readonly maxLength: 500;
|
|
616
|
-
};
|
|
617
|
-
readonly options: {
|
|
618
|
-
readonly type: "array";
|
|
619
|
-
readonly items: {
|
|
620
|
-
readonly type: "string";
|
|
621
|
-
readonly minLength: 1;
|
|
622
|
-
readonly maxLength: 200;
|
|
623
|
-
};
|
|
624
|
-
};
|
|
625
|
-
readonly closed: {
|
|
626
|
-
readonly type: "boolean";
|
|
627
|
-
readonly description: "No more votes, as the asker sees it";
|
|
628
|
-
};
|
|
629
|
-
};
|
|
630
|
-
readonly required: readonly ["question", "options"];
|
|
631
|
-
};
|
|
632
|
-
readonly rules: {
|
|
633
|
-
readonly fixed: readonly ["options"];
|
|
634
|
-
};
|
|
635
|
-
} & import("../../index.js").Typed<{
|
|
636
|
-
readonly question: string;
|
|
637
|
-
readonly options: readonly string[];
|
|
638
|
-
readonly closed?: boolean | undefined;
|
|
639
|
-
}>) | ({
|
|
640
|
-
readonly name: "std.vote";
|
|
641
|
-
readonly title: "Vote";
|
|
642
|
-
readonly description: "One person’s vote on a std.poll, changed by voting again. To vote on a std.proposal, use std.ballot: it is final and counts toward a decision.";
|
|
643
|
-
readonly schema: {
|
|
644
|
-
readonly type: "object";
|
|
645
|
-
readonly properties: {
|
|
646
|
-
readonly respondingTo: {
|
|
647
|
-
type: 'string';
|
|
648
|
-
minLength?: number | undefined;
|
|
649
|
-
maxLength: number;
|
|
650
|
-
} & {
|
|
651
|
-
readonly 'x-kind': "did";
|
|
652
|
-
};
|
|
653
|
-
readonly choice: {
|
|
654
|
-
readonly type: "integer";
|
|
655
|
-
readonly minimum: 0;
|
|
656
|
-
readonly 'x-choicesFrom': {
|
|
657
|
-
readonly rel: "about";
|
|
658
|
-
readonly field: "options";
|
|
659
|
-
};
|
|
660
|
-
};
|
|
661
|
-
readonly choices: {
|
|
662
|
-
readonly type: "array";
|
|
663
|
-
readonly maxItems: 100;
|
|
664
|
-
readonly description: "Every choice, most preferred first, when there are several";
|
|
665
|
-
readonly items: {
|
|
666
|
-
readonly type: "integer";
|
|
667
|
-
readonly minimum: 0;
|
|
668
|
-
readonly 'x-choicesFrom': {
|
|
669
|
-
readonly rel: "about";
|
|
670
|
-
readonly field: "options";
|
|
671
|
-
};
|
|
672
|
-
};
|
|
673
|
-
};
|
|
674
|
-
};
|
|
675
|
-
readonly required: readonly ["choice"];
|
|
676
|
-
};
|
|
677
|
-
readonly links: {
|
|
678
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
679
|
-
};
|
|
680
|
-
readonly rules: {
|
|
681
|
-
readonly onePer: readonly ["@author", "link:about"];
|
|
682
|
-
};
|
|
683
|
-
readonly topics: readonly ["respondingTo"];
|
|
684
|
-
} & import("../../index.js").Typed<{
|
|
685
|
-
readonly respondingTo?: string | undefined;
|
|
686
|
-
readonly choice: number;
|
|
687
|
-
readonly choices?: readonly number[] | undefined;
|
|
688
|
-
}>) | ({
|
|
689
|
-
readonly name: "std.proposal";
|
|
690
|
-
readonly title: "Proposal";
|
|
691
|
-
readonly description: "Something put to the group to decide: people cast a std.ballot on its options, and a std.decision proves the outcome. For a quick question, use std.poll.";
|
|
692
|
-
readonly schema: {
|
|
693
|
-
readonly type: "object";
|
|
694
|
-
readonly properties: {
|
|
695
|
-
readonly title: {
|
|
696
|
-
type: 'string';
|
|
697
|
-
minLength?: number | undefined;
|
|
698
|
-
maxLength: number;
|
|
699
|
-
};
|
|
700
|
-
readonly body: {
|
|
701
|
-
type: 'string';
|
|
702
|
-
minLength?: number | undefined;
|
|
703
|
-
maxLength: number;
|
|
704
|
-
};
|
|
705
|
-
readonly options: {
|
|
706
|
-
readonly type: "array";
|
|
707
|
-
readonly minItems: 1;
|
|
708
|
-
readonly maxItems: 20;
|
|
709
|
-
readonly items: {
|
|
710
|
-
type: 'string';
|
|
711
|
-
minLength?: number | undefined;
|
|
712
|
-
maxLength: number;
|
|
713
|
-
};
|
|
714
|
-
};
|
|
715
|
-
readonly closesAt: {
|
|
716
|
-
type: 'string';
|
|
717
|
-
minLength?: number | undefined;
|
|
718
|
-
maxLength: number;
|
|
719
|
-
} & {
|
|
720
|
-
readonly 'x-kind': "when";
|
|
721
|
-
};
|
|
722
|
-
readonly status: {
|
|
723
|
-
enum: ("open" | "passed" | "rejected" | "withdrawn")[];
|
|
724
|
-
};
|
|
725
|
-
readonly quorum: {
|
|
726
|
-
type: 'integer';
|
|
727
|
-
minimum: number;
|
|
728
|
-
maximum?: number | undefined;
|
|
729
|
-
};
|
|
730
|
-
};
|
|
731
|
-
readonly required: readonly ["title", "options"];
|
|
732
|
-
};
|
|
733
|
-
readonly rules: {
|
|
734
|
-
readonly fixed: readonly ["options"];
|
|
735
|
-
};
|
|
736
|
-
} & import("../../index.js").Typed<{
|
|
737
|
-
readonly title: string;
|
|
738
|
-
readonly body?: string | undefined;
|
|
739
|
-
readonly options: readonly string[];
|
|
740
|
-
readonly closesAt?: string | undefined;
|
|
741
|
-
readonly status?: "open" | "passed" | "rejected" | "withdrawn" | undefined;
|
|
742
|
-
readonly quorum?: number | undefined;
|
|
743
|
-
}>) | ({
|
|
744
|
-
readonly name: "std.ballot";
|
|
745
|
-
readonly title: "Ballot";
|
|
746
|
-
readonly description: "One person’s final vote on a std.proposal: it can’t be changed, so a std.decision can count it. For a poll, use std.vote.";
|
|
747
|
-
readonly schema: {
|
|
748
|
-
readonly type: "object";
|
|
749
|
-
readonly properties: {
|
|
750
|
-
readonly respondingTo: {
|
|
751
|
-
type: 'string';
|
|
752
|
-
minLength?: number | undefined;
|
|
753
|
-
maxLength: number;
|
|
754
|
-
} & {
|
|
755
|
-
readonly 'x-kind': "did";
|
|
756
|
-
};
|
|
757
|
-
readonly choice: {
|
|
758
|
-
readonly type: "integer";
|
|
759
|
-
readonly minimum: 0;
|
|
760
|
-
readonly 'x-choicesFrom': {
|
|
761
|
-
readonly rel: "about";
|
|
762
|
-
readonly field: "options";
|
|
763
|
-
};
|
|
764
|
-
};
|
|
765
|
-
};
|
|
766
|
-
readonly required: readonly ["choice"];
|
|
767
|
-
};
|
|
768
|
-
readonly links: {
|
|
769
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
770
|
-
};
|
|
771
|
-
readonly rules: {
|
|
772
|
-
readonly onePer: readonly ["@author", "link:about"];
|
|
773
|
-
readonly fixed: readonly ["choice"];
|
|
774
|
-
};
|
|
775
|
-
readonly topics: readonly ["respondingTo"];
|
|
776
|
-
} & import("../../index.js").Typed<{
|
|
777
|
-
readonly respondingTo?: string | undefined;
|
|
778
|
-
readonly choice: number;
|
|
779
|
-
}>) | ({
|
|
780
|
-
readonly name: "std.decision";
|
|
781
|
-
readonly title: "Decision";
|
|
782
|
-
readonly description: "What a proposal came to, proven by the ballots it cites.";
|
|
783
|
-
readonly schema: {
|
|
784
|
-
readonly type: "object";
|
|
785
|
-
readonly properties: {
|
|
786
|
-
readonly outcome: {
|
|
787
|
-
readonly type: "integer";
|
|
788
|
-
readonly minimum: 0;
|
|
789
|
-
readonly 'x-choicesFrom': {
|
|
790
|
-
readonly rel: "about";
|
|
791
|
-
readonly field: "options";
|
|
792
|
-
};
|
|
793
|
-
readonly description: "The option decided on";
|
|
794
|
-
};
|
|
795
|
-
readonly proposal: {
|
|
796
|
-
type: 'string';
|
|
797
|
-
minLength?: number | undefined;
|
|
798
|
-
maxLength: number;
|
|
799
|
-
};
|
|
800
|
-
readonly ballots: {
|
|
801
|
-
readonly type: "array";
|
|
802
|
-
readonly maxItems: 256;
|
|
803
|
-
readonly items: {
|
|
804
|
-
type: 'string';
|
|
805
|
-
minLength?: number | undefined;
|
|
806
|
-
maxLength: number;
|
|
807
|
-
};
|
|
808
|
-
readonly description: "Ids of the ballots it counts";
|
|
809
|
-
};
|
|
810
|
-
};
|
|
811
|
-
readonly required: readonly ["outcome", "proposal", "ballots"];
|
|
812
|
-
};
|
|
813
|
-
readonly links: {
|
|
814
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
815
|
-
};
|
|
816
|
-
readonly rules: {
|
|
817
|
-
readonly onePer: readonly ["link:about"];
|
|
818
|
-
};
|
|
819
|
-
readonly contract: {
|
|
820
|
-
check: readonly Contract[];
|
|
821
|
-
};
|
|
822
|
-
} & import("../../index.js").Typed<{
|
|
823
|
-
readonly outcome: number;
|
|
824
|
-
readonly proposal: string;
|
|
825
|
-
readonly ballots: readonly string[];
|
|
826
|
-
}>) | ({
|
|
827
|
-
readonly name: "std.goal";
|
|
828
|
-
readonly title: "Goal";
|
|
829
|
-
readonly description: "A target the group reaches together, pledge by pledge.";
|
|
830
|
-
readonly schema: {
|
|
831
|
-
readonly type: "object";
|
|
832
|
-
readonly properties: {
|
|
833
|
-
title: {
|
|
834
|
-
type: 'string';
|
|
835
|
-
minLength?: number | undefined;
|
|
836
|
-
maxLength: number;
|
|
837
|
-
};
|
|
838
|
-
body: {
|
|
839
|
-
type: 'string';
|
|
840
|
-
minLength?: number | undefined;
|
|
841
|
-
maxLength: number;
|
|
842
|
-
};
|
|
843
|
-
target: {
|
|
844
|
-
type: 'integer';
|
|
845
|
-
minimum: number;
|
|
846
|
-
maximum?: number | undefined;
|
|
847
|
-
};
|
|
848
|
-
unit: {
|
|
849
|
-
type: 'string';
|
|
850
|
-
minLength?: number | undefined;
|
|
851
|
-
maxLength: number;
|
|
852
|
-
};
|
|
853
|
-
closesAt: {
|
|
854
|
-
type: 'string';
|
|
855
|
-
minLength?: number | undefined;
|
|
856
|
-
maxLength: number;
|
|
857
|
-
} & {
|
|
858
|
-
readonly 'x-kind': "when";
|
|
859
|
-
};
|
|
860
|
-
};
|
|
861
|
-
readonly required: readonly ["title", "target", "unit"];
|
|
862
|
-
};
|
|
863
|
-
readonly rules: {
|
|
864
|
-
readonly fixed: readonly ["target", "unit"];
|
|
865
|
-
};
|
|
866
|
-
} & import("../../index.js").Typed<{
|
|
867
|
-
readonly title: string;
|
|
868
|
-
readonly body?: string | undefined;
|
|
869
|
-
readonly target: number;
|
|
870
|
-
readonly unit: string;
|
|
871
|
-
readonly closesAt?: string | undefined;
|
|
872
|
-
}>) | ({
|
|
873
|
-
readonly name: "std.pledge";
|
|
874
|
-
readonly title: "Pledge";
|
|
875
|
-
readonly description: "A promise toward a goal: once per person, not changed once made.";
|
|
876
|
-
readonly schema: {
|
|
877
|
-
readonly type: "object";
|
|
878
|
-
readonly properties: {
|
|
879
|
-
respondingTo: {
|
|
880
|
-
type: 'string';
|
|
881
|
-
minLength?: number | undefined;
|
|
882
|
-
maxLength: number;
|
|
883
|
-
} & {
|
|
884
|
-
readonly 'x-kind': "did";
|
|
885
|
-
};
|
|
886
|
-
amount: {
|
|
887
|
-
type: 'integer';
|
|
888
|
-
minimum: number;
|
|
889
|
-
maximum?: number | undefined;
|
|
890
|
-
};
|
|
891
|
-
note: {
|
|
892
|
-
type: 'string';
|
|
893
|
-
minLength?: number | undefined;
|
|
894
|
-
maxLength: number;
|
|
895
|
-
};
|
|
896
|
-
};
|
|
897
|
-
readonly required: readonly ["amount"];
|
|
898
|
-
};
|
|
899
|
-
readonly links: {
|
|
900
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
901
|
-
};
|
|
902
|
-
readonly rules: {
|
|
903
|
-
readonly onePer: readonly ["@author", "link:about"];
|
|
904
|
-
readonly fixed: readonly ["amount"];
|
|
905
|
-
};
|
|
906
|
-
readonly topics: readonly ["respondingTo"];
|
|
907
|
-
} & import("../../index.js").Typed<{
|
|
908
|
-
readonly respondingTo?: string | undefined;
|
|
909
|
-
readonly amount: number;
|
|
910
|
-
readonly note?: string | undefined;
|
|
911
|
-
}>) | ({
|
|
912
|
-
readonly name: "std.goal-reached";
|
|
913
|
-
readonly title: "Goal reached";
|
|
914
|
-
readonly description: "A goal reached, proven by the pledges it cites.";
|
|
915
|
-
readonly schema: {
|
|
916
|
-
readonly type: "object";
|
|
917
|
-
readonly properties: {
|
|
918
|
-
readonly goal: {
|
|
919
|
-
type: 'string';
|
|
920
|
-
minLength?: number | undefined;
|
|
921
|
-
maxLength: number;
|
|
922
|
-
};
|
|
923
|
-
readonly pledges: {
|
|
924
|
-
readonly type: "array";
|
|
925
|
-
readonly maxItems: 256;
|
|
926
|
-
readonly items: {
|
|
927
|
-
type: 'string';
|
|
928
|
-
minLength?: number | undefined;
|
|
929
|
-
maxLength: number;
|
|
930
|
-
};
|
|
931
|
-
readonly description: "Ids of the pledges it counts";
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
readonly required: readonly ["goal", "pledges"];
|
|
935
|
-
};
|
|
936
|
-
readonly links: {
|
|
937
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
938
|
-
};
|
|
939
|
-
readonly rules: {
|
|
940
|
-
readonly onePer: readonly ["link:about"];
|
|
941
|
-
};
|
|
942
|
-
readonly contract: {
|
|
943
|
-
check: readonly Contract[];
|
|
944
|
-
};
|
|
945
|
-
} & import("../../index.js").Typed<{
|
|
946
|
-
readonly goal: string;
|
|
947
|
-
readonly pledges: readonly string[];
|
|
948
|
-
}>) | ({
|
|
949
|
-
readonly name: "std.announcement";
|
|
950
|
-
readonly title: "Announcement";
|
|
951
|
-
readonly description: "News for everyone in the space.";
|
|
952
|
-
readonly schema: {
|
|
953
|
-
readonly type: "object";
|
|
954
|
-
readonly properties: {
|
|
955
|
-
title: {
|
|
956
|
-
type: 'string';
|
|
957
|
-
minLength?: number | undefined;
|
|
958
|
-
maxLength: number;
|
|
959
|
-
};
|
|
960
|
-
text: {
|
|
961
|
-
type: 'string';
|
|
962
|
-
minLength?: number | undefined;
|
|
963
|
-
maxLength: number;
|
|
964
|
-
};
|
|
965
|
-
};
|
|
966
|
-
readonly required: readonly ["title"];
|
|
967
|
-
};
|
|
968
|
-
} & import("../../index.js").Typed<{
|
|
969
|
-
readonly title: string;
|
|
970
|
-
readonly text?: string | undefined;
|
|
971
|
-
}>) | ({
|
|
972
|
-
readonly name: "std.badge";
|
|
973
|
-
readonly title: "Badge";
|
|
974
|
-
readonly description: "A badge that people can be awarded.";
|
|
975
|
-
readonly schema: {
|
|
976
|
-
readonly type: "object";
|
|
977
|
-
readonly properties: {
|
|
978
|
-
name: {
|
|
979
|
-
type: 'string';
|
|
980
|
-
minLength?: number | undefined;
|
|
981
|
-
maxLength: number;
|
|
982
|
-
};
|
|
983
|
-
description: {
|
|
984
|
-
type: 'string';
|
|
985
|
-
minLength?: number | undefined;
|
|
986
|
-
maxLength: number;
|
|
987
|
-
};
|
|
988
|
-
image: {
|
|
989
|
-
type: 'object';
|
|
990
|
-
properties: {
|
|
991
|
-
hash: {
|
|
992
|
-
type: 'string';
|
|
993
|
-
minLength: number;
|
|
994
|
-
maxLength: number;
|
|
995
|
-
};
|
|
996
|
-
size: {
|
|
997
|
-
type: 'integer';
|
|
998
|
-
minimum: number;
|
|
999
|
-
};
|
|
1000
|
-
mime: {
|
|
1001
|
-
type: 'string';
|
|
1002
|
-
minLength?: number | undefined;
|
|
1003
|
-
maxLength: number;
|
|
1004
|
-
};
|
|
1005
|
-
name: {
|
|
1006
|
-
type: 'string';
|
|
1007
|
-
minLength?: number | undefined;
|
|
1008
|
-
maxLength: number;
|
|
1009
|
-
};
|
|
1010
|
-
key: {
|
|
1011
|
-
type: 'string';
|
|
1012
|
-
minLength: number;
|
|
1013
|
-
maxLength: number;
|
|
1014
|
-
};
|
|
1015
|
-
salt: {
|
|
1016
|
-
type: 'string';
|
|
1017
|
-
minLength: number;
|
|
1018
|
-
maxLength: number;
|
|
1019
|
-
};
|
|
1020
|
-
};
|
|
1021
|
-
required: readonly ["hash", "size", "mime"];
|
|
1022
|
-
} & {
|
|
1023
|
-
readonly 'x-kind': "file";
|
|
1024
|
-
};
|
|
1025
|
-
};
|
|
1026
|
-
readonly required: readonly ["name"];
|
|
1027
|
-
};
|
|
1028
|
-
} & import("../../index.js").Typed<{
|
|
1029
|
-
readonly name: string;
|
|
1030
|
-
readonly description?: string | undefined;
|
|
1031
|
-
readonly image?: {
|
|
1032
|
-
readonly hash: string;
|
|
1033
|
-
readonly size: number;
|
|
1034
|
-
readonly mime: string;
|
|
1035
|
-
readonly name?: string | undefined;
|
|
1036
|
-
readonly key?: string | undefined;
|
|
1037
|
-
readonly salt?: string | undefined;
|
|
1038
|
-
} | undefined;
|
|
1039
|
-
}>) | ({
|
|
1040
|
-
readonly name: "std.award";
|
|
1041
|
-
readonly title: "Award";
|
|
1042
|
-
readonly description: "A badge given to someone, once.";
|
|
1043
|
-
readonly schema: {
|
|
1044
|
-
readonly type: "object";
|
|
1045
|
-
readonly properties: {
|
|
1046
|
-
did: {
|
|
1047
|
-
type: 'string';
|
|
1048
|
-
minLength?: number | undefined;
|
|
1049
|
-
maxLength: number;
|
|
1050
|
-
} & {
|
|
1051
|
-
readonly 'x-kind': "did";
|
|
1052
|
-
};
|
|
1053
|
-
note: {
|
|
1054
|
-
type: 'string';
|
|
1055
|
-
minLength?: number | undefined;
|
|
1056
|
-
maxLength: number;
|
|
1057
|
-
};
|
|
1058
|
-
};
|
|
1059
|
-
readonly required: readonly ["did"];
|
|
1060
|
-
};
|
|
1061
|
-
readonly links: {
|
|
1062
|
-
about: import("../../records/links.js").LinkDeclaration;
|
|
1063
|
-
};
|
|
1064
|
-
readonly rules: {
|
|
1065
|
-
readonly onePer: readonly ["link:about", "did"];
|
|
1066
|
-
};
|
|
1067
|
-
readonly topics: readonly ["did"];
|
|
1068
|
-
} & import("../../index.js").Typed<{
|
|
1069
|
-
readonly did: string;
|
|
1070
|
-
readonly note?: string | undefined;
|
|
1071
|
-
}>))[];
|
|
1072
|
-
Settings: (({
|
|
1073
|
-
readonly name: "std.setting";
|
|
1074
|
-
readonly title: "Setting";
|
|
1075
|
-
readonly description: "A person’s setting for an app: one per app and key.";
|
|
1076
|
-
readonly schema: {
|
|
1077
|
-
readonly type: "object";
|
|
1078
|
-
readonly properties: {
|
|
1079
|
-
readonly app: {
|
|
1080
|
-
type: 'string';
|
|
1081
|
-
minLength?: number | undefined;
|
|
1082
|
-
maxLength: number;
|
|
1083
|
-
};
|
|
1084
|
-
readonly key: {
|
|
1085
|
-
type: 'string';
|
|
1086
|
-
minLength?: number | undefined;
|
|
1087
|
-
maxLength: number;
|
|
1088
|
-
};
|
|
1089
|
-
readonly value: {
|
|
1090
|
-
readonly description: "Any JSON";
|
|
1091
|
-
};
|
|
1092
|
-
};
|
|
1093
|
-
readonly required: readonly ["app", "key"];
|
|
1094
|
-
};
|
|
1095
|
-
readonly rules: {
|
|
1096
|
-
readonly onePer: readonly ["@author", "app", "key"];
|
|
1097
|
-
};
|
|
1098
|
-
} & import("../../index.js").Typed<{
|
|
1099
|
-
readonly app: string;
|
|
1100
|
-
readonly key: string;
|
|
1101
|
-
readonly value?: unknown;
|
|
1102
|
-
}>) | ({
|
|
1103
|
-
readonly name: "std.host";
|
|
1104
|
-
readonly title: "Host";
|
|
1105
|
-
readonly description: "A host the space pays to keep it online, and anyone in it may chip in for.";
|
|
1106
|
-
readonly schema: {
|
|
1107
|
-
readonly type: "object";
|
|
1108
|
-
readonly properties: {
|
|
1109
|
-
url: {
|
|
1110
|
-
type: 'string';
|
|
1111
|
-
minLength?: number | undefined;
|
|
1112
|
-
maxLength: number;
|
|
1113
|
-
};
|
|
1114
|
-
did: {
|
|
1115
|
-
type: 'string';
|
|
1116
|
-
minLength?: number | undefined;
|
|
1117
|
-
maxLength: number;
|
|
1118
|
-
};
|
|
1119
|
-
name: {
|
|
1120
|
-
type: 'string';
|
|
1121
|
-
minLength?: number | undefined;
|
|
1122
|
-
maxLength: number;
|
|
1123
|
-
};
|
|
1124
|
-
};
|
|
1125
|
-
readonly required: readonly ["url"];
|
|
1126
|
-
};
|
|
1127
|
-
readonly rules: {
|
|
1128
|
-
readonly onePer: readonly ["url"];
|
|
1129
|
-
};
|
|
1130
|
-
} & import("../../index.js").Typed<{
|
|
1131
|
-
readonly url: string;
|
|
1132
|
-
readonly did?: string | undefined;
|
|
1133
|
-
readonly name?: string | undefined;
|
|
1134
|
-
}>))[];
|
|
1135
|
-
};
|
|
1136
|
-
//# sourceMappingURL=community.d.ts.map
|