From e2d0dc52462f83c3659ddc26475647803e033cd4 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 24 Nov 2026 08:11:43 +0000 Subject: [PATCH] feat: Sync with Seam API via 9060bc976eba5e17d6b8ae3c9855a6de1f885130 --- src/lib/seam/connect/models/events/devices.ts | 32 + .../models/thermostats/thermostat-schedule.ts | 33 + src/lib/seam/connect/openapi.ts | 306 ++++++++++ src/lib/seam/connect/route-types.ts | 569 ++++++++++++++++++ 4 files changed, 940 insertions(+) diff --git a/src/lib/seam/connect/models/events/devices.ts b/src/lib/seam/connect/models/events/devices.ts index 74107561..4febd50a 100644 --- a/src/lib/seam/connect/models/events/devices.ts +++ b/src/lib/seam/connect/models/events/devices.ts @@ -1,6 +1,7 @@ import * as z from 'zod/v3' import { custom_metadata } from '../custom-metadata.js' +import { datetime } from '../datetime.js' import { temperature_controller_mode } from '../devices/temperature-controller.js' import { climate_setting } from '../thermostats/climate-preset.js' import { @@ -713,6 +714,36 @@ export type ThermostatClimatePresetActivatedEvent = z.infer< typeof thermostat_climate_preset_activated_event > +export const thermostat_schedule_climate_preset_activation_may_fail_event = + device_event + .extend({ + event_type: z.literal( + 'thermostat_schedule.climate_preset_activation_may_fail', + ), + thermostat_schedule_id: z + .string() + .uuid() + .describe( + 'ID of the thermostat schedule whose climate preset activation may fail.', + ), + thermostat_schedule_starts_at: datetime.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.', + ), + thermostat_schedule_ends_at: datetime.describe( + 'Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', + ), + }) + .extend(device_event_issue_properties).describe(` + --- + route_path: /thermostats + --- + A [thermostat](https://www.seam.co/docs/capability-guides/thermostats) may fail to activate a [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) when a [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts or ends, because the thermostat was offline shortly before the scheduled time. While the thermostat stays offline, the thermostat schedule carries a \`climate_preset_activation_may_fail\` warning until the scheduled time. +`) + +export type ThermostatScheduleClimatePresetActivationMayFailEvent = z.infer< + typeof thermostat_schedule_climate_preset_activation_may_fail_event +> + export const thermostat_manually_adjusted_method = z .enum(['seam', 'external']) .describe( @@ -1079,6 +1110,7 @@ export const device_events = [ lock_door_closed_event, thermostat_climate_preset_activated_event, thermostat_manually_adjusted_event, + thermostat_schedule_climate_preset_activation_may_fail_event, temperature_threshold_exceeded_event, temperature_threshold_no_longer_exceeded_event, temperature_reached_set_point_event, diff --git a/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts b/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts index 428385d1..470bf20a 100644 --- a/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +++ b/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts @@ -2,6 +2,34 @@ import * as z from 'zod/v3' import { datetime } from '../datetime.js' +const climate_preset_activation_may_fail_warning = z + .object({ + created_at: datetime.describe( + 'Date and time at which Seam created the warning.', + ), + message: z + .string() + .describe( + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + ), + warning_code: z + .literal('climate_preset_activation_may_fail') + .describe( + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + ), + }) + .describe( + 'Indicates that the [thermostat](https://www.seam.co/docs/capability-guides/thermostats) may fail to activate a climate preset when the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts or ends. The warning message explains the cause. Currently present while the thermostat is offline and the next start or end of the thermostat schedule is less than an hour away; it clears automatically once the thermostat is back online or that time passes.', + ) + +const thermostat_schedule_warning = z + .discriminatedUnion('warning_code', [ + climate_preset_activation_may_fail_warning, + ]) + .describe( + 'Warning associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', + ) + export const thermostat_schedule = z.object({ thermostat_schedule_id: z .string() @@ -75,6 +103,11 @@ export const thermostat_schedule = z.object({ .describe( 'Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', ), + warnings: z + .array(thermostat_schedule_warning) + .describe( + 'Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', + ), }).describe(` --- route_path: /thermostats/schedules diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index d1d303db..c53e0256 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -19727,6 +19727,49 @@ const openapi: OpenAPISpec = { format: 'uuid', type: 'string', }, + warnings: { + description: + 'Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', + items: { + description: + 'Warning associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', + discriminator: { propertyName: 'warning_code' }, + oneOf: [ + { + description: + 'Indicates that the [thermostat](https://www.seam.co/docs/capability-guides/thermostats) may fail to activate a climate preset when the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts or ends. The warning message explains the cause. Currently present while the thermostat is offline and the next start or end of the thermostat schedule is less than an hour away; it clears automatically once the thermostat is back online or that time passes.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: [ + 'climate_preset_activation_may_fail', + ], + type: 'string', + }, + }, + required: [ + 'created_at', + 'message', + 'warning_code', + ], + type: 'object', + }, + ], + }, + type: 'array', + }, workspace_id: { description: 'ID of the workspace that contains the thermostat schedule.', @@ -19744,6 +19787,7 @@ const openapi: OpenAPISpec = { 'workspace_id', 'created_at', 'errors', + 'warnings', ], type: 'object', 'x-deprecated': @@ -32273,6 +32317,224 @@ const openapi: OpenAPISpec = { type: 'object', 'x-route-path': '/thermostats', }, + { + description: + 'A [thermostat](https://www.seam.co/docs/capability-guides/thermostats) may fail to activate a [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) when a [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts or ends, because the thermostat was offline shortly before the scheduled time. While the thermostat stays offline, the thermostat schedule carries a `climate_preset_activation_may_fail` warning until the scheduled time.', + properties: { + connected_account_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the connected account, present when connected_account_id is provided.', + type: 'object', + }, + connected_account_errors: { + description: 'Errors associated with the connected account.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + connected_account_id: { + description: + 'ID of the connected account associated with the event.', + format: 'uuid', + type: 'string', + }, + connected_account_warnings: { + description: 'Warnings associated with the connected account.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + created_at: { + description: 'Date and time at which the event was created.', + format: 'date-time', + type: 'string', + }, + customer_key: { + description: + 'The customer key associated with the device, if any.', + type: 'string', + }, + device_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the device, present when device_id is provided.', + type: 'object', + }, + device_errors: { + description: 'Errors associated with the device.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + device_id: { + description: 'ID of the affected device.', + format: 'uuid', + type: 'string', + }, + device_warnings: { + description: 'Warnings associated with the device.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + event_description: { + description: + 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', + type: 'string', + }, + event_id: { + description: 'ID of the event.', + format: 'uuid', + type: 'string', + }, + event_type: { + enum: [ + 'thermostat_schedule.climate_preset_activation_may_fail', + ], + type: 'string', + }, + occurred_at: { + description: 'Date and time at which the event occurred.', + format: 'date-time', + type: 'string', + }, + thermostat_schedule_ends_at: { + description: + 'Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', + format: 'date-time', + type: 'string', + }, + thermostat_schedule_id: { + description: + 'ID of the thermostat schedule whose climate preset activation may fail.', + format: 'uuid', + type: 'string', + }, + thermostat_schedule_starts_at: { + description: + 'Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', + format: 'date-time', + type: 'string', + }, + workspace_id: { + description: 'ID of the workspace associated with the event.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'event_id', + 'workspace_id', + 'created_at', + 'occurred_at', + 'event_description', + 'device_id', + 'connected_account_id', + 'event_type', + 'thermostat_schedule_id', + 'thermostat_schedule_starts_at', + 'thermostat_schedule_ends_at', + 'connected_account_errors', + 'connected_account_warnings', + 'device_errors', + 'device_warnings', + ], + type: 'object', + 'x-route-path': '/thermostats', + }, { description: "A [thermostat's](https://www.seam.co/docs/capability-guides/thermostats) temperature reading exceeded the set [threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds).", @@ -37704,6 +37966,43 @@ const openapi: OpenAPISpec = { format: 'uuid', type: 'string', }, + warnings: { + description: + 'Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', + items: { + description: + 'Warning associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).', + discriminator: { propertyName: 'warning_code' }, + oneOf: [ + { + description: + 'Indicates that the [thermostat](https://www.seam.co/docs/capability-guides/thermostats) may fail to activate a climate preset when the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts or ends. The warning message explains the cause. Currently present while the thermostat is offline and the next start or end of the thermostat schedule is less than an hour away; it clears automatically once the thermostat is back online or that time passes.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['climate_preset_activation_may_fail'], + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + ], + }, + type: 'array', + }, workspace_id: { description: 'ID of the workspace that contains the thermostat schedule.', @@ -37721,6 +38020,7 @@ const openapi: OpenAPISpec = { 'workspace_id', 'created_at', 'errors', + 'warnings', ], type: 'object', 'x-route-path': '/thermostats/schedules', @@ -61167,6 +61467,7 @@ const openapi: OpenAPISpec = { 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', + 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', @@ -61298,6 +61599,7 @@ const openapi: OpenAPISpec = { 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', + 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', @@ -74038,6 +74340,7 @@ const openapi: OpenAPISpec = { 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', + 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', @@ -74170,6 +74473,7 @@ const openapi: OpenAPISpec = { 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', + 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', @@ -77893,6 +78197,7 @@ const openapi: OpenAPISpec = { 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', + 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', @@ -78110,6 +78415,7 @@ const openapi: OpenAPISpec = { 'lock.door_closed', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', + 'thermostat_schedule.climate_preset_activation_may_fail', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 954fbd7b..e7128f9c 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -18010,6 +18010,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -28165,6 +28174,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -60920,6 +60938,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -63581,6 +63608,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -71389,6 +71425,79 @@ export type Routes = { /** Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */ heating_set_point_fahrenheit?: (number | undefined) | undefined } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description: string + /** ID of the affected device. */ + device_id: string + /** ID of the connected account associated with the event. */ + connected_account_id: string + /** The customer key associated with the device, if any. */ + customer_key?: string | undefined + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'thermostat_schedule.climate_preset_activation_may_fail' + /** ID of the thermostat schedule whose climate preset activation may fail. */ + thermostat_schedule_id: string + /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ + thermostat_schedule_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. */ + thermostat_schedule_ends_at: string + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } | { /** ID of the event. */ event_id: string @@ -72016,6 +72125,7 @@ export type Routes = { | 'lock.door_closed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' + | 'thermostat_schedule.climate_preset_activation_may_fail' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' @@ -72141,6 +72251,7 @@ export type Routes = { | 'lock.door_closed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' + | 'thermostat_schedule.climate_preset_activation_may_fail' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' @@ -75911,6 +76022,79 @@ export type Routes = { /** Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */ heating_set_point_fahrenheit?: (number | undefined) | undefined } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description: string + /** ID of the affected device. */ + device_id: string + /** ID of the connected account associated with the event. */ + connected_account_id: string + /** The customer key associated with the device, if any. */ + customer_key?: string | undefined + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'thermostat_schedule.climate_preset_activation_may_fail' + /** ID of the thermostat schedule whose climate preset activation may fail. */ + thermostat_schedule_id: string + /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ + thermostat_schedule_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. */ + thermostat_schedule_ends_at: string + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } | { /** ID of the event. */ event_id: string @@ -80981,6 +81165,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -83323,6 +83516,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -85806,6 +86008,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -88147,6 +88358,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -100887,6 +101107,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -103228,6 +103457,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -117568,6 +117806,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -128021,6 +128268,7 @@ export type Routes = { | 'lock.door_closed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' + | 'thermostat_schedule.climate_preset_activation_may_fail' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' @@ -128146,6 +128394,7 @@ export type Routes = { | 'lock.door_closed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' + | 'thermostat_schedule.climate_preset_activation_may_fail' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' @@ -131886,6 +132135,79 @@ export type Routes = { /** Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */ heating_set_point_fahrenheit?: (number | undefined) | undefined } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description: string + /** ID of the affected device. */ + device_id: string + /** ID of the connected account associated with the event. */ + connected_account_id: string + /** The customer key associated with the device, if any. */ + customer_key?: string | undefined + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'thermostat_schedule.climate_preset_activation_may_fail' + /** ID of the thermostat schedule whose climate preset activation may fail. */ + thermostat_schedule_id: string + /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ + thermostat_schedule_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. */ + thermostat_schedule_ends_at: string + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } | { /** ID of the event. */ event_id: string @@ -135083,6 +135405,7 @@ export type Routes = { | 'lock.door_closed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' + | 'thermostat_schedule.climate_preset_activation_may_fail' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' @@ -135231,6 +135554,7 @@ export type Routes = { | 'lock.door_closed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' + | 'thermostat_schedule.climate_preset_activation_may_fail' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' @@ -138975,6 +139299,79 @@ export type Routes = { /** Temperature to which the thermostat should heat (in °F). See also [Set Points](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */ heating_set_point_fahrenheit?: (number | undefined) | undefined } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description: string + /** ID of the affected device. */ + device_id: string + /** ID of the connected account associated with the event. */ + connected_account_id: string + /** The customer key associated with the device, if any. */ + customer_key?: string | undefined + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'thermostat_schedule.climate_preset_activation_may_fail' + /** ID of the thermostat schedule whose climate preset activation may fail. */ + thermostat_schedule_id: string + /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ + thermostat_schedule_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. */ + thermostat_schedule_ends_at: string + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } | { /** ID of the event. */ event_id: string @@ -141541,6 +141938,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -176254,6 +176660,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -183830,6 +184245,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -186171,6 +186595,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -189536,6 +189969,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } } maxDuration: undefined @@ -189595,6 +190037,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } } maxDuration: undefined @@ -189642,6 +190093,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] }[] } maxDuration: undefined @@ -200027,6 +200487,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -202370,6 +202839,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -207524,6 +208002,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] } | null) | undefined /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ @@ -217599,6 +218086,79 @@ export type Routes = { heating_set_point_fahrenheit?: (number | undefined) | undefined } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description: string + /** ID of the affected device. */ + device_id: string + /** ID of the connected account associated with the event. */ + connected_account_id: string + /** The customer key associated with the device, if any. */ + customer_key?: string | undefined + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'thermostat_schedule.climate_preset_activation_may_fail' + /** ID of the thermostat schedule whose climate preset activation may fail. */ + thermostat_schedule_id: string + /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ + thermostat_schedule_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. */ + thermostat_schedule_ends_at: string + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } | { /** ID of the event. */ event_id: string @@ -219728,6 +220288,15 @@ export type Routes = { /** Date and time at which Seam created the error. */ created_at: string }[] + /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ + warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'climate_preset_activation_may_fail' + }[] }[] | undefined noise_thresholds?: