From 7cc5d4b18443462168e0b7e1746c25962f254722 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 28 Jul 2025 20:21:09 +0000 Subject: [PATCH 1/2] feat: Update to @seamapi/types@1.477.0 --- package-lock.json | 8 +++--- package.json | 2 +- .../connect/routes/seam-http-endpoints.ts | 20 +++++++++++++++ .../customization-profiles.ts | 25 +++++++++++++++++++ 4 files changed, 50 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index ddcbd5e1..16bf319e 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.475.0", + "@seamapi/types": "1.477.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.475.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.475.0.tgz", - "integrity": "sha512-RN4whGBFxRrKDpmYfWJmV9oaFN1xh72VuKwgtDaoX4ENuYGHB49uul5EMfyO0+/VXrgnrtLXzWa3DnDPPVTrFg==", + "version": "1.477.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.477.0.tgz", + "integrity": "sha512-jB4c1B8ECUYpyT6kJYmCxzF4Pcr/5anTSbjYIrFJ45Hkjh5p2PPpDB4S3z9OvyYjXVPiY432d8Kzk2JeOFlOTg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 78516ad3..fc7dde20 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.475.0", + "@seamapi/types": "1.477.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 dc22ed0d..cf6df9aa 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -3944,6 +3944,11 @@ export class SeamHttpEndpoints { options?: WorkspacesCustomizationProfilesCreateOptions, ) => WorkspacesCustomizationProfilesCreateRequest { const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } return function workspacesCustomizationProfilesCreate( ...args: Parameters ): ReturnType { @@ -3960,6 +3965,11 @@ export class SeamHttpEndpoints { options?: WorkspacesCustomizationProfilesGetOptions, ) => WorkspacesCustomizationProfilesGetRequest { const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } return function workspacesCustomizationProfilesGet( ...args: Parameters ): ReturnType { @@ -3976,6 +3986,11 @@ export class SeamHttpEndpoints { options?: WorkspacesCustomizationProfilesListOptions, ) => WorkspacesCustomizationProfilesListRequest { const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } return function workspacesCustomizationProfilesList( ...args: Parameters ): ReturnType { @@ -3992,6 +4007,11 @@ export class SeamHttpEndpoints { options?: WorkspacesCustomizationProfilesUpdateOptions, ) => WorkspacesCustomizationProfilesUpdateRequest { const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } return function workspacesCustomizationProfilesUpdate( ...args: Parameters ): ReturnType { diff --git a/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts b/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts index 1db151ae..89e81eb0 100644 --- a/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts +++ b/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts @@ -48,6 +48,11 @@ export class SeamHttpWorkspacesCustomizationProfiles { 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) } @@ -174,6 +179,11 @@ export class SeamHttpWorkspacesCustomizationProfiles { parameters?: WorkspacesCustomizationProfilesCreateParameters, options: WorkspacesCustomizationProfilesCreateOptions = {}, ): WorkspacesCustomizationProfilesCreateRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } return new SeamHttpRequest(this, { pathname: '/workspaces/customization_profiles/create', method: 'POST', @@ -187,6 +197,11 @@ export class SeamHttpWorkspacesCustomizationProfiles { parameters?: WorkspacesCustomizationProfilesGetParameters, options: WorkspacesCustomizationProfilesGetOptions = {}, ): WorkspacesCustomizationProfilesGetRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } return new SeamHttpRequest(this, { pathname: '/workspaces/customization_profiles/get', method: 'POST', @@ -200,6 +215,11 @@ export class SeamHttpWorkspacesCustomizationProfiles { parameters?: WorkspacesCustomizationProfilesListParameters, options: WorkspacesCustomizationProfilesListOptions = {}, ): WorkspacesCustomizationProfilesListRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } return new SeamHttpRequest(this, { pathname: '/workspaces/customization_profiles/list', method: 'GET', @@ -213,6 +233,11 @@ export class SeamHttpWorkspacesCustomizationProfiles { parameters?: WorkspacesCustomizationProfilesUpdateParameters, options: WorkspacesCustomizationProfilesUpdateOptions = {}, ): WorkspacesCustomizationProfilesUpdateRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } return new SeamHttpRequest(this, { pathname: '/workspaces/customization_profiles/update', method: 'PATCH', From b2367fd737eeedbec41a3366204eb58557c8bb41 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 28 Jul 2025 20:23:00 +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 16bf319e..6f9b188c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.475.0" + "@seamapi/types": "^1.477.0" }, "peerDependenciesMeta": { "@seamapi/types": { diff --git a/package.json b/package.json index fc7dde20..bd0755b5 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.475.0" + "@seamapi/types": "^1.477.0" }, "peerDependenciesMeta": { "@seamapi/types": {