mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-26 23:51:14 +02:00
feat(workspaces): implement workspace limits feature with backend integration and UI updates
This commit is contained in:
parent
1385ff4789
commit
38b784fbac
12 changed files with 176 additions and 18 deletions
|
|
@ -29,6 +29,13 @@ export const getWorkspacesRequest = z.object({
|
|||
|
||||
export const getWorkspacesResponse = z.array(workspace);
|
||||
|
||||
/**
|
||||
* Workspace limits
|
||||
*/
|
||||
export const workspaceLimits = z.object({
|
||||
max_workspaces_per_user: z.number(),
|
||||
});
|
||||
|
||||
/**
|
||||
* Create workspace
|
||||
*/
|
||||
|
|
@ -94,6 +101,7 @@ export const leaveWorkspaceResponse = z.object({
|
|||
|
||||
// Inferred types
|
||||
export type Workspace = z.infer<typeof workspace>;
|
||||
export type WorkspaceLimits = z.infer<typeof workspaceLimits>;
|
||||
export type GetWorkspacesRequest = z.infer<typeof getWorkspacesRequest>;
|
||||
export type GetWorkspacesResponse = z.infer<typeof getWorkspacesResponse>;
|
||||
export type CreateWorkspaceRequest = z.infer<typeof createWorkspaceRequest>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue