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 d35dbee
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
11 changes: 9 additions & 2 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 Expand Up @@ -9717,14 +9724,14 @@ export default {
type: 'string',
},
is_sandbox: { default: false, type: 'boolean' },
name: { type: 'string' },
webview_logo_shape: {
enum: ['circle', 'square'],
type: 'string',
},
webview_primary_button_color: { type: 'string' },
workspace_name: { type: 'string' },
},
required: ['workspace_name', 'connect_partner_name'],
required: ['name', 'connect_partner_name'],
type: 'object',
},
},
Expand Down
6 changes: 5 additions & 1 deletion 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 Expand Up @@ -8900,7 +8904,7 @@ export interface Routes {
method: 'POST'
queryParams: {}
jsonBody: {
workspace_name: string
name: string
/** The name shown inside the connect webview */
connect_partner_name: string
is_sandbox?: boolean
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 d35dbee

Please sign in to comment.