This commit is contained in:
gpt-engineer-app[bot]
2026-01-06 16:06:53 +00:00
parent 0917a48289
commit 096f1afbd2
2 changed files with 154 additions and 38 deletions
+22 -2
View File
@@ -18,14 +18,32 @@ interface ApiResponse<T = unknown> {
export interface User {
id: string;
email: string;
email_verified: boolean;
full_name: string | null;
avatar_url: string | null;
is_active: boolean;
is_verified: boolean;
status: string;
last_login_at: string | null;
created_at: string;
updated_at: string;
}
export interface Organization {
id: string;
name: string;
slug: string;
description: string | null;
logo_url: string | null;
is_active: boolean;
role: string;
created_at: string;
updated_at: string;
}
export interface OrganizationsResponse {
organizations: Organization[];
count: number;
}
export interface Session {
id: string;
expires_at: string;
@@ -103,6 +121,8 @@ export const api = {
method: 'PATCH',
body: JSON.stringify(data),
}),
organizations: () => request<OrganizationsResponse>('/users/me/organizations'),
},
};