@molecule/api-resource-firmware 1.0.4 → 1.0.6
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/README.md +16 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-10-
|
|
6
|
+
Generated: 2026-10-26T04:23:48.394Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/api-resource-firmware
|
|
@@ -198,7 +198,12 @@ Owner-scoped firmware list.
|
|
|
198
198
|
```typescript
|
|
199
199
|
function listFirmwareForOwner(
|
|
200
200
|
userId: string,
|
|
201
|
-
filters?: {
|
|
201
|
+
filters?: {
|
|
202
|
+
device_type?: string
|
|
203
|
+
status?: string
|
|
204
|
+
page?: number
|
|
205
|
+
limit?: number
|
|
206
|
+
},
|
|
202
207
|
): Promise<FirmwareVersionRow[]>
|
|
203
208
|
```
|
|
204
209
|
|
|
@@ -275,7 +280,12 @@ Owner-scoped rollout list.
|
|
|
275
280
|
```typescript
|
|
276
281
|
function listRolloutsForOwner(
|
|
277
282
|
userId: string,
|
|
278
|
-
filters?: {
|
|
283
|
+
filters?: {
|
|
284
|
+
firmware_id?: string
|
|
285
|
+
status?: string
|
|
286
|
+
page?: number
|
|
287
|
+
limit?: number
|
|
288
|
+
},
|
|
279
289
|
): Promise<FirmwareRolloutRow[]>
|
|
280
290
|
```
|
|
281
291
|
|
|
@@ -328,9 +338,9 @@ Allowed progress states for a firmware rollout.
|
|
|
328
338
|
```typescript
|
|
329
339
|
const rolloutStatusSchema: z.ZodEnum<{
|
|
330
340
|
pending: 'pending'
|
|
341
|
+
active: 'active'
|
|
331
342
|
completed: 'completed'
|
|
332
343
|
failed: 'failed'
|
|
333
|
-
active: 'active'
|
|
334
344
|
canceled: 'canceled'
|
|
335
345
|
}>
|
|
336
346
|
```
|
|
@@ -419,9 +429,9 @@ const listRolloutsQuerySchema: z.ZodObject<
|
|
|
419
429
|
status: z.ZodOptional<
|
|
420
430
|
z.ZodEnum<{
|
|
421
431
|
pending: 'pending'
|
|
432
|
+
active: 'active'
|
|
422
433
|
completed: 'completed'
|
|
423
434
|
failed: 'failed'
|
|
424
|
-
active: 'active'
|
|
425
435
|
canceled: 'canceled'
|
|
426
436
|
}>
|
|
427
437
|
>
|
|
@@ -441,9 +451,9 @@ const rolloutDeviceStatusSchema: z.ZodObject<
|
|
|
441
451
|
{
|
|
442
452
|
status: z.ZodEnum<{
|
|
443
453
|
pending: 'pending'
|
|
444
|
-
in_progress: 'in_progress'
|
|
445
454
|
completed: 'completed'
|
|
446
455
|
failed: 'failed'
|
|
456
|
+
in_progress: 'in_progress'
|
|
447
457
|
}>
|
|
448
458
|
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>
|
|
449
459
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/api-resource-firmware",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Owner-scoped firmware versions + OTA rollouts: draft/publish/deprecate, per-device update tasks, realtime command dispatch, device-token-authenticated status reporting. Extracted from iot-device-manager flagship.",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/api-resource-firmware",
|
|
6
6
|
"type": "module",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/express": "5.0.6",
|
|
41
|
-
"@types/node": "26.
|
|
42
|
-
"express": "5.
|
|
41
|
+
"@types/node": "26.6.5",
|
|
42
|
+
"express": "5.3.0",
|
|
43
43
|
"typescript": "6.0.3",
|
|
44
|
-
"vitest": "4.1.
|
|
45
|
-
"zod": "4.
|
|
44
|
+
"vitest": "4.1.12",
|
|
45
|
+
"zod": "4.6.7"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@molecule/api-bonds-default-express": "^1.0.1",
|