@vaiftech/client 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2899,6 +2899,10 @@ interface OrgsModule {
2899
2899
  * Update a member's role in an organization
2900
2900
  */
2901
2901
  updateMemberRole(orgId: string, userId: string, role: "admin" | "member" | "viewer"): Promise<OrgMember>;
2902
+ /**
2903
+ * Get the current user's membership in an organization
2904
+ */
2905
+ getMyMembership(orgId: string): Promise<OrgMembership | null>;
2902
2906
  }
2903
2907
 
2904
2908
  /**
@@ -4879,6 +4883,260 @@ interface AdminContextSnapshot {
4879
4883
  expiresAt: string | null;
4880
4884
  projectName: string | null;
4881
4885
  }
4886
+ /**
4887
+ * Copilot Overview response (Admin)
4888
+ */
4889
+ interface AdminCopilotOverview {
4890
+ overview: {
4891
+ totalSessions: number;
4892
+ sessions24h: number;
4893
+ totalMessages: number;
4894
+ messages24h: number;
4895
+ totalCreditsUsed: number;
4896
+ sessionsByStatus: Record<string, number>;
4897
+ };
4898
+ classification: {
4899
+ stats: Array<{
4900
+ method: string;
4901
+ total: number;
4902
+ correct: number;
4903
+ accuracy: string;
4904
+ }>;
4905
+ intentDistribution: Array<{
4906
+ intent: string;
4907
+ count: number;
4908
+ }>;
4909
+ };
4910
+ execution: {
4911
+ total: number;
4912
+ completed: number;
4913
+ failed: number;
4914
+ rolledBack: number;
4915
+ successRate: string;
4916
+ } | null;
4917
+ trends: {
4918
+ dailySessions: Array<{
4919
+ date: string;
4920
+ count: number;
4921
+ }>;
4922
+ };
4923
+ }
4924
+ /**
4925
+ * Copilot Session (Admin)
4926
+ */
4927
+ interface AdminCopilotSession {
4928
+ id: string;
4929
+ projectId: string;
4930
+ userId: string;
4931
+ title: string | null;
4932
+ status: string;
4933
+ messageCount: number;
4934
+ totalTokens: number;
4935
+ totalCreditsUsed: string | null;
4936
+ generationTypes: string[];
4937
+ primaryModelId: string | null;
4938
+ createdAt: string;
4939
+ updatedAt: string;
4940
+ lastMessageAt: string | null;
4941
+ userEmail: string | null;
4942
+ userName: string | null;
4943
+ projectName: string | null;
4944
+ }
4945
+ /**
4946
+ * Copilot Message (Admin)
4947
+ */
4948
+ interface AdminCopilotMessage {
4949
+ id: string;
4950
+ sessionId: string;
4951
+ role: string;
4952
+ content: string;
4953
+ intent: string | null;
4954
+ category: string | null;
4955
+ confidence: number | null;
4956
+ inputTokens: number | null;
4957
+ outputTokens: number | null;
4958
+ modelUsed: string | null;
4959
+ creditsUsed: string | null;
4960
+ createdAt: string;
4961
+ }
4962
+ /**
4963
+ * Copilot Plan (Admin)
4964
+ */
4965
+ interface AdminCopilotPlan {
4966
+ id: string;
4967
+ sessionId: string;
4968
+ messageId: string | null;
4969
+ intent: string;
4970
+ status: string;
4971
+ description: string | null;
4972
+ steps: unknown[];
4973
+ createdAt: string;
4974
+ }
4975
+ /**
4976
+ * Copilot Execution (Admin)
4977
+ */
4978
+ interface AdminCopilotExecution {
4979
+ id: string;
4980
+ planId: string;
4981
+ sessionId: string;
4982
+ projectId: string;
4983
+ status: string;
4984
+ currentStepIndex: number | null;
4985
+ completedStepIds: string[];
4986
+ failedStepIds: string[];
4987
+ skippedStepIds: string[];
4988
+ startedAt: string | null;
4989
+ completedAt: string | null;
4990
+ error: string | null;
4991
+ createdAt: string;
4992
+ }
4993
+ /**
4994
+ * Copilot Session Details response (Admin)
4995
+ */
4996
+ interface AdminCopilotSessionDetails {
4997
+ session: AdminCopilotSession & {
4998
+ summary: string | null;
4999
+ intentHistory: string[] | null;
5000
+ };
5001
+ messages: AdminCopilotMessage[];
5002
+ plans: AdminCopilotPlan[];
5003
+ executions: AdminCopilotExecution[];
5004
+ }
5005
+ /**
5006
+ * Copilot Memory (Admin)
5007
+ */
5008
+ interface AdminCopilotMemory {
5009
+ id: string;
5010
+ projectId: string;
5011
+ sessionId: string | null;
5012
+ memoryType: string;
5013
+ content: string;
5014
+ importance: string;
5015
+ entities: string[];
5016
+ messageIds: string[];
5017
+ confidence: string;
5018
+ accessCount: number;
5019
+ lastAccessedAt: string;
5020
+ expiresAt: string | null;
5021
+ createdAt: string;
5022
+ projectName: string | null;
5023
+ }
5024
+ /**
5025
+ * Memory list options
5026
+ */
5027
+ interface AdminMemoryListOptions extends AdminListOptions {
5028
+ projectId?: string;
5029
+ memoryType?: string;
5030
+ importance?: string;
5031
+ }
5032
+ /**
5033
+ * Memory stats response
5034
+ */
5035
+ interface AdminMemoryStats {
5036
+ totalMemories: number;
5037
+ byType: Record<string, number>;
5038
+ byImportance: Record<string, number>;
5039
+ avgConfidence: number;
5040
+ mostAccessed: Array<{
5041
+ id: string;
5042
+ content: string;
5043
+ memoryType: string;
5044
+ accessCount: number;
5045
+ projectName: string | null;
5046
+ }>;
5047
+ byProject: Array<{
5048
+ projectId: string;
5049
+ projectName: string | null;
5050
+ count: number;
5051
+ }>;
5052
+ recentMemories: number;
5053
+ expiredMemories: number;
5054
+ }
5055
+ /**
5056
+ * Memory update input
5057
+ */
5058
+ interface AdminMemoryUpdateInput {
5059
+ content?: string;
5060
+ importance?: "critical" | "high" | "medium" | "low";
5061
+ memoryType?: string;
5062
+ entities?: string[];
5063
+ confidence?: number;
5064
+ expiresAt?: string | null;
5065
+ }
5066
+ /**
5067
+ * Training data export options
5068
+ */
5069
+ interface TrainingDataExportOptions {
5070
+ format?: "jsonl" | "conversations" | "classification" | "memories";
5071
+ dataType?: "all" | "conversations" | "classification" | "memories";
5072
+ minConfidence?: number;
5073
+ limit?: number;
5074
+ includeExecuted?: boolean;
5075
+ includeSuccessful?: boolean;
5076
+ }
5077
+ /**
5078
+ * Training data export response
5079
+ */
5080
+ interface TrainingDataExportResponse {
5081
+ format: string;
5082
+ dataType: string;
5083
+ recordCount: number;
5084
+ data: any[];
5085
+ entityPatterns: Array<{
5086
+ entityType: string;
5087
+ pattern: string;
5088
+ patternType: string;
5089
+ confidence: string;
5090
+ usageCount: number;
5091
+ }>;
5092
+ exportedAt: string;
5093
+ metadata: {
5094
+ minConfidence: number;
5095
+ includeExecuted: boolean;
5096
+ includeSuccessful: boolean;
5097
+ };
5098
+ }
5099
+ /**
5100
+ * Training data stats response
5101
+ */
5102
+ interface TrainingDataStats {
5103
+ conversations: {
5104
+ totalSessions: number;
5105
+ totalMessages: number;
5106
+ completedSessions: number;
5107
+ executedSessions: number;
5108
+ };
5109
+ classification: {
5110
+ totalFeedback: number;
5111
+ correctClassifications: number;
5112
+ incorrectClassifications: number;
5113
+ accuracy: string;
5114
+ };
5115
+ memories: {
5116
+ total: number;
5117
+ avgConfidence: number;
5118
+ highImportanceCount: number;
5119
+ };
5120
+ entityPatterns: {
5121
+ total: number;
5122
+ active: number;
5123
+ avgConfidence: number;
5124
+ };
5125
+ intentDistribution: Array<{
5126
+ intent: string;
5127
+ count: number;
5128
+ }>;
5129
+ recommendations: {
5130
+ readyForFineTuning: boolean;
5131
+ suggestedMinSessions: number;
5132
+ suggestedMinFeedback: number;
5133
+ dataQuality: {
5134
+ score: number;
5135
+ level: string;
5136
+ details: string[];
5137
+ };
5138
+ };
5139
+ }
4882
5140
  /**
4883
5141
  * Admin module interface
4884
5142
  */
@@ -5111,6 +5369,37 @@ interface AdminModule {
5111
5369
  deleteContextSnapshot(snapshotId: string): Promise<{
5112
5370
  ok: boolean;
5113
5371
  }>;
5372
+ getCopilotOverview(): Promise<AdminCopilotOverview>;
5373
+ listCopilotSessions(options?: AdminListOptions & {
5374
+ status?: string;
5375
+ }): Promise<{
5376
+ sessions: AdminCopilotSession[];
5377
+ total: number;
5378
+ }>;
5379
+ getCopilotSession(sessionId: string): Promise<AdminCopilotSessionDetails>;
5380
+ deleteCopilotSession(sessionId: string): Promise<{
5381
+ ok: boolean;
5382
+ }>;
5383
+ listCopilotMemories(options?: AdminMemoryListOptions): Promise<{
5384
+ memories: AdminCopilotMemory[];
5385
+ total: number;
5386
+ }>;
5387
+ getCopilotMemoryStats(): Promise<AdminMemoryStats>;
5388
+ getCopilotMemory(memoryId: string): Promise<{
5389
+ memory: AdminCopilotMemory;
5390
+ }>;
5391
+ updateCopilotMemory(memoryId: string, input: AdminMemoryUpdateInput): Promise<{
5392
+ memory: AdminCopilotMemory;
5393
+ }>;
5394
+ deleteCopilotMemory(memoryId: string): Promise<{
5395
+ ok: boolean;
5396
+ }>;
5397
+ cleanupExpiredMemories(): Promise<{
5398
+ ok: boolean;
5399
+ deletedCount: number;
5400
+ }>;
5401
+ exportTrainingData(options?: TrainingDataExportOptions): Promise<TrainingDataExportResponse>;
5402
+ getTrainingDataStats(): Promise<TrainingDataStats>;
5114
5403
  }
5115
5404
 
5116
5405
  /**
@@ -5539,7 +5828,7 @@ type AIModelProvider = "openai" | "anthropic";
5539
5828
  /**
5540
5829
  * Generation types supported by the AI workspace
5541
5830
  */
5542
- type GenerationType = "schema" | "storage" | "functions" | "backend" | "fullstack";
5831
+ type GenerationType$1 = "schema" | "storage" | "functions" | "backend" | "fullstack";
5543
5832
  /**
5544
5833
  * Model capabilities
5545
5834
  */
@@ -5609,7 +5898,7 @@ interface WorkspaceTurn {
5609
5898
  reasoningContent?: string;
5610
5899
  outputContent?: string;
5611
5900
  generatedCode?: Record<string, string>;
5612
- clarificationQuestions?: ClarificationQuestion[];
5901
+ clarificationQuestions?: ClarificationQuestion$1[];
5613
5902
  clarificationResponses?: ClarificationResponses;
5614
5903
  inputTokens: number;
5615
5904
  outputTokens: number;
@@ -5677,7 +5966,7 @@ type ClarificationCategory = "architecture" | "features" | "data_model" | "auth"
5677
5966
  /**
5678
5967
  * A clarification question
5679
5968
  */
5680
- interface ClarificationQuestion {
5969
+ interface ClarificationQuestion$1 {
5681
5970
  id: string;
5682
5971
  question: string;
5683
5972
  type: ClarificationQuestionType;
@@ -5712,7 +6001,7 @@ interface ExtractedRequirements {
5712
6001
  interface ClarificationAnalysisResult {
5713
6002
  needsClarification: boolean;
5714
6003
  confidence: "low" | "medium" | "high";
5715
- questions: ClarificationQuestion[];
6004
+ questions: ClarificationQuestion$1[];
5716
6005
  extractedRequirements: ExtractedRequirements;
5717
6006
  suggestedApproach?: string;
5718
6007
  }
@@ -5722,7 +6011,7 @@ interface ClarificationAnalysisResult {
5722
6011
  interface SubmitPromptResult {
5723
6012
  turn: WorkspaceTurn;
5724
6013
  needsClarification: boolean;
5725
- questions: ClarificationQuestion[];
6014
+ questions: ClarificationQuestion$1[];
5726
6015
  suggestedApproach?: string;
5727
6016
  extractedRequirements: ExtractedRequirements;
5728
6017
  }
@@ -6079,7 +6368,8 @@ interface AIModule {
6079
6368
  */
6080
6369
  getSuggestions(input: {
6081
6370
  projectId: string;
6082
- generationTypes: GenerationType[];
6371
+ generationTypes: GenerationType$1[];
6372
+ modelId?: string;
6083
6373
  }): Promise<{
6084
6374
  suggestions: string[];
6085
6375
  }>;
@@ -7445,6 +7735,307 @@ interface MongoDBModule {
7445
7735
  command<R = unknown>(command: Record<string, unknown>): Promise<R>;
7446
7736
  }
7447
7737
 
7738
+ /**
7739
+ * Copilot intent categories
7740
+ */
7741
+ type CopilotIntentCategory = "generation" | "modification" | "optimization" | "integration" | "query" | "conversation";
7742
+ /**
7743
+ * Generation types supported by Copilot
7744
+ */
7745
+ type GenerationType = "schema" | "storage" | "functions" | "backend" | "fullstack";
7746
+ /**
7747
+ * Classification methods
7748
+ */
7749
+ type ClassificationMethod = "ai" | "pattern" | "hybrid";
7750
+ /**
7751
+ * Extracted entity from a prompt
7752
+ */
7753
+ interface ExtractedEntity {
7754
+ type: "table" | "field" | "function" | "service" | "feature" | "value";
7755
+ value: string;
7756
+ span?: {
7757
+ start: number;
7758
+ end: number;
7759
+ };
7760
+ confidence?: number;
7761
+ context?: string;
7762
+ relationships?: Array<{
7763
+ relatedEntity: string;
7764
+ relationshipType: string;
7765
+ }>;
7766
+ aiExtracted?: boolean;
7767
+ }
7768
+ /**
7769
+ * Clarification question
7770
+ */
7771
+ interface ClarificationQuestion {
7772
+ id: string;
7773
+ question: string;
7774
+ type: "choice" | "text" | "confirm" | "multi-select";
7775
+ options?: Array<{
7776
+ value: string;
7777
+ label: string;
7778
+ description?: string;
7779
+ }>;
7780
+ required: boolean;
7781
+ }
7782
+ /**
7783
+ * Plan step
7784
+ */
7785
+ interface CopilotPlanStep {
7786
+ id: string;
7787
+ templateId?: string;
7788
+ name?: string;
7789
+ description: string;
7790
+ generationType?: GenerationType;
7791
+ dependencies?: string[];
7792
+ order?: number;
7793
+ estimatedTokens: number;
7794
+ estimatedCredits?: number;
7795
+ canParallelize?: boolean;
7796
+ status?: "pending" | "in_progress" | "completed" | "failed" | "skipped";
7797
+ entityFocus?: string[];
7798
+ }
7799
+ /**
7800
+ * Copilot execution plan
7801
+ */
7802
+ interface CopilotPlan {
7803
+ id: string;
7804
+ intent: string;
7805
+ confidence?: number;
7806
+ description?: string;
7807
+ steps: CopilotPlanStep[];
7808
+ parallelGroups?: string[][];
7809
+ estimatedTokens: number;
7810
+ estimatedCredits: number;
7811
+ complexityMultiplier?: number;
7812
+ requiresClarification?: boolean;
7813
+ clarificationQuestions?: ClarificationQuestion[];
7814
+ status: "pending" | "pending_clarification" | "ready" | "in_progress" | "completed" | "failed" | "cancelled";
7815
+ aiGenerated?: boolean;
7816
+ entityMapping?: Record<string, string[]>;
7817
+ createdAt?: string;
7818
+ }
7819
+ /**
7820
+ * Copilot session
7821
+ */
7822
+ interface CopilotSession {
7823
+ id: string;
7824
+ projectId: string;
7825
+ userId?: string;
7826
+ title?: string;
7827
+ summary?: string;
7828
+ status: "active" | "completed" | "archived" | "error";
7829
+ intentHistory?: string[];
7830
+ generationTypes?: GenerationType[];
7831
+ messageCount: number;
7832
+ totalCreditsUsed?: number;
7833
+ createdAt: string;
7834
+ updatedAt?: string;
7835
+ lastMessageAt?: string;
7836
+ }
7837
+ /**
7838
+ * Copilot message
7839
+ */
7840
+ interface CopilotMessage {
7841
+ id: string;
7842
+ sessionId?: string;
7843
+ role: "user" | "assistant" | "system";
7844
+ content: string;
7845
+ intent?: string;
7846
+ plan?: CopilotPlan;
7847
+ artifacts?: GeneratedArtifacts;
7848
+ clarificationQuestions?: ClarificationQuestion[];
7849
+ suggestions?: string[];
7850
+ executed?: boolean;
7851
+ creditsCharged?: number;
7852
+ createdAt: string;
7853
+ }
7854
+ /**
7855
+ * Generated artifacts from Copilot
7856
+ */
7857
+ interface GeneratedArtifacts {
7858
+ schema?: {
7859
+ tables: Array<{
7860
+ name: string;
7861
+ columns: Array<{
7862
+ name: string;
7863
+ type: string;
7864
+ nullable?: boolean;
7865
+ }>;
7866
+ }>;
7867
+ };
7868
+ functions?: Array<{
7869
+ name: string;
7870
+ code: string;
7871
+ }>;
7872
+ storage?: Array<{
7873
+ name: string;
7874
+ config: Record<string, unknown>;
7875
+ }>;
7876
+ files?: Record<string, string>;
7877
+ }
7878
+ /**
7879
+ * Chat request input
7880
+ */
7881
+ interface CopilotChatInput {
7882
+ projectId: string;
7883
+ sessionId?: string;
7884
+ message: string;
7885
+ attachments?: Array<{
7886
+ type: "schema" | "function" | "file" | "context";
7887
+ name?: string;
7888
+ content: string;
7889
+ }>;
7890
+ generationTypes?: GenerationType[];
7891
+ modelId?: string;
7892
+ }
7893
+ /**
7894
+ * Chat response
7895
+ */
7896
+ interface CopilotChatResponse {
7897
+ ok: true;
7898
+ sessionId: string;
7899
+ messageId: string;
7900
+ response: {
7901
+ type: "clarification" | "plan" | "generation" | "explanation" | "action" | "error";
7902
+ content: string;
7903
+ questions?: ClarificationQuestion[];
7904
+ plan?: CopilotPlan;
7905
+ artifacts?: GeneratedArtifacts;
7906
+ };
7907
+ context: {
7908
+ turnNumber: number;
7909
+ tokensUsed: number;
7910
+ creditsCharged: number;
7911
+ classificationMethod?: ClassificationMethod;
7912
+ modelCategory: string;
7913
+ };
7914
+ suggestions?: string[];
7915
+ }
7916
+ /**
7917
+ * Intent classification result
7918
+ */
7919
+ interface IntentClassification {
7920
+ intent: string;
7921
+ primaryIntent: string;
7922
+ secondaryIntents: string[];
7923
+ category: CopilotIntentCategory;
7924
+ confidence: number;
7925
+ entities: ExtractedEntity[];
7926
+ isVague: boolean;
7927
+ requiresClarification: boolean;
7928
+ clarificationQuestions: ClarificationQuestion[];
7929
+ classificationMethod?: ClassificationMethod;
7930
+ aiConfidence?: number;
7931
+ patternConfidence?: number;
7932
+ intentHierarchy?: Array<{
7933
+ intent: string;
7934
+ confidence: number;
7935
+ reasoning: string;
7936
+ }>;
7937
+ suggestedSequence?: string[];
7938
+ }
7939
+ /**
7940
+ * Classification feedback input
7941
+ */
7942
+ interface ClassificationFeedbackInput {
7943
+ sessionId: string;
7944
+ messageId: string;
7945
+ feedbackType: "correct" | "incorrect" | "partial";
7946
+ correctedIntent?: string;
7947
+ userFeedback?: string;
7948
+ }
7949
+ /**
7950
+ * Classification statistics
7951
+ */
7952
+ interface ClassificationStats {
7953
+ totalClassifications: number;
7954
+ accuracyRate: number;
7955
+ intentDistribution: Record<string, number>;
7956
+ commonMisclassifications: Array<{
7957
+ from: string;
7958
+ to: string;
7959
+ count: number;
7960
+ }>;
7961
+ }
7962
+ /**
7963
+ * Execute plan input
7964
+ */
7965
+ interface ExecutePlanInput {
7966
+ sessionId: string;
7967
+ planId: string;
7968
+ stepIds?: string[];
7969
+ dryRun?: boolean;
7970
+ }
7971
+ /**
7972
+ * Execute plan result
7973
+ */
7974
+ interface ExecutePlanResult {
7975
+ ok: boolean;
7976
+ dryRun?: boolean;
7977
+ plan?: CopilotPlan;
7978
+ results: Array<{
7979
+ stepId: string;
7980
+ status: "pending" | "success" | "failed" | "skipped";
7981
+ description?: string;
7982
+ output?: unknown;
7983
+ durationMs?: number;
7984
+ tokensUsed?: number;
7985
+ creditsCharged?: number;
7986
+ error?: string;
7987
+ }>;
7988
+ artifacts?: GeneratedArtifacts;
7989
+ error?: string;
7990
+ }
7991
+ interface CopilotModule {
7992
+ /**
7993
+ * Send a chat message to the Copilot
7994
+ */
7995
+ chat(input: CopilotChatInput): Promise<CopilotChatResponse>;
7996
+ /**
7997
+ * List sessions for a project
7998
+ */
7999
+ listSessions(projectId: string): Promise<{
8000
+ sessions: CopilotSession[];
8001
+ }>;
8002
+ /**
8003
+ * Get a session with its messages
8004
+ */
8005
+ getSession(sessionId: string): Promise<{
8006
+ session: CopilotSession;
8007
+ messages: CopilotMessage[];
8008
+ }>;
8009
+ /**
8010
+ * Update session metadata (title)
8011
+ */
8012
+ updateSession(sessionId: string, data: {
8013
+ title?: string;
8014
+ }): Promise<{
8015
+ ok: boolean;
8016
+ }>;
8017
+ /**
8018
+ * Archive/delete a session
8019
+ */
8020
+ deleteSession(sessionId: string): Promise<{
8021
+ ok: boolean;
8022
+ }>;
8023
+ /**
8024
+ * Execute a plan from a session
8025
+ */
8026
+ executePlan(input: ExecutePlanInput): Promise<ExecutePlanResult>;
8027
+ /**
8028
+ * Submit classification feedback for learning
8029
+ */
8030
+ submitFeedback(input: ClassificationFeedbackInput): Promise<{
8031
+ ok: boolean;
8032
+ }>;
8033
+ /**
8034
+ * Get classification statistics (admin)
8035
+ */
8036
+ getClassificationStats(): Promise<ClassificationStats>;
8037
+ }
8038
+
7448
8039
  /**
7449
8040
  * Main VAIF client interface
7450
8041
  */
@@ -7558,6 +8149,23 @@ interface VaifClient {
7558
8149
  * ```
7559
8150
  */
7560
8151
  mongodb: MongoDBModule;
8152
+ /**
8153
+ * VAIF Copilot AI assistant operations
8154
+ *
8155
+ * @example
8156
+ * ```ts
8157
+ * // Chat with Copilot
8158
+ * const response = await vaif.copilot.chat({
8159
+ * projectId: 'proj_123',
8160
+ * message: 'Create a users table with email and name',
8161
+ * generationTypes: ['schema'],
8162
+ * });
8163
+ *
8164
+ * // Get session history
8165
+ * const { sessions } = await vaif.copilot.listSessions('proj_123');
8166
+ * ```
8167
+ */
8168
+ copilot: CopilotModule;
7561
8169
  /**
7562
8170
  * Create a realtime client for WebSocket subscriptions
7563
8171
  *
@@ -7664,4 +8272,4 @@ declare class VaifNotFoundError extends VaifError {
7664
8272
  */
7665
8273
  declare function isVaifError(error: unknown): error is VaifError;
7666
8274
 
7667
- export { type AIModule, type AIPlan, type AIPlanStep, type AIProjectOverrides, type AISettings, type AIUsageBreakdown, type AIUsageResult, type AddBillingContactInput, type AdminListOptions, type AdminModule, type AdminOrg, type AdminOrgDetails, type AdminOrgMember, type AdminOrgProfile, type AdminOverviewResponse, type AdminProject, type AdminProjectDetails, type AdminUser, type AdminUserDetails, type AggregateClause, type AggregateFunction, type AggregateOptions, type AggregateResult, type AnalyticsConfig, type AndFilter, type ApiErrorResponse, type ApiKey, type ApiParam, type ApiResponse, type ApplyInput, type ApplyResponse, type AuthModule, type AuthResponse, type BaseEntity, type BatchCreateOptions, type BatchCreateResult, type BatchDeleteResult$1 as BatchDeleteResult, type BatchInvokeInput, type BatchInvokeResult, type BatchUpdateOptions, type BatchUpdateResult, type BillingContact, type BillingModule, type BillingSummary, type BootstrapData, type BootstrapEntitlements, type BootstrapModule, type BootstrapPlanLimits, type BootstrapUser, type BroadcastEvent, type BroadcastOptions, type BudgetStatus, type ChangePasswordInput, type ChangelogFeature, type ChannelOptions, type ChannelType, type CheckEntitlementInput, type CheckEntitlementResponse, type CheckoutInput, type CheckoutResponse, type CodeLanguage, type ColumnDefinition, type ColumnType, type ComponentStatus, type ConfigureOAuthInput, type ConnectionState, type Conversation, type ConversationMessage, type CopyOptions, type CreateApiKeyInput, type CreateApiKeyResponse, type CreateBucketInput, type CreateBucketOptions, type CreateConversationInput, type CreateDeployTokenInput, type CreateDeployTokenResult, type CreateDocApiEndpointInput, type CreateDocChangelogInput, type CreateDocExampleInput, type CreateDocPageInput, type CreateDocSdkExampleInput, type CreateDocSdkInput, type CreateEnvVarInput, type CreateFlagInput, type CreateFunctionInput, type CreateIncidentInput, type CreateOrgInput, type CreateProjectFromTemplateResponse, type CreateProjectInput, type CreateProjectResponse, type CreateSecretInput, type CreateSubscriptionInput, type CursorPaginationOptions, type CursorPaginationResult, type DLQListOptions, type DLQMessage, type DataModule, type DbChangeEvent, type DbOperation, type DeleteOptions, type DeleteResponse, type DeleteSecretResult, type DeliveryStatus, type DeployOptions, type DeployResult, type DeployToken, type Deployment, type DeploymentStep, type DeploymentWithSteps, type DeploymentsModule, type DiscordConfig, type DlqDelivery, type DocApiEndpoint, type DocChangelogEntry, type DocExample, type DocPage, type DocSdk, type DocSdkExample, type DocSearchResult, type DocsModule, type DownloadOptions, type EmailConfig, type EmailVerificationConfirmInput, type EmailVerificationRequestInput, type EnableAllRealtimeInput, type EnableAllRealtimeResult, type EntitlementsResponse, type EnvVar, type Environment, type ErrorEvent, type Event, type EventFilter, type EventHandler, type EventSource, type ExampleEndpoint, type ExampleFunction, type ExampleRealtimeEvent, type ExplainPlanInput, type ExplainPlanResult, type ExportCodeInput, type ExportCodeResult, type FeatureFlag, type FileMetadata, type FlagsModule, type FunctionEnvVar, type FunctionInvocation, type FunctionLog, type RetryConfig as FunctionRetryConfig, type FunctionRuntime, type FunctionVersion, type FunctionsModule, type GenerateEndpointInput, type GenerateEndpointResult, type GenerateFunctionInput, type GenerateFunctionResult, type GeneratePlanInput, type GeneratePlanResult, type GeneratedFile, type GetProjectResponse, type HttpMethod, type ImageTransformOptions, type IncidentAlert, type IncidentSeverity, type IncidentStatus, type IncludeClause, type IndexDefinition, type InstallApplyResponse, type InstallPreviewResponse, type InstallRealtimeInput, type InstallRealtimeResult, type IntegrationsModule, type InviteMemberInput, type InvokeInput, type InvokeOptions, type InvokeResult, type IsolationLevel, type ItemResponse, type ListDeliveriesOptions, type ListEventsOptions, type ListFilesOptions, type ListFilesResponse, type ListFunctionsOptions, type ListInvocationsOptions, type ListResponse, type LoginOptions, type MFAChallenge, type MFAMethod, type MFASetupResponse, type MFAVerifyResponse, type MagicLinkRequestInput, type MagicLinkVerifyInput, type MessageRole, type Migration, type MigrationResult, type Mode, type MongoAggregateOptions, type MongoArrayOperator, type MongoCollectionClient, type MongoComparisonOperator, type MongoCursor, type MongoDBModule, type MongoDeleteResult, type MongoDistinctOptions, type MongoElementOperator, type MongoEvaluationOperator, type MongoFilter, type MongoFindAndModifyResult, type MongoFindOneAndDeleteOptions, type MongoFindOneAndUpdateOptions, type MongoFindOptions, type MongoInsertManyResult, type MongoInsertOneResult, type MongoLogicalOperator, type MongoPipelineStage, type MongoProjection, type MongoSort, type MongoUpdateOperators, type MongoUpdateOptions, type MongoUpdateResult, type MoveOptions, type MultipartUpload, type MultipartUploadOptions, type NotFilter, type OAuthCallbackInput, type OAuthConnection, type OAuthModule, type OAuthProvider, type OAuthProviderType, type OAuthSignInOptions, type OAuthSignInResponse, type OrFilter, type OrderByClause, type Org, type OrgBilling, type OrgMember, type OrgMembership, type OrgProfile, type OrgsModule, type PageInfo, type PaginatedResult, type PasswordResetConfirmInput, type PasswordResetRequestInput, type PendingInvite, type PhoneVerificationConfirmInput, type PhoneVerificationRequestInput, type PlanDefinition, type PlanLimits, type PlanName, type PlanStep, type PlansResponse, type PortalInput, type PortalResponse, type PresenceEntry, type PresenceEvent, type PresenceState, type PresenceStateEvent, type PresenceTrackOptions, type PresignedUrl, type PreviewInput, type PreviewResponse, type Project, type ProjectMetrics, type ProjectResource, type ProjectResourcesResponse, type ProjectStats, type ProjectsModule, type PromoteInput, type PromoteResult, type Provider, type PublishEventInput, type PublishEventResult, type QueryOptions, type QueueStats, type QueueTotals, type RealtimeChannel, type RealtimeClient, type RealtimeClientEvent, type RealtimeConfig, type RealtimeConnection, type RealtimeEvent, type RealtimeEventType, type RealtimeMonitoringEvent, type RealtimeMonitoringModule, type RealtimeStats, type RealtimeStatus, type RealtimeSubscription, type RefreshTokenResponse, type Region, type RetryConfig$1 as RetryConfig, type RollbackResult, type SaveSchemaInput, type SavedSchema, type ScheduleConfig, type SchemaDefinition, type SchemaModule, type Secret, type SecretsModule, type SecurityAuditLog, type SecurityModule, type SecurityOverview, type SendMessageInput, type Session, type SetDedicatedDbInput, type SignUpOptions, type SignedUrlResponse, type SlackConfig, type StandardEventName, type StatusComponent, type StorageBucket, type StorageDashboardModule, type StorageFile, type StorageModule, type SubscribeOptions, type Subscription, type SubscriptionConfig, type SubscriptionFilter, type SubscriptionType, type TableClient, type TableDefinition, type TaskType, type Template, type TemplateCategory, type TemplateDefinition, type TemplateVersion, type TemplateVisibility, type TemplatesModule, type TransactionOperation, type TransactionOptions, type TransactionResult, type TypedEventHandler, type TypedFunction, type UnsubscribeFn, type UpdateAIProjectOverridesInput, type UpdateAISettingsInput, type UpdateBucketInput, type UpdateBucketOptions, type UpdateComponentStatusInput, type UpdateDocPageInput, type UpdateDocSdkInput, type UpdateEnvVarInput, type UpdateFlagInput, type UpdateFunctionInput, type UpdateOrgProfileInput, type UpdateProfileInput, type UpdateProjectInput, type UpdateRegionInput, type UpdateSubscriptionInput, type UploadFromUrlOptions, type UploadOptions, type UploadPart, type UploadResult$1 as UploadResult, type UpsertOptions, type Usage, type UsageEntry, type User, type UserActivity, type UserMembership, VaifAuthError, type VaifClient, type VaifClientConfig, VaifError, type VaifFunction, VaifNetworkError, VaifNotFoundError, VaifRateLimitError, VaifValidationError, type VerifySignatureOptions, type WebhookConfig, type WebhookDelivery, type WelcomeEvent, type WhereClause, type WhereFilter, type WhereOperator, createVaifClient, isVaifError };
8275
+ export { type AIModule, type AIPlan, type AIPlanStep, type AIProjectOverrides, type AISettings, type AIUsageBreakdown, type AIUsageResult, type AddBillingContactInput, type AdminCopilotExecution, type AdminCopilotMemory, type AdminCopilotMessage, type AdminCopilotOverview, type AdminCopilotPlan, type AdminCopilotSession, type AdminCopilotSessionDetails, type AdminListOptions, type AdminMemoryListOptions, type AdminMemoryStats, type AdminMemoryUpdateInput, type AdminModule, type AdminOrg, type AdminOrgDetails, type AdminOrgMember, type AdminOrgProfile, type AdminOverviewResponse, type AdminProject, type AdminProjectDetails, type AdminUser, type AdminUserDetails, type AggregateClause, type AggregateFunction, type AggregateOptions, type AggregateResult, type AnalyticsConfig, type AndFilter, type ApiErrorResponse, type ApiKey, type ApiParam, type ApiResponse, type ApplyInput, type ApplyResponse, type AuthModule, type AuthResponse, type BaseEntity, type BatchCreateOptions, type BatchCreateResult, type BatchDeleteResult$1 as BatchDeleteResult, type BatchInvokeInput, type BatchInvokeResult, type BatchUpdateOptions, type BatchUpdateResult, type BillingContact, type BillingModule, type BillingSummary, type BootstrapData, type BootstrapEntitlements, type BootstrapModule, type BootstrapPlanLimits, type BootstrapUser, type BroadcastEvent, type BroadcastOptions, type BudgetStatus, type ChangePasswordInput, type ChangelogFeature, type ChannelOptions, type ChannelType, type CheckEntitlementInput, type CheckEntitlementResponse, type CheckoutInput, type CheckoutResponse, type ClassificationFeedbackInput, type ClassificationMethod, type ClassificationStats, type CodeLanguage, type ColumnDefinition, type ColumnType, type ComponentStatus, type ConfigureOAuthInput, type ConnectionState, type Conversation, type ConversationMessage, type CopilotChatInput, type CopilotChatResponse, type ClarificationQuestion as CopilotClarificationQuestion, type GenerationType as CopilotGenerationType, type CopilotIntentCategory, type CopilotMessage, type CopilotModule, type CopilotPlan, type CopilotPlanStep, type CopilotSession, type CopyOptions, type CreateApiKeyInput, type CreateApiKeyResponse, type CreateBucketInput, type CreateBucketOptions, type CreateConversationInput, type CreateDeployTokenInput, type CreateDeployTokenResult, type CreateDocApiEndpointInput, type CreateDocChangelogInput, type CreateDocExampleInput, type CreateDocPageInput, type CreateDocSdkExampleInput, type CreateDocSdkInput, type CreateEnvVarInput, type CreateFlagInput, type CreateFunctionInput, type CreateIncidentInput, type CreateOrgInput, type CreateProjectFromTemplateResponse, type CreateProjectInput, type CreateProjectResponse, type CreateSecretInput, type CreateSubscriptionInput, type CursorPaginationOptions, type CursorPaginationResult, type DLQListOptions, type DLQMessage, type DataModule, type DbChangeEvent, type DbOperation, type DeleteOptions, type DeleteResponse, type DeleteSecretResult, type DeliveryStatus, type DeployOptions, type DeployResult, type DeployToken, type Deployment, type DeploymentStep, type DeploymentWithSteps, type DeploymentsModule, type DiscordConfig, type DlqDelivery, type DocApiEndpoint, type DocChangelogEntry, type DocExample, type DocPage, type DocSdk, type DocSdkExample, type DocSearchResult, type DocsModule, type DownloadOptions, type EmailConfig, type EmailVerificationConfirmInput, type EmailVerificationRequestInput, type EnableAllRealtimeInput, type EnableAllRealtimeResult, type EntitlementsResponse, type EnvVar, type Environment, type ErrorEvent, type Event, type EventFilter, type EventHandler, type EventSource, type ExampleEndpoint, type ExampleFunction, type ExampleRealtimeEvent, type ExecutePlanInput, type ExecutePlanResult, type ExplainPlanInput, type ExplainPlanResult, type ExportCodeInput, type ExportCodeResult, type ExtractedEntity, type FeatureFlag, type FileMetadata, type FlagsModule, type FunctionEnvVar, type FunctionInvocation, type FunctionLog, type RetryConfig as FunctionRetryConfig, type FunctionRuntime, type FunctionVersion, type FunctionsModule, type GenerateEndpointInput, type GenerateEndpointResult, type GenerateFunctionInput, type GenerateFunctionResult, type GeneratePlanInput, type GeneratePlanResult, type GeneratedArtifacts, type GeneratedFile, type GetProjectResponse, type HttpMethod, type ImageTransformOptions, type IncidentAlert, type IncidentSeverity, type IncidentStatus, type IncludeClause, type IndexDefinition, type InstallApplyResponse, type InstallPreviewResponse, type InstallRealtimeInput, type InstallRealtimeResult, type IntegrationsModule, type IntentClassification, type InviteMemberInput, type InvokeInput, type InvokeOptions, type InvokeResult, type IsolationLevel, type ItemResponse, type ListDeliveriesOptions, type ListEventsOptions, type ListFilesOptions, type ListFilesResponse, type ListFunctionsOptions, type ListInvocationsOptions, type ListResponse, type LoginOptions, type MFAChallenge, type MFAMethod, type MFASetupResponse, type MFAVerifyResponse, type MagicLinkRequestInput, type MagicLinkVerifyInput, type MessageRole, type Migration, type MigrationResult, type Mode, type MongoAggregateOptions, type MongoArrayOperator, type MongoCollectionClient, type MongoComparisonOperator, type MongoCursor, type MongoDBModule, type MongoDeleteResult, type MongoDistinctOptions, type MongoElementOperator, type MongoEvaluationOperator, type MongoFilter, type MongoFindAndModifyResult, type MongoFindOneAndDeleteOptions, type MongoFindOneAndUpdateOptions, type MongoFindOptions, type MongoInsertManyResult, type MongoInsertOneResult, type MongoLogicalOperator, type MongoPipelineStage, type MongoProjection, type MongoSort, type MongoUpdateOperators, type MongoUpdateOptions, type MongoUpdateResult, type MoveOptions, type MultipartUpload, type MultipartUploadOptions, type NotFilter, type OAuthCallbackInput, type OAuthConnection, type OAuthModule, type OAuthProvider, type OAuthProviderType, type OAuthSignInOptions, type OAuthSignInResponse, type OrFilter, type OrderByClause, type Org, type OrgBilling, type OrgMember, type OrgMembership, type OrgProfile, type OrgsModule, type PageInfo, type PaginatedResult, type PasswordResetConfirmInput, type PasswordResetRequestInput, type PendingInvite, type PhoneVerificationConfirmInput, type PhoneVerificationRequestInput, type PlanDefinition, type PlanLimits, type PlanName, type PlanStep, type PlansResponse, type PortalInput, type PortalResponse, type PresenceEntry, type PresenceEvent, type PresenceState, type PresenceStateEvent, type PresenceTrackOptions, type PresignedUrl, type PreviewInput, type PreviewResponse, type Project, type ProjectMetrics, type ProjectResource, type ProjectResourcesResponse, type ProjectStats, type ProjectsModule, type PromoteInput, type PromoteResult, type Provider, type PublishEventInput, type PublishEventResult, type QueryOptions, type QueueStats, type QueueTotals, type RealtimeChannel, type RealtimeClient, type RealtimeClientEvent, type RealtimeConfig, type RealtimeConnection, type RealtimeEvent, type RealtimeEventType, type RealtimeMonitoringEvent, type RealtimeMonitoringModule, type RealtimeStats, type RealtimeStatus, type RealtimeSubscription, type RefreshTokenResponse, type Region, type RetryConfig$1 as RetryConfig, type RollbackResult, type SaveSchemaInput, type SavedSchema, type ScheduleConfig, type SchemaDefinition, type SchemaModule, type Secret, type SecretsModule, type SecurityAuditLog, type SecurityModule, type SecurityOverview, type SendMessageInput, type Session, type SetDedicatedDbInput, type SignUpOptions, type SignedUrlResponse, type SlackConfig, type StandardEventName, type StatusComponent, type StorageBucket, type StorageDashboardModule, type StorageFile, type StorageModule, type SubscribeOptions, type Subscription, type SubscriptionConfig, type SubscriptionFilter, type SubscriptionType, type TableClient, type TableDefinition, type TaskType, type Template, type TemplateCategory, type TemplateDefinition, type TemplateVersion, type TemplateVisibility, type TemplatesModule, type TrainingDataExportOptions, type TrainingDataExportResponse, type TrainingDataStats, type TransactionOperation, type TransactionOptions, type TransactionResult, type TypedEventHandler, type TypedFunction, type UnsubscribeFn, type UpdateAIProjectOverridesInput, type UpdateAISettingsInput, type UpdateBucketInput, type UpdateBucketOptions, type UpdateComponentStatusInput, type UpdateDocPageInput, type UpdateDocSdkInput, type UpdateEnvVarInput, type UpdateFlagInput, type UpdateFunctionInput, type UpdateOrgProfileInput, type UpdateProfileInput, type UpdateProjectInput, type UpdateRegionInput, type UpdateSubscriptionInput, type UploadFromUrlOptions, type UploadOptions, type UploadPart, type UploadResult$1 as UploadResult, type UpsertOptions, type Usage, type UsageEntry, type User, type UserActivity, type UserMembership, VaifAuthError, type VaifClient, type VaifClientConfig, VaifError, type VaifFunction, VaifNetworkError, VaifNotFoundError, VaifRateLimitError, VaifValidationError, type VerifySignatureOptions, type WebhookConfig, type WebhookDelivery, type WelcomeEvent, type WhereClause, type WhereFilter, type WhereOperator, createVaifClient, isVaifError };