@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"social.d.ts","sourceRoot":"","sources":["../../../src/schemas/library/social.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiBI,KAAK;;;;;wBAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ3C,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,OAAO,CAAC,CAAC;AAE7C;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBvB,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC;AAY7D;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;oBAUK,IAAI;;;;;oBAAa,KAAK;;;;;oBAAa,MAAM;;;;;;;;sBAvBvD,OAAO;;;0BAGL,QAAQ;;;;;;;;;;;;;;;;;;sBAHV,OAAO;;;0BAGL,QAAQ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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiEvB,IAAI;;;;;wBAAa,KAAK;;;;;wBAAa,MAAM;;;;;;;;0BAvBvD,OAAO;;;8BAGL,QAAQ;;;;;;;;;;;;;;;;;;0BAHV,OAAO;;;8BAGL,QAAQ;;;;;;;;;;;;;;;;;;0BAHV,OAAO;;;8BAGL,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA2CA,GAAG;;;;;;;gBAA6B,KAAK;;;;;;;;;;;;;;;;;;;;;;gBAenC,GAAG;;;;;;;gBAAY,KAAK;;;;;;;;;;;;;;;;;;;;;;;gBAuBtB,IAAI;;;;;gBAAa,KAAK;;;;;gBAAY,KAAK;;;;;;;;;;;;;;;;;CASxD,CAAC"}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* People: who someone is, who they follow, block and mute, what they are up to.
|
|
3
|
-
* Blocks and mutes are one person's choice, so they belong in that person's
|
|
4
|
-
* own space rather than in a space others read.
|
|
5
|
-
*/
|
|
6
|
-
import { address, blob, day, person, text, define, url, when, words } from '../fragments.js';
|
|
7
|
-
/**
|
|
8
|
-
* How someone presents themselves: more than the name every space keeps for
|
|
9
|
-
* them (`sys.profile`). One per person, and only theirs to write.
|
|
10
|
-
*
|
|
11
|
-
* `bot` is the account saying it is software someone runs, not a person, so
|
|
12
|
-
* apps can show it. It is the account's own word, like the rest: an honest
|
|
13
|
-
* operator discloses with it, and it proves nothing about anyone who doesn't.
|
|
14
|
-
*/
|
|
15
|
-
export const profile = define({
|
|
16
|
-
name: 'std.profile',
|
|
17
|
-
title: 'Profile',
|
|
18
|
-
description: 'How someone presents themselves: one per person.',
|
|
19
|
-
schema: {
|
|
20
|
-
type: 'object',
|
|
21
|
-
properties: {
|
|
22
|
-
name: text(100),
|
|
23
|
-
bio: text(2000),
|
|
24
|
-
avatar: blob(),
|
|
25
|
-
banner: blob(),
|
|
26
|
-
pronouns: text(50),
|
|
27
|
-
links: {
|
|
28
|
-
type: 'array',
|
|
29
|
-
maxItems: 16,
|
|
30
|
-
items: {
|
|
31
|
-
type: 'object',
|
|
32
|
-
properties: { title: text(100), url: url() },
|
|
33
|
-
required: ['url'],
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
bot: { type: 'boolean', description: 'The account is software someone runs, not a person' },
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
rules: { onePer: ['@author'] },
|
|
40
|
-
});
|
|
41
|
-
/**
|
|
42
|
-
* How the space presents itself, as `std.profile` is how someone does: what
|
|
43
|
-
* apps show in place of the name its constitution was founded with, and a
|
|
44
|
-
* picture. One record per space: it names the space it is of, and `onePer`
|
|
45
|
-
* that gives every writer the same shared key, so changing it is editing it,
|
|
46
|
-
* and which edit stands is the versions' order, never a writer's clock. A
|
|
47
|
-
* reader takes only the one whose `space` is the space it is in. Who may
|
|
48
|
-
* write it is the space's grants, so the presets leave it to those who keep
|
|
49
|
-
* order (`STAFF_COLLECTIONS`).
|
|
50
|
-
*/
|
|
51
|
-
export const spaceProfile = define({
|
|
52
|
-
name: 'std.space-profile',
|
|
53
|
-
title: 'Space profile',
|
|
54
|
-
description: 'How the space presents itself: its name, a line about it and its picture. One per space: "space" is its id.',
|
|
55
|
-
schema: {
|
|
56
|
-
type: 'object',
|
|
57
|
-
properties: {
|
|
58
|
-
space: { type: 'string', minLength: 1, maxLength: 256, description: 'The space it presents: its id' },
|
|
59
|
-
name: text(100),
|
|
60
|
-
bio: text(2000),
|
|
61
|
-
avatar: blob(),
|
|
62
|
-
banner: blob(),
|
|
63
|
-
},
|
|
64
|
-
required: ['space'],
|
|
65
|
-
},
|
|
66
|
-
rules: { onePer: ['space'] },
|
|
67
|
-
});
|
|
68
|
-
const labelled = (value, required) => ({
|
|
69
|
-
type: 'array',
|
|
70
|
-
maxItems: 16,
|
|
71
|
-
items: {
|
|
72
|
-
type: 'object',
|
|
73
|
-
properties: { ...value, label: text(50, 'Like "work" or "home"') },
|
|
74
|
-
required: [required],
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
/**
|
|
78
|
-
* A person who may not be on Minca: a subset of JSContact (RFC 9553). For
|
|
79
|
-
* people who are, `std.contact` keeps their DID.
|
|
80
|
-
*/
|
|
81
|
-
export const card = define({
|
|
82
|
-
name: 'std.card',
|
|
83
|
-
title: 'Contact card',
|
|
84
|
-
description: 'An address-book entry for anyone, on Minca or not. Your own public self is std.profile; a Minca account you can message is std.contact.',
|
|
85
|
-
schema: {
|
|
86
|
-
type: 'object',
|
|
87
|
-
properties: {
|
|
88
|
-
name: {
|
|
89
|
-
type: 'object',
|
|
90
|
-
properties: { full: text(200), given: text(100), family: text(100) },
|
|
91
|
-
},
|
|
92
|
-
emails: labelled({ address: words(320) }, 'address'),
|
|
93
|
-
phones: labelled({ number: words(64) }, 'number'),
|
|
94
|
-
addresses: labelled({ address: address() }, 'address'),
|
|
95
|
-
organization: text(200),
|
|
96
|
-
jobTitle: text(200),
|
|
97
|
-
birthday: day(),
|
|
98
|
-
photo: blob(),
|
|
99
|
-
urls: { type: 'array', maxItems: 16, items: url() },
|
|
100
|
-
note: text(10000),
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
/** Following someone: their DID, and the space they publish in if known. */
|
|
105
|
-
export const follow = define({
|
|
106
|
-
name: 'std.follow',
|
|
107
|
-
title: 'Follow',
|
|
108
|
-
description: 'Following a person: one per person followed.',
|
|
109
|
-
schema: {
|
|
110
|
-
type: 'object',
|
|
111
|
-
properties: { did: person('Who is followed'), space: text(256, 'The space they publish in') },
|
|
112
|
-
required: ['did'],
|
|
113
|
-
},
|
|
114
|
-
rules: { onePer: ['@author', 'did'] },
|
|
115
|
-
topics: ['did'],
|
|
116
|
-
});
|
|
117
|
-
const avoided = (name, title, description) => define({
|
|
118
|
-
name,
|
|
119
|
-
title,
|
|
120
|
-
description,
|
|
121
|
-
schema: {
|
|
122
|
-
type: 'object',
|
|
123
|
-
properties: { did: person(), until: when('Until when; forever without one') },
|
|
124
|
-
required: ['did'],
|
|
125
|
-
},
|
|
126
|
-
rules: { onePer: ['@author', 'did'] },
|
|
127
|
-
});
|
|
128
|
-
/** Someone whose records an app hides and whose invitations it refuses. Keep it in your own space. */
|
|
129
|
-
export const block = avoided('std.block', 'Block', 'Someone to hide and keep away. Keep it in your own space.');
|
|
130
|
-
/** Someone whose records an app quiets but still shows when asked. Keep it in your own space. */
|
|
131
|
-
export const mute = avoided('std.mute', 'Mute', 'Someone to quiet for a while. Keep it in your own space.');
|
|
132
|
-
/** What someone is up to right now: one per person, gone after `until`. */
|
|
133
|
-
export const status = define({
|
|
134
|
-
name: 'std.status',
|
|
135
|
-
title: 'Status',
|
|
136
|
-
description: 'What someone is up to now: one per person.',
|
|
137
|
-
schema: {
|
|
138
|
-
type: 'object',
|
|
139
|
-
properties: { text: text(280), emoji: text(16), until: when('When it stops showing') },
|
|
140
|
-
},
|
|
141
|
-
rules: { onePer: ['@author'] },
|
|
142
|
-
});
|
|
143
|
-
/** This file's part of `standardGroups` */
|
|
144
|
-
export const socialGroups = {
|
|
145
|
-
People: [profile, spaceProfile, card, follow, block, mute, status],
|
|
146
|
-
};
|
|
147
|
-
//# sourceMappingURL=social.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"social.js","sourceRoot":"","sources":["../../../src/schemas/library/social.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAA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AAK,GAAG,OAAO,CAC1B,WAAW,EACX,OAAO,EACP,2DAA2D,CAC5D,CAAC;AACF,iGAAiG;AACjG,MAAM,CAAC,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,0DAA0D,CAAC,CAAC;AAE5G,2EAA2E;AAC3E,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC;IAC3B,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,4CAA4C;IACzD,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,uBAAuB,CAAC,EAAE;KACvF;IACD,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE;CAC/B,CAAC,CAAC;AAGH,2CAA2C;AAC3C,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC;CACnE,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The standard library as one list, by area: what `collections_standard`
|
|
3
|
-
* shows an agent, and what a `std.*` name means.
|
|
4
|
-
*/
|
|
5
|
-
import type { DefineCollection } from '../node/types.js';
|
|
6
|
-
type Definitions = ReadonlyArray<DefineCollection>;
|
|
7
|
-
/** Shapes that attach to anything: the annotations, and files, which may be about a record */
|
|
8
|
-
export declare const standardAnnotations: Definitions;
|
|
9
|
-
/**
|
|
10
|
-
* The library by area, in the order it is listed: what `collections_standard`
|
|
11
|
-
* shows an agent, and the tables in `packages/core/docs/standard-library.md`.
|
|
12
|
-
*/
|
|
13
|
-
export declare const standardGroups: Readonly<Record<string, Definitions>>;
|
|
14
|
-
/** Common nouns apps share: everything but the annotations */
|
|
15
|
-
export declare const standardNouns: Definitions;
|
|
16
|
-
/** Everything in the library */
|
|
17
|
-
export declare const standardSchemas: Definitions;
|
|
18
|
-
/** The library's definition of a `std.*` name, or undefined when it has none */
|
|
19
|
-
export declare function standardDefinition(name: string): DefineCollection | undefined;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=standard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../src/schemas/standard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAazD,KAAK,WAAW,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;AAEnD,8FAA8F;AAC9F,eAAO,MAAM,mBAAmB,EAAE,WAAqD,CAAC;AAExF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAY/D,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,aAAa,EAAE,WAA2D,CAAC;AACxF,gCAAgC;AAChC,eAAO,MAAM,eAAe,EAAE,WAAkD,CAAC;AAEjF,gFAAgF;AAChF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAE7E"}
|
package/dist/schemas/standard.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { annotationGroups } from './library/annotations.js';
|
|
2
|
-
import { socialGroups } from './library/social.js';
|
|
3
|
-
import { publishingGroups } from './library/publishing.js';
|
|
4
|
-
import { file, mediaGroups } from './library/media.js';
|
|
5
|
-
import { planningGroups } from './library/planning.js';
|
|
6
|
-
import { lifeGroups } from './library/life.js';
|
|
7
|
-
import { moneyGroups } from './library/money.js';
|
|
8
|
-
import { communityGroups } from './library/community.js';
|
|
9
|
-
import { activity, automation, automationRun } from '../schemas/automations.js';
|
|
10
|
-
import { collectionsGroups } from './library/collections.js';
|
|
11
|
-
import { botSettings, connect, connector } from './connectors.js';
|
|
12
|
-
/** Shapes that attach to anything: the annotations, and files, which may be about a record */
|
|
13
|
-
export const standardAnnotations = [...annotationGroups.Annotations, file];
|
|
14
|
-
/**
|
|
15
|
-
* The library by area, in the order it is listed: what `collections_standard`
|
|
16
|
-
* shows an agent, and the tables in `packages/core/docs/standard-library.md`.
|
|
17
|
-
*/
|
|
18
|
-
export const standardGroups = Object.freeze({
|
|
19
|
-
...annotationGroups,
|
|
20
|
-
...socialGroups,
|
|
21
|
-
...publishingGroups,
|
|
22
|
-
...mediaGroups,
|
|
23
|
-
...planningGroups,
|
|
24
|
-
...lifeGroups,
|
|
25
|
-
...moneyGroups,
|
|
26
|
-
...communityGroups,
|
|
27
|
-
Rules: [automation, automationRun, activity],
|
|
28
|
-
Bots: [botSettings, connect, connector],
|
|
29
|
-
...collectionsGroups,
|
|
30
|
-
});
|
|
31
|
-
/** Common nouns apps share: everything but the annotations */
|
|
32
|
-
export const standardNouns = Object.values(standardGroups).slice(1).flat();
|
|
33
|
-
/** Everything in the library */
|
|
34
|
-
export const standardSchemas = Object.values(standardGroups).flat();
|
|
35
|
-
/** The library's definition of a `std.*` name, or undefined when it has none */
|
|
36
|
-
export function standardDefinition(name) {
|
|
37
|
-
return standardSchemas.find((definition) => definition.name === name);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=standard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"standard.js","sourceRoot":"","sources":["../../src/schemas/standard.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;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AC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The address of the account page beside the home's connect page, saying
|
|
3
|
-
* which account the app acts for.
|
|
4
|
-
* @param home The home's address, as the connection remembers it
|
|
5
|
-
* @param did The account the app acts for, or null before it acts for one
|
|
6
|
-
* @param section A part of the page to open at, such as `notifications`
|
|
7
|
-
*/
|
|
8
|
-
export declare function accountHomeLink(home: string, did: string | null, section?: string): string;
|
|
9
|
-
/** The account this page was opened for, if the link said and it is a DID at all */
|
|
10
|
-
export declare function readAccountHint(): string | null;
|
|
11
|
-
/** Takes the hint out of the address, leaving any section, so a refresh or a shared link does not carry it */
|
|
12
|
-
export declare function clearAccountHint(): void;
|
|
13
|
-
//# sourceMappingURL=account-hint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account-hint.d.ts","sourceRoot":"","sources":["../../src/session/account-hint.ts"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAK1F;AAED,oFAAoF;AACpF,wBAAgB,eAAe,IAAI,MAAM,GAAG,IAAI,CAS/C;AAWD,8GAA8G;AAC9G,wBAAgB,gBAAgB,IAAI,IAAI,CAKvC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module session/account-hint
|
|
3
|
-
* Which account an app acts for, when it opens the person's account home:
|
|
4
|
-
* `#account=<did>` on the home's address. In the fragment, so the server that
|
|
5
|
-
* serves the home never sees it.
|
|
6
|
-
*
|
|
7
|
-
* Only a hint. Any page can open the home with any DID, so the home shows
|
|
8
|
-
* which account was asked for and lets the person choose; it never signs out
|
|
9
|
-
* or switches on a hint alone.
|
|
10
|
-
*/
|
|
11
|
-
import { P256_MULTICODEC, didToPublicKey } from '../identity/did.js';
|
|
12
|
-
const HINT = /[#&]account=([^&]+)/;
|
|
13
|
-
/**
|
|
14
|
-
* The address of the account page beside the home's connect page, saying
|
|
15
|
-
* which account the app acts for.
|
|
16
|
-
* @param home The home's address, as the connection remembers it
|
|
17
|
-
* @param did The account the app acts for, or null before it acts for one
|
|
18
|
-
* @param section A part of the page to open at, such as `notifications`
|
|
19
|
-
*/
|
|
20
|
-
export function accountHomeLink(home, did, section) {
|
|
21
|
-
const url = new URL('.', home);
|
|
22
|
-
const hint = did ? `account=${encodeURIComponent(did)}` : '';
|
|
23
|
-
url.hash = [section && encodeURIComponent(section), hint].filter(Boolean).join('&');
|
|
24
|
-
return url.href;
|
|
25
|
-
}
|
|
26
|
-
/** The account this page was opened for, if the link said and it is a DID at all */
|
|
27
|
-
export function readAccountHint() {
|
|
28
|
-
const match = HINT.exec(globalThis.location?.hash ?? '');
|
|
29
|
-
if (!match?.[1])
|
|
30
|
-
return null;
|
|
31
|
-
try {
|
|
32
|
-
const did = decodeURIComponent(match[1]);
|
|
33
|
-
return isAccountDid(did) ? did : null;
|
|
34
|
-
}
|
|
35
|
-
catch {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
/** An account is a compressed P-256 key; `didToPublicKey` alone does not check which kind */
|
|
40
|
-
function isAccountDid(did) {
|
|
41
|
-
const { publicKeyBytes, multicodecPrefix } = didToPublicKey(did);
|
|
42
|
-
const p256 = multicodecPrefix.length === P256_MULTICODEC.length &&
|
|
43
|
-
multicodecPrefix.every((byte, at) => byte === P256_MULTICODEC[at]);
|
|
44
|
-
return p256 && publicKeyBytes.length === 33;
|
|
45
|
-
}
|
|
46
|
-
/** Takes the hint out of the address, leaving any section, so a refresh or a shared link does not carry it */
|
|
47
|
-
export function clearAccountHint() {
|
|
48
|
-
const { location, history } = globalThis;
|
|
49
|
-
if (!location || !history || !HINT.test(location.hash))
|
|
50
|
-
return;
|
|
51
|
-
const rest = location.hash.replace(HINT, '').replace(/^#?&?/, '');
|
|
52
|
-
history.replaceState(null, '', location.pathname + location.search + (rest ? `#${rest}` : ''));
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=account-hint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account-hint.js","sourceRoot":"","sources":["../../src/session/account-hint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAErE,MAAM,IAAI,GAAG,qBAAqB,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,GAAkB,EAAE,OAAgB;IAChF,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAC/B,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,WAAW,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7D,GAAG,CAAC,IAAI,GAAG,CAAC,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpF,OAAO,GAAG,CAAC,IAAI,CAAC;AAClB,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,eAAe;IAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzD,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAC7B,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,OAAO,YAAY,CAAC,GAA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