Skip to content

Commit 999d3ea

Browse files
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 <noreply@anthropic.com>
1 parent 524bdfc commit 999d3ea

2 files changed

Lines changed: 0 additions & 35 deletions

File tree

src/api/types.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -473,24 +473,6 @@ export interface Token {
473473
scope?: string;
474474
}
475475

476-
export interface ServiceAccountInput {
477-
name: string;
478-
}
479-
480-
export interface ServiceAccount {
481-
id: string;
482-
createdAt: string;
483-
updatedAt: string;
484-
name: string;
485-
clientId: string;
486-
clientSecret: string;
487-
}
488-
489-
export interface ServiceAccountsListResult {
490-
total: number;
491-
data: ServiceAccount[];
492-
}
493-
494476
/**
495477
* Teams
496478
*/

src/api/yepcodeApi.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ import {
3535
StorageObject,
3636
CreateStorageObjectInput,
3737
Token,
38-
ServiceAccountInput,
39-
ServiceAccount,
40-
ServiceAccountsListResult,
4138
Sandbox,
4239
CreateSandboxInput,
4340
UpdateSandboxInput,
@@ -808,20 +805,6 @@ export class YepCodeApi {
808805
});
809806
}
810807

811-
async getAllServiceAccounts(): Promise<ServiceAccountsListResult> {
812-
return this.request("GET", "/auth/service-accounts");
813-
}
814-
815-
async createServiceAccount(
816-
data: ServiceAccountInput
817-
): Promise<ServiceAccount> {
818-
return this.request("POST", "/auth/service-accounts", { data });
819-
}
820-
821-
async deleteServiceAccount(id: string): Promise<void> {
822-
return this.request("DELETE", `/auth/service-accounts/${id}`);
823-
}
824-
825808
// Team endpoints
826809
async getTeam(): Promise<Team> {
827810
return this.request("GET", "/team");

0 commit comments

Comments
 (0)