@fugood/bricks-project 2.22.6 → 2.22.9

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 (84) hide show
  1. package/api/instance.ts +37 -5
  2. package/compile/action-name-map.ts +29 -0
  3. package/compile/index.ts +2 -0
  4. package/package.json +1 -1
  5. package/tools/deploy.ts +33 -2
  6. package/tools/postinstall.ts +0 -6
  7. package/tools/pull.ts +1 -1
  8. package/types/brick-base.ts +1 -0
  9. package/types/bricks/Camera.ts +1 -0
  10. package/types/bricks/Chart.ts +1 -0
  11. package/types/bricks/GenerativeMedia.ts +17 -1
  12. package/types/bricks/Icon.ts +1 -0
  13. package/types/bricks/Image.ts +1 -0
  14. package/types/bricks/Items.ts +1 -0
  15. package/types/bricks/Lottie.ts +1 -0
  16. package/types/bricks/QrCode.ts +1 -0
  17. package/types/bricks/Rect.ts +1 -0
  18. package/types/bricks/RichText.ts +1 -0
  19. package/types/bricks/Rive.ts +1 -0
  20. package/types/bricks/Slideshow.ts +1 -0
  21. package/types/bricks/Svg.ts +1 -0
  22. package/types/bricks/Text.ts +1 -0
  23. package/types/bricks/TextInput.ts +1 -0
  24. package/types/bricks/Video.ts +1 -0
  25. package/types/bricks/VideoStreaming.ts +1 -0
  26. package/types/bricks/WebRtcStream.ts +1 -0
  27. package/types/bricks/WebView.ts +8 -1
  28. package/types/bricks/index.ts +1 -0
  29. package/types/canvas.ts +1 -0
  30. package/types/data-calc.ts +43 -0
  31. package/types/data.ts +3 -0
  32. package/types/generators/AlarmClock.ts +2 -0
  33. package/types/generators/Assistant.ts +30 -6
  34. package/types/generators/BleCentral.ts +2 -0
  35. package/types/generators/BlePeripheral.ts +2 -0
  36. package/types/generators/CanvasMap.ts +2 -0
  37. package/types/generators/CastlesPay.ts +2 -0
  38. package/types/generators/DataBank.ts +2 -0
  39. package/types/generators/File.ts +2 -0
  40. package/types/generators/GraphQl.ts +2 -0
  41. package/types/generators/Http.ts +84 -2
  42. package/types/generators/HttpServer.ts +5 -1
  43. package/types/generators/Information.ts +2 -0
  44. package/types/generators/Intent.ts +51 -0
  45. package/types/generators/Iterator.ts +2 -0
  46. package/types/generators/Keyboard.ts +2 -0
  47. package/types/generators/LlmAnthropicCompat.ts +2 -0
  48. package/types/generators/LlmGgml.ts +7 -0
  49. package/types/generators/LlmOnnx.ts +2 -0
  50. package/types/generators/LlmOpenAiCompat.ts +2 -0
  51. package/types/generators/LlmQualcommAiEngine.ts +2 -0
  52. package/types/generators/Mcp.ts +3 -1
  53. package/types/generators/McpServer.ts +8 -6
  54. package/types/generators/MediaFlow.ts +2 -0
  55. package/types/generators/MqttBroker.ts +2 -0
  56. package/types/generators/MqttClient.ts +2 -0
  57. package/types/generators/Question.ts +2 -0
  58. package/types/generators/RealtimeTranscription.ts +4 -2
  59. package/types/generators/RerankerGgml.ts +2 -0
  60. package/types/generators/SerialPort.ts +2 -0
  61. package/types/generators/SoundPlayer.ts +2 -0
  62. package/types/generators/SoundRecorder.ts +2 -0
  63. package/types/generators/SpeechToTextGgml.ts +5 -4
  64. package/types/generators/SpeechToTextOnnx.ts +2 -0
  65. package/types/generators/SpeechToTextPlatform.ts +2 -0
  66. package/types/generators/SqLite.ts +2 -0
  67. package/types/generators/Step.ts +2 -0
  68. package/types/generators/Tcp.ts +2 -0
  69. package/types/generators/TcpServer.ts +5 -1
  70. package/types/generators/TextToSpeechGgml.ts +2 -0
  71. package/types/generators/TextToSpeechOnnx.ts +2 -0
  72. package/types/generators/TextToSpeechOpenAiLike.ts +2 -0
  73. package/types/generators/ThermalPrinter.ts +2 -0
  74. package/types/generators/Tick.ts +2 -0
  75. package/types/generators/Udp.ts +2 -0
  76. package/types/generators/VadGgml.ts +4 -2
  77. package/types/generators/VectorStore.ts +2 -0
  78. package/types/generators/Watchdog.ts +2 -0
  79. package/types/generators/WebCrawler.ts +2 -0
  80. package/types/generators/WebRtc.ts +4 -2
  81. package/types/generators/WebSocket.ts +2 -0
  82. package/types/system.ts +1 -0
  83. package/utils/data.ts +1 -0
  84. package/utils/event-props.ts +9 -0
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -10,8 +12,86 @@ import type {
10
12
  } from '../common'
11
13
 
12
14
  /* Run HTTP request with defined properties */
13
- export type GeneratorHTTPActionRunRequest = Action & {
15
+ export type GeneratorHTTPActionRunRequest = ActionWithParams & {
14
16
  __actionName: 'GENERATOR_HTTP_RUN_REQUEST'
17
+ params?: Array<
18
+ | {
19
+ input: 'url'
20
+ value?: string | DataLink | EventProperty
21
+ mapping?: string
22
+ }
23
+ | {
24
+ input: 'method'
25
+ value?:
26
+ | 'GET'
27
+ | 'POST'
28
+ | 'PUT'
29
+ | 'DELETE'
30
+ | 'HEAD'
31
+ | 'PATCH'
32
+ | 'OPTIONS'
33
+ | 'CONNECT'
34
+ | 'TRACE'
35
+ | DataLink
36
+ | EventProperty
37
+ mapping?: string
38
+ }
39
+ | {
40
+ input: 'headers'
41
+ value?: {} | DataLink | EventProperty
42
+ mapping?: string
43
+ }
44
+ | {
45
+ input: 'body'
46
+ value?: {} | DataLink | EventProperty
47
+ mapping?: string
48
+ }
49
+ | {
50
+ input: 'timeout'
51
+ value?: number | DataLink | EventProperty
52
+ mapping?: string
53
+ }
54
+ | {
55
+ input: 'mode'
56
+ value?: 'same-origin' | 'no-cors' | 'cors' | DataLink | EventProperty
57
+ mapping?: string
58
+ }
59
+ | {
60
+ input: 'credentials'
61
+ value?: 'include' | 'same-origin' | 'omit' | DataLink | EventProperty
62
+ mapping?: string
63
+ }
64
+ | {
65
+ input: 'redirect'
66
+ value?: 'manual' | 'follow' | 'error' | DataLink | EventProperty
67
+ mapping?: string
68
+ }
69
+ | {
70
+ input: 'referrer'
71
+ value?: 'no-referrer' | 'client' | DataLink | EventProperty
72
+ mapping?: string
73
+ }
74
+ | {
75
+ input: 'resType'
76
+ value?: 'json' | 'text' | 'xml' | 'csv' | DataLink | EventProperty
77
+ mapping?: string
78
+ }
79
+ | {
80
+ input: 'resSelector'
81
+ value?: string | DataLink | EventProperty
82
+ mapping?: string
83
+ }
84
+ | {
85
+ input: 'eventStream'
86
+ value?: boolean | DataLink | EventProperty
87
+ mapping?: string
88
+ }
89
+ | {
90
+ input: 'eventName'
91
+ value?: string | DataLink | EventProperty
92
+ mapping?: string
93
+ }
94
+ >
15
95
  }
16
96
 
17
97
  /* Abort HTTP request or SSE */
@@ -63,9 +143,11 @@ Default property:
63
143
  referrer?: 'no-referrer' | 'client' | DataLink
64
144
  /* HTTP request body, it will transform depends on `headers.Content-Type` (`application/json`, `application/x-www-form-urlencoded` or `multipart/form-data`)
65
145
  The multipart schema like `{ file: { uri: File, type: File MIME, name: File Name }, field: "value" }` */
66
- body?: any
146
+ body?: {} | DataLink
67
147
  /* HTTP response type */
68
148
  resType?: 'json' | 'text' | 'xml' | 'csv' | DataLink
149
+ /* Response selector path to extract specific data from parsed response (e.g., "data.items" for JSON, "root.element" for XML) */
150
+ resSelector?: string | DataLink
69
151
  /* Receive event stream (SSE) */
70
152
  eventStream?: boolean | DataLink
71
153
  /* Event name to listen on SSE */
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -132,6 +134,8 @@ Default property:
132
134
  onError?: Array<EventAction>
133
135
  }
134
136
  outlets?: {
137
+ /* Server is listening */
138
+ isListening?: () => Data
135
139
  /* Query of request */
136
140
  requestQuery?: () => Data
137
141
  /* Body of request */
@@ -155,7 +159,7 @@ export type GeneratorHTTPServer = Generator &
155
159
  | SwitchCondData
156
160
  | {
157
161
  __typename: 'SwitchCondInnerStateOutlet'
158
- outlet: 'requestQuery' | 'requestBody' | 'clientAddress'
162
+ outlet: 'isListening' | 'requestQuery' | 'requestBody' | 'clientAddress'
159
163
  value: any
160
164
  }
161
165
  }>
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -51,6 +53,53 @@ export type GeneratorIntentActionSendIntent = ActionWithParams & {
51
53
  >
52
54
  }
53
55
 
56
+ /* Start intent service */
57
+ export type GeneratorIntentActionStartService = ActionWithParams & {
58
+ __actionName: 'GENERATOR_INTENT_START_SERVICE'
59
+ params?: Array<
60
+ | {
61
+ input: 'action'
62
+ value?: string | DataLink | EventProperty
63
+ mapping?: string
64
+ }
65
+ | {
66
+ input: 'data'
67
+ value?: string | DataLink | EventProperty
68
+ mapping?: string
69
+ }
70
+ | {
71
+ input: 'type'
72
+ value?: string | DataLink | EventProperty
73
+ mapping?: string
74
+ }
75
+ | {
76
+ input: 'extra'
77
+ value?: {} | DataLink | EventProperty
78
+ mapping?: string
79
+ }
80
+ | {
81
+ input: 'className'
82
+ value?: string | DataLink | EventProperty
83
+ mapping?: string
84
+ }
85
+ | {
86
+ input: 'packageName'
87
+ value?: string | DataLink | EventProperty
88
+ mapping?: string
89
+ }
90
+ | {
91
+ input: 'category'
92
+ value?: string | DataLink | EventProperty
93
+ mapping?: string
94
+ }
95
+ | {
96
+ input: 'foreground'
97
+ value?: boolean | DataLink | EventProperty
98
+ mapping?: string
99
+ }
100
+ >
101
+ }
102
+
54
103
  interface GeneratorIntentDef {
55
104
  /*
56
105
  Default property:
@@ -71,6 +120,8 @@ Default property:
71
120
  packageName?: string | DataLink
72
121
  /* Intent category */
73
122
  category?: string | DataLink
123
+ /* Intent start foreground service */
124
+ foregroundService?: boolean | DataLink
74
125
  }
75
126
  events?: {
76
127
  /* On intent return a result trigger */
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -382,6 +384,11 @@ export type GeneratorLLMActionStopCompletion = Action & {
382
384
  __actionName: 'GENERATOR_LLM_STOP_COMPLETION'
383
385
  }
384
386
 
387
+ /* Clear KV cache */
388
+ export type GeneratorLLMActionClearCache = Action & {
389
+ __actionName: 'GENERATOR_LLM_CLEAR_CACHE'
390
+ }
391
+
385
392
  /* Clear downloaded models & current jobs */
386
393
  export type GeneratorLLMActionClearDownload = Action & {
387
394
  __actionName: 'GENERATOR_LLM_CLEAR_DOWNLOAD'
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -167,7 +169,7 @@ Default property:
167
169
  /* Bearer token for authentication */
168
170
  bearerToken?: string | DataLink
169
171
  /* Generator MCP Server ID for direct link */
170
- generatorId?: string | DataLink
172
+ generatorId?: string | DataLink | (() => Generator)
171
173
  /* Application-scoped key of Generator MCP Server for direct link (If ID is not provided) */
172
174
  generatorKey?: string | DataLink
173
175
  /* Name of the MCP client */
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -67,7 +69,7 @@ Default property:
67
69
  dataChangeConfig?:
68
70
  | DataLink
69
71
  | {
70
- target?: string | DataLink
72
+ target?: string | DataLink | (() => Data)
71
73
  timeout?: number | DataLink
72
74
  additionalParams?: {} | DataLink
73
75
  }
@@ -80,7 +82,7 @@ Default property:
80
82
  | Array<
81
83
  | DataLink
82
84
  | {
83
- handler?: string | DataLink
85
+ handler?: string | DataLink | (() => Generator)
84
86
  varName?: string | DataLink
85
87
  }
86
88
  >
@@ -113,7 +115,7 @@ Default property:
113
115
  dataChangeConfig?:
114
116
  | DataLink
115
117
  | {
116
- target?: string | DataLink
118
+ target?: string | DataLink | (() => Data)
117
119
  timeout?: number | DataLink
118
120
  additionalParams?: {} | DataLink
119
121
  }
@@ -126,7 +128,7 @@ Default property:
126
128
  | Array<
127
129
  | DataLink
128
130
  | {
129
- handler?: string | DataLink
131
+ handler?: string | DataLink | (() => Generator)
130
132
  varName?: string | DataLink
131
133
  }
132
134
  >
@@ -159,7 +161,7 @@ Default property:
159
161
  dataChangeConfig?:
160
162
  | DataLink
161
163
  | {
162
- target?: string | DataLink
164
+ target?: string | DataLink | (() => Data)
163
165
  timeout?: number | DataLink
164
166
  additionalParams?: {} | DataLink
165
167
  }
@@ -172,7 +174,7 @@ Default property:
172
174
  | Array<
173
175
  | DataLink
174
176
  | {
175
- handler?: string | DataLink
177
+ handler?: string | DataLink | (() => Generator)
176
178
  varName?: string | DataLink
177
179
  }
178
180
  >
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -56,11 +58,11 @@ Default property:
56
58
  */
57
59
  property?: {
58
60
  /* STT Generator for Whisper context */
59
- sttGeneratorId?: string | DataLink
61
+ sttGeneratorId?: string | DataLink | (() => Generator)
60
62
  /* STT Live Policy. If the policy is `only-in-use`, the STT context will be released when not in use. */
61
63
  sttLivePolicy?: 'only-in-use' | 'manual' | DataLink
62
64
  /* VAD Inference Generator for voice activity detection */
63
- vadInferenceGeneratorId?: string | DataLink
65
+ vadInferenceGeneratorId?: string | DataLink | (() => Generator)
64
66
  /* VAD Inference Live Policy. If the policy is `only-in-use`, the VAD Inference context will be released when not in use. */
65
67
  vadInferenceLivePolicy?: 'only-in-use' | 'manual' | DataLink
66
68
  /* Enable VAD (Voice Activity Detection) */
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -216,7 +218,7 @@ Default property:
216
218
  | 'medium-q5_0'
217
219
  | 'medium-q8_0'
218
220
  | 'medium.en'
219
- | 'medium.en-q5_1'
221
+ | 'medium.en-q5_0'
220
222
  | 'medium.en-q8_0'
221
223
  | 'large-v1'
222
224
  | 'large-v2'
@@ -224,15 +226,14 @@ Default property:
224
226
  | 'large-v2-q8_0'
225
227
  | 'large-v3'
226
228
  | 'large-v3-q5_0'
227
- | 'large-v3-q8_0'
228
229
  | 'large-v3-turbo'
229
230
  | 'large-v3-turbo-q5_0'
230
231
  | 'large-v3-turbo-q8_0'
231
232
  | 'small.en-tdrz'
232
- | 'small.en-tdrz-q5_0'
233
+ | 'small.en-tdrz-q5_1'
233
234
  | 'small.en-tdrz-q8_0'
234
235
  | 'distil-small.en'
235
- | 'distil-small.en-q5_0'
236
+ | 'distil-small.en-q5_1'
236
237
  | 'distil-small.en-q8_0'
237
238
  | 'distil-medium.en'
238
239
  | 'distil-medium.en-q5_0'
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -103,6 +105,8 @@ Default property:
103
105
  onError?: Array<EventAction>
104
106
  }
105
107
  outlets?: {
108
+ /* Server is listening */
109
+ isListening?: () => Data
106
110
  /* Is server started */
107
111
  started?: () => Data
108
112
  /* Accepted connections */
@@ -128,7 +132,7 @@ export type GeneratorTCPServer = Generator &
128
132
  | SwitchCondData
129
133
  | {
130
134
  __typename: 'SwitchCondInnerStateOutlet'
131
- outlet: 'started' | 'connections' | 'lastData' | 'errorMessage'
135
+ outlet: 'isListening' | 'started' | 'connections' | 'lastData' | 'errorMessage'
132
136
  value: any
133
137
  }
134
138
  }>
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,
@@ -1,6 +1,8 @@
1
+ /* Auto generated by build script */
1
2
  import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
2
3
  import type { Data, DataLink } from '../data'
3
4
  import type {
5
+ Brick,
4
6
  Generator,
5
7
  EventAction,
6
8
  ActionWithDataParams,