@listen-fire/engine-contracts 0.13.0 → 0.13.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/arrivals.d.ts +8 -1
- package/dist/catalog.d.ts +6 -0
- package/dist/catalog.js +5 -2
- package/dist/conformance/arrival-triggers.json +51 -0
- package/dist/conformance/listen-arrivals.json +137 -2
- package/dist/conformance/recording.d.ts +120 -0
- package/dist/event.d.ts +16 -0
- package/dist/event.js +21 -2
- package/dist/listen_plan.d.ts +26 -1
- package/dist/listen_plan.js +36 -2
- package/dist/protocol.d.ts +173 -4
- package/dist/protocol.js +21 -6
- package/dist/versions.d.ts +1 -1
- package/package.json +2 -2
package/dist/arrivals.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ActorIdentity } from './adapter';
|
|
1
2
|
/** A record a run waits on: the id its write answered, the data it
|
|
2
3
|
* carried (Slack keys a thread by the channel in it, not by its id), and its
|
|
3
4
|
* record type, as the module names it, wherever the host knows it (2.6). A
|
|
@@ -58,8 +59,14 @@ export type Arrival = {
|
|
|
58
59
|
takenApplied?: boolean;
|
|
59
60
|
/** When it happened at its provider (an ISO instant), where the
|
|
60
61
|
* provider says: a host measures from it whether a run's write caused
|
|
61
|
-
* it, however late a poll finds it (2.6)
|
|
62
|
+
* it, however late a poll finds it (2.6), and the run it fires
|
|
63
|
+
* stamps its writes with it (2.7). */
|
|
62
64
|
occurredAt?: string;
|
|
65
|
+
/** Who acted, where the provider says: the member who posted, the
|
|
66
|
+
* sender of the mail, the owner of the meeting (2.7). The run's
|
|
67
|
+
* `@actor_*` reads it, and a host resolves the acting user from it;
|
|
68
|
+
* set at the door, so nothing after it needs the raw event. */
|
|
69
|
+
actor?: ActorIdentity;
|
|
63
70
|
} | {
|
|
64
71
|
edge: string;
|
|
65
72
|
key: string;
|
package/dist/catalog.d.ts
CHANGED
|
@@ -483,6 +483,7 @@ export declare const schemaFieldDescriptorSchema: z.ZodObject<{
|
|
|
483
483
|
changedIn: z.ZodOptional<z.ZodObject<{
|
|
484
484
|
release: z.ZodString;
|
|
485
485
|
note: z.ZodString;
|
|
486
|
+
unchangedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
486
487
|
}, z.core.$strip>>;
|
|
487
488
|
}, z.core.$strip>;
|
|
488
489
|
export type SchemaFieldDescriptor = z.infer<typeof schemaFieldDescriptorSchema>;
|
|
@@ -670,6 +671,7 @@ export declare const schemaReferenceDescriptorSchema: z.ZodPreprocess<z.ZodObjec
|
|
|
670
671
|
changedIn: z.ZodOptional<z.ZodObject<{
|
|
671
672
|
release: z.ZodString;
|
|
672
673
|
note: z.ZodString;
|
|
674
|
+
unchangedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
673
675
|
}, z.core.$strip>>;
|
|
674
676
|
}, z.core.$strip>>>;
|
|
675
677
|
backingFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -844,6 +846,7 @@ export declare const schemaTypeDescriptorSchema: z.ZodObject<{
|
|
|
844
846
|
changedIn: z.ZodOptional<z.ZodObject<{
|
|
845
847
|
release: z.ZodString;
|
|
846
848
|
note: z.ZodString;
|
|
849
|
+
unchangedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
847
850
|
}, z.core.$strip>>;
|
|
848
851
|
}, z.core.$strip>>;
|
|
849
852
|
references: z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
@@ -1005,6 +1008,7 @@ export declare const schemaTypeDescriptorSchema: z.ZodObject<{
|
|
|
1005
1008
|
changedIn: z.ZodOptional<z.ZodObject<{
|
|
1006
1009
|
release: z.ZodString;
|
|
1007
1010
|
note: z.ZodString;
|
|
1011
|
+
unchangedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1008
1012
|
}, z.core.$strip>>;
|
|
1009
1013
|
}, z.core.$strip>>>;
|
|
1010
1014
|
backingFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1235,6 +1239,7 @@ declare const schemaDescriptorSchema: z.ZodObject<{
|
|
|
1235
1239
|
changedIn: z.ZodOptional<z.ZodObject<{
|
|
1236
1240
|
release: z.ZodString;
|
|
1237
1241
|
note: z.ZodString;
|
|
1242
|
+
unchangedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1238
1243
|
}, z.core.$strip>>;
|
|
1239
1244
|
}, z.core.$strip>>;
|
|
1240
1245
|
references: z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
@@ -1396,6 +1401,7 @@ declare const schemaDescriptorSchema: z.ZodObject<{
|
|
|
1396
1401
|
changedIn: z.ZodOptional<z.ZodObject<{
|
|
1397
1402
|
release: z.ZodString;
|
|
1398
1403
|
note: z.ZodString;
|
|
1404
|
+
unchangedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1399
1405
|
}, z.core.$strip>>;
|
|
1400
1406
|
}, z.core.$strip>>>;
|
|
1401
1407
|
backingFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
package/dist/catalog.js
CHANGED
|
@@ -743,8 +743,11 @@ exports.schemaFieldDescriptorSchema = zod_1.z.object({
|
|
|
743
743
|
mayBeAbsent: zod_1.z.boolean().optional(),
|
|
744
744
|
/** The release that changed what the field holds, and how, as a check for
|
|
745
745
|
* an upgrade from before it warns where a program reads it (gmail's
|
|
746
|
-
* `Labels`: label ids before 0.13, names since).
|
|
747
|
-
|
|
746
|
+
* `Labels`: label ids before 0.13, names since). `unchangedValues` are
|
|
747
|
+
* the values a program may compare the field with that mean what they
|
|
748
|
+
* meant before (the mailbox's own labels): a comparison with literals all
|
|
749
|
+
* among them is not warned. */
|
|
750
|
+
changedIn: zod_1.z.object({ release: zod_1.z.string().min(1), note: zod_1.z.string().min(1), unchangedValues: zod_1.z.array(zod_1.z.string().min(1)).optional() }).optional(),
|
|
748
751
|
}).superRefine((field, ctx) => {
|
|
749
752
|
if ((field.kind === 'owned') !== (field.owned !== undefined)) {
|
|
750
753
|
ctx.addIssue({
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "The event a host hands the run an arrival fires: the landing, its carried parents, what it is about and who acted (adapter protocol 2.7), under the arrival's edge; stamped with when it happened at its provider, as an ISO instant, or with the host's now when the arrival names no time. listen-fire (crates/lf/src/routing.rs arrival_trigger_of) and the TypeScript host (movement-engine triggers/listen_plans.ts arrivalTriggerOf, which the embed and lf-platform build runs with) both read this table, so a run reads the same event on either host.",
|
|
3
|
+
"cases": [
|
|
4
|
+
{
|
|
5
|
+
"name": "a bare landing, stamped with the host's now",
|
|
6
|
+
"pipelineInputId": "listen:crm:welcome",
|
|
7
|
+
"adapterType": "acme_crm",
|
|
8
|
+
"now": "2026-10-31T00:00:00.000Z",
|
|
9
|
+
"arrival": { "edge": "Company", "identity": "company-1", "landing": { "recordId": "company-1", "recordType": "Company", "fields": { "id": "company-1", "Name": "Osprey" } } },
|
|
10
|
+
"trigger": {
|
|
11
|
+
"pipelineInputId": "listen:crm:welcome",
|
|
12
|
+
"adapterType": "acme_crm",
|
|
13
|
+
"triggerType": "arrival",
|
|
14
|
+
"arrival": { "adapterType": "acme_crm", "edge": "Company", "landing": { "recordId": "company-1", "recordType": "Company", "fields": { "id": "company-1", "Name": "Osprey" } } },
|
|
15
|
+
"occurredAt": "2026-10-31T00:00:00.000Z"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "a reply carrying its channel, about its message, by a member, when it happened",
|
|
20
|
+
"pipelineInputId": "listen:chat:answer",
|
|
21
|
+
"adapterType": "slack",
|
|
22
|
+
"now": "2026-11-02T12:00:00.000Z",
|
|
23
|
+
"arrival": {
|
|
24
|
+
"edge": "Replies",
|
|
25
|
+
"key": "C1:1700000000.000100",
|
|
26
|
+
"identity": "C1:1700000050.000200",
|
|
27
|
+
"version": "1",
|
|
28
|
+
"landing": { "recordId": "C1:1700000050.000200", "recordType": "Message", "fields": { "text": "on it", "user": "U1" } },
|
|
29
|
+
"parents": [{ "recordId": "C1", "recordType": "Channel", "fields": { "Name": "deals" } }, null],
|
|
30
|
+
"about": { "recordType": "Message", "externalId": "C1:1700000000.000100" },
|
|
31
|
+
"occurredAt": "2023-11-14T22:14:10+00:00",
|
|
32
|
+
"actor": { "identifier": "U1", "scheme": "opaque", "label": "U1" },
|
|
33
|
+
"takenApplied": true
|
|
34
|
+
},
|
|
35
|
+
"trigger": {
|
|
36
|
+
"pipelineInputId": "listen:chat:answer",
|
|
37
|
+
"adapterType": "slack",
|
|
38
|
+
"triggerType": "arrival",
|
|
39
|
+
"arrival": {
|
|
40
|
+
"adapterType": "slack",
|
|
41
|
+
"edge": "Replies",
|
|
42
|
+
"landing": { "recordId": "C1:1700000050.000200", "recordType": "Message", "fields": { "text": "on it", "user": "U1" } },
|
|
43
|
+
"parents": [{ "recordId": "C1", "recordType": "Channel", "fields": { "Name": "deals" } }, null],
|
|
44
|
+
"about": { "recordType": "Message", "externalId": "C1:1700000000.000100" },
|
|
45
|
+
"actor": { "identifier": "U1", "scheme": "opaque", "label": "U1" }
|
|
46
|
+
},
|
|
47
|
+
"occurredAt": "2023-11-14T22:14:10.000Z"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"about": "Whether an arrival fires a listen, by its plan's filters. Each plan is the checker's answer for its listen's source against `catalog` (both runners check that it still is). Only hops judged on arrival are judged, each against the record the arrival carries for it: `landing` for the last hop, `parents` (aligned to the plan's `carries`) for earlier ones. Each record states its `recordType`, which must be the record type its hop lands on (`to`): one edge name may hang off several record types (`pay`'s Customer and Invoice each have `Changes`), and a record of another type skips at its hop, the landing judged first; a record that states none is undecided. A hop's checked part is always evaluated; its taken part too, unless `takenApplied` says the module applied it. `now` is the instant WITHIN measures from. The verdict is `{fires: true}`, `{skips: n}` (the hop whose filter fails, outermost 0; with a `reason` when the record carried for that hop is of another record type, so no filter was read), or `{undecided: reason}` (the host logs it and runs nothing). Held by listen-fire's Rust (crates/movement-engine/src/listen_judge.rs, judge_arrival), the engine's TypeScript (judgeArrival, through the wasm) and the hosted product. A read on through a record a field holds (`c.Current.Stage`) reads that field of the landing, then the member of what it holds; a record absent reads its members absent. The checker has the listen test a record present before it reads through it (`exists(c.Current) AND c.Current.Stage == …`), and an operand of AND or OR is read only when the operands before it leave the answer open, so a read the test guards is never read on an absent record. A record may name the fields its module could not read (`unknown`): a part of the filter reading one is undecided, whatever `fields` holds for it, never read as absent; AND, OR and NOT are three-valued, so an OR one side holds holds and an AND one side fails fails, in either order; a hop that fails still decides.",
|
|
2
|
+
"about": "Whether an arrival fires a listen, by its plan's filters. Each plan is the checker's answer for its listen's source against `catalog` (both runners check that it still is). Only hops judged on arrival are judged, each against the record the arrival carries for it: `landing` for the last hop, `parents` (aligned to the plan's `carries`) for earlier ones. Each record states its `recordType`, which must be the record type its hop lands on (`to`): one edge name may hang off several record types (`pay`'s Customer and Invoice each have `Changes`), and a record of another type skips at its hop, the landing judged first; a record that states none is undecided. A hop's checked part is always evaluated; its taken part too, unless `takenApplied` says the module applied it. `now` is the instant WITHIN measures from. The verdict is `{fires: true}`, `{skips: n}` (the hop whose filter fails, outermost 0; with a `reason` when the record carried for that hop is of another record type, so no filter was read), or `{undecided: reason}` (the host logs it and runs nothing). A listen through or onto a union is one plan holding each member's traversal (`members`), judged once: it fires when one member's does, a record of another member's type being that member's to decide; it is undecided when one member cannot tell; it skips when every member does, by a filter when one member's record types matched, else by type, naming every member's. Held by listen-fire's Rust (crates/movement-engine/src/listen_judge.rs, judge_arrival), the engine's TypeScript (judgeArrival, through the wasm) and the hosted product. A read on through a record a field holds (`c.Current.Stage`) reads that field of the landing, then the member of what it holds; a record absent reads its members absent. The checker has the listen test a record present before it reads through it (`exists(c.Current) AND c.Current.Stage == …`), and an operand of AND or OR is read only when the operands before it leave the answer open, so a read the test guards is never read on an absent record. A record may name the fields its module could not read (`unknown`): a part of the filter reading one is undecided, whatever `fields` holds for it, never read as absent; AND, OR and NOT are three-valued, so an OR one side holds holds and an AND one side fails fails, in either order; a hop that fails still decides.",
|
|
3
3
|
"catalog": {
|
|
4
4
|
"adapters": {
|
|
5
5
|
"chat": {
|
|
@@ -403,6 +403,28 @@
|
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
|
+
"crm": {
|
|
407
|
+
"canFire": false,
|
|
408
|
+
"constructionArgs": [],
|
|
409
|
+
"schemas": {
|
|
410
|
+
"": {
|
|
411
|
+
"positions": {
|
|
412
|
+
"Person": {
|
|
413
|
+
"properties": { "Name": "text" },
|
|
414
|
+
"edges": { "Notes": { "target": "Note", "listenable": true, "identity": "Id", "delivery": "connection", "carries": ["Subjects"] } }
|
|
415
|
+
},
|
|
416
|
+
"Company": {
|
|
417
|
+
"properties": { "Name": "text" },
|
|
418
|
+
"edges": { "Notes": { "target": "Note", "listenable": true, "identity": "Id", "delivery": "connection", "carries": ["Subjects"] } }
|
|
419
|
+
},
|
|
420
|
+
"Note": { "properties": { "Id": "text", "Text": "text" }, "edges": {} }
|
|
421
|
+
},
|
|
422
|
+
"unions": { "Subject": ["Person", "Company"] },
|
|
423
|
+
"collections": { "Subjects": { "target": "Subject" } },
|
|
424
|
+
"writableRoots": {}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
},
|
|
406
428
|
"rows": {
|
|
407
429
|
"canFire": false,
|
|
408
430
|
"constructionArgs": [],
|
|
@@ -1612,6 +1634,113 @@
|
|
|
1612
1634
|
],
|
|
1613
1635
|
"movement": "neither"
|
|
1614
1636
|
}
|
|
1637
|
+
},
|
|
1638
|
+
"subjects": {
|
|
1639
|
+
"source": "import { crm as crm_module } from adapters; crm = connect crm_module\nfunction noted(n: <crm-[:Note]->>) { return n.Text }\nlisten to crm-[s:Subjects WHERE s.Name == \"Acme\"]->-[n:Notes WHERE n.Text != \"skip\"]-> fire noted\n",
|
|
1640
|
+
"plan": {
|
|
1641
|
+
"adapter": "crm",
|
|
1642
|
+
"connection": "crm",
|
|
1643
|
+
"hops": [],
|
|
1644
|
+
"members": [
|
|
1645
|
+
{
|
|
1646
|
+
"carries": [
|
|
1647
|
+
"Subjects"
|
|
1648
|
+
],
|
|
1649
|
+
"hops": [
|
|
1650
|
+
{
|
|
1651
|
+
"alias": "s",
|
|
1652
|
+
"checked": {
|
|
1653
|
+
"left": {
|
|
1654
|
+
"fieldOnly": true,
|
|
1655
|
+
"propertyTypeId": "Name",
|
|
1656
|
+
"type": "edge_property"
|
|
1657
|
+
},
|
|
1658
|
+
"op": "eq",
|
|
1659
|
+
"right": {
|
|
1660
|
+
"type": "static",
|
|
1661
|
+
"value": "Acme"
|
|
1662
|
+
},
|
|
1663
|
+
"type": "compare"
|
|
1664
|
+
},
|
|
1665
|
+
"edge": "Subjects",
|
|
1666
|
+
"from": "",
|
|
1667
|
+
"judged": "arrival",
|
|
1668
|
+
"memberOf": "Subject",
|
|
1669
|
+
"to": "Person"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"alias": "n",
|
|
1673
|
+
"checked": {
|
|
1674
|
+
"left": {
|
|
1675
|
+
"fieldOnly": true,
|
|
1676
|
+
"propertyTypeId": "Text",
|
|
1677
|
+
"type": "edge_property"
|
|
1678
|
+
},
|
|
1679
|
+
"op": "neq",
|
|
1680
|
+
"right": {
|
|
1681
|
+
"type": "static",
|
|
1682
|
+
"value": "skip"
|
|
1683
|
+
},
|
|
1684
|
+
"type": "compare"
|
|
1685
|
+
},
|
|
1686
|
+
"edge": "Notes",
|
|
1687
|
+
"from": "Person",
|
|
1688
|
+
"judged": "arrival",
|
|
1689
|
+
"to": "Note"
|
|
1690
|
+
}
|
|
1691
|
+
]
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
"carries": [
|
|
1695
|
+
"Subjects"
|
|
1696
|
+
],
|
|
1697
|
+
"hops": [
|
|
1698
|
+
{
|
|
1699
|
+
"alias": "s",
|
|
1700
|
+
"checked": {
|
|
1701
|
+
"left": {
|
|
1702
|
+
"fieldOnly": true,
|
|
1703
|
+
"propertyTypeId": "Name",
|
|
1704
|
+
"type": "edge_property"
|
|
1705
|
+
},
|
|
1706
|
+
"op": "eq",
|
|
1707
|
+
"right": {
|
|
1708
|
+
"type": "static",
|
|
1709
|
+
"value": "Acme"
|
|
1710
|
+
},
|
|
1711
|
+
"type": "compare"
|
|
1712
|
+
},
|
|
1713
|
+
"edge": "Subjects",
|
|
1714
|
+
"from": "",
|
|
1715
|
+
"judged": "arrival",
|
|
1716
|
+
"memberOf": "Subject",
|
|
1717
|
+
"to": "Company"
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
"alias": "n",
|
|
1721
|
+
"checked": {
|
|
1722
|
+
"left": {
|
|
1723
|
+
"fieldOnly": true,
|
|
1724
|
+
"propertyTypeId": "Text",
|
|
1725
|
+
"type": "edge_property"
|
|
1726
|
+
},
|
|
1727
|
+
"op": "neq",
|
|
1728
|
+
"right": {
|
|
1729
|
+
"type": "static",
|
|
1730
|
+
"value": "skip"
|
|
1731
|
+
},
|
|
1732
|
+
"type": "compare"
|
|
1733
|
+
},
|
|
1734
|
+
"edge": "Notes",
|
|
1735
|
+
"from": "Company",
|
|
1736
|
+
"judged": "arrival",
|
|
1737
|
+
"to": "Note"
|
|
1738
|
+
}
|
|
1739
|
+
]
|
|
1740
|
+
}
|
|
1741
|
+
],
|
|
1742
|
+
"movement": "noted"
|
|
1743
|
+
}
|
|
1615
1744
|
}
|
|
1616
1745
|
},
|
|
1617
1746
|
"cases": [
|
|
@@ -1678,6 +1807,12 @@
|
|
|
1678
1807
|
{"case": "an OR one side holds fires though its other side could not be read, that side second", "plan": "either", "arrival": {"edge": "Changes", "key": "tblCAND01", "landing": {"recordType": "Change", "fields": {"Kind": "created"}, "unknown": ["Id"]}}, "now": "2026-10-31T10:00:00Z", "verdict": {"fires": true}},
|
|
1679
1808
|
{"case": "an OR no side holds, one side unread, is undecided", "plan": "either", "arrival": {"edge": "Changes", "key": "tblCAND01", "landing": {"recordType": "Change", "fields": {"Id": "2:recB"}, "unknown": ["Kind"]}}, "now": "2026-10-31T10:00:00Z", "verdict": {"undecided": "rows could not read Kind of the arrival on Changes, which this listen's filter reads"}},
|
|
1680
1809
|
{"case": "an AND one side fails fails though its other side could not be read, in either order", "plan": "neither", "arrival": {"edge": "Changes", "key": "tblCAND01", "landing": {"recordType": "Change", "fields": {"Kind": "created"}, "unknown": ["Id"]}}, "now": "2026-10-31T10:00:00Z", "verdict": {"skips": 1}},
|
|
1681
|
-
{"case": "an AND one side fails fails though its other side could not be read, the unread field the other", "plan": "neither", "arrival": {"edge": "Changes", "key": "tblCAND01", "landing": {"recordType": "Change", "fields": {"Id": "z"}, "unknown": ["Kind"]}}, "now": "2026-10-31T10:00:00Z", "verdict": {"skips": 1}}
|
|
1810
|
+
{"case": "an AND one side fails fails though its other side could not be read, the unread field the other", "plan": "neither", "arrival": {"edge": "Changes", "key": "tblCAND01", "landing": {"recordType": "Change", "fields": {"Id": "z"}, "unknown": ["Kind"]}}, "now": "2026-10-31T10:00:00Z", "verdict": {"skips": 1}},
|
|
1811
|
+
{"case": "a listen through a union: a note under a Person fires, judged by the Person's traversal", "plan": "subjects", "arrival": {"edge": "Notes", "key": "p1", "landing": {"recordType": "Note", "fields": {"Id": "n1", "Text": "hi"}}, "parents": [{"recordType": "Person", "fields": {"Name": "Acme"}}]}, "now": "2026-10-31T10:00:00Z", "verdict": {"fires": true}},
|
|
1812
|
+
{"case": "a listen through a union: a note under a Company fires the same listen, judged by the Company's", "plan": "subjects", "arrival": {"edge": "Notes", "key": "c1", "landing": {"recordType": "Note", "fields": {"Id": "n2", "Text": "hi"}}, "parents": [{"recordType": "Company", "fields": {"Name": "Acme"}}]}, "now": "2026-10-31T10:00:00Z", "verdict": {"fires": true}},
|
|
1813
|
+
{"case": "a listen through a union: a note under a Company of another name skips at Subjects by the filter, not by type", "plan": "subjects", "arrival": {"edge": "Notes", "key": "c2", "landing": {"recordType": "Note", "fields": {"Id": "n3", "Text": "hi"}}, "parents": [{"recordType": "Company", "fields": {"Name": "Other"}}]}, "now": "2026-10-31T10:00:00Z", "verdict": {"skips": 0}},
|
|
1814
|
+
{"case": "a listen through a union: a note the filter on Notes refuses skips at Notes", "plan": "subjects", "arrival": {"edge": "Notes", "key": "p1", "landing": {"recordType": "Note", "fields": {"Id": "n4", "Text": "skip"}}, "parents": [{"recordType": "Person", "fields": {"Name": "Acme"}}]}, "now": "2026-10-31T10:00:00Z", "verdict": {"skips": 1}},
|
|
1815
|
+
{"case": "a listen through a union: a note under a record of no member's type skips by type, naming every member", "plan": "subjects", "arrival": {"edge": "Notes", "key": "l1", "landing": {"recordType": "Note", "fields": {"Id": "n5", "Text": "hi"}}, "parents": [{"recordType": "Lead", "fields": {"Name": "Acme"}}]}, "now": "2026-10-31T10:00:00Z", "verdict": {"skips": 0, "reason": "the Subjects record it carries has record type Lead, not Person or Company, which this listen's Subjects lands on"}},
|
|
1816
|
+
{"case": "a listen through a union: a note whose subject states no record type is undecided, once, naming every member", "plan": "subjects", "arrival": {"edge": "Notes", "key": "p1", "landing": {"recordType": "Note", "fields": {"Id": "n6", "Text": "hi"}}, "parents": [{"fields": {"Name": "Acme"}}]}, "now": "2026-10-31T10:00:00Z", "verdict": {"undecided": "the arrival crm reported on Notes carries a Subjects record that does not say its record type (this listen's Subjects lands on Person or Company)"}}
|
|
1682
1817
|
]
|
|
1683
1818
|
}
|
|
@@ -52,6 +52,18 @@ declare const runInputSchema: z.ZodObject<{
|
|
|
52
52
|
recordId?: string | undefined;
|
|
53
53
|
recordType?: string | undefined;
|
|
54
54
|
} | null)[] | undefined;
|
|
55
|
+
about?: {
|
|
56
|
+
recordType: string;
|
|
57
|
+
externalId: string;
|
|
58
|
+
} | undefined;
|
|
59
|
+
actor?: {
|
|
60
|
+
identifier: string;
|
|
61
|
+
scheme: "email" | "phone" | "opaque";
|
|
62
|
+
adapterType?: string | undefined;
|
|
63
|
+
email?: string | undefined;
|
|
64
|
+
name?: string | undefined;
|
|
65
|
+
label?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
55
67
|
} | undefined;
|
|
56
68
|
}, {
|
|
57
69
|
pipelineInputId: string;
|
|
@@ -90,6 +102,18 @@ declare const runInputSchema: z.ZodObject<{
|
|
|
90
102
|
recordId?: string | undefined;
|
|
91
103
|
recordType?: string | undefined;
|
|
92
104
|
} | null)[] | undefined;
|
|
105
|
+
about?: {
|
|
106
|
+
recordType: string;
|
|
107
|
+
externalId: string;
|
|
108
|
+
} | undefined;
|
|
109
|
+
actor?: {
|
|
110
|
+
identifier: string;
|
|
111
|
+
scheme: "email" | "phone" | "opaque";
|
|
112
|
+
adapterType?: string | undefined;
|
|
113
|
+
email?: string | undefined;
|
|
114
|
+
name?: string | undefined;
|
|
115
|
+
label?: string | undefined;
|
|
116
|
+
} | undefined;
|
|
93
117
|
} | undefined;
|
|
94
118
|
}>;
|
|
95
119
|
teamId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
@@ -153,6 +177,18 @@ declare const resumeInputSchema: z.ZodObject<{
|
|
|
153
177
|
recordId?: string | undefined;
|
|
154
178
|
recordType?: string | undefined;
|
|
155
179
|
} | null)[] | undefined;
|
|
180
|
+
about?: {
|
|
181
|
+
recordType: string;
|
|
182
|
+
externalId: string;
|
|
183
|
+
} | undefined;
|
|
184
|
+
actor?: {
|
|
185
|
+
identifier: string;
|
|
186
|
+
scheme: "email" | "phone" | "opaque";
|
|
187
|
+
adapterType?: string | undefined;
|
|
188
|
+
email?: string | undefined;
|
|
189
|
+
name?: string | undefined;
|
|
190
|
+
label?: string | undefined;
|
|
191
|
+
} | undefined;
|
|
156
192
|
} | undefined;
|
|
157
193
|
}, {
|
|
158
194
|
pipelineInputId: string;
|
|
@@ -191,6 +227,18 @@ declare const resumeInputSchema: z.ZodObject<{
|
|
|
191
227
|
recordId?: string | undefined;
|
|
192
228
|
recordType?: string | undefined;
|
|
193
229
|
} | null)[] | undefined;
|
|
230
|
+
about?: {
|
|
231
|
+
recordType: string;
|
|
232
|
+
externalId: string;
|
|
233
|
+
} | undefined;
|
|
234
|
+
actor?: {
|
|
235
|
+
identifier: string;
|
|
236
|
+
scheme: "email" | "phone" | "opaque";
|
|
237
|
+
adapterType?: string | undefined;
|
|
238
|
+
email?: string | undefined;
|
|
239
|
+
name?: string | undefined;
|
|
240
|
+
label?: string | undefined;
|
|
241
|
+
} | undefined;
|
|
194
242
|
} | undefined;
|
|
195
243
|
}>;
|
|
196
244
|
teamId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
@@ -304,6 +352,18 @@ export declare const hostRecordingSchema: z.ZodPreprocess<z.ZodDiscriminatedUnio
|
|
|
304
352
|
recordId?: string | undefined;
|
|
305
353
|
recordType?: string | undefined;
|
|
306
354
|
} | null)[] | undefined;
|
|
355
|
+
about?: {
|
|
356
|
+
recordType: string;
|
|
357
|
+
externalId: string;
|
|
358
|
+
} | undefined;
|
|
359
|
+
actor?: {
|
|
360
|
+
identifier: string;
|
|
361
|
+
scheme: "email" | "phone" | "opaque";
|
|
362
|
+
adapterType?: string | undefined;
|
|
363
|
+
email?: string | undefined;
|
|
364
|
+
name?: string | undefined;
|
|
365
|
+
label?: string | undefined;
|
|
366
|
+
} | undefined;
|
|
307
367
|
} | undefined;
|
|
308
368
|
}, {
|
|
309
369
|
pipelineInputId: string;
|
|
@@ -342,6 +402,18 @@ export declare const hostRecordingSchema: z.ZodPreprocess<z.ZodDiscriminatedUnio
|
|
|
342
402
|
recordId?: string | undefined;
|
|
343
403
|
recordType?: string | undefined;
|
|
344
404
|
} | null)[] | undefined;
|
|
405
|
+
about?: {
|
|
406
|
+
recordType: string;
|
|
407
|
+
externalId: string;
|
|
408
|
+
} | undefined;
|
|
409
|
+
actor?: {
|
|
410
|
+
identifier: string;
|
|
411
|
+
scheme: "email" | "phone" | "opaque";
|
|
412
|
+
adapterType?: string | undefined;
|
|
413
|
+
email?: string | undefined;
|
|
414
|
+
name?: string | undefined;
|
|
415
|
+
label?: string | undefined;
|
|
416
|
+
} | undefined;
|
|
345
417
|
} | undefined;
|
|
346
418
|
}>;
|
|
347
419
|
teamId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
@@ -433,6 +505,18 @@ export declare const hostRecordingSchema: z.ZodPreprocess<z.ZodDiscriminatedUnio
|
|
|
433
505
|
recordId?: string | undefined;
|
|
434
506
|
recordType?: string | undefined;
|
|
435
507
|
} | null)[] | undefined;
|
|
508
|
+
about?: {
|
|
509
|
+
recordType: string;
|
|
510
|
+
externalId: string;
|
|
511
|
+
} | undefined;
|
|
512
|
+
actor?: {
|
|
513
|
+
identifier: string;
|
|
514
|
+
scheme: "email" | "phone" | "opaque";
|
|
515
|
+
adapterType?: string | undefined;
|
|
516
|
+
email?: string | undefined;
|
|
517
|
+
name?: string | undefined;
|
|
518
|
+
label?: string | undefined;
|
|
519
|
+
} | undefined;
|
|
436
520
|
} | undefined;
|
|
437
521
|
}, {
|
|
438
522
|
pipelineInputId: string;
|
|
@@ -471,6 +555,18 @@ export declare const hostRecordingSchema: z.ZodPreprocess<z.ZodDiscriminatedUnio
|
|
|
471
555
|
recordId?: string | undefined;
|
|
472
556
|
recordType?: string | undefined;
|
|
473
557
|
} | null)[] | undefined;
|
|
558
|
+
about?: {
|
|
559
|
+
recordType: string;
|
|
560
|
+
externalId: string;
|
|
561
|
+
} | undefined;
|
|
562
|
+
actor?: {
|
|
563
|
+
identifier: string;
|
|
564
|
+
scheme: "email" | "phone" | "opaque";
|
|
565
|
+
adapterType?: string | undefined;
|
|
566
|
+
email?: string | undefined;
|
|
567
|
+
name?: string | undefined;
|
|
568
|
+
label?: string | undefined;
|
|
569
|
+
} | undefined;
|
|
474
570
|
} | undefined;
|
|
475
571
|
}>;
|
|
476
572
|
teamId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
@@ -570,6 +666,18 @@ export declare const hostRecordingSchema: z.ZodPreprocess<z.ZodDiscriminatedUnio
|
|
|
570
666
|
recordId?: string | undefined;
|
|
571
667
|
recordType?: string | undefined;
|
|
572
668
|
} | null)[] | undefined;
|
|
669
|
+
about?: {
|
|
670
|
+
recordType: string;
|
|
671
|
+
externalId: string;
|
|
672
|
+
} | undefined;
|
|
673
|
+
actor?: {
|
|
674
|
+
identifier: string;
|
|
675
|
+
scheme: "email" | "phone" | "opaque";
|
|
676
|
+
adapterType?: string | undefined;
|
|
677
|
+
email?: string | undefined;
|
|
678
|
+
name?: string | undefined;
|
|
679
|
+
label?: string | undefined;
|
|
680
|
+
} | undefined;
|
|
573
681
|
} | undefined;
|
|
574
682
|
}, {
|
|
575
683
|
pipelineInputId: string;
|
|
@@ -608,6 +716,18 @@ export declare const hostRecordingSchema: z.ZodPreprocess<z.ZodDiscriminatedUnio
|
|
|
608
716
|
recordId?: string | undefined;
|
|
609
717
|
recordType?: string | undefined;
|
|
610
718
|
} | null)[] | undefined;
|
|
719
|
+
about?: {
|
|
720
|
+
recordType: string;
|
|
721
|
+
externalId: string;
|
|
722
|
+
} | undefined;
|
|
723
|
+
actor?: {
|
|
724
|
+
identifier: string;
|
|
725
|
+
scheme: "email" | "phone" | "opaque";
|
|
726
|
+
adapterType?: string | undefined;
|
|
727
|
+
email?: string | undefined;
|
|
728
|
+
name?: string | undefined;
|
|
729
|
+
label?: string | undefined;
|
|
730
|
+
} | undefined;
|
|
611
731
|
} | undefined;
|
|
612
732
|
}>;
|
|
613
733
|
teamId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
package/dist/event.d.ts
CHANGED
|
@@ -94,6 +94,22 @@ export declare const triggerEventSchema: z.ZodObject<{
|
|
|
94
94
|
recordType: z.ZodOptional<z.ZodString>;
|
|
95
95
|
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
96
96
|
}, z.core.$strip>>>>;
|
|
97
|
+
about: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
recordType: z.ZodString;
|
|
99
|
+
externalId: z.ZodString;
|
|
100
|
+
}, z.core.$strip>>;
|
|
101
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
identifier: z.ZodString;
|
|
103
|
+
scheme: z.ZodEnum<{
|
|
104
|
+
email: "email";
|
|
105
|
+
phone: "phone";
|
|
106
|
+
opaque: "opaque";
|
|
107
|
+
}>;
|
|
108
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
109
|
+
email: z.ZodOptional<z.ZodString>;
|
|
110
|
+
name: z.ZodOptional<z.ZodString>;
|
|
111
|
+
label: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
97
113
|
}, z.core.$strip>>;
|
|
98
114
|
}, z.core.$strip>;
|
|
99
115
|
export type TriggerEvent = z.infer<typeof triggerEventSchema>;
|
package/dist/event.js
CHANGED
|
@@ -26,6 +26,15 @@ exports.firedTriggerTypeSchema = zod_1.z.union([exports.triggerTypeSchema, zod_1
|
|
|
26
26
|
/** The record that landed on a listen's last edge, and the records it
|
|
27
27
|
* carries from earlier hops (adapter protocol 2.6). */
|
|
28
28
|
const firedLandingSchema = zod_1.z.object({ recordId: zod_1.z.string().optional(), recordType: zod_1.z.string().optional(), fields: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()) });
|
|
29
|
+
/** Who acted on an arrival, as its module says (`ActorIdentity`, 2.7). */
|
|
30
|
+
const firedActorSchema = zod_1.z.object({
|
|
31
|
+
identifier: zod_1.z.string(),
|
|
32
|
+
scheme: zod_1.z.enum(['email', 'phone', 'opaque']),
|
|
33
|
+
adapterType: zod_1.z.string().optional(),
|
|
34
|
+
email: zod_1.z.string().optional(),
|
|
35
|
+
name: zod_1.z.string().optional(),
|
|
36
|
+
label: zod_1.z.string().optional(),
|
|
37
|
+
});
|
|
29
38
|
/** The source system's identifier for the record an inbound event is about. */
|
|
30
39
|
exports.inboundRecordRefSchema = zod_1.z.object({
|
|
31
40
|
adapterType: zod_1.z.string(),
|
|
@@ -69,7 +78,17 @@ exports.triggerEventSchema = zod_1.z.object({
|
|
|
69
78
|
* What fired a listen on a traversal (`triggerType: 'arrival'`): the record
|
|
70
79
|
* that landed on its last edge, which the fired function's parameter binds
|
|
71
80
|
* as a wait binds what lands on its edge, and the records it carries from
|
|
72
|
-
* earlier hops (adapter protocol 2.6)
|
|
81
|
+
* earlier hops (adapter protocol 2.6); the record it is about and who
|
|
82
|
+
* acted, as its module said at the door (2.7).
|
|
73
83
|
*/
|
|
74
|
-
arrival: zod_1.z
|
|
84
|
+
arrival: zod_1.z
|
|
85
|
+
.object({
|
|
86
|
+
adapterType: zod_1.z.string(),
|
|
87
|
+
edge: zod_1.z.string(),
|
|
88
|
+
landing: firedLandingSchema,
|
|
89
|
+
parents: zod_1.z.array(firedLandingSchema.nullable()).optional(),
|
|
90
|
+
about: zod_1.z.object({ recordType: zod_1.z.string(), externalId: zod_1.z.string() }).optional(),
|
|
91
|
+
actor: firedActorSchema.optional(),
|
|
92
|
+
})
|
|
93
|
+
.optional(),
|
|
75
94
|
});
|
package/dist/listen_plan.d.ts
CHANGED
|
@@ -15,6 +15,11 @@ export interface PlanHop {
|
|
|
15
15
|
from: string;
|
|
16
16
|
/** The record type it lands on. */
|
|
17
17
|
to: string;
|
|
18
|
+
/** The union the hop's edge lands on, when the hop is one member's (`to`;
|
|
19
|
+
* `ListenPlan.members`): a host keeps a listed hop's records only when
|
|
20
|
+
* they are of that member. Absent when the edge lands on one record
|
|
21
|
+
* type. */
|
|
22
|
+
memberOf?: string;
|
|
18
23
|
alias?: string;
|
|
19
24
|
/** The part of its WHERE the edge's module takes, joined by AND. */
|
|
20
25
|
taken?: Expression;
|
|
@@ -34,16 +39,36 @@ export interface ListenPlan {
|
|
|
34
39
|
connection: string;
|
|
35
40
|
/** That connection's module. */
|
|
36
41
|
adapter: string;
|
|
37
|
-
/** Outermost first; the last is the listened edge.
|
|
42
|
+
/** Outermost first; the last is the listened edge. Empty for a listen
|
|
43
|
+
* through or onto a union, whose hops are each member's (`members`). */
|
|
38
44
|
hops: PlanHop[];
|
|
39
45
|
/** The earlier hops' edges whose records an arrival on the last edge
|
|
40
46
|
* carries, outermost first. Absent when it carries none. */
|
|
41
47
|
carries?: string[];
|
|
48
|
+
/** A listen through or onto a union: its traversal once per member of
|
|
49
|
+
* each union it crosses, two unions multiplying. Absent for any other
|
|
50
|
+
* listen. */
|
|
51
|
+
members?: PlanMember[];
|
|
42
52
|
/** The node the listen states its untyped landing is
|
|
43
53
|
* (`-[:Requests]-><Payment>`), by its name in the program: the host runs
|
|
44
54
|
* only what fits it. Absent when it states none. */
|
|
45
55
|
landing?: string;
|
|
46
56
|
}
|
|
57
|
+
/** One member's traversal of a listen through or onto a union: every hop
|
|
58
|
+
* lands on one record type. */
|
|
59
|
+
export interface PlanMember {
|
|
60
|
+
/** Outermost first; the last is the listened edge. */
|
|
61
|
+
hops: PlanHop[];
|
|
62
|
+
/** As `ListenPlan.carries`, as this member's last edge declares them. */
|
|
63
|
+
carries?: string[];
|
|
64
|
+
}
|
|
65
|
+
/** The single-typed traversals a host watches a listen by: the plan itself,
|
|
66
|
+
* or, for a listen over a union, one per member, each a plan of that
|
|
67
|
+
* member's hops alone (`ListenPlan::member_plans`). Each is how the listen
|
|
68
|
+
* is watched, never a listen of its own. */
|
|
69
|
+
export declare function memberPlans(plan: ListenPlan): ListenPlan[];
|
|
70
|
+
/** The edge a listen ends on, which each member's traversal ends on. */
|
|
71
|
+
export declare function lastEdgeOf(plan: ListenPlan): string | undefined;
|
|
47
72
|
export declare const planHopSchema: z.ZodType<PlanHop>;
|
|
48
73
|
export declare const listenPlanSchema: z.ZodType<ListenPlan>;
|
|
49
74
|
/** One arrival on a listen's last edge, as the judge reads it
|
package/dist/listen_plan.js
CHANGED
|
@@ -2,19 +2,43 @@
|
|
|
2
2
|
// How a host watches one `listen to <traversal> fire f`: the checker writes
|
|
3
3
|
// it on its answer (`listens`, crates/movement-parser/src/listen_plan.rs), and
|
|
4
4
|
// both hosts read it instead of the listen's source.
|
|
5
|
+
//
|
|
6
|
+
// A listen through or onto a union is one listen, with one plan: its
|
|
7
|
+
// traversal is planned once per member of each union it crosses (`members`),
|
|
8
|
+
// each an ordinary single-typed traversal. The members are how a host
|
|
9
|
+
// watches it; its identity, receipts, state and verdict on an arrival are
|
|
10
|
+
// the one listen's.
|
|
5
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
12
|
exports.verdictSchema = exports.planArrivalSchema = exports.listenPlanSchema = exports.planHopSchema = exports.hopJudgedSchema = void 0;
|
|
13
|
+
exports.memberPlans = memberPlans;
|
|
14
|
+
exports.lastEdgeOf = lastEdgeOf;
|
|
7
15
|
const zod_1 = require("zod");
|
|
8
16
|
const expression_1 = require("./expression/expression");
|
|
9
17
|
/** How the host honours a hop's filter: nothing to judge; judged on each
|
|
10
18
|
* arrival against the record it carries (the last hop always is); or by
|
|
11
19
|
* listing the hop's members and keeping those that match. */
|
|
12
20
|
exports.hopJudgedSchema = zod_1.z.enum(['none', 'arrival', 'resolved']);
|
|
21
|
+
/** The single-typed traversals a host watches a listen by: the plan itself,
|
|
22
|
+
* or, for a listen over a union, one per member, each a plan of that
|
|
23
|
+
* member's hops alone (`ListenPlan::member_plans`). Each is how the listen
|
|
24
|
+
* is watched, never a listen of its own. */
|
|
25
|
+
function memberPlans(plan) {
|
|
26
|
+
if (plan.members === undefined)
|
|
27
|
+
return [plan];
|
|
28
|
+
const { members: _members, carries: _carries, ...shared } = plan;
|
|
29
|
+
return plan.members.map((member) => ({ ...shared, hops: member.hops, ...(member.carries !== undefined ? { carries: member.carries } : {}) }));
|
|
30
|
+
}
|
|
31
|
+
/** The edge a listen ends on, which each member's traversal ends on. */
|
|
32
|
+
function lastEdgeOf(plan) {
|
|
33
|
+
const hops = plan.members?.[0]?.hops ?? plan.hops;
|
|
34
|
+
return hops[hops.length - 1]?.edge;
|
|
35
|
+
}
|
|
13
36
|
exports.planHopSchema = zod_1.z
|
|
14
37
|
.object({
|
|
15
38
|
edge: zod_1.z.string(),
|
|
16
39
|
from: zod_1.z.string(),
|
|
17
40
|
to: zod_1.z.string(),
|
|
41
|
+
memberOf: zod_1.z.string().optional(),
|
|
18
42
|
alias: zod_1.z.string().optional(),
|
|
19
43
|
taken: expression_1.expressionSchema.optional(),
|
|
20
44
|
checked: expression_1.expressionSchema.optional(),
|
|
@@ -22,17 +46,27 @@ exports.planHopSchema = zod_1.z
|
|
|
22
46
|
judged: exports.hopJudgedSchema,
|
|
23
47
|
})
|
|
24
48
|
.strict();
|
|
49
|
+
const planMemberSchema = zod_1.z
|
|
50
|
+
.object({
|
|
51
|
+
hops: zod_1.z.array(exports.planHopSchema).min(1),
|
|
52
|
+
carries: zod_1.z.array(zod_1.z.string()).optional(),
|
|
53
|
+
})
|
|
54
|
+
.strict();
|
|
25
55
|
exports.listenPlanSchema = zod_1.z
|
|
26
56
|
.object({
|
|
27
57
|
movement: zod_1.z.string(),
|
|
28
58
|
alias: zod_1.z.string().optional(),
|
|
29
59
|
connection: zod_1.z.string(),
|
|
30
60
|
adapter: zod_1.z.string(),
|
|
31
|
-
hops: zod_1.z.array(exports.planHopSchema)
|
|
61
|
+
hops: zod_1.z.array(exports.planHopSchema),
|
|
32
62
|
carries: zod_1.z.array(zod_1.z.string()).optional(),
|
|
63
|
+
members: zod_1.z.array(planMemberSchema).min(1).optional(),
|
|
33
64
|
landing: zod_1.z.string().optional(),
|
|
34
65
|
})
|
|
35
|
-
.strict()
|
|
66
|
+
.strict()
|
|
67
|
+
.refine((plan) => (plan.members === undefined ? plan.hops.length > 0 : plan.hops.length === 0 && plan.carries === undefined), {
|
|
68
|
+
message: "a plan's hops are its own, or, over a union, each member's: never both, never neither",
|
|
69
|
+
});
|
|
36
70
|
const arrivedRecordSchema = zod_1.z
|
|
37
71
|
.object({ recordType: zod_1.z.string().optional(), fields: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), unknown: zod_1.z.array(zod_1.z.string().min(1)).optional() })
|
|
38
72
|
.strict();
|
package/dist/protocol.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const ADAPTER_TEAM_HEADER = "x-listen-fire-team";
|
|
|
12
12
|
export declare const MANIFEST_PROTOCOL_VERSION = 2;
|
|
13
13
|
/** The highest minor of version 2 this release speaks: a host reads 2.0 to
|
|
14
14
|
* 2.`PROTOCOL_MINOR` (docs/contracts/adapter-protocol.md "Minors of version 2"). */
|
|
15
|
-
export declare const PROTOCOL_MINOR =
|
|
15
|
+
export declare const PROTOCOL_MINOR = 7;
|
|
16
16
|
/** The method that names a minor's feature, by name or by its ending
|
|
17
17
|
* (`<slot>.watch`). Data, so the Rust twin (module-wire
|
|
18
18
|
* `envelope::PROTOCOL_MINORS`) is test-held equal to it. */
|
|
@@ -24,8 +24,8 @@ export type ProtocolMinorUse = {
|
|
|
24
24
|
/** Each minor of version 2 whose hosts speak a method, and that method. A host
|
|
25
25
|
* speaking the minor may call it; a module offering it needs nothing of an
|
|
26
26
|
* older host, which never calls it, so offering one never raises the minor
|
|
27
|
-
* a module states. A minor that names no method has no row: 2.0,
|
|
28
|
-
* (labelled poll events, a host behaviour
|
|
27
|
+
* a module states. A minor that names no method has no row: 2.0, 2.3
|
|
28
|
+
* (labelled poll events) and 2.7 (`pollAgainAt`), each a host behaviour. */
|
|
29
29
|
export declare const PROTOCOL_MINORS: readonly {
|
|
30
30
|
minor: number;
|
|
31
31
|
feature: string;
|
|
@@ -440,6 +440,22 @@ export declare const WireTriggerEvent: z.ZodObject<{
|
|
|
440
440
|
recordType: z.ZodOptional<z.ZodString>;
|
|
441
441
|
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
442
442
|
}, z.core.$strip>>>>;
|
|
443
|
+
about: z.ZodOptional<z.ZodObject<{
|
|
444
|
+
recordType: z.ZodString;
|
|
445
|
+
externalId: z.ZodString;
|
|
446
|
+
}, z.core.$strip>>;
|
|
447
|
+
actor: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
448
|
+
identifier: z.ZodString;
|
|
449
|
+
scheme: z.ZodEnum<{
|
|
450
|
+
email: "email";
|
|
451
|
+
phone: "phone";
|
|
452
|
+
opaque: "opaque";
|
|
453
|
+
}>;
|
|
454
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
455
|
+
email: z.ZodOptional<z.ZodString>;
|
|
456
|
+
name: z.ZodOptional<z.ZodString>;
|
|
457
|
+
label: z.ZodOptional<z.ZodString>;
|
|
458
|
+
}, z.core.$strip>>>;
|
|
443
459
|
}, z.core.$strip>>;
|
|
444
460
|
}, z.core.$strip>;
|
|
445
461
|
export type WireTriggerEventShape = z.infer<typeof WireTriggerEvent>;
|
|
@@ -1333,6 +1349,22 @@ export declare const WireGetActorCandidatesInput: z.ZodObject<{
|
|
|
1333
1349
|
recordType: z.ZodOptional<z.ZodString>;
|
|
1334
1350
|
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1335
1351
|
}, z.core.$strip>>>>;
|
|
1352
|
+
about: z.ZodOptional<z.ZodObject<{
|
|
1353
|
+
recordType: z.ZodString;
|
|
1354
|
+
externalId: z.ZodString;
|
|
1355
|
+
}, z.core.$strip>>;
|
|
1356
|
+
actor: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1357
|
+
identifier: z.ZodString;
|
|
1358
|
+
scheme: z.ZodEnum<{
|
|
1359
|
+
email: "email";
|
|
1360
|
+
phone: "phone";
|
|
1361
|
+
opaque: "opaque";
|
|
1362
|
+
}>;
|
|
1363
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
1364
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1365
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1366
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1367
|
+
}, z.core.$strip>>>;
|
|
1336
1368
|
}, z.core.$strip>>;
|
|
1337
1369
|
}, z.core.$strip>;
|
|
1338
1370
|
}, z.core.$strip>;
|
|
@@ -1389,6 +1421,22 @@ export declare const WireExtractActorInput: z.ZodObject<{
|
|
|
1389
1421
|
recordType: z.ZodOptional<z.ZodString>;
|
|
1390
1422
|
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1391
1423
|
}, z.core.$strip>>>>;
|
|
1424
|
+
about: z.ZodOptional<z.ZodObject<{
|
|
1425
|
+
recordType: z.ZodString;
|
|
1426
|
+
externalId: z.ZodString;
|
|
1427
|
+
}, z.core.$strip>>;
|
|
1428
|
+
actor: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1429
|
+
identifier: z.ZodString;
|
|
1430
|
+
scheme: z.ZodEnum<{
|
|
1431
|
+
email: "email";
|
|
1432
|
+
phone: "phone";
|
|
1433
|
+
opaque: "opaque";
|
|
1434
|
+
}>;
|
|
1435
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
1436
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
}, z.core.$strip>>>;
|
|
1392
1440
|
}, z.core.$strip>>;
|
|
1393
1441
|
}, z.core.$strip>;
|
|
1394
1442
|
}, z.core.$strip>;
|
|
@@ -2268,6 +2316,18 @@ export declare const WireArrival: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2268
2316
|
notFor: z.ZodOptional<z.ZodString>;
|
|
2269
2317
|
takenApplied: z.ZodOptional<z.ZodBoolean>;
|
|
2270
2318
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
2319
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
2320
|
+
identifier: z.ZodString;
|
|
2321
|
+
scheme: z.ZodEnum<{
|
|
2322
|
+
email: "email";
|
|
2323
|
+
phone: "phone";
|
|
2324
|
+
opaque: "opaque";
|
|
2325
|
+
}>;
|
|
2326
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
2327
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2328
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2329
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2330
|
+
}, z.core.$strip>>;
|
|
2271
2331
|
}, z.core.$strip>, z.ZodObject<{
|
|
2272
2332
|
edge: z.ZodString;
|
|
2273
2333
|
key: z.ZodString;
|
|
@@ -2289,7 +2349,10 @@ export declare const WirePollEdgeInput: z.ZodObject<{
|
|
|
2289
2349
|
export type WirePollEdgeInputShape = z.infer<typeof WirePollEdgeInput>;
|
|
2290
2350
|
/** What arrived on the edge since `cursor`, and the cursor to hand back next
|
|
2291
2351
|
* time. An arrival says `takenApplied: true` only when the module applied
|
|
2292
|
-
* `filter` to it; otherwise the host checks the whole filter itself.
|
|
2352
|
+
* `filter` to it; otherwise the host checks the whole filter itself.
|
|
2353
|
+
* `pollAgainAt` (2.7), an ISO instant, is when the edge is next worth
|
|
2354
|
+
* polling: a host speaking 2.7 polls it then when that is sooner than its
|
|
2355
|
+
* interval (cron's next tick). */
|
|
2293
2356
|
export declare const WirePollEdgeResult: z.ZodObject<{
|
|
2294
2357
|
arrivals: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2295
2358
|
edge: z.ZodString;
|
|
@@ -2315,12 +2378,25 @@ export declare const WirePollEdgeResult: z.ZodObject<{
|
|
|
2315
2378
|
notFor: z.ZodOptional<z.ZodString>;
|
|
2316
2379
|
takenApplied: z.ZodOptional<z.ZodBoolean>;
|
|
2317
2380
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
2381
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
2382
|
+
identifier: z.ZodString;
|
|
2383
|
+
scheme: z.ZodEnum<{
|
|
2384
|
+
email: "email";
|
|
2385
|
+
phone: "phone";
|
|
2386
|
+
opaque: "opaque";
|
|
2387
|
+
}>;
|
|
2388
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
2389
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2390
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2391
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2392
|
+
}, z.core.$strip>>;
|
|
2318
2393
|
}, z.core.$strip>, z.ZodObject<{
|
|
2319
2394
|
edge: z.ZodString;
|
|
2320
2395
|
key: z.ZodString;
|
|
2321
2396
|
gone: z.ZodLiteral<true>;
|
|
2322
2397
|
}, z.core.$strip>]>>;
|
|
2323
2398
|
cursor: z.ZodOptional<z.ZodUnknown>;
|
|
2399
|
+
pollAgainAt: z.ZodOptional<z.ZodString>;
|
|
2324
2400
|
}, z.core.$strip>;
|
|
2325
2401
|
export type WirePollEdgeResultShape = z.infer<typeof WirePollEdgeResult>;
|
|
2326
2402
|
/** What the wake door says to a push naming keys: adapter protocol 2.5
|
|
@@ -2354,6 +2430,18 @@ export declare const AdapterWakeBody: z.ZodObject<{
|
|
|
2354
2430
|
notFor: z.ZodOptional<z.ZodString>;
|
|
2355
2431
|
takenApplied: z.ZodOptional<z.ZodBoolean>;
|
|
2356
2432
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
2433
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
2434
|
+
identifier: z.ZodString;
|
|
2435
|
+
scheme: z.ZodEnum<{
|
|
2436
|
+
email: "email";
|
|
2437
|
+
phone: "phone";
|
|
2438
|
+
opaque: "opaque";
|
|
2439
|
+
}>;
|
|
2440
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
2441
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2442
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2443
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2444
|
+
}, z.core.$strip>>;
|
|
2357
2445
|
}, z.core.$strip>, z.ZodObject<{
|
|
2358
2446
|
edge: z.ZodString;
|
|
2359
2447
|
key: z.ZodString;
|
|
@@ -2435,6 +2523,18 @@ export declare const WireInboundCheck: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2435
2523
|
notFor: z.ZodOptional<z.ZodString>;
|
|
2436
2524
|
takenApplied: z.ZodOptional<z.ZodBoolean>;
|
|
2437
2525
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
2526
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
2527
|
+
identifier: z.ZodString;
|
|
2528
|
+
scheme: z.ZodEnum<{
|
|
2529
|
+
email: "email";
|
|
2530
|
+
phone: "phone";
|
|
2531
|
+
opaque: "opaque";
|
|
2532
|
+
}>;
|
|
2533
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2535
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2536
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
}, z.core.$strip>>;
|
|
2438
2538
|
}, z.core.$strip>, z.ZodObject<{
|
|
2439
2539
|
edge: z.ZodString;
|
|
2440
2540
|
key: z.ZodString;
|
|
@@ -3674,6 +3774,18 @@ export declare const METHODS: {
|
|
|
3674
3774
|
notFor: z.ZodOptional<z.ZodString>;
|
|
3675
3775
|
takenApplied: z.ZodOptional<z.ZodBoolean>;
|
|
3676
3776
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
3777
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
3778
|
+
identifier: z.ZodString;
|
|
3779
|
+
scheme: z.ZodEnum<{
|
|
3780
|
+
email: "email";
|
|
3781
|
+
phone: "phone";
|
|
3782
|
+
opaque: "opaque";
|
|
3783
|
+
}>;
|
|
3784
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
3785
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3786
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3787
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3788
|
+
}, z.core.$strip>>;
|
|
3677
3789
|
}, z.core.$strip>, z.ZodObject<{
|
|
3678
3790
|
edge: z.ZodString;
|
|
3679
3791
|
key: z.ZodString;
|
|
@@ -4074,6 +4186,22 @@ export declare const METHODS: {
|
|
|
4074
4186
|
recordType: z.ZodOptional<z.ZodString>;
|
|
4075
4187
|
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4076
4188
|
}, z.core.$strip>>>>;
|
|
4189
|
+
about: z.ZodOptional<z.ZodObject<{
|
|
4190
|
+
recordType: z.ZodString;
|
|
4191
|
+
externalId: z.ZodString;
|
|
4192
|
+
}, z.core.$strip>>;
|
|
4193
|
+
actor: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
4194
|
+
identifier: z.ZodString;
|
|
4195
|
+
scheme: z.ZodEnum<{
|
|
4196
|
+
email: "email";
|
|
4197
|
+
phone: "phone";
|
|
4198
|
+
opaque: "opaque";
|
|
4199
|
+
}>;
|
|
4200
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
4201
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4202
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4203
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4204
|
+
}, z.core.$strip>>>;
|
|
4077
4205
|
}, z.core.$strip>>;
|
|
4078
4206
|
}, z.core.$strip>;
|
|
4079
4207
|
}, z.core.$strip>;
|
|
@@ -4150,6 +4278,22 @@ export declare const METHODS: {
|
|
|
4150
4278
|
recordType: z.ZodOptional<z.ZodString>;
|
|
4151
4279
|
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4152
4280
|
}, z.core.$strip>>>>;
|
|
4281
|
+
about: z.ZodOptional<z.ZodObject<{
|
|
4282
|
+
recordType: z.ZodString;
|
|
4283
|
+
externalId: z.ZodString;
|
|
4284
|
+
}, z.core.$strip>>;
|
|
4285
|
+
actor: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
4286
|
+
identifier: z.ZodString;
|
|
4287
|
+
scheme: z.ZodEnum<{
|
|
4288
|
+
email: "email";
|
|
4289
|
+
phone: "phone";
|
|
4290
|
+
opaque: "opaque";
|
|
4291
|
+
}>;
|
|
4292
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
4293
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4294
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4295
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4296
|
+
}, z.core.$strip>>>;
|
|
4153
4297
|
}, z.core.$strip>>;
|
|
4154
4298
|
}, z.core.$strip>;
|
|
4155
4299
|
}, z.core.$strip>;
|
|
@@ -4236,12 +4380,25 @@ export declare const METHODS: {
|
|
|
4236
4380
|
notFor: z.ZodOptional<z.ZodString>;
|
|
4237
4381
|
takenApplied: z.ZodOptional<z.ZodBoolean>;
|
|
4238
4382
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
4383
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
4384
|
+
identifier: z.ZodString;
|
|
4385
|
+
scheme: z.ZodEnum<{
|
|
4386
|
+
email: "email";
|
|
4387
|
+
phone: "phone";
|
|
4388
|
+
opaque: "opaque";
|
|
4389
|
+
}>;
|
|
4390
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
4391
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4392
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4393
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4394
|
+
}, z.core.$strip>>;
|
|
4239
4395
|
}, z.core.$strip>, z.ZodObject<{
|
|
4240
4396
|
edge: z.ZodString;
|
|
4241
4397
|
key: z.ZodString;
|
|
4242
4398
|
gone: z.ZodLiteral<true>;
|
|
4243
4399
|
}, z.core.$strip>]>>;
|
|
4244
4400
|
cursor: z.ZodOptional<z.ZodUnknown>;
|
|
4401
|
+
pollAgainAt: z.ZodOptional<z.ZodString>;
|
|
4245
4402
|
}, z.core.$strip>;
|
|
4246
4403
|
};
|
|
4247
4404
|
readonly refreshCredential: {
|
|
@@ -4312,6 +4469,18 @@ export declare const METHODS: {
|
|
|
4312
4469
|
notFor: z.ZodOptional<z.ZodString>;
|
|
4313
4470
|
takenApplied: z.ZodOptional<z.ZodBoolean>;
|
|
4314
4471
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
4472
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
4473
|
+
identifier: z.ZodString;
|
|
4474
|
+
scheme: z.ZodEnum<{
|
|
4475
|
+
email: "email";
|
|
4476
|
+
phone: "phone";
|
|
4477
|
+
opaque: "opaque";
|
|
4478
|
+
}>;
|
|
4479
|
+
adapterType: z.ZodOptional<z.ZodString>;
|
|
4480
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4481
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4482
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4483
|
+
}, z.core.$strip>>;
|
|
4315
4484
|
}, z.core.$strip>, z.ZodObject<{
|
|
4316
4485
|
edge: z.ZodString;
|
|
4317
4486
|
key: z.ZodString;
|
package/dist/protocol.js
CHANGED
|
@@ -42,12 +42,12 @@ exports.ADAPTER_TEAM_HEADER = 'x-listen-fire-team';
|
|
|
42
42
|
exports.MANIFEST_PROTOCOL_VERSION = 2;
|
|
43
43
|
/** The highest minor of version 2 this release speaks: a host reads 2.0 to
|
|
44
44
|
* 2.`PROTOCOL_MINOR` (docs/contracts/adapter-protocol.md "Minors of version 2"). */
|
|
45
|
-
exports.PROTOCOL_MINOR =
|
|
45
|
+
exports.PROTOCOL_MINOR = 7;
|
|
46
46
|
/** Each minor of version 2 whose hosts speak a method, and that method. A host
|
|
47
47
|
* speaking the minor may call it; a module offering it needs nothing of an
|
|
48
48
|
* older host, which never calls it, so offering one never raises the minor
|
|
49
|
-
* a module states. A minor that names no method has no row: 2.0,
|
|
50
|
-
* (labelled poll events, a host behaviour
|
|
49
|
+
* a module states. A minor that names no method has no row: 2.0, 2.3
|
|
50
|
+
* (labelled poll events) and 2.7 (`pollAgainAt`), each a host behaviour. */
|
|
51
51
|
exports.PROTOCOL_MINORS = [
|
|
52
52
|
{ minor: 1, feature: 'a <slot>.watch method', uses: { methodEndingWith: '.watch' } },
|
|
53
53
|
{ minor: 2, feature: 'work.enqueueIfAbsent', uses: { method: 'work.enqueueIfAbsent' } },
|
|
@@ -308,9 +308,17 @@ exports.WireTriggerEvent = zod_1.z.object({
|
|
|
308
308
|
/** The source's own id for the occurrence, carried from the event that
|
|
309
309
|
* made this one (`WireDiscriminableEvent.idempotencyKey`). */
|
|
310
310
|
idempotencyKey: zod_1.z.string().optional(),
|
|
311
|
-
/** What fired a listen on a traversal (`triggerType: 'arrival'`, 2.6)
|
|
311
|
+
/** What fired a listen on a traversal (`triggerType: 'arrival'`, 2.6),
|
|
312
|
+
* what it is about and who acted (2.7). */
|
|
312
313
|
arrival: zod_1.z
|
|
313
|
-
.object({
|
|
314
|
+
.object({
|
|
315
|
+
adapterType: zod_1.z.string(),
|
|
316
|
+
edge: zod_1.z.string(),
|
|
317
|
+
landing: WireTriggerLanding,
|
|
318
|
+
parents: zod_1.z.array(WireTriggerLanding.nullable()).optional(),
|
|
319
|
+
about: zod_1.z.object({ recordType: zod_1.z.string(), externalId: zod_1.z.string() }).optional(),
|
|
320
|
+
actor: zod_1.z.lazy(() => exports.WireActorIdentity).optional(),
|
|
321
|
+
})
|
|
314
322
|
.optional(),
|
|
315
323
|
});
|
|
316
324
|
/**
|
|
@@ -1104,6 +1112,9 @@ exports.WireArrival = zod_1.z.union([
|
|
|
1104
1112
|
notFor: zod_1.z.string().min(1).optional(),
|
|
1105
1113
|
takenApplied: zod_1.z.boolean().optional(),
|
|
1106
1114
|
occurredAt: zod_1.z.string().min(1).optional(),
|
|
1115
|
+
/** Who acted (2.7): the run's `@actor_*`, and what a host resolves the
|
|
1116
|
+
* acting user from. */
|
|
1117
|
+
actor: exports.WireActorIdentity.optional(),
|
|
1107
1118
|
}),
|
|
1108
1119
|
zod_1.z.object({ edge: zod_1.z.string().min(1), key: zod_1.z.string().min(1), gone: zod_1.z.literal(true) }),
|
|
1109
1120
|
]);
|
|
@@ -1121,10 +1132,14 @@ exports.WirePollEdgeInput = zod_1.z.object({
|
|
|
1121
1132
|
});
|
|
1122
1133
|
/** What arrived on the edge since `cursor`, and the cursor to hand back next
|
|
1123
1134
|
* time. An arrival says `takenApplied: true` only when the module applied
|
|
1124
|
-
* `filter` to it; otherwise the host checks the whole filter itself.
|
|
1135
|
+
* `filter` to it; otherwise the host checks the whole filter itself.
|
|
1136
|
+
* `pollAgainAt` (2.7), an ISO instant, is when the edge is next worth
|
|
1137
|
+
* polling: a host speaking 2.7 polls it then when that is sooner than its
|
|
1138
|
+
* interval (cron's next tick). */
|
|
1125
1139
|
exports.WirePollEdgeResult = zod_1.z.object({
|
|
1126
1140
|
arrivals: zod_1.z.array(exports.WireArrival),
|
|
1127
1141
|
cursor: zod_1.z.unknown().optional(),
|
|
1142
|
+
pollAgainAt: zod_1.z.string().min(1).optional(),
|
|
1128
1143
|
});
|
|
1129
1144
|
/** What the wake door says to a push naming keys: adapter protocol 2.5
|
|
1130
1145
|
* reports what arrived, and the host wakes the waits it answers. */
|
package/dist/versions.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@listen-fire/engine-contracts",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.1",
|
|
5
5
|
"description": "The contracts the movement engine speaks: the tenant id, the host families and entry-point inputs, the parked state, file descriptors, the adapter protocol, the adapter contract and its manifest, the catalog's schema types and positions, the Expression vocabulary, plugins as data and the model names. Runtime-neutral: no Node import, no ambient types.",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.23.4 <23"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"type": "commonjs",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"zod": "4.1.12",
|
|
33
|
-
"@listen-fire/movement-lang": "^0.13.
|
|
33
|
+
"@listen-fire/movement-lang": "^0.13.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "20.16.5",
|