Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
17 changes: 0 additions & 17 deletions src/api/yepcodeApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ import {
StorageObject,
CreateStorageObjectInput,
Token,
ServiceAccountInput,
ServiceAccount,
ServiceAccountsListResult,
Sandbox,
CreateSandboxInput,
UpdateSandboxInput,
Expand Down Expand Up @@ -808,20 +805,6 @@ export class YepCodeApi {
});
}

async getAllServiceAccounts(): Promise<ServiceAccountsListResult> {
return this.request("GET", "/auth/service-accounts");
}

async createServiceAccount(
data: ServiceAccountInput
): Promise<ServiceAccount> {
return this.request("POST", "/auth/service-accounts", { data });
}

async deleteServiceAccount(id: string): Promise<void> {
return this.request("DELETE", `/auth/service-accounts/${id}`);
}

// Team endpoints
async getTeam(): Promise<Team> {
return this.request("GET", "/team");
Expand Down
Loading