From 76d007d83fe2a86c4813f23c6cf72e3d6c192d71 Mon Sep 17 00:00:00 2001 From: Patrick Buckley Date: Sat, 28 Mar 2026 23:08:09 -0700 Subject: [PATCH] fix: TypeScript SDK DeleteSettingResponse type drift (#209) * fix: TypeScript SDK DeleteSettingResponse type drift * fix: export DeleteSettingResponse from SDK index --- sdk/typescript/src/console.ts | 6 +++++- sdk/typescript/src/index.ts | 1 + sdk/typescript/src/types.ts | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/sdk/typescript/src/console.ts b/sdk/typescript/src/console.ts index a7adfb6c..c4efdfc2 100644 --- a/sdk/typescript/src/console.ts +++ b/sdk/typescript/src/console.ts @@ -44,6 +44,7 @@ import type { OrgInfo, RoleInfo, ScheduleInfo, + DeleteSettingResponse, SettingInfo, StatusResponse, ToolPolicyInfo, @@ -394,7 +395,10 @@ export class TurnstoneConsole extends BaseClient { }); } - async deleteSetting(key: string, nodeId?: string): Promise { + async deleteSetting( + key: string, + nodeId?: string, + ): Promise { const params: Record = {}; if (nodeId) params.node_id = nodeId; return this.request("DELETE", `/v1/api/admin/settings/${key}`, { diff --git a/sdk/typescript/src/index.ts b/sdk/typescript/src/index.ts index e8335006..a7e5c4bf 100644 --- a/sdk/typescript/src/index.ts +++ b/sdk/typescript/src/index.ts @@ -98,6 +98,7 @@ export type { AuthLoginResponse, AuthStatusResponse, AuthSetupResponse, + DeleteSettingResponse, StatusResponse, ErrorResponse, ClusterOverviewResponse, diff --git a/sdk/typescript/src/types.ts b/sdk/typescript/src/types.ts index 22aa09e4..bde9a07b 100644 --- a/sdk/typescript/src/types.ts +++ b/sdk/typescript/src/types.ts @@ -10,6 +10,12 @@ export interface StatusResponse { status: string; } +export interface DeleteSettingResponse { + status: string; + key: string; + default: unknown; +} + export interface AuthLoginRequest { token: string; }