import { J as Json, P as PaginationInput, S as SdkModule } from '../../module-Bq-w9Ws5.js'; import 'graphql-request'; type WorkspaceStatus = 'ACTIVE' | 'ARCHIVED' | 'DELETED' | 'SUSPENDED'; type WorkspaceType = 'PERSONAL' | 'TEAM' | 'ORGANIZATION'; interface Workspace { id: string; name: string; type: WorkspaceType; status: WorkspaceStatus; tenantId: string; orgId?: string | null; ownerId: string; domain?: string | null; contactEmail?: string | null; website?: string | null; address?: string | null; createdAt: string; updatedAt: string; createdBy?: string | null; deletedAt?: string | null; } interface WorkspaceList { items: Workspace[]; total: number; hasMore: boolean; } interface WorkspaceFilterInput { status?: WorkspaceStatus; type?: WorkspaceType; ownerId?: string; search?: string; } interface CreateWorkspaceInput { name: string; type?: WorkspaceType; orgId?: string; domain?: string; contactEmail?: string; website?: string; address?: string; } interface UpdateWorkspaceInput { name?: string; status?: WorkspaceStatus; domain?: string; contactEmail?: string; website?: string; address?: string; } type WorkspaceMemberRole = 'OWNER' | 'ADMIN' | 'MEMBER' | 'VIEWER'; interface WorkspaceMember { id: string; userId: string; workspaceId: string; role: string; status: string; createdAt: string; updatedAt: string; } interface WorkspaceMemberList { items: WorkspaceMember[]; total: number; hasMore: boolean; } interface AddWorkspaceMemberInput { workspaceId: string; userId: string; role?: WorkspaceMemberRole; } interface UpdateWorkspaceMemberRolesInput { id: string; role: WorkspaceMemberRole; } interface Project { id: string; name: string; key: string; workspaceId: string; status: string; archived: boolean; creatorId: string; createdAt: string; updatedAt: string; deletedAt?: string | null; } interface ProjectList { items: Project[]; total: number; hasMore: boolean; } interface CreateProjectInput { workspaceId: string; name: string; key: string; config?: Json; } interface ProjectFilterInput { workspaceId?: string; status?: string; search?: string; archived?: boolean; } interface WorkspaceActivity { id: string; action: string; actorId: string; workspaceId: string; resourceType?: string | null; resourceId?: string | null; metadata?: Json; createdAt: string; } interface WorkspaceInvite { id: string; status: string; workspaceId?: string | null; email?: string | null; expiresAt?: string | null; } interface WorkspaceMembersApi { list(workspaceId: string, pagination?: PaginationInput): Promise; add(input: AddWorkspaceMemberInput): Promise; remove(id: string): Promise; role(id: string, role: WorkspaceMemberRole): Promise; } interface WorkspaceProjectsApi { list(filter?: ProjectFilterInput, pagination?: PaginationInput): Promise; get(id: string): Promise; create(input: CreateProjectInput): Promise; } interface WorkspaceInvitesApi { accept(id: string): Promise; } interface WorkspacesListOptions { filter?: WorkspaceFilterInput; pagination?: PaginationInput; } interface WorkspacesApi { list(opts?: WorkspacesListOptions): Promise; get(id: string): Promise; create(input: CreateWorkspaceInput): Promise; update(id: string, input: UpdateWorkspaceInput): Promise; delete(id: string): Promise; members: WorkspaceMembersApi; projects: WorkspaceProjectsApi; activity(workspaceId: string): Promise; invites: WorkspaceInvitesApi; } declare const workspacesModule: SdkModule; export { type AddWorkspaceMemberInput, type CreateProjectInput, type CreateWorkspaceInput, type Project, type ProjectFilterInput, type ProjectList, type UpdateWorkspaceInput, type UpdateWorkspaceMemberRolesInput, type Workspace, type WorkspaceActivity, type WorkspaceInvite, type WorkspaceInvitesApi, type WorkspaceList, type WorkspaceMember, type WorkspaceMemberList, type WorkspaceMemberRole, type WorkspaceMembersApi, type WorkspaceProjectsApi, type WorkspaceStatus, type WorkspacesApi, workspacesModule as default };