@minca/core 0.2.0 → 0.3.1
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/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 +45 -71
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -53
- package/dist/index.js.map +1 -1
- package/dist/network/mesh.d.ts.map +1 -1
- package/dist/network/mesh.js +10 -0
- package/dist/network/mesh.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 +8 -3
- package/dist/network/rtc-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 +7 -14
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +4 -8
- 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 +13 -4
- package/dist/node/node-hosting.js.map +1 -1
- package/dist/node/node-records.js +1 -1
- package/dist/node/node-records.js.map +1 -1
- package/dist/node/node.d.ts.map +1 -1
- package/dist/node/node.js +134 -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-peers.d.ts +5 -2
- package/dist/node/space-peers.d.ts.map +1 -1
- package/dist/node/space-peers.js +3 -2
- package/dist/node/space-peers.js.map +1 -1
- package/dist/node/space-runtime.d.ts +3 -1
- package/dist/node/space-runtime.d.ts.map +1 -1
- package/dist/node/space-runtime.js +29 -8
- 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 +11 -4
- package/dist/node/space-standing.js.map +1 -1
- package/dist/node/space-writing.d.ts.map +1 -1
- package/dist/node/space-writing.js +9 -0
- package/dist/node/space-writing.js.map +1 -1
- package/dist/node/stores.d.ts +9 -1
- package/dist/node/stores.d.ts.map +1 -1
- package/dist/node/stores.js +4 -2
- package/dist/node/stores.js.map +1 -1
- package/dist/node/types.d.ts +16 -5
- package/dist/node/types.d.ts.map +1 -1
- package/dist/node/worker.d.ts +14 -6
- package/dist/node/worker.d.ts.map +1 -1
- package/dist/node/worker.js +59 -20
- package/dist/node/worker.js.map +1 -1
- package/dist/node/writer-keys.d.ts +2 -2
- package/dist/node/writer-keys.d.ts.map +1 -1
- package/dist/node/writer-keys.js +12 -14
- 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 +2 -0
- package/dist/records/key.d.ts.map +1 -1
- package/dist/records/key.js +4 -0
- package/dist/records/key.js.map +1 -1
- package/dist/records/links.js +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/session/connect.d.ts +12 -5
- package/dist/session/connect.d.ts.map +1 -1
- package/dist/session/connect.js +25 -21
- package/dist/session/connect.js.map +1 -1
- package/dist/session/connection.d.ts +8 -2
- package/dist/session/connection.d.ts.map +1 -1
- package/dist/session/connection.js +140 -11
- package/dist/session/connection.js.map +1 -1
- package/dist/session/hosting.d.ts +1 -7
- package/dist/session/hosting.d.ts.map +1 -1
- package/dist/session/hosting.js +3 -3
- package/dist/session/hosting.js.map +1 -1
- package/dist/session/index.d.ts +7 -12
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +6 -9
- package/dist/session/index.js.map +1 -1
- package/dist/session/stay-signed-in.d.ts +0 -1
- package/dist/session/stay-signed-in.d.ts.map +1 -1
- package/dist/session/stay-signed-in.js +1 -1
- package/dist/session/stay-signed-in.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 +26 -0
- package/dist/storage/body-cache.d.ts.map +1 -0
- package/dist/storage/body-cache.js +41 -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/folder-adapter.d.ts +8 -2
- package/dist/storage/folder-adapter.d.ts.map +1 -1
- package/dist/storage/folder-adapter.js +43 -26
- package/dist/storage/folder-adapter.js.map +1 -1
- package/dist/storage/indexeddb-adapter.js +27 -2
- package/dist/storage/indexeddb-adapter.js.map +1 -1
- package/dist/storage/sqlite-adapter.d.ts +57 -0
- package/dist/storage/sqlite-adapter.d.ts.map +1 -0
- package/dist/storage/sqlite-adapter.js +213 -0
- package/dist/storage/sqlite-adapter.js.map +1 -0
- package/dist/storage/storage-provider.d.ts +21 -2
- package/dist/storage/storage-provider.d.ts.map +1 -1
- package/dist/storage/storage-provider.js +149 -56
- package/dist/storage/storage-provider.js.map +1 -1
- package/dist/sync/sync-engine.d.ts +10 -4
- package/dist/sync/sync-engine.d.ts.map +1 -1
- package/dist/sync/sync-engine.js +120 -38
- package/dist/sync/sync-engine.js.map +1 -1
- package/dist/sync/sync-messages.d.ts +4 -0
- package/dist/sync/sync-messages.d.ts.map +1 -1
- package/dist/sync/sync-messages.js.map +1 -1
- package/dist/types.d.ts +0 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -1
- package/dist/types.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 +1 -1
- 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/collections.md +2 -4
- package/docs/computed.md +1 -2
- package/docs/node.md +87 -23
- package/docs/proposing-collections.md +3 -3
- package/docs/sign-in.md +16 -16
- package/docs/spaces.md +0 -5
- package/docs/standard-library.md +6 -8
- package/docs/storage.md +78 -12
- package/docs/usernames.md +1 -1
- package/package.json +7 -8
- 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/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/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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-registry.d.ts","sourceRoot":"","sources":["../../src/space/account-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,E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QAAQ,CAAC,CAAC,CAAC,GAAG;QACjD,eAAe,EAAE,GAAG,CAAC,EAAE;KACxB,CAAC;IACF,MAAM,KAAK,GAAU,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;IAC7E,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrD,CAAC"}
|
|
@@ -1,39 +1,61 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The account's own automations: "let me know when…", across its spaces
|
|
3
|
-
* noticed by nodes that can't read.
|
|
2
|
+
* The account's own automations: "let me know when…", across its spaces.
|
|
4
3
|
*
|
|
5
|
-
* Kept in the account registry (`sys.automation`) rather than a space,
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* The account's carriers are the ones online to notice, and they can't read.
|
|
11
|
-
* So every device holding the account key copies each automation into each
|
|
12
|
-
* carry space as a **wake** (`sys.wake`): the collection, the spaces, and the
|
|
13
|
-
* tags of the topic values its `where` asks for, never the values. That much
|
|
14
|
-
* is protocol (spec 03 §15).
|
|
4
|
+
* Kept in the account registry (`sys.automation`) rather than a space, one
|
|
5
|
+
* is the account's alone, and looks at the spaces it names, or all of them.
|
|
6
|
+
* It only notifies: new records of one collection, perhaps only those a
|
|
7
|
+
* filter matches. Automations that act in a space are `std.automation`, in
|
|
8
|
+
* `@minca/std`, and nothing here knows them.
|
|
15
9
|
*
|
|
16
10
|
* Only an app proposes them (`AutomationProposal`), when the person asks; the
|
|
17
|
-
* home writes them into the registry once the person says yes.
|
|
18
|
-
* asked shows the notifications (`matchesRecord`,
|
|
19
|
-
* `node/watch-notifications.ts`).
|
|
11
|
+
* home writes them into the registry once the person says yes.
|
|
20
12
|
*/
|
|
21
|
-
import type {
|
|
22
|
-
import type {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export declare const WAKE_COLLECTION = "sys.wake";
|
|
13
|
+
import type { Link } from '../types.js';
|
|
14
|
+
import type { Filter } from '../query/types.js';
|
|
15
|
+
/** In a filter, whoever it is read for: the account, for one of its own automations */
|
|
16
|
+
export declare const ME = "$me";
|
|
17
|
+
/** `$me` wherever it is a value, as the account the filter is read for */
|
|
18
|
+
export declare function asRunner<T>(value: T, me: string): T;
|
|
28
19
|
/** What an account's own automation finds: new records of one collection, perhaps only those `where` matches */
|
|
29
20
|
export interface OwnQuery {
|
|
30
21
|
readonly collection: string;
|
|
31
22
|
readonly where?: Filter;
|
|
32
23
|
}
|
|
24
|
+
/** Every space of the account, or these */
|
|
25
|
+
export type AutomationSpaces = 'all' | ReadonlyArray<string>;
|
|
26
|
+
/** The app that proposed an account's own automation, by the origin the browser reported */
|
|
27
|
+
export interface AutomationApp {
|
|
28
|
+
readonly origin: string;
|
|
29
|
+
/** What the app called itself. Shown, never trusted. */
|
|
30
|
+
readonly name?: string;
|
|
31
|
+
}
|
|
32
|
+
/** One of the account's own automations, as its registry keeps it */
|
|
33
|
+
export interface OwnAutomation {
|
|
34
|
+
/** What people call it */
|
|
35
|
+
readonly name: string;
|
|
36
|
+
/** The records that set it off; with `others`, only ones someone else wrote */
|
|
37
|
+
readonly when: {
|
|
38
|
+
readonly query: OwnQuery;
|
|
39
|
+
readonly others?: boolean;
|
|
40
|
+
};
|
|
41
|
+
/** What the notification says */
|
|
42
|
+
readonly then: {
|
|
43
|
+
readonly kind: 'notify';
|
|
44
|
+
readonly text: string;
|
|
45
|
+
};
|
|
46
|
+
/** The spaces it looks at */
|
|
47
|
+
readonly spaces: AutomationSpaces;
|
|
48
|
+
/** Where clicking its notification goes: an app's `https://` address. Default: the account home. */
|
|
49
|
+
readonly open?: string;
|
|
50
|
+
/** The app that proposed it. Absent: the person made it themselves. */
|
|
51
|
+
readonly app?: AutomationApp;
|
|
52
|
+
/** Kept, but not on */
|
|
53
|
+
readonly paused?: boolean;
|
|
54
|
+
/** Nothing written before this sets it off */
|
|
55
|
+
readonly since: string;
|
|
56
|
+
}
|
|
33
57
|
/** Why this can't be one of the account's own automations, or null */
|
|
34
58
|
export declare function checkOwnAutomation(value: unknown): string | null;
|
|
35
|
-
/** The collection and filter an account's own automation reads */
|
|
36
|
-
export declare function ownQuery(own: Automation): OwnQuery;
|
|
37
59
|
/**
|
|
38
60
|
* What an app says is worth hearing about, before anyone has picked spaces or
|
|
39
61
|
* where a click goes: an automation it offers. Whoever shows the app proposes
|
|
@@ -68,9 +90,7 @@ export interface AutomationProposal extends AppAutomation {
|
|
|
68
90
|
* those `where` matches. `notifyOn('Mentions me', 'std.message', { mentions: { $contains: '$me' } })`
|
|
69
91
|
*/
|
|
70
92
|
export declare function notifyOn(name: string, collection: string, where?: Filter): AppAutomation;
|
|
71
|
-
/**
|
|
72
|
-
export declare const namesTheRunner: (own: Pick<AppAutomation, 'when'>) => boolean;
|
|
73
|
-
/** At most this many proposals in one request */
|
|
93
|
+
/** How many automations an app may propose at once */
|
|
74
94
|
export declare const MAX_PROPOSALS = 8;
|
|
75
95
|
/** Why an app's offered automation can't be offered, or null */
|
|
76
96
|
export declare function checkAppAutomation(value: unknown): string | null;
|
|
@@ -80,69 +100,6 @@ export declare function checkAppAutomation(value: unknown): string | null;
|
|
|
80
100
|
* Without it, only what the proposal says is checked.
|
|
81
101
|
*/
|
|
82
102
|
export declare function checkProposal(proposal: unknown, origin?: string): string | null;
|
|
83
|
-
/**
|
|
84
|
-
* The spaces a proposal looks at, given the ones the app may reach; null when
|
|
85
|
-
* it names one outside them.
|
|
86
|
-
*/
|
|
87
|
-
export declare function proposalSpaces(proposal: AutomationProposal, reach: AutomationSpaces): AutomationSpaces | null;
|
|
88
|
-
/** The automation a proposal becomes, once the person says yes to it */
|
|
89
|
-
export declare function fromProposal(proposal: AutomationProposal, context: {
|
|
90
|
-
readonly app: AutomationApp;
|
|
91
|
-
readonly spaces: AutomationSpaces;
|
|
92
|
-
readonly since?: string;
|
|
93
|
-
}): Automation;
|
|
94
|
-
/** Whether two of the account's automations ask about the same thing: an app connecting again adds nothing twice */
|
|
95
|
-
export declare function sameAutomation(a: Automation, b: Automation): boolean;
|
|
96
|
-
/** A space the account follows, as far as a wake needs: its id, its current key when private, and the topics it declares */
|
|
97
|
-
export interface WakeSpace {
|
|
98
|
-
readonly id: string;
|
|
99
|
-
readonly key: SpaceKey | null;
|
|
100
|
-
readonly visibility: 'public' | 'private';
|
|
101
|
-
/** The topic fields a collection declares in this space */
|
|
102
|
-
readonly topics: (collection: string) => ReadonlyArray<string>;
|
|
103
|
-
/** A collection's computed fields in this space, when it has any */
|
|
104
|
-
readonly computed?: (collection: string) => ComputedFields | undefined;
|
|
105
|
-
}
|
|
106
|
-
/** An automation as a carrier holds it: no values, only tags */
|
|
107
|
-
export interface Wake {
|
|
108
|
-
readonly v: 1;
|
|
109
|
-
readonly collection: string;
|
|
110
|
-
readonly spaces: AutomationSpaces;
|
|
111
|
-
/**
|
|
112
|
-
* Per space: a record matches only when it carries one of these. A space
|
|
113
|
-
* with no entry: any record of the collection.
|
|
114
|
-
*/
|
|
115
|
-
readonly tags?: Readonly<Record<string, ReadonlyArray<string>>>;
|
|
116
|
-
readonly others: boolean;
|
|
117
|
-
readonly open?: string;
|
|
118
|
-
readonly paused: boolean;
|
|
119
|
-
readonly since: string;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* What a carrier gets: the automation, with each value its `where` requires
|
|
123
|
-
* of a topic replaced by the space's tag for it. A private space whose key
|
|
124
|
-
* this device doesn't hold gets an empty list, so it never matches — better
|
|
125
|
-
* quiet than wrong. A space where `where` names no topic gets no entry: every
|
|
126
|
-
* new record wakes, and the app turns down what `where` doesn't match.
|
|
127
|
-
*/
|
|
128
|
-
export declare function wakeFor(own: Automation, spaces: ReadonlyArray<WakeSpace>, account: string): Promise<Wake>;
|
|
129
|
-
/** A wake as read back from a carry space, or null when it isn't one */
|
|
130
|
-
export declare function readWake(body: unknown): Wake | null;
|
|
131
|
-
/**
|
|
132
|
-
* The wakes an automation needs besides its own, made from it: when its
|
|
133
|
-
* `where` names a computed field, one for each collection that field reads
|
|
134
|
-
* in the spaces it looks at, since a new 👍 can make a todo done. Their tags
|
|
135
|
-
* would be the todo's, so they keep only the spaces they must stay quiet in;
|
|
136
|
-
* any new record elsewhere wakes, and the app judges. A filter whose fields
|
|
137
|
-
* read more than four collections gets none: whoever defines the collection
|
|
138
|
-
* could otherwise have every member's devices write a wake per name.
|
|
139
|
-
*/
|
|
140
|
-
export declare function linkedWakes(own: Automation, wake: Wake, spaces: ReadonlyArray<WakeSpace>): ReadonlyArray<Wake>;
|
|
141
|
-
/**
|
|
142
|
-
* Whether a record that just arrived in a space is one a wake asks about —
|
|
143
|
-
* decided from its outside alone.
|
|
144
|
-
*/
|
|
145
|
-
export declare function wakes(wake: Wake, spaceId: string, version: Version, account: string, now?: number): boolean;
|
|
146
103
|
/** What an app sees of a record, enough to match an automation: its outside and, where it can open it, its body */
|
|
147
104
|
export interface ReadableRecord {
|
|
148
105
|
readonly key: string;
|
|
@@ -168,18 +125,17 @@ export interface Trigger {
|
|
|
168
125
|
/**
|
|
169
126
|
* Whether one of the account's own automations holds for a record: it is in
|
|
170
127
|
* the collection, and `where` holds of its body and computed fields. The app
|
|
171
|
-
* can read, so this is judged on the body
|
|
172
|
-
* carrier's wake lets through, only fewer.
|
|
128
|
+
* can read, so this is judged on the body.
|
|
173
129
|
*/
|
|
174
|
-
export declare function holdsFor(own:
|
|
130
|
+
export declare function holdsFor(own: OwnAutomation, record: ReadableRecord, account: string): boolean;
|
|
175
131
|
/**
|
|
176
132
|
* Whether what was written may set one of the account's own automations off
|
|
177
133
|
* in a space: it is on, looks there, the writing is new enough, and, with
|
|
178
134
|
* `others`, someone else's. A carrier checks the same of a record's outside.
|
|
179
135
|
*/
|
|
180
|
-
export declare function setsOff(own:
|
|
136
|
+
export declare function setsOff(own: OwnAutomation, space: string, trigger: Trigger, account: string, now?: number): boolean;
|
|
181
137
|
/** Whether a new record an app just saw is one an automation of the account's own asks about */
|
|
182
|
-
export declare function matchesRecord(own:
|
|
138
|
+
export declare function matchesRecord(own: OwnAutomation, record: ReadableRecord, account: string, now?: number): boolean;
|
|
183
139
|
/**
|
|
184
140
|
* The collection the account's own automations are kept in, in its registry:
|
|
185
141
|
* a system one, which nothing defines, so no other key of the account can
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"own-automations.d.ts","sourceRoot":"","sources":["../../src/space/own-automations.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"own-automations.d.ts","sourceRoot":"","sources":["../../src/space/own-automations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAIhD,uFAAuF;AACvF,eAAO,MAAM,EAAE,QAAQ,CAAC;AAExB,0EAA0E;AAC1E,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,CAGnD;AAKD,gHAAgH;AAChH,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,2CAA2C;AAC3C,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;AAE7D,4FAA4F;AAC5F,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,qEAAqE;AACrE,MAAM,WAAW,aAAa;IAC5B,0BAA0B;IAC1B,QAAQ,CAAC,IAAI,EAAE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