@fugood/bricks-ctor 2.25.0-beta.60 → 2.25.0-beta.62
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/package.json +4 -28
- package/tools/__tests__/legacy-forwarder.test.js +91 -0
- package/tools/_forward.ts +26 -0
- package/tools/deploy.ts +3 -175
- package/tools/mcp-server.ts +3 -35
- package/tools/postinstall.ts +3 -291
- package/tools/pull.ts +3 -198
- package/tools/push-config.ts +3 -113
- package/tools/simulator.ts +3 -149
- package/compile/__tests__/config-diff.test.js +0 -100
- package/compile/__tests__/index.test.js +0 -461
- package/compile/__tests__/util.test.js +0 -450
- package/compile/action-name-map.ts +0 -1079
- package/compile/config-diff.ts +0 -155
- package/compile/index.ts +0 -1594
- package/compile/util.ts +0 -482
- package/index.ts +0 -6
- package/skills/bricks-ctor/SKILL.md +0 -38
- package/skills/bricks-ctor/references/animation.md +0 -160
- package/skills/bricks-ctor/references/architecture-patterns.md +0 -88
- package/skills/bricks-ctor/references/automations.md +0 -232
- package/skills/bricks-ctor/references/buttress.md +0 -245
- package/skills/bricks-ctor/references/data-calculation.md +0 -252
- package/skills/bricks-ctor/references/local-sync.md +0 -129
- package/skills/bricks-ctor/references/media-flow.md +0 -165
- package/skills/bricks-ctor/references/remote-data-bank.md +0 -196
- package/skills/bricks-ctor/references/simulator.md +0 -132
- package/skills/bricks-ctor/references/source-editing-tools.md +0 -81
- package/skills/bricks-ctor/references/standby-transition.md +0 -124
- package/skills/bricks-ctor/references/verification-toolchain.md +0 -200
- package/skills/bricks-design/SKILL.md +0 -171
- package/skills/bricks-design/references/architecture-truths.md +0 -132
- package/skills/bricks-design/references/avoiding-complexity.md +0 -91
- package/skills/bricks-design/references/design-critique.md +0 -195
- package/skills/bricks-design/references/design-languages.md +0 -265
- package/skills/bricks-design/references/performance.md +0 -116
- package/skills/bricks-design/references/presentation-and-slideshow.md +0 -137
- package/skills/bricks-design/references/translating-inputs.md +0 -152
- package/skills/bricks-design/references/variations-and-tweaks.md +0 -124
- package/skills/bricks-design/references/when-the-brief-is-branded.md +0 -284
- package/skills/bricks-design/references/when-the-brief-is-vague.md +0 -85
- package/skills/bricks-design/references/workflow.md +0 -134
- package/skills/bricks-ux/SKILL.md +0 -114
- package/skills/bricks-ux/references/accessibility.md +0 -162
- package/skills/bricks-ux/references/flow-states.md +0 -175
- package/skills/bricks-ux/references/interaction-archetypes.md +0 -189
- package/skills/bricks-ux/references/monitoring-screens.md +0 -153
- package/skills/bricks-ux/references/pressable-composition.md +0 -126
- package/skills/bricks-ux/references/user-journey.md +0 -168
- package/skills/bricks-ux/references/ux-critique.md +0 -256
- package/skills/rive-marketplace/SKILL.md +0 -99
- package/tools/__tests__/_cli-error.test.ts +0 -35
- package/tools/__tests__/_mcp-config.test.ts +0 -67
- package/tools/__tests__/pull.test.ts +0 -108
- package/tools/_cli-error.ts +0 -17
- package/tools/_edits-log.ts +0 -41
- package/tools/_git-author.ts +0 -37
- package/tools/_last-pushed-commit.ts +0 -28
- package/tools/_mcp-config.ts +0 -42
- package/tools/_shell.ts +0 -180
- package/tools/icons/.gitattributes +0 -1
- package/tools/icons/fa6pro-glyphmap.json +0 -4686
- package/tools/icons/fa6pro-meta.json +0 -1
- package/tools/mcp-env.ts +0 -13
- package/tools/mcp-tools/__tests__/data-calc-editing.test.js +0 -516
- package/tools/mcp-tools/__tests__/entry-editing.test.js +0 -866
- package/tools/mcp-tools/__tests__/huggingface.test.ts +0 -49
- package/tools/mcp-tools/__tests__/icons.test.ts +0 -21
- package/tools/mcp-tools/__tests__/mcp-env.test.js +0 -19
- package/tools/mcp-tools/_editing-helpers.ts +0 -98
- package/tools/mcp-tools/_verify.ts +0 -50
- package/tools/mcp-tools/compile.ts +0 -104
- package/tools/mcp-tools/data-calc-editing.ts +0 -1311
- package/tools/mcp-tools/entry-editing.ts +0 -2297
- package/tools/mcp-tools/huggingface.ts +0 -772
- package/tools/mcp-tools/icons.ts +0 -97
- package/tools/mcp-tools/lottie.ts +0 -102
- package/tools/mcp-tools/media.ts +0 -113
- package/tools/simulator-main.mjs +0 -488
- package/tools/simulator-preload.cjs +0 -16
- package/types/animation.d.ts +0 -116
- package/types/automation.d.ts +0 -231
- package/types/brick-base.d.ts +0 -80
- package/types/bricks/Camera.d.ts +0 -246
- package/types/bricks/Chart.d.ts +0 -372
- package/types/bricks/GenerativeMedia.d.ts +0 -290
- package/types/bricks/Icon.d.ts +0 -98
- package/types/bricks/Image.d.ts +0 -126
- package/types/bricks/Items.d.ts +0 -480
- package/types/bricks/Lottie.d.ts +0 -168
- package/types/bricks/Maps.d.ts +0 -262
- package/types/bricks/QrCode.d.ts +0 -117
- package/types/bricks/Rect.d.ts +0 -150
- package/types/bricks/RichText.d.ts +0 -131
- package/types/bricks/Rive.d.ts +0 -220
- package/types/bricks/Scene3D.d.ts +0 -676
- package/types/bricks/Sketch.d.ts +0 -256
- package/types/bricks/Slideshow.d.ts +0 -201
- package/types/bricks/Svg.d.ts +0 -99
- package/types/bricks/Text.d.ts +0 -148
- package/types/bricks/TextInput.d.ts +0 -242
- package/types/bricks/Video.d.ts +0 -242
- package/types/bricks/VideoStreaming.d.ts +0 -112
- package/types/bricks/WebRtcStream.d.ts +0 -65
- package/types/bricks/WebView.d.ts +0 -168
- package/types/bricks/index.d.ts +0 -23
- package/types/canvas.d.ts +0 -82
- package/types/common.d.ts +0 -141
- package/types/data-calc-command/base.d.ts +0 -57
- package/types/data-calc-command/collection.d.ts +0 -418
- package/types/data-calc-command/color.d.ts +0 -432
- package/types/data-calc-command/constant.d.ts +0 -50
- package/types/data-calc-command/datetime.d.ts +0 -147
- package/types/data-calc-command/file.d.ts +0 -129
- package/types/data-calc-command/index.d.ts +0 -13
- package/types/data-calc-command/iteratee.d.ts +0 -23
- package/types/data-calc-command/logictype.d.ts +0 -190
- package/types/data-calc-command/math.d.ts +0 -275
- package/types/data-calc-command/object.d.ts +0 -119
- package/types/data-calc-command/sandbox.d.ts +0 -66
- package/types/data-calc-command/string.d.ts +0 -407
- package/types/data-calc-script.d.ts +0 -21
- package/types/data-calc.d.ts +0 -12
- package/types/data.d.ts +0 -97
- package/types/generators/AlarmClock.d.ts +0 -110
- package/types/generators/Assistant.d.ts +0 -640
- package/types/generators/BleCentral.d.ts +0 -247
- package/types/generators/BlePeripheral.d.ts +0 -208
- package/types/generators/CanvasMap.d.ts +0 -74
- package/types/generators/CastlesPay.d.ts +0 -87
- package/types/generators/DataBank.d.ts +0 -160
- package/types/generators/File.d.ts +0 -432
- package/types/generators/GraphQl.d.ts +0 -132
- package/types/generators/Http.d.ts +0 -222
- package/types/generators/HttpServer.d.ts +0 -230
- package/types/generators/Information.d.ts +0 -103
- package/types/generators/Intent.d.ts +0 -168
- package/types/generators/Iterator.d.ts +0 -108
- package/types/generators/Keyboard.d.ts +0 -105
- package/types/generators/LlmAnthropicCompat.d.ts +0 -212
- package/types/generators/LlmAppleBuiltin.d.ts +0 -159
- package/types/generators/LlmGgml.d.ts +0 -903
- package/types/generators/LlmMediaTekNeuroPilot.d.ts +0 -235
- package/types/generators/LlmMlx.d.ts +0 -228
- package/types/generators/LlmOnnx.d.ts +0 -213
- package/types/generators/LlmOpenAiCompat.d.ts +0 -312
- package/types/generators/LlmQualcommAiEngine.d.ts +0 -247
- package/types/generators/Mcp.d.ts +0 -637
- package/types/generators/McpServer.d.ts +0 -289
- package/types/generators/MediaFlow.d.ts +0 -170
- package/types/generators/MqttBroker.d.ts +0 -141
- package/types/generators/MqttClient.d.ts +0 -141
- package/types/generators/Question.d.ts +0 -408
- package/types/generators/RealtimeTranscription.d.ts +0 -287
- package/types/generators/RerankerGgml.d.ts +0 -195
- package/types/generators/SerialPort.d.ts +0 -151
- package/types/generators/SoundPlayer.d.ts +0 -94
- package/types/generators/SoundRecorder.d.ts +0 -139
- package/types/generators/SpeechToTextGgml.d.ts +0 -424
- package/types/generators/SpeechToTextOnnx.d.ts +0 -236
- package/types/generators/SpeechToTextPlatform.d.ts +0 -85
- package/types/generators/SqLite.d.ts +0 -159
- package/types/generators/Step.d.ts +0 -107
- package/types/generators/SttAppleBuiltin.d.ts +0 -153
- package/types/generators/Tcp.d.ts +0 -126
- package/types/generators/TcpServer.d.ts +0 -147
- package/types/generators/TextToSpeechAppleBuiltin.d.ts +0 -127
- package/types/generators/TextToSpeechGgml.d.ts +0 -221
- package/types/generators/TextToSpeechOnnx.d.ts +0 -178
- package/types/generators/TextToSpeechOpenAiLike.d.ts +0 -121
- package/types/generators/ThermalPrinter.d.ts +0 -193
- package/types/generators/Tick.d.ts +0 -83
- package/types/generators/Udp.d.ts +0 -120
- package/types/generators/VadGgml.d.ts +0 -260
- package/types/generators/VadOnnx.d.ts +0 -231
- package/types/generators/VadTraditional.d.ts +0 -138
- package/types/generators/VectorStore.d.ts +0 -257
- package/types/generators/Watchdog.d.ts +0 -107
- package/types/generators/WebCrawler.d.ts +0 -103
- package/types/generators/WebRtc.d.ts +0 -181
- package/types/generators/WebSocket.d.ts +0 -148
- package/types/generators/index.d.ts +0 -57
- package/types/index.d.ts +0 -13
- package/types/subspace.d.ts +0 -60
- package/types/switch.d.ts +0 -51
- package/types/system.d.ts +0 -707
- package/utils/__tests__/calc.test.js +0 -25
- package/utils/__tests__/id.test.js +0 -154
- package/utils/calc.ts +0 -130
- package/utils/data.ts +0 -495
- package/utils/event-props.ts +0 -912
- package/utils/id.ts +0 -133
package/types/system.d.ts
DELETED
|
@@ -1,707 +0,0 @@
|
|
|
1
|
-
/* Auto generated by build script */
|
|
2
|
-
import type {
|
|
3
|
-
Action,
|
|
4
|
-
ActionWithDataParams,
|
|
5
|
-
ActionWithParams,
|
|
6
|
-
Brick,
|
|
7
|
-
Generator,
|
|
8
|
-
EventProperty,
|
|
9
|
-
} from './common'
|
|
10
|
-
import type { Animation } from './animation'
|
|
11
|
-
import type { Canvas } from './canvas'
|
|
12
|
-
import type { Data, DataLink } from './data'
|
|
13
|
-
|
|
14
|
-
/* Change Data value with script expression. One expression of return value */
|
|
15
|
-
export type SystemActionPropertyBankExpression = ActionWithParams & {
|
|
16
|
-
__actionName: 'PROPERTY_BANK_EXPRESSION'
|
|
17
|
-
params?: Array<
|
|
18
|
-
| {
|
|
19
|
-
input: 'expression'
|
|
20
|
-
value?: string | DataLink | EventProperty
|
|
21
|
-
mapping?: string
|
|
22
|
-
}
|
|
23
|
-
| {
|
|
24
|
-
input: 'variables'
|
|
25
|
-
value?:
|
|
26
|
-
| Array<{
|
|
27
|
-
id?: string
|
|
28
|
-
key?: string
|
|
29
|
-
}>
|
|
30
|
-
| DataLink
|
|
31
|
-
| EventProperty
|
|
32
|
-
mapping?: string
|
|
33
|
-
}
|
|
34
|
-
| {
|
|
35
|
-
input: 'result'
|
|
36
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
37
|
-
mapping?: string
|
|
38
|
-
}
|
|
39
|
-
| {
|
|
40
|
-
input: 'resultAssignPath'
|
|
41
|
-
value?: string | DataLink | EventProperty
|
|
42
|
-
mapping?: string
|
|
43
|
-
}
|
|
44
|
-
| {
|
|
45
|
-
input: 'errorResult'
|
|
46
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
47
|
-
mapping?: string
|
|
48
|
-
}
|
|
49
|
-
>
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Change Data value */
|
|
53
|
-
export type SystemActionPropertyBank = ActionWithDataParams & {
|
|
54
|
-
__actionName: 'PROPERTY_BANK'
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Trigger Data calculation flow without value change */
|
|
58
|
-
export type SystemActionPropertyBankCommand = ActionWithDataParams & {
|
|
59
|
-
__actionName: 'PROPERTY_BANK_COMMAND'
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* [Unstable] Dynamically generate bricks */
|
|
63
|
-
export type SystemActionDynamicBrick = ActionWithParams & {
|
|
64
|
-
__actionName: 'DYNAMIC_BRICK'
|
|
65
|
-
params?: Array<
|
|
66
|
-
| {
|
|
67
|
-
input: 'addList'
|
|
68
|
-
value?: string | DataLink | EventProperty
|
|
69
|
-
mapping?: string
|
|
70
|
-
}
|
|
71
|
-
| {
|
|
72
|
-
input: 'preferAfterItemId'
|
|
73
|
-
value?: string | DataLink | EventProperty
|
|
74
|
-
mapping?: string
|
|
75
|
-
}
|
|
76
|
-
| {
|
|
77
|
-
input: 'reset'
|
|
78
|
-
value?: boolean | DataLink | EventProperty
|
|
79
|
-
mapping?: string
|
|
80
|
-
}
|
|
81
|
-
| {
|
|
82
|
-
input: 'removeItemId'
|
|
83
|
-
value?: string | DataLink | EventProperty
|
|
84
|
-
mapping?: string
|
|
85
|
-
}
|
|
86
|
-
| {
|
|
87
|
-
input: 'removeItems'
|
|
88
|
-
value?: string | DataLink | EventProperty
|
|
89
|
-
mapping?: string
|
|
90
|
-
}
|
|
91
|
-
>
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/* [Unstable] Reset Dynamic Bricks */
|
|
95
|
-
export type SystemActionDynamicBrickReset = Action & {
|
|
96
|
-
__actionName: 'DYNAMIC_BRICK_RESET'
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/* Run specific Animation on specific Brick */
|
|
100
|
-
export type SystemActionDynamicAnimation = ActionWithParams & {
|
|
101
|
-
__actionName: 'DYNAMIC_ANIMATION'
|
|
102
|
-
params?: Array<
|
|
103
|
-
| {
|
|
104
|
-
input: 'brickId'
|
|
105
|
-
value?: string | DataLink | (() => Brick) | EventProperty
|
|
106
|
-
mapping?: string
|
|
107
|
-
}
|
|
108
|
-
| {
|
|
109
|
-
input: 'animationId'
|
|
110
|
-
value?: string | DataLink | (() => Animation) | EventProperty
|
|
111
|
-
mapping?: string
|
|
112
|
-
}
|
|
113
|
-
| {
|
|
114
|
-
input: 'runType'
|
|
115
|
-
value?: 'once' | 'loop' | DataLink | EventProperty
|
|
116
|
-
mapping?: string
|
|
117
|
-
}
|
|
118
|
-
| {
|
|
119
|
-
input: 'resetInitialValue'
|
|
120
|
-
value?: boolean | DataLink | EventProperty
|
|
121
|
-
mapping?: string
|
|
122
|
-
}
|
|
123
|
-
>
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/* Reset Dynamic Animation */
|
|
127
|
-
export type SystemActionDynamicAnimationReset = ActionWithParams & {
|
|
128
|
-
__actionName: 'DYNAMIC_ANIMATION_RESET'
|
|
129
|
-
params?: Array<{
|
|
130
|
-
input: 'dynamicAnimationBrickId'
|
|
131
|
-
value?: string | DataLink | (() => Brick) | EventProperty
|
|
132
|
-
mapping?: string
|
|
133
|
-
}>
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/* Stop Dynamic Animation */
|
|
137
|
-
export type SystemActionDynamicAnimationStop = ActionWithParams & {
|
|
138
|
-
__actionName: 'DYNAMIC_ANIMATION_STOP'
|
|
139
|
-
params?: Array<{
|
|
140
|
-
input: 'dynamicAnimationBrickId'
|
|
141
|
-
value?: string | DataLink | (() => Brick) | EventProperty
|
|
142
|
-
mapping?: string
|
|
143
|
-
}>
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/* Change canvas on the current Subspace */
|
|
147
|
-
export type SystemActionChangeCanvas = ActionWithParams & {
|
|
148
|
-
__actionName: 'CHANGE_CANVAS'
|
|
149
|
-
params?: Array<
|
|
150
|
-
| {
|
|
151
|
-
input: 'canvasId'
|
|
152
|
-
value?: string | DataLink | (() => Canvas) | EventProperty
|
|
153
|
-
mapping?: string
|
|
154
|
-
}
|
|
155
|
-
| {
|
|
156
|
-
input: 'canvasTitleLike'
|
|
157
|
-
value?: string | DataLink | EventProperty
|
|
158
|
-
mapping?: string
|
|
159
|
-
}
|
|
160
|
-
| {
|
|
161
|
-
input: 'canvasKeyMapList'
|
|
162
|
-
value?:
|
|
163
|
-
| Array<{
|
|
164
|
-
key?: string
|
|
165
|
-
value?: string
|
|
166
|
-
}>
|
|
167
|
-
| DataLink
|
|
168
|
-
| EventProperty
|
|
169
|
-
mapping?: string
|
|
170
|
-
}
|
|
171
|
-
| {
|
|
172
|
-
input: 'canvasKey'
|
|
173
|
-
value?: string | DataLink | EventProperty
|
|
174
|
-
mapping?: string
|
|
175
|
-
}
|
|
176
|
-
>
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/* Log System message */
|
|
180
|
-
export type SystemActionMessage = ActionWithParams & {
|
|
181
|
-
__actionName: 'MESSAGE'
|
|
182
|
-
params?: Array<
|
|
183
|
-
| {
|
|
184
|
-
input: 'type'
|
|
185
|
-
value?:
|
|
186
|
-
| 'SYSTEM_MESSAGE_TYPE_INFO'
|
|
187
|
-
| 'SYSTEM_MESSAGE_TYPE_SUCCESS'
|
|
188
|
-
| 'SYSTEM_MESSAGE_TYPE_WARNING'
|
|
189
|
-
| 'SYSTEM_MESSAGE_TYPE_ERROR'
|
|
190
|
-
| DataLink
|
|
191
|
-
| EventProperty
|
|
192
|
-
mapping?: string
|
|
193
|
-
}
|
|
194
|
-
| {
|
|
195
|
-
input: 'title'
|
|
196
|
-
value?: string | DataLink | EventProperty
|
|
197
|
-
mapping?: string
|
|
198
|
-
}
|
|
199
|
-
| {
|
|
200
|
-
input: 'message'
|
|
201
|
-
value?: string | DataLink | EventProperty
|
|
202
|
-
mapping?: string
|
|
203
|
-
}
|
|
204
|
-
>
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/* Show system alert popup with custom message */
|
|
208
|
-
export type SystemActionAlert = ActionWithParams & {
|
|
209
|
-
__actionName: 'ALERT'
|
|
210
|
-
params?: Array<
|
|
211
|
-
| {
|
|
212
|
-
input: 'id'
|
|
213
|
-
value?: string | DataLink | EventProperty
|
|
214
|
-
mapping?: string
|
|
215
|
-
}
|
|
216
|
-
| {
|
|
217
|
-
input: 'type'
|
|
218
|
-
value?: 'info' | 'success' | 'warning' | 'error' | DataLink | EventProperty
|
|
219
|
-
mapping?: string
|
|
220
|
-
}
|
|
221
|
-
| {
|
|
222
|
-
input: 'title'
|
|
223
|
-
value?: string | DataLink | EventProperty
|
|
224
|
-
mapping?: string
|
|
225
|
-
}
|
|
226
|
-
| {
|
|
227
|
-
input: 'message'
|
|
228
|
-
value?: string | DataLink | EventProperty
|
|
229
|
-
mapping?: string
|
|
230
|
-
}
|
|
231
|
-
| {
|
|
232
|
-
input: 'selections'
|
|
233
|
-
value?:
|
|
234
|
-
| Array<{
|
|
235
|
-
label?: string
|
|
236
|
-
color?: string
|
|
237
|
-
value?: string
|
|
238
|
-
disableResult?: boolean
|
|
239
|
-
}>
|
|
240
|
-
| DataLink
|
|
241
|
-
| EventProperty
|
|
242
|
-
mapping?: string
|
|
243
|
-
}
|
|
244
|
-
| {
|
|
245
|
-
input: 'selectionResult'
|
|
246
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
247
|
-
mapping?: string
|
|
248
|
-
}
|
|
249
|
-
| {
|
|
250
|
-
input: 'timeout'
|
|
251
|
-
value?: number | DataLink | EventProperty
|
|
252
|
-
mapping?: string
|
|
253
|
-
}
|
|
254
|
-
| {
|
|
255
|
-
input: 'hideSelections'
|
|
256
|
-
value?: boolean | DataLink | EventProperty
|
|
257
|
-
mapping?: string
|
|
258
|
-
}
|
|
259
|
-
>
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/* Close current showing popups with type or id. */
|
|
263
|
-
export type SystemActionPopupReset = ActionWithParams & {
|
|
264
|
-
__actionName: 'POPUP_RESET'
|
|
265
|
-
params?: Array<
|
|
266
|
-
| {
|
|
267
|
-
input: 'popupClearType'
|
|
268
|
-
value?: 'all' | 'alert' | 'generator' | DataLink | EventProperty
|
|
269
|
-
mapping?: string
|
|
270
|
-
}
|
|
271
|
-
| {
|
|
272
|
-
input: 'popupId'
|
|
273
|
-
value?: string | DataLink | EventProperty
|
|
274
|
-
mapping?: string
|
|
275
|
-
}
|
|
276
|
-
>
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/* Take screenshot for current subspace or the full viewport (including portal subspaces) */
|
|
280
|
-
export type SystemActionTakeScreenshot = ActionWithParams & {
|
|
281
|
-
__actionName: 'TAKE_SCREENSHOT'
|
|
282
|
-
params?: Array<
|
|
283
|
-
| {
|
|
284
|
-
input: 'currentSubspace'
|
|
285
|
-
value?: boolean | DataLink | EventProperty
|
|
286
|
-
mapping?: string
|
|
287
|
-
}
|
|
288
|
-
| {
|
|
289
|
-
input: 'brickId'
|
|
290
|
-
value?: string | DataLink | (() => Brick) | EventProperty
|
|
291
|
-
mapping?: string
|
|
292
|
-
}
|
|
293
|
-
| {
|
|
294
|
-
input: 'format'
|
|
295
|
-
value?: 'jpg' | 'png' | DataLink | EventProperty
|
|
296
|
-
mapping?: string
|
|
297
|
-
}
|
|
298
|
-
| {
|
|
299
|
-
input: 'quality'
|
|
300
|
-
value?: number | DataLink | EventProperty
|
|
301
|
-
mapping?: string
|
|
302
|
-
}
|
|
303
|
-
| {
|
|
304
|
-
input: 'width'
|
|
305
|
-
value?: number | DataLink | EventProperty
|
|
306
|
-
mapping?: string
|
|
307
|
-
}
|
|
308
|
-
| {
|
|
309
|
-
input: 'height'
|
|
310
|
-
value?: number | DataLink | EventProperty
|
|
311
|
-
mapping?: string
|
|
312
|
-
}
|
|
313
|
-
| {
|
|
314
|
-
input: 'saveProperty'
|
|
315
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
316
|
-
mapping?: string
|
|
317
|
-
}
|
|
318
|
-
>
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/* Store a value in application-specific storage */
|
|
322
|
-
export type SystemActionStorageSet = ActionWithParams & {
|
|
323
|
-
__actionName: 'STORAGE_SET'
|
|
324
|
-
params?: Array<
|
|
325
|
-
| {
|
|
326
|
-
input: 'storageType'
|
|
327
|
-
value?: 'persist' | 'in-memory' | DataLink | EventProperty
|
|
328
|
-
mapping?: string
|
|
329
|
-
}
|
|
330
|
-
| {
|
|
331
|
-
input: 'storageScope'
|
|
332
|
-
value?: 'global' | 'subspace' | DataLink | EventProperty
|
|
333
|
-
mapping?: string
|
|
334
|
-
}
|
|
335
|
-
| {
|
|
336
|
-
input: 'storageKey'
|
|
337
|
-
value?: string | DataLink | EventProperty
|
|
338
|
-
mapping?: string
|
|
339
|
-
}
|
|
340
|
-
| {
|
|
341
|
-
input: 'storageValue'
|
|
342
|
-
value?: any | EventProperty
|
|
343
|
-
mapping?: string
|
|
344
|
-
}
|
|
345
|
-
>
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
/* Retrieve a value from application-specific storage */
|
|
349
|
-
export type SystemActionStorageRetrieve = ActionWithParams & {
|
|
350
|
-
__actionName: 'STORAGE_RETRIEVE'
|
|
351
|
-
params?: Array<
|
|
352
|
-
| {
|
|
353
|
-
input: 'storageType'
|
|
354
|
-
value?: 'persist' | 'in-memory' | DataLink | EventProperty
|
|
355
|
-
mapping?: string
|
|
356
|
-
}
|
|
357
|
-
| {
|
|
358
|
-
input: 'storageScope'
|
|
359
|
-
value?: 'global' | 'subspace' | DataLink | EventProperty
|
|
360
|
-
mapping?: string
|
|
361
|
-
}
|
|
362
|
-
| {
|
|
363
|
-
input: 'storageKey'
|
|
364
|
-
value?: string | DataLink | EventProperty
|
|
365
|
-
mapping?: string
|
|
366
|
-
}
|
|
367
|
-
| {
|
|
368
|
-
input: 'result'
|
|
369
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
370
|
-
mapping?: string
|
|
371
|
-
}
|
|
372
|
-
| {
|
|
373
|
-
input: 'defaultValue'
|
|
374
|
-
value?: string | DataLink | EventProperty
|
|
375
|
-
mapping?: string
|
|
376
|
-
}
|
|
377
|
-
| {
|
|
378
|
-
input: 'skipIfNotFound'
|
|
379
|
-
value?: boolean | DataLink | EventProperty
|
|
380
|
-
mapping?: string
|
|
381
|
-
}
|
|
382
|
-
>
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
/* Delete a value from application-specific storage or clear all values */
|
|
386
|
-
export type SystemActionStorageDelete = ActionWithParams & {
|
|
387
|
-
__actionName: 'STORAGE_DELETE'
|
|
388
|
-
params?: Array<
|
|
389
|
-
| {
|
|
390
|
-
input: 'storageType'
|
|
391
|
-
value?: 'persist' | 'in-memory' | DataLink | EventProperty
|
|
392
|
-
mapping?: string
|
|
393
|
-
}
|
|
394
|
-
| {
|
|
395
|
-
input: 'storageScope'
|
|
396
|
-
value?: 'global' | 'subspace' | DataLink | EventProperty
|
|
397
|
-
mapping?: string
|
|
398
|
-
}
|
|
399
|
-
| {
|
|
400
|
-
input: 'storageKey'
|
|
401
|
-
value?: string | DataLink | EventProperty
|
|
402
|
-
mapping?: string
|
|
403
|
-
}
|
|
404
|
-
| {
|
|
405
|
-
input: 'all'
|
|
406
|
-
value?: boolean | DataLink | EventProperty
|
|
407
|
-
mapping?: string
|
|
408
|
-
}
|
|
409
|
-
>
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
/* Subscribe to a channel for data update */
|
|
413
|
-
export type SystemActionChannelSubscribe = ActionWithParams & {
|
|
414
|
-
__actionName: 'CHANNEL_SUBSCRIBE'
|
|
415
|
-
params?: Array<
|
|
416
|
-
| {
|
|
417
|
-
input: 'key'
|
|
418
|
-
value?: string | DataLink | EventProperty
|
|
419
|
-
mapping?: string
|
|
420
|
-
}
|
|
421
|
-
| {
|
|
422
|
-
input: 'type'
|
|
423
|
-
value?: 'on' | 'once' | DataLink | EventProperty
|
|
424
|
-
mapping?: string
|
|
425
|
-
}
|
|
426
|
-
| {
|
|
427
|
-
input: 'livetime'
|
|
428
|
-
value?: number | DataLink | EventProperty
|
|
429
|
-
mapping?: string
|
|
430
|
-
}
|
|
431
|
-
| {
|
|
432
|
-
input: 'dataResult'
|
|
433
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
434
|
-
mapping?: string
|
|
435
|
-
}
|
|
436
|
-
| {
|
|
437
|
-
input: 'dataAssignList'
|
|
438
|
-
value?:
|
|
439
|
-
| Array<{
|
|
440
|
-
path?: string
|
|
441
|
-
type?: any
|
|
442
|
-
id?: string
|
|
443
|
-
required?: boolean
|
|
444
|
-
}>
|
|
445
|
-
| DataLink
|
|
446
|
-
| EventProperty
|
|
447
|
-
mapping?: string
|
|
448
|
-
}
|
|
449
|
-
| {
|
|
450
|
-
input: 'progressResult'
|
|
451
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
452
|
-
mapping?: string
|
|
453
|
-
}
|
|
454
|
-
| {
|
|
455
|
-
input: 'progressAssignList'
|
|
456
|
-
value?:
|
|
457
|
-
| Array<{
|
|
458
|
-
path?: string
|
|
459
|
-
type?: any
|
|
460
|
-
id?: string
|
|
461
|
-
required?: boolean
|
|
462
|
-
}>
|
|
463
|
-
| DataLink
|
|
464
|
-
| EventProperty
|
|
465
|
-
mapping?: string
|
|
466
|
-
}
|
|
467
|
-
| {
|
|
468
|
-
input: 'errorResult'
|
|
469
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
470
|
-
mapping?: string
|
|
471
|
-
}
|
|
472
|
-
>
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
/* Unsubscribe from a channel */
|
|
476
|
-
export type SystemActionChannelUnsubscribe = ActionWithParams & {
|
|
477
|
-
__actionName: 'CHANNEL_UNSUBSCRIBE'
|
|
478
|
-
params?: Array<{
|
|
479
|
-
input: 'keyMatch'
|
|
480
|
-
value?: string | DataLink | EventProperty
|
|
481
|
-
mapping?: string
|
|
482
|
-
}>
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
/* Publish data to a channel */
|
|
486
|
-
export type SystemActionChannelPublish = ActionWithParams & {
|
|
487
|
-
__actionName: 'CHANNEL_PUBLISH'
|
|
488
|
-
params?: Array<
|
|
489
|
-
| {
|
|
490
|
-
input: 'keyMatch'
|
|
491
|
-
value?: string | DataLink | EventProperty
|
|
492
|
-
mapping?: string
|
|
493
|
-
}
|
|
494
|
-
| {
|
|
495
|
-
input: 'payloadType'
|
|
496
|
-
value?: 'result' | 'progress' | 'error' | DataLink | EventProperty
|
|
497
|
-
mapping?: string
|
|
498
|
-
}
|
|
499
|
-
| {
|
|
500
|
-
input: 'payload'
|
|
501
|
-
value?: string | DataLink | EventProperty
|
|
502
|
-
mapping?: string
|
|
503
|
-
}
|
|
504
|
-
>
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/* Delay for a certain time between actions */
|
|
508
|
-
export type SystemActionDelay = ActionWithParams & {
|
|
509
|
-
__actionName: 'DELAY'
|
|
510
|
-
params?: Array<{
|
|
511
|
-
input: 'time'
|
|
512
|
-
value?: number | DataLink | EventProperty
|
|
513
|
-
mapping?: string
|
|
514
|
-
}>
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
/* [Internal] Use a shared application */
|
|
518
|
-
export type SystemActionUseShareApplication = ActionWithParams & {
|
|
519
|
-
__actionName: 'USE_SHARE_APPLICATION'
|
|
520
|
-
params?: Array<
|
|
521
|
-
| {
|
|
522
|
-
input: 'applicationId'
|
|
523
|
-
value?: string | DataLink | EventProperty
|
|
524
|
-
mapping?: string
|
|
525
|
-
}
|
|
526
|
-
| {
|
|
527
|
-
input: 'releaseVersion'
|
|
528
|
-
value?: string | DataLink | EventProperty
|
|
529
|
-
mapping?: string
|
|
530
|
-
}
|
|
531
|
-
| {
|
|
532
|
-
input: 'useType'
|
|
533
|
-
value?: 'run' | 'use-after-bind' | 'cancel-use' | DataLink | EventProperty
|
|
534
|
-
mapping?: string
|
|
535
|
-
}
|
|
536
|
-
| {
|
|
537
|
-
input: 'viewportPresetNameLike'
|
|
538
|
-
value?: string | DataLink | EventProperty
|
|
539
|
-
mapping?: string
|
|
540
|
-
}
|
|
541
|
-
| {
|
|
542
|
-
input: 'viewportPresetDeviceTarget'
|
|
543
|
-
value?: string | DataLink | EventProperty
|
|
544
|
-
mapping?: string
|
|
545
|
-
}
|
|
546
|
-
| {
|
|
547
|
-
input: 'enableLocalSync'
|
|
548
|
-
value?: boolean | DataLink | EventProperty
|
|
549
|
-
mapping?: string
|
|
550
|
-
}
|
|
551
|
-
>
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
/* [Internal] Auth in device */
|
|
555
|
-
export type SystemActionAuthInDevice = Action & {
|
|
556
|
-
__actionName: 'AUTH_IN_DEVICE'
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/* [Internal] Refresh passcode for bind device */
|
|
560
|
-
export type SystemActionRefreshBindcode = Action & {
|
|
561
|
-
__actionName: 'REFRESH_BINDCODE'
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
/* Open URL */
|
|
565
|
-
export type SystemActionOpenUrl = ActionWithParams & {
|
|
566
|
-
__actionName: 'OPEN_URL'
|
|
567
|
-
params?: Array<
|
|
568
|
-
| {
|
|
569
|
-
input: 'url'
|
|
570
|
-
value?: string | DataLink | EventProperty
|
|
571
|
-
mapping?: string
|
|
572
|
-
}
|
|
573
|
-
| {
|
|
574
|
-
input: 'behavior'
|
|
575
|
-
value?: 'in-app' | 'new-window' | DataLink | EventProperty
|
|
576
|
-
mapping?: string
|
|
577
|
-
}
|
|
578
|
-
| {
|
|
579
|
-
input: 'inAppTintColor'
|
|
580
|
-
value?: string | DataLink | EventProperty
|
|
581
|
-
mapping?: string
|
|
582
|
-
}
|
|
583
|
-
>
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
/* Open File or Directory */
|
|
587
|
-
export type SystemActionOpenFile = ActionWithParams & {
|
|
588
|
-
__actionName: 'OPEN_FILE'
|
|
589
|
-
params?: Array<
|
|
590
|
-
| {
|
|
591
|
-
input: 'pickType'
|
|
592
|
-
value?: 'file' | 'multiple' | 'directory' | DataLink | EventProperty
|
|
593
|
-
mapping?: string
|
|
594
|
-
}
|
|
595
|
-
| {
|
|
596
|
-
input: 'fileType'
|
|
597
|
-
value?: any | EventProperty
|
|
598
|
-
mapping?: string
|
|
599
|
-
}
|
|
600
|
-
| {
|
|
601
|
-
input: 'copyTo'
|
|
602
|
-
value?: 'cache' | 'document' | DataLink | EventProperty
|
|
603
|
-
mapping?: string
|
|
604
|
-
}
|
|
605
|
-
| {
|
|
606
|
-
input: 'mode'
|
|
607
|
-
value?: 'import' | 'open' | DataLink | EventProperty
|
|
608
|
-
mapping?: string
|
|
609
|
-
}
|
|
610
|
-
| {
|
|
611
|
-
input: 'saveProperty'
|
|
612
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
613
|
-
mapping?: string
|
|
614
|
-
}
|
|
615
|
-
| {
|
|
616
|
-
input: 'saveDetailProperty'
|
|
617
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
618
|
-
mapping?: string
|
|
619
|
-
}
|
|
620
|
-
| {
|
|
621
|
-
input: 'errorSaveProperty'
|
|
622
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
623
|
-
mapping?: string
|
|
624
|
-
}
|
|
625
|
-
>
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
/* Throw exception */
|
|
629
|
-
export type SystemActionThrowException = ActionWithParams & {
|
|
630
|
-
__actionName: 'THROW_EXCEPTION'
|
|
631
|
-
params?: Array<
|
|
632
|
-
| {
|
|
633
|
-
input: 'behavior'
|
|
634
|
-
value?: 'application' | 'native' | DataLink | EventProperty
|
|
635
|
-
mapping?: string
|
|
636
|
-
}
|
|
637
|
-
| {
|
|
638
|
-
input: 'exceptionMessage'
|
|
639
|
-
value?: string | DataLink | EventProperty
|
|
640
|
-
mapping?: string
|
|
641
|
-
}
|
|
642
|
-
>
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
/* Restart the foundation (React Native bundle) */
|
|
646
|
-
export type SystemActionRestartFoundation = Action & {
|
|
647
|
-
__actionName: 'RESTART_FOUNDATION'
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
/* Dismiss keyboard */
|
|
651
|
-
export type SystemActionDismissKeyboard = Action & {
|
|
652
|
-
__actionName: 'DISMISS_KEYBOARD'
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
/* Trigger application AI filter */
|
|
656
|
-
export type SystemActionTriggerApplicationFilter = ActionWithParams & {
|
|
657
|
-
__actionName: 'TRIGGER_APPLICATION_FILTER'
|
|
658
|
-
params?: Array<
|
|
659
|
-
| {
|
|
660
|
-
input: 'name'
|
|
661
|
-
value?: string | DataLink | EventProperty
|
|
662
|
-
mapping?: string
|
|
663
|
-
}
|
|
664
|
-
| {
|
|
665
|
-
input: 'variables'
|
|
666
|
-
value?: any | EventProperty
|
|
667
|
-
mapping?: string
|
|
668
|
-
}
|
|
669
|
-
| {
|
|
670
|
-
input: 'result'
|
|
671
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
672
|
-
mapping?: string
|
|
673
|
-
}
|
|
674
|
-
| {
|
|
675
|
-
input: 'error'
|
|
676
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
677
|
-
mapping?: string
|
|
678
|
-
}
|
|
679
|
-
>
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
/* Stop running application AI filter */
|
|
683
|
-
export type SystemActionStopApplicationFilter = Action & {
|
|
684
|
-
__actionName: 'STOP_APPLICATION_FILTER'
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
/* Save update snapshot (from Application Filter or DevTools MCP Server) to media system */
|
|
688
|
-
export type SystemActionSaveUpdateSnapshot = ActionWithParams & {
|
|
689
|
-
__actionName: 'SAVE_UPDATE_SNAPSHOT'
|
|
690
|
-
params?: Array<
|
|
691
|
-
| {
|
|
692
|
-
input: 'snapshotFileIndentifier'
|
|
693
|
-
value?: string | DataLink | EventProperty
|
|
694
|
-
mapping?: string
|
|
695
|
-
}
|
|
696
|
-
| {
|
|
697
|
-
input: 'snapshotSaveResult'
|
|
698
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
699
|
-
mapping?: string
|
|
700
|
-
}
|
|
701
|
-
| {
|
|
702
|
-
input: 'snapshotErrorResult'
|
|
703
|
-
value?: string | DataLink | (() => Data) | EventProperty
|
|
704
|
-
mapping?: string
|
|
705
|
-
}
|
|
706
|
-
>
|
|
707
|
-
}
|