@voltagent/core 1.2.20 → 1.3.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
@@ -1991,6 +1991,22 @@ type VoltOpsDiscordCredential = VoltOpsStoredCredentialRef | WithCredentialMetad
1991
1991
  }> | WithCredentialMetadata<{
1992
1992
  webhookUrl: string;
1993
1993
  }>;
1994
+ type VoltOpsGoogleCalendarCredential = VoltOpsStoredCredentialRef | WithCredentialMetadata<{
1995
+ accessToken?: string;
1996
+ refreshToken?: string;
1997
+ clientId?: string;
1998
+ clientSecret?: string;
1999
+ tokenType?: string;
2000
+ expiresAt?: string;
2001
+ }>;
2002
+ type VoltOpsGoogleDriveCredential = VoltOpsStoredCredentialRef | WithCredentialMetadata<{
2003
+ accessToken?: string;
2004
+ refreshToken?: string;
2005
+ clientId?: string;
2006
+ clientSecret?: string;
2007
+ tokenType?: string;
2008
+ expiresAt?: string;
2009
+ }>;
1994
2010
  type VoltOpsPostgresCredential = VoltOpsStoredCredentialRef | WithCredentialMetadata<{
1995
2011
  host: string;
1996
2012
  port?: number;
@@ -2251,6 +2267,118 @@ interface VoltOpsGmailGetThreadParams extends VoltOpsGmailBaseParams {
2251
2267
  threadId: string;
2252
2268
  format?: "full" | "minimal" | "raw" | "metadata";
2253
2269
  }
2270
+ interface VoltOpsGoogleCalendarBaseParams {
2271
+ credential: VoltOpsGoogleCalendarCredential;
2272
+ actionId?: string;
2273
+ catalogId?: string;
2274
+ projectId?: string | null;
2275
+ }
2276
+ interface VoltOpsGoogleCalendarCreateParams extends VoltOpsGoogleCalendarBaseParams {
2277
+ calendarId?: string;
2278
+ summary: string;
2279
+ start: {
2280
+ dateTime: string;
2281
+ timeZone?: string | null;
2282
+ };
2283
+ end: {
2284
+ dateTime: string;
2285
+ timeZone?: string | null;
2286
+ };
2287
+ description?: string;
2288
+ location?: string;
2289
+ status?: string;
2290
+ attendees?: Array<{
2291
+ email: string;
2292
+ optional?: boolean;
2293
+ comment?: string;
2294
+ }>;
2295
+ }
2296
+ interface VoltOpsGoogleCalendarUpdateParams extends VoltOpsGoogleCalendarBaseParams {
2297
+ eventId: string;
2298
+ calendarId?: string;
2299
+ summary?: string;
2300
+ description?: string;
2301
+ location?: string;
2302
+ status?: string;
2303
+ start?: {
2304
+ dateTime: string;
2305
+ timeZone?: string | null;
2306
+ } | null;
2307
+ end?: {
2308
+ dateTime: string;
2309
+ timeZone?: string | null;
2310
+ } | null;
2311
+ attendees?: Array<{
2312
+ email: string;
2313
+ optional?: boolean;
2314
+ comment?: string;
2315
+ }>;
2316
+ }
2317
+ interface VoltOpsGoogleCalendarDeleteParams extends VoltOpsGoogleCalendarBaseParams {
2318
+ eventId: string;
2319
+ calendarId?: string;
2320
+ }
2321
+ interface VoltOpsGoogleCalendarListParams extends VoltOpsGoogleCalendarBaseParams {
2322
+ calendarId?: string;
2323
+ timeMin?: string;
2324
+ timeMax?: string;
2325
+ maxResults?: number;
2326
+ pageToken?: string;
2327
+ q?: string;
2328
+ showDeleted?: boolean;
2329
+ singleEvents?: boolean;
2330
+ orderBy?: string;
2331
+ }
2332
+ interface VoltOpsGoogleCalendarGetParams extends VoltOpsGoogleCalendarBaseParams {
2333
+ eventId: string;
2334
+ calendarId?: string;
2335
+ }
2336
+ interface VoltOpsGoogleDriveBaseParams {
2337
+ credential: VoltOpsGoogleDriveCredential;
2338
+ actionId?: string;
2339
+ catalogId?: string;
2340
+ projectId?: string | null;
2341
+ }
2342
+ interface VoltOpsGoogleDriveListParams extends VoltOpsGoogleDriveBaseParams {
2343
+ q?: string;
2344
+ pageSize?: number;
2345
+ pageToken?: string;
2346
+ orderBy?: string;
2347
+ includeTrashed?: boolean;
2348
+ }
2349
+ interface VoltOpsGoogleDriveGetFileParams extends VoltOpsGoogleDriveBaseParams {
2350
+ fileId: string;
2351
+ }
2352
+ interface VoltOpsGoogleDriveDownloadParams extends VoltOpsGoogleDriveBaseParams {
2353
+ fileId: string;
2354
+ }
2355
+ interface VoltOpsGoogleDriveUploadParams extends VoltOpsGoogleDriveBaseParams {
2356
+ name: string;
2357
+ mimeType?: string;
2358
+ parents?: string[];
2359
+ content?: string;
2360
+ isBase64?: boolean;
2361
+ }
2362
+ interface VoltOpsGoogleDriveCreateFolderParams extends VoltOpsGoogleDriveBaseParams {
2363
+ name: string;
2364
+ parents?: string[];
2365
+ }
2366
+ interface VoltOpsGoogleDriveMoveParams extends VoltOpsGoogleDriveBaseParams {
2367
+ fileId: string;
2368
+ newParentId: string;
2369
+ removeAllParents?: boolean;
2370
+ }
2371
+ interface VoltOpsGoogleDriveCopyParams extends VoltOpsGoogleDriveBaseParams {
2372
+ fileId: string;
2373
+ destinationParentId?: string;
2374
+ name?: string;
2375
+ }
2376
+ interface VoltOpsGoogleDriveDeleteParams extends VoltOpsGoogleDriveBaseParams {
2377
+ fileId: string;
2378
+ }
2379
+ interface VoltOpsGoogleDriveShareParams extends VoltOpsGoogleDriveBaseParams {
2380
+ fileId: string;
2381
+ }
2254
2382
  type VoltOpsActionsApi = {
2255
2383
  airtable: {
2256
2384
  createRecord: (params: VoltOpsAirtableCreateRecordParams) => Promise<VoltOpsActionExecutionResult>;
@@ -2288,6 +2416,24 @@ type VoltOpsActionsApi = {
2288
2416
  getEmail: (params: VoltOpsGmailGetEmailParams) => Promise<VoltOpsActionExecutionResult>;
2289
2417
  getThread: (params: VoltOpsGmailGetThreadParams) => Promise<VoltOpsActionExecutionResult>;
2290
2418
  };
2419
+ googlecalendar: {
2420
+ createEvent: (params: VoltOpsGoogleCalendarCreateParams) => Promise<VoltOpsActionExecutionResult>;
2421
+ updateEvent: (params: VoltOpsGoogleCalendarUpdateParams) => Promise<VoltOpsActionExecutionResult>;
2422
+ deleteEvent: (params: VoltOpsGoogleCalendarDeleteParams) => Promise<VoltOpsActionExecutionResult>;
2423
+ listEvents: (params: VoltOpsGoogleCalendarListParams) => Promise<VoltOpsActionExecutionResult>;
2424
+ getEvent: (params: VoltOpsGoogleCalendarGetParams) => Promise<VoltOpsActionExecutionResult>;
2425
+ };
2426
+ googledrive: {
2427
+ listFiles: (params: VoltOpsGoogleDriveListParams) => Promise<VoltOpsActionExecutionResult>;
2428
+ getFileMetadata: (params: VoltOpsGoogleDriveGetFileParams) => Promise<VoltOpsActionExecutionResult>;
2429
+ downloadFile: (params: VoltOpsGoogleDriveDownloadParams) => Promise<VoltOpsActionExecutionResult>;
2430
+ uploadFile: (params: VoltOpsGoogleDriveUploadParams) => Promise<VoltOpsActionExecutionResult>;
2431
+ createFolder: (params: VoltOpsGoogleDriveCreateFolderParams) => Promise<VoltOpsActionExecutionResult>;
2432
+ moveFile: (params: VoltOpsGoogleDriveMoveParams) => Promise<VoltOpsActionExecutionResult>;
2433
+ copyFile: (params: VoltOpsGoogleDriveCopyParams) => Promise<VoltOpsActionExecutionResult>;
2434
+ deleteFile: (params: VoltOpsGoogleDriveDeleteParams) => Promise<VoltOpsActionExecutionResult>;
2435
+ shareFilePublic: (params: VoltOpsGoogleDriveShareParams) => Promise<VoltOpsActionExecutionResult>;
2436
+ };
2291
2437
  postgres: {
2292
2438
  executeQuery: (params: VoltOpsPostgresExecuteParams) => Promise<VoltOpsActionExecutionResult>;
2293
2439
  };
@@ -2735,6 +2881,24 @@ declare class VoltOpsActionsClient {
2735
2881
  getEmail: (params: VoltOpsGmailGetEmailParams) => Promise<VoltOpsActionExecutionResult>;
2736
2882
  getThread: (params: VoltOpsGmailGetThreadParams) => Promise<VoltOpsActionExecutionResult>;
2737
2883
  };
2884
+ readonly googlecalendar: {
2885
+ createEvent: (params: VoltOpsGoogleCalendarCreateParams) => Promise<VoltOpsActionExecutionResult>;
2886
+ updateEvent: (params: VoltOpsGoogleCalendarUpdateParams) => Promise<VoltOpsActionExecutionResult>;
2887
+ deleteEvent: (params: VoltOpsGoogleCalendarDeleteParams) => Promise<VoltOpsActionExecutionResult>;
2888
+ listEvents: (params: VoltOpsGoogleCalendarListParams) => Promise<VoltOpsActionExecutionResult>;
2889
+ getEvent: (params: VoltOpsGoogleCalendarGetParams) => Promise<VoltOpsActionExecutionResult>;
2890
+ };
2891
+ readonly googledrive: {
2892
+ listFiles: (params: VoltOpsGoogleDriveListParams) => Promise<VoltOpsActionExecutionResult>;
2893
+ getFileMetadata: (params: VoltOpsGoogleDriveGetFileParams) => Promise<VoltOpsActionExecutionResult>;
2894
+ downloadFile: (params: VoltOpsGoogleDriveDownloadParams) => Promise<VoltOpsActionExecutionResult>;
2895
+ uploadFile: (params: VoltOpsGoogleDriveUploadParams) => Promise<VoltOpsActionExecutionResult>;
2896
+ createFolder: (params: VoltOpsGoogleDriveCreateFolderParams) => Promise<VoltOpsActionExecutionResult>;
2897
+ moveFile: (params: VoltOpsGoogleDriveMoveParams) => Promise<VoltOpsActionExecutionResult>;
2898
+ copyFile: (params: VoltOpsGoogleDriveCopyParams) => Promise<VoltOpsActionExecutionResult>;
2899
+ deleteFile: (params: VoltOpsGoogleDriveDeleteParams) => Promise<VoltOpsActionExecutionResult>;
2900
+ shareFilePublic: (params: VoltOpsGoogleDriveShareParams) => Promise<VoltOpsActionExecutionResult>;
2901
+ };
2738
2902
  readonly postgres: {
2739
2903
  executeQuery: (params: VoltOpsPostgresExecuteParams) => Promise<VoltOpsActionExecutionResult>;
2740
2904
  };
@@ -2758,6 +2922,21 @@ declare class VoltOpsActionsClient {
2758
2922
  private searchGmailEmails;
2759
2923
  private getGmailEmail;
2760
2924
  private getGmailThread;
2925
+ private createCalendarEvent;
2926
+ private listDriveFiles;
2927
+ private getDriveFileMetadata;
2928
+ private downloadDriveFile;
2929
+ private uploadDriveFile;
2930
+ private createDriveFolder;
2931
+ private moveDriveFile;
2932
+ private copyDriveFile;
2933
+ private deleteDriveFile;
2934
+ private shareDriveFilePublic;
2935
+ private executeGoogleDriveAction;
2936
+ private updateCalendarEvent;
2937
+ private deleteCalendarEvent;
2938
+ private listCalendarEvents;
2939
+ private getCalendarEvent;
2761
2940
  private executePostgresQuery;
2762
2941
  private sendDiscordMessage;
2763
2942
  private sendDiscordWebhookMessage;
@@ -2786,15 +2965,20 @@ declare class VoltOpsActionsClient {
2786
2965
  private ensureSlackCredential;
2787
2966
  private ensureDiscordCredential;
2788
2967
  private ensureGmailCredential;
2968
+ private ensureGoogleCalendarCredential;
2969
+ private ensureGoogleDriveCredential;
2789
2970
  private ensurePostgresCredential;
2790
2971
  private normalizeCredentialMetadata;
2791
2972
  private normalizeIdentifier;
2792
2973
  private ensureRecord;
2793
2974
  private sanitizeStringArray;
2975
+ private normalizeStringArray;
2794
2976
  private sanitizeSortArray;
2795
2977
  private normalizePositiveInteger;
2796
2978
  private trimString;
2797
2979
  private normalizeEmailList;
2980
+ private normalizeCalendarDateTime;
2981
+ private normalizeCalendarAttendees;
2798
2982
  private normalizeGmailBodyType;
2799
2983
  private normalizeGmailFormat;
2800
2984
  private normalizeGmailAttachments;
@@ -8048,6 +8232,135 @@ declare const DEFAULT_TRIGGER_CATALOG: readonly [{
8048
8232
  readonly description: "Poll the configured Base/Table/View and emit when a new record is created.";
8049
8233
  readonly deliveryMode: "polling";
8050
8234
  }];
8235
+ }, {
8236
+ readonly triggerId: "google-calendar";
8237
+ readonly dslTriggerId: "google-calendar";
8238
+ readonly displayName: "Google Calendar";
8239
+ readonly service: "GoogleCalendar";
8240
+ readonly category: "Productivity";
8241
+ readonly authType: "oauth2";
8242
+ readonly deliveryModes: ["polling"];
8243
+ readonly metadata: {
8244
+ readonly description: "React to Google Calendar events such as created, updated, started, or cancelled meetings.";
8245
+ };
8246
+ readonly version: "1.0.0";
8247
+ readonly events: readonly [{
8248
+ readonly key: "googlecalendar.eventCreated";
8249
+ readonly displayName: "Event created";
8250
+ readonly description: "Trigger when a new Google Calendar event is created on the selected calendar.";
8251
+ readonly deliveryMode: "polling";
8252
+ readonly defaultConfig: {
8253
+ readonly provider: {
8254
+ readonly type: "googlecalendar";
8255
+ readonly calendarId: "primary";
8256
+ readonly triggerType: "eventCreated";
8257
+ readonly matchTerm: null;
8258
+ readonly expandRecurringEvents: false;
8259
+ readonly pollIntervalSeconds: 60;
8260
+ };
8261
+ };
8262
+ }, {
8263
+ readonly key: "googlecalendar.eventUpdated";
8264
+ readonly displayName: "Event updated";
8265
+ readonly description: "Trigger when an existing Google Calendar event is updated (title, time, description, etc.).";
8266
+ readonly deliveryMode: "polling";
8267
+ readonly defaultConfig: {
8268
+ readonly provider: {
8269
+ readonly type: "googlecalendar";
8270
+ readonly calendarId: "primary";
8271
+ readonly triggerType: "eventUpdated";
8272
+ readonly matchTerm: null;
8273
+ readonly expandRecurringEvents: false;
8274
+ readonly pollIntervalSeconds: 60;
8275
+ };
8276
+ };
8277
+ }, {
8278
+ readonly key: "googlecalendar.eventCancelled";
8279
+ readonly displayName: "Event cancelled";
8280
+ readonly description: "Trigger when an event is cancelled on the selected calendar.";
8281
+ readonly deliveryMode: "polling";
8282
+ readonly defaultConfig: {
8283
+ readonly provider: {
8284
+ readonly type: "googlecalendar";
8285
+ readonly calendarId: "primary";
8286
+ readonly triggerType: "eventCancelled";
8287
+ readonly matchTerm: null;
8288
+ readonly expandRecurringEvents: false;
8289
+ readonly pollIntervalSeconds: 60;
8290
+ };
8291
+ };
8292
+ }, {
8293
+ readonly key: "googlecalendar.eventStarted";
8294
+ readonly displayName: "Event started";
8295
+ readonly description: "Trigger when an event start time occurs (includes recurring instances when expanded).";
8296
+ readonly deliveryMode: "polling";
8297
+ readonly defaultConfig: {
8298
+ readonly provider: {
8299
+ readonly type: "googlecalendar";
8300
+ readonly calendarId: "primary";
8301
+ readonly triggerType: "eventStarted";
8302
+ readonly matchTerm: null;
8303
+ readonly expandRecurringEvents: true;
8304
+ readonly pollIntervalSeconds: 60;
8305
+ };
8306
+ };
8307
+ }, {
8308
+ readonly key: "googlecalendar.eventEnded";
8309
+ readonly displayName: "Event ended";
8310
+ readonly description: "Trigger when an event end time is reached.";
8311
+ readonly deliveryMode: "polling";
8312
+ readonly defaultConfig: {
8313
+ readonly provider: {
8314
+ readonly type: "googlecalendar";
8315
+ readonly calendarId: "primary";
8316
+ readonly triggerType: "eventEnded";
8317
+ readonly matchTerm: null;
8318
+ readonly expandRecurringEvents: true;
8319
+ readonly pollIntervalSeconds: 60;
8320
+ };
8321
+ };
8322
+ }];
8323
+ }, {
8324
+ readonly triggerId: "google-drive";
8325
+ readonly dslTriggerId: "google-drive";
8326
+ readonly displayName: "Google Drive";
8327
+ readonly service: "GoogleDrive";
8328
+ readonly category: "Storage";
8329
+ readonly authType: "oauth2";
8330
+ readonly deliveryModes: ["polling"];
8331
+ readonly metadata: {
8332
+ readonly description: "Detect file or folder changes in Google Drive, similar to Activepieces and n8n.";
8333
+ };
8334
+ readonly version: "1.0.0";
8335
+ readonly events: readonly [{
8336
+ readonly key: "googledrive.fileChanged";
8337
+ readonly displayName: "File created or updated";
8338
+ readonly description: "Trigger when a file in Google Drive is created or updated, optionally filtered by MIME types.";
8339
+ readonly deliveryMode: "polling";
8340
+ readonly defaultConfig: {
8341
+ readonly provider: {
8342
+ readonly type: "googledrive";
8343
+ readonly triggerType: "fileChanged";
8344
+ readonly folderId: null;
8345
+ readonly matchMimeTypes: null;
8346
+ readonly pollIntervalSeconds: 60;
8347
+ };
8348
+ };
8349
+ }, {
8350
+ readonly key: "googledrive.folderChanged";
8351
+ readonly displayName: "Folder content changed";
8352
+ readonly description: "Trigger when items in a specific folder are added or updated in Google Drive.";
8353
+ readonly deliveryMode: "polling";
8354
+ readonly defaultConfig: {
8355
+ readonly provider: {
8356
+ readonly type: "googledrive";
8357
+ readonly triggerType: "folderChanged";
8358
+ readonly folderId: null;
8359
+ readonly matchMimeTypes: null;
8360
+ readonly pollIntervalSeconds: 60;
8361
+ };
8362
+ };
8363
+ }];
8051
8364
  }];
8052
8365
 
8053
8366
  declare class A2AServerRegistry<TServer extends A2AServerLike = A2AServerLike> {
@@ -8094,6 +8407,115 @@ declare class MCPServerRegistry<TServer extends MCPServerLike = MCPServerLike> {
8094
8407
  private createAnonymousSlug;
8095
8408
  }
8096
8409
 
8410
+ /**
8411
+ * The action being authorized.
8412
+ * - "discovery": Tool is being listed/discovered (getTools/getToolsets)
8413
+ * - "execution": Tool is being executed (callTool)
8414
+ */
8415
+ type MCPAuthorizationAction = "discovery" | "execution";
8416
+ /**
8417
+ * Minimal context for tool discovery authorization.
8418
+ * Used when full OperationContext is not available (e.g., during getTools).
8419
+ */
8420
+ interface MCPAuthorizationContext {
8421
+ /** User identifier */
8422
+ userId?: string;
8423
+ /** User-defined context map (same as OperationContext.context) */
8424
+ context?: Map<string | symbol, unknown> | Record<string, unknown>;
8425
+ }
8426
+ /**
8427
+ * Parameters passed to the `can` authorization function.
8428
+ */
8429
+ interface MCPCanParams {
8430
+ /** Tool name (without server prefix) */
8431
+ toolName: string;
8432
+ /** Server/resource identifier */
8433
+ serverName: string;
8434
+ /** The action being authorized: "discovery" or "execution" */
8435
+ action: MCPAuthorizationAction;
8436
+ /** Tool arguments (for attribute-based access control) */
8437
+ arguments?: Record<string, unknown>;
8438
+ /** User identifier */
8439
+ userId?: string;
8440
+ /** User-defined context (from authContext or OperationContext) */
8441
+ context?: Map<string | symbol, unknown>;
8442
+ }
8443
+ /**
8444
+ * Result from the `can` authorization function.
8445
+ * Can be a simple boolean or an object with reason.
8446
+ */
8447
+ type MCPCanResult = boolean | {
8448
+ allowed: boolean;
8449
+ reason?: string;
8450
+ };
8451
+ /**
8452
+ * Simple authorization function type.
8453
+ * Return true/false or { allowed: boolean, reason?: string }
8454
+ *
8455
+ * @example
8456
+ * ```typescript
8457
+ * const can: MCPCanFunction = async ({ toolName, action, userId, context }) => {
8458
+ * const roles = context?.get("roles") as string[] ?? [];
8459
+ * // action is "discovery" or "execution"
8460
+ * if (toolName === "delete_item" && !roles.includes("admin")) {
8461
+ * return { allowed: false, reason: "Only admins can delete" };
8462
+ * }
8463
+ * return true;
8464
+ * };
8465
+ * ```
8466
+ */
8467
+ type MCPCanFunction = (params: MCPCanParams) => Promise<MCPCanResult> | MCPCanResult;
8468
+ /**
8469
+ * Authorization configuration for MCPConfiguration.
8470
+ *
8471
+ * @example
8472
+ * ```typescript
8473
+ * const mcp = new MCPConfiguration({
8474
+ * servers: { myServer: { type: "http", url: "..." } },
8475
+ * authorization: {
8476
+ * can: async ({ toolName, action, userId, context }) => {
8477
+ * const roles = context?.get("roles") as string[] ?? [];
8478
+ * // action is "discovery" or "execution"
8479
+ * if (toolName === "admin_tool" && !roles.includes("admin")) {
8480
+ * return { allowed: false, reason: "Admin only" };
8481
+ * }
8482
+ * return true;
8483
+ * },
8484
+ * filterOnDiscovery: true,
8485
+ * },
8486
+ * });
8487
+ * ```
8488
+ */
8489
+ interface MCPAuthorizationConfig {
8490
+ /**
8491
+ * Authorization function to check if a tool can be accessed.
8492
+ * Called for both discovery and execution based on config options.
8493
+ */
8494
+ can: MCPCanFunction;
8495
+ /**
8496
+ * Whether to filter tools on discovery (getTools/getToolsets).
8497
+ * When true, unauthorized tools are hidden from the tool list.
8498
+ * @default false
8499
+ */
8500
+ filterOnDiscovery?: boolean;
8501
+ /**
8502
+ * Whether to check authorization on execution (callTool).
8503
+ * When true, each tool call is verified before execution.
8504
+ * @default true
8505
+ */
8506
+ checkOnExecution?: boolean;
8507
+ }
8508
+
8509
+ /**
8510
+ * Error thrown when MCP tool authorization is denied.
8511
+ */
8512
+ declare class MCPAuthorizationError extends Error {
8513
+ readonly toolName: string;
8514
+ readonly serverName: string;
8515
+ readonly reason?: string;
8516
+ constructor(toolName: string, serverName: string, reason?: string);
8517
+ }
8518
+
8097
8519
  /**
8098
8520
  * Client information for MCP
8099
8521
  */
@@ -8315,6 +8737,40 @@ type ToolsetWithTools = Record<string, AnyToolConfig> & {
8315
8737
  * Any tool configuration
8316
8738
  */
8317
8739
  type AnyToolConfig = Tool<any>;
8740
+ /**
8741
+ * Options for MCPConfiguration constructor.
8742
+ */
8743
+ interface MCPConfigurationOptions<TServerKeys extends string = string> {
8744
+ /**
8745
+ * Map of server configurations keyed by server names.
8746
+ */
8747
+ servers: Record<TServerKeys, MCPServerConfig>;
8748
+ /**
8749
+ * Optional authorization configuration for tool access control.
8750
+ */
8751
+ authorization?: MCPAuthorizationConfig;
8752
+ }
8753
+ /**
8754
+ * Options for MCPClient.callTool method with authorization support.
8755
+ */
8756
+ interface MCPClientCallOptions {
8757
+ /**
8758
+ * Full operation context for authorization (from agent execution).
8759
+ */
8760
+ operationContext?: OperationContext;
8761
+ /**
8762
+ * Authorization function.
8763
+ */
8764
+ canFunction?: MCPCanFunction;
8765
+ /**
8766
+ * Authorization config settings.
8767
+ */
8768
+ authorizationConfig?: MCPAuthorizationConfig;
8769
+ /**
8770
+ * Server name for authorization context.
8771
+ */
8772
+ serverName?: string;
8773
+ }
8318
8774
 
8319
8775
  /**
8320
8776
  * Client for interacting with Model Context Protocol (MCP) servers.
@@ -8394,15 +8850,17 @@ declare class MCPClient extends SimpleEventEmitter {
8394
8850
  /**
8395
8851
  * Builds executable Tool objects from the server's tool definitions.
8396
8852
  * These tools include an `execute` method for calling the remote tool.
8853
+ * @param options - Optional call options including authorization context.
8397
8854
  * @returns A record mapping namespaced tool names (`clientName_toolName`) to executable Tool objects.
8398
8855
  */
8399
- getAgentTools(): Promise<Record<string, Tool<any>>>;
8856
+ getAgentTools(options?: MCPClientCallOptions): Promise<Record<string, Tool<any>>>;
8400
8857
  /**
8401
8858
  * Executes a specified tool on the remote MCP server.
8402
8859
  * @param toolCall Details of the tool to call, including name and arguments.
8860
+ * @param options Optional call options including authorization context.
8403
8861
  * @returns The result content returned by the tool.
8404
8862
  */
8405
- callTool(toolCall: MCPToolCall): Promise<MCPToolResult>;
8863
+ callTool(toolCall: MCPToolCall, options?: MCPClientCallOptions): Promise<MCPToolResult>;
8406
8864
  /**
8407
8865
  * Retrieves a list of resource identifiers available on the server.
8408
8866
  * @returns A promise resolving to an array of resource ID strings.
@@ -8469,13 +8927,15 @@ declare class MCPConfiguration<TServerKeys extends string = string> {
8469
8927
  * Map of connected MCP clients keyed by server names (local cache).
8470
8928
  */
8471
8929
  private readonly mcpClientsById;
8930
+ /**
8931
+ * Authorization configuration for tool access control.
8932
+ */
8933
+ private readonly authorizationConfig?;
8472
8934
  /**
8473
8935
  * Creates a new, independent MCP configuration instance.
8474
- * @param options Configuration options including server definitions.
8936
+ * @param options Configuration options including server definitions and optional authorization.
8475
8937
  */
8476
- constructor(options: {
8477
- servers: Record<TServerKeys, MCPServerConfig>;
8478
- });
8938
+ constructor(options: MCPConfigurationOptions<TServerKeys>);
8479
8939
  /**
8480
8940
  * Type guard to check if an object conforms to the basic structure of AnyToolConfig.
8481
8941
  */
@@ -8486,9 +8946,22 @@ declare class MCPConfiguration<TServerKeys extends string = string> {
8486
8946
  disconnect(): Promise<void>;
8487
8947
  /**
8488
8948
  * Retrieves agent-ready tools from all configured MCP servers for this instance.
8949
+ * @param authContext - Optional authorization context for filtering tools.
8489
8950
  * @returns A flat array of all agent-ready tools.
8490
8951
  */
8491
- getTools(): Promise<Tool<any>[]>;
8952
+ getTools(authContext?: MCPAuthorizationContext): Promise<Tool<any>[]>;
8953
+ /**
8954
+ * Checks if the can authorization function is configured.
8955
+ */
8956
+ private hasAuthorizationHandler;
8957
+ /**
8958
+ * Creates call options for MCPClient methods with authorization context.
8959
+ */
8960
+ private createClientCallOptions;
8961
+ /**
8962
+ * Filters tools based on authorization using the `can` function.
8963
+ */
8964
+ private filterToolsByAuthorization;
8492
8965
  /**
8493
8966
  * Retrieves raw tool definitions from all configured MCP servers for this instance.
8494
8967
  * @returns A flat record of all raw tools keyed by their namespaced name.
@@ -9233,9 +9706,138 @@ declare const VoltOpsTriggerGroups: BuildTriggerGroups<readonly [{
9233
9706
  readonly description: "Poll the configured Base/Table/View and emit when a new record is created.";
9234
9707
  readonly deliveryMode: "polling";
9235
9708
  }];
9709
+ }, {
9710
+ readonly triggerId: "google-calendar";
9711
+ readonly dslTriggerId: "google-calendar";
9712
+ readonly displayName: "Google Calendar";
9713
+ readonly service: "GoogleCalendar";
9714
+ readonly category: "Productivity";
9715
+ readonly authType: "oauth2";
9716
+ readonly deliveryModes: ["polling"];
9717
+ readonly metadata: {
9718
+ readonly description: "React to Google Calendar events such as created, updated, started, or cancelled meetings.";
9719
+ };
9720
+ readonly version: "1.0.0";
9721
+ readonly events: readonly [{
9722
+ readonly key: "googlecalendar.eventCreated";
9723
+ readonly displayName: "Event created";
9724
+ readonly description: "Trigger when a new Google Calendar event is created on the selected calendar.";
9725
+ readonly deliveryMode: "polling";
9726
+ readonly defaultConfig: {
9727
+ readonly provider: {
9728
+ readonly type: "googlecalendar";
9729
+ readonly calendarId: "primary";
9730
+ readonly triggerType: "eventCreated";
9731
+ readonly matchTerm: null;
9732
+ readonly expandRecurringEvents: false;
9733
+ readonly pollIntervalSeconds: 60;
9734
+ };
9735
+ };
9736
+ }, {
9737
+ readonly key: "googlecalendar.eventUpdated";
9738
+ readonly displayName: "Event updated";
9739
+ readonly description: "Trigger when an existing Google Calendar event is updated (title, time, description, etc.).";
9740
+ readonly deliveryMode: "polling";
9741
+ readonly defaultConfig: {
9742
+ readonly provider: {
9743
+ readonly type: "googlecalendar";
9744
+ readonly calendarId: "primary";
9745
+ readonly triggerType: "eventUpdated";
9746
+ readonly matchTerm: null;
9747
+ readonly expandRecurringEvents: false;
9748
+ readonly pollIntervalSeconds: 60;
9749
+ };
9750
+ };
9751
+ }, {
9752
+ readonly key: "googlecalendar.eventCancelled";
9753
+ readonly displayName: "Event cancelled";
9754
+ readonly description: "Trigger when an event is cancelled on the selected calendar.";
9755
+ readonly deliveryMode: "polling";
9756
+ readonly defaultConfig: {
9757
+ readonly provider: {
9758
+ readonly type: "googlecalendar";
9759
+ readonly calendarId: "primary";
9760
+ readonly triggerType: "eventCancelled";
9761
+ readonly matchTerm: null;
9762
+ readonly expandRecurringEvents: false;
9763
+ readonly pollIntervalSeconds: 60;
9764
+ };
9765
+ };
9766
+ }, {
9767
+ readonly key: "googlecalendar.eventStarted";
9768
+ readonly displayName: "Event started";
9769
+ readonly description: "Trigger when an event start time occurs (includes recurring instances when expanded).";
9770
+ readonly deliveryMode: "polling";
9771
+ readonly defaultConfig: {
9772
+ readonly provider: {
9773
+ readonly type: "googlecalendar";
9774
+ readonly calendarId: "primary";
9775
+ readonly triggerType: "eventStarted";
9776
+ readonly matchTerm: null;
9777
+ readonly expandRecurringEvents: true;
9778
+ readonly pollIntervalSeconds: 60;
9779
+ };
9780
+ };
9781
+ }, {
9782
+ readonly key: "googlecalendar.eventEnded";
9783
+ readonly displayName: "Event ended";
9784
+ readonly description: "Trigger when an event end time is reached.";
9785
+ readonly deliveryMode: "polling";
9786
+ readonly defaultConfig: {
9787
+ readonly provider: {
9788
+ readonly type: "googlecalendar";
9789
+ readonly calendarId: "primary";
9790
+ readonly triggerType: "eventEnded";
9791
+ readonly matchTerm: null;
9792
+ readonly expandRecurringEvents: true;
9793
+ readonly pollIntervalSeconds: 60;
9794
+ };
9795
+ };
9796
+ }];
9797
+ }, {
9798
+ readonly triggerId: "google-drive";
9799
+ readonly dslTriggerId: "google-drive";
9800
+ readonly displayName: "Google Drive";
9801
+ readonly service: "GoogleDrive";
9802
+ readonly category: "Storage";
9803
+ readonly authType: "oauth2";
9804
+ readonly deliveryModes: ["polling"];
9805
+ readonly metadata: {
9806
+ readonly description: "Detect file or folder changes in Google Drive, similar to Activepieces and n8n.";
9807
+ };
9808
+ readonly version: "1.0.0";
9809
+ readonly events: readonly [{
9810
+ readonly key: "googledrive.fileChanged";
9811
+ readonly displayName: "File created or updated";
9812
+ readonly description: "Trigger when a file in Google Drive is created or updated, optionally filtered by MIME types.";
9813
+ readonly deliveryMode: "polling";
9814
+ readonly defaultConfig: {
9815
+ readonly provider: {
9816
+ readonly type: "googledrive";
9817
+ readonly triggerType: "fileChanged";
9818
+ readonly folderId: null;
9819
+ readonly matchMimeTypes: null;
9820
+ readonly pollIntervalSeconds: 60;
9821
+ };
9822
+ };
9823
+ }, {
9824
+ readonly key: "googledrive.folderChanged";
9825
+ readonly displayName: "Folder content changed";
9826
+ readonly description: "Trigger when items in a specific folder are added or updated in Google Drive.";
9827
+ readonly deliveryMode: "polling";
9828
+ readonly defaultConfig: {
9829
+ readonly provider: {
9830
+ readonly type: "googledrive";
9831
+ readonly triggerType: "folderChanged";
9832
+ readonly folderId: null;
9833
+ readonly matchMimeTypes: null;
9834
+ readonly pollIntervalSeconds: 60;
9835
+ };
9836
+ };
9837
+ }];
9236
9838
  }]>;
9237
9839
  type VoltOpsTriggerGroupMap = typeof VoltOpsTriggerGroups;
9238
- declare const VoltOpsTriggerDefinitions: Record<"github.*" | "github.check_run" | "github.check_suite" | "github.commit_comment" | "github.create" | "github.delete" | "github.deploy_key" | "github.deployment" | "github.deployment_status" | "github.fork" | "github.github_app_authorization" | "github.gollum" | "github.installation" | "github.installation_repositories" | "github.issue_comment" | "github.issues" | "github.label" | "github.marketplace_purchase" | "github.member" | "github.membership" | "github.meta" | "github.milestone" | "github.org_block" | "github.organization" | "github.page_build" | "github.project" | "github.project_card" | "github.project_column" | "github.public" | "github.pull_request" | "github.pull_request_review" | "github.pull_request_review_comment" | "github.push" | "github.release" | "github.repository" | "github.repository_import" | "github.repository_vulnerability_alert" | "github.security_advisory" | "github.star" | "github.status" | "github.team" | "github.team_add" | "github.watch" | "slack.anyEvent" | "slack.appMention" | "slack.messagePosted" | "slack.reactionAdded" | "slack.fileShare" | "slack.filePublic" | "slack.channelCreated" | "slack.teamJoin" | "cron.schedule" | "gmail.newEmail" | "airtable.recordCreated", VoltOpsTriggerDefinition<unknown>>;
9840
+ declare const VoltOpsTriggerDefinitions: Record<"github.*" | "github.check_run" | "github.check_suite" | "github.commit_comment" | "github.create" | "github.delete" | "github.deploy_key" | "github.deployment" | "github.deployment_status" | "github.fork" | "github.github_app_authorization" | "github.gollum" | "github.installation" | "github.installation_repositories" | "github.issue_comment" | "github.issues" | "github.label" | "github.marketplace_purchase" | "github.member" | "github.membership" | "github.meta" | "github.milestone" | "github.org_block" | "github.organization" | "github.page_build" | "github.project" | "github.project_card" | "github.project_column" | "github.public" | "github.pull_request" | "github.pull_request_review" | "github.pull_request_review_comment" | "github.push" | "github.release" | "github.repository" | "github.repository_import" | "github.repository_vulnerability_alert" | "github.security_advisory" | "github.star" | "github.status" | "github.team" | "github.team_add" | "github.watch" | "slack.anyEvent" | "slack.appMention" | "slack.messagePosted" | "slack.reactionAdded" | "slack.fileShare" | "slack.filePublic" | "slack.channelCreated" | "slack.teamJoin" | "cron.schedule" | "gmail.newEmail" | "airtable.recordCreated" | "googlecalendar.eventCreated" | "googlecalendar.eventUpdated" | "googlecalendar.eventCancelled" | "googlecalendar.eventStarted" | "googlecalendar.eventEnded" | "googledrive.fileChanged" | "googledrive.folderChanged", VoltOpsTriggerDefinition<unknown>>;
9239
9841
  declare const VoltOpsTriggerNames: VoltOpsTriggerName[];
9240
9842
  declare function getVoltOpsTriggerDefinition(name: VoltOpsTriggerName): VoltOpsTriggerDefinition;
9241
9843
 
@@ -10236,4 +10838,4 @@ declare class VoltAgent {
10236
10838
  */
10237
10839
  declare function convertUsage(usage: LanguageModelUsage | undefined): UsageInfo | undefined;
10238
10840
 
10239
- export { A2AServerRegistry, AbortError, Agent, type AgentEvalConfig, type AgentEvalContext, type AgentEvalOperationType, type AgentEvalPayload, type AgentEvalResult, type AgentEvalSamplingPolicy, type AgentEvalScorerConfig, type AgentEvalScorerFactory, type AgentEvalScorerReference, type AgentFullState, type AgentHookOnEnd, type AgentHookOnError, type AgentHookOnHandoff, type AgentHookOnHandoffComplete, type AgentHookOnPrepareMessages, type AgentHookOnPrepareModelMessages, type AgentHookOnStart, type AgentHookOnStepFinish, type AgentHookOnToolEnd, type AgentHookOnToolStart, type AgentHooks, type AgentOptions, AgentRegistry, type AgentResponse, type AgentScorerState, type AgentStatus, type AgentTool, AiSdkEmbeddingAdapter, type AllowedVariableValue, type ApiToolInfo, type BaseEventMetadata, type BaseGenerationOptions, type BaseLLMOptions, type BaseMessage, BaseRetriever, type BaseTool, type BaseToolCall, type BuildScorerOptions, type BuildScorerRunArgs, type BuildScorerRunResult, type BuilderAnalyzeContext, type BuilderPrepareContext, type BuilderReasonContext, type BuilderScoreContext, type CachedPrompt, type ChatMessage, ClientHTTPError, type ClientSideToolResult, type CloudflareFetchHandler, type Conversation, ConversationAlreadyExistsError, ConversationNotFoundError, type ConversationQueryOptions, type ConversationQueryOptions as ConversationQueryOptionsV2, type ConversationStepRecord, type ConversationStepType, type Conversation as ConversationV2, type CreateConversationInput, type CreateConversationInput as CreateConversationInputV2, type CreateInputGuardrailOptions, type CreateOutputGuardrailOptions, type CreateReasoningToolsOptions, type CreateScorerOptions, DEFAULT_INSTRUCTIONS, type DataContent, type Document, type DynamicValue, type DynamicValueOptions, type EmbeddingAdapter$1 as EmbeddingAdapter, EmbeddingAdapterNotConfiguredError, EmbeddingError, type ExtractVariableNames, FEW_SHOT_EXAMPLES, type GenerateObjectOptions, type GenerateObjectSubAgentConfig, type GenerateReasonResult, type GenerateScoreResult, type GenerateScoreStep, type GenerateTextOptions, type GenerateTextSubAgentConfig, type GetConversationStepsOptions, type GetMessagesOptions, type GuardrailAction, type GuardrailContext, type GuardrailDefinition, type GuardrailFunction, type GuardrailSeverity, type IServerProvider, type IServerlessProvider, type VoltOpsClient$1 as IVoltOpsClient, InMemoryStorageAdapter$1 as InMemoryObservabilityAdapter, InMemoryStorageAdapter, InMemoryVectorAdapter, type InferGenerateObjectResponse, type InferGenerateTextResponse, type InferMessage, type InferModel, type InferProviderParams, type InferStreamResponse, type InferTool, type InputGuardrail, type InputGuardrailArgs, type InputGuardrailResult, type LLMProvider, LazyRemoteExportProcessor, type LocalScorerDefinition, type LocalScorerExecutionResult, LocalStorageSpanProcessor, type LogFilter, LoggerProxy, MCPConfiguration, type MCPElicitationAdapter, type MCPLoggingAdapter, type MCPPromptsAdapter, type MCPResourcesAdapter, MCPServerRegistry, type ManagedMemoryAddMessageInput, type ManagedMemoryAddMessagesInput, type ManagedMemoryClearMessagesInput, type ManagedMemoryConnectionInfo, type ManagedMemoryConversationsClient, type ManagedMemoryCredentialCreateResult, type ManagedMemoryCredentialListResult, type ManagedMemoryCredentialSummary, type ManagedMemoryDatabaseSummary, type ManagedMemoryGetMessagesInput, type ManagedMemoryMessagesClient, type ManagedMemoryQueryWorkflowRunsInput, type ManagedMemorySetWorkingMemoryInput, type ManagedMemoryStatus, type ManagedMemoryUpdateConversationInput, type ManagedMemoryVoltOpsClient, type ManagedMemoryWorkflowStateUpdateInput, type ManagedMemoryWorkflowStatesClient, type ManagedMemoryWorkingMemoryClient, type ManagedMemoryWorkingMemoryInput, Memory, type MemoryConfig, type MemoryOptions, type MemoryStorageMetadata, type MemoryUpdateMode, Memory as MemoryV2, MemoryV2Error, type MessageContent, MessageContentBuilder, type MessageRole, type ModelToolCall, NextAction, NodeType, VoltAgentObservability$1 as NodeVoltAgentObservability, type ObservabilityConfig, type ObservabilityLogRecord, type ObservabilitySpan, type ObservabilityStorageAdapter, type ObservabilityWebSocketEvent, type OnEndHookArgs, type OnErrorHookArgs, type OnHandoffCompleteHookArgs, type OnHandoffHookArgs, type OnPrepareMessagesHookArgs, type OnPrepareMessagesHookResult, type OnPrepareModelMessagesHookArgs, type OnPrepareModelMessagesHookResult, type OnStartHookArgs, type OnStepFinishHookArgs, type OnToolEndHookArgs, type OnToolStartHookArgs, type OperationContext, type OutputGuardrail, type OutputGuardrailArgs, type OutputGuardrailResult, type PackageUpdateInfo, type PromptApiClient, type PromptApiResponse, type PromptContent, type PromptCreator, type PromptHelper, type PromptReference, type PromptTemplate, type ProviderObjectResponse, type ProviderObjectStreamResponse, type ProviderParams, type ProviderResponse, type ProviderTextResponse, type ProviderTextStreamResponse, type ProviderTool, type ReadableStreamType, type ReasoningStep, ReasoningStepSchema, type RegisterOptions, type RegisteredTrigger, type RegisteredWorkflow, type RemoteLogExportConfig, RemoteLogProcessor, type RetrieveOptions, type Retriever, type RetrieverOptions, type RunLocalScorersArgs, type RunLocalScorersResult, type SamplingMetadata, type SamplingPolicy, type ScorerBuilder, type ScorerContext, type ScorerLifecycleScope, type ScorerPipelineContext, type ScorerReasonContext, type ScorerResult, type SearchOptions, type SearchResult, type ServerAgentResponse, type ServerApiResponse, type ServerProviderDeps, type ServerProviderFactory, type ServerWorkflowResponse, type ServerlessProviderFactory, type ServerlessRemoteEndpointConfig, type ServerlessRemoteExportConfig, type ServerlessRequestHandler, ServerlessVoltAgentObservability, type SpanAttributes, type SpanEvent, type SpanFilterConfig, SpanFilterProcessor, SpanKind, type SpanLink, type SpanStatus, SpanStatusCode, type SpanTreeNode, type StepChunkCallback, type StepFinishCallback, type StepWithContent, type StopWhen, type StorageAdapter, StorageError, StorageLogProcessor, type StoredUIMessage, type StreamObjectFinishResult, type StreamObjectOnFinishCallback, type StreamObjectOptions, type StreamObjectSubAgentConfig, type StreamPart, type StreamTextFinishResult, type StreamTextOnFinishCallback, type StreamTextOptions, type StreamTextSubAgentConfig, type SubAgentConfig, type SubAgentMethod, type SubAgentStateData, type SupervisorConfig, TRIGGER_CONTEXT_KEY, type TemplateVariables, type TimelineEventCoreLevel, type TimelineEventCoreStatus, type TimelineEventCoreType, Tool, type ToolCall, type ToolContext, ToolDeniedError, type ToolErrorInfo, type ToolExecuteOptions, ToolManager, type ToolOptions, type ToolResultOutput, type ToolSchema, type ToolStatus, type ToolStatusInfo, type ToolWithNodeId, type Toolkit, type TriggerHandler, type TriggerHandlerBody, type TriggerHandlerContext, type TriggerHandlerResponse, type TriggerHandlerResult, type TriggerHandlerReturn, type TriggerHttpMethod, TriggerRegistry, type Usage, type UsageInfo, type VectorAdapter, VectorAdapterNotConfiguredError, VectorError, type VectorItem, type VectorSearchOptions, type Voice, type VoiceEventData, type VoiceEventType, type VoiceMetadata, type VoiceOptions, VoltAgent, VoltAgentError, VoltAgentObservability, type VoltAgentOptions, type VoltAgentStreamTextResult, type VoltAgentTextStreamPart, type VoltAgentTriggerConfig, type VoltAgentTriggersConfig, type VoltOpsActionExecutionResult, type VoltOpsActionsApi, VoltOpsActionsClient, type VoltOpsActionsTransport, type VoltOpsAirtableCreateRecordParams, type VoltOpsAirtableCredential, type VoltOpsAirtableDeleteRecordParams, type VoltOpsAirtableGetRecordParams, type VoltOpsAirtableListRecordsParams, type VoltOpsAirtableUpdateRecordParams, type VoltOpsAppendEvalRunResultPayload, type VoltOpsAppendEvalRunResultsRequest, VoltOpsClient, type VoltOpsClientOptions, type VoltOpsCompleteEvalRunRequest, type VoltOpsCreateEvalRunRequest, type VoltOpsCreateScorerRequest, type VoltOpsDiscordChannelMessageParams, type VoltOpsDiscordChannelType, type VoltOpsDiscordConfig, type VoltOpsDiscordCreateChannelParams, type VoltOpsDiscordCredential, type VoltOpsDiscordDeleteChannelParams, type VoltOpsDiscordGetChannelParams, type VoltOpsDiscordListChannelsParams, type VoltOpsDiscordListMembersParams, type VoltOpsDiscordListMessagesParams, type VoltOpsDiscordMemberRoleParams, type VoltOpsDiscordReactionParams, type VoltOpsDiscordSendMessageParams, type VoltOpsDiscordSendWebhookMessageParams, type VoltOpsDiscordUpdateChannelParams, type VoltOpsEvalResultStatus, type VoltOpsEvalRunCompletionSummaryPayload, type VoltOpsEvalRunErrorPayload, type VoltOpsEvalRunResultLiveMetadata, type VoltOpsEvalRunResultScorePayload, type VoltOpsEvalRunStatus, type VoltOpsEvalRunSummary, VoltOpsPromptApiClient, type VoltOpsPromptManager, VoltOpsPromptManagerImpl, type VoltOpsScorerSummary, type VoltOpsSlackCredential, type VoltOpsSlackDeleteMessageParams, type VoltOpsSlackPostMessageParams, type VoltOpsSlackSearchMessagesParams, type VoltOpsTerminalEvalRunStatus, type VoltOpsTriggerDefinition, VoltOpsTriggerDefinitions, type VoltOpsTriggerEnvelope, type VoltOpsTriggerGroupMap, type VoltOpsTriggerName, VoltOpsTriggerNames, WebSocketEventEmitter, WebSocketLogProcessor, WebSocketSpanProcessor, type WeightedBlendComponent, type WeightedBlendOptions, type Workflow, type WorkflowConfig, type WorkflowExecutionContext, WorkflowRegistry, type WorkflowRunQuery, type WorkflowStateEntry, type WorkflowStats, type WorkflowStepContext, type WorkflowStepType, type WorkflowTimelineEvent, type WorkingMemoryConfig, type WorkingMemoryScope, type WorkingMemorySummary, type WorkingMemoryUpdateOptions, addTimestampToMessage, andAgent, andAll, andRace, andTap, andThen, andWhen, andWorkflow, appendToMessage, buildRetrieverLogMessage, buildSamplingMetadata, buildScorer, buildSpanTree, checkForUpdates, convertUsage, cosineSimilarity, createDefaultInputSafetyGuardrails, createDefaultPIIGuardrails, createDefaultSafetyGuardrails, createEmailRedactorGuardrail, createHTMLSanitizerInputGuardrail, createHooks, createInputGuardrail, createInputLengthGuardrail, createMaxLengthGuardrail, createNodeId, createOutputGuardrail, createPIIInputGuardrail, createPhoneNumberGuardrail, createProfanityGuardrail, createProfanityInputGuardrail, createPrompt, createPromptInjectionGuardrail, createReasoningTools, createRetrieverTool, createScorer, createSensitiveNumberGuardrail, createSimpleTemplateEngine, createSubagent, createSuspendController, createTool, createToolkit, createTriggers, createVoltAgentObservability, createVoltOpsClient, createWorkflow, createWorkflowChain, createWorkflowStepNodeId, VoltAgent as default, defineVoltOpsTrigger, extractFileParts, extractImageParts, extractText, extractTextParts, extractWorkflowStepInfo, filterContentParts, getContentLength, getEnvVar, getGlobalLogBuffer, getGlobalLogger, getNodeTypeFromNodeId, getVoltOpsTriggerDefinition, getWorkflowStepNodeType, hasContent, hasFilePart, hasImagePart, hasTextPart, isAbortError, isNodeRuntime, isServerlessRuntime, isStructuredContent, isTextContent, isVoltAgentError, mapMessageContent, messageHelpers, normalizeContent, normalizeScorerResult, normalizeToArray, prependToMessage, readableLogRecordToObservabilityLog, readableSpanToObservabilitySpan, runLocalScorers, safeJsonParse, serializeValueForDebug, setWaitUntil, shouldSample, tool, transformTextContent, updateAllPackages, updateSinglePackage, weightedBlend, zodSchemaToJsonUI };
10841
+ export { A2AServerRegistry, AbortError, Agent, type AgentEvalConfig, type AgentEvalContext, type AgentEvalOperationType, type AgentEvalPayload, type AgentEvalResult, type AgentEvalSamplingPolicy, type AgentEvalScorerConfig, type AgentEvalScorerFactory, type AgentEvalScorerReference, type AgentFullState, type AgentHookOnEnd, type AgentHookOnError, type AgentHookOnHandoff, type AgentHookOnHandoffComplete, type AgentHookOnPrepareMessages, type AgentHookOnPrepareModelMessages, type AgentHookOnStart, type AgentHookOnStepFinish, type AgentHookOnToolEnd, type AgentHookOnToolStart, type AgentHooks, type AgentOptions, AgentRegistry, type AgentResponse, type AgentScorerState, type AgentStatus, type AgentTool, AiSdkEmbeddingAdapter, type AllowedVariableValue, type ApiToolInfo, type BaseEventMetadata, type BaseGenerationOptions, type BaseLLMOptions, type BaseMessage, BaseRetriever, type BaseTool, type BaseToolCall, type BuildScorerOptions, type BuildScorerRunArgs, type BuildScorerRunResult, type BuilderAnalyzeContext, type BuilderPrepareContext, type BuilderReasonContext, type BuilderScoreContext, type CachedPrompt, type ChatMessage, ClientHTTPError, type ClientSideToolResult, type CloudflareFetchHandler, type Conversation, ConversationAlreadyExistsError, ConversationNotFoundError, type ConversationQueryOptions, type ConversationQueryOptions as ConversationQueryOptionsV2, type ConversationStepRecord, type ConversationStepType, type Conversation as ConversationV2, type CreateConversationInput, type CreateConversationInput as CreateConversationInputV2, type CreateInputGuardrailOptions, type CreateOutputGuardrailOptions, type CreateReasoningToolsOptions, type CreateScorerOptions, DEFAULT_INSTRUCTIONS, type DataContent, type Document, type DynamicValue, type DynamicValueOptions, type EmbeddingAdapter$1 as EmbeddingAdapter, EmbeddingAdapterNotConfiguredError, EmbeddingError, type ExtractVariableNames, FEW_SHOT_EXAMPLES, type GenerateObjectOptions, type GenerateObjectSubAgentConfig, type GenerateReasonResult, type GenerateScoreResult, type GenerateScoreStep, type GenerateTextOptions, type GenerateTextSubAgentConfig, type GetConversationStepsOptions, type GetMessagesOptions, type GuardrailAction, type GuardrailContext, type GuardrailDefinition, type GuardrailFunction, type GuardrailSeverity, type IServerProvider, type IServerlessProvider, type VoltOpsClient$1 as IVoltOpsClient, InMemoryStorageAdapter$1 as InMemoryObservabilityAdapter, InMemoryStorageAdapter, InMemoryVectorAdapter, type InferGenerateObjectResponse, type InferGenerateTextResponse, type InferMessage, type InferModel, type InferProviderParams, type InferStreamResponse, type InferTool, type InputGuardrail, type InputGuardrailArgs, type InputGuardrailResult, type LLMProvider, LazyRemoteExportProcessor, type LocalScorerDefinition, type LocalScorerExecutionResult, LocalStorageSpanProcessor, type LogFilter, LoggerProxy, type MCPAuthorizationAction, type MCPAuthorizationConfig, type MCPAuthorizationContext, MCPAuthorizationError, type MCPCanFunction, type MCPCanParams, type MCPCanResult, type MCPClientCallOptions, MCPConfiguration, type MCPConfigurationOptions, type MCPElicitationAdapter, type MCPLoggingAdapter, type MCPPromptsAdapter, type MCPResourcesAdapter, MCPServerRegistry, type ManagedMemoryAddMessageInput, type ManagedMemoryAddMessagesInput, type ManagedMemoryClearMessagesInput, type ManagedMemoryConnectionInfo, type ManagedMemoryConversationsClient, type ManagedMemoryCredentialCreateResult, type ManagedMemoryCredentialListResult, type ManagedMemoryCredentialSummary, type ManagedMemoryDatabaseSummary, type ManagedMemoryGetMessagesInput, type ManagedMemoryMessagesClient, type ManagedMemoryQueryWorkflowRunsInput, type ManagedMemorySetWorkingMemoryInput, type ManagedMemoryStatus, type ManagedMemoryUpdateConversationInput, type ManagedMemoryVoltOpsClient, type ManagedMemoryWorkflowStateUpdateInput, type ManagedMemoryWorkflowStatesClient, type ManagedMemoryWorkingMemoryClient, type ManagedMemoryWorkingMemoryInput, Memory, type MemoryConfig, type MemoryOptions, type MemoryStorageMetadata, type MemoryUpdateMode, Memory as MemoryV2, MemoryV2Error, type MessageContent, MessageContentBuilder, type MessageRole, type ModelToolCall, NextAction, NodeType, VoltAgentObservability$1 as NodeVoltAgentObservability, type ObservabilityConfig, type ObservabilityLogRecord, type ObservabilitySpan, type ObservabilityStorageAdapter, type ObservabilityWebSocketEvent, type OnEndHookArgs, type OnErrorHookArgs, type OnHandoffCompleteHookArgs, type OnHandoffHookArgs, type OnPrepareMessagesHookArgs, type OnPrepareMessagesHookResult, type OnPrepareModelMessagesHookArgs, type OnPrepareModelMessagesHookResult, type OnStartHookArgs, type OnStepFinishHookArgs, type OnToolEndHookArgs, type OnToolStartHookArgs, type OperationContext, type OutputGuardrail, type OutputGuardrailArgs, type OutputGuardrailResult, type PackageUpdateInfo, type PromptApiClient, type PromptApiResponse, type PromptContent, type PromptCreator, type PromptHelper, type PromptReference, type PromptTemplate, type ProviderObjectResponse, type ProviderObjectStreamResponse, type ProviderParams, type ProviderResponse, type ProviderTextResponse, type ProviderTextStreamResponse, type ProviderTool, type ReadableStreamType, type ReasoningStep, ReasoningStepSchema, type RegisterOptions, type RegisteredTrigger, type RegisteredWorkflow, type RemoteLogExportConfig, RemoteLogProcessor, type RetrieveOptions, type Retriever, type RetrieverOptions, type RunLocalScorersArgs, type RunLocalScorersResult, type SamplingMetadata, type SamplingPolicy, type ScorerBuilder, type ScorerContext, type ScorerLifecycleScope, type ScorerPipelineContext, type ScorerReasonContext, type ScorerResult, type SearchOptions, type SearchResult, type ServerAgentResponse, type ServerApiResponse, type ServerProviderDeps, type ServerProviderFactory, type ServerWorkflowResponse, type ServerlessProviderFactory, type ServerlessRemoteEndpointConfig, type ServerlessRemoteExportConfig, type ServerlessRequestHandler, ServerlessVoltAgentObservability, type SpanAttributes, type SpanEvent, type SpanFilterConfig, SpanFilterProcessor, SpanKind, type SpanLink, type SpanStatus, SpanStatusCode, type SpanTreeNode, type StepChunkCallback, type StepFinishCallback, type StepWithContent, type StopWhen, type StorageAdapter, StorageError, StorageLogProcessor, type StoredUIMessage, type StreamObjectFinishResult, type StreamObjectOnFinishCallback, type StreamObjectOptions, type StreamObjectSubAgentConfig, type StreamPart, type StreamTextFinishResult, type StreamTextOnFinishCallback, type StreamTextOptions, type StreamTextSubAgentConfig, type SubAgentConfig, type SubAgentMethod, type SubAgentStateData, type SupervisorConfig, TRIGGER_CONTEXT_KEY, type TemplateVariables, type TimelineEventCoreLevel, type TimelineEventCoreStatus, type TimelineEventCoreType, Tool, type ToolCall, type ToolContext, ToolDeniedError, type ToolErrorInfo, type ToolExecuteOptions, ToolManager, type ToolOptions, type ToolResultOutput, type ToolSchema, type ToolStatus, type ToolStatusInfo, type ToolWithNodeId, type Toolkit, type TriggerHandler, type TriggerHandlerBody, type TriggerHandlerContext, type TriggerHandlerResponse, type TriggerHandlerResult, type TriggerHandlerReturn, type TriggerHttpMethod, TriggerRegistry, type Usage, type UsageInfo, type VectorAdapter, VectorAdapterNotConfiguredError, VectorError, type VectorItem, type VectorSearchOptions, type Voice, type VoiceEventData, type VoiceEventType, type VoiceMetadata, type VoiceOptions, VoltAgent, VoltAgentError, VoltAgentObservability, type VoltAgentOptions, type VoltAgentStreamTextResult, type VoltAgentTextStreamPart, type VoltAgentTriggerConfig, type VoltAgentTriggersConfig, type VoltOpsActionExecutionResult, type VoltOpsActionsApi, VoltOpsActionsClient, type VoltOpsActionsTransport, type VoltOpsAirtableCreateRecordParams, type VoltOpsAirtableCredential, type VoltOpsAirtableDeleteRecordParams, type VoltOpsAirtableGetRecordParams, type VoltOpsAirtableListRecordsParams, type VoltOpsAirtableUpdateRecordParams, type VoltOpsAppendEvalRunResultPayload, type VoltOpsAppendEvalRunResultsRequest, VoltOpsClient, type VoltOpsClientOptions, type VoltOpsCompleteEvalRunRequest, type VoltOpsCreateEvalRunRequest, type VoltOpsCreateScorerRequest, type VoltOpsDiscordChannelMessageParams, type VoltOpsDiscordChannelType, type VoltOpsDiscordConfig, type VoltOpsDiscordCreateChannelParams, type VoltOpsDiscordCredential, type VoltOpsDiscordDeleteChannelParams, type VoltOpsDiscordGetChannelParams, type VoltOpsDiscordListChannelsParams, type VoltOpsDiscordListMembersParams, type VoltOpsDiscordListMessagesParams, type VoltOpsDiscordMemberRoleParams, type VoltOpsDiscordReactionParams, type VoltOpsDiscordSendMessageParams, type VoltOpsDiscordSendWebhookMessageParams, type VoltOpsDiscordUpdateChannelParams, type VoltOpsEvalResultStatus, type VoltOpsEvalRunCompletionSummaryPayload, type VoltOpsEvalRunErrorPayload, type VoltOpsEvalRunResultLiveMetadata, type VoltOpsEvalRunResultScorePayload, type VoltOpsEvalRunStatus, type VoltOpsEvalRunSummary, VoltOpsPromptApiClient, type VoltOpsPromptManager, VoltOpsPromptManagerImpl, type VoltOpsScorerSummary, type VoltOpsSlackCredential, type VoltOpsSlackDeleteMessageParams, type VoltOpsSlackPostMessageParams, type VoltOpsSlackSearchMessagesParams, type VoltOpsTerminalEvalRunStatus, type VoltOpsTriggerDefinition, VoltOpsTriggerDefinitions, type VoltOpsTriggerEnvelope, type VoltOpsTriggerGroupMap, type VoltOpsTriggerName, VoltOpsTriggerNames, WebSocketEventEmitter, WebSocketLogProcessor, WebSocketSpanProcessor, type WeightedBlendComponent, type WeightedBlendOptions, type Workflow, type WorkflowConfig, type WorkflowExecutionContext, WorkflowRegistry, type WorkflowRunQuery, type WorkflowStateEntry, type WorkflowStats, type WorkflowStepContext, type WorkflowStepType, type WorkflowTimelineEvent, type WorkingMemoryConfig, type WorkingMemoryScope, type WorkingMemorySummary, type WorkingMemoryUpdateOptions, addTimestampToMessage, andAgent, andAll, andRace, andTap, andThen, andWhen, andWorkflow, appendToMessage, buildRetrieverLogMessage, buildSamplingMetadata, buildScorer, buildSpanTree, checkForUpdates, convertUsage, cosineSimilarity, createDefaultInputSafetyGuardrails, createDefaultPIIGuardrails, createDefaultSafetyGuardrails, createEmailRedactorGuardrail, createHTMLSanitizerInputGuardrail, createHooks, createInputGuardrail, createInputLengthGuardrail, createMaxLengthGuardrail, createNodeId, createOutputGuardrail, createPIIInputGuardrail, createPhoneNumberGuardrail, createProfanityGuardrail, createProfanityInputGuardrail, createPrompt, createPromptInjectionGuardrail, createReasoningTools, createRetrieverTool, createScorer, createSensitiveNumberGuardrail, createSimpleTemplateEngine, createSubagent, createSuspendController, createTool, createToolkit, createTriggers, createVoltAgentObservability, createVoltOpsClient, createWorkflow, createWorkflowChain, createWorkflowStepNodeId, VoltAgent as default, defineVoltOpsTrigger, extractFileParts, extractImageParts, extractText, extractTextParts, extractWorkflowStepInfo, filterContentParts, getContentLength, getEnvVar, getGlobalLogBuffer, getGlobalLogger, getNodeTypeFromNodeId, getVoltOpsTriggerDefinition, getWorkflowStepNodeType, hasContent, hasFilePart, hasImagePart, hasTextPart, isAbortError, isNodeRuntime, isServerlessRuntime, isStructuredContent, isTextContent, isVoltAgentError, mapMessageContent, messageHelpers, normalizeContent, normalizeScorerResult, normalizeToArray, prependToMessage, readableLogRecordToObservabilityLog, readableSpanToObservabilitySpan, runLocalScorers, safeJsonParse, serializeValueForDebug, setWaitUntil, shouldSample, tool, transformTextContent, updateAllPackages, updateSinglePackage, weightedBlend, zodSchemaToJsonUI };