Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update via seamapi/seam-connect@deaaab851cc0188952e145d9c7c2b84feca03f89 #338

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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