diff --git a/package-lock.json b/package-lock.json index 47c824b..9313139 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "zod": "^3.23.8" }, "devDependencies": { - "@seamapi/types": "1.340.1", + "@seamapi/types": "1.344.0", "@types/node": "^20.8.10", "ava": "^6.0.1", "c8": "^10.1.2", @@ -1052,9 +1052,9 @@ ] }, "node_modules/@seamapi/types": { - "version": "1.340.1", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.340.1.tgz", - "integrity": "sha512-oSW6QrdHKFMuLHyigPZWjnJBgN85fZnOmNvEZ/SPU7qqbcn6eh/+bwg1mnCh4riDZYCfXJlDlY06/KW0Vqynew==", + "version": "1.344.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.344.0.tgz", + "integrity": "sha512-VNNTazLhv46KVaeRXPY9A5QyuirkbC6BRPpAItxkK74Bajmu8iWw61At7zfk2+GKSxEWVHahxBsRNQfFRgR7FQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 094f177..2fd5707 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "zod": "^3.23.8" }, "devDependencies": { - "@seamapi/types": "1.340.1", + "@seamapi/types": "1.344.0", "@types/node": "^20.8.10", "ava": "^6.0.1", "c8": "^10.1.2", diff --git a/test/snapshots/seam-blueprint.test.ts.md b/test/snapshots/seam-blueprint.test.ts.md index f50db19..231dd39 100644 --- a/test/snapshots/seam-blueprint.test.ts.md +++ b/test/snapshots/seam-blueprint.test.ts.md @@ -10560,6 +10560,141 @@ Generated by [AVA](https://avajs.dev). targetResourceType: null, undocumentedMessage: '', }, + { + deprecationMessage: '', + description: 'A [thermostat\'s](https://docs.seam.co/latest/capability-guides/thermostats) reported temperature changed by at least 1 °C.', + draftMessage: '', + eventType: 'thermostat.temperature_changed', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + properties: [ + { + deprecationMessage: '', + description: 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).', + draftMessage: '', + format: 'id', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + jsonType: 'string', + name: 'connected_account_id', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: 'Date and time at which the event was created.', + draftMessage: '', + format: 'datetime', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + jsonType: 'string', + name: 'created_at', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: 'ID of the device.', + draftMessage: '', + format: 'id', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + jsonType: 'string', + name: 'device_id', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: 'ID of the event.', + draftMessage: '', + format: 'id', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + jsonType: 'string', + name: 'event_id', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: '', + draftMessage: '', + format: 'enum', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + jsonType: 'string', + name: 'event_type', + undocumentedMessage: '', + values: [ + { + deprecationMessage: '', + description: '', + draftMessage: '', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + name: 'thermostat.temperature_changed', + undocumentedMessage: '', + }, + ], + }, + { + deprecationMessage: '', + description: 'Date and time at which the event occurred.', + draftMessage: '', + format: 'datetime', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + jsonType: 'string', + name: 'occurred_at', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: 'Temperature, in °C, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).', + draftMessage: '', + format: 'number', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + jsonType: 'number', + name: 'temperature_celsius', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: 'Temperature, in °F, reported by the [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).', + draftMessage: '', + format: 'number', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + jsonType: 'number', + name: 'temperature_fahrenheit', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).', + draftMessage: '', + format: 'id', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + jsonType: 'string', + name: 'workspace_id', + undocumentedMessage: '', + }, + ], + resourceType: 'event', + routePath: '/thermostats', + targetResourceType: null, + undocumentedMessage: '', + }, { deprecationMessage: '', description: 'An [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) was deleted.', @@ -11385,8 +11520,7 @@ Generated by [AVA](https://avajs.dev). }, acs_credential: { deprecationMessage: '', - description: `Means by which a user gains access at an entrance.␊ - The \`acs_credential\` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.`, + description: 'Means by which a user gains access at an entrance. The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.', draftMessage: '', isDeprecated: false, isDraft: false, @@ -15884,6 +16018,16 @@ Generated by [AVA](https://avajs.dev). name: 'thermostat.temperature_reached_set_point', undocumentedMessage: '', }, + { + deprecationMessage: '', + description: '', + draftMessage: '', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + name: 'thermostat.temperature_changed', + undocumentedMessage: '', + }, { deprecationMessage: '', description: '', @@ -17196,8 +17340,7 @@ Generated by [AVA](https://avajs.dev). }, unmanaged_acs_credential: { deprecationMessage: '', - description: `Means by which a user gains access at an entrance.␊ - The \`unmanaged_acs_credential\` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.`, + description: 'Means by which a user gains access at an entrance. The `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.', draftMessage: '', isDeprecated: false, isDraft: false, @@ -25653,6 +25796,7 @@ Generated by [AVA](https://avajs.dev). authMethods: [ 'api_key', 'personal_access_token', + 'client_session_token', ], codeSamples: [], deprecationMessage: '', @@ -27538,6 +27682,16 @@ Generated by [AVA](https://avajs.dev). name: 'thermostat.temperature_reached_set_point', undocumentedMessage: '', }, + { + deprecationMessage: '', + description: '', + draftMessage: '', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + name: 'thermostat.temperature_changed', + undocumentedMessage: '', + }, { deprecationMessage: '', description: '', @@ -32203,6 +32357,117 @@ Generated by [AVA](https://avajs.dev). path: '/thermostats/schedules', subroutes: [], }, + { + endpoints: [ + { + authMethods: [ + 'api_key', + 'personal_access_token', + ], + codeSamples: [], + deprecationMessage: '', + description: '', + draftMessage: '', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + name: 'hvac_mode_adjusted', + path: '/thermostats/simulate/hvac_mode_adjusted', + request: { + methods: [ + 'POST', + ], + parameters: [], + preferredMethod: 'POST', + semanticMethod: 'POST', + }, + response: { + description: 'OK', + responseType: 'void', + }, + title: '', + undocumentedMessage: '', + workspaceScope: 'required', + }, + { + authMethods: [ + 'api_key', + 'personal_access_token', + ], + codeSamples: [], + deprecationMessage: '', + description: '', + draftMessage: '', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + name: 'temperature_reached', + path: '/thermostats/simulate/temperature_reached', + request: { + methods: [ + 'POST', + ], + parameters: [ + { + deprecationMessage: '', + description: '', + draftMessage: '', + format: 'id', + isDeprecated: false, + isDraft: false, + isRequired: true, + isUndocumented: false, + jsonType: 'string', + name: 'device_id', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: '', + draftMessage: '', + format: 'number', + isDeprecated: false, + isDraft: false, + isRequired: false, + isUndocumented: false, + jsonType: 'number', + name: 'temperature_celsius', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: '', + draftMessage: '', + format: 'number', + isDeprecated: false, + isDraft: false, + isRequired: false, + isUndocumented: false, + jsonType: 'number', + name: 'temperature_fahrenheit', + undocumentedMessage: '', + }, + ], + preferredMethod: 'POST', + semanticMethod: 'POST', + }, + response: { + description: 'OK', + responseType: 'void', + }, + title: '', + undocumentedMessage: '', + workspaceScope: 'required', + }, + ], + isDeprecated: false, + isDraft: false, + isUndocumented: false, + name: 'simulate', + namespace: null, + path: '/thermostats/simulate', + subroutes: [], + }, { endpoints: [ { diff --git a/test/snapshots/seam-blueprint.test.ts.snap b/test/snapshots/seam-blueprint.test.ts.snap index 46fcd5a..f588a09 100644 Binary files a/test/snapshots/seam-blueprint.test.ts.snap and b/test/snapshots/seam-blueprint.test.ts.snap differ