@fugood/bricks-ctor 2.25.0-beta.7 → 2.25.0-beta.70

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.
Files changed (135) hide show
  1. package/package.json +4 -24
  2. package/tools/__tests__/legacy-forwarder.test.js +91 -0
  3. package/tools/_forward.ts +26 -0
  4. package/tools/deploy.ts +3 -164
  5. package/tools/mcp-server.ts +3 -27
  6. package/tools/postinstall.ts +3 -234
  7. package/tools/pull.ts +3 -121
  8. package/tools/push-config.ts +4 -0
  9. package/tools/simulator.ts +4 -0
  10. package/compile/action-name-map.ts +0 -1015
  11. package/compile/index.ts +0 -1278
  12. package/compile/util.ts +0 -358
  13. package/index.ts +0 -6
  14. package/skills/bricks-ctor/SKILL.md +0 -32
  15. package/skills/bricks-ctor/rules/animation.md +0 -159
  16. package/skills/bricks-ctor/rules/architecture-patterns.md +0 -69
  17. package/skills/bricks-ctor/rules/automations.md +0 -221
  18. package/skills/bricks-ctor/rules/buttress.md +0 -156
  19. package/skills/bricks-ctor/rules/data-calculation.md +0 -209
  20. package/skills/bricks-ctor/rules/local-sync.md +0 -129
  21. package/skills/bricks-ctor/rules/media-flow.md +0 -158
  22. package/skills/bricks-ctor/rules/remote-data-bank.md +0 -196
  23. package/skills/bricks-ctor/rules/standby-transition.md +0 -124
  24. package/skills/bricks-design/LICENSE.txt +0 -180
  25. package/skills/bricks-design/SKILL.md +0 -66
  26. package/skills/rive-marketplace/SKILL.md +0 -99
  27. package/tools/_git-author.ts +0 -29
  28. package/tools/_shell.ts +0 -173
  29. package/tools/icons/.gitattributes +0 -1
  30. package/tools/icons/fa6pro-glyphmap.json +0 -4686
  31. package/tools/icons/fa6pro-meta.json +0 -1
  32. package/tools/mcp-tools/compile.ts +0 -92
  33. package/tools/mcp-tools/huggingface.ts +0 -762
  34. package/tools/mcp-tools/icons.ts +0 -81
  35. package/tools/mcp-tools/lottie.ts +0 -102
  36. package/tools/mcp-tools/media.ts +0 -110
  37. package/tools/preview-main.mjs +0 -293
  38. package/tools/preview.ts +0 -150
  39. package/types/animation.ts +0 -100
  40. package/types/automation.ts +0 -235
  41. package/types/brick-base.ts +0 -80
  42. package/types/bricks/Camera.ts +0 -246
  43. package/types/bricks/Chart.ts +0 -372
  44. package/types/bricks/GenerativeMedia.ts +0 -290
  45. package/types/bricks/Icon.ts +0 -98
  46. package/types/bricks/Image.ts +0 -126
  47. package/types/bricks/Items.ts +0 -476
  48. package/types/bricks/Lottie.ts +0 -168
  49. package/types/bricks/Maps.ts +0 -262
  50. package/types/bricks/QrCode.ts +0 -117
  51. package/types/bricks/Rect.ts +0 -150
  52. package/types/bricks/RichText.ts +0 -128
  53. package/types/bricks/Rive.ts +0 -220
  54. package/types/bricks/Sketch.ts +0 -254
  55. package/types/bricks/Slideshow.ts +0 -201
  56. package/types/bricks/Svg.ts +0 -99
  57. package/types/bricks/Text.ts +0 -148
  58. package/types/bricks/TextInput.ts +0 -242
  59. package/types/bricks/Video.ts +0 -175
  60. package/types/bricks/VideoStreaming.ts +0 -112
  61. package/types/bricks/WebRtcStream.ts +0 -65
  62. package/types/bricks/WebView.ts +0 -168
  63. package/types/bricks/index.ts +0 -22
  64. package/types/canvas.ts +0 -82
  65. package/types/common.ts +0 -144
  66. package/types/data-calc-command.ts +0 -7005
  67. package/types/data-calc-script.ts +0 -21
  68. package/types/data-calc.ts +0 -11
  69. package/types/data.ts +0 -95
  70. package/types/generators/AlarmClock.ts +0 -110
  71. package/types/generators/Assistant.ts +0 -621
  72. package/types/generators/BleCentral.ts +0 -247
  73. package/types/generators/BlePeripheral.ts +0 -208
  74. package/types/generators/CanvasMap.ts +0 -74
  75. package/types/generators/CastlesPay.ts +0 -87
  76. package/types/generators/DataBank.ts +0 -160
  77. package/types/generators/File.ts +0 -432
  78. package/types/generators/GraphQl.ts +0 -132
  79. package/types/generators/Http.ts +0 -222
  80. package/types/generators/HttpServer.ts +0 -176
  81. package/types/generators/Information.ts +0 -103
  82. package/types/generators/Intent.ts +0 -168
  83. package/types/generators/Iterator.ts +0 -108
  84. package/types/generators/Keyboard.ts +0 -105
  85. package/types/generators/LlmAnthropicCompat.ts +0 -212
  86. package/types/generators/LlmAppleBuiltin.ts +0 -159
  87. package/types/generators/LlmGgml.ts +0 -861
  88. package/types/generators/LlmMediaTekNeuroPilot.ts +0 -235
  89. package/types/generators/LlmMlx.ts +0 -227
  90. package/types/generators/LlmOnnx.ts +0 -213
  91. package/types/generators/LlmOpenAiCompat.ts +0 -312
  92. package/types/generators/LlmQualcommAiEngine.ts +0 -247
  93. package/types/generators/Mcp.ts +0 -637
  94. package/types/generators/McpServer.ts +0 -289
  95. package/types/generators/MediaFlow.ts +0 -170
  96. package/types/generators/MqttBroker.ts +0 -141
  97. package/types/generators/MqttClient.ts +0 -141
  98. package/types/generators/Question.ts +0 -408
  99. package/types/generators/RealtimeTranscription.ts +0 -287
  100. package/types/generators/RerankerGgml.ts +0 -191
  101. package/types/generators/SerialPort.ts +0 -151
  102. package/types/generators/SoundPlayer.ts +0 -94
  103. package/types/generators/SoundRecorder.ts +0 -130
  104. package/types/generators/SpeechToTextGgml.ts +0 -419
  105. package/types/generators/SpeechToTextOnnx.ts +0 -236
  106. package/types/generators/SpeechToTextPlatform.ts +0 -85
  107. package/types/generators/SqLite.ts +0 -159
  108. package/types/generators/Step.ts +0 -107
  109. package/types/generators/SttAppleBuiltin.ts +0 -130
  110. package/types/generators/Tcp.ts +0 -126
  111. package/types/generators/TcpServer.ts +0 -147
  112. package/types/generators/TextToSpeechAppleBuiltin.ts +0 -127
  113. package/types/generators/TextToSpeechGgml.ts +0 -221
  114. package/types/generators/TextToSpeechOnnx.ts +0 -178
  115. package/types/generators/TextToSpeechOpenAiLike.ts +0 -121
  116. package/types/generators/ThermalPrinter.ts +0 -191
  117. package/types/generators/Tick.ts +0 -83
  118. package/types/generators/Udp.ts +0 -120
  119. package/types/generators/VadGgml.ts +0 -250
  120. package/types/generators/VadOnnx.ts +0 -231
  121. package/types/generators/VadTraditional.ts +0 -138
  122. package/types/generators/VectorStore.ts +0 -257
  123. package/types/generators/Watchdog.ts +0 -107
  124. package/types/generators/WebCrawler.ts +0 -103
  125. package/types/generators/WebRtc.ts +0 -181
  126. package/types/generators/WebSocket.ts +0 -148
  127. package/types/generators/index.ts +0 -57
  128. package/types/index.ts +0 -13
  129. package/types/subspace.ts +0 -60
  130. package/types/switch.ts +0 -51
  131. package/types/system.ts +0 -707
  132. package/utils/calc.ts +0 -126
  133. package/utils/data.ts +0 -497
  134. package/utils/event-props.ts +0 -886
  135. package/utils/id.ts +0 -80
package/types/system.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
- }