-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi-reference.config.json
More file actions
209 lines (209 loc) · 8.27 KB
/
Copy pathapi-reference.config.json
File metadata and controls
209 lines (209 loc) · 8.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
{
"channel": "v4",
"output": ".data/api-reference/v4",
"tsconfig": "tsconfig.json",
"barrels": [
{
"export": ".",
"source": "src/index.ts"
},
{
"export": "./testing",
"source": "src/testing/index.ts"
},
{
"export": "./reactivity",
"source": "src/unstable/reactivity/index.ts"
},
{
"export": "./cluster",
"source": "src/unstable/cluster/index.ts"
}
],
"modules": [
{
"export": "./Machine",
"source": "src/Machine.ts",
"barrel": ".",
"referenceSections": [
{
"title": "Define state topology",
"description": "Declare the complete state tree and its schema-backed values before constructing the machine.",
"entries": [
{ "declaration": "states" },
{ "declaration": "state" }
]
},
{
"title": "Define event protocols",
"description": "Describe public input, machine-local events, outward notifications, and parent ownership.",
"entries": [
{ "declaration": "events" },
{ "declaration": "internalEvents" },
{ "declaration": "emittedEvents" },
{ "declaration": "parent" },
{ "declaration": "optionalParent" }
]
},
{
"title": "Create the definition",
"description": "Combine topology and protocols into a reusable machine definition with an explicit initial target.",
"entries": [
{ "declaration": "make" }
]
},
{
"title": "Implement state behavior",
"description": "Attach state-local actions, transitions, output, and invoked lifecycles to the definition.",
"entries": [
{
"reflection": "Definition.handle",
"label": "handle",
"kind": "method",
"owner": "Definition",
"ownerKind": "interface",
"usageSections": [
"State handler configuration",
"Transition declarations",
"Handler and resolver contexts",
"State invocation"
]
}
]
},
{
"title": "Run and observe",
"description": "Start or resume an executable machine and subscribe to its state over time.",
"entries": [
{ "declaration": "start" },
{ "declaration": "resume" },
{ "declaration": "watch" }
]
}
],
"usageSections": [
{
"owner": "states",
"title": "State node configuration",
"description": "Properties accepted while declaring the state tree passed to `Machine.states`.",
"roots": [
{ "reflection": "Machine.AtomicStateNodeConfig", "label": "Atomic and final states" },
{ "reflection": "Machine.CompoundStateNodeConfig", "label": "Compound states" },
{ "reflection": "Machine.ParallelStateNodeConfig", "label": "Parallel states" },
{ "reflection": "Machine.HistoryStateNodeConfig", "label": "History states" },
{ "reflection": "Machine.ChoiceStateNodeConfig", "label": "Choice states" },
{ "reflection": "Machine.StateNodeAnnotations", "label": "Annotations" }
]
},
{
"owner": "make",
"title": "Machine definition configuration",
"description": "Parameters accepted by `Machine.make` and its initial-state declaration.",
"roots": [
{ "declaration": "make", "parameter": "config", "label": "Configuration" },
{ "reflection": "Machine.InitialTransitionTarget", "label": "Initial target resolution" }
]
},
{
"owner": "Definition",
"ownerKind": "interface",
"title": "State handler configuration",
"description": "Properties accepted for each state inside `Definition.handle`.",
"roots": [
{ "reflection": "Machine.ActiveStateConfig", "label": "Active states" },
{ "reflection": "Machine.FinalStateConfig", "label": "Final states" },
{ "reflection": "Machine.ChoiceStateConfig", "label": "Choice states", "members": ["choice"] },
{ "reflection": "Machine.HandlerNode", "label": "Nested handler tree", "members": ["states", "history"] },
{ "reflection": "Machine.OutputHandlerConfig", "label": "Output functions", "members": ["output"] },
{ "reflection": "Machine.HistoryDefaultEntry", "label": "History defaults" }
]
},
{
"owner": "Definition",
"ownerKind": "interface",
"title": "Transition declarations",
"description": "Target selection, resolution, branching, and commands available to state and invocation transitions.",
"roots": [
{ "reflection": "Machine.TargetSelector", "label": "Target selection" },
{ "reflection": "Machine.TargetBuilder", "label": "Resolver target construction" },
{ "reflection": "Machine.TransitionSelector", "label": "Named branch selection", "nested": true },
{ "reflection": "Machine.TransitionTarget", "label": "Selected target" },
{ "reflection": "Machine.TransitionBranchInput", "label": "Named branches" },
{ "reflection": "Machine.DeclineCapability", "label": "Declinable transitions" },
{ "reflection": "Enqueue", "label": "Enqueued commands" }
]
},
{
"owner": "Definition",
"ownerKind": "interface",
"title": "Handler and resolver contexts",
"description": "Values supplied to state actions, transitions, completion handlers, choices, and output functions.",
"roots": [
{ "reflection": "MachineReferences", "label": "Machine references" },
{ "reflection": "Machine.HandlerContext", "label": "Event handlers" },
{ "reflection": "Machine.StateActionContext", "label": "Entry and exit actions" },
{ "reflection": "Machine.AlwaysContext", "label": "Eventless transitions" },
{ "reflection": "Machine.DoneContext", "label": "State completion" },
{ "reflection": "Machine.ChoiceContext", "label": "Choice resolution" },
{ "reflection": "Machine.FinalOutputContext", "label": "Final output" },
{ "reflection": "Machine.ParallelOutputContext", "label": "Parallel output" }
]
},
{
"owner": "Definition",
"ownerKind": "interface",
"title": "State invocation",
"description": "State-owned Effect, Stream, timer, logic, and child lifecycles declared through `invoke`.",
"roots": [
{ "reflection": "Machine.InvokeSelector", "label": "Invocation sources" },
{ "reflection": "Machine.InvokeBuilder", "label": "Lifecycle handlers" },
{ "reflection": "Machine.InvokeContext", "label": "Source context" },
{ "reflection": "Machine.InvokeDoneContext", "label": "Completion context" },
{ "reflection": "Machine.InvokeFailureContext", "label": "Failure context" },
{ "reflection": "Machine.InvokeElementContext", "label": "Stream element context" },
{ "reflection": "Machine.InvokeSnapshotContext", "label": "Child snapshot context" }
]
}
],
"examples": [
"decodeSnapshot",
"encodeSnapshot",
"events",
"internalEvents",
"make",
"plan",
"planInitial",
"resume",
"state",
"start",
"states"
]
},
{
"export": "./testing/MachineTest",
"source": "src/testing/MachineTest.ts",
"barrel": "./testing",
"examples": [
"coverage",
"explore",
"invariants",
"probe",
"run",
"scenarios",
"verify"
]
},
{
"export": "./unstable/reactivity/AtomMachine",
"source": "src/unstable/reactivity/AtomMachine.ts",
"barrel": "./reactivity",
"examples": ["make", "matches", "select", "selectChild"]
},
{
"export": "./unstable/cluster/ClusterMachine",
"source": "src/unstable/cluster/ClusterMachine.ts",
"barrel": "./cluster",
"examples": ["make"]
}
]
}