@vaiftech/client 1.0.1 → 1.0.2

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.ts CHANGED
@@ -5728,6 +5728,612 @@ interface DocsModule {
5728
5728
  search(query: string): Promise<DocSearchResult[]>;
5729
5729
  }
5730
5730
 
5731
+ /**
5732
+ * MongoDB comparison operators
5733
+ */
5734
+ type MongoComparisonOperator = "$eq" | "$ne" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin";
5735
+ /**
5736
+ * MongoDB logical operators
5737
+ */
5738
+ type MongoLogicalOperator = "$and" | "$or" | "$not" | "$nor";
5739
+ /**
5740
+ * MongoDB element operators
5741
+ */
5742
+ type MongoElementOperator = "$exists" | "$type";
5743
+ /**
5744
+ * MongoDB array operators
5745
+ */
5746
+ type MongoArrayOperator = "$all" | "$elemMatch" | "$size";
5747
+ /**
5748
+ * MongoDB evaluation operators
5749
+ */
5750
+ type MongoEvaluationOperator = "$regex" | "$text" | "$where";
5751
+ /**
5752
+ * MongoDB filter expression
5753
+ */
5754
+ type MongoFilter<T = Record<string, unknown>> = {
5755
+ [K in keyof T]?: T[K] | {
5756
+ $eq?: T[K];
5757
+ } | {
5758
+ $ne?: T[K];
5759
+ } | {
5760
+ $gt?: T[K];
5761
+ } | {
5762
+ $gte?: T[K];
5763
+ } | {
5764
+ $lt?: T[K];
5765
+ } | {
5766
+ $lte?: T[K];
5767
+ } | {
5768
+ $in?: T[K][];
5769
+ } | {
5770
+ $nin?: T[K][];
5771
+ } | {
5772
+ $exists?: boolean;
5773
+ } | {
5774
+ $regex?: string;
5775
+ $options?: string;
5776
+ } | {
5777
+ $elemMatch?: MongoFilter<unknown>;
5778
+ } | {
5779
+ $all?: unknown[];
5780
+ } | {
5781
+ $size?: number;
5782
+ };
5783
+ } & {
5784
+ $and?: MongoFilter<T>[];
5785
+ $or?: MongoFilter<T>[];
5786
+ $nor?: MongoFilter<T>[];
5787
+ $not?: MongoFilter<T>;
5788
+ $text?: {
5789
+ $search: string;
5790
+ $language?: string;
5791
+ $caseSensitive?: boolean;
5792
+ };
5793
+ _id?: string | {
5794
+ $in?: string[];
5795
+ };
5796
+ };
5797
+ /**
5798
+ * MongoDB sort specification
5799
+ */
5800
+ type MongoSort<T = Record<string, unknown>> = {
5801
+ [K in keyof T]?: 1 | -1;
5802
+ } & {
5803
+ _id?: 1 | -1;
5804
+ };
5805
+ /**
5806
+ * MongoDB projection
5807
+ */
5808
+ type MongoProjection<T = Record<string, unknown>> = {
5809
+ [K in keyof T]?: 0 | 1 | boolean;
5810
+ } & {
5811
+ _id?: 0 | 1 | boolean;
5812
+ };
5813
+ /**
5814
+ * MongoDB update operators
5815
+ */
5816
+ interface MongoUpdateOperators<T = Record<string, unknown>> {
5817
+ $set?: Partial<T>;
5818
+ $unset?: {
5819
+ [K in keyof T]?: "" | 1 | true;
5820
+ };
5821
+ $inc?: {
5822
+ [K in keyof T]?: number;
5823
+ };
5824
+ $mul?: {
5825
+ [K in keyof T]?: number;
5826
+ };
5827
+ $min?: Partial<T>;
5828
+ $max?: Partial<T>;
5829
+ $push?: {
5830
+ [K in keyof T]?: unknown | {
5831
+ $each?: unknown[];
5832
+ $position?: number;
5833
+ $slice?: number;
5834
+ $sort?: 1 | -1;
5835
+ };
5836
+ };
5837
+ $pull?: {
5838
+ [K in keyof T]?: unknown | MongoFilter<unknown>;
5839
+ };
5840
+ $addToSet?: {
5841
+ [K in keyof T]?: unknown | {
5842
+ $each?: unknown[];
5843
+ };
5844
+ };
5845
+ $pop?: {
5846
+ [K in keyof T]?: 1 | -1;
5847
+ };
5848
+ $rename?: {
5849
+ [K in keyof T]?: string;
5850
+ };
5851
+ $currentDate?: {
5852
+ [K in keyof T]?: true | {
5853
+ $type: "date" | "timestamp";
5854
+ };
5855
+ };
5856
+ }
5857
+ /**
5858
+ * MongoDB find options
5859
+ */
5860
+ interface MongoFindOptions<T = Record<string, unknown>> {
5861
+ /** Fields to return or exclude */
5862
+ projection?: MongoProjection<T>;
5863
+ /** Sort specification */
5864
+ sort?: MongoSort<T>;
5865
+ /** Number of documents to skip */
5866
+ skip?: number;
5867
+ /** Maximum number of documents to return */
5868
+ limit?: number;
5869
+ /** Hint for index to use */
5870
+ hint?: string | Record<string, 1 | -1>;
5871
+ /** Enable explain mode */
5872
+ explain?: boolean;
5873
+ /** Read preference */
5874
+ readPreference?: "primary" | "primaryPreferred" | "secondary" | "secondaryPreferred" | "nearest";
5875
+ }
5876
+ /**
5877
+ * MongoDB insert result
5878
+ */
5879
+ interface MongoInsertOneResult {
5880
+ acknowledged: boolean;
5881
+ insertedId: string;
5882
+ }
5883
+ /**
5884
+ * MongoDB insert many result
5885
+ */
5886
+ interface MongoInsertManyResult {
5887
+ acknowledged: boolean;
5888
+ insertedCount: number;
5889
+ insertedIds: string[];
5890
+ }
5891
+ /**
5892
+ * MongoDB update result
5893
+ */
5894
+ interface MongoUpdateResult {
5895
+ acknowledged: boolean;
5896
+ matchedCount: number;
5897
+ modifiedCount: number;
5898
+ upsertedId?: string;
5899
+ upsertedCount?: number;
5900
+ }
5901
+ /**
5902
+ * MongoDB delete result
5903
+ */
5904
+ interface MongoDeleteResult {
5905
+ acknowledged: boolean;
5906
+ deletedCount: number;
5907
+ }
5908
+ /**
5909
+ * MongoDB find and modify result
5910
+ */
5911
+ interface MongoFindAndModifyResult<T> {
5912
+ value: T | null;
5913
+ ok: 1 | 0;
5914
+ lastErrorObject?: {
5915
+ updatedExisting?: boolean;
5916
+ upserted?: string;
5917
+ };
5918
+ }
5919
+ /**
5920
+ * MongoDB update options
5921
+ */
5922
+ interface MongoUpdateOptions {
5923
+ /** Create document if it doesn't exist */
5924
+ upsert?: boolean;
5925
+ /** Bypass document validation */
5926
+ bypassDocumentValidation?: boolean;
5927
+ /** Array filters for positional updates */
5928
+ arrayFilters?: MongoFilter<unknown>[];
5929
+ /** Hint for index to use */
5930
+ hint?: string | Record<string, 1 | -1>;
5931
+ }
5932
+ /**
5933
+ * MongoDB find one and update options
5934
+ */
5935
+ interface MongoFindOneAndUpdateOptions<T = Record<string, unknown>> extends MongoUpdateOptions {
5936
+ /** Return the document before or after the update */
5937
+ returnDocument?: "before" | "after";
5938
+ /** Fields to return */
5939
+ projection?: MongoProjection<T>;
5940
+ /** Sort to determine which document to modify */
5941
+ sort?: MongoSort<T>;
5942
+ }
5943
+ /**
5944
+ * MongoDB find one and delete options
5945
+ */
5946
+ interface MongoFindOneAndDeleteOptions<T = Record<string, unknown>> {
5947
+ /** Fields to return */
5948
+ projection?: MongoProjection<T>;
5949
+ /** Sort to determine which document to delete */
5950
+ sort?: MongoSort<T>;
5951
+ }
5952
+ /**
5953
+ * MongoDB aggregation pipeline stage
5954
+ */
5955
+ type MongoPipelineStage = {
5956
+ $match: MongoFilter;
5957
+ } | {
5958
+ $project: MongoProjection | Record<string, unknown>;
5959
+ } | {
5960
+ $sort: MongoSort;
5961
+ } | {
5962
+ $limit: number;
5963
+ } | {
5964
+ $skip: number;
5965
+ } | {
5966
+ $group: {
5967
+ _id: unknown;
5968
+ [key: string]: unknown;
5969
+ };
5970
+ } | {
5971
+ $unwind: string | {
5972
+ path: string;
5973
+ preserveNullAndEmptyArrays?: boolean;
5974
+ includeArrayIndex?: string;
5975
+ };
5976
+ } | {
5977
+ $lookup: {
5978
+ from: string;
5979
+ localField: string;
5980
+ foreignField: string;
5981
+ as: string;
5982
+ } | {
5983
+ from: string;
5984
+ let?: Record<string, unknown>;
5985
+ pipeline: MongoPipelineStage[];
5986
+ as: string;
5987
+ };
5988
+ } | {
5989
+ $addFields: Record<string, unknown>;
5990
+ } | {
5991
+ $set: Record<string, unknown>;
5992
+ } | {
5993
+ $unset: string | string[];
5994
+ } | {
5995
+ $replaceRoot: {
5996
+ newRoot: unknown;
5997
+ };
5998
+ } | {
5999
+ $replaceWith: unknown;
6000
+ } | {
6001
+ $count: string;
6002
+ } | {
6003
+ $facet: Record<string, MongoPipelineStage[]>;
6004
+ } | {
6005
+ $bucket: {
6006
+ groupBy: unknown;
6007
+ boundaries: unknown[];
6008
+ default?: unknown;
6009
+ output?: Record<string, unknown>;
6010
+ };
6011
+ } | {
6012
+ $bucketAuto: {
6013
+ groupBy: unknown;
6014
+ buckets: number;
6015
+ output?: Record<string, unknown>;
6016
+ granularity?: string;
6017
+ };
6018
+ } | {
6019
+ $sample: {
6020
+ size: number;
6021
+ };
6022
+ } | {
6023
+ $merge: {
6024
+ into: string | {
6025
+ db?: string;
6026
+ coll: string;
6027
+ };
6028
+ on?: string | string[];
6029
+ whenMatched?: string | MongoPipelineStage[];
6030
+ whenNotMatched?: string;
6031
+ };
6032
+ } | {
6033
+ $out: string | {
6034
+ db?: string;
6035
+ coll: string;
6036
+ };
6037
+ } | {
6038
+ $redact: unknown;
6039
+ } | {
6040
+ $geoNear: {
6041
+ near: unknown;
6042
+ distanceField: string;
6043
+ spherical?: boolean;
6044
+ maxDistance?: number;
6045
+ minDistance?: number;
6046
+ query?: MongoFilter;
6047
+ key?: string;
6048
+ };
6049
+ } | {
6050
+ $graphLookup: {
6051
+ from: string;
6052
+ startWith: unknown;
6053
+ connectFromField: string;
6054
+ connectToField: string;
6055
+ as: string;
6056
+ maxDepth?: number;
6057
+ depthField?: string;
6058
+ restrictSearchWithMatch?: MongoFilter;
6059
+ };
6060
+ } | {
6061
+ $sortByCount: unknown;
6062
+ } | {
6063
+ $fill: {
6064
+ sortBy?: MongoSort;
6065
+ output: Record<string, unknown>;
6066
+ };
6067
+ } | {
6068
+ $densify: {
6069
+ field: string;
6070
+ partitionByFields?: string[];
6071
+ range: {
6072
+ step: number;
6073
+ unit?: string;
6074
+ bounds: unknown;
6075
+ };
6076
+ };
6077
+ } | {
6078
+ $setWindowFields: {
6079
+ partitionBy?: unknown;
6080
+ sortBy?: MongoSort;
6081
+ output: Record<string, unknown>;
6082
+ };
6083
+ } | Record<string, unknown>;
6084
+ /**
6085
+ * MongoDB aggregation options
6086
+ */
6087
+ interface MongoAggregateOptions {
6088
+ /** Allow disk use for large aggregations */
6089
+ allowDiskUse?: boolean;
6090
+ /** Maximum time in milliseconds */
6091
+ maxTimeMS?: number;
6092
+ /** Bypass document validation */
6093
+ bypassDocumentValidation?: boolean;
6094
+ /** Read preference */
6095
+ readPreference?: "primary" | "primaryPreferred" | "secondary" | "secondaryPreferred" | "nearest";
6096
+ /** Hint for index */
6097
+ hint?: string | Record<string, 1 | -1>;
6098
+ /** Enable explain mode */
6099
+ explain?: boolean;
6100
+ /** Comment for profiler */
6101
+ comment?: string;
6102
+ /** Batch size for cursor */
6103
+ batchSize?: number;
6104
+ }
6105
+ /**
6106
+ * MongoDB cursor for streaming results
6107
+ */
6108
+ interface MongoCursor<T> {
6109
+ /** Check if there are more documents */
6110
+ hasNext(): Promise<boolean>;
6111
+ /** Get the next document */
6112
+ next(): Promise<T | null>;
6113
+ /** Get all remaining documents */
6114
+ toArray(): Promise<T[]>;
6115
+ /** Iterate over documents */
6116
+ forEach(callback: (doc: T) => void | Promise<void>): Promise<void>;
6117
+ /** Map documents */
6118
+ map<R>(mapper: (doc: T) => R): MongoCursor<R>;
6119
+ /** Close the cursor */
6120
+ close(): Promise<void>;
6121
+ /** Get cursor ID */
6122
+ id: string;
6123
+ /** Check if cursor is closed */
6124
+ isClosed(): boolean;
6125
+ }
6126
+ /**
6127
+ * MongoDB distinct options
6128
+ */
6129
+ interface MongoDistinctOptions {
6130
+ /** Filter for documents */
6131
+ filter?: MongoFilter;
6132
+ /** Maximum time in ms */
6133
+ maxTimeMS?: number;
6134
+ /** Read preference */
6135
+ readPreference?: "primary" | "primaryPreferred" | "secondary" | "secondaryPreferred" | "nearest";
6136
+ }
6137
+ /**
6138
+ * MongoDB collection client interface
6139
+ */
6140
+ interface MongoCollectionClient<T extends Record<string, unknown> = Record<string, unknown>> {
6141
+ /**
6142
+ * Find documents matching filter
6143
+ */
6144
+ find(filter?: MongoFilter<T>, options?: MongoFindOptions<T>): Promise<T[]>;
6145
+ /**
6146
+ * Find documents and return a cursor for streaming
6147
+ */
6148
+ findCursor(filter?: MongoFilter<T>, options?: MongoFindOptions<T>): Promise<MongoCursor<T>>;
6149
+ /**
6150
+ * Find a single document
6151
+ */
6152
+ findOne(filter?: MongoFilter<T>, options?: Omit<MongoFindOptions<T>, "limit">): Promise<T | null>;
6153
+ /**
6154
+ * Find document by ID
6155
+ */
6156
+ findById(id: string, options?: Omit<MongoFindOptions<T>, "limit">): Promise<T | null>;
6157
+ /**
6158
+ * Count documents matching filter
6159
+ */
6160
+ countDocuments(filter?: MongoFilter<T>): Promise<number>;
6161
+ /**
6162
+ * Estimated document count (fast, uses metadata)
6163
+ */
6164
+ estimatedDocumentCount(): Promise<number>;
6165
+ /**
6166
+ * Get distinct values for a field
6167
+ */
6168
+ distinct<K extends keyof T>(field: K, options?: MongoDistinctOptions): Promise<T[K][]>;
6169
+ /**
6170
+ * Insert a single document
6171
+ */
6172
+ insertOne(document: Omit<T, "_id"> & {
6173
+ _id?: string;
6174
+ }): Promise<MongoInsertOneResult>;
6175
+ /**
6176
+ * Insert multiple documents
6177
+ */
6178
+ insertMany(documents: (Omit<T, "_id"> & {
6179
+ _id?: string;
6180
+ })[], options?: {
6181
+ ordered?: boolean;
6182
+ }): Promise<MongoInsertManyResult>;
6183
+ /**
6184
+ * Update a single document
6185
+ */
6186
+ updateOne(filter: MongoFilter<T>, update: MongoUpdateOperators<T> | Partial<T>, options?: MongoUpdateOptions): Promise<MongoUpdateResult>;
6187
+ /**
6188
+ * Update multiple documents
6189
+ */
6190
+ updateMany(filter: MongoFilter<T>, update: MongoUpdateOperators<T> | Partial<T>, options?: MongoUpdateOptions): Promise<MongoUpdateResult>;
6191
+ /**
6192
+ * Replace a single document
6193
+ */
6194
+ replaceOne(filter: MongoFilter<T>, replacement: Omit<T, "_id">, options?: MongoUpdateOptions): Promise<MongoUpdateResult>;
6195
+ /**
6196
+ * Find one and update (atomic)
6197
+ */
6198
+ findOneAndUpdate(filter: MongoFilter<T>, update: MongoUpdateOperators<T> | Partial<T>, options?: MongoFindOneAndUpdateOptions<T>): Promise<MongoFindAndModifyResult<T>>;
6199
+ /**
6200
+ * Find one and replace (atomic)
6201
+ */
6202
+ findOneAndReplace(filter: MongoFilter<T>, replacement: Omit<T, "_id">, options?: MongoFindOneAndUpdateOptions<T>): Promise<MongoFindAndModifyResult<T>>;
6203
+ /**
6204
+ * Delete a single document
6205
+ */
6206
+ deleteOne(filter: MongoFilter<T>): Promise<MongoDeleteResult>;
6207
+ /**
6208
+ * Delete multiple documents
6209
+ */
6210
+ deleteMany(filter: MongoFilter<T>): Promise<MongoDeleteResult>;
6211
+ /**
6212
+ * Find one and delete (atomic)
6213
+ */
6214
+ findOneAndDelete(filter: MongoFilter<T>, options?: MongoFindOneAndDeleteOptions<T>): Promise<MongoFindAndModifyResult<T>>;
6215
+ /**
6216
+ * Run aggregation pipeline
6217
+ */
6218
+ aggregate<R = T>(pipeline: MongoPipelineStage[], options?: MongoAggregateOptions): Promise<R[]>;
6219
+ /**
6220
+ * Run aggregation pipeline with cursor
6221
+ */
6222
+ aggregateCursor<R = T>(pipeline: MongoPipelineStage[], options?: MongoAggregateOptions): Promise<MongoCursor<R>>;
6223
+ /**
6224
+ * Create an index
6225
+ */
6226
+ createIndex(keys: Record<string, 1 | -1 | "text" | "2dsphere" | "2d" | "hashed">, options?: {
6227
+ unique?: boolean;
6228
+ sparse?: boolean;
6229
+ background?: boolean;
6230
+ name?: string;
6231
+ expireAfterSeconds?: number;
6232
+ partialFilterExpression?: MongoFilter<T>;
6233
+ }): Promise<string>;
6234
+ /**
6235
+ * Drop an index
6236
+ */
6237
+ dropIndex(indexName: string): Promise<void>;
6238
+ /**
6239
+ * List indexes
6240
+ */
6241
+ listIndexes(): Promise<Array<{
6242
+ name: string;
6243
+ key: Record<string, 1 | -1 | string>;
6244
+ unique?: boolean;
6245
+ sparse?: boolean;
6246
+ }>>;
6247
+ /**
6248
+ * Initialize a bulk write operation
6249
+ */
6250
+ bulkWrite(operations: Array<{
6251
+ insertOne: {
6252
+ document: Omit<T, "_id"> & {
6253
+ _id?: string;
6254
+ };
6255
+ };
6256
+ } | {
6257
+ updateOne: {
6258
+ filter: MongoFilter<T>;
6259
+ update: MongoUpdateOperators<T>;
6260
+ upsert?: boolean;
6261
+ };
6262
+ } | {
6263
+ updateMany: {
6264
+ filter: MongoFilter<T>;
6265
+ update: MongoUpdateOperators<T>;
6266
+ upsert?: boolean;
6267
+ };
6268
+ } | {
6269
+ replaceOne: {
6270
+ filter: MongoFilter<T>;
6271
+ replacement: Omit<T, "_id">;
6272
+ upsert?: boolean;
6273
+ };
6274
+ } | {
6275
+ deleteOne: {
6276
+ filter: MongoFilter<T>;
6277
+ };
6278
+ } | {
6279
+ deleteMany: {
6280
+ filter: MongoFilter<T>;
6281
+ };
6282
+ }>, options?: {
6283
+ ordered?: boolean;
6284
+ }): Promise<{
6285
+ insertedCount: number;
6286
+ matchedCount: number;
6287
+ modifiedCount: number;
6288
+ deletedCount: number;
6289
+ upsertedCount: number;
6290
+ upsertedIds: Record<number, string>;
6291
+ }>;
6292
+ /**
6293
+ * Get collection name
6294
+ */
6295
+ readonly collectionName: string;
6296
+ }
6297
+ /**
6298
+ * MongoDB module interface
6299
+ */
6300
+ interface MongoDBModule {
6301
+ /**
6302
+ * Get a collection client
6303
+ */
6304
+ collection<T extends Record<string, unknown> = Record<string, unknown>>(name: string): MongoCollectionClient<T>;
6305
+ /**
6306
+ * List all collections
6307
+ */
6308
+ listCollections(): Promise<Array<{
6309
+ name: string;
6310
+ type: string;
6311
+ }>>;
6312
+ /**
6313
+ * Create a collection
6314
+ */
6315
+ createCollection(name: string, options?: {
6316
+ capped?: boolean;
6317
+ size?: number;
6318
+ max?: number;
6319
+ validator?: Record<string, unknown>;
6320
+ validationLevel?: "off" | "strict" | "moderate";
6321
+ validationAction?: "error" | "warn";
6322
+ }): Promise<void>;
6323
+ /**
6324
+ * Drop a collection
6325
+ */
6326
+ dropCollection(name: string): Promise<void>;
6327
+ /**
6328
+ * Rename a collection
6329
+ */
6330
+ renameCollection(oldName: string, newName: string): Promise<void>;
6331
+ /**
6332
+ * Run a database command
6333
+ */
6334
+ command<R = unknown>(command: Record<string, unknown>): Promise<R>;
6335
+ }
6336
+
5731
6337
  /**
5732
6338
  * Main VAIF client interface
5733
6339
  */
@@ -5822,6 +6428,25 @@ interface VaifClient {
5822
6428
  * Documentation operations (pages, SDKs, examples, changelog)
5823
6429
  */
5824
6430
  docs: DocsModule;
6431
+ /**
6432
+ * MongoDB operations (collections, documents, aggregations)
6433
+ *
6434
+ * @example
6435
+ * ```ts
6436
+ * // Get a collection client
6437
+ * const users = vaif.mongodb.collection<User>('users');
6438
+ *
6439
+ * // Find documents
6440
+ * const docs = await users.find({ status: 'active' });
6441
+ *
6442
+ * // Aggregation pipeline
6443
+ * const stats = await users.aggregate([
6444
+ * { $match: { status: 'active' } },
6445
+ * { $group: { _id: '$role', count: { $sum: 1 } } }
6446
+ * ]);
6447
+ * ```
6448
+ */
6449
+ mongodb: MongoDBModule;
5825
6450
  /**
5826
6451
  * Create a realtime client for WebSocket subscriptions
5827
6452
  *
@@ -5928,4 +6553,4 @@ declare class VaifNotFoundError extends VaifError {
5928
6553
  */
5929
6554
  declare function isVaifError(error: unknown): error is VaifError;
5930
6555
 
5931
- 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 BootstrapModule, 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 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 };
6556
+ 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 BootstrapModule, 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 };