Skip to content

Commit

Permalink
feat: Add unstable_is_override_allowed (#1258)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Nov 13, 2024
1 parent e9d37d7 commit 0909883
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/seam/connect/models/thermostats/thermostat-schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ export const thermostat_schedule = z
.describe(
'Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
),
unstable_is_override_allowed: z
.boolean()
.optional()
.describe(
`
---
undocumented: Unstable
---
Indicates whether a person at the thermostat can change the thermostat's settings.`,
),
ends_at: z
.string()
.datetime()
Expand Down
15 changes: 15 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4668,6 +4668,12 @@ export default {
format: 'uuid',
type: 'string',
},
unstable_is_override_allowed: {
description:
"Indicates whether a person at the thermostat can change the thermostat's settings.",
type: 'boolean',
'x-undocumented': 'Unstable',
},
},
required: [
'thermostat_schedule_id',
Expand Down Expand Up @@ -5470,6 +5476,12 @@ export default {
format: 'uuid',
type: 'string',
},
unstable_is_override_allowed: {
description:
"Indicates whether a person at the thermostat can change the thermostat's settings.",
type: 'boolean',
'x-undocumented': 'Unstable',
},
},
required: [
'thermostat_schedule_id',
Expand Down Expand Up @@ -16623,6 +16635,7 @@ export default {
'Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
type: 'string',
},
is_override_allowed: { default: false, type: 'boolean' },
max_override_period_minutes: {
default: 0,
description:
Expand Down Expand Up @@ -16884,6 +16897,7 @@ export default {
'Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
type: 'string',
},
is_override_allowed: { type: 'boolean' },
max_override_period_minutes: {
description:
"Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
Expand Down Expand Up @@ -16959,6 +16973,7 @@ export default {
'Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
type: 'string',
},
is_override_allowed: { type: 'boolean' },
max_override_period_minutes: {
description:
"Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).",
Expand Down
34 changes: 34 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11524,6 +11524,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -12398,6 +12400,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -13987,6 +13991,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -14678,6 +14684,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -15552,6 +15560,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -16243,6 +16253,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -18869,6 +18881,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -19560,6 +19574,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -24883,6 +24899,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -27491,6 +27509,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -28182,6 +28202,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -29138,6 +29160,7 @@ export interface Routes {
starts_at: string
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
is_override_allowed?: boolean | undefined
}
commonParams: {}
formData: {}
Expand All @@ -29156,6 +29179,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -29202,6 +29227,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -29237,6 +29264,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand All @@ -29263,6 +29292,7 @@ export interface Routes {
starts_at?: string | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at?: string | undefined
is_override_allowed?: boolean | undefined
}
commonParams: {}
formData: {}
Expand Down Expand Up @@ -31003,6 +31033,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down Expand Up @@ -31696,6 +31728,8 @@ export interface Routes {
max_override_period_minutes: number
/** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
starts_at: string
/** Indicates whether a person at the thermostat can change the thermostat's settings. */
unstable_is_override_allowed?: boolean | undefined
/** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
ends_at: string
/** Date and time at which the thermostat schedule was created. */
Expand Down

0 comments on commit 0909883

Please sign in to comment.