diff --git a/package-lock.json b/package-lock.json index 846c857d..ac22eb53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "zod": "^3.23.8" }, "devDependencies": { - "@seamapi/types": "1.294.1", + "@seamapi/types": "1.302.0", "@types/node": "^20.8.10", "ava": "^6.0.1", "c8": "^10.1.2", @@ -1052,11 +1052,10 @@ ] }, "node_modules/@seamapi/types": { - "version": "1.294.1", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.294.1.tgz", - "integrity": "sha512-/a52eBDPurKJ/cgQYjBOsv31EhgnxlpXkrJhBQzX9AWeYVu42c9e7CFvill1ztVhGBzOaEnyt2UBh7X7wxdqHA==", + "version": "1.302.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.302.0.tgz", + "integrity": "sha512-nIcb26cEhy4sNEtgwWLhzPaprFdUWfpiOEx3OaUP8B/wgb2pXsyNDOFmFX4rhjX5CGgC/3zd1c4RrfE9AER0FA==", "dev": true, - "license": "MIT", "engines": { "node": ">=18.12.0", "npm": ">= 9.0.0" diff --git a/package.json b/package.json index bf97e67f..cd62cbfe 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "zod": "^3.23.8" }, "devDependencies": { - "@seamapi/types": "1.294.1", + "@seamapi/types": "1.302.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 3b595c48..85226455 100644 --- a/test/snapshots/seam-blueprint.test.ts.md +++ b/test/snapshots/seam-blueprint.test.ts.md @@ -616,7 +616,7 @@ Generated by [AVA](https://avajs.dev). }, { deprecationMessage: '', - description: '', + description: 'Errors associated with the `acs_credential`.', draftMessage: '', format: 'list', isDeprecated: false, @@ -883,7 +883,7 @@ Generated by [AVA](https://avajs.dev). }, { deprecationMessage: '', - description: '', + description: 'Warnings associated with the `acs_credential`.', draftMessage: '', format: 'list', isDeprecated: false, @@ -3302,6 +3302,9 @@ Generated by [AVA](https://avajs.dev). { name: 'salto', }, + { + name: 'salto_ks', + }, { name: 'lockly', }, @@ -8086,6 +8089,99 @@ Generated by [AVA](https://avajs.dev). title: 'Create a Credential for an ACS User', undocumentedMessage: '', }, + { + codeSamples: [], + deprecationMessage: '', + description: 'Creates a new offline [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) for a specified [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).', + draftMessage: '', + isDeprecated: false, + isDraft: false, + isUndocumented: true, + name: 'create_offline_code', + path: '/acs/credentials/create_offline_code', + request: { + methods: [ + 'POST', + ], + parameters: [ + { + deprecationMessage: '', + description: 'ID of the ACS user to whom the new credential belongs.', + draftMessage: '', + format: 'id', + isDeprecated: false, + isDraft: false, + isRequired: true, + isUndocumented: false, + jsonType: 'string', + name: 'acs_user_id', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: 'IDs of the [`acs_entrance`s](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) for which the new credential grants access.', + draftMessage: '', + format: 'id', + isDeprecated: false, + isDraft: false, + isRequired: false, + isUndocumented: false, + jsonType: 'string', + name: 'allowed_acs_entrance_id', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: 'Date and time at which the validity of the new credential ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.', + draftMessage: '', + format: 'datetime', + isDeprecated: false, + isDraft: false, + isRequired: false, + isUndocumented: false, + jsonType: 'string', + name: 'ends_at', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: 'Indicates whether the code is one-time-use or reusable.', + draftMessage: '', + format: 'boolean', + isDeprecated: false, + isDraft: false, + isRequired: false, + isUndocumented: false, + jsonType: 'boolean', + name: 'is_one_time_use', + undocumentedMessage: '', + }, + { + deprecationMessage: '', + description: 'Date and time at which the validity of the new credential starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', + draftMessage: '', + format: 'datetime', + isDeprecated: false, + isDraft: false, + isRequired: false, + isUndocumented: false, + jsonType: 'string', + name: 'starts_at', + undocumentedMessage: '', + }, + ], + preferredMethod: 'POST', + semanticMethod: 'POST', + }, + response: { + description: 'OK', + resourceType: 'acs_credential', + responseKey: 'acs_credential', + responseType: 'resource', + }, + title: 'Create an Offline Credential for an ACS User', + undocumentedMessage: 'Unreleased.', + }, { codeSamples: [], deprecationMessage: '', @@ -9040,7 +9136,7 @@ Generated by [AVA](https://avajs.dev). parameters: [ { deprecationMessage: '', - description: '`starts_at` and `ends_at` timestamps for the new `acs_user`\'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`. Only applicable to Salto KS access control systems.', + description: '`starts_at` and `ends_at` timestamps for the new `acs_user`\'s access. If you specify an `access_schedule`, you may include both `starts_at` and `ends_at`. `starts_at` defaults to the current time if not provided. `ends_at` is optional and must be a time in the future and after `starts_at`.', draftMessage: '', format: 'object', isDeprecated: false, @@ -9597,7 +9693,7 @@ Generated by [AVA](https://avajs.dev). parameters: [ { deprecationMessage: '', - description: '`starts_at` and `ends_at` timestamps for the `acs_user`\'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`. Only applicable to Salto KS access control systems.', + description: '`starts_at` and `ends_at` timestamps for the `acs_user`\'s access. If you specify an `access_schedule`, you must include both `starts_at` and `ends_at`. `ends_at` must be a time in the future and after `starts_at`.', draftMessage: '', format: 'object', isDeprecated: false, @@ -11032,12 +11128,12 @@ Generated by [AVA](https://avajs.dev). endpoints: [ { codeSamples: [], - deprecationMessage: '', + deprecationMessage: 'Deleting a device is no longer supported and will be removed.', description: '', draftMessage: '', isDeprecated: false, isDraft: false, - isUndocumented: false, + isUndocumented: true, name: 'delete', path: '/devices/delete', request: { @@ -11067,7 +11163,7 @@ Generated by [AVA](https://avajs.dev). responseType: 'void', }, title: '', - undocumentedMessage: '', + undocumentedMessage: 'Deleting a device is no longer supported and will be removed.', }, { codeSamples: [], @@ -15387,6 +15483,33 @@ Generated by [AVA](https://avajs.dev). title: 'Set the Fan Mode Setting', undocumentedMessage: '', }, + { + codeSamples: [], + deprecationMessage: '', + description: 'Sets the [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings) for a specified [thermostat](https://docs.seam.co/latest/capability-guides/thermostats).', + draftMessage: '', + isDeprecated: false, + isDraft: false, + isUndocumented: false, + name: 'set_hvac_mode', + path: '/thermostats/set_hvac_mode', + request: { + methods: [ + 'POST', + ], + parameters: [], + preferredMethod: 'POST', + semanticMethod: 'POST', + }, + response: { + description: 'OK', + resourceType: 'action_attempt', + responseKey: 'action_attempt', + responseType: 'resource', + }, + title: 'Set the HVAC Mode', + undocumentedMessage: '', + }, { codeSamples: [], deprecationMessage: '', diff --git a/test/snapshots/seam-blueprint.test.ts.snap b/test/snapshots/seam-blueprint.test.ts.snap index 990fb548..1bfc70c6 100644 Binary files a/test/snapshots/seam-blueprint.test.ts.snap and b/test/snapshots/seam-blueprint.test.ts.snap differ