@molecule/api-resource-firmware 1.0.5 → 1.0.7

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 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-17T19:17:37.539Z
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?: { device_type?: string; status?: string; page?: number; limit?: number },
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?: { firmware_id?: string; status?: string; page?: number; limit?: number },
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/dist/routes.js CHANGED
@@ -20,7 +20,7 @@ const validateQuery = validateQueryRaw;
20
20
  /** Responds with a 401 Unauthorized JSON error. */
21
21
  function unauthorized(res) {
22
22
  return res.status(401).json({
23
- error: t('auth.unauthorized', undefined, { defaultValue: 'Authentication required.' }),
23
+ error: t('auth.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
24
24
  });
25
25
  }
26
26
  /** Responds with a 404 Not Found JSON error for a missing firmware version. */
@@ -32,7 +32,7 @@ function firmwareNotFound(res) {
32
32
  /** Responds with a 500 Internal Server Error JSON error. */
33
33
  function internalError(res) {
34
34
  return res.status(500).json({
35
- error: t('errors.internalServer', undefined, { defaultValue: 'Internal server error.' }),
35
+ error: t('errors.internalServer', undefined, { defaultValue: 'Internal server error' }),
36
36
  });
37
37
  }
38
38
  /** Build the firmware router. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-firmware",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
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",