diff --git a/src/lib/seam/connect/models/devices/device.ts b/src/lib/seam/connect/models/devices/device.ts index 4b4cc992..80eb4284 100644 --- a/src/lib/seam/connect/models/devices/device.ts +++ b/src/lib/seam/connect/models/devices/device.ts @@ -29,10 +29,6 @@ const common_device_error = z.object({ const error_code_description = 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.' -const common_device_warning = z.object({ - message: z.string(), -}) - const device_offline = common_device_error .extend({ error_code: z.literal('device_offline').describe(error_code_description), @@ -151,10 +147,151 @@ export const device_error = z export type DeviceError = z.infer -const device_warning = common_device_warning.extend({ - warning_code: z.string(), +const warning_code_description = + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.' + +const common_device_warning = z.object({ + message: z.string(), }) +const partial_backup_access_code_pool = common_device_warning + .extend({ + warning_code: z + .literal('partial_backup_access_code_pool') + .describe(warning_code_description), + }) + .describe('Backup access code unhealthy.') + +const many_active_backup_codes = common_device_warning + .extend({ + warning_code: z + .literal('many_active_backup_codes') + .describe(warning_code_description), + }) + .describe('Too many backup codes.') + +const salto_unknown_device_type = common_device_warning + .extend({ + warning_code: z + .literal('salto_unknown_device_type') + .describe(warning_code_description), + }) + .describe('A Salto Lock displaying an unknown device type.') + +const salto_office_mode = common_device_warning + .extend({ + warning_code: z + .literal('salto_office_mode') + .describe(warning_code_description), + }) + .describe('Lock is in Office Mode. Access Codes will not unlock doors.') + +const salto_privacy_mode = common_device_warning + .extend({ + warning_code: z + .literal('salto_privacy_mode') + .describe(warning_code_description), + }) + .describe('Lock is in Privacy Mode. Access Codes will not unlock doors.') + +const wyze_device_missing_gateway = common_device_warning + .extend({ + warning_code: z + .literal('wyze_device_missing_gateway') + .describe(warning_code_description), + }) + .describe('Wyze Lock is not connected to a gateway.') + +const functional_offline_device = common_device_warning + .extend({ + warning_code: z + .literal('functional_offline_device') + .describe(warning_code_description), + }) + .describe('Device is offline, but has some functionality available.') + +const third_party_integration_detected = common_device_warning + .extend({ + warning_code: z + .literal('third_party_integration_detected') + .describe(warning_code_description), + }) + .describe('Third-party integration detected.') + +const nest_thermostat_in_manual_eco_mode = common_device_warning + .extend({ + warning_code: z + .literal('nest_thermostat_in_manual_eco_mode') + .describe(warning_code_description), + }) + .describe('Nest thermostat in manual eco mode.') + +const ttlock_lock_gateway_unlocking_not_enabled = common_device_warning + .extend({ + warning_code: z + .literal('ttlock_lock_gateway_unlocking_not_enabled') + .describe(warning_code_description), + }) + .describe('Remote Unlock feature not enabled in settings.') + +const ttlock_weak_gateway_signal = common_device_warning + .extend({ + warning_code: z + .literal('ttlock_weak_gateway_signal') + .describe(warning_code_description), + }) + .describe('Gateway signal is weak.') + +const temperature_threshold_exceeded = common_device_warning + .extend({ + warning_code: z + .literal('temperature_threshold_exceeded') + .describe(warning_code_description), + }) + .describe('Temperature threshold exceeded.') + +const device_communication_degraded = common_device_warning + .extend({ + warning_code: z + .literal('device_communication_degraded') + .describe(warning_code_description), + }) + .describe('Device appears to be unresponsive.') + +const scheduled_maintenance_window = common_device_warning + .extend({ + warning_code: z + .literal('scheduled_maintenance_window') + .describe(warning_code_description), + }) + .describe('Scheduled maintenance window detected.') + +const device_has_flaky_connection = common_device_warning + .extend({ + warning_code: z + .literal('device_has_flaky_connection') + .describe(warning_code_description), + }) + .describe('Device has flaky connection.') + +const device_warning = z.union([ + partial_backup_access_code_pool, + many_active_backup_codes, + salto_unknown_device_type, + wyze_device_missing_gateway, + functional_offline_device, + third_party_integration_detected, + nest_thermostat_in_manual_eco_mode, + ttlock_lock_gateway_unlocking_not_enabled, + ttlock_weak_gateway_signal, + temperature_threshold_exceeded, + device_communication_degraded, + scheduled_maintenance_window, + device_has_flaky_connection, + salto_office_mode, + salto_privacy_mode, +]) + export type DeviceWarning = z.infer export const common_device_properties = z.object({ diff --git a/src/lib/seam/connect/models/events/acs/access_groups.ts b/src/lib/seam/connect/models/events/acs/access-groups.ts similarity index 100% rename from src/lib/seam/connect/models/events/acs/access_groups.ts rename to src/lib/seam/connect/models/events/acs/access-groups.ts diff --git a/src/lib/seam/connect/models/events/acs/index.ts b/src/lib/seam/connect/models/events/acs/index.ts index a36c3a51..1193a624 100644 --- a/src/lib/seam/connect/models/events/acs/index.ts +++ b/src/lib/seam/connect/models/events/acs/index.ts @@ -1,4 +1,4 @@ -import { acs_access_group_events } from './access_groups.js' +import { acs_access_group_events } from './access-groups.js' import { acs_credential_events } from './credentials.js' import { acs_encoder_events } from './encoders.js' import { acs_system_events } from './systems.js' diff --git a/src/lib/seam/connect/models/events/index.ts b/src/lib/seam/connect/models/events/index.ts index be43f822..5a1ec7b0 100644 --- a/src/lib/seam/connect/models/events/index.ts +++ b/src/lib/seam/connect/models/events/index.ts @@ -2,6 +2,7 @@ export type * from './access-codes.js' export type * from './acs/index.js' export type * from './action-attempts.js' export type * from './client-sessions.js' +export * from './common.js' export type * from './connected-accounts.js' export type * from './devices.js' export type * from './enrollment-automations.js' diff --git a/src/lib/seam/connect/models/events/seam-event.ts b/src/lib/seam/connect/models/events/seam-event.ts index 032313dd..57fa20a5 100644 --- a/src/lib/seam/connect/models/events/seam-event.ts +++ b/src/lib/seam/connect/models/events/seam-event.ts @@ -28,4 +28,14 @@ export const seam_event = z.discriminatedUnion('event_type', [ export type SeamEvent = z.infer +const event_types = seam_event.options.map( + (schema) => schema.shape.event_type.value, +) + +type HasAtLeastOneElement = T extends Array ? [E, ...E[]] : never + +export const seam_event_type = z.enum( + event_types as HasAtLeastOneElement, +) + export type SeamEventType = SeamEvent['event_type'] diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index f0ab817e..84710966 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -6292,12 +6292,222 @@ export default { description: 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.', items: { - properties: { - message: { type: 'string' }, - warning_code: { type: 'string' }, - }, - required: ['message', 'warning_code'], - type: 'object', + oneOf: [ + { + description: 'Backup access code unhealthy.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['partial_backup_access_code_pool'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Too many backup codes.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['many_active_backup_codes'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'A Salto Lock displaying an unknown device type.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['salto_unknown_device_type'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Wyze Lock is not connected to a gateway.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['wyze_device_missing_gateway'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'Device is offline, but has some functionality available.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['functional_offline_device'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Third-party integration detected.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['third_party_integration_detected'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Nest thermostat in manual eco mode.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['nest_thermostat_in_manual_eco_mode'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Remote Unlock feature not enabled in settings.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['ttlock_lock_gateway_unlocking_not_enabled'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Gateway signal is weak.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['ttlock_weak_gateway_signal'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Temperature threshold exceeded.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['temperature_threshold_exceeded'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Device appears to be unresponsive.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['device_communication_degraded'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Scheduled maintenance window detected.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['scheduled_maintenance_window'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Device has flaky connection.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['device_has_flaky_connection'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'Lock is in Office Mode. Access Codes will not unlock doors.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['salto_office_mode'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'Lock is in Privacy Mode. Access Codes will not unlock doors.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['salto_privacy_mode'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + ], }, type: 'array', }, @@ -11110,70 +11320,280 @@ export default { description: 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.', items: { - properties: { - message: { type: 'string' }, - warning_code: { type: 'string' }, - }, - required: ['message', 'warning_code'], - type: 'object', - }, - type: 'array', - }, - workspace_id: { - description: - 'Unique identifier for the Seam workspace associated with the device.', - format: 'uuid', - type: 'string', - }, - }, - required: [ - 'device_id', - 'device_type', - 'display_name', - 'capabilities_supported', - 'properties', - 'location', - 'workspace_id', - 'errors', - 'warnings', - 'created_at', - 'is_managed', - 'custom_metadata', - ], - type: 'object', - 'x-route-path': '/phones', - }, - service_health: { - properties: { - description: { type: 'string' }, - service: { type: 'string' }, - status: { enum: ['healthy', 'degraded', 'down'], type: 'string' }, - }, - required: ['service', 'status', 'description'], - type: 'object', - 'x-route-path': '/health', - }, - thermostat_schedule: { - description: - 'Represents a [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) that activates a configured [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) on a [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) at a specified starting time and deactivates the climate preset at a specified ending time.', - properties: { - climate_preset_key: { - description: - 'Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule.', - type: 'string', - }, - created_at: { - description: - 'Date and time at which the thermostat schedule was created.', - format: 'date-time', - type: 'string', - }, - device_id: { - description: 'ID of the desired thermostat device.', - format: 'uuid', - type: 'string', - }, - ends_at: { + oneOf: [ + { + description: 'Backup access code unhealthy.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['partial_backup_access_code_pool'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Too many backup codes.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['many_active_backup_codes'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'A Salto Lock displaying an unknown device type.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['salto_unknown_device_type'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Wyze Lock is not connected to a gateway.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['wyze_device_missing_gateway'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'Device is offline, but has some functionality available.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['functional_offline_device'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Third-party integration detected.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['third_party_integration_detected'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Nest thermostat in manual eco mode.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['nest_thermostat_in_manual_eco_mode'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Remote Unlock feature not enabled in settings.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['ttlock_lock_gateway_unlocking_not_enabled'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Gateway signal is weak.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['ttlock_weak_gateway_signal'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Temperature threshold exceeded.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['temperature_threshold_exceeded'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Device appears to be unresponsive.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['device_communication_degraded'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Scheduled maintenance window detected.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['scheduled_maintenance_window'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Device has flaky connection.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['device_has_flaky_connection'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'Lock is in Office Mode. Access Codes will not unlock doors.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['salto_office_mode'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'Lock is in Privacy Mode. Access Codes will not unlock doors.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['salto_privacy_mode'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + ], + }, + type: 'array', + }, + workspace_id: { + description: + 'Unique identifier for the Seam workspace associated with the device.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'device_id', + 'device_type', + 'display_name', + 'capabilities_supported', + 'properties', + 'location', + 'workspace_id', + 'errors', + 'warnings', + 'created_at', + 'is_managed', + 'custom_metadata', + ], + type: 'object', + 'x-route-path': '/phones', + }, + service_health: { + properties: { + description: { type: 'string' }, + service: { type: 'string' }, + status: { enum: ['healthy', 'degraded', 'down'], type: 'string' }, + }, + required: ['service', 'status', 'description'], + type: 'object', + 'x-route-path': '/health', + }, + thermostat_schedule: { + description: + 'Represents a [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) that activates a configured [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) on a [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) at a specified starting time and deactivates the climate preset at a specified ending time.', + properties: { + climate_preset_key: { + description: + 'Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule.', + type: 'string', + }, + created_at: { + description: + 'Date and time at which the thermostat schedule was created.', + format: 'date-time', + type: 'string', + }, + device_id: { + description: 'ID of the desired thermostat device.', + format: 'uuid', + type: 'string', + }, + 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', @@ -11982,54 +12402,264 @@ export default { 'Display name that corresponds to the manufacturer-specific terminology for the device.', type: 'string', }, - offline_access_codes_supported: { - description: - 'Indicates whether the device supports offline access codes.', - type: 'boolean', + offline_access_codes_supported: { + description: + 'Indicates whether the device supports offline access codes.', + type: 'boolean', + }, + online_access_codes_supported: { + description: + 'Indicates whether the device supports online access codes.', + type: 'boolean', + }, + }, + required: ['display_name', 'manufacturer_display_name'], + type: 'object', + }, + name: { + deprecated: true, + description: 'Name of the device.', + type: 'string', + 'x-deprecated': 'use device.display_name instead', + }, + offline_access_codes_enabled: { + description: + 'Indicates whether it is currently possible to use offline access codes for the device.', + type: 'boolean', + }, + online: { + description: 'Indicates whether the device is online.', + type: 'boolean', + }, + online_access_codes_enabled: { + description: + 'Indicates whether it is currently possible to use online access codes for the device.', + type: 'boolean', + }, + }, + required: ['name', 'online', 'model'], + type: 'object', + }, + warnings: { + description: + 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.', + items: { + oneOf: [ + { + description: 'Backup access code unhealthy.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['partial_backup_access_code_pool'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Too many backup codes.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['many_active_backup_codes'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'A Salto Lock displaying an unknown device type.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['salto_unknown_device_type'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Wyze Lock is not connected to a gateway.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['wyze_device_missing_gateway'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'Device is offline, but has some functionality available.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['functional_offline_device'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Third-party integration detected.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['third_party_integration_detected'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Nest thermostat in manual eco mode.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['nest_thermostat_in_manual_eco_mode'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Remote Unlock feature not enabled in settings.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['ttlock_lock_gateway_unlocking_not_enabled'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Gateway signal is weak.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['ttlock_weak_gateway_signal'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Temperature threshold exceeded.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['temperature_threshold_exceeded'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Device appears to be unresponsive.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['device_communication_degraded'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Scheduled maintenance window detected.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['scheduled_maintenance_window'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: 'Device has flaky connection.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['device_has_flaky_connection'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'Lock is in Office Mode. Access Codes will not unlock doors.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['salto_office_mode'], + type: 'string', + }, }, - online_access_codes_supported: { - description: - 'Indicates whether the device supports online access codes.', - type: 'boolean', + required: ['message', 'warning_code'], + type: 'object', + }, + { + description: + 'Lock is in Privacy Mode. Access Codes will not unlock doors.', + properties: { + message: { type: 'string' }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['salto_privacy_mode'], + type: 'string', + }, }, + required: ['message', 'warning_code'], + type: 'object', }, - required: ['display_name', 'manufacturer_display_name'], - type: 'object', - }, - name: { - deprecated: true, - description: 'Name of the device.', - type: 'string', - 'x-deprecated': 'use device.display_name instead', - }, - offline_access_codes_enabled: { - description: - 'Indicates whether it is currently possible to use offline access codes for the device.', - type: 'boolean', - }, - online: { - description: 'Indicates whether the device is online.', - type: 'boolean', - }, - online_access_codes_enabled: { - description: - 'Indicates whether it is currently possible to use online access codes for the device.', - type: 'boolean', - }, - }, - required: ['name', 'online', 'model'], - type: 'object', - }, - warnings: { - description: - 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.', - items: { - properties: { - message: { type: 'string' }, - warning_code: { type: 'string' }, - }, - required: ['message', 'warning_code'], - type: 'object', + ], }, type: 'array', }, @@ -21119,160 +21749,160 @@ export default { }, event_type: { enum: [ - 'device.accessory_keypad_connected', - 'device.accessory_keypad_disconnected', - 'device.added', - 'device.connected', - 'device.unmanaged.connected', - 'device.disconnected', - 'device.unmanaged.disconnected', - 'device.converted_to_unmanaged', - 'device.unmanaged.converted_to_managed', - 'device.removed', - 'device.deleted', - 'device.tampered', - 'device.low_battery', - 'device.battery_status_changed', - 'device.third_party_integration_detected', - 'device.third_party_integration_no_longer_detected', - 'device.salto.privacy_mode_activated', - 'device.salto.privacy_mode_deactivated', - 'device.connection_became_flaky', - 'device.connection_stabilized', - 'device.error.subscription_required', - 'device.error.subscription_required.resolved', 'access_code.created', 'access_code.changed', 'access_code.scheduled_on_device', 'access_code.set_on_device', - 'access_code.deleted', 'access_code.removed_from_device', - 'access_code.failed_to_set_on_device', 'access_code.delay_in_setting_on_device', - 'access_code.failed_to_remove_from_device', + 'access_code.failed_to_set_on_device', + 'access_code.deleted', 'access_code.delay_in_removing_from_device', - 'access_code.deleted_external_to_seam', + 'access_code.failed_to_remove_from_device', 'access_code.modified_external_to_seam', + 'access_code.deleted_external_to_seam', + 'access_code.backup_access_code_pulled', 'access_code.unmanaged.converted_to_managed', 'access_code.unmanaged.failed_to_convert_to_managed', 'access_code.unmanaged.created', 'access_code.unmanaged.removed', - 'lock.locked', - 'lock.unlocked', - 'lock.access_denied', - 'phone.deactivated', - 'connected_account.connected', - 'connected_account.successful_login', - 'connected_account.created', - 'connected_account.deleted', - 'connected_account.disconnected', - 'connected_account.completed_first_sync', - 'connected_account.completed_first_sync_after_reconnection', - 'connect_webview.login_succeeded', - 'connect_webview.login_failed', - 'noise_sensor.noise_threshold_triggered', - 'access_code.backup_access_code_pulled', - 'acs_system.added', 'acs_system.connected', + 'acs_system.added', 'acs_system.disconnected', - 'acs_access_group.deleted', - 'acs_user.deleted', 'acs_credential.deleted', 'acs_credential.issued', 'acs_credential.reissued', + 'acs_user.deleted', 'acs_encoder.added', 'acs_encoder.removed', - 'enrollment_automation.deleted', + 'acs_access_group.deleted', 'client_session.deleted', + 'connected_account.connected', + 'connected_account.created', + 'connected_account.successful_login', + 'connected_account.disconnected', + 'connected_account.completed_first_sync', + 'connected_account.deleted', + 'connected_account.completed_first_sync_after_reconnection', 'action_attempt.lock_door.succeeded', 'action_attempt.lock_door.failed', 'action_attempt.unlock_door.succeeded', 'action_attempt.unlock_door.failed', + 'connect_webview.login_succeeded', + 'connect_webview.login_failed', + 'device.connected', + 'device.added', + 'device.converted_to_unmanaged', + 'device.unmanaged.converted_to_managed', + 'device.unmanaged.connected', + 'device.disconnected', + 'device.unmanaged.disconnected', + 'device.tampered', + 'device.low_battery', + 'device.battery_status_changed', + 'device.removed', + 'device.deleted', + 'device.third_party_integration_detected', + 'device.third_party_integration_no_longer_detected', + 'device.salto.privacy_mode_activated', + 'device.salto.privacy_mode_deactivated', + 'device.connection_became_flaky', + 'device.connection_stabilized', + 'device.error.subscription_required', + 'device.error.subscription_required.resolved', + 'device.accessory_keypad_connected', + 'device.accessory_keypad_disconnected', + 'noise_sensor.noise_threshold_triggered', + 'lock.locked', + 'lock.unlocked', + 'lock.access_denied', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', + 'enrollment_automation.deleted', + 'phone.deactivated', ], type: 'string', }, event_types: { items: { enum: [ - 'device.accessory_keypad_connected', - 'device.accessory_keypad_disconnected', - 'device.added', - 'device.connected', - 'device.unmanaged.connected', - 'device.disconnected', - 'device.unmanaged.disconnected', - 'device.converted_to_unmanaged', - 'device.unmanaged.converted_to_managed', - 'device.removed', - 'device.deleted', - 'device.tampered', - 'device.low_battery', - 'device.battery_status_changed', - 'device.third_party_integration_detected', - 'device.third_party_integration_no_longer_detected', - 'device.salto.privacy_mode_activated', - 'device.salto.privacy_mode_deactivated', - 'device.connection_became_flaky', - 'device.connection_stabilized', - 'device.error.subscription_required', - 'device.error.subscription_required.resolved', 'access_code.created', 'access_code.changed', 'access_code.scheduled_on_device', 'access_code.set_on_device', - 'access_code.deleted', 'access_code.removed_from_device', - 'access_code.failed_to_set_on_device', 'access_code.delay_in_setting_on_device', - 'access_code.failed_to_remove_from_device', + 'access_code.failed_to_set_on_device', + 'access_code.deleted', 'access_code.delay_in_removing_from_device', - 'access_code.deleted_external_to_seam', + 'access_code.failed_to_remove_from_device', 'access_code.modified_external_to_seam', + 'access_code.deleted_external_to_seam', + 'access_code.backup_access_code_pulled', 'access_code.unmanaged.converted_to_managed', 'access_code.unmanaged.failed_to_convert_to_managed', 'access_code.unmanaged.created', 'access_code.unmanaged.removed', - 'lock.locked', - 'lock.unlocked', - 'lock.access_denied', - 'phone.deactivated', - 'connected_account.connected', - 'connected_account.successful_login', - 'connected_account.created', - 'connected_account.deleted', - 'connected_account.disconnected', - 'connected_account.completed_first_sync', - 'connected_account.completed_first_sync_after_reconnection', - 'connect_webview.login_succeeded', - 'connect_webview.login_failed', - 'noise_sensor.noise_threshold_triggered', - 'access_code.backup_access_code_pulled', - 'acs_system.added', 'acs_system.connected', + 'acs_system.added', 'acs_system.disconnected', - 'acs_access_group.deleted', - 'acs_user.deleted', 'acs_credential.deleted', 'acs_credential.issued', 'acs_credential.reissued', + 'acs_user.deleted', 'acs_encoder.added', 'acs_encoder.removed', - 'enrollment_automation.deleted', + 'acs_access_group.deleted', 'client_session.deleted', + 'connected_account.connected', + 'connected_account.created', + 'connected_account.successful_login', + 'connected_account.disconnected', + 'connected_account.completed_first_sync', + 'connected_account.deleted', + 'connected_account.completed_first_sync_after_reconnection', 'action_attempt.lock_door.succeeded', 'action_attempt.lock_door.failed', 'action_attempt.unlock_door.succeeded', 'action_attempt.unlock_door.failed', + 'connect_webview.login_succeeded', + 'connect_webview.login_failed', + 'device.connected', + 'device.added', + 'device.converted_to_unmanaged', + 'device.unmanaged.converted_to_managed', + 'device.unmanaged.connected', + 'device.disconnected', + 'device.unmanaged.disconnected', + 'device.tampered', + 'device.low_battery', + 'device.battery_status_changed', + 'device.removed', + 'device.deleted', + 'device.third_party_integration_detected', + 'device.third_party_integration_no_longer_detected', + 'device.salto.privacy_mode_activated', + 'device.salto.privacy_mode_deactivated', + 'device.connection_became_flaky', + 'device.connection_stabilized', + 'device.error.subscription_required', + 'device.error.subscription_required.resolved', + 'device.accessory_keypad_connected', + 'device.accessory_keypad_disconnected', + 'noise_sensor.noise_threshold_triggered', + 'lock.locked', + 'lock.unlocked', + 'lock.access_denied', 'thermostat.climate_preset_activated', 'thermostat.manually_adjusted', 'thermostat.temperature_threshold_exceeded', 'thermostat.temperature_threshold_no_longer_exceeded', 'thermostat.temperature_reached_set_point', + 'enrollment_automation.deleted', + 'phone.deactivated', ], type: 'string', }, diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index e4516cd3..48ba38cf 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -14456,10 +14456,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -15420,10 +15493,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -15727,10 +15873,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string is_managed: false @@ -16137,10 +16356,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string is_managed: false @@ -17540,100 +17832,61 @@ export interface Routes { acs_system_ids?: string[] | undefined access_code_id?: string | undefined access_code_ids?: string[] | undefined - event_type?: - | ( - | 'device.accessory_keypad_connected' - | 'device.accessory_keypad_disconnected' - | 'device.added' - | 'device.connected' - | 'device.unmanaged.connected' - | 'device.disconnected' - | 'device.unmanaged.disconnected' - | 'device.converted_to_unmanaged' - | 'device.unmanaged.converted_to_managed' - | 'device.removed' - | 'device.deleted' - | 'device.tampered' - | 'device.low_battery' - | 'device.battery_status_changed' - | 'device.third_party_integration_detected' - | 'device.third_party_integration_no_longer_detected' - | 'device.salto.privacy_mode_activated' - | 'device.salto.privacy_mode_deactivated' - | 'device.connection_became_flaky' - | 'device.connection_stabilized' - | 'device.error.subscription_required' - | 'device.error.subscription_required.resolved' + event_type?: + | ( | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' - | 'access_code.deleted' | 'access_code.removed_from_device' - | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' - | 'access_code.failed_to_remove_from_device' + | 'access_code.failed_to_set_on_device' + | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' - | 'access_code.deleted_external_to_seam' + | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' + | 'access_code.deleted_external_to_seam' + | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' - | 'lock.locked' - | 'lock.unlocked' - | 'lock.access_denied' - | 'phone.deactivated' - | 'connected_account.connected' - | 'connected_account.successful_login' - | 'connected_account.created' - | 'connected_account.deleted' - | 'connected_account.disconnected' - | 'connected_account.completed_first_sync' - | 'connected_account.completed_first_sync_after_reconnection' - | 'connect_webview.login_succeeded' - | 'connect_webview.login_failed' - | 'noise_sensor.noise_threshold_triggered' - | 'access_code.backup_access_code_pulled' - | 'acs_system.added' | 'acs_system.connected' + | 'acs_system.added' | 'acs_system.disconnected' - | 'acs_access_group.deleted' - | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' + | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' - | 'enrollment_automation.deleted' + | 'acs_access_group.deleted' | 'client_session.deleted' + | 'connected_account.connected' + | 'connected_account.created' + | 'connected_account.successful_login' + | 'connected_account.disconnected' + | 'connected_account.completed_first_sync' + | 'connected_account.deleted' + | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' - | 'thermostat.climate_preset_activated' - | 'thermostat.manually_adjusted' - | 'thermostat.temperature_threshold_exceeded' - | 'thermostat.temperature_threshold_no_longer_exceeded' - | 'thermostat.temperature_reached_set_point' - ) - | undefined - event_types?: - | Array< - | 'device.accessory_keypad_connected' - | 'device.accessory_keypad_disconnected' - | 'device.added' + | 'connect_webview.login_succeeded' + | 'connect_webview.login_failed' | 'device.connected' + | 'device.added' + | 'device.converted_to_unmanaged' + | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' - | 'device.converted_to_unmanaged' - | 'device.unmanaged.converted_to_managed' - | 'device.removed' - | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' + | 'device.removed' + | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' @@ -17642,58 +17895,97 @@ export interface Routes { | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' + | 'device.accessory_keypad_connected' + | 'device.accessory_keypad_disconnected' + | 'noise_sensor.noise_threshold_triggered' + | 'lock.locked' + | 'lock.unlocked' + | 'lock.access_denied' + | 'thermostat.climate_preset_activated' + | 'thermostat.manually_adjusted' + | 'thermostat.temperature_threshold_exceeded' + | 'thermostat.temperature_threshold_no_longer_exceeded' + | 'thermostat.temperature_reached_set_point' + | 'enrollment_automation.deleted' + | 'phone.deactivated' + ) + | undefined + event_types?: + | Array< | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' - | 'access_code.deleted' | 'access_code.removed_from_device' - | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' - | 'access_code.failed_to_remove_from_device' + | 'access_code.failed_to_set_on_device' + | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' - | 'access_code.deleted_external_to_seam' + | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' + | 'access_code.deleted_external_to_seam' + | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' - | 'lock.locked' - | 'lock.unlocked' - | 'lock.access_denied' - | 'phone.deactivated' - | 'connected_account.connected' - | 'connected_account.successful_login' - | 'connected_account.created' - | 'connected_account.deleted' - | 'connected_account.disconnected' - | 'connected_account.completed_first_sync' - | 'connected_account.completed_first_sync_after_reconnection' - | 'connect_webview.login_succeeded' - | 'connect_webview.login_failed' - | 'noise_sensor.noise_threshold_triggered' - | 'access_code.backup_access_code_pulled' - | 'acs_system.added' | 'acs_system.connected' + | 'acs_system.added' | 'acs_system.disconnected' - | 'acs_access_group.deleted' - | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' + | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' - | 'enrollment_automation.deleted' + | 'acs_access_group.deleted' | 'client_session.deleted' + | 'connected_account.connected' + | 'connected_account.created' + | 'connected_account.successful_login' + | 'connected_account.disconnected' + | 'connected_account.completed_first_sync' + | 'connected_account.deleted' + | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' + | 'connect_webview.login_succeeded' + | 'connect_webview.login_failed' + | 'device.connected' + | 'device.added' + | 'device.converted_to_unmanaged' + | 'device.unmanaged.converted_to_managed' + | 'device.unmanaged.connected' + | 'device.disconnected' + | 'device.unmanaged.disconnected' + | 'device.tampered' + | 'device.low_battery' + | 'device.battery_status_changed' + | 'device.removed' + | 'device.deleted' + | 'device.third_party_integration_detected' + | 'device.third_party_integration_no_longer_detected' + | 'device.salto.privacy_mode_activated' + | 'device.salto.privacy_mode_deactivated' + | 'device.connection_became_flaky' + | 'device.connection_stabilized' + | 'device.error.subscription_required' + | 'device.error.subscription_required.resolved' + | 'device.accessory_keypad_connected' + | 'device.accessory_keypad_disconnected' + | 'noise_sensor.noise_threshold_triggered' + | 'lock.locked' + | 'lock.unlocked' + | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' + | 'enrollment_automation.deleted' + | 'phone.deactivated' > | undefined connected_account_id?: string | undefined @@ -19727,10 +20019,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -20503,15 +20868,88 @@ export interface Routes { ) | { message: string - is_connected_account_error: true - error_code: string + is_connected_account_error: true + error_code: string + } + > + /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' } > - /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -21472,10 +21910,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -22252,10 +22763,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -25229,10 +25813,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -26004,15 +26661,88 @@ export interface Routes { ) | { message: string - is_connected_account_error: true - error_code: string + is_connected_account_error: true + error_code: string + } + > + /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' } > - /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -29224,10 +29954,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -29399,10 +30202,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -32226,10 +33102,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -35179,15 +36128,88 @@ export interface Routes { ) | { message: string - is_connected_account_error: true - error_code: string + is_connected_account_error: true + error_code: string + } + > + /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' } > - /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -35964,10 +36986,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -40226,10 +41321,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */ @@ -41008,10 +42176,83 @@ export interface Routes { } > /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */ - warnings: Array<{ - message: string - warning_code: string - }> + warnings: Array< + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'partial_backup_access_code_pool' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'many_active_backup_codes' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_unknown_device_type' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'wyze_device_missing_gateway' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'functional_offline_device' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'third_party_integration_detected' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'nest_thermostat_in_manual_eco_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_lock_gateway_unlocking_not_enabled' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'ttlock_weak_gateway_signal' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'temperature_threshold_exceeded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_communication_degraded' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'scheduled_maintenance_window' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'device_has_flaky_connection' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_office_mode' + } + | { + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'salto_privacy_mode' + } + > /** Date and time at which the device object was created. */ created_at: string /** Indicates whether Seam manages the device. */