From 999d3ea2884b6cd6c2c7dd2005967cc86bf1e3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Mui=CC=81n=CC=83o=20Garci=CC=81a?= Date: Thu, 23 Apr 2026 10:20:30 +0200 Subject: [PATCH] Remove deprecated service accounts API endpoints Drop GET/POST /auth/service-accounts and DELETE /auth/service-accounts/{id} along with their TypeScript types, as these endpoints are being removed from the YepCode Cloud API. Co-Authored-By: Claude Sonnet 4.6 --- src/api/types.ts | 18 ------------------ src/api/yepcodeApi.ts | 17 ----------------- 2 files changed, 35 deletions(-) diff --git a/src/api/types.ts b/src/api/types.ts index d1c23cb..5efe0e9 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -473,24 +473,6 @@ export interface Token { scope?: string; } -export interface ServiceAccountInput { - name: string; -} - -export interface ServiceAccount { - id: string; - createdAt: string; - updatedAt: string; - name: string; - clientId: string; - clientSecret: string; -} - -export interface ServiceAccountsListResult { - total: number; - data: ServiceAccount[]; -} - /** * Teams */ diff --git a/src/api/yepcodeApi.ts b/src/api/yepcodeApi.ts index a123f8b..cf90f2f 100644 --- a/src/api/yepcodeApi.ts +++ b/src/api/yepcodeApi.ts @@ -35,9 +35,6 @@ import { StorageObject, CreateStorageObjectInput, Token, - ServiceAccountInput, - ServiceAccount, - ServiceAccountsListResult, Sandbox, CreateSandboxInput, UpdateSandboxInput, @@ -808,20 +805,6 @@ export class YepCodeApi { }); } - async getAllServiceAccounts(): Promise { - return this.request("GET", "/auth/service-accounts"); - } - - async createServiceAccount( - data: ServiceAccountInput - ): Promise { - return this.request("POST", "/auth/service-accounts", { data }); - } - - async deleteServiceAccount(id: string): Promise { - return this.request("DELETE", `/auth/service-accounts/${id}`); - } - // Team endpoints async getTeam(): Promise { return this.request("GET", "/team");