diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 924ceb73..06c5a656 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -497,7 +497,8 @@ export default { device: { properties: { capabilities_supported: { - description: 'Deprecated. Use enabled_capabilities.', + description: + 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.', items: { enum: [ 'access_code', @@ -570,21 +571,6 @@ export default { }, ], }, - enabled_capabilities: { - description: - 'Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.', - items: { - enum: [ - 'access_code', - 'lock', - 'noise_detection', - 'thermostat', - 'battery', - ], - type: 'string', - }, - type: 'array', - }, errors: { description: 'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.', @@ -1537,21 +1523,6 @@ export default { ], description: 'Properties of the device.', }, - supported_capabilities: { - description: - 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.', - items: { - enum: [ - 'access_code', - 'lock', - 'noise_detection', - 'thermostat', - 'battery', - ], - type: 'string', - }, - type: 'array', - }, 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.', @@ -1576,8 +1547,6 @@ export default { 'device_id', 'device_type', 'capabilities_supported', - 'enabled_capabilities', - 'supported_capabilities', 'properties', 'location', 'connected_account_id', @@ -1732,7 +1701,8 @@ export default { unmanaged_device: { properties: { capabilities_supported: { - description: 'Deprecated. Use enabled_capabilities.', + description: + 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.', items: { enum: [ 'access_code', @@ -1805,21 +1775,6 @@ export default { }, ], }, - enabled_capabilities: { - description: - 'Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.', - items: { - enum: [ - 'access_code', - 'lock', - 'noise_detection', - 'thermostat', - 'battery', - ], - type: 'string', - }, - type: 'array', - }, errors: { description: 'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.', @@ -1890,7 +1845,6 @@ export default { 'device_type', 'connected_account_id', 'capabilities_supported', - 'enabled_capabilities', 'workspace_id', 'errors', 'warnings', @@ -3555,7 +3509,6 @@ export default { 'acs_credential_id', 'acs_system_id', 'display_name', - 'code', 'external_type', 'external_type_display_name', 'created_at', @@ -3633,7 +3586,6 @@ export default { 'acs_credential_id', 'acs_system_id', 'display_name', - 'code', 'external_type', 'external_type_display_name', 'created_at', @@ -3714,7 +3666,6 @@ export default { 'acs_credential_id', 'acs_system_id', 'display_name', - 'code', 'external_type', 'external_type_display_name', 'created_at', @@ -3837,7 +3788,6 @@ export default { 'acs_credential_id', 'acs_system_id', 'display_name', - 'code', 'external_type', 'external_type_display_name', 'created_at', @@ -3937,7 +3887,6 @@ export default { 'acs_credential_id', 'acs_system_id', 'display_name', - 'code', 'external_type', 'external_type_display_name', 'created_at', @@ -4021,7 +3970,6 @@ export default { 'acs_credential_id', 'acs_system_id', 'display_name', - 'code', 'external_type', 'external_type_display_name', 'created_at', @@ -4099,7 +4047,6 @@ export default { 'acs_credential_id', 'acs_system_id', 'display_name', - 'code', 'external_type', 'external_type_display_name', 'created_at', @@ -4131,6 +4078,83 @@ export default { }, }, '/acs/credentials/update': { + patch: { + operationId: 'acsCredentialsUpdatePatch', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + acs_credential_id: { type: 'string' }, + code: { pattern: '^\\d+$', type: 'string' }, + }, + required: ['acs_credential_id', 'code'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + acs_credential: { + properties: { + acs_credential_id: { format: 'uuid', type: 'string' }, + acs_credential_pool_id: { + format: 'uuid', + type: 'string', + }, + acs_system_id: { format: 'uuid', type: 'string' }, + acs_user_id: { format: 'uuid', type: 'string' }, + code: { nullable: true, type: 'string' }, + created_at: { format: 'date-time', type: 'string' }, + display_name: { minLength: 1, type: 'string' }, + external_type: { + enum: [ + 'pti_card', + 'brivo_credential', + 'hid_credential', + ], + type: 'string', + }, + external_type_display_name: { type: 'string' }, + workspace_id: { format: 'uuid', type: 'string' }, + }, + required: [ + 'acs_credential_id', + 'acs_system_id', + 'display_name', + 'external_type', + 'external_type_display_name', + 'created_at', + 'workspace_id', + ], + type: 'object', + }, + ok: { type: 'boolean' }, + }, + required: ['acs_credential', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { access_token: [], seam_workspace: [] }, + { seam_client_session_token: [] }, + { client_session_token: [] }, + ], + summary: '/acs/credentials/update', + tags: [], + 'x-fern-ignore': true, + }, post: { operationId: 'acsCredentialsUpdatePost', requestBody: { @@ -4138,9 +4162,10 @@ export default { 'application/json': { schema: { properties: { + acs_credential_id: { type: 'string' }, code: { pattern: '^\\d+$', type: 'string' }, - name: { maxLength: 10, type: 'string' }, }, + required: ['acs_credential_id', 'code'], type: 'object', }, }, @@ -4179,7 +4204,6 @@ export default { 'acs_credential_id', 'acs_system_id', 'display_name', - 'code', 'external_type', 'external_type_display_name', 'created_at', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index b86da64e..25c1df49 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -817,7 +817,7 @@ export interface Routes { acs_credential_pool_id?: string | undefined acs_system_id: string display_name: string - code: string | null + code?: (string | undefined) | null external_type: 'pti_card' | 'brivo_credential' | 'hid_credential' external_type_display_name: string created_at: string @@ -842,7 +842,7 @@ export interface Routes { acs_credential_pool_id?: string | undefined acs_system_id: string display_name: string - code: string | null + code?: (string | undefined) | null external_type: 'pti_card' | 'brivo_credential' | 'hid_credential' external_type_display_name: string created_at: string @@ -877,7 +877,7 @@ export interface Routes { acs_credential_pool_id?: string | undefined acs_system_id: string display_name: string - code: string | null + code?: (string | undefined) | null external_type: 'pti_card' | 'brivo_credential' | 'hid_credential' external_type_display_name: string created_at: string @@ -909,7 +909,7 @@ export interface Routes { acs_credential_pool_id?: string | undefined acs_system_id: string display_name: string - code: string | null + code?: (string | undefined) | null external_type: 'pti_card' | 'brivo_credential' | 'hid_credential' external_type_display_name: string created_at: string @@ -934,7 +934,7 @@ export interface Routes { acs_credential_pool_id?: string | undefined acs_system_id: string display_name: string - code: string | null + code?: (string | undefined) | null external_type: 'pti_card' | 'brivo_credential' | 'hid_credential' external_type_display_name: string created_at: string @@ -944,13 +944,13 @@ export interface Routes { } '/acs/credentials/update': { route: '/acs/credentials/update' - method: 'POST' + method: 'PATCH' | 'POST' queryParams: {} - jsonBody: {} - commonParams: { - code?: string | undefined - name?: string | undefined + jsonBody: { + acs_credential_id: string + code: string } + commonParams: {} formData: {} jsonResponse: { acs_credential: { @@ -959,7 +959,7 @@ export interface Routes { acs_credential_pool_id?: string | undefined acs_system_id: string display_name: string - code: string | null + code?: (string | undefined) | null external_type: 'pti_card' | 'brivo_credential' | 'hid_credential' external_type_display_name: string created_at: string @@ -1769,16 +1769,8 @@ export interface Routes { ) | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat') - /** Deprecated. Use enabled_capabilities. */ - capabilities_supported: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - supported_capabilities: Array< + capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > /** Properties of the device. */ @@ -2511,16 +2503,8 @@ export interface Routes { ) | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat') - /** Deprecated. Use enabled_capabilities. */ - capabilities_supported: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - supported_capabilities: Array< + capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > /** Properties of the device. */ @@ -3165,14 +3149,10 @@ export interface Routes { | ('ecobee_thermostat' | 'nest_thermostat') /** Unique identifier for the account associated with the device. */ connected_account_id: string - /** Deprecated. Use enabled_capabilities. */ + /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string /** Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */ @@ -3361,14 +3341,10 @@ export interface Routes { | ('ecobee_thermostat' | 'nest_thermostat') /** Unique identifier for the account associated with the device. */ connected_account_id: string - /** Deprecated. Use enabled_capabilities. */ + /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string /** Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */ @@ -3702,16 +3678,8 @@ export interface Routes { ) | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat') - /** Deprecated. Use enabled_capabilities. */ - capabilities_supported: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - supported_capabilities: Array< + capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > /** Properties of the device. */ @@ -4323,16 +4291,8 @@ export interface Routes { ) | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat') - /** Deprecated. Use enabled_capabilities. */ - capabilities_supported: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - supported_capabilities: Array< + capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > /** Properties of the device. */ @@ -5065,16 +5025,8 @@ export interface Routes { ) | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat') - /** Deprecated. Use enabled_capabilities. */ - capabilities_supported: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - supported_capabilities: Array< + capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > /** Properties of the device. */ @@ -5686,16 +5638,8 @@ export interface Routes { ) | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat') - /** Deprecated. Use enabled_capabilities. */ - capabilities_supported: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - supported_capabilities: Array< + capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > /** Properties of the device. */ @@ -6752,16 +6696,8 @@ export interface Routes { ) | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat') - /** Deprecated. Use enabled_capabilities. */ - capabilities_supported: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - supported_capabilities: Array< + capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > /** Properties of the device. */ @@ -7524,16 +7460,8 @@ export interface Routes { ) | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat') - /** Deprecated. Use enabled_capabilities. */ - capabilities_supported: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - supported_capabilities: Array< + capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > /** Properties of the device. */ @@ -8296,16 +8224,8 @@ export interface Routes { ) | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat') - /** Deprecated. Use enabled_capabilities. */ - capabilities_supported: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > - /** Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - enabled_capabilities: Array< - 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' - > /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */ - supported_capabilities: Array< + capabilities_supported: Array< 'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' > /** Properties of the device. */ diff --git a/src/lib/seam/connect/unstable/models/acs/credential.ts b/src/lib/seam/connect/unstable/models/acs/credential.ts index afe720e5..242c0d4f 100644 --- a/src/lib/seam/connect/unstable/models/acs/credential.ts +++ b/src/lib/seam/connect/unstable/models/acs/credential.ts @@ -16,7 +16,7 @@ export const acs_credential = z.object({ acs_credential_pool_id: z.string().uuid().optional(), acs_system_id: z.string().uuid(), display_name: z.string().nonempty(), - code: z.string().nullable(), + code: z.string().optional().nullable(), external_type: acs_credential_external_type, external_type_display_name: z.string(), created_at: z.string().datetime(), diff --git a/src/lib/seam/connect/unstable/models/devices/managed-device.ts b/src/lib/seam/connect/unstable/models/devices/managed-device.ts index 84b42421..9ea04423 100644 --- a/src/lib/seam/connect/unstable/models/devices/managed-device.ts +++ b/src/lib/seam/connect/unstable/models/devices/managed-device.ts @@ -95,16 +95,7 @@ export const common_device_properties = z.object({ export const managed_device = z.object({ device_id: z.string().uuid().describe('Unique identifier for the device.'), device_type: any_device_type.describe('Type of the device.'), - /** @deprecated use enabled_capabilities for same behavior */ capabilities_supported: z - .array(capabilities) - .describe('Deprecated. Use enabled_capabilities.'), - enabled_capabilities: z - .array(capabilities) - .describe( - 'Collection of capabilities that the device has enabled, reflecting its present configuration. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.', - ), - supported_capabilities: z .array(capabilities) .describe( 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.', diff --git a/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts b/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts index 80e84dce..62007fef 100644 --- a/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts +++ b/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts @@ -8,7 +8,6 @@ export const unmanaged_device = managed_device device_type: true, connected_account_id: true, capabilities_supported: true, - enabled_capabilities: true, workspace_id: true, errors: true, warnings: true,