diff --git a/package-lock.json b/package-lock.json index 1e4ae7d7..9c5b19f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@seamapi/blueprint": "^1.13.2", "@seamapi/fake-seam-connect": "^2.0.4", "@seamapi/smith": "^1.2.0", - "@seamapi/types": "1.1207.0", + "@seamapi/types": "1.1219.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", @@ -1119,9 +1119,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1207.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1207.0.tgz", - "integrity": "sha512-lV+b/ROujSsWJtooz5e19tOjDuoycyV7c9VWw/6ctW/HX0ZJG4WxXWOvpr/LdnKej8+kfGNOH37FbLbhA68zNA==", + "version": "1.1219.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1219.0.tgz", + "integrity": "sha512-Kkvyj/nx9BA+WthNZquD0Q9YatLhnHs06N1Cnieb/EsvoAx3aDZi08uNGmJ8xuYIF+EYZqKk0GdGhyZn6nrTnQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 34b4e6c4..49b5cf7d 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "@seamapi/blueprint": "^1.13.2", "@seamapi/fake-seam-connect": "^2.0.4", "@seamapi/smith": "^1.2.0", - "@seamapi/types": "1.1207.0", + "@seamapi/types": "1.1219.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", diff --git a/src/lib/resources/access-code.ts b/src/lib/resources/access-code.ts index ce04357c..dc44fed1 100644 --- a/src/lib/resources/access-code.ts +++ b/src/lib/resources/access-code.ts @@ -810,6 +810,11 @@ export type AccessCode = { */ created_at: string + /** + * Indicates whether the access code may still unlock the device while Seam removes it, based on the last state Seam observed. `false` means the device has already stopped accepting the code, for example, because a natively scheduled code passed its `ends_at`, and only cleanup remains. + */ + is_code_usable: boolean + /** * Detailed description of the mutation. */ diff --git a/src/lib/resources/device-provider.ts b/src/lib/resources/device-provider.ts index 11c68338..947f7721 100644 --- a/src/lib/resources/device-provider.ts +++ b/src/lib/resources/device-provider.ts @@ -146,6 +146,7 @@ export type DeviceProvider = { | 'salto_space' | 'sensi' | 'sensibo' + | 'cielo' | 'keynest' | 'korelock' | 'keyincode' diff --git a/src/lib/resources/device.ts b/src/lib/resources/device.ts index 6b5061ec..1a7d043c 100644 --- a/src/lib/resources/device.ts +++ b/src/lib/resources/device.ts @@ -234,6 +234,7 @@ export type Device = { | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' + | 'cielo_thermostat' | 'smartthings_thermostat' | 'ios_phone' | 'android_phone' @@ -1055,6 +1056,33 @@ export type Device = { device_name?: string | undefined } | undefined + /** + * Metadata for a Cielo device. + */ + cielo_metadata?: + | { + /** + * ID of the air conditioner or heat pump model that the Cielo device is set up to control. + */ + appliance_id?: string | undefined + /** + * Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. + */ + cielo_device_type?: string | undefined + /** + * Name of the device in the Cielo Home app. + */ + device_name?: string | undefined + /** + * MAC address of the Cielo device. + */ + mac_address?: string | undefined + /** + * Temperature unit that the Cielo device displays: `C` or `F`. + */ + temperature_unit?: string | undefined + } + | undefined /** * Metadata for a ControlByWeb device. */ diff --git a/src/lib/resources/event.ts b/src/lib/resources/event.ts index 81d03517..d848c80e 100644 --- a/src/lib/resources/event.ts +++ b/src/lib/resources/event.ts @@ -40,7 +40,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -115,7 +116,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -171,7 +173,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -247,7 +250,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -323,7 +327,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -402,7 +407,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -483,7 +489,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -539,7 +546,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -590,7 +598,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -761,7 +770,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -932,7 +942,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -987,7 +998,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1158,7 +1170,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1329,7 +1342,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1380,7 +1394,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1431,7 +1446,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1487,7 +1503,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1538,7 +1555,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1709,7 +1727,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1760,7 +1779,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1811,7 +1831,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1843,7 +1864,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1875,7 +1897,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1907,7 +1930,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1944,7 +1968,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -1981,7 +2006,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2021,7 +2047,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2062,7 +2089,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2111,7 +2139,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2156,7 +2185,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2197,7 +2227,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2238,7 +2269,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2283,7 +2315,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2328,7 +2361,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2369,7 +2403,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2410,7 +2445,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2446,7 +2482,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2482,7 +2519,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2598,7 +2636,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2639,7 +2678,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2680,7 +2720,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2721,7 +2762,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2762,7 +2804,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2803,7 +2846,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2844,7 +2888,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2885,7 +2930,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2926,7 +2972,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -2967,7 +3014,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3008,7 +3056,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3049,7 +3098,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3081,7 +3131,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3126,7 +3177,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3168,7 +3220,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3245,7 +3298,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3282,7 +3336,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3323,7 +3378,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3360,7 +3416,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3437,7 +3494,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3482,7 +3540,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3532,7 +3591,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3582,7 +3642,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3632,7 +3693,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3682,7 +3744,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3732,7 +3795,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3782,7 +3846,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3832,7 +3897,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3883,7 +3949,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3915,7 +3982,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -3965,7 +4033,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4015,7 +4084,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4065,7 +4135,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4115,7 +4186,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4165,7 +4237,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4296,12 +4369,16 @@ export type SeamEvent = * Error code associated with the disconnection event, if any. */ error_code: - 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' + | 'account_disconnected' + | 'hub_disconnected' + | 'device_disconnected' + | 'bridge_disconnected' /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4432,12 +4509,16 @@ export type SeamEvent = * Error code associated with the disconnection event, if any. */ error_code: - 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' + | 'account_disconnected' + | 'hub_disconnected' + | 'device_disconnected' + | 'bridge_disconnected' /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4487,7 +4568,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4495,6 +4577,14 @@ export type SeamEvent = event_type: 'device.tampered' + /** + * Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state. + */ + is_casing_tampered_with?: boolean | undefined + /** + * Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state. + */ + is_detached_from_mounting_plate?: boolean | undefined /** * Date and time at which the event occurred. */ @@ -4545,7 +4635,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4605,7 +4696,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4655,7 +4747,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4709,7 +4802,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4759,7 +4853,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4809,7 +4904,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4859,7 +4955,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -4909,7 +5006,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5039,7 +5137,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5089,7 +5188,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5219,7 +5319,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5269,7 +5370,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5319,7 +5421,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5449,7 +5552,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5499,7 +5603,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5589,7 +5694,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5674,7 +5780,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5747,7 +5854,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5820,7 +5928,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5870,7 +5979,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5920,7 +6030,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -5975,7 +6086,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6042,7 +6154,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6114,7 +6227,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6190,7 +6304,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6274,7 +6389,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6334,7 +6450,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6399,7 +6516,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6449,7 +6567,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6519,7 +6638,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6567,7 +6687,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6604,7 +6725,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6653,7 +6775,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ @@ -6702,7 +6825,8 @@ export type SeamEvent = /** * Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined + event_description: string + /** * ID of the event. */ diff --git a/src/lib/resources/instant-key.ts b/src/lib/resources/instant-key.ts index fae5fe42..5f59edaf 100644 --- a/src/lib/resources/instant-key.ts +++ b/src/lib/resources/instant-key.ts @@ -6,7 +6,7 @@ /** * Represents a Seam Instant Key. For issuing Bluetooth mobile keys, Instant Keys are the fastest way to share access. With a single API call, you can create a mobile key and send it through text or email or embed it in your own app. * - * There’s no app to install, nor account to create. Your user just taps a link and gets a lightweight, native-feeling experience using iOS App Clip or Instant Apps on Android. Further, Instant Keys work offline, so even in areas with poor cellular or Wi-Fi, like elevator banks or concrete-walled hallways, the Instant Keys still work. + * There’s no account to create. Your user just taps a link and gets a lightweight, native-feeling experience. On iOS, the key opens in an App Clip, so there’s no app to install. On Android, Google has discontinued Google Play Instant, so the first time your user opens an Instant Key they must install the Seam Instant Key app from the Google Play Store. Further, Instant Keys work offline, so even in areas with poor cellular or Wi-Fi, like elevator banks or concrete-walled hallways, the Instant Keys still work. */ export type InstantKey = { /** diff --git a/src/lib/resources/unmanaged-device.ts b/src/lib/resources/unmanaged-device.ts index 410f67b0..2949efbc 100644 --- a/src/lib/resources/unmanaged-device.ts +++ b/src/lib/resources/unmanaged-device.ts @@ -177,6 +177,7 @@ export type UnmanagedDevice = { | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' + | 'cielo_thermostat' | 'smartthings_thermostat' | 'ios_phone' | 'android_phone' diff --git a/src/lib/routes/connect-webviews/connect-webviews.ts b/src/lib/routes/connect-webviews/connect-webviews.ts index a6f6cb2a..62ef22de 100644 --- a/src/lib/routes/connect-webviews/connect-webviews.ts +++ b/src/lib/routes/connect-webviews/connect-webviews.ts @@ -323,6 +323,7 @@ export type ConnectWebviewsCreateParameters = { | 'salto_space' | 'sensi' | 'sensibo' + | 'cielo' | 'keynest' | 'korelock' | 'keyincode' diff --git a/src/lib/routes/devices/devices.ts b/src/lib/routes/devices/devices.ts index ffc7e538..e035afa3 100644 --- a/src/lib/routes/devices/devices.ts +++ b/src/lib/routes/devices/devices.ts @@ -385,6 +385,7 @@ export type DevicesListParameters = { | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' + | 'cielo_thermostat' | 'smartthings_thermostat' | 'ios_phone' | 'android_phone' @@ -448,6 +449,7 @@ export type DevicesListParameters = { | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' + | 'cielo_thermostat' | 'smartthings_thermostat' | 'ios_phone' | 'android_phone' @@ -509,6 +511,7 @@ export type DevicesListParameters = { | 'korelock' | 'lockly' | 'minut' + | 'cielo' | 'nest' | 'noiseaware' | 'sensi' diff --git a/src/lib/routes/devices/unmanaged/unmanaged.ts b/src/lib/routes/devices/unmanaged/unmanaged.ts index 676e22af..231667ec 100644 --- a/src/lib/routes/devices/unmanaged/unmanaged.ts +++ b/src/lib/routes/devices/unmanaged/unmanaged.ts @@ -332,6 +332,7 @@ export type DevicesUnmanagedListParameters = { | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' + | 'cielo_thermostat' | 'smartthings_thermostat' | 'ios_phone' | 'android_phone' @@ -395,6 +396,7 @@ export type DevicesUnmanagedListParameters = { | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' + | 'cielo_thermostat' | 'smartthings_thermostat' | 'ios_phone' | 'android_phone' @@ -456,6 +458,7 @@ export type DevicesUnmanagedListParameters = { | 'korelock' | 'lockly' | 'minut' + | 'cielo' | 'nest' | 'noiseaware' | 'sensi' diff --git a/src/lib/routes/events/events.ts b/src/lib/routes/events/events.ts index 4b4994c4..961f8af9 100644 --- a/src/lib/routes/events/events.ts +++ b/src/lib/routes/events/events.ts @@ -453,6 +453,9 @@ export type EventsListParameters = RequireAtLeastOne< | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' + | 'pool.temperature_changed' + | 'pool.temperature_reached_set_point' + | 'pool.manually_adjusted' | 'device.name_changed' | 'camera.activated' | 'device.doorbell_rang' @@ -576,6 +579,9 @@ export type EventsListParameters = RequireAtLeastOne< | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' + | 'pool.temperature_changed' + | 'pool.temperature_reached_set_point' + | 'pool.manually_adjusted' | 'device.name_changed' | 'camera.activated' | 'device.doorbell_rang' diff --git a/src/lib/routes/thermostats/thermostats.ts b/src/lib/routes/thermostats/thermostats.ts index d2dc14a8..35cfc80c 100644 --- a/src/lib/routes/thermostats/thermostats.ts +++ b/src/lib/routes/thermostats/thermostats.ts @@ -805,6 +805,7 @@ export type ThermostatsListParameters = { | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' + | 'cielo_thermostat' | 'smartthings_thermostat' | undefined /** @@ -818,6 +819,7 @@ export type ThermostatsListParameters = { | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' + | 'cielo_thermostat' | 'smartthings_thermostat' > | undefined @@ -827,6 +829,7 @@ export type ThermostatsListParameters = { manufacturer?: | 'ecobee' | 'honeywell_resideo' + | 'cielo' | 'nest' | 'sensi' | 'sensibo'