From 3272063035d2e6d62b23feb5cbb08ffdda3ea741 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Wed, 29 Nov 2023 16:27:40 +0000 Subject: [PATCH] Update via seamapi/seam-connect@cf625d5845ae2de49efec258bb4a377f4d6a407e --- src/lib/seam/connect/openapi.ts | 7 +++++++ src/lib/seam/connect/route-types.ts | 4 ++++ .../connect/unstable/models/devices/unmanaged-device.ts | 8 ++++++++ 3 files changed, 19 insertions(+) diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 3546d3a5..73629253 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -1787,6 +1787,13 @@ export default { is_managed: { enum: [false], type: 'boolean' }, properties: { properties: { + battery_level: { + description: + 'Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.', + maximum: 1, + minimum: 0, + type: 'number', + }, image_alt_text: { type: 'string' }, image_url: { type: 'string' }, manufacturer: { type: 'string' }, diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index b7ddd69f..a43ddf8d 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -3169,6 +3169,8 @@ export interface Routes { display_name: string manufacturer_display_name: string } + /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ + battery_level?: number | undefined } } } @@ -3357,6 +3359,8 @@ export interface Routes { display_name: string manufacturer_display_name: string } + /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ + battery_level?: number | undefined } }> } diff --git a/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts b/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts index 1e754665..6acece59 100644 --- a/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts +++ b/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts @@ -26,6 +26,14 @@ export const unmanaged_device = managed_device display_name: z.string(), manufacturer_display_name: z.string(), }), + battery_level: z + .number() + .min(0) + .max(1) + .optional() + .describe( + 'Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.', + ), }), })