@voltagent/core 1.2.17 → 1.2.18

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
@@ -1986,6 +1986,23 @@ type VoltOpsDiscordCredential = VoltOpsStoredCredentialRef | WithCredentialMetad
1986
1986
  }> | WithCredentialMetadata<{
1987
1987
  webhookUrl: string;
1988
1988
  }>;
1989
+ type VoltOpsGmailCredential = VoltOpsStoredCredentialRef | WithCredentialMetadata<{
1990
+ accessToken?: string;
1991
+ refreshToken?: string;
1992
+ clientId?: string;
1993
+ clientSecret?: string;
1994
+ tokenType?: string;
1995
+ expiresAt?: string;
1996
+ }> | WithCredentialMetadata<{
1997
+ clientEmail: string;
1998
+ privateKey: string;
1999
+ subject?: string | null;
2000
+ }>;
2001
+ interface VoltOpsGmailAttachment {
2002
+ filename?: string;
2003
+ content: string;
2004
+ contentType?: string;
2005
+ }
1989
2006
  interface VoltOpsAirtableCreateRecordParams {
1990
2007
  credential: VoltOpsAirtableCredential;
1991
2008
  baseId: string;
@@ -2159,6 +2176,51 @@ interface VoltOpsDiscordMemberRoleParams extends VoltOpsDiscordBaseParams {
2159
2176
  userId: string;
2160
2177
  roleId: string;
2161
2178
  }
2179
+ interface VoltOpsGmailBaseParams {
2180
+ credential: VoltOpsGmailCredential;
2181
+ actionId?: string;
2182
+ catalogId?: string;
2183
+ projectId?: string | null;
2184
+ }
2185
+ interface VoltOpsGmailSendEmailParams extends VoltOpsGmailBaseParams {
2186
+ to: string | string[];
2187
+ cc?: string | string[];
2188
+ bcc?: string | string[];
2189
+ subject: string;
2190
+ body?: string;
2191
+ bodyType?: "text" | "html";
2192
+ htmlBody?: string;
2193
+ textBody?: string;
2194
+ replyTo?: string | string[];
2195
+ from?: string;
2196
+ senderName?: string;
2197
+ inReplyTo?: string;
2198
+ threadId?: string;
2199
+ attachments?: VoltOpsGmailAttachment[];
2200
+ draft?: boolean;
2201
+ }
2202
+ interface VoltOpsGmailReplyParams extends VoltOpsGmailSendEmailParams {
2203
+ }
2204
+ interface VoltOpsGmailSearchParams extends VoltOpsGmailBaseParams {
2205
+ from?: string;
2206
+ to?: string;
2207
+ subject?: string;
2208
+ label?: string;
2209
+ category?: string;
2210
+ after?: number;
2211
+ before?: number;
2212
+ maxResults?: number;
2213
+ pageToken?: string;
2214
+ query?: string;
2215
+ }
2216
+ interface VoltOpsGmailGetEmailParams extends VoltOpsGmailBaseParams {
2217
+ messageId: string;
2218
+ format?: "full" | "minimal" | "raw" | "metadata";
2219
+ }
2220
+ interface VoltOpsGmailGetThreadParams extends VoltOpsGmailBaseParams {
2221
+ threadId: string;
2222
+ format?: "full" | "minimal" | "raw" | "metadata";
2223
+ }
2162
2224
  type VoltOpsActionsApi = {
2163
2225
  airtable: {
2164
2226
  createRecord: (params: VoltOpsAirtableCreateRecordParams) => Promise<VoltOpsActionExecutionResult>;
@@ -2189,6 +2251,13 @@ type VoltOpsActionsApi = {
2189
2251
  addMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2190
2252
  removeMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2191
2253
  };
2254
+ gmail: {
2255
+ sendEmail: (params: VoltOpsGmailSendEmailParams) => Promise<VoltOpsActionExecutionResult>;
2256
+ replyToEmail: (params: VoltOpsGmailReplyParams) => Promise<VoltOpsActionExecutionResult>;
2257
+ searchEmail: (params: VoltOpsGmailSearchParams) => Promise<VoltOpsActionExecutionResult>;
2258
+ getEmail: (params: VoltOpsGmailGetEmailParams) => Promise<VoltOpsActionExecutionResult>;
2259
+ getThread: (params: VoltOpsGmailGetThreadParams) => Promise<VoltOpsActionExecutionResult>;
2260
+ };
2192
2261
  };
2193
2262
  interface VoltOpsEvalsApi {
2194
2263
  runs: {
@@ -2626,6 +2695,13 @@ declare class VoltOpsActionsClient {
2626
2695
  addMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2627
2696
  removeMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2628
2697
  };
2698
+ readonly gmail: {
2699
+ sendEmail: (params: VoltOpsGmailSendEmailParams) => Promise<VoltOpsActionExecutionResult>;
2700
+ replyToEmail: (params: VoltOpsGmailReplyParams) => Promise<VoltOpsActionExecutionResult>;
2701
+ searchEmail: (params: VoltOpsGmailSearchParams) => Promise<VoltOpsActionExecutionResult>;
2702
+ getEmail: (params: VoltOpsGmailGetEmailParams) => Promise<VoltOpsActionExecutionResult>;
2703
+ getThread: (params: VoltOpsGmailGetThreadParams) => Promise<VoltOpsActionExecutionResult>;
2704
+ };
2629
2705
  constructor(transport: VoltOpsActionsTransport, options?: {
2630
2706
  useProjectEndpoint?: boolean;
2631
2707
  });
@@ -2641,6 +2717,11 @@ declare class VoltOpsActionsClient {
2641
2717
  private deleteSlackMessage;
2642
2718
  private searchSlackMessages;
2643
2719
  private executeSlackAction;
2720
+ private sendGmailEmail;
2721
+ private replyGmailEmail;
2722
+ private searchGmailEmails;
2723
+ private getGmailEmail;
2724
+ private getGmailThread;
2644
2725
  private sendDiscordMessage;
2645
2726
  private sendDiscordWebhookMessage;
2646
2727
  private deleteDiscordMessage;
@@ -2667,6 +2748,7 @@ declare class VoltOpsActionsClient {
2667
2748
  private ensureAirtableCredential;
2668
2749
  private ensureSlackCredential;
2669
2750
  private ensureDiscordCredential;
2751
+ private ensureGmailCredential;
2670
2752
  private normalizeCredentialMetadata;
2671
2753
  private normalizeIdentifier;
2672
2754
  private ensureRecord;
@@ -2674,6 +2756,12 @@ declare class VoltOpsActionsClient {
2674
2756
  private sanitizeSortArray;
2675
2757
  private normalizePositiveInteger;
2676
2758
  private trimString;
2759
+ private normalizeEmailList;
2760
+ private normalizeGmailBodyType;
2761
+ private normalizeGmailFormat;
2762
+ private normalizeGmailAttachments;
2763
+ private buildGmailSendInput;
2764
+ private executeGmailAction;
2677
2765
  private postActionExecution;
2678
2766
  private unwrapActionResponse;
2679
2767
  private mapActionExecution;
package/dist/index.d.ts CHANGED
@@ -1986,6 +1986,23 @@ type VoltOpsDiscordCredential = VoltOpsStoredCredentialRef | WithCredentialMetad
1986
1986
  }> | WithCredentialMetadata<{
1987
1987
  webhookUrl: string;
1988
1988
  }>;
1989
+ type VoltOpsGmailCredential = VoltOpsStoredCredentialRef | WithCredentialMetadata<{
1990
+ accessToken?: string;
1991
+ refreshToken?: string;
1992
+ clientId?: string;
1993
+ clientSecret?: string;
1994
+ tokenType?: string;
1995
+ expiresAt?: string;
1996
+ }> | WithCredentialMetadata<{
1997
+ clientEmail: string;
1998
+ privateKey: string;
1999
+ subject?: string | null;
2000
+ }>;
2001
+ interface VoltOpsGmailAttachment {
2002
+ filename?: string;
2003
+ content: string;
2004
+ contentType?: string;
2005
+ }
1989
2006
  interface VoltOpsAirtableCreateRecordParams {
1990
2007
  credential: VoltOpsAirtableCredential;
1991
2008
  baseId: string;
@@ -2159,6 +2176,51 @@ interface VoltOpsDiscordMemberRoleParams extends VoltOpsDiscordBaseParams {
2159
2176
  userId: string;
2160
2177
  roleId: string;
2161
2178
  }
2179
+ interface VoltOpsGmailBaseParams {
2180
+ credential: VoltOpsGmailCredential;
2181
+ actionId?: string;
2182
+ catalogId?: string;
2183
+ projectId?: string | null;
2184
+ }
2185
+ interface VoltOpsGmailSendEmailParams extends VoltOpsGmailBaseParams {
2186
+ to: string | string[];
2187
+ cc?: string | string[];
2188
+ bcc?: string | string[];
2189
+ subject: string;
2190
+ body?: string;
2191
+ bodyType?: "text" | "html";
2192
+ htmlBody?: string;
2193
+ textBody?: string;
2194
+ replyTo?: string | string[];
2195
+ from?: string;
2196
+ senderName?: string;
2197
+ inReplyTo?: string;
2198
+ threadId?: string;
2199
+ attachments?: VoltOpsGmailAttachment[];
2200
+ draft?: boolean;
2201
+ }
2202
+ interface VoltOpsGmailReplyParams extends VoltOpsGmailSendEmailParams {
2203
+ }
2204
+ interface VoltOpsGmailSearchParams extends VoltOpsGmailBaseParams {
2205
+ from?: string;
2206
+ to?: string;
2207
+ subject?: string;
2208
+ label?: string;
2209
+ category?: string;
2210
+ after?: number;
2211
+ before?: number;
2212
+ maxResults?: number;
2213
+ pageToken?: string;
2214
+ query?: string;
2215
+ }
2216
+ interface VoltOpsGmailGetEmailParams extends VoltOpsGmailBaseParams {
2217
+ messageId: string;
2218
+ format?: "full" | "minimal" | "raw" | "metadata";
2219
+ }
2220
+ interface VoltOpsGmailGetThreadParams extends VoltOpsGmailBaseParams {
2221
+ threadId: string;
2222
+ format?: "full" | "minimal" | "raw" | "metadata";
2223
+ }
2162
2224
  type VoltOpsActionsApi = {
2163
2225
  airtable: {
2164
2226
  createRecord: (params: VoltOpsAirtableCreateRecordParams) => Promise<VoltOpsActionExecutionResult>;
@@ -2189,6 +2251,13 @@ type VoltOpsActionsApi = {
2189
2251
  addMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2190
2252
  removeMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2191
2253
  };
2254
+ gmail: {
2255
+ sendEmail: (params: VoltOpsGmailSendEmailParams) => Promise<VoltOpsActionExecutionResult>;
2256
+ replyToEmail: (params: VoltOpsGmailReplyParams) => Promise<VoltOpsActionExecutionResult>;
2257
+ searchEmail: (params: VoltOpsGmailSearchParams) => Promise<VoltOpsActionExecutionResult>;
2258
+ getEmail: (params: VoltOpsGmailGetEmailParams) => Promise<VoltOpsActionExecutionResult>;
2259
+ getThread: (params: VoltOpsGmailGetThreadParams) => Promise<VoltOpsActionExecutionResult>;
2260
+ };
2192
2261
  };
2193
2262
  interface VoltOpsEvalsApi {
2194
2263
  runs: {
@@ -2626,6 +2695,13 @@ declare class VoltOpsActionsClient {
2626
2695
  addMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2627
2696
  removeMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2628
2697
  };
2698
+ readonly gmail: {
2699
+ sendEmail: (params: VoltOpsGmailSendEmailParams) => Promise<VoltOpsActionExecutionResult>;
2700
+ replyToEmail: (params: VoltOpsGmailReplyParams) => Promise<VoltOpsActionExecutionResult>;
2701
+ searchEmail: (params: VoltOpsGmailSearchParams) => Promise<VoltOpsActionExecutionResult>;
2702
+ getEmail: (params: VoltOpsGmailGetEmailParams) => Promise<VoltOpsActionExecutionResult>;
2703
+ getThread: (params: VoltOpsGmailGetThreadParams) => Promise<VoltOpsActionExecutionResult>;
2704
+ };
2629
2705
  constructor(transport: VoltOpsActionsTransport, options?: {
2630
2706
  useProjectEndpoint?: boolean;
2631
2707
  });
@@ -2641,6 +2717,11 @@ declare class VoltOpsActionsClient {
2641
2717
  private deleteSlackMessage;
2642
2718
  private searchSlackMessages;
2643
2719
  private executeSlackAction;
2720
+ private sendGmailEmail;
2721
+ private replyGmailEmail;
2722
+ private searchGmailEmails;
2723
+ private getGmailEmail;
2724
+ private getGmailThread;
2644
2725
  private sendDiscordMessage;
2645
2726
  private sendDiscordWebhookMessage;
2646
2727
  private deleteDiscordMessage;
@@ -2667,6 +2748,7 @@ declare class VoltOpsActionsClient {
2667
2748
  private ensureAirtableCredential;
2668
2749
  private ensureSlackCredential;
2669
2750
  private ensureDiscordCredential;
2751
+ private ensureGmailCredential;
2670
2752
  private normalizeCredentialMetadata;
2671
2753
  private normalizeIdentifier;
2672
2754
  private ensureRecord;
@@ -2674,6 +2756,12 @@ declare class VoltOpsActionsClient {
2674
2756
  private sanitizeSortArray;
2675
2757
  private normalizePositiveInteger;
2676
2758
  private trimString;
2759
+ private normalizeEmailList;
2760
+ private normalizeGmailBodyType;
2761
+ private normalizeGmailFormat;
2762
+ private normalizeGmailAttachments;
2763
+ private buildGmailSendInput;
2764
+ private executeGmailAction;
2677
2765
  private postActionExecution;
2678
2766
  private unwrapActionResponse;
2679
2767
  private mapActionExecution;