@vaiftech/client 1.0.12 → 1.1.0

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
@@ -1,7 +1,153 @@
1
1
  export { AsyncStorageAdapter, AuthChangeEvent, AuthClientConfig, AuthError, AuthErrorCode, AuthEventType, Session as AuthSession, SessionInfo as AuthSessionInfo, AuthStateChangeCallback, AuthSubscription, ConfirmEmailChangeOptions, CookieStorageOptions, InvalidCredentialsError, MFAChallengeOptions, MFAChallengeResponse, MFAFactor, MFAVerifyOptions, OAuthIdentity, OAuthResponse, ResetPasswordOptions, SessionExpiredError, SessionStorage, SetPasswordOptions, SignInAnonymouslyOptions, SignInWithMagicLinkOptions, SignInWithOAuthOptions, SignInWithOTPOptions, SignInWithPasswordOptions, SignInWithSSOOptions, AuthResponse as StandaloneAuthResponse, MFAChallenge as StandaloneMFAChallenge, MFASetupResponse as StandaloneMFASetupResponse, SignUpOptions as StandaloneSignUpOptions, StorageAdapter, TokenRefreshResponse, UpdatePasswordOptions, UpdateUserOptions, VaifAuthClient, VerifyOTPOptions, localStorage as authLocalStorage, sessionStorage as authSessionStorage, cookieStorage, createAuthClient, getDefaultStorage, isBrowser, isMFAChallenge, memoryStorage } from '@vaiftech/auth';
2
2
 
3
+ /**
4
+ * Request context passed to interceptors
5
+ */
6
+ interface RequestContext {
7
+ /** The full URL being requested */
8
+ url: string;
9
+ /** The API path (without base URL) */
10
+ path: string;
11
+ /** HTTP method */
12
+ method: string;
13
+ /** Request headers */
14
+ headers: Record<string, string>;
15
+ /** Request body (if any) */
16
+ body?: string;
17
+ /** Current retry attempt (0-based) */
18
+ attempt: number;
19
+ }
20
+ /**
21
+ * Response context passed to after-response interceptors
22
+ */
23
+ interface ResponseContext<T = unknown> {
24
+ /** The original request context */
25
+ request: RequestContext;
26
+ /** The response data */
27
+ data: T;
28
+ /** HTTP status code */
29
+ status: number;
30
+ /** Response headers */
31
+ headers: Record<string, string>;
32
+ /** Request duration in milliseconds */
33
+ durationMs: number;
34
+ }
35
+ /**
36
+ * Error context passed to error interceptors
37
+ */
38
+ interface ErrorContext {
39
+ /** The original request context */
40
+ request: RequestContext;
41
+ /** The error that occurred */
42
+ error: Error;
43
+ /** Request duration in milliseconds */
44
+ durationMs: number;
45
+ /** Whether the request will be retried */
46
+ willRetry: boolean;
47
+ }
48
+ /**
49
+ * Before-request interceptor. Can modify the request context or return a new one.
50
+ * Return undefined/void to pass through, or return a modified RequestContext.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const vaif = createVaifClient({
55
+ * baseUrl: 'https://api.vaif.io',
56
+ * apiKey: 'vaif_pk_xxx',
57
+ * interceptors: {
58
+ * onRequest: (ctx) => {
59
+ * console.log(`[${ctx.method}] ${ctx.path}`);
60
+ * // Add a custom header
61
+ * ctx.headers['X-Custom'] = 'value';
62
+ * return ctx;
63
+ * }
64
+ * }
65
+ * });
66
+ * ```
67
+ */
68
+ type RequestInterceptor = (context: RequestContext) => RequestContext | void | Promise<RequestContext | void>;
69
+ /**
70
+ * After-response interceptor. Can inspect or transform the response.
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * const vaif = createVaifClient({
75
+ * baseUrl: 'https://api.vaif.io',
76
+ * apiKey: 'vaif_pk_xxx',
77
+ * interceptors: {
78
+ * onResponse: (ctx) => {
79
+ * console.log(`[${ctx.status}] ${ctx.request.path} (${ctx.durationMs}ms)`);
80
+ * }
81
+ * }
82
+ * });
83
+ * ```
84
+ */
85
+ type ResponseInterceptor = (context: ResponseContext) => void | Promise<void>;
86
+ /**
87
+ * Error interceptor. Called when a request fails (after all retries).
88
+ *
89
+ * @example
90
+ * ```ts
91
+ * const vaif = createVaifClient({
92
+ * baseUrl: 'https://api.vaif.io',
93
+ * apiKey: 'vaif_pk_xxx',
94
+ * interceptors: {
95
+ * onError: (ctx) => {
96
+ * reportError(ctx.error, { path: ctx.request.path, durationMs: ctx.durationMs });
97
+ * }
98
+ * }
99
+ * });
100
+ * ```
101
+ */
102
+ type ErrorInterceptor = (context: ErrorContext) => void | Promise<void>;
103
+ /**
104
+ * Interceptor configuration for request/response hooks
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * const vaif = createVaifClient({
109
+ * baseUrl: 'https://api.vaif.io',
110
+ * apiKey: 'vaif_pk_xxx',
111
+ * interceptors: {
112
+ * onRequest: (ctx) => {
113
+ * ctx.headers['X-Request-ID'] = crypto.randomUUID();
114
+ * return ctx;
115
+ * },
116
+ * onResponse: (ctx) => {
117
+ * console.log(`${ctx.request.method} ${ctx.request.path} -> ${ctx.status} (${ctx.durationMs}ms)`);
118
+ * },
119
+ * onError: (ctx) => {
120
+ * if (!ctx.willRetry) {
121
+ * Sentry.captureException(ctx.error);
122
+ * }
123
+ * }
124
+ * }
125
+ * });
126
+ * ```
127
+ */
128
+ interface InterceptorConfig {
129
+ /** Called before each request. Can modify headers, body, etc. */
130
+ onRequest?: RequestInterceptor;
131
+ /** Called after a successful response */
132
+ onResponse?: ResponseInterceptor;
133
+ /** Called when a request fails */
134
+ onError?: ErrorInterceptor;
135
+ }
3
136
  /**
4
137
  * Configuration for the VAIF client
138
+ *
139
+ * @example
140
+ * ```ts
141
+ * const vaif = createVaifClient({
142
+ * baseUrl: 'https://api.myproject.vaif.io',
143
+ * apiKey: 'vaif_pk_xxx',
144
+ * timeout: 15000,
145
+ * retry: { maxRetries: 3, retryDelay: 1000 },
146
+ * interceptors: {
147
+ * onRequest: (ctx) => { console.log('Request:', ctx.path); return ctx; }
148
+ * }
149
+ * });
150
+ * ```
5
151
  */
6
152
  interface VaifClientConfig {
7
153
  /** Base URL of the VAIF API (e.g., https://api.vaif.io) */
@@ -18,17 +164,40 @@ interface VaifClientConfig {
18
164
  timeout?: number;
19
165
  /** Retry configuration for failed requests */
20
166
  retry?: RetryConfig$1;
167
+ /** Request/response interceptors for logging, auth refresh, etc. */
168
+ interceptors?: InterceptorConfig;
21
169
  }
22
170
  /**
23
- * Retry configuration
171
+ * Retry configuration for automatic retries with exponential backoff
172
+ *
173
+ * @example
174
+ * ```ts
175
+ * const vaif = createVaifClient({
176
+ * baseUrl: 'https://api.vaif.io',
177
+ * apiKey: 'vaif_pk_xxx',
178
+ * retry: {
179
+ * maxRetries: 3,
180
+ * retryDelay: 1000,
181
+ * maxRetryDelay: 30000,
182
+ * backoffMultiplier: 2,
183
+ * retryOn: [429, 500, 502, 503, 504],
184
+ * }
185
+ * });
186
+ * ```
24
187
  */
25
188
  interface RetryConfig$1 {
26
189
  /** Maximum number of retries (default: 3) */
27
190
  maxRetries?: number;
28
191
  /** Base delay between retries in ms (default: 1000) */
29
192
  retryDelay?: number;
193
+ /** Maximum delay between retries in ms (default: 30000). Caps exponential backoff. */
194
+ maxRetryDelay?: number;
195
+ /** Backoff multiplier for exponential delay (default: 2) */
196
+ backoffMultiplier?: number;
30
197
  /** HTTP status codes that should trigger a retry (default: [429, 500, 502, 503, 504]) */
31
198
  retryOn?: number[];
199
+ /** Whether to retry on network errors like timeouts (default: true) */
200
+ retryOnNetworkError?: boolean;
32
201
  }
33
202
  /**
34
203
  * Configuration for the realtime client
@@ -3452,7 +3621,11 @@ interface RealtimeMonitoringModule {
3452
3621
  /**
3453
3622
  * Get recent realtime events for a project
3454
3623
  */
3455
- getEvents(projectId: string, limit?: number): Promise<RealtimeMonitoringEvent[]>;
3624
+ getEvents(projectId: string, options?: {
3625
+ limit?: number;
3626
+ source?: string;
3627
+ level?: string;
3628
+ }): Promise<RealtimeMonitoringEvent[]>;
3456
3629
  /**
3457
3630
  * Get realtime status (tables with triggers) for a project
3458
3631
  */
@@ -8389,11 +8562,46 @@ interface ExecutePlanResult {
8389
8562
  artifacts?: GeneratedArtifacts;
8390
8563
  error?: string;
8391
8564
  }
8565
+ /**
8566
+ * Available copilot model info
8567
+ */
8568
+ interface CopilotModelInfo {
8569
+ modelId: string;
8570
+ name: string;
8571
+ tier: "free" | "pro" | "enterprise";
8572
+ available: boolean;
8573
+ multiplier: number;
8574
+ }
8575
+ /**
8576
+ * Credit status response
8577
+ */
8578
+ interface CopilotCreditStatus {
8579
+ totalCreditsUsed: number;
8580
+ creditLimit: number;
8581
+ percentUsed: number;
8582
+ remaining: number;
8583
+ status: "ok" | "warning" | "exceeded";
8584
+ premiumMultiplier: number;
8585
+ }
8392
8586
  interface CopilotModule {
8393
8587
  /**
8394
8588
  * Send a chat message to the Copilot
8395
8589
  */
8396
8590
  chat(input: CopilotChatInput): Promise<CopilotChatResponse>;
8591
+ /**
8592
+ * Get streaming URL for chat (returns full API URL)
8593
+ */
8594
+ getStreamUrl(): string;
8595
+ /**
8596
+ * Get available models based on plan entitlements
8597
+ */
8598
+ getModels(projectId: string): Promise<{
8599
+ models: CopilotModelInfo[];
8600
+ }>;
8601
+ /**
8602
+ * Get credit status for the project
8603
+ */
8604
+ getCreditStatus(projectId: string): Promise<CopilotCreditStatus>;
8397
8605
  /**
8398
8606
  * List sessions for a project
8399
8607
  */
@@ -8435,6 +8643,28 @@ interface CopilotModule {
8435
8643
  * Get classification statistics (admin)
8436
8644
  */
8437
8645
  getClassificationStats(): Promise<ClassificationStats>;
8646
+ /**
8647
+ * Get org-level usage statistics (for billing page)
8648
+ */
8649
+ getUsage(orgId: string): Promise<CopilotUsageResponse>;
8650
+ }
8651
+ /**
8652
+ * Org-level usage response
8653
+ */
8654
+ interface CopilotUsageResponse {
8655
+ orgId: string;
8656
+ summary: {
8657
+ totalSessions: number;
8658
+ totalMessages: number;
8659
+ totalCredits: number;
8660
+ totalTokens: number;
8661
+ };
8662
+ byModel: Record<string, {
8663
+ sessions: number;
8664
+ messages: number;
8665
+ credits: number;
8666
+ }>;
8667
+ premiumMultiplier: number;
8438
8668
  }
8439
8669
 
8440
8670
  /**
@@ -8668,9 +8898,64 @@ declare class VaifRateLimitError extends VaifError {
8668
8898
  declare class VaifNotFoundError extends VaifError {
8669
8899
  constructor(message: string, requestId?: string);
8670
8900
  }
8901
+ /**
8902
+ * Conflict error (409) - resource already exists or state conflict
8903
+ */
8904
+ declare class VaifConflictError extends VaifError {
8905
+ constructor(message: string, requestId?: string);
8906
+ }
8907
+ /**
8908
+ * Request timeout error - request exceeded the configured timeout
8909
+ */
8910
+ declare class VaifTimeoutError extends VaifNetworkError {
8911
+ readonly timeoutMs?: number;
8912
+ constructor(message: string, timeoutMs?: number);
8913
+ }
8671
8914
  /**
8672
8915
  * Type guard to check if an error is a VaifError
8916
+ *
8917
+ * @example
8918
+ * ```ts
8919
+ * try {
8920
+ * await vaif.from('users').get('123');
8921
+ * } catch (error) {
8922
+ * if (isVaifError(error)) {
8923
+ * console.log(error.code, error.statusCode);
8924
+ * }
8925
+ * }
8926
+ * ```
8673
8927
  */
8674
8928
  declare function isVaifError(error: unknown): error is VaifError;
8929
+ /**
8930
+ * Type guard to check if an error is a specific VaifError subclass
8931
+ *
8932
+ * @example
8933
+ * ```ts
8934
+ * try {
8935
+ * await vaif.from('users').get('123');
8936
+ * } catch (error) {
8937
+ * if (isVaifNotFoundError(error)) {
8938
+ * console.log('User not found');
8939
+ * }
8940
+ * }
8941
+ * ```
8942
+ */
8943
+ declare function isVaifNotFoundError(error: unknown): error is VaifNotFoundError;
8944
+ /**
8945
+ * Type guard for auth errors
8946
+ */
8947
+ declare function isVaifAuthError(error: unknown): error is VaifAuthError;
8948
+ /**
8949
+ * Type guard for validation errors
8950
+ */
8951
+ declare function isVaifValidationError(error: unknown): error is VaifValidationError;
8952
+ /**
8953
+ * Type guard for rate limit errors
8954
+ */
8955
+ declare function isVaifRateLimitError(error: unknown): error is VaifRateLimitError;
8956
+ /**
8957
+ * Type guard for network errors
8958
+ */
8959
+ declare function isVaifNetworkError(error: unknown): error is VaifNetworkError;
8675
8960
 
8676
- 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 };
8961
+ 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 ErrorContext, type ErrorEvent, type ErrorInterceptor, 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 InterceptorConfig, 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 RequestContext, type RequestInterceptor, type ResponseContext, type ResponseInterceptor, 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, VaifConflictError, VaifError, type VaifFunction, VaifNetworkError, VaifNotFoundError, VaifRateLimitError, VaifTimeoutError, VaifValidationError, type VerifySignatureOptions, type WebhookConfig, type WebhookDelivery, type WelcomeEvent, type WhereClause, type WhereFilter, type WhereOperator, createVaifClient, isVaifAuthError, isVaifError, isVaifNetworkError, isVaifNotFoundError, isVaifRateLimitError, isVaifValidationError };