diff --git a/generate-routes.ts b/generate-routes.ts index 1003510b..d02af419 100644 --- a/generate-routes.ts +++ b/generate-routes.ts @@ -98,6 +98,8 @@ const routePathSubresources: Partial< '/user_identities': ['enrollment_automations'], } +const undocumentedPaths = ['/devices/delete'] + interface Route { namespace: string endpoints: Endpoint[] @@ -140,9 +142,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) 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<