diff --git a/package-lock.json b/package-lock.json index 6db19fd3..704a47e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@seamapi/types", - "version": "1.363.1", + "version": "1.365.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@seamapi/types", - "version": "1.363.1", + "version": "1.365.0", "license": "MIT", "devDependencies": { "@seamapi/blueprint": "^0.37.1", diff --git a/package.json b/package.json index a0c82cec..1b44010d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@seamapi/types", - "version": "1.363.1", + "version": "1.365.0", "description": "TypeScript types for the Seam API.", "type": "module", "main": "index.js", diff --git a/src/lib/seam/connect/internal/schemas.ts b/src/lib/seam/connect/internal/schemas.ts index ce3a6b9d..5d27726e 100644 --- a/src/lib/seam/connect/internal/schemas.ts +++ b/src/lib/seam/connect/internal/schemas.ts @@ -34,6 +34,8 @@ export { seam_event as event, seam_event_type as event_type, fan_mode_setting, + geolocation, + location, lock_device_type, access_code as managed_access_code, device as managed_device, diff --git a/src/lib/seam/connect/models/access-codes/managed-access-code.ts b/src/lib/seam/connect/models/access-codes/managed-access-code.ts index 38455670..1bab685a 100644 --- a/src/lib/seam/connect/models/access-codes/managed-access-code.ts +++ b/src/lib/seam/connect/models/access-codes/managed-access-code.ts @@ -137,6 +137,14 @@ const august_device_slots_full = common_access_code_error }) .describe('All access code slots on the device are full.') +const august_lock_temporarily_offline_error = common_access_code_error + .extend({ + error_code: z + .literal('august_lock_temporarily_offline') + .describe(error_code_description), + }) + .describe('August lock is temporarily offline.') + const august_lock_missing_keypad = common_access_code_error .extend({ error_code: z @@ -145,10 +153,10 @@ const august_lock_missing_keypad = common_access_code_error }) .describe('August lock is missing a keypad.') -const salto_site_user_not_subscribed = common_access_code_error +const salto_ks_user_not_subscribed = common_access_code_error .extend({ error_code: z - .literal('salto_site_user_not_subscribed') + .literal('salto_ks_user_not_subscribed') .describe(error_code_description), }) .describe('Salto site user is not subscribed.') @@ -169,9 +177,42 @@ const hubitat_no_free_positions_available = common_access_code_error }) .describe('No free positions available on the device.') +const smartthings_no_free_slots_available = common_access_code_error + .extend({ + error_code: z + .literal('smartthings_no_free_slots_available') + .describe(error_code_description), + }) + .describe('No free slots available on the device.') + +const wyze_duplicate_code_name = common_access_code_error + .extend({ + error_code: z + .literal('wyze_duplicate_code_name') + .describe(error_code_description), + }) + .describe('Duplicate access code name detected.') + +const wyze_potential_duplicate_code = common_access_code_error + .extend({ + error_code: z + .literal('wyze_potential_duplicate_code') + .describe(error_code_description), + }) + .describe('Potential duplicate access code detected.') + +const dormakaba_oracode_no_valid_user_level = common_access_code_error + .extend({ + error_code: z + .literal('dormakaba_oracode_no_valid_user_level') + .describe(error_code_description), + }) + .describe('No valid user level for Oracode.') + const access_code_error = z.discriminatedUnion('error_code', [ smartthings_failed_to_set_access_code_error, smartthings_failed_to_set_after_multiple_retries, + smartthings_no_free_slots_available, failed_to_set_on_device, failed_to_remove_from_device, duplicate_code_on_device, @@ -186,18 +227,25 @@ const access_code_error = z.discriminatedUnion('error_code', [ august_device_programming_delay_error, august_device_slots_full, august_lock_missing_keypad, - salto_site_user_not_subscribed, + august_lock_temporarily_offline_error, + salto_ks_user_not_subscribed, hubitat_device_programming_delay, hubitat_no_free_positions_available, + wyze_duplicate_code_name, + wyze_potential_duplicate_code, + dormakaba_oracode_no_valid_user_level, ]) export type AccessCodeError = z.infer const access_code_error_map = z.object({ - smartthings_failed_to_set_access_code_error: + smartthings_failed_to_set_access_code: smartthings_failed_to_set_access_code_error.optional().nullable(), smartthings_failed_to_set_after_multiple_retries: smartthings_failed_to_set_after_multiple_retries.optional().nullable(), + smartthings_no_free_slots_available: smartthings_no_free_slots_available + .optional() + .nullable(), failed_to_set_on_device: failed_to_set_on_device.optional().nullable(), failed_to_remove_from_device: failed_to_remove_from_device .optional() @@ -224,12 +272,15 @@ const access_code_error_map = z.object({ august_lock_invalid_code_length: august_lock_invalid_code_length .optional() .nullable(), - august_device_programming_delay_error: august_device_programming_delay_error + august_device_programming_delay: august_device_programming_delay_error + .optional() + .nullable(), + august_lock_temporarily_offline: august_lock_temporarily_offline_error .optional() .nullable(), august_device_slots_full: august_device_slots_full.optional().nullable(), august_lock_missing_keypad: august_lock_missing_keypad.optional().nullable(), - salto_site_user_not_subscribed: salto_site_user_not_subscribed + salto_ks_user_not_subscribed: salto_ks_user_not_subscribed .optional() .nullable(), hubitat_device_programming_delay: hubitat_device_programming_delay @@ -238,6 +289,13 @@ const access_code_error_map = z.object({ hubitat_no_free_positions_available: hubitat_no_free_positions_available .optional() .nullable(), + wyze_duplicate_code_name: wyze_duplicate_code_name.optional().nullable(), + wyze_potential_duplicate_code: wyze_potential_duplicate_code + .optional() + .nullable(), + dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level + .optional() + .nullable(), }) export type AccessCodeErrorMap = z.infer @@ -266,6 +324,14 @@ const august_device_programming_delay_warning = common_access_code_warning }) .describe('Access code has not yet been fully moved to the device.') +const august_lock_temporarily_offline_warning = common_access_code_warning + .extend({ + warning_code: z + .literal('august_lock_temporarily_offline') + .describe(error_code_description), + }) + .describe('August lock is temporarily offline.') + const code_modified_external_to_seam_warning = common_access_code_warning .extend({ warning_code: z @@ -292,14 +358,6 @@ const schlage_creation_outage = common_access_code_warning }) .describe('Received an error when attempting to create this code.') -const salto_office_mode = common_access_code_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 delay_in_setting_on_device = common_access_code_warning .extend({ warning_code: z @@ -354,12 +412,12 @@ const access_code_warning = z.discriminatedUnion('warning_code', [ smartthings_failed_to_set_access_code_warning, schlage_detected_duplicate, schlage_creation_outage, - salto_office_mode, code_modified_external_to_seam_warning, delay_in_setting_on_device, delay_in_removing_from_device, third_party_integration_detected, august_device_programming_delay_warning, + august_lock_temporarily_offline_warning, igloo_algopin_must_be_used_within_24_hours, management_transferred, kwikset_unable_to_confirm_code_warning, @@ -368,11 +426,10 @@ const access_code_warning = z.discriminatedUnion('warning_code', [ export type AccessCodeWarning = z.infer const access_code_warning_map = z.object({ - smartthings_failed_to_set_access_code_warning: + smartthings_failed_to_set_access_code: smartthings_failed_to_set_access_code_warning.optional().nullable(), schlage_detected_duplicate: schlage_detected_duplicate.optional().nullable(), schlage_creation_outage: schlage_creation_outage.optional().nullable(), - salto_office_mode: salto_office_mode.optional().nullable(), code_modified_external_to_seam_warning: code_modified_external_to_seam_warning .optional() .nullable(), @@ -383,8 +440,12 @@ const access_code_warning_map = z.object({ third_party_integration_detected: third_party_integration_detected .optional() .nullable(), - august_device_programming_delay_warning: - august_device_programming_delay_warning.optional().nullable(), + august_device_programming_delay: august_device_programming_delay_warning + .optional() + .nullable(), + august_lock_temporarily_offline: august_lock_temporarily_offline_warning + .optional() + .nullable(), igloo_algopin_must_be_used_within_24_hours: igloo_algopin_must_be_used_within_24_hours.optional().nullable(), management_transferred: management_transferred.optional().nullable(), diff --git a/src/lib/seam/connect/models/acs/acs-access-group.ts b/src/lib/seam/connect/models/acs/acs-access-group.ts index 01f25f3a..cf8598e0 100644 --- a/src/lib/seam/connect/models/acs/acs-access-group.ts +++ b/src/lib/seam/connect/models/acs/acs-access-group.ts @@ -37,8 +37,7 @@ export const unknown_issue_with_acs_access_group = .describe(warning_code_description), }) .describe( - 'An unknown issue occurred while syncing the state of this access group with the provider. ' + - 'This issue may affect the proper functioning of this access group.', + 'An unknown issue occurred while syncing the state of this access group with the provider. This issue may affect the proper functioning of this access group.', ) const acs_access_group_warning = unknown_issue_with_acs_access_group.describe( diff --git a/src/lib/seam/connect/models/acs/acs-credential.ts b/src/lib/seam/connect/models/acs/acs-credential.ts index 679e9b3c..d826f1c0 100644 --- a/src/lib/seam/connect/models/acs/acs-credential.ts +++ b/src/lib/seam/connect/models/acs/acs-credential.ts @@ -86,8 +86,7 @@ export const unknown_issue_with_acs_credential = common_acs_credential_warning .describe(warning_code_description), }) .describe( - 'An unknown issue occurred while syncing the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) with the provider. ' + - 'This issue may affect the proper functioning of the credential.', + 'An unknown issue occurred while syncing the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.', ) const needs_to_be_reissued = common_acs_credential_warning diff --git a/src/lib/seam/connect/models/acs/acs-system.ts b/src/lib/seam/connect/models/acs/acs-system.ts index eba8666f..4ec87511 100644 --- a/src/lib/seam/connect/models/acs/acs-system.ts +++ b/src/lib/seam/connect/models/acs/acs-system.ts @@ -27,7 +27,7 @@ export const acs_system_capability_flags = z.object({ ), }) -export const location = z.object({ +export const acs_location = z.object({ time_zone: z .string() .nullable() @@ -274,7 +274,7 @@ export const acs_system = z deprecated: Use \`external_type_display_name\`. --- `), - location, + location: acs_location, name: z .string() .describe( diff --git a/src/lib/seam/connect/models/acs/acs-user.ts b/src/lib/seam/connect/models/acs/acs-user.ts index 7e83aa0f..4a842e85 100644 --- a/src/lib/seam/connect/models/acs/acs-user.ts +++ b/src/lib/seam/connect/models/acs/acs-user.ts @@ -129,8 +129,7 @@ export const unknown_issue_with_acs_user = common_acs_user_warning warning_code: z.literal('unknown_issue_with_acs_user'), }) .describe( - 'An unknown issue occurred while syncing the state of this [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) with the provider. ' + - 'This issue may affect the proper functioning of this user.', + 'An unknown issue occurred while syncing the state of this [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.', ) export const acs_users_warning_map = z.object({ diff --git a/src/lib/seam/connect/models/connected-accounts/connected-account.ts b/src/lib/seam/connect/models/connected-accounts/connected-account.ts index ec4ae5e8..3fa4bb3c 100644 --- a/src/lib/seam/connect/models/connected-accounts/connected-account.ts +++ b/src/lib/seam/connect/models/connected-accounts/connected-account.ts @@ -88,8 +88,7 @@ export const unknown_issue_with_connected_account = .describe(warning_code_description), }) .describe( - 'An unknown issue occurred while syncing the state of this connected account with the provider. ' + - 'This issue may affect the proper functioning of one or more resources in this account.', + 'An unknown issue occurred while syncing the state of this connected account with the provider. This issue may affect the proper functioning of one or more resources in this account.', ) const scheduled_maintenance_window = common_connected_account_warning diff --git a/src/lib/seam/connect/models/devices/device.ts b/src/lib/seam/connect/models/devices/device.ts index aecda9ba..27d30259 100644 --- a/src/lib/seam/connect/models/devices/device.ts +++ b/src/lib/seam/connect/models/devices/device.ts @@ -313,8 +313,7 @@ export const unknown_issue_with_phone = common_device_warning .describe(warning_code_description), }) .describe( - 'An unknown issue occurred while syncing the state of this phone with the provider. ' + - 'This issue may affect the proper functioning of this phone.', + 'An unknown issue occurred while syncing the state of this phone with the provider. This issue may affect the proper functioning of this phone.', ) const device_warning = z.discriminatedUnion('warning_code', [ diff --git a/src/lib/seam/connect/models/index.ts b/src/lib/seam/connect/models/index.ts index a494ffd8..9fb9a57c 100644 --- a/src/lib/seam/connect/models/index.ts +++ b/src/lib/seam/connect/models/index.ts @@ -9,6 +9,7 @@ export * from './connected-accounts/index.js' export * from './custom-metadata.js' export * from './devices/index.js' export * from './events/index.js' +export * from './locations/index.js' export * from './noise-sensors/index.js' export * from './pagination.js' export * from './phone-number.js' diff --git a/src/lib/seam/connect/models/locations/index.ts b/src/lib/seam/connect/models/locations/index.ts new file mode 100644 index 00000000..c90bb136 --- /dev/null +++ b/src/lib/seam/connect/models/locations/index.ts @@ -0,0 +1 @@ +export * from './location.js' diff --git a/src/lib/seam/connect/models/locations/location.ts b/src/lib/seam/connect/models/locations/location.ts new file mode 100644 index 00000000..fdcf6fdf --- /dev/null +++ b/src/lib/seam/connect/models/locations/location.ts @@ -0,0 +1,30 @@ +import { z } from 'zod' + +export const geolocation = z.object({ + latitude: z.number(), + longitude: z.number(), +}) + +export const location = z.object({ + location_id: z + .string() + .uuid() + .describe('Unique identifier for the location.'), + workspace_id: z + .string() + .uuid() + .describe( + 'Unique identifier for the Seam workspace associated with the location.', + ), + display_name: z.string().describe('Display name of the location.'), + geolocation: geolocation + .optional() + .describe('Geographical location of the location.'), + time_zone: z.string().optional().describe('Time zone of the location.'), + created_at: z + .string() + .datetime() + .describe('Date and time at which the location object was created.'), +}) + +export type Location = z.infer diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 43aefb27..23f468c7 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -78,6 +78,22 @@ export default { required: ['message', 'is_access_code_error', 'error_code'], type: 'object', }, + { + description: 'No free slots available on the device.', + properties: { + created_at: { format: 'date-time', type: 'string' }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['smartthings_no_free_slots_available'], + type: 'string', + }, + is_access_code_error: { enum: [true], type: 'boolean' }, + message: { type: 'string' }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + }, { description: 'Failed to set code on device.', properties: { @@ -310,6 +326,22 @@ export default { required: ['message', 'is_access_code_error', 'error_code'], type: 'object', }, + { + description: 'August lock is temporarily offline.', + properties: { + created_at: { format: 'date-time', type: 'string' }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['august_lock_temporarily_offline'], + type: 'string', + }, + is_access_code_error: { enum: [true], type: 'boolean' }, + message: { type: 'string' }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + }, { description: 'Salto site user is not subscribed.', properties: { @@ -317,7 +349,7 @@ export default { error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', - enum: ['salto_site_user_not_subscribed'], + enum: ['salto_ks_user_not_subscribed'], type: 'string', }, is_access_code_error: { enum: [true], type: 'boolean' }, @@ -359,6 +391,54 @@ export default { required: ['message', 'is_access_code_error', 'error_code'], type: 'object', }, + { + description: 'Duplicate access code name detected.', + properties: { + created_at: { format: 'date-time', type: 'string' }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['wyze_duplicate_code_name'], + type: 'string', + }, + is_access_code_error: { enum: [true], type: 'boolean' }, + message: { type: 'string' }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + }, + { + description: 'Potential duplicate access code detected.', + properties: { + created_at: { format: 'date-time', type: 'string' }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['wyze_potential_duplicate_code'], + type: 'string', + }, + is_access_code_error: { enum: [true], type: 'boolean' }, + message: { type: 'string' }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + }, + { + description: 'No valid user level for Oracode.', + properties: { + created_at: { format: 'date-time', type: 'string' }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['dormakaba_oracode_no_valid_user_level'], + type: 'string', + }, + is_access_code_error: { enum: [true], type: 'boolean' }, + message: { type: 'string' }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + }, { description: 'Account is disconnected', properties: { @@ -800,14 +880,14 @@ export default { }, { description: - 'Lock is in Office Mode. Access Codes will not unlock doors.', + 'Code was modified or removed externally after Seam successfully set it on the device.', properties: { created_at: { format: 'date-time', type: 'string' }, 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'], + enum: ['code_modified_external_to_seam'], type: 'string', }, }, @@ -815,15 +895,14 @@ export default { type: 'object', }, { - description: - 'Code was modified or removed externally after Seam successfully set it on the device.', + description: 'Delay in setting code on device.', properties: { created_at: { format: 'date-time', type: 'string' }, message: { type: 'string' }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['code_modified_external_to_seam'], + enum: ['delay_in_setting_on_device'], type: 'string', }, }, @@ -831,14 +910,14 @@ export default { type: 'object', }, { - description: 'Delay in setting code on device.', + description: 'Delay in removing code from device.', properties: { created_at: { format: 'date-time', type: 'string' }, message: { type: 'string' }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['delay_in_setting_on_device'], + enum: ['delay_in_removing_from_device'], type: 'string', }, }, @@ -846,14 +925,15 @@ export default { type: 'object', }, { - description: 'Delay in removing code from device.', + description: + 'Third party integration detected that may cause access codes to fail.', properties: { created_at: { format: 'date-time', type: 'string' }, message: { type: 'string' }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['delay_in_removing_from_device'], + enum: ['third_party_integration_detected'], type: 'string', }, }, @@ -862,14 +942,14 @@ export default { }, { description: - 'Third party integration detected that may cause access codes to fail.', + 'Access code has not yet been fully moved to the device.', properties: { created_at: { format: 'date-time', type: 'string' }, 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'], + enum: ['august_device_programming_delay'], type: 'string', }, }, @@ -877,15 +957,14 @@ export default { type: 'object', }, { - description: - 'Access code has not yet been fully moved to the device.', + description: 'August lock is temporarily offline.', properties: { created_at: { format: 'date-time', type: 'string' }, message: { type: 'string' }, warning_code: { description: - 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['august_device_programming_delay'], + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['august_lock_temporarily_offline'], type: 'string', }, }, @@ -12872,6 +12951,22 @@ export default { required: ['message', 'is_access_code_error', 'error_code'], type: 'object', }, + { + description: 'No free slots available on the device.', + properties: { + created_at: { format: 'date-time', type: 'string' }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['smartthings_no_free_slots_available'], + type: 'string', + }, + is_access_code_error: { enum: [true], type: 'boolean' }, + message: { type: 'string' }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + }, { description: 'Failed to set code on device.', properties: { @@ -13104,6 +13199,22 @@ export default { required: ['message', 'is_access_code_error', 'error_code'], type: 'object', }, + { + description: 'August lock is temporarily offline.', + properties: { + created_at: { format: 'date-time', type: 'string' }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['august_lock_temporarily_offline'], + type: 'string', + }, + is_access_code_error: { enum: [true], type: 'boolean' }, + message: { type: 'string' }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + }, { description: 'Salto site user is not subscribed.', properties: { @@ -13111,7 +13222,7 @@ export default { error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', - enum: ['salto_site_user_not_subscribed'], + enum: ['salto_ks_user_not_subscribed'], type: 'string', }, is_access_code_error: { enum: [true], type: 'boolean' }, @@ -13153,6 +13264,54 @@ export default { required: ['message', 'is_access_code_error', 'error_code'], type: 'object', }, + { + description: 'Duplicate access code name detected.', + properties: { + created_at: { format: 'date-time', type: 'string' }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['wyze_duplicate_code_name'], + type: 'string', + }, + is_access_code_error: { enum: [true], type: 'boolean' }, + message: { type: 'string' }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + }, + { + description: 'Potential duplicate access code detected.', + properties: { + created_at: { format: 'date-time', type: 'string' }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['wyze_potential_duplicate_code'], + type: 'string', + }, + is_access_code_error: { enum: [true], type: 'boolean' }, + message: { type: 'string' }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + }, + { + description: 'No valid user level for Oracode.', + properties: { + created_at: { format: 'date-time', type: 'string' }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['dormakaba_oracode_no_valid_user_level'], + type: 'string', + }, + is_access_code_error: { enum: [true], type: 'boolean' }, + message: { type: 'string' }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + }, { description: 'Account is disconnected', properties: { @@ -13544,14 +13703,14 @@ export default { }, { description: - 'Lock is in Office Mode. Access Codes will not unlock doors.', + 'Code was modified or removed externally after Seam successfully set it on the device.', properties: { created_at: { format: 'date-time', type: 'string' }, 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'], + enum: ['code_modified_external_to_seam'], type: 'string', }, }, @@ -13559,15 +13718,14 @@ export default { type: 'object', }, { - description: - 'Code was modified or removed externally after Seam successfully set it on the device.', + description: 'Delay in setting code on device.', properties: { created_at: { format: 'date-time', type: 'string' }, message: { type: 'string' }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['code_modified_external_to_seam'], + enum: ['delay_in_setting_on_device'], type: 'string', }, }, @@ -13575,14 +13733,14 @@ export default { type: 'object', }, { - description: 'Delay in setting code on device.', + description: 'Delay in removing code from device.', properties: { created_at: { format: 'date-time', type: 'string' }, message: { type: 'string' }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['delay_in_setting_on_device'], + enum: ['delay_in_removing_from_device'], type: 'string', }, }, @@ -13590,14 +13748,15 @@ export default { type: 'object', }, { - description: 'Delay in removing code from device.', + description: + 'Third party integration detected that may cause access codes to fail.', properties: { created_at: { format: 'date-time', type: 'string' }, message: { type: 'string' }, warning_code: { description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['delay_in_removing_from_device'], + enum: ['third_party_integration_detected'], type: 'string', }, }, @@ -13606,14 +13765,14 @@ export default { }, { description: - 'Third party integration detected that may cause access codes to fail.', + 'Access code has not yet been fully moved to the device.', properties: { created_at: { format: 'date-time', type: 'string' }, 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'], + enum: ['august_device_programming_delay'], type: 'string', }, }, @@ -13621,15 +13780,14 @@ export default { type: 'object', }, { - description: - 'Access code has not yet been fully moved to the device.', + description: 'August lock is temporarily offline.', properties: { created_at: { format: 'date-time', type: 'string' }, message: { type: 'string' }, warning_code: { description: - 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['august_device_programming_delay'], + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['august_lock_temporarily_offline'], type: 'string', }, }, @@ -22004,6 +22162,12 @@ export default { ], type: 'string', }, + unstable_location_id: { + format: 'uuid', + nullable: true, + type: 'string', + 'x-undocumented': 'Experimental locations.', + }, user_identifier_key: { description: 'Your own internal user ID for the user by which to filter devices.', @@ -22536,6 +22700,12 @@ export default { ], type: 'string', }, + unstable_location_id: { + format: 'uuid', + nullable: true, + type: 'string', + 'x-undocumented': 'Experimental locations.', + }, user_identifier_key: { description: 'Your own internal user ID for the user by which to filter devices.', @@ -23393,6 +23563,12 @@ export default { ], type: 'string', }, + unstable_location_id: { + format: 'uuid', + nullable: true, + type: 'string', + 'x-undocumented': 'Experimental locations.', + }, user_identifier_key: { description: 'Your own internal user ID for the user by which to filter devices.', @@ -23888,6 +24064,12 @@ export default { ], type: 'string', }, + unstable_location_id: { + format: 'uuid', + nullable: true, + type: 'string', + 'x-undocumented': 'Experimental locations.', + }, user_identifier_key: { description: 'Your own internal user ID for the user by which to filter devices.', @@ -25781,6 +25963,12 @@ export default { ], type: 'string', }, + unstable_location_id: { + format: 'uuid', + nullable: true, + type: 'string', + 'x-undocumented': 'Experimental locations.', + }, user_identifier_key: { description: 'Your own internal user ID for the user by which to filter devices.', @@ -27217,6 +27405,624 @@ export default { 'x-title': 'Update a Climate Preset', }, }, + '/unstable_locations/add_devices': { + post: { + description: + 'Add devices to a specific location. If a device already belongs to a location it will be moved.', + operationId: 'unstableLocationsAddDevicesPost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + device_ids: { + items: { format: 'uuid', type: 'string' }, + type: 'array', + }, + location_id: { format: 'uuid', type: 'string' }, + }, + required: ['location_id', 'device_ids'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { ok: { type: 'boolean' } }, + required: ['ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { pat_with_workspace: [] }, + { console_session_with_workspace: [] }, + { api_key: [] }, + ], + summary: '/unstable_locations/add_devices', + tags: [], + 'x-fern-sdk-group-name': ['unstable_locations'], + 'x-fern-sdk-method-name': 'add_devices', + 'x-response-key': null, + 'x-title': 'Add Location Devices', + 'x-undocumented': 'Experimental locations.', + }, + }, + '/unstable_locations/create': { + post: { + description: 'Create a new location.', + operationId: 'unstableLocationsCreatePost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + geolocation: { + properties: { + latitude: { format: 'float', type: 'number' }, + longitude: { format: 'float', type: 'number' }, + }, + required: ['latitude', 'longitude'], + type: 'object', + }, + name: { type: 'string' }, + time_zone: { type: 'string' }, + }, + required: ['name'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + location: { + properties: { + created_at: { + description: + 'Date and time at which the location object was created.', + format: 'date-time', + type: 'string', + }, + display_name: { + description: 'Display name of the location.', + type: 'string', + }, + geolocation: { + description: 'Geographical location of the location.', + properties: { + latitude: { format: 'float', type: 'number' }, + longitude: { format: 'float', type: 'number' }, + }, + required: ['latitude', 'longitude'], + type: 'object', + }, + location_id: { + description: 'Unique identifier for the location.', + format: 'uuid', + type: 'string', + }, + time_zone: { + description: 'Time zone of the location.', + type: 'string', + }, + workspace_id: { + description: + 'Unique identifier for the Seam workspace associated with the location.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'location_id', + 'workspace_id', + 'display_name', + 'created_at', + ], + type: 'object', + }, + ok: { type: 'boolean' }, + }, + required: ['location', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { pat_with_workspace: [] }, + { console_session_with_workspace: [] }, + { api_key: [] }, + ], + summary: '/unstable_locations/create', + tags: [], + 'x-fern-sdk-group-name': ['unstable_locations'], + 'x-fern-sdk-method-name': 'create', + 'x-fern-sdk-return-value': 'location', + 'x-response-key': 'location', + 'x-title': 'Create Location', + 'x-undocumented': 'Experimental locations.', + }, + }, + '/unstable_locations/delete': { + post: { + description: 'Delete a location.', + operationId: 'unstableLocationsDeletePost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { location_id: { format: 'uuid', type: 'string' } }, + required: ['location_id'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { ok: { type: 'boolean' } }, + required: ['ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { pat_with_workspace: [] }, + { console_session_with_workspace: [] }, + { api_key: [] }, + ], + summary: '/unstable_locations/delete', + tags: [], + 'x-fern-sdk-group-name': ['unstable_locations'], + 'x-fern-sdk-method-name': 'delete', + 'x-response-key': null, + 'x-title': 'Delete Location', + 'x-undocumented': 'Experimental locations.', + }, + }, + '/unstable_locations/get': { + post: { + description: 'Get a location.', + operationId: 'unstableLocationsGetPost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { location_id: { format: 'uuid', type: 'string' } }, + required: ['location_id'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + location: { + properties: { + created_at: { + description: + 'Date and time at which the location object was created.', + format: 'date-time', + type: 'string', + }, + display_name: { + description: 'Display name of the location.', + type: 'string', + }, + geolocation: { + description: 'Geographical location of the location.', + properties: { + latitude: { format: 'float', type: 'number' }, + longitude: { format: 'float', type: 'number' }, + }, + required: ['latitude', 'longitude'], + type: 'object', + }, + location_id: { + description: 'Unique identifier for the location.', + format: 'uuid', + type: 'string', + }, + time_zone: { + description: 'Time zone of the location.', + type: 'string', + }, + workspace_id: { + description: + 'Unique identifier for the Seam workspace associated with the location.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'location_id', + 'workspace_id', + 'display_name', + 'created_at', + ], + type: 'object', + }, + ok: { type: 'boolean' }, + }, + required: ['location', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { pat_with_workspace: [] }, + { console_session_with_workspace: [] }, + { api_key: [] }, + ], + summary: '/unstable_locations/get', + tags: [], + 'x-fern-sdk-group-name': ['unstable_locations'], + 'x-fern-sdk-method-name': 'get', + 'x-fern-sdk-return-value': 'location', + 'x-response-key': 'location', + 'x-title': 'Get Location', + 'x-undocumented': 'Experimental locations.', + }, + }, + '/unstable_locations/list': { + get: { + description: 'Returns a list of all locations.', + operationId: 'unstableLocationsListGet', + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + locations: { + items: { + properties: { + created_at: { + description: + 'Date and time at which the location object was created.', + format: 'date-time', + type: 'string', + }, + display_name: { + description: 'Display name of the location.', + type: 'string', + }, + geolocation: { + description: + 'Geographical location of the location.', + properties: { + latitude: { format: 'float', type: 'number' }, + longitude: { format: 'float', type: 'number' }, + }, + required: ['latitude', 'longitude'], + type: 'object', + }, + location_id: { + description: 'Unique identifier for the location.', + format: 'uuid', + type: 'string', + }, + time_zone: { + description: 'Time zone of the location.', + type: 'string', + }, + workspace_id: { + description: + 'Unique identifier for the Seam workspace associated with the location.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'location_id', + 'workspace_id', + 'display_name', + 'created_at', + ], + type: 'object', + }, + type: 'array', + }, + ok: { type: 'boolean' }, + }, + required: ['locations', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { pat_with_workspace: [] }, + { console_session_with_workspace: [] }, + { api_key: [] }, + ], + summary: '/unstable_locations/list', + tags: [], + 'x-fern-ignore': true, + 'x-response-key': 'locations', + 'x-title': 'List Locations', + 'x-undocumented': 'Experimental locations.', + }, + post: { + description: 'Returns a list of all locations.', + operationId: 'unstableLocationsListPost', + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + locations: { + items: { + properties: { + created_at: { + description: + 'Date and time at which the location object was created.', + format: 'date-time', + type: 'string', + }, + display_name: { + description: 'Display name of the location.', + type: 'string', + }, + geolocation: { + description: + 'Geographical location of the location.', + properties: { + latitude: { format: 'float', type: 'number' }, + longitude: { format: 'float', type: 'number' }, + }, + required: ['latitude', 'longitude'], + type: 'object', + }, + location_id: { + description: 'Unique identifier for the location.', + format: 'uuid', + type: 'string', + }, + time_zone: { + description: 'Time zone of the location.', + type: 'string', + }, + workspace_id: { + description: + 'Unique identifier for the Seam workspace associated with the location.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'location_id', + 'workspace_id', + 'display_name', + 'created_at', + ], + type: 'object', + }, + type: 'array', + }, + ok: { type: 'boolean' }, + }, + required: ['locations', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { pat_with_workspace: [] }, + { console_session_with_workspace: [] }, + { api_key: [] }, + ], + summary: '/unstable_locations/list', + tags: [], + 'x-fern-sdk-group-name': ['unstable_locations'], + 'x-fern-sdk-method-name': 'list', + 'x-fern-sdk-return-value': 'locations', + 'x-response-key': 'locations', + 'x-title': 'List Locations', + 'x-undocumented': 'Experimental locations.', + }, + }, + '/unstable_locations/remove_devices': { + post: { + description: 'Remove devices from a specific location.', + operationId: 'unstableLocationsRemoveDevicesPost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + device_ids: { + items: { format: 'uuid', type: 'string' }, + type: 'array', + }, + location_id: { format: 'uuid', type: 'string' }, + }, + required: ['location_id', 'device_ids'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { ok: { type: 'boolean' } }, + required: ['ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { pat_with_workspace: [] }, + { console_session_with_workspace: [] }, + { api_key: [] }, + ], + summary: '/unstable_locations/remove_devices', + tags: [], + 'x-fern-sdk-group-name': ['unstable_locations'], + 'x-fern-sdk-method-name': 'remove_devices', + 'x-response-key': null, + 'x-title': 'Remove Location Devices', + 'x-undocumented': 'Experimental locations.', + }, + }, + '/unstable_locations/update': { + post: { + description: 'Update an existing location.', + operationId: 'unstableLocationsUpdatePost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + geolocation: { + properties: { + latitude: { format: 'float', type: 'number' }, + longitude: { format: 'float', type: 'number' }, + }, + required: ['latitude', 'longitude'], + type: 'object', + }, + location_id: { format: 'uuid', type: 'string' }, + name: { type: 'string' }, + time_zone: { type: 'string' }, + }, + required: ['location_id'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + location: { + properties: { + created_at: { + description: + 'Date and time at which the location object was created.', + format: 'date-time', + type: 'string', + }, + display_name: { + description: 'Display name of the location.', + type: 'string', + }, + geolocation: { + description: 'Geographical location of the location.', + properties: { + latitude: { format: 'float', type: 'number' }, + longitude: { format: 'float', type: 'number' }, + }, + required: ['latitude', 'longitude'], + type: 'object', + }, + location_id: { + description: 'Unique identifier for the location.', + format: 'uuid', + type: 'string', + }, + time_zone: { + description: 'Time zone of the location.', + type: 'string', + }, + workspace_id: { + description: + 'Unique identifier for the Seam workspace associated with the location.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'location_id', + 'workspace_id', + 'display_name', + 'created_at', + ], + type: 'object', + }, + ok: { type: 'boolean' }, + }, + required: ['location', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { pat_with_workspace: [] }, + { console_session_with_workspace: [] }, + { api_key: [] }, + ], + summary: '/unstable_locations/update', + tags: [], + 'x-fern-sdk-group-name': ['unstable_locations'], + 'x-fern-sdk-method-name': 'update', + 'x-fern-sdk-return-value': 'location', + 'x-response-key': 'location', + 'x-title': 'Update Location', + 'x-undocumented': 'Experimental locations.', + }, + }, '/user_identities/add_acs_user': { post: { description: diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index c900746c..341da2c8 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -1108,6 +1108,13 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'smartthings_no_free_slots_available' + } | { message: string is_access_code_error: true @@ -1211,7 +1218,14 @@ export interface Routes { is_access_code_error: true created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_site_user_not_subscribed' + error_code: 'august_lock_temporarily_offline' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'salto_ks_user_not_subscribed' } | { message: string @@ -1227,6 +1241,27 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hubitat_no_free_positions_available' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_duplicate_code_name' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_potential_duplicate_code' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'dormakaba_oracode_no_valid_user_level' + } | { message: string is_device_error: false @@ -1349,12 +1384,6 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schlage_creation_outage' } - | { - message: string - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'salto_office_mode' - } | { message: string created_at?: string | undefined @@ -1385,6 +1414,12 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'august_device_programming_delay' } + | { + message: string + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + warning_code: 'august_lock_temporarily_offline' + } | { message: string created_at?: string | undefined @@ -1489,6 +1524,13 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'smartthings_no_free_slots_available' + } | { message: string is_access_code_error: true @@ -1592,7 +1634,14 @@ export interface Routes { is_access_code_error: true created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_site_user_not_subscribed' + error_code: 'august_lock_temporarily_offline' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'salto_ks_user_not_subscribed' } | { message: string @@ -1608,6 +1657,27 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hubitat_no_free_positions_available' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_duplicate_code_name' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_potential_duplicate_code' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'dormakaba_oracode_no_valid_user_level' + } | { message: string is_device_error: false @@ -1730,12 +1800,6 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schlage_creation_outage' } - | { - message: string - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'salto_office_mode' - } | { message: string created_at?: string | undefined @@ -1766,6 +1830,12 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'august_device_programming_delay' } + | { + message: string + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + warning_code: 'august_lock_temporarily_offline' + } | { message: string created_at?: string | undefined @@ -2935,6 +3005,13 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'smartthings_no_free_slots_available' + } | { message: string is_access_code_error: true @@ -3038,7 +3115,14 @@ export interface Routes { is_access_code_error: true created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_site_user_not_subscribed' + error_code: 'august_lock_temporarily_offline' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'salto_ks_user_not_subscribed' } | { message: string @@ -3054,6 +3138,27 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hubitat_no_free_positions_available' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_duplicate_code_name' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_potential_duplicate_code' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'dormakaba_oracode_no_valid_user_level' + } | { message: string is_device_error: false @@ -3176,12 +3281,6 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schlage_creation_outage' } - | { - message: string - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'salto_office_mode' - } | { message: string created_at?: string | undefined @@ -3212,6 +3311,12 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'august_device_programming_delay' } + | { + message: string + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + warning_code: 'august_lock_temporarily_offline' + } | { message: string created_at?: string | undefined @@ -3303,6 +3408,13 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'smartthings_no_free_slots_available' + } | { message: string is_access_code_error: true @@ -3406,7 +3518,14 @@ export interface Routes { is_access_code_error: true created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_site_user_not_subscribed' + error_code: 'august_lock_temporarily_offline' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'salto_ks_user_not_subscribed' } | { message: string @@ -3422,6 +3541,27 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hubitat_no_free_positions_available' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_duplicate_code_name' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_potential_duplicate_code' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'dormakaba_oracode_no_valid_user_level' + } | { message: string is_device_error: false @@ -3544,12 +3684,6 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schlage_creation_outage' } - | { - message: string - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'salto_office_mode' - } | { message: string created_at?: string | undefined @@ -3580,6 +3714,12 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'august_device_programming_delay' } + | { + message: string + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + warning_code: 'august_lock_temporarily_offline' + } | { message: string created_at?: string | undefined @@ -3670,6 +3810,13 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'smartthings_no_free_slots_available' + } | { message: string is_access_code_error: true @@ -3773,7 +3920,14 @@ export interface Routes { is_access_code_error: true created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_site_user_not_subscribed' + error_code: 'august_lock_temporarily_offline' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'salto_ks_user_not_subscribed' } | { message: string @@ -3789,6 +3943,27 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hubitat_no_free_positions_available' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_duplicate_code_name' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_potential_duplicate_code' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'dormakaba_oracode_no_valid_user_level' + } | { message: string is_device_error: false @@ -3911,12 +4086,6 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schlage_creation_outage' } - | { - message: string - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'salto_office_mode' - } | { message: string created_at?: string | undefined @@ -3947,6 +4116,12 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'august_device_programming_delay' } + | { + message: string + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + warning_code: 'august_lock_temporarily_offline' + } | { message: string created_at?: string | undefined @@ -4025,6 +4200,13 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'smartthings_no_free_slots_available' + } | { message: string is_access_code_error: true @@ -4128,7 +4310,14 @@ export interface Routes { is_access_code_error: true created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_site_user_not_subscribed' + error_code: 'august_lock_temporarily_offline' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'salto_ks_user_not_subscribed' } | { message: string @@ -4144,6 +4333,27 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hubitat_no_free_positions_available' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_duplicate_code_name' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_potential_duplicate_code' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'dormakaba_oracode_no_valid_user_level' + } | { message: string is_device_error: false @@ -4266,12 +4476,6 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schlage_creation_outage' } - | { - message: string - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'salto_office_mode' - } | { message: string created_at?: string | undefined @@ -4302,6 +4506,12 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'august_device_programming_delay' } + | { + message: string + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + warning_code: 'august_lock_temporarily_offline' + } | { message: string created_at?: string | undefined @@ -4388,6 +4598,13 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'smartthings_no_free_slots_available' + } | { message: string is_access_code_error: true @@ -4491,7 +4708,14 @@ export interface Routes { is_access_code_error: true created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_site_user_not_subscribed' + error_code: 'august_lock_temporarily_offline' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'salto_ks_user_not_subscribed' } | { message: string @@ -4507,6 +4731,27 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hubitat_no_free_positions_available' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_duplicate_code_name' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_potential_duplicate_code' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'dormakaba_oracode_no_valid_user_level' + } | { message: string is_device_error: false @@ -4629,12 +4874,6 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schlage_creation_outage' } - | { - message: string - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'salto_office_mode' - } | { message: string created_at?: string | undefined @@ -4665,6 +4904,12 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'august_device_programming_delay' } + | { + message: string + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + warning_code: 'august_lock_temporarily_offline' + } | { message: string created_at?: string | undefined @@ -5810,6 +6055,13 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'smartthings_no_free_slots_available' + } | { message: string is_access_code_error: true @@ -5913,7 +6165,14 @@ export interface Routes { is_access_code_error: true created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_site_user_not_subscribed' + error_code: 'august_lock_temporarily_offline' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'salto_ks_user_not_subscribed' } | { message: string @@ -5929,6 +6188,27 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hubitat_no_free_positions_available' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_duplicate_code_name' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_potential_duplicate_code' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'dormakaba_oracode_no_valid_user_level' + } | { message: string is_device_error: false @@ -6051,12 +6331,6 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schlage_creation_outage' } - | { - message: string - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'salto_office_mode' - } | { message: string created_at?: string | undefined @@ -6087,6 +6361,12 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'august_device_programming_delay' } + | { + message: string + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + warning_code: 'august_lock_temporarily_offline' + } | { message: string created_at?: string | undefined @@ -6155,6 +6435,13 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'smartthings_failed_to_set_after_multiple_retries' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'smartthings_no_free_slots_available' + } | { message: string is_access_code_error: true @@ -6258,7 +6545,14 @@ export interface Routes { is_access_code_error: true created_at?: string | undefined /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_site_user_not_subscribed' + error_code: 'august_lock_temporarily_offline' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'salto_ks_user_not_subscribed' } | { message: string @@ -6274,6 +6568,27 @@ export interface Routes { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hubitat_no_free_positions_available' } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_duplicate_code_name' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'wyze_potential_duplicate_code' + } + | { + message: string + is_access_code_error: true + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'dormakaba_oracode_no_valid_user_level' + } | { message: string is_device_error: false @@ -6396,12 +6711,6 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schlage_creation_outage' } - | { - message: string - created_at?: string | undefined - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'salto_office_mode' - } | { message: string created_at?: string | undefined @@ -6432,6 +6741,12 @@ export interface Routes { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'august_device_programming_delay' } + | { + message: string + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + warning_code: 'august_lock_temporarily_offline' + } | { message: string created_at?: string | undefined @@ -17684,6 +17999,8 @@ export interface Routes { | 'can_simulate_disconnection' > | undefined + /** */ + unstable_location_id?: (string | null) | undefined } formData: {} jsonResponse: { @@ -19246,6 +19563,8 @@ export interface Routes { | 'can_simulate_disconnection' > | undefined + /** */ + unstable_location_id?: (string | null) | undefined } formData: {} jsonResponse: { @@ -24482,6 +24801,8 @@ export interface Routes { | 'can_simulate_disconnection' > | undefined + /** */ + unstable_location_id?: (string | null) | undefined } formData: {} jsonResponse: { @@ -28635,6 +28956,8 @@ export interface Routes { | 'can_simulate_disconnection' > | undefined + /** */ + unstable_location_id?: (string | null) | undefined } formData: {} jsonResponse: { @@ -39428,6 +39751,8 @@ export interface Routes { | 'can_simulate_disconnection' > | undefined + /** */ + unstable_location_id?: (string | null) | undefined } formData: {} jsonResponse: { @@ -44770,6 +45095,178 @@ export interface Routes { formData: {} jsonResponse: {} } + '/unstable_locations/add_devices': { + route: '/unstable_locations/add_devices' + method: 'POST' + queryParams: {} + jsonBody: { + location_id: string + device_ids: string[] + } + commonParams: {} + formData: {} + jsonResponse: {} + } + '/unstable_locations/create': { + route: '/unstable_locations/create' + method: 'POST' + queryParams: {} + jsonBody: { + name: string + geolocation?: + | { + latitude: number + longitude: number + } + | undefined + time_zone?: string | undefined + } + commonParams: {} + formData: {} + jsonResponse: { + location: { + /** Unique identifier for the location. */ + location_id: string + /** Unique identifier for the Seam workspace associated with the location. */ + workspace_id: string + /** Display name of the location. */ + display_name: string + /** Geographical location of the location. */ + geolocation?: + | { + latitude: number + longitude: number + } + | undefined + /** Time zone of the location. */ + time_zone?: string | undefined + /** Date and time at which the location object was created. */ + created_at: string + } + } + } + '/unstable_locations/delete': { + route: '/unstable_locations/delete' + method: 'DELETE' | 'POST' + queryParams: {} + jsonBody: { + location_id: string + } + commonParams: {} + formData: {} + jsonResponse: {} + } + '/unstable_locations/get': { + route: '/unstable_locations/get' + method: 'GET' | 'POST' + queryParams: {} + jsonBody: {} + commonParams: { + location_id: string + } + formData: {} + jsonResponse: { + location: { + /** Unique identifier for the location. */ + location_id: string + /** Unique identifier for the Seam workspace associated with the location. */ + workspace_id: string + /** Display name of the location. */ + display_name: string + /** Geographical location of the location. */ + geolocation?: + | { + latitude: number + longitude: number + } + | undefined + /** Time zone of the location. */ + time_zone?: string | undefined + /** Date and time at which the location object was created. */ + created_at: string + } + } + } + '/unstable_locations/list': { + route: '/unstable_locations/list' + method: 'GET' | 'POST' + queryParams: {} + jsonBody: {} + commonParams: {} + formData: {} + jsonResponse: { + locations: Array<{ + /** Unique identifier for the location. */ + location_id: string + /** Unique identifier for the Seam workspace associated with the location. */ + workspace_id: string + /** Display name of the location. */ + display_name: string + /** Geographical location of the location. */ + geolocation?: + | { + latitude: number + longitude: number + } + | undefined + /** Time zone of the location. */ + time_zone?: string | undefined + /** Date and time at which the location object was created. */ + created_at: string + }> + } + } + '/unstable_locations/remove_devices': { + route: '/unstable_locations/remove_devices' + method: 'POST' + queryParams: {} + jsonBody: { + location_id: string + device_ids: string[] + } + commonParams: {} + formData: {} + jsonResponse: {} + } + '/unstable_locations/update': { + route: '/unstable_locations/update' + method: 'POST' + queryParams: {} + jsonBody: { + location_id: string + name?: string | undefined + geolocation?: + | { + latitude: number + longitude: number + } + | undefined + time_zone?: string | undefined + } + commonParams: {} + formData: {} + jsonResponse: { + location: { + /** Unique identifier for the location. */ + location_id: string + /** Unique identifier for the Seam workspace associated with the location. */ + workspace_id: string + /** Display name of the location. */ + display_name: string + /** Geographical location of the location. */ + geolocation?: + | { + latitude: number + longitude: number + } + | undefined + /** Time zone of the location. */ + time_zone?: string | undefined + /** Date and time at which the location object was created. */ + created_at: string + } + } + } '/user_identities/add_acs_user': { route: '/user_identities/add_acs_user' method: 'POST' | 'PUT'