@fugood/bricks-ctor 2.24.0-beta.40

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