@busy-app/busy-lib 0.2.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,12 +2,24 @@ declare type ApiKey = string;
2
2
 
3
3
  declare type ApiSemver = components["schemas"]["VersionInfo"]["api_semver"];
4
4
 
5
- declare interface AudioParams {
5
+ export declare interface AssetsDeleteParams {
6
+ appId: paths["/assets/upload"]["delete"]["parameters"]["query"]["app_id"];
7
+ }
8
+
9
+ export declare interface AssetsUploadParams {
10
+ appId: paths["/assets/upload"]["post"]["parameters"]["query"]["app_id"];
11
+ fileName: paths["/assets/upload"]["post"]["parameters"]["query"]["file"];
12
+ file: BusyFile;
13
+ }
14
+
15
+ export declare interface AudioPlayParams {
6
16
  appId: paths["/audio/play"]["post"]["parameters"]["query"]["app_id"];
7
17
  path: paths["/audio/play"]["post"]["parameters"]["query"]["path"];
8
18
  }
9
19
 
10
- declare interface AudioVolumeParams {
20
+ export declare type AudioVolumeInfo = components["schemas"]["AudioVolumeInfo"];
21
+
22
+ export declare interface AudioVolumeParams {
11
23
  volume: operations["setAudioVolume"]["parameters"]["query"]["volume"];
12
24
  }
13
25
 
@@ -24,11 +36,6 @@ declare interface BaseConfig_2 {
24
36
 
25
37
  declare type Brightness = number | "auto";
26
38
 
27
- declare interface BrightnessParams {
28
- front?: Brightness;
29
- back?: Brightness;
30
- }
31
-
32
39
  /**
33
40
  * Main library class for interacting with the Busy Bar API.
34
41
  *
@@ -36,58 +43,56 @@ declare interface BrightnessParams {
36
43
  */
37
44
  export declare class BusyBar {
38
45
  /**
39
- * Device IPv4 address.
40
- * @type {IPv4}
46
+ * Device host address (IP or mDNS).
47
+ * @type {BusyBarConfig['host']}
41
48
  * @readonly
42
49
  */
43
- readonly ip: IPv4;
44
- private apiSemver;
50
+ readonly host: BusyBarConfig["host"];
51
+ /**
52
+ * Current API semantic version.
53
+ * @type {ApiSemver}
54
+ */
55
+ apiSemver: ApiSemver;
45
56
  /**
46
57
  * Creates an instance of BUSY Bar.
47
- * Initializes the API client with the provided IPv4 address.
58
+ * Initializes the API client with the provided host address.
48
59
  *
49
- * @param {IPv4} [ip="10.0.4.20"] - The IPv4 address of the device.
50
- * @throws {Error} If the provided IP is not a valid IPv4 address.
60
+ * @param {BusyBarConfig} config - The host address of the device (IP or mDNS).
51
61
  */
52
- constructor(ip?: IPv4);
62
+ constructor(config: BusyBarConfig);
53
63
  /**
54
64
  * Retrieves the API semantic version.
55
65
  *
56
- * @returns A promise that resolves to an object containing the `api_semver` string.
66
+ * @returns {Promise<VersionInfo>} A promise that resolves to an object containing the `api_semver` string.
57
67
  */
58
- private getApiVersion;
68
+ getApiVersion(): Promise<VersionInfo>;
59
69
  /**
60
70
  * Updates the firmware.
61
71
  *
62
72
  * @param {UpdateParams} params - Parameters for the firmware update.
63
73
  * @param {UpdateParams['name']} params.name - Name for the update package.
64
74
  * @param {UpdateParams['file']} params.file - File data to upload.
65
- * @returns Result of the update operation.
75
+ * @returns {Promise<SuccessResponse>} Result of the update operation.
66
76
  */
67
- updateFirmware(params: UpdateParams): Promise<{
68
- result: string;
69
- }>;
77
+ updateFirmware(params: SystemUpdateParams): Promise<SuccessResponse>;
70
78
  /**
71
79
  * Gets the current status of the device, including system and power information.
72
80
  *
73
- * @returns Current status of the device.
81
+ * @returns {Promise<Status>} Current status of the device.
74
82
  */
75
- deviceStatus(): Promise<{
76
- system?: components["schemas"]["StatusSystem"];
77
- power?: components["schemas"]["StatusPower"];
78
- }>;
83
+ deviceStatus(): Promise<Status>;
79
84
  /**
80
85
  * Gets the current system status.
81
86
  *
82
- * @returns Current system status.
87
+ * @returns {Promise<StatusSystem>} Current system status.
83
88
  */
84
- systemStatus(): Promise<components["schemas"]["StatusSystem"]>;
89
+ systemStatus(): Promise<StatusSystem>;
85
90
  /**
86
91
  * Gets the current power status.
87
92
  *
88
- * @returns Current power status.
93
+ * @returns {Promise<StatusPower>} Current power status.
89
94
  */
90
- powerStatus(): Promise<components["schemas"]["StatusPower"]>;
95
+ powerStatus(): Promise<StatusPower>;
91
96
  /**
92
97
  * Uploads an asset to the device.
93
98
  *
@@ -95,77 +100,65 @@ export declare class BusyBar {
95
100
  * @param {UploadParams['appId']} params.appId - Application ID for organizing assets.
96
101
  * @param {UploadParams['fileName']} params.fileName - Filename for the uploaded asset.
97
102
  * @param {UploadParams['file']} params.file - File data to upload.
98
- * @returns {Promise<{ result: string }>} Result of the upload operation.
103
+ * @returns {Promise<SuccessResponse>} Result of the upload operation.
99
104
  */
100
- uploadAsset(params: UploadParams): Promise<{
101
- result: string;
102
- }>;
105
+ uploadAsset(params: AssetsUploadParams): Promise<SuccessResponse>;
103
106
  /**
104
107
  * Deletes all assets for a specific application from the device.
105
108
  *
106
109
  * @param {DeleteParams} params - Parameters for the delete.
107
110
  * @param {DeleteParams['appId']} params.appId - Application ID whose assets should be deleted.
108
- * @returns {Promise<{ result: string }>} Result of the delete operation.
111
+ * @returns {Promise<SuccessResponse>} Result of the delete operation.
109
112
  */
110
- deleteAssets(params: DeleteParams): Promise<{
111
- result: string;
112
- }>;
113
+ deleteAssets(params: AssetsDeleteParams): Promise<SuccessResponse>;
113
114
  /**
114
115
  * Draws elements on the device display.
115
116
  *
116
117
  * @param {DrawParams} params - Parameters for the draw operation.
117
118
  * @param {DrawParams['appId']} params.appId - Application ID for organizing display elements.
118
119
  * @param {DrawParams['elements'][]} params.elements - Array of display elements (text or image).
119
- * @returns {Promise<{ result: string }>} Result of the draw operation.
120
+ * @returns {Promise<SuccessResponse>} Result of the draw operation.
120
121
  */
121
- drawDisplay(params: DrawParams): Promise<{
122
- result: string;
123
- }>;
122
+ drawDisplay(params: DisplayDrawParams): Promise<SuccessResponse>;
124
123
  /**
125
124
  * Clears the device display and stops the Canvas application if running.
126
125
  *
127
- * @returns {Promise<{ result: string }>} Result of the clear operation.
126
+ * @returns {Promise<SuccessResponse>} Result of the clear operation.
128
127
  */
129
- clearDisplay(): Promise<{
130
- result: string;
131
- }>;
128
+ clearDisplay(): Promise<SuccessResponse>;
132
129
  /**
133
130
  * Plays an audio file from the assets directory.
134
131
  *
135
- * @param {AudioParams} params - Parameters for the audio playback.
136
- * @param {AudioParams['appId']} params.appId - Application ID for organizing assets.
137
- * @param {AudioParams['path']} params.path - Path to the audio file within the app's assets directory.
138
- * @returns {Promise<{ result: string }>} Result of the play operation.
132
+ * @param {AudioPlayParams} params - Parameters for the audio playback.
133
+ * @param {AudioPlayParams['appId']} params.appId - Application ID for organizing assets.
134
+ * @param {AudioPlayParams['path']} params.path - Path to the audio file within the app's assets directory.
135
+ * @returns {Promise<SuccessResponse>} Result of the play operation.
139
136
  */
140
- playSound(params: AudioParams): Promise<{
141
- result: string;
142
- }>;
137
+ playSound(params: AudioPlayParams): Promise<SuccessResponse>;
143
138
  /**
144
139
  * Stops any currently playing audio on the device.
145
140
  *
146
- * @returns {Promise<{ result: string }>} Result of the stop operation.
141
+ * @returns {Promise<SuccessResponse>} Result of the stop operation.
147
142
  */
148
- stopSound(): Promise<{
149
- result: string;
150
- }>;
143
+ stopSound(): Promise<SuccessResponse>;
151
144
  /**
152
145
  * Enables the device's Wi-Fi module.
153
146
  *
154
- * @returns {Promise<components['schemas']['SuccessResponse']>} Result of the enable operation.
147
+ * @returns {Promise<SuccessResponse>} Result of the enable operation.
155
148
  */
156
- enableWifi(): Promise<components["schemas"]["SuccessResponse"]>;
149
+ enableWifi(): Promise<SuccessResponse>;
157
150
  /**
158
151
  * Disables the device's Wi-Fi module.
159
152
  *
160
- * @returns {Promise<components['schemas']['SuccessResponse']>} Result of the disable operation.
153
+ * @returns {Promise<SuccessResponse>} Result of the disable operation.
161
154
  */
162
- disableWifi(): Promise<components["schemas"]["SuccessResponse"]>;
155
+ disableWifi(): Promise<SuccessResponse>;
163
156
  /**
164
157
  * Gets the current status of the Wi-Fi module.
165
158
  *
166
- * @returns {Promise<components['schemas']['StatusResponse']>} Current Wi-Fi status.
159
+ * @returns {Promise<WifiStatusResponse>} Current Wi-Fi status.
167
160
  */
168
- statusWifi(): Promise<components["schemas"]["StatusResponse"]>;
161
+ statusWifi(): Promise<WifiStatusResponse>;
169
162
  /**
170
163
  * Connects the device to a Wi-Fi network with the specified parameters.
171
164
  *
@@ -179,21 +172,21 @@ export declare class BusyBar {
179
172
  * @param {ConnectParams['ipConfig']['address']} [params.ipConfig.address] - Static IP address (if using "static" method).
180
173
  * @param {ConnectParams['ipConfig']['mask']} [params.ipConfig.mask] - Subnet mask (if using "static" method).
181
174
  * @param {ConnectParams['ipConfig']['gateway']} [params.ipConfig.gateway] - Gateway address (if using "static" method).
182
- * @returns {Promise<components['schemas']['SuccessResponse']>} Result of the connect operation.
175
+ * @returns {Promise<SuccessResponse>} Result of the connect operation.
183
176
  */
184
- connectWifi(params: ConnectParams): Promise<components["schemas"]["SuccessResponse"]>;
177
+ connectWifi(params: WifiConnectParams): Promise<SuccessResponse>;
185
178
  /**
186
179
  * Disconnects the device from the current Wi-Fi network.
187
180
  *
188
- * @returns {Promise<components['schemas']['SuccessResponse']>} Result of the disconnect operation.
181
+ * @returns {Promise<SuccessResponse>} Result of the disconnect operation.
189
182
  */
190
- disconnectWifi(): Promise<components["schemas"]["SuccessResponse"]>;
183
+ disconnectWifi(): Promise<SuccessResponse>;
191
184
  /**
192
185
  * Scans for available Wi-Fi networks near your device.
193
186
  *
194
- * @returns {Promise<components['schemas']['NetworkResponse']>} List of discovered networks.
187
+ * @returns {Promise<WifiNetworkResponse>} List of discovered networks.
195
188
  */
196
- networksWifi(): Promise<components["schemas"]["NetworkResponse"]>;
189
+ networksWifi(): Promise<WifiNetworkResponse>;
197
190
  /**
198
191
  * Removes the saved Wi-Fi configuration (forgets the network).
199
192
  *
@@ -206,88 +199,88 @@ export declare class BusyBar {
206
199
  * @param {UploadFileParams} params - Upload parameters:
207
200
  * @param {UploadFileParams['path']} params.path - Path where the file will be saved (e.g., "/ext/test.png").
208
201
  * @param {UploadFileParams['file']} params.file - File data to upload.
209
- * @returns {Promise<components['schemas']['SuccessResponse']>} Result of the upload operation.
202
+ * @returns {Promise<SuccessResponse>} Result of the upload operation.
210
203
  */
211
- uploadFile(params: UploadFileParams): Promise<components["schemas"]["SuccessResponse"]>;
204
+ uploadFile(params: UploadFileParams): Promise<SuccessResponse>;
212
205
  /**
213
206
  * Downloads a file from the device's internal storage.
214
207
  *
215
208
  * @param {DownloadFileParams} params - Download parameters:
216
209
  * @param {DownloadFileParams['path']} params.path - Path to the file to download (e.g., "/ext/test.png").
217
210
  * @param {DownloadFileParams['asArrayBuffer']} [params.asArrayBuffer] - If true, returns data as ArrayBuffer; otherwise, as Blob.
218
- * @returns {Promise<ArrayBuffer | Blob>} The file data.
211
+ * @returns {Promise<StorageReadResponse>} The file data.
219
212
  */
220
- downloadFile(params: DownloadFileParams): Promise<ArrayBuffer | Blob>;
213
+ downloadFile(params: DownloadFileParams): Promise<StorageReadResponse>;
221
214
  /**
222
215
  * Reads the contents of a directory (files and subdirectories) at the specified path.
223
216
  *
224
217
  * @param {ReadDirectoryParams} params - List parameters:
225
218
  * @param {ReadDirectoryParams['path']} params.path - Path to the directory to list (e.g., "/ext").
226
- * @returns {Promise<components["schemas"]["StorageList"]>} List of files and directories.
219
+ * @returns {Promise<StorageList>} List of files and directories.
227
220
  */
228
- readDirectory(params: ReadDirectoryParams): Promise<components["schemas"]["StorageList"]>;
221
+ readDirectory(params: ReadDirectoryParams): Promise<StorageList>;
229
222
  /**
230
223
  * Removes a file or a directory from the device's internal storage.
231
224
  *
232
225
  * @param {RemoveParams} params - Remove parameters:
233
226
  * @param {RemoveParams['path']} params.path - Path of the file to remove (e.g., "/ext/test.png").
234
- * @returns {Promise<components['schemas']['SuccessResponse']>} Result of the remove operation.
227
+ * @returns {Promise<SuccessResponse>} Result of the remove operation.
235
228
  */
236
- removeResource(params: RemoveParams): Promise<components["schemas"]["SuccessResponse"]>;
229
+ removeResource(params: RemoveParams): Promise<SuccessResponse>;
237
230
  /**
238
231
  * Creates a new directory in the device's internal storage.
239
232
  *
240
233
  * @param {CreateDirectoryParams} params - Directory creation parameters:
241
234
  * @param {CreateDirectoryParams['path']} params.path - Path to the new directory (e.g., "/ext/newdir").
242
- * @returns {Promise<components['schemas']['SuccessResponse']>} Result of the create operation.
235
+ * @returns {Promise<SuccessResponse>} Result of the create operation.
243
236
  */
244
- createDirectory(params: CreateDirectoryParams): Promise<components["schemas"]["SuccessResponse"]>;
237
+ createDirectory(params: CreateDirectoryParams): Promise<SuccessResponse>;
245
238
  /**
246
239
  * Gets the current display brightness settings for the device.
247
240
  *
248
- * @returns {Promise<components["schemas"]["DisplayBrightnessInfo"]>} Current brightness information for front and back panels.
241
+ * @returns {Promise<DisplayBrightnessInfo>} Current brightness information for front and back panels.
249
242
  */
250
- getDisplayBrightness(): Promise<components["schemas"]["DisplayBrightnessInfo"]>;
243
+ getDisplayBrightness(): Promise<DisplayBrightnessInfo>;
251
244
  /**
252
245
  * Sets the display brightness for the device.
253
246
  *
254
247
  * @param {BrightnessParams} params - Brightness parameters:
255
248
  * @param {BrightnessParams['front']} [params.front] - Brightness for the front panel (0-100 or "auto").
256
249
  * @param {BrightnessParams['back']} [params.back] - Brightness for the back panel (0-100 or "auto").
257
- * @returns {Promise<components["schemas"]["SuccessResponse"]>} Result of the brightness update operation.
250
+ * @returns {Promise<SuccessResponse>} Result of the brightness update operation.
258
251
  * @throws {Error} If brightness value is outside the range 0-100 or not "auto".
259
252
  */
260
- setDisplayBrightness(params: BrightnessParams): Promise<components["schemas"]["SuccessResponse"]>;
253
+ setDisplayBrightness(params: DisplayBrightnessParams): Promise<SuccessResponse>;
261
254
  /**
262
255
  * Gets the current audio volume value.
263
256
  *
264
- * @returns {Promise<components["schemas"]["AudioVolumeInfo"]>} Current audio volume (0-100).
257
+ * @returns {Promise<AudioVolumeInfo>} Current audio volume (0-100).
265
258
  */
266
- getAudioVolume(): Promise<components["schemas"]["AudioVolumeInfo"]>;
259
+ getAudioVolume(): Promise<AudioVolumeInfo>;
267
260
  /**
268
261
  * Sets the audio volume value.
269
262
  *
270
263
  * @param {AudioVolumeParams} params - Audio volume parameters:
271
264
  * @param {AudioVolumeParams['volume']} params.volume - Audio volume (number from 0 to 100).
272
- * @returns {Promise<components["schemas"]["SuccessResponse"]>} Result of the volume update operation.
265
+ * @returns {Promise<SuccessResponse>} Result of the volume update operation.
273
266
  * @throws {Error} If volume is outside the range 0-100 or request fails.
274
267
  */
275
- setAudioVolume(params: AudioVolumeParams): Promise<components["schemas"]["SuccessResponse"]>;
268
+ setAudioVolume(params: AudioVolumeParams): Promise<SuccessResponse>;
276
269
  /**
277
270
  * Gets the current HTTP API access configuration.
278
271
  *
279
- * @returns {Promise<components["schemas"]["HttpAccessInfo"]>} Current HTTP access info.
272
+ * @returns {Promise<HttpAccessInfo>} Current HTTP access info.
280
273
  */
281
- getHttpAccess(): Promise<components["schemas"]["HttpAccessInfo"]>;
274
+ getHttpAccess(): Promise<HttpAccessInfo>;
282
275
  /**
283
276
  * Sets the HTTP API access configuration.
284
277
  *
285
- * @param {HttpAccess} params - Access parameters:
286
- * @param {HttpAccess['mode']} params.mode - Access mode ("disabled", "enabled", "key").
287
- * @param {HttpAccess['key']} params.key - Access key (4-10 digits).
288
- * @returns {Promise<components["schemas"]["SuccessResponse"]>} Result of the set operation.
278
+ * @param {HttpAccessParams} params - Access parameters:
279
+ * @param {HttpAccessParams['mode']} params.mode - Access mode ("disabled", "enabled", "key").
280
+ * @param {HttpAccessParams['key']} params.key - Access key (4-10 digits).
281
+ * @returns {Promise<SuccessResponse>} Result of the set operation.
289
282
  */
290
- setHttpAccess(params: HttpAccess): Promise<components["schemas"]["SuccessResponse"]>;
283
+ setHttpAccess(params: HttpAccessParams): Promise<SuccessResponse>;
291
284
  /**
292
285
  * Sets API key for all subsequent requests.
293
286
  * @param {string} key - API key to use in "X-API-Token" header.
@@ -295,26 +288,30 @@ export declare class BusyBar {
295
288
  setApiKey(key: string): void;
296
289
  /**
297
290
  * Enables BLE module.
298
- * @returns {Promise<components["schemas"]["SuccessResponse"]>} Result of the enable operation.
291
+ * @returns {Promise<SuccessResponse>} Result of the enable operation.
299
292
  */
300
- enableBle(): Promise<components["schemas"]["SuccessResponse"]>;
293
+ enableBle(): Promise<SuccessResponse>;
301
294
  /**
302
295
  * Disables BLE module.
303
- * @returns {Promise<components["schemas"]["SuccessResponse"]>} Result of the disable operation.
296
+ * @returns {Promise<SuccessResponse>} Result of the disable operation.
304
297
  */
305
- disableBle(): Promise<components["schemas"]["SuccessResponse"]>;
298
+ disableBle(): Promise<SuccessResponse>;
306
299
  /**
307
300
  * Sends a button press.
308
301
  *
309
302
  * @param params - Button press parameters:
310
- * @param {InputKey['keyName']} params.keyName - Button key.
303
+ * @param {InputKeyParams['keyName']} params.keyName - Button key.
311
304
  * @example
312
305
  * {
313
306
  * keyName: "ok"
314
307
  * }
315
- * @returns {Promise<components["schemas"]["SuccessResponse"]>} Result of pressing the button.
308
+ * @returns {Promise<SuccessResponse>} Result of pressing the button.
316
309
  */
317
- pressButton(params: InputKey): Promise<components["schemas"]["SuccessResponse"]>;
310
+ pressButton(params: InputKeyParams): Promise<SuccessResponse>;
311
+ }
312
+
313
+ declare interface BusyBarConfig {
314
+ host: string;
318
315
  }
319
316
 
320
317
  declare type BusyFile = Buffer | Blob | File | ArrayBuffer;
@@ -642,13 +639,11 @@ declare interface components {
642
639
  pathItems: never;
643
640
  }
644
641
 
645
- declare type ConnectParams = RequireKeys<Omit<CamelizedRequest, "ipConfig"> & {
646
- ipConfig: RequiredIpConfig;
647
- }, "ssid" | "security" | "ipConfig">;
648
-
649
- export declare interface CreateDirectoryParams {
642
+ declare interface CreateDirectoryParams {
650
643
  path: operations["createStorageDir"]["parameters"]["query"]["path"];
651
644
  }
645
+ export { CreateDirectoryParams }
646
+ export { CreateDirectoryParams as StorageCreateDirectoryParams }
652
647
 
653
648
  declare type CustomElement = CustomTextElement | CustomImageElement;
654
649
 
@@ -662,10 +657,6 @@ declare type DeepCamelize<T> = T extends (...args: any[]) => any ? T : T extends
662
657
  [K in keyof T as SnakeToCamel<K & string>]: DeepCamelize<T[K]>;
663
658
  } : T;
664
659
 
665
- declare interface DeleteParams {
666
- appId: paths["/assets/upload"]["delete"]["parameters"]["query"]["app_id"];
667
- }
668
-
669
660
  declare type DeviceConfig = LocalConfig | SiteConfig;
670
661
 
671
662
  declare type DeviceConfig_2 = LocalConfig_2 | SiteConfig_2;
@@ -675,25 +666,39 @@ export declare enum DeviceScreen {
675
666
  BACK = 1
676
667
  }
677
668
 
678
- export declare interface DownloadFileParams {
679
- path: operations["readStorageFile"]["parameters"]["query"]["path"];
680
- asArrayBuffer?: boolean;
669
+ export declare type DisplayBrightnessInfo = components["schemas"]["DisplayBrightnessInfo"];
670
+
671
+ export declare interface DisplayBrightnessParams {
672
+ front?: Brightness;
673
+ back?: Brightness;
681
674
  }
682
675
 
683
- declare interface DrawParams {
676
+ export declare interface DisplayDrawParams {
684
677
  appId: paths["/display/draw"]["post"]["requestBody"]["content"]["application/json"]["app_id"];
685
678
  elements: CustomElement[];
686
679
  }
687
680
 
681
+ declare interface DownloadFileParams {
682
+ path: operations["readStorageFile"]["parameters"]["query"]["path"];
683
+ asArrayBuffer?: boolean;
684
+ }
685
+ export { DownloadFileParams }
686
+ export { DownloadFileParams as StorageDownloadFileParams }
687
+
688
+ declare type Error_2 = components["schemas"]["Error"];
689
+ export { Error_2 as Error }
690
+
688
691
  declare type ErrorListener = (payload: ErrorPayload) => void;
689
692
 
690
693
  declare interface ErrorPayload {
691
694
  code: number;
692
695
  message: string;
693
- raw: Error | CloseEvent | Event;
696
+ raw: Error_2 | CloseEvent | Event;
694
697
  }
695
698
 
696
- declare interface HttpAccess {
699
+ export declare type HttpAccessInfo = components["schemas"]["HttpAccessInfo"];
700
+
701
+ export declare interface HttpAccessParams {
697
702
  mode: operations["setHttpAccess"]["parameters"]["query"]["mode"];
698
703
  key: operations["setHttpAccess"]["parameters"]["query"]["key"];
699
704
  }
@@ -723,12 +728,10 @@ export declare class Input {
723
728
  closeWebsocket(): Promise<void>;
724
729
  }
725
730
 
726
- declare interface InputKey {
731
+ export declare interface InputKeyParams {
727
732
  keyName: KeyName;
728
733
  }
729
734
 
730
- declare type IPv4 = string;
731
-
732
735
  export declare type KeyName = operations["setInputKey"]["parameters"]["query"]["key"];
733
736
 
734
737
  export declare type KeyValue = 1 | 0;
@@ -745,8 +748,6 @@ declare interface LocalConfig_2 extends BaseConfig_2 {
745
748
 
746
749
  declare type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
747
750
 
748
- export declare type Network = components["schemas"]["Network"];
749
-
750
751
  declare interface operations {
751
752
  getVersion: {
752
753
  parameters: {
@@ -2473,13 +2474,17 @@ declare interface paths {
2473
2474
  };
2474
2475
  }
2475
2476
 
2476
- export declare interface ReadDirectoryParams {
2477
+ declare interface ReadDirectoryParams {
2477
2478
  path: operations["listStorageFiles"]["parameters"]["query"]["path"];
2478
2479
  }
2480
+ export { ReadDirectoryParams }
2481
+ export { ReadDirectoryParams as StorageReadDirectoryParams }
2479
2482
 
2480
- export declare interface RemoveParams {
2483
+ declare interface RemoveParams {
2481
2484
  path: operations["removeStorageFile"]["parameters"]["query"]["path"];
2482
2485
  }
2486
+ export { RemoveParams }
2487
+ export { RemoveParams as StorageRemoveParams }
2483
2488
 
2484
2489
  declare type RequiredIpConfig = RequireKeys<NonNullable<CamelizedRequest["ipConfig"]>, "ipMethod" | "ipType">;
2485
2490
 
@@ -2521,24 +2526,56 @@ declare interface SiteConfig_2 extends BaseConfig_2 {
2521
2526
 
2522
2527
  declare type SnakeToCamel<S extends string> = S extends `${infer Head}_${infer Tail}` ? `${Head}${Capitalize<SnakeToCamel<Tail>>}` : S;
2523
2528
 
2529
+ export declare type Status = components["schemas"]["Status"];
2530
+
2531
+ export declare type StatusPower = components["schemas"]["StatusPower"];
2532
+
2533
+ export declare type StatusSystem = components["schemas"]["StatusSystem"];
2534
+
2524
2535
  declare type StopListener = () => void;
2525
2536
 
2537
+ export declare type StorageDirElement = components["schemas"]["StorageDirElement"];
2538
+
2539
+ export declare type StorageFileElement = components["schemas"]["StorageFileElement"];
2540
+
2541
+ export declare type StorageList = components["schemas"]["StorageList"];
2542
+
2526
2543
  export declare type StorageListElement = components["schemas"]["StorageListElement"];
2527
2544
 
2528
- declare interface UpdateParams {
2545
+ export declare type StorageReadResponse = ArrayBuffer | Blob;
2546
+
2547
+ export declare type SuccessResponse = components["schemas"]["SuccessResponse"];
2548
+
2549
+ export declare interface SystemUpdateParams {
2529
2550
  name?: string;
2530
2551
  file: BusyFile;
2531
2552
  }
2532
2553
 
2533
- export declare interface UploadFileParams {
2554
+ declare interface UploadFileParams {
2534
2555
  path: operations["writeStorageFile"]["parameters"]["query"]["path"];
2535
2556
  file: BusyFile;
2536
2557
  }
2558
+ export { UploadFileParams as StorageUploadFileParams }
2559
+ export { UploadFileParams }
2537
2560
 
2538
- declare interface UploadParams {
2539
- appId: paths["/assets/upload"]["post"]["parameters"]["query"]["app_id"];
2540
- fileName: paths["/assets/upload"]["post"]["parameters"]["query"]["file"];
2541
- file: BusyFile;
2542
- }
2561
+ export declare type VersionInfo = components["schemas"]["VersionInfo"];
2562
+
2563
+ export declare type WifiConnectParams = RequireKeys<Omit<CamelizedRequest, "ipConfig"> & {
2564
+ ipConfig: RequiredIpConfig;
2565
+ }, "ssid" | "security" | "ipConfig">;
2566
+
2567
+ export declare type WifiConnectRequestConfig = components["schemas"]["ConnectRequestConfig"];
2568
+
2569
+ export declare type WifiIpMethod = components["schemas"]["WifiIpMethod"];
2570
+
2571
+ export declare type WifiIpType = components["schemas"]["WifiIpType"];
2572
+
2573
+ export declare type WifiNetwork = components["schemas"]["Network"];
2574
+
2575
+ export declare type WifiNetworkResponse = components["schemas"]["NetworkResponse"];
2576
+
2577
+ export declare type WifiSecurityMethod = components["schemas"]["WifiSecurityMethod"];
2578
+
2579
+ export declare type WifiStatusResponse = components["schemas"]["StatusResponse"];
2543
2580
 
2544
2581
  export { }