From a6532029d543a7d2130d737d4b059cee36cffb02 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Wed, 13 Nov 2024 13:47:44 -0800 Subject: [PATCH 1/2] Remove devices.delete from SDK --- generate-routes.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/generate-routes.ts b/generate-routes.ts index ea9812db..65bceed8 100644 --- a/generate-routes.ts +++ b/generate-routes.ts @@ -95,6 +95,8 @@ const routePathSubresources: Partial< '/user_identities': ['enrollment_automations'], } +const undocumentedPaths = ['/devices/delete'] + interface Route { namespace: string endpoints: Endpoint[] @@ -137,9 +139,9 @@ const createRoutes = (): Route[] => { } const createRoute = (routePath: (typeof routePaths)[number]): Route => { - const endpointPaths = Object.keys(openapi.paths).filter((path) => - isEndpointUnderRoute(path, routePath), - ) + const endpointPaths = Object.keys(openapi.paths) + .filter((path) => isEndpointUnderRoute(path, routePath)) + .filter((path) => !undocumentedPaths.includes(path)) const namespace = routePath.split('/').join('_').slice(1) From fd9ad7f44c9eaffc879340ecfb25136e871cb7b9 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Wed, 13 Nov 2024 22:04:54 +0000 Subject: [PATCH 2/2] ci: Generate code --- src/lib/seam/connect/routes/devices.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/lib/seam/connect/routes/devices.ts b/src/lib/seam/connect/routes/devices.ts index 10196002..09d1e8b7 100644 --- a/src/lib/seam/connect/routes/devices.ts +++ b/src/lib/seam/connect/routes/devices.ts @@ -164,15 +164,6 @@ export class SeamHttpDevices { return SeamHttpDevicesSimulate.fromClient(this.client, this.defaults) } - delete(body?: DevicesDeleteParams): SeamHttpRequest { - return new SeamHttpRequest(this, { - path: '/devices/delete', - method: 'post', - body, - responseKey: undefined, - }) - } - get(body?: DevicesGetParams): SeamHttpRequest { return new SeamHttpRequest(this, { path: '/devices/get', @@ -214,14 +205,6 @@ export class SeamHttpDevices { } } -export type DevicesDeleteParams = RouteRequestBody<'/devices/delete'> - -export type DevicesDeleteResponse = SetNonNullable< - Required> -> - -export type DevicesDeleteOptions = never - export type DevicesGetParams = RouteRequestBody<'/devices/get'> export type DevicesGetResponse = SetNonNullable<