diff --git a/package-lock.json b/package-lock.json index 8e6adb4a..0b396161 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@seamapi/blueprint": "^1.10.0", "@seamapi/fake-seam-connect": "^2.0.4", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1137.0", + "@seamapi/types": "1.1142.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", @@ -1133,9 +1133,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1137.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1137.0.tgz", - "integrity": "sha512-AoIq3IlMsWfq8AKmezpcKydBvL6jKl/aBS0YkrrT6H3+qqksfQO1aXzJIOXGiXZ6RcXLAUwH74hs2uyLxlT2Iw==", + "version": "1.1142.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1142.0.tgz", + "integrity": "sha512-9KjUC6yfz2jzICw8M4Fpb0MsIgTl1MQSU3ifixxY7RM7ALeJy5CVSP1PNceTJiacBraZWi6/Ufyvv8GFizP7Tg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index f9d3f1e6..7553742e 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "@seamapi/blueprint": "^1.10.0", "@seamapi/fake-seam-connect": "^2.0.4", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1137.0", + "@seamapi/types": "1.1142.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", diff --git a/src/lib/resources/space.ts b/src/lib/resources/space.ts index f03dbb18..d5565166 100644 --- a/src/lib/resources/space.ts +++ b/src/lib/resources/space.ts @@ -92,22 +92,45 @@ export type Space = { /** * Indicates that the space is being deleted. Seam removes it, revokes its access grants, and detaches its devices and entrances shortly. */ - { - /** - * Date and time at which Seam created the warning. - */ - created_at: string + | { + /** + * Date and time at which Seam created the warning. + */ + created_at: string - /** - * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. - */ - message: string + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + message: string - /** - * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. - */ - warning_code: 'being_deleted' - } + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + */ + warning_code: 'being_deleted' + } /** + * Indicates that Seam could not apply the noise sensor automation to one or more noise sensors in the space, for example because their settings keep changing back after Seam re-applies it, Seam does not know the sensor's time zone yet, or the sensor is shared with spaces that configure it differently. + */ + | { + /** + * Date and time at which Seam created the warning. + */ + created_at: string + + /** + * IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. + */ + device_ids: Array + + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + message: string + + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + */ + warning_code: 'noise_sensor_configuration_mismatch' + } > /** diff --git a/src/lib/routes/customers/customers.ts b/src/lib/routes/customers/customers.ts index e768aa26..6a599901 100644 --- a/src/lib/routes/customers/customers.ts +++ b/src/lib/routes/customers/customers.ts @@ -938,6 +938,10 @@ export type CustomersCreatePortalParameters = { * Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined + /** + * Indicates whether the customer can customize the sensor automation rules for their properties. + */ + allow_sensor_automation_rule_customization?: boolean | undefined /** * Indicates whether the customer can customize the sound automation rules for their properties. */