From e7fd9a868b8610f3d8e80bf1eea1897f3e0ce16c Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 21 Oct 2025 02:02:09 +0000 Subject: [PATCH 1/2] feat: Update to @seamapi/types@1.624.0 --- package-lock.json | 8 +-- package.json | 2 +- .../connect/routes/seam-http-endpoints.ts | 27 ++++++++++ .../seam/customer/v1/connectors/connectors.ts | 52 ++++++++++++++++++- 4 files changed, 83 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 010aef4b..d718d1e8 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.5.2", - "@seamapi/types": "1.623.0", + "@seamapi/types": "1.624.0", "@swc/core": "^1.11.29", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^22.15.21", @@ -1371,9 +1371,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.623.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.623.0.tgz", - "integrity": "sha512-T2kqZFWnra9uiEnm6GIeum0PejJ5TXhbEmfi/anh9OkI4SmHAgDBi6Mncb45WL7EdOAXxXbdhNqfnf4i4ubdJQ==", + "version": "1.624.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.624.0.tgz", + "integrity": "sha512-yiwYfjWN5+fPZLi4XUpv2BpMTA+BKIb38aQCSseNGBVn96FTYtuqR4ulLs6Mjx1VKKSMSteLNHgTAt5AwRohvA==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index b9d16223..dd3aae13 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,7 @@ "@seamapi/blueprint": "^0.51.1", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.623.0", + "@seamapi/types": "1.624.0", "@swc/core": "^1.11.29", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^22.15.21", diff --git a/src/lib/seam/connect/routes/seam-http-endpoints.ts b/src/lib/seam/connect/routes/seam-http-endpoints.ts index 58cf3762..a3d48630 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -603,6 +603,9 @@ import { type SeamCustomerV1ConnectorsCreateOptions, type SeamCustomerV1ConnectorsCreateParameters, type SeamCustomerV1ConnectorsCreateRequest, + type SeamCustomerV1ConnectorsListOptions, + type SeamCustomerV1ConnectorsListParameters, + type SeamCustomerV1ConnectorsListRequest, type SeamCustomerV1ConnectorsSyncOptions, type SeamCustomerV1ConnectorsSyncParameters, type SeamCustomerV1ConnectorsSyncRequest, @@ -3117,6 +3120,11 @@ export class SeamHttpEndpoints { options?: SeamCustomerV1ConnectorsCreateOptions, ) => SeamCustomerV1ConnectorsCreateRequest { const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } return function seamCustomerV1ConnectorsCreate( ...args: Parameters ): ReturnType { @@ -3125,6 +3133,24 @@ export class SeamHttpEndpoints { } } + get '/seam/customer/v1/connectors/list'(): ( + parameters?: SeamCustomerV1ConnectorsListParameters, + options?: SeamCustomerV1ConnectorsListOptions, + ) => SeamCustomerV1ConnectorsListRequest { + const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return function seamCustomerV1ConnectorsList( + ...args: Parameters + ): ReturnType { + const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults) + return seam.list(...args) + } + } + get '/seam/customer/v1/connectors/sync'(): ( parameters?: SeamCustomerV1ConnectorsSyncParameters, options?: SeamCustomerV1ConnectorsSyncOptions, @@ -4491,6 +4517,7 @@ export type SeamHttpEndpointQueryPaths = | '/seam/console/v1/timelines/get' | '/seam/customer/v1/automation_runs/list' | '/seam/customer/v1/automations/get' + | '/seam/customer/v1/connectors/list' | '/seam/customer/v1/events/list' | '/seam/customer/v1/portals/get' | '/seam/customer/v1/reservations/get' diff --git a/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts b/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts index 863bb5a3..857f75d4 100644 --- a/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts +++ b/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts @@ -3,7 +3,11 @@ * Do not edit this file or add other files to this directory. */ -import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect' +import type { + RouteRequestBody, + RouteRequestParams, + RouteResponse, +} from '@seamapi/types/connect' import { seamApiLtsVersion } from 'lib/lts-version.js' import { @@ -170,6 +174,11 @@ export class SeamHttpSeamCustomerV1Connectors { parameters?: SeamCustomerV1ConnectorsCreateParameters, options: SeamCustomerV1ConnectorsCreateOptions = {}, ): SeamCustomerV1ConnectorsCreateRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } return new SeamHttpRequest(this, { pathname: '/seam/customer/v1/connectors/create', method: 'POST', @@ -179,6 +188,24 @@ export class SeamHttpSeamCustomerV1Connectors { }) } + list( + parameters?: SeamCustomerV1ConnectorsListParameters, + options: SeamCustomerV1ConnectorsListOptions = {}, + ): SeamCustomerV1ConnectorsListRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return new SeamHttpRequest(this, { + pathname: '/seam/customer/v1/connectors/list', + method: 'GET', + params: parameters, + responseKey: 'connectors', + options, + }) + } + sync( parameters?: SeamCustomerV1ConnectorsSyncParameters, options: SeamCustomerV1ConnectorsSyncOptions = {}, @@ -216,6 +243,29 @@ export type SeamCustomerV1ConnectorsCreateRequest = SeamHttpRequest< export interface SeamCustomerV1ConnectorsCreateOptions {} +export type SeamCustomerV1ConnectorsListParameters = + RouteRequestParams<'/seam/customer/v1/connectors/list'> + +/** + * @deprecated Use SeamCustomerV1ConnectorsListParameters instead. + */ +export type SeamCustomerV1ConnectorsListParams = + SeamCustomerV1ConnectorsListParameters + +/** + * @deprecated Use SeamCustomerV1ConnectorsListRequest instead. + */ +export type SeamCustomerV1ConnectorsListResponse = SetNonNullable< + Required> +> + +export type SeamCustomerV1ConnectorsListRequest = SeamHttpRequest< + SeamCustomerV1ConnectorsListResponse, + 'connectors' +> + +export interface SeamCustomerV1ConnectorsListOptions {} + export type SeamCustomerV1ConnectorsSyncParameters = RouteRequestBody<'/seam/customer/v1/connectors/sync'> From c5ce551b9835dfba0ac90c98e51513d5bd689fe2 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 21 Oct 2025 02:04:51 +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 d718d1e8..53713161 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,7 +49,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.623.0" + "@seamapi/types": "^1.624.0" }, "peerDependenciesMeta": { "@seamapi/types": { diff --git a/package.json b/package.json index dd3aae13..42ad6db3 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.623.0" + "@seamapi/types": "^1.624.0" }, "peerDependenciesMeta": { "@seamapi/types": {