From 4778d5e8161f46013371c40a48beebfb70ebcc16 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 24 Jul 2025 20:43:02 +0000 Subject: [PATCH 1/2] feat: Update to @seamapi/types@1.469.0 --- package-lock.json | 8 ++++---- package.json | 2 +- .../connect/routes/seam-http-endpoints.ts | 20 ------------------- .../daily-programs/daily-programs.ts | 20 ------------------- .../connect/routes/thermostats/thermostats.ts | 5 ----- 5 files changed, 5 insertions(+), 50 deletions(-) diff --git a/package-lock.json b/package-lock.json index 816b889c..01b8a07e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@seamapi/blueprint": "^0.51.1", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.4.4", - "@seamapi/types": "1.468.0", + "@seamapi/types": "1.469.0", "@swc/core": "^1.11.29", "@types/eslint": "^8.44.2", "@types/jsonwebtoken": "^9.0.6", @@ -1216,9 +1216,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.468.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.468.0.tgz", - "integrity": "sha512-0GSeUx34aGgiu8FZR8GxvXpOS+nkyqiCEb2HPt/YSlDgghc1rb7ZYe8KtLgRNzbCgvgnySky0INNgCqcoGgF/Q==", + "version": "1.469.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.469.0.tgz", + "integrity": "sha512-PFbPByD/o8aXJw33LZq/b0Dz1FGKyWgSu1jafcrE+JB/NQysFOt9vIGRNCbMn9HMykGdxNvcpLeqHkGfI++Kmg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index c614749a..d87b9b43 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "@seamapi/blueprint": "^0.51.1", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.4.4", - "@seamapi/types": "1.468.0", + "@seamapi/types": "1.469.0", "@swc/core": "^1.11.29", "@types/eslint": "^8.44.2", "@types/jsonwebtoken": "^9.0.6", diff --git a/src/lib/seam/connect/routes/seam-http-endpoints.ts b/src/lib/seam/connect/routes/seam-http-endpoints.ts index ef4b8b2c..6390a948 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -3347,11 +3347,6 @@ export class SeamHttpEndpoints { options?: ThermostatsUpdateWeeklyProgramOptions, ) => ThermostatsUpdateWeeklyProgramRequest { const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return function thermostatsUpdateWeeklyProgram( ...args: Parameters ): ReturnType { @@ -3365,11 +3360,6 @@ export class SeamHttpEndpoints { options?: ThermostatsDailyProgramsCreateOptions, ) => ThermostatsDailyProgramsCreateRequest { const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return function thermostatsDailyProgramsCreate( ...args: Parameters ): ReturnType { @@ -3383,11 +3373,6 @@ export class SeamHttpEndpoints { options?: ThermostatsDailyProgramsDeleteOptions, ) => ThermostatsDailyProgramsDeleteRequest { const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return function thermostatsDailyProgramsDelete( ...args: Parameters ): ReturnType { @@ -3401,11 +3386,6 @@ export class SeamHttpEndpoints { options?: ThermostatsDailyProgramsUpdateOptions, ) => ThermostatsDailyProgramsUpdateRequest { const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return function thermostatsDailyProgramsUpdate( ...args: Parameters ): ReturnType { diff --git a/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts b/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts index edfe8607..3406bc03 100644 --- a/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +++ b/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts @@ -44,11 +44,6 @@ export class SeamHttpThermostatsDailyPrograms { constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } this.client = 'client' in options ? options.client : createClient(options) this.defaults = limitToSeamHttpRequestOptions(options) } @@ -175,11 +170,6 @@ export class SeamHttpThermostatsDailyPrograms { parameters?: ThermostatsDailyProgramsCreateParameters, options: ThermostatsDailyProgramsCreateOptions = {}, ): ThermostatsDailyProgramsCreateRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return new SeamHttpRequest(this, { pathname: '/thermostats/daily_programs/create', method: 'POST', @@ -193,11 +183,6 @@ export class SeamHttpThermostatsDailyPrograms { parameters?: ThermostatsDailyProgramsDeleteParameters, options: ThermostatsDailyProgramsDeleteOptions = {}, ): ThermostatsDailyProgramsDeleteRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return new SeamHttpRequest(this, { pathname: '/thermostats/daily_programs/delete', method: 'POST', @@ -211,11 +196,6 @@ export class SeamHttpThermostatsDailyPrograms { parameters?: ThermostatsDailyProgramsUpdateParameters, options: ThermostatsDailyProgramsUpdateOptions = {}, ): ThermostatsDailyProgramsUpdateRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return new SeamHttpRequest(this, { pathname: '/thermostats/daily_programs/update', method: 'PATCH', diff --git a/src/lib/seam/connect/routes/thermostats/thermostats.ts b/src/lib/seam/connect/routes/thermostats/thermostats.ts index d5cc73ae..da325fcd 100644 --- a/src/lib/seam/connect/routes/thermostats/thermostats.ts +++ b/src/lib/seam/connect/routes/thermostats/thermostats.ts @@ -373,11 +373,6 @@ export class SeamHttpThermostats { parameters?: ThermostatsUpdateWeeklyProgramParameters, options: ThermostatsUpdateWeeklyProgramOptions = {}, ): ThermostatsUpdateWeeklyProgramRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return new SeamHttpRequest(this, { pathname: '/thermostats/update_weekly_program', method: 'POST', From d158dcb350b9325c487b1edb8127671c12b36ecf Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 24 Jul 2025 20:44:06 +0000 Subject: [PATCH 2/2] ci: Generate code --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 01b8a07e..53a8db58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.468.0" + "@seamapi/types": "^1.469.0" }, "peerDependenciesMeta": { "@seamapi/types": { diff --git a/package.json b/package.json index d87b9b43..6d895730 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.468.0" + "@seamapi/types": "^1.469.0" }, "peerDependenciesMeta": { "@seamapi/types": {