@fugood/bricks-project 2.23.4 → 2.23.5-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.
Files changed (90) hide show
  1. package/compile/action-name-map.ts +14 -0
  2. package/compile/index.ts +29 -0
  3. package/package.json +2 -2
  4. package/skills/bricks-project/rules/architecture-patterns.md +7 -0
  5. package/skills/bricks-project/rules/buttress.md +9 -6
  6. package/tools/mcp-tools/huggingface.ts +113 -3
  7. package/tools/postinstall.ts +113 -28
  8. package/types/animation.ts +4 -0
  9. package/types/automation.ts +3 -0
  10. package/types/bricks/Camera.ts +33 -6
  11. package/types/bricks/GenerativeMedia.ts +5 -5
  12. package/types/bricks/Icon.ts +2 -2
  13. package/types/bricks/Image.ts +3 -3
  14. package/types/bricks/Items.ts +6 -6
  15. package/types/bricks/Lottie.ts +3 -3
  16. package/types/bricks/Maps.ts +3 -3
  17. package/types/bricks/QrCode.ts +3 -3
  18. package/types/bricks/Rect.ts +3 -3
  19. package/types/bricks/RichText.ts +2 -2
  20. package/types/bricks/Slideshow.ts +1 -1
  21. package/types/bricks/Svg.ts +2 -2
  22. package/types/bricks/Text.ts +3 -3
  23. package/types/bricks/TextInput.ts +10 -6
  24. package/types/bricks/Video.ts +3 -3
  25. package/types/bricks/VideoStreaming.ts +2 -2
  26. package/types/bricks/WebView.ts +3 -3
  27. package/types/canvas.ts +2 -0
  28. package/types/common.ts +5 -0
  29. package/types/data-calc-command.ts +2 -0
  30. package/types/data-calc.ts +1 -0
  31. package/types/data.ts +2 -0
  32. package/types/generators/AlarmClock.ts +4 -4
  33. package/types/generators/Assistant.ts +53 -8
  34. package/types/generators/BleCentral.ts +11 -3
  35. package/types/generators/BlePeripheral.ts +3 -3
  36. package/types/generators/CanvasMap.ts +3 -3
  37. package/types/generators/CastlesPay.ts +2 -2
  38. package/types/generators/DataBank.ts +29 -2
  39. package/types/generators/File.ts +62 -13
  40. package/types/generators/GraphQl.ts +2 -2
  41. package/types/generators/Http.ts +25 -6
  42. package/types/generators/HttpServer.ts +4 -4
  43. package/types/generators/Information.ts +1 -1
  44. package/types/generators/Intent.ts +7 -1
  45. package/types/generators/Iterator.ts +5 -5
  46. package/types/generators/Keyboard.ts +15 -5
  47. package/types/generators/LlmAnthropicCompat.ts +9 -3
  48. package/types/generators/LlmAppleBuiltin.ts +4 -4
  49. package/types/generators/LlmGgml.ts +63 -13
  50. package/types/generators/LlmMlx.ts +210 -0
  51. package/types/generators/LlmOnnx.ts +13 -4
  52. package/types/generators/LlmOpenAiCompat.ts +19 -3
  53. package/types/generators/LlmQualcommAiEngine.ts +29 -5
  54. package/types/generators/Mcp.ts +331 -16
  55. package/types/generators/McpServer.ts +34 -7
  56. package/types/generators/MediaFlow.ts +24 -6
  57. package/types/generators/MqttBroker.ts +9 -3
  58. package/types/generators/MqttClient.ts +10 -4
  59. package/types/generators/Question.ts +4 -4
  60. package/types/generators/RealtimeTranscription.ts +81 -10
  61. package/types/generators/RerankerGgml.ts +19 -5
  62. package/types/generators/SerialPort.ts +5 -5
  63. package/types/generators/SoundPlayer.ts +1 -1
  64. package/types/generators/SoundRecorder.ts +16 -5
  65. package/types/generators/SpeechToTextGgml.ts +27 -7
  66. package/types/generators/SpeechToTextOnnx.ts +3 -3
  67. package/types/generators/SpeechToTextPlatform.ts +3 -3
  68. package/types/generators/SqLite.ts +9 -5
  69. package/types/generators/Step.ts +2 -2
  70. package/types/generators/SttAppleBuiltin.ts +4 -4
  71. package/types/generators/Tcp.ts +3 -3
  72. package/types/generators/TcpServer.ts +5 -5
  73. package/types/generators/TextToSpeechAppleBuiltin.ts +3 -3
  74. package/types/generators/TextToSpeechGgml.ts +3 -3
  75. package/types/generators/TextToSpeechOnnx.ts +3 -3
  76. package/types/generators/TextToSpeechOpenAiLike.ts +3 -3
  77. package/types/generators/ThermalPrinter.ts +4 -4
  78. package/types/generators/Tick.ts +2 -2
  79. package/types/generators/Udp.ts +8 -3
  80. package/types/generators/VadGgml.ts +34 -5
  81. package/types/generators/VadOnnx.ts +27 -4
  82. package/types/generators/VadTraditional.ts +13 -7
  83. package/types/generators/VectorStore.ts +22 -5
  84. package/types/generators/Watchdog.ts +10 -5
  85. package/types/generators/WebCrawler.ts +3 -3
  86. package/types/generators/WebRtc.ts +14 -8
  87. package/types/generators/WebSocket.ts +4 -4
  88. package/types/generators/index.ts +1 -0
  89. package/types/subspace.ts +1 -0
  90. package/utils/event-props.ts +104 -87
@@ -209,15 +209,15 @@ Default property:
209
209
  }
210
210
  outlets?: {
211
211
  /* Brick is pressing */
212
- brickPressing?: () => Data
212
+ brickPressing?: () => Data<boolean>
213
213
  /* Brick is focusing (Use TV Device with controller) */
214
- brickFocusing?: () => Data
214
+ brickFocusing?: () => Data<boolean>
215
215
  /* Generated media URL */
216
- url?: () => Data
216
+ url?: () => Data<string>
217
217
  /* Generated media error */
218
- error?: () => Data
218
+ error?: () => Data<string>
219
219
  /* Loading state */
220
- loading?: () => Data
220
+ loading?: () => Data<boolean>
221
221
  }
222
222
  animation?: AnimationBasicEvents & {
223
223
  generativeMediaOnPress?: Animation
@@ -57,9 +57,9 @@ Default property:
57
57
  }
58
58
  outlets?: {
59
59
  /* Brick is pressing */
60
- brickPressing?: () => Data
60
+ brickPressing?: () => Data<boolean>
61
61
  /* Brick is focusing (Use TV Device with controller) */
62
- brickFocusing?: () => Data
62
+ brickFocusing?: () => Data<boolean>
63
63
  }
64
64
  animation?: AnimationBasicEvents & {
65
65
  onPress?: Animation
@@ -71,9 +71,9 @@ Default property:
71
71
  }
72
72
  outlets?: {
73
73
  /* Brick is pressing */
74
- brickPressing?: () => Data
74
+ brickPressing?: () => Data<boolean>
75
75
  /* Brick is focusing (Use TV Device with controller) */
76
- brickFocusing?: () => Data
76
+ brickFocusing?: () => Data<boolean>
77
77
  }
78
78
  animation?: AnimationBasicEvents & {
79
79
  onPress?: Animation
@@ -87,7 +87,7 @@ Default property:
87
87
  }
88
88
  }
89
89
 
90
- /* Image brick ([Tutorial](https://intercom.help/bricks-dag-inc/articles/5378576-image)) */
90
+ /* Image brick */
91
91
  export type BrickImage = Brick &
92
92
  BrickImageDef & {
93
93
  templateKey: 'BRICK_IMAGE'
@@ -411,17 +411,17 @@ Default property:
411
411
  }
412
412
  outlets?: {
413
413
  /* Catched error message */
414
- error?: () => Data
414
+ error?: () => Data<string>
415
415
  /* Current render mode */
416
- mode?: () => Data
416
+ mode?: () => Data<string>
417
417
  /* Current page index */
418
- pageIndex?: () => Data
418
+ pageIndex?: () => Data<number>
419
419
  /* Current page size */
420
- pageSize?: () => Data
420
+ pageSize?: () => Data<number>
421
421
  /* Selected item index of detail mode */
422
- selectedItemIndex?: () => Data
422
+ selectedItemIndex?: () => Data<number>
423
423
  /* Page is out of bound */
424
- pageIsOutOfBound?: () => Data
424
+ pageIsOutOfBound?: () => Data<boolean>
425
425
  }
426
426
  animation?: AnimationBasicEvents & {
427
427
  onPageRender?: Animation
@@ -120,9 +120,9 @@ Default property:
120
120
  }
121
121
  outlets?: {
122
122
  /* Brick is pressing */
123
- brickPressing?: () => Data
123
+ brickPressing?: () => Data<boolean>
124
124
  /* Brick is focusing (Use TV Device with controller) */
125
- brickFocusing?: () => Data
125
+ brickFocusing?: () => Data<boolean>
126
126
  }
127
127
  animation?: AnimationBasicEvents & {
128
128
  onPress?: Animation
@@ -137,7 +137,7 @@ Default property:
137
137
  }
138
138
  }
139
139
 
140
- /* Lottie Adobe After Effects animations brick ([Tutorial](https://intercom.help/bricks-dag-inc/articles/5378583-lottie)) */
140
+ /* Lottie Adobe After Effects animations brick */
141
141
  export type BrickLottie = Brick &
142
142
  BrickLottieDef & {
143
143
  templateKey: 'BRICK_LOTTIE'
@@ -213,9 +213,9 @@ Default property:
213
213
  }
214
214
  outlets?: {
215
215
  /* Brick is pressing */
216
- brickPressing?: () => Data
216
+ brickPressing?: () => Data<boolean>
217
217
  /* Brick is focusing (Use TV Device with controller) */
218
- brickFocusing?: () => Data
218
+ brickFocusing?: () => Data<boolean>
219
219
  }
220
220
  animation?: AnimationBasicEvents & {
221
221
  onPress?: Animation
@@ -231,7 +231,7 @@ Default property:
231
231
  }
232
232
  }
233
233
 
234
- /* Maps brick ([Tutorial](https://intercom.help/bricks-dag-inc/articles/maps)) */
234
+ /* Maps brick */
235
235
  export type BrickMaps = Brick &
236
236
  BrickMapsDef & {
237
237
  templateKey: 'BRICK_MAPS'
@@ -76,9 +76,9 @@ Default property:
76
76
  }
77
77
  outlets?: {
78
78
  /* Brick is pressing */
79
- brickPressing?: () => Data
79
+ brickPressing?: () => Data<boolean>
80
80
  /* Brick is focusing (Use TV Device with controller) */
81
- brickFocusing?: () => Data
81
+ brickFocusing?: () => Data<boolean>
82
82
  }
83
83
  animation?: AnimationBasicEvents & {
84
84
  onPress?: Animation
@@ -90,7 +90,7 @@ Default property:
90
90
  }
91
91
  }
92
92
 
93
- /* QRCode brick ([Tutorial](https://intercom.help/bricks-dag-inc/articles/5378579-qr-code)) */
93
+ /* QRCode brick */
94
94
  export type BrickQrcode = Brick &
95
95
  BrickQrcodeDef & {
96
96
  templateKey: 'BRICK_QRCODE'
@@ -74,9 +74,9 @@ Default property:
74
74
  }
75
75
  outlets?: {
76
76
  /* Brick is pressing */
77
- brickPressing?: () => Data
77
+ brickPressing?: () => Data<boolean>
78
78
  /* Brick is focusing (Use TV Device with controller) */
79
- brickFocusing?: () => Data
79
+ brickFocusing?: () => Data<boolean>
80
80
  }
81
81
  animation?: AnimationBasicEvents & {
82
82
  onPress?: Animation
@@ -88,7 +88,7 @@ Default property:
88
88
  }
89
89
  }
90
90
 
91
- /* Rect brick ([Tutorial](https://intercom.help/bricks-dag-inc/articles/5378573-rect)) */
91
+ /* Rect brick */
92
92
  export type BrickRect = Brick &
93
93
  BrickRectDef & {
94
94
  templateKey: 'BRICK_RECT'
@@ -87,9 +87,9 @@ Default property:
87
87
  }
88
88
  outlets?: {
89
89
  /* Brick is pressing */
90
- brickPressing?: () => Data
90
+ brickPressing?: () => Data<boolean>
91
91
  /* Brick is focusing (Use TV Device with controller) */
92
- brickFocusing?: () => Data
92
+ brickFocusing?: () => Data<boolean>
93
93
  }
94
94
  animation?: AnimationBasicEvents & {
95
95
  onPress?: Animation
@@ -168,7 +168,7 @@ Default property:
168
168
  }
169
169
  }
170
170
 
171
- /* Slideshow brick ([Tutorial](https://intercom.help/bricks-dag-inc/articles/5378580-slideshow)) */
171
+ /* Slideshow brick */
172
172
  export type BrickSlideshow = Brick &
173
173
  BrickSlideshowDef & {
174
174
  templateKey: 'BRICK_SLIDESHOW'
@@ -58,9 +58,9 @@ Default property:
58
58
  }
59
59
  outlets?: {
60
60
  /* Brick is pressing */
61
- brickPressing?: () => Data
61
+ brickPressing?: () => Data<boolean>
62
62
  /* Brick is focusing (Use TV Device with controller) */
63
- brickFocusing?: () => Data
63
+ brickFocusing?: () => Data<boolean>
64
64
  }
65
65
  animation?: AnimationBasicEvents & {
66
66
  onPress?: Animation
@@ -105,9 +105,9 @@ Default property:
105
105
  }
106
106
  outlets?: {
107
107
  /* Brick is pressing */
108
- brickPressing?: () => Data
108
+ brickPressing?: () => Data<boolean>
109
109
  /* Brick is focusing (Use TV Device with controller) */
110
- brickFocusing?: () => Data
110
+ brickFocusing?: () => Data<boolean>
111
111
  }
112
112
  animation?: AnimationBasicEvents & {
113
113
  onPress?: Animation
@@ -121,7 +121,7 @@ Default property:
121
121
  }
122
122
  }
123
123
 
124
- /* Text brick ([Tutorial](https://intercom.help/bricks-dag-inc/articles/5378574-text)) */
124
+ /* Text brick */
125
125
  export type BrickText = Brick &
126
126
  BrickTextDef & {
127
127
  templateKey: 'BRICK_TEXT'
@@ -186,15 +186,19 @@ Default property:
186
186
  }
187
187
  outlets?: {
188
188
  /* The raw input */
189
- rawInput?: () => Data
189
+ rawInput?: () => Data<any>
190
190
  /* The regex result */
191
- resultVariable?: () => Data
191
+ resultVariable?: () => Data<{ [key: string]: any }>
192
192
  /* Last key in */
193
- lastKey?: () => Data
193
+ lastKey?: () => Data<any>
194
194
  /* Selection of the TextInput (start, end, text) */
195
- selection?: () => Data
195
+ selection?: () => Data<{
196
+ start?: number
197
+ end?: number
198
+ text?: string
199
+ }>
196
200
  /* Selection text of the TextInput */
197
- selectionText?: () => Data
201
+ selectionText?: () => Data<string>
198
202
  }
199
203
  animation?: AnimationBasicEvents & {
200
204
  onFocus?: Animation
@@ -209,7 +213,7 @@ Default property:
209
213
  }
210
214
  }
211
215
 
212
- /* Text Input brick ([Tutorial](https://intercom.help/bricks-dag-inc/articles/5378575-text-input)) */
216
+ /* Text Input brick */
213
217
  export type BrickTextInput = Brick &
214
218
  BrickTextInputDef & {
215
219
  templateKey: 'BRICK_TEXT_INPUT'
@@ -129,9 +129,9 @@ Default property:
129
129
  }
130
130
  outlets?: {
131
131
  /* Brick is pressing */
132
- brickPressing?: () => Data
132
+ brickPressing?: () => Data<boolean>
133
133
  /* Brick is focusing (Use TV Device with controller) */
134
- brickFocusing?: () => Data
134
+ brickFocusing?: () => Data<boolean>
135
135
  }
136
136
  animation?: AnimationBasicEvents & {
137
137
  onPress?: Animation
@@ -148,7 +148,7 @@ Default property:
148
148
  }
149
149
  }
150
150
 
151
- /* Video brick ([Tutorial](https://intercom.help/bricks-dag-inc/articles/5378577-video)) */
151
+ /* Video brick */
152
152
  export type BrickVideo = Brick &
153
153
  BrickVideoDef & {
154
154
  templateKey: 'BRICK_VIDEO'
@@ -68,9 +68,9 @@ Default property:
68
68
  }
69
69
  outlets?: {
70
70
  /* Brick is pressing */
71
- brickPressing?: () => Data
71
+ brickPressing?: () => Data<boolean>
72
72
  /* Brick is focusing (Use TV Device with controller) */
73
- brickFocusing?: () => Data
73
+ brickFocusing?: () => Data<boolean>
74
74
  }
75
75
  animation?: AnimationBasicEvents & {
76
76
  onPress?: Animation
@@ -130,9 +130,9 @@ Default property:
130
130
  }
131
131
  outlets?: {
132
132
  /* The result of the query selector action */
133
- queryResult?: () => Data
133
+ queryResult?: () => Data<any>
134
134
  /* The error of the query selector action */
135
- queryError?: () => Data
135
+ queryError?: () => Data<string>
136
136
  }
137
137
  animation?: AnimationBasicEvents & {
138
138
  onLoad?: Animation
@@ -141,7 +141,7 @@ Default property:
141
141
  }
142
142
  }
143
143
 
144
- /* WebView brick ([Tutorial](https://intercom.help/bricks-dag-inc/articles/5378588-web-view)) */
144
+ /* WebView brick */
145
145
  export type BrickWebView = Brick &
146
146
  BrickWebViewDef & {
147
147
  templateKey: 'BRICK_WEBVIEW'
package/types/canvas.ts CHANGED
@@ -36,8 +36,10 @@ interface CanvasDef {
36
36
  export type Canvas = CanvasDef & {
37
37
  __typename: 'Canvas'
38
38
  id: string
39
+ alias?: string
39
40
  title?: string
40
41
  description?: string
42
+ hideShortRef?: boolean
41
43
  switches?: Array<
42
44
  SwitchDef &
43
45
  CanvasDef & {
package/types/common.ts CHANGED
@@ -6,9 +6,11 @@ import type { AutomationMap } from './automation'
6
6
  export interface Brick {
7
7
  __typename: 'Brick'
8
8
  id: string
9
+ alias?: string
9
10
  templateKey: string
10
11
  title?: string
11
12
  description?: string
13
+ hideShortRef?: boolean
12
14
  property?: {}
13
15
  events: {}
14
16
  outlets?: {}
@@ -24,9 +26,11 @@ export enum LocalSyncStrategy {
24
26
  export interface Generator {
25
27
  __typename: 'Generator'
26
28
  id: string
29
+ alias?: string
27
30
  templateKey: string
28
31
  title?: string
29
32
  description?: string
33
+ hideShortRef?: boolean
30
34
  localSyncRunMode?: LocalSyncStrategy
31
35
  property?: {}
32
36
  events: {}
@@ -121,6 +125,7 @@ export type ApplicationSettings = {
121
125
  useOpenAiApiKeySystemData?: boolean
122
126
  useGeminiApiKeySystemData?: boolean
123
127
  }
128
+ hideShortRefs?: boolean
124
129
  }
125
130
 
126
131
  export type Application = {
@@ -6,6 +6,7 @@ export interface DataCalculationData {
6
6
  __typename: 'DataCalculationData'
7
7
  title?: string
8
8
  description?: string
9
+ hideShortRef?: boolean
9
10
  data: () => Data
10
11
  inputs: Array<{
11
12
  key: 'change'
@@ -26,6 +27,7 @@ export interface DataCommand {
26
27
  id: string
27
28
  title?: string
28
29
  description?: string
30
+ hideShortRef?: boolean
29
31
  inputs: Array<{
30
32
  key: string
31
33
  source: (() => DataCalculationData | DataCommand) | any
@@ -4,6 +4,7 @@ export interface DataCalculation {
4
4
  id: string
5
5
  title?: string
6
6
  description?: string
7
+ hideShortRef?: boolean
7
8
  // Auto: Run the calculation when inputs change and allow triggers. Careful with circular dependencies!
8
9
  // Manual: Only run the calculation when manually triggered by System Action PROPERTY_BANK_COMMAND
9
10
  triggerMode?: 'auto' | 'manual'
package/types/data.ts CHANGED
@@ -17,8 +17,10 @@ interface DataDef {
17
17
  export type Data<T = any> = DataDef & {
18
18
  __typename: 'Data'
19
19
  id: string
20
+ alias?: string
20
21
  title: string
21
22
  description?: string
23
+ hideShortRef?: boolean
22
24
  metadata?: {
23
25
  linked?: Array<SubspaceID>
24
26
  linkedFrom?: SubspaceID
@@ -71,13 +71,13 @@ Default property:
71
71
  }
72
72
  outlets?: {
73
73
  /* Current time of each alarm clock trig */
74
- trigTime?: () => Data
74
+ trigTime?: () => Data<string>
75
75
  /* Current timestamp (unix time) of each alarm clock trig */
76
- trigTimestamp?: () => Data
76
+ trigTimestamp?: () => Data<string | number>
77
77
  /* Count of alarm clock trigs */
78
- trigCount?: () => Data
78
+ trigCount?: () => Data<string | number>
79
79
  /* Is alarm clock running? */
80
- running?: () => Data
80
+ running?: () => Data<boolean | string | number>
81
81
  }
82
82
  }
83
83
 
@@ -434,7 +434,7 @@ Default property:
434
434
  | DataLink
435
435
  /* Whether to cache messages */
436
436
  cacheMessages?: boolean | DataLink
437
- /* LLM Generator (Supports `LLM (GGML)` and `OpenAI LLM` generators) */
437
+ /* LLM Generator (Supports `LLM (GGML)`, `LLM (MLX)`, and `OpenAI LLM` generators) */
438
438
  llmGeneratorId?: string | DataLink | (() => Generator)
439
439
  /* LLM Live Policy. If the policy is `only-in-use`, the LLM context will be released when the assistant is not in use.
440
440
 
@@ -524,19 +524,64 @@ Default property:
524
524
  }
525
525
  outlets?: {
526
526
  /* Whether the assistant is heating up */
527
- isHeatingUp?: () => Data
527
+ isHeatingUp?: () => Data<boolean>
528
528
  /* Whether the assistant is file processing */
529
- isFileProcessing?: () => Data
529
+ isFileProcessing?: () => Data<boolean>
530
530
  /* Whether the assistant is responding */
531
- isResponding?: () => Data
531
+ isResponding?: () => Data<boolean>
532
532
  /* Whether the assistant is busy */
533
- isBusy?: () => Data
533
+ isBusy?: () => Data<boolean>
534
534
  /* Embedding files of the assistant */
535
- files?: () => Data
535
+ files?: () => Data<Array<any>>
536
536
  /* Messages of the assistant */
537
- messages?: () => Data
537
+ messages?: () => Data<
538
+ Array<{
539
+ role?: string
540
+ name?: string
541
+ content?: any
542
+ tool_call_id?: string
543
+ tool_calls?: Array<{
544
+ id?: string
545
+ type?: string
546
+ function?: {
547
+ name?: string
548
+ arguments?: string
549
+ [key: string]: any
550
+ }
551
+ [key: string]: any
552
+ }>
553
+ reasoning_content?: string
554
+ audio?: {
555
+ generating?: boolean
556
+ [key: string]: any
557
+ }
558
+ last_generated_at?: number
559
+ responding?: boolean
560
+ is_summary?: boolean
561
+ summary_created_at?: number
562
+ [key: string]: any
563
+ }>
564
+ >
538
565
  /* MCP servers status and available tools */
539
- mcpServers?: () => Data
566
+ mcpServers?: () => Data<
567
+ Array<{
568
+ generatorId?: string
569
+ generatorKey?: string
570
+ name?: string
571
+ version?: string
572
+ connected?: boolean
573
+ error?: string
574
+ resources?: Array<{
575
+ name?: string
576
+ [key: string]: any
577
+ }>
578
+ tools?: Array<{
579
+ name?: string
580
+ [key: string]: any
581
+ }>
582
+ [key: string]: any
583
+ }>
584
+ >
540
585
  }
541
586
  }
542
587
 
@@ -196,11 +196,19 @@ Default property:
196
196
  }
197
197
  outlets?: {
198
198
  /* Is scaning */
199
- isScaning?: () => Data
199
+ isScaning?: () => Data<boolean>
200
200
  /* Discovered device list */
201
- discoveredDeviceList?: () => Data
201
+ discoveredDeviceList?: () => Data<
202
+ Array<{
203
+ id?: string
204
+ name?: string
205
+ rssi?: number
206
+ advertising?: { [key: string]: any }
207
+ [key: string]: any
208
+ }>
209
+ >
202
210
  /* Error message */
203
- errorMessage?: () => Data
211
+ errorMessage?: () => Data<string>
204
212
  }
205
213
  }
206
214
 
@@ -173,11 +173,11 @@ Default property:
173
173
  events?: {}
174
174
  outlets?: {
175
175
  /* Is advertising */
176
- isAdvertising?: () => Data
176
+ isAdvertising?: () => Data<boolean>
177
177
  /* Last receive written */
178
- lastWrite?: () => Data
178
+ lastWrite?: () => Data<{ [key: string]: any }>
179
179
  /* Error message */
180
- errorMessage?: () => Data
180
+ errorMessage?: () => Data<string>
181
181
  }
182
182
  }
183
183
 
@@ -39,11 +39,11 @@ Default property:
39
39
  }
40
40
  outlets?: {
41
41
  /* Last matched trigger rule that caused canvas navigation */
42
- lastMatchedRule?: () => Data
42
+ lastMatchedRule?: () => Data<{ [key: string]: any }>
43
43
  /* Index of the last matched rule in triggerList */
44
- lastMatchedIndex?: () => Data
44
+ lastMatchedIndex?: () => Data<number>
45
45
  /* Total count of canvas navigations triggered by this generator */
46
- navigationCount?: () => Data
46
+ navigationCount?: () => Data<number>
47
47
  }
48
48
  }
49
49
 
@@ -50,9 +50,9 @@ Default property:
50
50
  }
51
51
  outlets?: {
52
52
  /* Last Transaction Result */
53
- lastTransactionResult?: () => Data
53
+ lastTransactionResult?: () => Data<{ [key: string]: any }>
54
54
  /* Last Error */
55
- lastError?: () => Data
55
+ lastError?: () => Data<string>
56
56
  }
57
57
  }
58
58
 
@@ -96,9 +96,36 @@ Default property:
96
96
  }
97
97
  outlets?: {
98
98
  /* Response for Data Bank fetch request, it will save to Data */
99
- response?: () => Data
99
+ response?: () => Data<
100
+ Array<{
101
+ __typename?: string
102
+ id?: string
103
+ createAt?: string
104
+ updateAt?: string
105
+ spaceId?: string
106
+ propertyId?: string
107
+ definition?: {
108
+ type?: string
109
+ title?: string
110
+ schema?: { [key: string]: any }
111
+ [key: string]: any
112
+ }
113
+ meta?: string
114
+ value?: any
115
+ lastUpdateHash?: string
116
+ lastUpdateNote?: string
117
+ lastUpdateKey?: {
118
+ name?: string
119
+ enable_expired?: boolean
120
+ expired_at?: any
121
+ jwt?: boolean
122
+ [key: string]: any
123
+ }
124
+ [key: string]: any
125
+ }>
126
+ >
100
127
  /* Server response error of Data Bank fetch request, it will save to Data */
101
- error?: () => Data
128
+ error?: () => Data<string>
102
129
  }
103
130
  }
104
131