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; }