From cbafc08398cf40c8b21da7df3c20333d6b32cd81 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Fri, 16 Feb 2024 00:09:42 +0000 Subject: [PATCH] ci: Generate code --- package-lock.json | 2 +- package.json | 2 +- src/lib/seam/connect/routes/phones.ts | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index abae3f2a..2bd60cbe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "npm": ">= 9.0.0" }, "peerDependencies": { - "@seamapi/types": "^1.106.0", + "@seamapi/types": "^1.111.0", "type-fest": "^4.0.0" }, "peerDependenciesMeta": { diff --git a/package.json b/package.json index 6a8c1493..cb28f8da 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "npm": ">= 9.0.0" }, "peerDependencies": { - "@seamapi/types": "^1.106.0", + "@seamapi/types": "^1.111.0", "type-fest": "^4.0.0" }, "peerDependenciesMeta": { diff --git a/src/lib/seam/connect/routes/phones.ts b/src/lib/seam/connect/routes/phones.ts index 2dca2203..e0ce67df 100644 --- a/src/lib/seam/connect/routes/phones.ts +++ b/src/lib/seam/connect/routes/phones.ts @@ -153,6 +153,14 @@ export class SeamHttpPhones { await clientSessions.get() } + async deactivate(body?: PhonesDeactivateBody): Promise { + await this.client.request({ + url: '/phones/deactivate', + method: 'post', + data: body, + }) + } + async list(body?: PhonesListParams): Promise { const { data } = await this.client.request({ url: '/phones/list', @@ -164,6 +172,14 @@ export class SeamHttpPhones { } } +export type PhonesDeactivateBody = RouteRequestBody<'/phones/deactivate'> + +export type PhonesDeactivateResponse = SetNonNullable< + Required> +> + +export type PhonesDeactivateOptions = never + export type PhonesListParams = RouteRequestBody<'/phones/list'> export type PhonesListResponse = SetNonNullable<