import { J as Json, S as SdkModule } from '../../module-Bq-w9Ws5.cjs'; import 'graphql-request'; type SupportTicketStatus = 'CLOSED' | 'IN_PROGRESS' | 'NEW' | 'REOPENED' | 'RESOLVED' | 'WAITING_CUSTOMER'; type SupportTicketPriority = 'CRITICAL' | 'HIGH' | 'LOW' | 'NORMAL'; type SupportTicketCategory = 'BILLING_ACCOUNT' | 'BUG_REPORT' | 'FEATURE_REQUEST' | 'GENERAL_SUPPORT' | 'TECHNICAL_SUPPORT'; type TicketSource = 'API' | 'EMAIL' | 'IMPORT' | 'IN_APP' | 'PHONE' | 'WEBSITE'; type MessageType = 'AGENT_REPLY' | 'CUSTOMER_REPLY' | 'INTERNAL_NOTE' | 'SYSTEM_MESSAGE'; type ArticleStatus = 'ARCHIVED' | 'DRAFT' | 'PUBLISHED' | 'REVIEW'; interface SupportContextInput { workspaceId?: string; userId?: string; projectId?: string; appId?: string; custom?: Json; } interface SupportTicket { id: string; ticketNumber: string; userId: string; tenantId?: string | null; workspaceId?: string | null; subject: string; description: string; status: SupportTicketStatus; priority: SupportTicketPriority; category?: SupportTicketCategory | null; categoryId?: string | null; source: TicketSource; assignedTo?: string | null; tags: string[]; resolvedAt?: string | null; closedAt?: string | null; reopenedAt?: string | null; metadata?: Json; customFields?: Json; createdAt: string; updatedAt: string; } interface SupportTicketConnection { nodes: SupportTicket[]; totalCount: number; hasMore: boolean; } interface SupportMessage { id: string; ticketId: string; authorId: string; message: string; type: MessageType; attachments: string[]; attachmentCount: number; isInternal: boolean; createdAt: string; updatedAt: string; } interface KnowledgeBaseArticle { id: string; tenantId?: string | null; categoryId?: string | null; title: string; slug: string; content: string; excerpt?: string | null; tags: string[]; metaDescription?: string | null; status: ArticleStatus; authorId: string; publishedAt?: string | null; archivedAt?: string | null; viewCount: number; helpfulCount: number; notHelpfulCount: number; helpfulnessScore?: number | null; version: number; previousVersion?: string | null; createdAt: string; updatedAt: string; } interface SupportTicketFilterInput { userId?: string; workspaceId?: string; status?: SupportTicketStatus; statuses?: SupportTicketStatus[]; priority?: SupportTicketPriority; priorities?: SupportTicketPriority[]; category?: SupportTicketCategory; categoryId?: string; source?: TicketSource; assignedTo?: string; tags?: string[]; startDate?: string; endDate?: string; } interface CreateSupportTicketInput { workspaceId?: string; subject: string; description: string; priority?: SupportTicketPriority; category?: SupportTicketCategory; categoryId?: string; source?: TicketSource; tags?: string[]; metadata?: Json; customFields?: Json; context?: SupportContextInput; } interface CreateSupportMessageInput { ticketId: string; message: string; type?: MessageType; attachments?: string[]; isInternal?: boolean; context?: SupportContextInput; } interface KbApi { search(q: string, opts?: { categoryId?: string; limit?: number; offset?: number; }): Promise; } interface TicketsApi { list(filter?: SupportTicketFilterInput, opts?: { limit?: number; offset?: number; }): Promise; get(id: string): Promise; create(input: CreateSupportTicketInput): Promise; comment(ticketId: string, message: string, opts?: { type?: CreateSupportMessageInput['type']; attachments?: string[]; isInternal?: boolean; context?: SupportContextInput; }): Promise; close(id: string): Promise; } interface SupportApi { tickets: TicketsApi; kb: KbApi; } declare const supportModule: SdkModule; export { type ArticleStatus, type CreateSupportMessageInput, type CreateSupportTicketInput, type KbApi, type KnowledgeBaseArticle, type MessageType, type SupportApi, type SupportContextInput, type SupportMessage, type SupportTicket, type SupportTicketCategory, type SupportTicketConnection, type SupportTicketFilterInput, type SupportTicketPriority, type SupportTicketStatus, type TicketSource, type TicketsApi, supportModule as default };