Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Nov 29, 2023
1 parent dd97240 commit 3272063
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
4 changes: 4 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down Expand Up @@ -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
}
}>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
),
}),
})

Expand Down

0 comments on commit 3272063

Please sign in to comment.