From bed792b5f0c7cd99875d466ce66baadebd195bf7 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 25 Jul 2025 15:58:03 +0000 Subject: [PATCH 1/2] feat: Update to @seamapi/types@1.473.0 --- package-lock.json | 8 +- package.json | 2 +- src/lib/seam/connect/routes/index.ts | 1 - .../connect/routes/seam-http-endpoints.ts | 201 ------- src/lib/seam/connect/routes/seam-http.ts | 5 - .../routes/unstable-locations/index.ts | 6 - .../unstable-locations/unstable-locations.ts | 544 ------------------ 7 files changed, 5 insertions(+), 762 deletions(-) delete mode 100644 src/lib/seam/connect/routes/unstable-locations/index.ts delete mode 100644 src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts diff --git a/package-lock.json b/package-lock.json index 2d729e43..7c08b8f9 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.470.0", + "@seamapi/types": "1.473.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.470.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.470.0.tgz", - "integrity": "sha512-fCM2G6ZonQBhgDKKaYsaCQiwcFY+4O4L28w4HFQnMAZHrZIVY2R0p/udfRBry/buMm16+UCKayIDxlF41ayzog==", + "version": "1.473.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.473.0.tgz", + "integrity": "sha512-xUSs5I4qFQaB8N3WUjZ7sd1+d/g27KZe0ovcHolusXOTQXrNuUd1UROBBFfN5dNOvKUT0kkhg3z7JhHUxZIPuA==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 966c55ee..1dcfdd3d 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.470.0", + "@seamapi/types": "1.473.0", "@swc/core": "^1.11.29", "@types/eslint": "^8.44.2", "@types/jsonwebtoken": "^9.0.6", diff --git a/src/lib/seam/connect/routes/index.ts b/src/lib/seam/connect/routes/index.ts index 78d05d04..7c121db5 100644 --- a/src/lib/seam/connect/routes/index.ts +++ b/src/lib/seam/connect/routes/index.ts @@ -26,7 +26,6 @@ export * from './seam-http-endpoints-without-workspace.js' export * from './seam-http-without-workspace.js' export * from './spaces/index.js' export * from './thermostats/index.js' -export * from './unstable-locations/index.js' export * from './unstable-partner/index.js' export * from './user-identities/index.js' export * from './webhooks/index.js' diff --git a/src/lib/seam/connect/routes/seam-http-endpoints.ts b/src/lib/seam/connect/routes/seam-http-endpoints.ts index 2f4b351a..bf85560d 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -707,36 +707,6 @@ import { type ThermostatsSimulateTemperatureReachedParameters, type ThermostatsSimulateTemperatureReachedRequest, } from './thermostats/simulate/index.js' -import { - SeamHttpUnstableLocations, - type UnstableLocationsAddAcsEntrancesOptions, - type UnstableLocationsAddAcsEntrancesParameters, - type UnstableLocationsAddAcsEntrancesRequest, - type UnstableLocationsAddDevicesOptions, - type UnstableLocationsAddDevicesParameters, - type UnstableLocationsAddDevicesRequest, - type UnstableLocationsCreateOptions, - type UnstableLocationsCreateParameters, - type UnstableLocationsCreateRequest, - type UnstableLocationsDeleteOptions, - type UnstableLocationsDeleteParameters, - type UnstableLocationsDeleteRequest, - type UnstableLocationsGetOptions, - type UnstableLocationsGetParameters, - type UnstableLocationsGetRequest, - type UnstableLocationsListOptions, - type UnstableLocationsListParameters, - type UnstableLocationsListRequest, - type UnstableLocationsRemoveAcsEntrancesOptions, - type UnstableLocationsRemoveAcsEntrancesParameters, - type UnstableLocationsRemoveAcsEntrancesRequest, - type UnstableLocationsRemoveDevicesOptions, - type UnstableLocationsRemoveDevicesParameters, - type UnstableLocationsRemoveDevicesRequest, - type UnstableLocationsUpdateOptions, - type UnstableLocationsUpdateParameters, - type UnstableLocationsUpdateRequest, -} from './unstable-locations/index.js' import { SeamHttpUnstablePartnerBuildingBlocks, type UnstablePartnerBuildingBlocksConnectAccountsOptions, @@ -3458,168 +3428,6 @@ export class SeamHttpEndpoints { } } - get ['/unstable_locations/add_acs_entrances'](): ( - parameters?: UnstableLocationsAddAcsEntrancesParameters, - options?: UnstableLocationsAddAcsEntrancesOptions, - ) => UnstableLocationsAddAcsEntrancesRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function unstableLocationsAddAcsEntrances( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpUnstableLocations.fromClient(client, defaults) - return seam.addAcsEntrances(...args) - } - } - - get ['/unstable_locations/add_devices'](): ( - parameters?: UnstableLocationsAddDevicesParameters, - options?: UnstableLocationsAddDevicesOptions, - ) => UnstableLocationsAddDevicesRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function unstableLocationsAddDevices( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpUnstableLocations.fromClient(client, defaults) - return seam.addDevices(...args) - } - } - - get ['/unstable_locations/create'](): ( - parameters?: UnstableLocationsCreateParameters, - options?: UnstableLocationsCreateOptions, - ) => UnstableLocationsCreateRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function unstableLocationsCreate( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpUnstableLocations.fromClient(client, defaults) - return seam.create(...args) - } - } - - get ['/unstable_locations/delete'](): ( - parameters?: UnstableLocationsDeleteParameters, - options?: UnstableLocationsDeleteOptions, - ) => UnstableLocationsDeleteRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function unstableLocationsDelete( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpUnstableLocations.fromClient(client, defaults) - return seam.delete(...args) - } - } - - get ['/unstable_locations/get'](): ( - parameters?: UnstableLocationsGetParameters, - options?: UnstableLocationsGetOptions, - ) => UnstableLocationsGetRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function unstableLocationsGet( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpUnstableLocations.fromClient(client, defaults) - return seam.get(...args) - } - } - - get ['/unstable_locations/list'](): ( - parameters?: UnstableLocationsListParameters, - options?: UnstableLocationsListOptions, - ) => UnstableLocationsListRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function unstableLocationsList( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpUnstableLocations.fromClient(client, defaults) - return seam.list(...args) - } - } - - get ['/unstable_locations/remove_acs_entrances'](): ( - parameters?: UnstableLocationsRemoveAcsEntrancesParameters, - options?: UnstableLocationsRemoveAcsEntrancesOptions, - ) => UnstableLocationsRemoveAcsEntrancesRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function unstableLocationsRemoveAcsEntrances( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpUnstableLocations.fromClient(client, defaults) - return seam.removeAcsEntrances(...args) - } - } - - get ['/unstable_locations/remove_devices'](): ( - parameters?: UnstableLocationsRemoveDevicesParameters, - options?: UnstableLocationsRemoveDevicesOptions, - ) => UnstableLocationsRemoveDevicesRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function unstableLocationsRemoveDevices( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpUnstableLocations.fromClient(client, defaults) - return seam.removeDevices(...args) - } - } - - get ['/unstable_locations/update'](): ( - parameters?: UnstableLocationsUpdateParameters, - options?: UnstableLocationsUpdateOptions, - ) => UnstableLocationsUpdateRequest { - const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return function unstableLocationsUpdate( - ...args: Parameters - ): ReturnType { - const seam = SeamHttpUnstableLocations.fromClient(client, defaults) - return seam.update(...args) - } - } - get ['/unstable_partner/building_blocks/connect_accounts'](): ( parameters?: UnstablePartnerBuildingBlocksConnectAccountsParameters, options?: UnstablePartnerBuildingBlocksConnectAccountsOptions, @@ -4191,8 +3999,6 @@ export type SeamHttpEndpointQueryPaths = | '/thermostats/list' | '/thermostats/schedules/get' | '/thermostats/schedules/list' - | '/unstable_locations/get' - | '/unstable_locations/list' | '/unstable_partner/building_blocks/generate_magic_link' | '/user_identities/get' | '/user_identities/list' @@ -4319,13 +4125,6 @@ export type SeamHttpEndpointMutationPaths = | '/thermostats/schedules/update' | '/thermostats/simulate/hvac_mode_adjusted' | '/thermostats/simulate/temperature_reached' - | '/unstable_locations/add_acs_entrances' - | '/unstable_locations/add_devices' - | '/unstable_locations/create' - | '/unstable_locations/delete' - | '/unstable_locations/remove_acs_entrances' - | '/unstable_locations/remove_devices' - | '/unstable_locations/update' | '/unstable_partner/building_blocks/connect_accounts' | '/unstable_partner/building_blocks/manage_devices' | '/unstable_partner/building_blocks/organize_spaces' diff --git a/src/lib/seam/connect/routes/seam-http.ts b/src/lib/seam/connect/routes/seam-http.ts index d928ec1d..c5c4e5fb 100644 --- a/src/lib/seam/connect/routes/seam-http.ts +++ b/src/lib/seam/connect/routes/seam-http.ts @@ -50,7 +50,6 @@ import { SeamHttpNoiseSensors } from './noise-sensors/index.js' import { SeamHttpPhones } from './phones/index.js' import { SeamHttpSpaces } from './spaces/index.js' import { SeamHttpThermostats } from './thermostats/index.js' -import { SeamHttpUnstableLocations } from './unstable-locations/index.js' import { SeamHttpUnstablePartner } from './unstable-partner/index.js' import { SeamHttpUserIdentities } from './user-identities/index.js' import { SeamHttpWebhooks } from './webhooks/index.js' @@ -255,10 +254,6 @@ export class SeamHttp { return SeamHttpThermostats.fromClient(this.client, this.defaults) } - get unstableLocations(): SeamHttpUnstableLocations { - return SeamHttpUnstableLocations.fromClient(this.client, this.defaults) - } - get unstablePartner(): SeamHttpUnstablePartner { return SeamHttpUnstablePartner.fromClient(this.client, this.defaults) } diff --git a/src/lib/seam/connect/routes/unstable-locations/index.ts b/src/lib/seam/connect/routes/unstable-locations/index.ts deleted file mode 100644 index 7b6ea68c..00000000 --- a/src/lib/seam/connect/routes/unstable-locations/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -export * from './unstable-locations.js' diff --git a/src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts b/src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts deleted file mode 100644 index d933ce14..00000000 --- a/src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Automatically generated by codegen/smith.ts. - * Do not edit this file or add other files to this directory. - */ - -import type { - RouteRequestBody, - RouteRequestParams, - RouteResponse, -} from '@seamapi/types/connect' - -import { seamApiLtsVersion } from 'lib/lts-version.js' -import { - getAuthHeadersForClientSessionToken, - warnOnInsecureuserIdentifierKey, -} from 'lib/seam/connect/auth.js' -import { type Client, createClient } from 'lib/seam/connect/client.js' -import { - isSeamHttpOptionsWithApiKey, - isSeamHttpOptionsWithClient, - isSeamHttpOptionsWithClientSessionToken, - isSeamHttpOptionsWithConsoleSessionToken, - isSeamHttpOptionsWithPersonalAccessToken, - type SeamHttpFromPublishableKeyOptions, - SeamHttpInvalidOptionsError, - type SeamHttpOptions, - type SeamHttpOptionsWithApiKey, - type SeamHttpOptionsWithClient, - type SeamHttpOptionsWithClientSessionToken, - type SeamHttpOptionsWithConsoleSessionToken, - type SeamHttpOptionsWithPersonalAccessToken, - type SeamHttpRequestOptions, -} from 'lib/seam/connect/options.js' -import { - limitToSeamHttpRequestOptions, - parseOptions, -} from 'lib/seam/connect/parse-options.js' -import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js' -import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js' -import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js' -import type { SetNonNullable } from 'lib/types.js' - -export class SeamHttpUnstableLocations { - client: Client - readonly defaults: Required - readonly ltsVersion = seamApiLtsVersion - static ltsVersion = seamApiLtsVersion - - 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) - } - - static fromClient( - client: SeamHttpOptionsWithClient['client'], - options: Omit = {}, - ): SeamHttpUnstableLocations { - const constructorOptions = { ...options, client } - if (!isSeamHttpOptionsWithClient(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing client') - } - return new SeamHttpUnstableLocations(constructorOptions) - } - - static fromApiKey( - apiKey: SeamHttpOptionsWithApiKey['apiKey'], - options: Omit = {}, - ): SeamHttpUnstableLocations { - const constructorOptions = { ...options, apiKey } - if (!isSeamHttpOptionsWithApiKey(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing apiKey') - } - return new SeamHttpUnstableLocations(constructorOptions) - } - - static fromClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - options: Omit< - SeamHttpOptionsWithClientSessionToken, - 'clientSessionToken' - > = {}, - ): SeamHttpUnstableLocations { - const constructorOptions = { ...options, clientSessionToken } - if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError('Missing clientSessionToken') - } - return new SeamHttpUnstableLocations(constructorOptions) - } - - static async fromPublishableKey( - publishableKey: string, - userIdentifierKey: string, - options: SeamHttpFromPublishableKeyOptions = {}, - ): Promise { - warnOnInsecureuserIdentifierKey(userIdentifierKey) - const clientOptions = parseOptions({ ...options, publishableKey }) - if (isSeamHttpOptionsWithClient(clientOptions)) { - throw new SeamHttpInvalidOptionsError( - 'The client option cannot be used with SeamHttpUnstableLocations.fromPublishableKey', - ) - } - const client = createClient(clientOptions) - const clientSessions = SeamHttpClientSessions.fromClient(client) - const { token } = await clientSessions.getOrCreate({ - user_identifier_key: userIdentifierKey, - }) - return SeamHttpUnstableLocations.fromClientSessionToken(token, options) - } - - static fromConsoleSessionToken( - consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], - workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithConsoleSessionToken, - 'consoleSessionToken' | 'workspaceId' - > = {}, - ): SeamHttpUnstableLocations { - const constructorOptions = { ...options, consoleSessionToken, workspaceId } - if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing consoleSessionToken or workspaceId', - ) - } - return new SeamHttpUnstableLocations(constructorOptions) - } - - static fromPersonalAccessToken( - personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], - workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], - options: Omit< - SeamHttpOptionsWithPersonalAccessToken, - 'personalAccessToken' | 'workspaceId' - > = {}, - ): SeamHttpUnstableLocations { - const constructorOptions = { ...options, personalAccessToken, workspaceId } - if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) { - throw new SeamHttpInvalidOptionsError( - 'Missing personalAccessToken or workspaceId', - ) - } - return new SeamHttpUnstableLocations(constructorOptions) - } - - createPaginator( - request: SeamHttpRequest, - ): SeamPaginator { - return new SeamPaginator(this, request) - } - - async updateClientSessionToken( - clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], - ): Promise { - const { headers } = this.client.defaults - const authHeaders = getAuthHeadersForClientSessionToken({ - clientSessionToken, - }) - for (const key of Object.keys(authHeaders)) { - if (headers[key] == null) { - throw new Error( - 'Cannot update a clientSessionToken on a client created without a clientSessionToken', - ) - } - } - this.client.defaults.headers = { ...headers, ...authHeaders } - const clientSessions = SeamHttpClientSessions.fromClient(this.client) - await clientSessions.get() - } - - addAcsEntrances( - parameters?: UnstableLocationsAddAcsEntrancesParameters, - options: UnstableLocationsAddAcsEntrancesOptions = {}, - ): UnstableLocationsAddAcsEntrancesRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/unstable_locations/add_acs_entrances', - method: 'PUT', - body: parameters, - responseKey: undefined, - options, - }) - } - - addDevices( - parameters?: UnstableLocationsAddDevicesParameters, - options: UnstableLocationsAddDevicesOptions = {}, - ): UnstableLocationsAddDevicesRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/unstable_locations/add_devices', - method: 'PUT', - body: parameters, - responseKey: undefined, - options, - }) - } - - create( - parameters?: UnstableLocationsCreateParameters, - options: UnstableLocationsCreateOptions = {}, - ): UnstableLocationsCreateRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/unstable_locations/create', - method: 'POST', - body: parameters, - responseKey: 'location', - options, - }) - } - - delete( - parameters?: UnstableLocationsDeleteParameters, - options: UnstableLocationsDeleteOptions = {}, - ): UnstableLocationsDeleteRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/unstable_locations/delete', - method: 'POST', - body: parameters, - responseKey: undefined, - options, - }) - } - - get( - parameters?: UnstableLocationsGetParameters, - options: UnstableLocationsGetOptions = {}, - ): UnstableLocationsGetRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/unstable_locations/get', - method: 'POST', - body: parameters, - responseKey: 'location', - options, - }) - } - - list( - parameters?: UnstableLocationsListParameters, - options: UnstableLocationsListOptions = {}, - ): UnstableLocationsListRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/unstable_locations/list', - method: 'GET', - params: parameters, - responseKey: 'locations', - options, - }) - } - - removeAcsEntrances( - parameters?: UnstableLocationsRemoveAcsEntrancesParameters, - options: UnstableLocationsRemoveAcsEntrancesOptions = {}, - ): UnstableLocationsRemoveAcsEntrancesRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/unstable_locations/remove_acs_entrances', - method: 'POST', - body: parameters, - responseKey: undefined, - options, - }) - } - - removeDevices( - parameters?: UnstableLocationsRemoveDevicesParameters, - options: UnstableLocationsRemoveDevicesOptions = {}, - ): UnstableLocationsRemoveDevicesRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/unstable_locations/remove_devices', - method: 'POST', - body: parameters, - responseKey: undefined, - options, - }) - } - - update( - parameters?: UnstableLocationsUpdateParameters, - options: UnstableLocationsUpdateOptions = {}, - ): UnstableLocationsUpdateRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } - return new SeamHttpRequest(this, { - pathname: '/unstable_locations/update', - method: 'PATCH', - body: parameters, - responseKey: 'location', - options, - }) - } -} - -export type UnstableLocationsAddAcsEntrancesParameters = - RouteRequestBody<'/unstable_locations/add_acs_entrances'> - -/** - * @deprecated Use UnstableLocationsAddAcsEntrancesParameters instead. - */ -export type UnstableLocationsAddAcsEntrancesBody = - UnstableLocationsAddAcsEntrancesParameters - -/** - * @deprecated Use UnstableLocationsAddAcsEntrancesRequest instead. - */ -export type UnstableLocationsAddAcsEntrancesResponse = SetNonNullable< - Required> -> - -export type UnstableLocationsAddAcsEntrancesRequest = SeamHttpRequest< - void, - undefined -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface UnstableLocationsAddAcsEntrancesOptions {} - -export type UnstableLocationsAddDevicesParameters = - RouteRequestBody<'/unstable_locations/add_devices'> - -/** - * @deprecated Use UnstableLocationsAddDevicesParameters instead. - */ -export type UnstableLocationsAddDevicesBody = - UnstableLocationsAddDevicesParameters - -/** - * @deprecated Use UnstableLocationsAddDevicesRequest instead. - */ -export type UnstableLocationsAddDevicesResponse = SetNonNullable< - Required> -> - -export type UnstableLocationsAddDevicesRequest = SeamHttpRequest< - void, - undefined -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface UnstableLocationsAddDevicesOptions {} - -export type UnstableLocationsCreateParameters = - RouteRequestBody<'/unstable_locations/create'> - -/** - * @deprecated Use UnstableLocationsCreateParameters instead. - */ -export type UnstableLocationsCreateBody = UnstableLocationsCreateParameters - -/** - * @deprecated Use UnstableLocationsCreateRequest instead. - */ -export type UnstableLocationsCreateResponse = SetNonNullable< - Required> -> - -export type UnstableLocationsCreateRequest = SeamHttpRequest< - UnstableLocationsCreateResponse, - 'location' -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface UnstableLocationsCreateOptions {} - -export type UnstableLocationsDeleteParameters = - RouteRequestBody<'/unstable_locations/delete'> - -/** - * @deprecated Use UnstableLocationsDeleteParameters instead. - */ -export type UnstableLocationsDeleteParams = UnstableLocationsDeleteParameters - -/** - * @deprecated Use UnstableLocationsDeleteRequest instead. - */ -export type UnstableLocationsDeleteResponse = SetNonNullable< - Required> -> - -export type UnstableLocationsDeleteRequest = SeamHttpRequest - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface UnstableLocationsDeleteOptions {} - -export type UnstableLocationsGetParameters = - RouteRequestBody<'/unstable_locations/get'> - -/** - * @deprecated Use UnstableLocationsGetParameters instead. - */ -export type UnstableLocationsGetParams = UnstableLocationsGetParameters - -/** - * @deprecated Use UnstableLocationsGetRequest instead. - */ -export type UnstableLocationsGetResponse = SetNonNullable< - Required> -> - -export type UnstableLocationsGetRequest = SeamHttpRequest< - UnstableLocationsGetResponse, - 'location' -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface UnstableLocationsGetOptions {} - -export type UnstableLocationsListParameters = - RouteRequestParams<'/unstable_locations/list'> - -/** - * @deprecated Use UnstableLocationsListParameters instead. - */ -export type UnstableLocationsListParams = UnstableLocationsListParameters - -/** - * @deprecated Use UnstableLocationsListRequest instead. - */ -export type UnstableLocationsListResponse = SetNonNullable< - Required> -> - -export type UnstableLocationsListRequest = SeamHttpRequest< - UnstableLocationsListResponse, - 'locations' -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface UnstableLocationsListOptions {} - -export type UnstableLocationsRemoveAcsEntrancesParameters = - RouteRequestBody<'/unstable_locations/remove_acs_entrances'> - -/** - * @deprecated Use UnstableLocationsRemoveAcsEntrancesParameters instead. - */ -export type UnstableLocationsRemoveAcsEntrancesParams = - UnstableLocationsRemoveAcsEntrancesParameters - -/** - * @deprecated Use UnstableLocationsRemoveAcsEntrancesRequest instead. - */ -export type UnstableLocationsRemoveAcsEntrancesResponse = SetNonNullable< - Required> -> - -export type UnstableLocationsRemoveAcsEntrancesRequest = SeamHttpRequest< - void, - undefined -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface UnstableLocationsRemoveAcsEntrancesOptions {} - -export type UnstableLocationsRemoveDevicesParameters = - RouteRequestBody<'/unstable_locations/remove_devices'> - -/** - * @deprecated Use UnstableLocationsRemoveDevicesParameters instead. - */ -export type UnstableLocationsRemoveDevicesParams = - UnstableLocationsRemoveDevicesParameters - -/** - * @deprecated Use UnstableLocationsRemoveDevicesRequest instead. - */ -export type UnstableLocationsRemoveDevicesResponse = SetNonNullable< - Required> -> - -export type UnstableLocationsRemoveDevicesRequest = SeamHttpRequest< - void, - undefined -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface UnstableLocationsRemoveDevicesOptions {} - -export type UnstableLocationsUpdateParameters = - RouteRequestBody<'/unstable_locations/update'> - -/** - * @deprecated Use UnstableLocationsUpdateParameters instead. - */ -export type UnstableLocationsUpdateBody = UnstableLocationsUpdateParameters - -/** - * @deprecated Use UnstableLocationsUpdateRequest instead. - */ -export type UnstableLocationsUpdateResponse = SetNonNullable< - Required> -> - -export type UnstableLocationsUpdateRequest = SeamHttpRequest< - UnstableLocationsUpdateResponse, - 'location' -> - -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface UnstableLocationsUpdateOptions {} From 8d3a87f4fc90ecaddccd0050afd1f1acb18e9a36 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 25 Jul 2025 15:59:05 +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 7c08b8f9..10af2e03 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.470.0" + "@seamapi/types": "^1.473.0" }, "peerDependenciesMeta": { "@seamapi/types": { diff --git a/package.json b/package.json index 1dcfdd3d..aa70ccdc 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.470.0" + "@seamapi/types": "^1.473.0" }, "peerDependenciesMeta": { "@seamapi/types": {