@voltagent/core 1.2.17 → 1.2.19

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,32 @@ type VoltOpsDiscordCredential = VoltOpsStoredCredentialRef | WithCredentialMetad
1986
1986
  }> | WithCredentialMetadata<{
1987
1987
  webhookUrl: string;
1988
1988
  }>;
1989
+ type VoltOpsPostgresCredential = VoltOpsStoredCredentialRef | WithCredentialMetadata<{
1990
+ host: string;
1991
+ port?: number;
1992
+ user: string;
1993
+ password: string;
1994
+ database: string;
1995
+ ssl?: boolean;
1996
+ rejectUnauthorized?: boolean;
1997
+ }>;
1998
+ type VoltOpsGmailCredential = VoltOpsStoredCredentialRef | WithCredentialMetadata<{
1999
+ accessToken?: string;
2000
+ refreshToken?: string;
2001
+ clientId?: string;
2002
+ clientSecret?: string;
2003
+ tokenType?: string;
2004
+ expiresAt?: string;
2005
+ }> | WithCredentialMetadata<{
2006
+ clientEmail: string;
2007
+ privateKey: string;
2008
+ subject?: string | null;
2009
+ }>;
2010
+ interface VoltOpsGmailAttachment {
2011
+ filename?: string;
2012
+ content: string;
2013
+ contentType?: string;
2014
+ }
1989
2015
  interface VoltOpsAirtableCreateRecordParams {
1990
2016
  credential: VoltOpsAirtableCredential;
1991
2017
  baseId: string;
@@ -2159,6 +2185,67 @@ interface VoltOpsDiscordMemberRoleParams extends VoltOpsDiscordBaseParams {
2159
2185
  userId: string;
2160
2186
  roleId: string;
2161
2187
  }
2188
+ interface VoltOpsPostgresBaseParams {
2189
+ credential: VoltOpsPostgresCredential;
2190
+ actionId?: string;
2191
+ catalogId?: string;
2192
+ projectId?: string | null;
2193
+ }
2194
+ interface VoltOpsPostgresExecuteParams extends VoltOpsPostgresBaseParams {
2195
+ query: string;
2196
+ parameters?: unknown[];
2197
+ applicationName?: string;
2198
+ statementTimeoutMs?: number;
2199
+ connectionTimeoutMs?: number;
2200
+ ssl?: {
2201
+ rejectUnauthorized?: boolean;
2202
+ };
2203
+ }
2204
+ interface VoltOpsGmailBaseParams {
2205
+ credential: VoltOpsGmailCredential;
2206
+ actionId?: string;
2207
+ catalogId?: string;
2208
+ projectId?: string | null;
2209
+ }
2210
+ interface VoltOpsGmailSendEmailParams extends VoltOpsGmailBaseParams {
2211
+ to: string | string[];
2212
+ cc?: string | string[];
2213
+ bcc?: string | string[];
2214
+ subject: string;
2215
+ body?: string;
2216
+ bodyType?: "text" | "html";
2217
+ htmlBody?: string;
2218
+ textBody?: string;
2219
+ replyTo?: string | string[];
2220
+ from?: string;
2221
+ senderName?: string;
2222
+ inReplyTo?: string;
2223
+ threadId?: string;
2224
+ attachments?: VoltOpsGmailAttachment[];
2225
+ draft?: boolean;
2226
+ }
2227
+ interface VoltOpsGmailReplyParams extends VoltOpsGmailSendEmailParams {
2228
+ }
2229
+ interface VoltOpsGmailSearchParams extends VoltOpsGmailBaseParams {
2230
+ from?: string;
2231
+ to?: string;
2232
+ subject?: string;
2233
+ label?: string;
2234
+ category?: string;
2235
+ after?: number;
2236
+ before?: number;
2237
+ maxResults?: number;
2238
+ pageToken?: string;
2239
+ query?: string;
2240
+ }
2241
+ interface VoltOpsGmailGetEmailParams extends VoltOpsGmailBaseParams {
2242
+ messageId: string;
2243
+ format?: "full" | "minimal" | "raw" | "metadata";
2244
+ }
2245
+ interface VoltOpsGmailGetThreadParams extends VoltOpsGmailBaseParams {
2246
+ threadId: string;
2247
+ format?: "full" | "minimal" | "raw" | "metadata";
2248
+ }
2162
2249
  type VoltOpsActionsApi = {
2163
2250
  airtable: {
2164
2251
  createRecord: (params: VoltOpsAirtableCreateRecordParams) => Promise<VoltOpsActionExecutionResult>;
@@ -2189,6 +2276,16 @@ type VoltOpsActionsApi = {
2189
2276
  addMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2190
2277
  removeMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2191
2278
  };
2279
+ gmail: {
2280
+ sendEmail: (params: VoltOpsGmailSendEmailParams) => Promise<VoltOpsActionExecutionResult>;
2281
+ replyToEmail: (params: VoltOpsGmailReplyParams) => Promise<VoltOpsActionExecutionResult>;
2282
+ searchEmail: (params: VoltOpsGmailSearchParams) => Promise<VoltOpsActionExecutionResult>;
2283
+ getEmail: (params: VoltOpsGmailGetEmailParams) => Promise<VoltOpsActionExecutionResult>;
2284
+ getThread: (params: VoltOpsGmailGetThreadParams) => Promise<VoltOpsActionExecutionResult>;
2285
+ };
2286
+ postgres: {
2287
+ executeQuery: (params: VoltOpsPostgresExecuteParams) => Promise<VoltOpsActionExecutionResult>;
2288
+ };
2192
2289
  };
2193
2290
  interface VoltOpsEvalsApi {
2194
2291
  runs: {
@@ -2626,6 +2723,16 @@ declare class VoltOpsActionsClient {
2626
2723
  addMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2627
2724
  removeMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2628
2725
  };
2726
+ readonly gmail: {
2727
+ sendEmail: (params: VoltOpsGmailSendEmailParams) => Promise<VoltOpsActionExecutionResult>;
2728
+ replyToEmail: (params: VoltOpsGmailReplyParams) => Promise<VoltOpsActionExecutionResult>;
2729
+ searchEmail: (params: VoltOpsGmailSearchParams) => Promise<VoltOpsActionExecutionResult>;
2730
+ getEmail: (params: VoltOpsGmailGetEmailParams) => Promise<VoltOpsActionExecutionResult>;
2731
+ getThread: (params: VoltOpsGmailGetThreadParams) => Promise<VoltOpsActionExecutionResult>;
2732
+ };
2733
+ readonly postgres: {
2734
+ executeQuery: (params: VoltOpsPostgresExecuteParams) => Promise<VoltOpsActionExecutionResult>;
2735
+ };
2629
2736
  constructor(transport: VoltOpsActionsTransport, options?: {
2630
2737
  useProjectEndpoint?: boolean;
2631
2738
  });
@@ -2641,6 +2748,12 @@ declare class VoltOpsActionsClient {
2641
2748
  private deleteSlackMessage;
2642
2749
  private searchSlackMessages;
2643
2750
  private executeSlackAction;
2751
+ private sendGmailEmail;
2752
+ private replyGmailEmail;
2753
+ private searchGmailEmails;
2754
+ private getGmailEmail;
2755
+ private getGmailThread;
2756
+ private executePostgresQuery;
2644
2757
  private sendDiscordMessage;
2645
2758
  private sendDiscordWebhookMessage;
2646
2759
  private deleteDiscordMessage;
@@ -2667,6 +2780,8 @@ declare class VoltOpsActionsClient {
2667
2780
  private ensureAirtableCredential;
2668
2781
  private ensureSlackCredential;
2669
2782
  private ensureDiscordCredential;
2783
+ private ensureGmailCredential;
2784
+ private ensurePostgresCredential;
2670
2785
  private normalizeCredentialMetadata;
2671
2786
  private normalizeIdentifier;
2672
2787
  private ensureRecord;
@@ -2674,6 +2789,12 @@ declare class VoltOpsActionsClient {
2674
2789
  private sanitizeSortArray;
2675
2790
  private normalizePositiveInteger;
2676
2791
  private trimString;
2792
+ private normalizeEmailList;
2793
+ private normalizeGmailBodyType;
2794
+ private normalizeGmailFormat;
2795
+ private normalizeGmailAttachments;
2796
+ private buildGmailSendInput;
2797
+ private executeGmailAction;
2677
2798
  private postActionExecution;
2678
2799
  private unwrapActionResponse;
2679
2800
  private mapActionExecution;
package/dist/index.d.ts CHANGED
@@ -1986,6 +1986,32 @@ type VoltOpsDiscordCredential = VoltOpsStoredCredentialRef | WithCredentialMetad
1986
1986
  }> | WithCredentialMetadata<{
1987
1987
  webhookUrl: string;
1988
1988
  }>;
1989
+ type VoltOpsPostgresCredential = VoltOpsStoredCredentialRef | WithCredentialMetadata<{
1990
+ host: string;
1991
+ port?: number;
1992
+ user: string;
1993
+ password: string;
1994
+ database: string;
1995
+ ssl?: boolean;
1996
+ rejectUnauthorized?: boolean;
1997
+ }>;
1998
+ type VoltOpsGmailCredential = VoltOpsStoredCredentialRef | WithCredentialMetadata<{
1999
+ accessToken?: string;
2000
+ refreshToken?: string;
2001
+ clientId?: string;
2002
+ clientSecret?: string;
2003
+ tokenType?: string;
2004
+ expiresAt?: string;
2005
+ }> | WithCredentialMetadata<{
2006
+ clientEmail: string;
2007
+ privateKey: string;
2008
+ subject?: string | null;
2009
+ }>;
2010
+ interface VoltOpsGmailAttachment {
2011
+ filename?: string;
2012
+ content: string;
2013
+ contentType?: string;
2014
+ }
1989
2015
  interface VoltOpsAirtableCreateRecordParams {
1990
2016
  credential: VoltOpsAirtableCredential;
1991
2017
  baseId: string;
@@ -2159,6 +2185,67 @@ interface VoltOpsDiscordMemberRoleParams extends VoltOpsDiscordBaseParams {
2159
2185
  userId: string;
2160
2186
  roleId: string;
2161
2187
  }
2188
+ interface VoltOpsPostgresBaseParams {
2189
+ credential: VoltOpsPostgresCredential;
2190
+ actionId?: string;
2191
+ catalogId?: string;
2192
+ projectId?: string | null;
2193
+ }
2194
+ interface VoltOpsPostgresExecuteParams extends VoltOpsPostgresBaseParams {
2195
+ query: string;
2196
+ parameters?: unknown[];
2197
+ applicationName?: string;
2198
+ statementTimeoutMs?: number;
2199
+ connectionTimeoutMs?: number;
2200
+ ssl?: {
2201
+ rejectUnauthorized?: boolean;
2202
+ };
2203
+ }
2204
+ interface VoltOpsGmailBaseParams {
2205
+ credential: VoltOpsGmailCredential;
2206
+ actionId?: string;
2207
+ catalogId?: string;
2208
+ projectId?: string | null;
2209
+ }
2210
+ interface VoltOpsGmailSendEmailParams extends VoltOpsGmailBaseParams {
2211
+ to: string | string[];
2212
+ cc?: string | string[];
2213
+ bcc?: string | string[];
2214
+ subject: string;
2215
+ body?: string;
2216
+ bodyType?: "text" | "html";
2217
+ htmlBody?: string;
2218
+ textBody?: string;
2219
+ replyTo?: string | string[];
2220
+ from?: string;
2221
+ senderName?: string;
2222
+ inReplyTo?: string;
2223
+ threadId?: string;
2224
+ attachments?: VoltOpsGmailAttachment[];
2225
+ draft?: boolean;
2226
+ }
2227
+ interface VoltOpsGmailReplyParams extends VoltOpsGmailSendEmailParams {
2228
+ }
2229
+ interface VoltOpsGmailSearchParams extends VoltOpsGmailBaseParams {
2230
+ from?: string;
2231
+ to?: string;
2232
+ subject?: string;
2233
+ label?: string;
2234
+ category?: string;
2235
+ after?: number;
2236
+ before?: number;
2237
+ maxResults?: number;
2238
+ pageToken?: string;
2239
+ query?: string;
2240
+ }
2241
+ interface VoltOpsGmailGetEmailParams extends VoltOpsGmailBaseParams {
2242
+ messageId: string;
2243
+ format?: "full" | "minimal" | "raw" | "metadata";
2244
+ }
2245
+ interface VoltOpsGmailGetThreadParams extends VoltOpsGmailBaseParams {
2246
+ threadId: string;
2247
+ format?: "full" | "minimal" | "raw" | "metadata";
2248
+ }
2162
2249
  type VoltOpsActionsApi = {
2163
2250
  airtable: {
2164
2251
  createRecord: (params: VoltOpsAirtableCreateRecordParams) => Promise<VoltOpsActionExecutionResult>;
@@ -2189,6 +2276,16 @@ type VoltOpsActionsApi = {
2189
2276
  addMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2190
2277
  removeMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2191
2278
  };
2279
+ gmail: {
2280
+ sendEmail: (params: VoltOpsGmailSendEmailParams) => Promise<VoltOpsActionExecutionResult>;
2281
+ replyToEmail: (params: VoltOpsGmailReplyParams) => Promise<VoltOpsActionExecutionResult>;
2282
+ searchEmail: (params: VoltOpsGmailSearchParams) => Promise<VoltOpsActionExecutionResult>;
2283
+ getEmail: (params: VoltOpsGmailGetEmailParams) => Promise<VoltOpsActionExecutionResult>;
2284
+ getThread: (params: VoltOpsGmailGetThreadParams) => Promise<VoltOpsActionExecutionResult>;
2285
+ };
2286
+ postgres: {
2287
+ executeQuery: (params: VoltOpsPostgresExecuteParams) => Promise<VoltOpsActionExecutionResult>;
2288
+ };
2192
2289
  };
2193
2290
  interface VoltOpsEvalsApi {
2194
2291
  runs: {
@@ -2626,6 +2723,16 @@ declare class VoltOpsActionsClient {
2626
2723
  addMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2627
2724
  removeMemberRole: (params: VoltOpsDiscordMemberRoleParams) => Promise<VoltOpsActionExecutionResult>;
2628
2725
  };
2726
+ readonly gmail: {
2727
+ sendEmail: (params: VoltOpsGmailSendEmailParams) => Promise<VoltOpsActionExecutionResult>;
2728
+ replyToEmail: (params: VoltOpsGmailReplyParams) => Promise<VoltOpsActionExecutionResult>;
2729
+ searchEmail: (params: VoltOpsGmailSearchParams) => Promise<VoltOpsActionExecutionResult>;
2730
+ getEmail: (params: VoltOpsGmailGetEmailParams) => Promise<VoltOpsActionExecutionResult>;
2731
+ getThread: (params: VoltOpsGmailGetThreadParams) => Promise<VoltOpsActionExecutionResult>;
2732
+ };
2733
+ readonly postgres: {
2734
+ executeQuery: (params: VoltOpsPostgresExecuteParams) => Promise<VoltOpsActionExecutionResult>;
2735
+ };
2629
2736
  constructor(transport: VoltOpsActionsTransport, options?: {
2630
2737
  useProjectEndpoint?: boolean;
2631
2738
  });
@@ -2641,6 +2748,12 @@ declare class VoltOpsActionsClient {
2641
2748
  private deleteSlackMessage;
2642
2749
  private searchSlackMessages;
2643
2750
  private executeSlackAction;
2751
+ private sendGmailEmail;
2752
+ private replyGmailEmail;
2753
+ private searchGmailEmails;
2754
+ private getGmailEmail;
2755
+ private getGmailThread;
2756
+ private executePostgresQuery;
2644
2757
  private sendDiscordMessage;
2645
2758
  private sendDiscordWebhookMessage;
2646
2759
  private deleteDiscordMessage;
@@ -2667,6 +2780,8 @@ declare class VoltOpsActionsClient {
2667
2780
  private ensureAirtableCredential;
2668
2781
  private ensureSlackCredential;
2669
2782
  private ensureDiscordCredential;
2783
+ private ensureGmailCredential;
2784
+ private ensurePostgresCredential;
2670
2785
  private normalizeCredentialMetadata;
2671
2786
  private normalizeIdentifier;
2672
2787
  private ensureRecord;
@@ -2674,6 +2789,12 @@ declare class VoltOpsActionsClient {
2674
2789
  private sanitizeSortArray;
2675
2790
  private normalizePositiveInteger;
2676
2791
  private trimString;
2792
+ private normalizeEmailList;
2793
+ private normalizeGmailBodyType;
2794
+ private normalizeGmailFormat;
2795
+ private normalizeGmailAttachments;
2796
+ private buildGmailSendInput;
2797
+ private executeGmailAction;
2677
2798
  private postActionExecution;
2678
2799
  private unwrapActionResponse;
2679
2800
  private mapActionExecution;