@credal/actions 0.2.77 → 0.2.81
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/actions/actionMapper.js +69 -1
- package/dist/actions/autogen/templates.d.ts +11 -0
- package/dist/actions/autogen/templates.js +832 -16
- package/dist/actions/autogen/types.d.ts +765 -20
- package/dist/actions/autogen/types.js +249 -8
- package/dist/actions/providers/confluence/updatePage.js +14 -15
- package/dist/actions/providers/generic/fillTemplateAction.d.ts +7 -0
- package/dist/actions/providers/generic/fillTemplateAction.js +18 -0
- package/dist/actions/providers/generic/genericApiCall.d.ts +3 -0
- package/dist/actions/providers/generic/genericApiCall.js +38 -0
- package/dist/actions/providers/google-oauth/editAGoogleCalendarEvent.d.ts +3 -0
- package/dist/actions/providers/google-oauth/editAGoogleCalendarEvent.js +57 -0
- package/dist/actions/providers/google-oauth/getDriveContentById.d.ts +3 -0
- package/dist/actions/providers/google-oauth/getDriveContentById.js +161 -0
- package/dist/actions/providers/google-oauth/queryGoogleBigQuery.d.ts +3 -0
- package/dist/actions/providers/google-oauth/queryGoogleBigQuery.js +135 -0
- package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.js +47 -0
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.js +110 -0
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.js +78 -0
- package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.d.ts +15 -0
- package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.js +129 -0
- package/dist/actions/providers/googlemail/sendGmail.js +69 -5
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +3 -0
- package/dist/actions/providers/googlemaps/nearbysearch.js +96 -0
- package/dist/actions/providers/hubspot/getCompanies.d.ts +3 -0
- package/dist/actions/providers/hubspot/getCompanies.js +75 -0
- package/dist/actions/providers/hubspot/getCompanyDetails.d.ts +3 -0
- package/dist/actions/providers/hubspot/getCompanyDetails.js +73 -0
- package/dist/actions/providers/hubspot/getContactDetails.d.ts +3 -0
- package/dist/actions/providers/hubspot/getContactDetails.js +74 -0
- package/dist/actions/providers/hubspot/getContacts.d.ts +3 -0
- package/dist/actions/providers/hubspot/getContacts.js +76 -0
- package/dist/actions/providers/hubspot/getDealDetails.d.ts +3 -0
- package/dist/actions/providers/hubspot/getDealDetails.js +68 -0
- package/dist/actions/providers/hubspot/getDeals.d.ts +3 -0
- package/dist/actions/providers/hubspot/getDeals.js +60 -0
- package/dist/actions/providers/hubspot/getTicketDetails.d.ts +3 -0
- package/dist/actions/providers/hubspot/getTicketDetails.js +64 -0
- package/dist/actions/providers/hubspot/getTickets.d.ts +3 -0
- package/dist/actions/providers/hubspot/getTickets.js +59 -0
- package/dist/actions/providers/resend/sendEmailHtml.d.ts +3 -0
- package/dist/actions/providers/resend/sendEmailHtml.js +37 -0
- package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.d.ts +3 -0
- package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.js +154 -0
- package/dist/actions/providers/x/scrapeTweetDataWithNitter.d.ts +3 -0
- package/dist/actions/providers/x/scrapeTweetDataWithNitter.js +45 -0
- package/dist/actions/providers/zendesk/addCommentToTicket.js +27 -13
- package/package.json +1 -1
- package/dist/actions/providers/jamf/types.d.ts +0 -8
- package/dist/actions/providers/jamf/types.js +0 -7
|
@@ -603,6 +603,10 @@ export const slackSendMessageDefinition = {
|
|
|
603
603
|
type: "string",
|
|
604
604
|
description: "The error that occurred if the email was not sent successfully",
|
|
605
605
|
},
|
|
606
|
+
messageId: {
|
|
607
|
+
type: "string",
|
|
608
|
+
description: "The ID of the message that was sent",
|
|
609
|
+
},
|
|
606
610
|
},
|
|
607
611
|
},
|
|
608
612
|
name: "sendMessage",
|
|
@@ -2511,7 +2515,7 @@ export const zendeskAddCommentToTicketDefinition = {
|
|
|
2511
2515
|
scopes: [],
|
|
2512
2516
|
parameters: {
|
|
2513
2517
|
type: "object",
|
|
2514
|
-
required: ["ticketId", "subdomain", "
|
|
2518
|
+
required: ["ticketId", "subdomain", "body"],
|
|
2515
2519
|
properties: {
|
|
2516
2520
|
ticketId: {
|
|
2517
2521
|
type: "string",
|
|
@@ -2521,20 +2525,27 @@ export const zendeskAddCommentToTicketDefinition = {
|
|
|
2521
2525
|
type: "string",
|
|
2522
2526
|
description: "The subdomain of the Zendesk account",
|
|
2523
2527
|
},
|
|
2524
|
-
|
|
2525
|
-
type: "
|
|
2526
|
-
description: "The
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2528
|
+
body: {
|
|
2529
|
+
type: "string",
|
|
2530
|
+
description: "The body of the comment",
|
|
2531
|
+
},
|
|
2532
|
+
public: {
|
|
2533
|
+
type: "boolean",
|
|
2534
|
+
description: "Whether the comment should be public (defaults to true)",
|
|
2535
|
+
},
|
|
2536
|
+
},
|
|
2537
|
+
},
|
|
2538
|
+
output: {
|
|
2539
|
+
type: "object",
|
|
2540
|
+
required: ["success"],
|
|
2541
|
+
properties: {
|
|
2542
|
+
success: {
|
|
2543
|
+
type: "boolean",
|
|
2544
|
+
description: "Whether the comment was successfully added",
|
|
2545
|
+
},
|
|
2546
|
+
ticketUrl: {
|
|
2547
|
+
type: "string",
|
|
2548
|
+
description: "The URL to view the ticket",
|
|
2538
2549
|
},
|
|
2539
2550
|
},
|
|
2540
2551
|
},
|
|
@@ -3090,6 +3101,44 @@ export const resendSendEmailDefinition = {
|
|
|
3090
3101
|
name: "sendEmail",
|
|
3091
3102
|
provider: "resend",
|
|
3092
3103
|
};
|
|
3104
|
+
export const resendSendEmailHtmlDefinition = {
|
|
3105
|
+
description: "Send an HTML email using Resend",
|
|
3106
|
+
scopes: [],
|
|
3107
|
+
parameters: {
|
|
3108
|
+
type: "object",
|
|
3109
|
+
required: ["to", "subject", "html"],
|
|
3110
|
+
properties: {
|
|
3111
|
+
to: {
|
|
3112
|
+
type: "string",
|
|
3113
|
+
description: "The email address to send the email to",
|
|
3114
|
+
},
|
|
3115
|
+
subject: {
|
|
3116
|
+
type: "string",
|
|
3117
|
+
description: "The subject of the email",
|
|
3118
|
+
},
|
|
3119
|
+
html: {
|
|
3120
|
+
type: "string",
|
|
3121
|
+
description: "The HTML content of the email",
|
|
3122
|
+
},
|
|
3123
|
+
},
|
|
3124
|
+
},
|
|
3125
|
+
output: {
|
|
3126
|
+
type: "object",
|
|
3127
|
+
required: ["success"],
|
|
3128
|
+
properties: {
|
|
3129
|
+
success: {
|
|
3130
|
+
type: "boolean",
|
|
3131
|
+
description: "Whether the email was sent successfully",
|
|
3132
|
+
},
|
|
3133
|
+
error: {
|
|
3134
|
+
type: "string",
|
|
3135
|
+
description: "The error that occurred if the email was not sent successfully",
|
|
3136
|
+
},
|
|
3137
|
+
},
|
|
3138
|
+
},
|
|
3139
|
+
name: "sendEmailHtml",
|
|
3140
|
+
provider: "resend",
|
|
3141
|
+
};
|
|
3093
3142
|
export const googleOauthCreateNewGoogleDocDefinition = {
|
|
3094
3143
|
description: "Create a new Google Docs document using OAuth authentication",
|
|
3095
3144
|
scopes: [],
|
|
@@ -4578,6 +4627,94 @@ export const googleOauthUpdateCalendarEventDefinition = {
|
|
|
4578
4627
|
name: "updateCalendarEvent",
|
|
4579
4628
|
provider: "googleOauth",
|
|
4580
4629
|
};
|
|
4630
|
+
export const googleOauthEditAGoogleCalendarEventDefinition = {
|
|
4631
|
+
description: "Edit an existing Google Calendar event using OAuth authentication",
|
|
4632
|
+
scopes: ["https://www.googleapis.com/auth/calendar"],
|
|
4633
|
+
parameters: {
|
|
4634
|
+
type: "object",
|
|
4635
|
+
required: ["calendarId", "eventId"],
|
|
4636
|
+
properties: {
|
|
4637
|
+
calendarId: {
|
|
4638
|
+
type: "string",
|
|
4639
|
+
description: "The ID of the calendar containing the event",
|
|
4640
|
+
},
|
|
4641
|
+
eventId: {
|
|
4642
|
+
type: "string",
|
|
4643
|
+
description: "The ID of the event to edit",
|
|
4644
|
+
},
|
|
4645
|
+
title: {
|
|
4646
|
+
type: "string",
|
|
4647
|
+
description: "The new title/summary of the event",
|
|
4648
|
+
},
|
|
4649
|
+
description: {
|
|
4650
|
+
type: "string",
|
|
4651
|
+
description: "The new description of the event",
|
|
4652
|
+
},
|
|
4653
|
+
start: {
|
|
4654
|
+
type: "string",
|
|
4655
|
+
description: "The new start date/time (RFC3339 timestamp)",
|
|
4656
|
+
},
|
|
4657
|
+
end: {
|
|
4658
|
+
type: "string",
|
|
4659
|
+
description: "The new end date/time (RFC3339 timestamp)",
|
|
4660
|
+
},
|
|
4661
|
+
location: {
|
|
4662
|
+
type: "string",
|
|
4663
|
+
description: "The new location of the event",
|
|
4664
|
+
},
|
|
4665
|
+
attendees: {
|
|
4666
|
+
type: "array",
|
|
4667
|
+
description: "The new list of attendees (replaces existing attendees)",
|
|
4668
|
+
items: {
|
|
4669
|
+
type: "string",
|
|
4670
|
+
description: "The email address of the attendee",
|
|
4671
|
+
},
|
|
4672
|
+
},
|
|
4673
|
+
status: {
|
|
4674
|
+
type: "string",
|
|
4675
|
+
description: "The new status of the event (confirmed, tentative, cancelled)",
|
|
4676
|
+
},
|
|
4677
|
+
organizer: {
|
|
4678
|
+
type: "object",
|
|
4679
|
+
description: "The new organizer of the event",
|
|
4680
|
+
properties: {
|
|
4681
|
+
email: {
|
|
4682
|
+
type: "string",
|
|
4683
|
+
description: "The organizer's email address",
|
|
4684
|
+
},
|
|
4685
|
+
displayName: {
|
|
4686
|
+
type: "string",
|
|
4687
|
+
description: "The organizer's display name",
|
|
4688
|
+
},
|
|
4689
|
+
},
|
|
4690
|
+
},
|
|
4691
|
+
},
|
|
4692
|
+
},
|
|
4693
|
+
output: {
|
|
4694
|
+
type: "object",
|
|
4695
|
+
required: ["success"],
|
|
4696
|
+
properties: {
|
|
4697
|
+
success: {
|
|
4698
|
+
type: "boolean",
|
|
4699
|
+
description: "Whether the event was edited successfully",
|
|
4700
|
+
},
|
|
4701
|
+
eventId: {
|
|
4702
|
+
type: "string",
|
|
4703
|
+
description: "The ID of the edited event",
|
|
4704
|
+
},
|
|
4705
|
+
eventUrl: {
|
|
4706
|
+
type: "string",
|
|
4707
|
+
description: "The URL to access the edited event",
|
|
4708
|
+
},
|
|
4709
|
+
error: {
|
|
4710
|
+
type: "string",
|
|
4711
|
+
description: "The error that occurred if the event was not edited successfully",
|
|
4712
|
+
},
|
|
4713
|
+
},
|
|
4714
|
+
},
|
|
4715
|
+
name: "editAGoogleCalendarEvent",
|
|
4716
|
+
provider: "googleOauth",
|
|
4717
|
+
};
|
|
4581
4718
|
export const googleOauthDeleteCalendarEventDefinition = {
|
|
4582
4719
|
description: "Delete an event from a Google Calendar using OAuth authentication",
|
|
4583
4720
|
scopes: ["https://www.googleapis.com/auth/calendar"],
|
|
@@ -7008,6 +7145,85 @@ export const googleOauthDeleteGroupMemberDefinition = {
|
|
|
7008
7145
|
name: "deleteGroupMember",
|
|
7009
7146
|
provider: "googleOauth",
|
|
7010
7147
|
};
|
|
7148
|
+
export const googleOauthQueryGoogleBigQueryDefinition = {
|
|
7149
|
+
description: "Execute read only SQL queries on Google BigQuery datasets",
|
|
7150
|
+
scopes: ["https://www.googleapis.com/auth/bigquery.readonly"],
|
|
7151
|
+
parameters: {
|
|
7152
|
+
type: "object",
|
|
7153
|
+
required: ["query", "projectId"],
|
|
7154
|
+
properties: {
|
|
7155
|
+
query: {
|
|
7156
|
+
type: "string",
|
|
7157
|
+
description: "The SQL query to execute in BigQuery",
|
|
7158
|
+
},
|
|
7159
|
+
projectId: {
|
|
7160
|
+
type: "string",
|
|
7161
|
+
description: "The Google Cloud Project ID. If not provided, will use the default project",
|
|
7162
|
+
},
|
|
7163
|
+
maxResults: {
|
|
7164
|
+
type: "number",
|
|
7165
|
+
description: "Maximum number of results to return. Defaults to 1000",
|
|
7166
|
+
},
|
|
7167
|
+
timeoutMs: {
|
|
7168
|
+
type: "number",
|
|
7169
|
+
description: "Timeout for the query in milliseconds. Defaults to 30000",
|
|
7170
|
+
},
|
|
7171
|
+
maximumBytesProcessed: {
|
|
7172
|
+
type: "string",
|
|
7173
|
+
description: "Maximum bytes to process for the query. Defaults to 500000000 (500MB). Use -1 for no limit",
|
|
7174
|
+
},
|
|
7175
|
+
},
|
|
7176
|
+
},
|
|
7177
|
+
output: {
|
|
7178
|
+
type: "object",
|
|
7179
|
+
required: ["success"],
|
|
7180
|
+
properties: {
|
|
7181
|
+
success: {
|
|
7182
|
+
type: "boolean",
|
|
7183
|
+
description: "Whether the query was executed successfully",
|
|
7184
|
+
},
|
|
7185
|
+
data: {
|
|
7186
|
+
type: "array",
|
|
7187
|
+
description: "The query results as an array of objects",
|
|
7188
|
+
items: {
|
|
7189
|
+
type: "object",
|
|
7190
|
+
description: "A row of data from the query result",
|
|
7191
|
+
},
|
|
7192
|
+
},
|
|
7193
|
+
totalRows: {
|
|
7194
|
+
type: "string",
|
|
7195
|
+
description: "Total number of rows in the result set",
|
|
7196
|
+
},
|
|
7197
|
+
schema: {
|
|
7198
|
+
type: "array",
|
|
7199
|
+
description: "Schema information for the result columns",
|
|
7200
|
+
items: {
|
|
7201
|
+
type: "object",
|
|
7202
|
+
properties: {
|
|
7203
|
+
name: {
|
|
7204
|
+
type: "string",
|
|
7205
|
+
description: "Column name",
|
|
7206
|
+
},
|
|
7207
|
+
type: {
|
|
7208
|
+
type: "string",
|
|
7209
|
+
description: "Column data type",
|
|
7210
|
+
},
|
|
7211
|
+
mode: {
|
|
7212
|
+
type: "string",
|
|
7213
|
+
description: "Column mode (NULLABLE, REQUIRED, REPEATED)",
|
|
7214
|
+
},
|
|
7215
|
+
},
|
|
7216
|
+
},
|
|
7217
|
+
},
|
|
7218
|
+
error: {
|
|
7219
|
+
type: "string",
|
|
7220
|
+
description: "Error message if query failed",
|
|
7221
|
+
},
|
|
7222
|
+
},
|
|
7223
|
+
},
|
|
7224
|
+
name: "queryGoogleBigQuery",
|
|
7225
|
+
provider: "googleOauth",
|
|
7226
|
+
};
|
|
7011
7227
|
export const googlemailSearchGmailMessagesDefinition = {
|
|
7012
7228
|
description: "Search Gmail messages in a user's inbox using a query string.",
|
|
7013
7229
|
scopes: ["https://www.googleapis.com/auth/gmail.readonly"],
|
|
@@ -7194,7 +7410,11 @@ export const googlemailSendGmailDefinition = {
|
|
|
7194
7410
|
},
|
|
7195
7411
|
content: {
|
|
7196
7412
|
type: "string",
|
|
7197
|
-
description: "Email body content
|
|
7413
|
+
description: "Email body content in HTML format",
|
|
7414
|
+
},
|
|
7415
|
+
threadId: {
|
|
7416
|
+
type: "string",
|
|
7417
|
+
description: "Optional thread ID to reply to an existing email thread",
|
|
7198
7418
|
},
|
|
7199
7419
|
},
|
|
7200
7420
|
},
|
|
@@ -11449,3 +11669,599 @@ export const linearGetTeamsDefinition = {
|
|
|
11449
11669
|
name: "getTeams",
|
|
11450
11670
|
provider: "linear",
|
|
11451
11671
|
};
|
|
11672
|
+
export const hubspotGetContactsDefinition = {
|
|
11673
|
+
description: "List or search HubSpot contacts by optional query",
|
|
11674
|
+
scopes: ["oauth crm.objects.contacts.read"],
|
|
11675
|
+
parameters: {
|
|
11676
|
+
type: "object",
|
|
11677
|
+
required: [],
|
|
11678
|
+
properties: {
|
|
11679
|
+
query: {
|
|
11680
|
+
type: "string",
|
|
11681
|
+
description: "Optional search query to filter contacts by name, email, or other properties",
|
|
11682
|
+
},
|
|
11683
|
+
limit: {
|
|
11684
|
+
type: "number",
|
|
11685
|
+
description: "Maximum number of contacts to return (default 100, max 100)",
|
|
11686
|
+
},
|
|
11687
|
+
},
|
|
11688
|
+
},
|
|
11689
|
+
output: {
|
|
11690
|
+
type: "object",
|
|
11691
|
+
required: ["success"],
|
|
11692
|
+
properties: {
|
|
11693
|
+
success: {
|
|
11694
|
+
type: "boolean",
|
|
11695
|
+
description: "Whether the operation was successful",
|
|
11696
|
+
},
|
|
11697
|
+
error: {
|
|
11698
|
+
type: "string",
|
|
11699
|
+
description: "Error message if the operation failed",
|
|
11700
|
+
},
|
|
11701
|
+
contacts: {
|
|
11702
|
+
type: "array",
|
|
11703
|
+
description: "List of contacts matching the search criteria",
|
|
11704
|
+
items: {
|
|
11705
|
+
type: "object",
|
|
11706
|
+
properties: {
|
|
11707
|
+
id: {
|
|
11708
|
+
type: "string",
|
|
11709
|
+
description: "The contact ID",
|
|
11710
|
+
},
|
|
11711
|
+
email: {
|
|
11712
|
+
type: "string",
|
|
11713
|
+
description: "Contact email address",
|
|
11714
|
+
},
|
|
11715
|
+
firstname: {
|
|
11716
|
+
type: "string",
|
|
11717
|
+
description: "Contact first name",
|
|
11718
|
+
},
|
|
11719
|
+
lastname: {
|
|
11720
|
+
type: "string",
|
|
11721
|
+
description: "Contact last name",
|
|
11722
|
+
},
|
|
11723
|
+
createdate: {
|
|
11724
|
+
type: "string",
|
|
11725
|
+
description: "When the contact was created",
|
|
11726
|
+
},
|
|
11727
|
+
},
|
|
11728
|
+
},
|
|
11729
|
+
},
|
|
11730
|
+
},
|
|
11731
|
+
},
|
|
11732
|
+
name: "getContacts",
|
|
11733
|
+
provider: "hubspot",
|
|
11734
|
+
};
|
|
11735
|
+
export const hubspotGetContactDetailsDefinition = {
|
|
11736
|
+
description: "Get detailed information about a specific HubSpot contact",
|
|
11737
|
+
scopes: ["oauth crm.objects.contacts.read"],
|
|
11738
|
+
parameters: {
|
|
11739
|
+
type: "object",
|
|
11740
|
+
required: ["contactId"],
|
|
11741
|
+
properties: {
|
|
11742
|
+
contactId: {
|
|
11743
|
+
type: "string",
|
|
11744
|
+
description: "The ID of the HubSpot contact to retrieve",
|
|
11745
|
+
},
|
|
11746
|
+
},
|
|
11747
|
+
},
|
|
11748
|
+
output: {
|
|
11749
|
+
type: "object",
|
|
11750
|
+
required: ["success"],
|
|
11751
|
+
properties: {
|
|
11752
|
+
success: {
|
|
11753
|
+
type: "boolean",
|
|
11754
|
+
description: "Whether the operation was successful",
|
|
11755
|
+
},
|
|
11756
|
+
error: {
|
|
11757
|
+
type: "string",
|
|
11758
|
+
description: "Error message if the operation failed",
|
|
11759
|
+
},
|
|
11760
|
+
contact: {
|
|
11761
|
+
type: "object",
|
|
11762
|
+
description: "The contact details",
|
|
11763
|
+
properties: {
|
|
11764
|
+
id: {
|
|
11765
|
+
type: "string",
|
|
11766
|
+
description: "The contact ID",
|
|
11767
|
+
},
|
|
11768
|
+
email: {
|
|
11769
|
+
type: "string",
|
|
11770
|
+
description: "Contact email address",
|
|
11771
|
+
},
|
|
11772
|
+
firstname: {
|
|
11773
|
+
type: "string",
|
|
11774
|
+
description: "Contact first name",
|
|
11775
|
+
},
|
|
11776
|
+
lastname: {
|
|
11777
|
+
type: "string",
|
|
11778
|
+
description: "Contact last name",
|
|
11779
|
+
},
|
|
11780
|
+
company: {
|
|
11781
|
+
type: "string",
|
|
11782
|
+
description: "Contact company",
|
|
11783
|
+
},
|
|
11784
|
+
phone: {
|
|
11785
|
+
type: "string",
|
|
11786
|
+
description: "Contact phone number",
|
|
11787
|
+
},
|
|
11788
|
+
address: {
|
|
11789
|
+
type: "string",
|
|
11790
|
+
description: "Contact address",
|
|
11791
|
+
},
|
|
11792
|
+
city: {
|
|
11793
|
+
type: "string",
|
|
11794
|
+
description: "Contact city",
|
|
11795
|
+
},
|
|
11796
|
+
state: {
|
|
11797
|
+
type: "string",
|
|
11798
|
+
description: "Contact state",
|
|
11799
|
+
},
|
|
11800
|
+
zip: {
|
|
11801
|
+
type: "string",
|
|
11802
|
+
description: "Contact zip code",
|
|
11803
|
+
},
|
|
11804
|
+
country: {
|
|
11805
|
+
type: "string",
|
|
11806
|
+
description: "Contact country",
|
|
11807
|
+
},
|
|
11808
|
+
lifecyclestage: {
|
|
11809
|
+
type: "string",
|
|
11810
|
+
description: "Contact lifecycle stage",
|
|
11811
|
+
},
|
|
11812
|
+
leadstatus: {
|
|
11813
|
+
type: "string",
|
|
11814
|
+
description: "Contact lead status",
|
|
11815
|
+
},
|
|
11816
|
+
createdAt: {
|
|
11817
|
+
type: "string",
|
|
11818
|
+
description: "When the contact was created",
|
|
11819
|
+
},
|
|
11820
|
+
updatedAt: {
|
|
11821
|
+
type: "string",
|
|
11822
|
+
description: "When the contact was last updated",
|
|
11823
|
+
},
|
|
11824
|
+
archived: {
|
|
11825
|
+
type: "boolean",
|
|
11826
|
+
description: "Whether the contact is archived",
|
|
11827
|
+
},
|
|
11828
|
+
},
|
|
11829
|
+
},
|
|
11830
|
+
},
|
|
11831
|
+
},
|
|
11832
|
+
name: "getContactDetails",
|
|
11833
|
+
provider: "hubspot",
|
|
11834
|
+
};
|
|
11835
|
+
export const hubspotGetCompaniesDefinition = {
|
|
11836
|
+
description: "List or search HubSpot companies by optional query",
|
|
11837
|
+
scopes: ["oauth crm.objects.companies.read"],
|
|
11838
|
+
parameters: {
|
|
11839
|
+
type: "object",
|
|
11840
|
+
required: [],
|
|
11841
|
+
properties: {
|
|
11842
|
+
query: {
|
|
11843
|
+
type: "string",
|
|
11844
|
+
description: "Optional search query to filter companies by name, domain, or other properties",
|
|
11845
|
+
},
|
|
11846
|
+
limit: {
|
|
11847
|
+
type: "number",
|
|
11848
|
+
description: "Maximum number of companies to return (default 100, max 100)",
|
|
11849
|
+
},
|
|
11850
|
+
},
|
|
11851
|
+
},
|
|
11852
|
+
output: {
|
|
11853
|
+
type: "object",
|
|
11854
|
+
required: ["success"],
|
|
11855
|
+
properties: {
|
|
11856
|
+
success: {
|
|
11857
|
+
type: "boolean",
|
|
11858
|
+
description: "Whether the operation was successful",
|
|
11859
|
+
},
|
|
11860
|
+
error: {
|
|
11861
|
+
type: "string",
|
|
11862
|
+
description: "Error message if the operation failed",
|
|
11863
|
+
},
|
|
11864
|
+
companies: {
|
|
11865
|
+
type: "array",
|
|
11866
|
+
description: "List of companies matching the search criteria",
|
|
11867
|
+
items: {
|
|
11868
|
+
type: "object",
|
|
11869
|
+
properties: {
|
|
11870
|
+
id: {
|
|
11871
|
+
type: "string",
|
|
11872
|
+
description: "The company ID",
|
|
11873
|
+
},
|
|
11874
|
+
name: {
|
|
11875
|
+
type: "string",
|
|
11876
|
+
description: "Company name",
|
|
11877
|
+
},
|
|
11878
|
+
domain: {
|
|
11879
|
+
type: "string",
|
|
11880
|
+
description: "Company domain",
|
|
11881
|
+
},
|
|
11882
|
+
createdAt: {
|
|
11883
|
+
type: "string",
|
|
11884
|
+
description: "When the company was created",
|
|
11885
|
+
},
|
|
11886
|
+
},
|
|
11887
|
+
},
|
|
11888
|
+
},
|
|
11889
|
+
},
|
|
11890
|
+
},
|
|
11891
|
+
name: "getCompanies",
|
|
11892
|
+
provider: "hubspot",
|
|
11893
|
+
};
|
|
11894
|
+
export const hubspotGetCompanyDetailsDefinition = {
|
|
11895
|
+
description: "Get detailed information about a specific HubSpot company",
|
|
11896
|
+
scopes: ["oauth crm.objects.companies.read"],
|
|
11897
|
+
parameters: {
|
|
11898
|
+
type: "object",
|
|
11899
|
+
required: ["companyId"],
|
|
11900
|
+
properties: {
|
|
11901
|
+
companyId: {
|
|
11902
|
+
type: "string",
|
|
11903
|
+
description: "The ID of the HubSpot company to retrieve",
|
|
11904
|
+
},
|
|
11905
|
+
},
|
|
11906
|
+
},
|
|
11907
|
+
output: {
|
|
11908
|
+
type: "object",
|
|
11909
|
+
required: ["success"],
|
|
11910
|
+
properties: {
|
|
11911
|
+
success: {
|
|
11912
|
+
type: "boolean",
|
|
11913
|
+
description: "Whether the operation was successful",
|
|
11914
|
+
},
|
|
11915
|
+
error: {
|
|
11916
|
+
type: "string",
|
|
11917
|
+
description: "Error message if the operation failed",
|
|
11918
|
+
},
|
|
11919
|
+
company: {
|
|
11920
|
+
type: "object",
|
|
11921
|
+
description: "The company details",
|
|
11922
|
+
properties: {
|
|
11923
|
+
id: {
|
|
11924
|
+
type: "string",
|
|
11925
|
+
description: "The company ID",
|
|
11926
|
+
},
|
|
11927
|
+
name: {
|
|
11928
|
+
type: "string",
|
|
11929
|
+
description: "Company name",
|
|
11930
|
+
},
|
|
11931
|
+
domain: {
|
|
11932
|
+
type: "string",
|
|
11933
|
+
description: "Company domain",
|
|
11934
|
+
},
|
|
11935
|
+
industry: {
|
|
11936
|
+
type: "string",
|
|
11937
|
+
description: "Company industry",
|
|
11938
|
+
},
|
|
11939
|
+
phone: {
|
|
11940
|
+
type: "string",
|
|
11941
|
+
description: "Company phone number",
|
|
11942
|
+
},
|
|
11943
|
+
address: {
|
|
11944
|
+
type: "string",
|
|
11945
|
+
description: "Company address",
|
|
11946
|
+
},
|
|
11947
|
+
city: {
|
|
11948
|
+
type: "string",
|
|
11949
|
+
description: "Company city",
|
|
11950
|
+
},
|
|
11951
|
+
state: {
|
|
11952
|
+
type: "string",
|
|
11953
|
+
description: "Company state",
|
|
11954
|
+
},
|
|
11955
|
+
zip: {
|
|
11956
|
+
type: "string",
|
|
11957
|
+
description: "Company zip code",
|
|
11958
|
+
},
|
|
11959
|
+
country: {
|
|
11960
|
+
type: "string",
|
|
11961
|
+
description: "Company country",
|
|
11962
|
+
},
|
|
11963
|
+
website: {
|
|
11964
|
+
type: "string",
|
|
11965
|
+
description: "Company website",
|
|
11966
|
+
},
|
|
11967
|
+
createdAt: {
|
|
11968
|
+
type: "string",
|
|
11969
|
+
description: "When the company was created",
|
|
11970
|
+
},
|
|
11971
|
+
updatedAt: {
|
|
11972
|
+
type: "string",
|
|
11973
|
+
description: "When the company was last updated",
|
|
11974
|
+
},
|
|
11975
|
+
archived: {
|
|
11976
|
+
type: "boolean",
|
|
11977
|
+
description: "Whether the company is archived",
|
|
11978
|
+
},
|
|
11979
|
+
},
|
|
11980
|
+
},
|
|
11981
|
+
},
|
|
11982
|
+
},
|
|
11983
|
+
name: "getCompanyDetails",
|
|
11984
|
+
provider: "hubspot",
|
|
11985
|
+
};
|
|
11986
|
+
export const hubspotGetDealsDefinition = {
|
|
11987
|
+
description: "List or search HubSpot deals by optional query",
|
|
11988
|
+
scopes: ["oauth crm.objects.deals.read"],
|
|
11989
|
+
parameters: {
|
|
11990
|
+
type: "object",
|
|
11991
|
+
required: [],
|
|
11992
|
+
properties: {
|
|
11993
|
+
query: {
|
|
11994
|
+
type: "string",
|
|
11995
|
+
description: "Optional search query to filter deals by name, stage, or other properties",
|
|
11996
|
+
},
|
|
11997
|
+
limit: {
|
|
11998
|
+
type: "number",
|
|
11999
|
+
description: "Maximum number of deals to return (default 100, max 100)",
|
|
12000
|
+
},
|
|
12001
|
+
},
|
|
12002
|
+
},
|
|
12003
|
+
output: {
|
|
12004
|
+
type: "object",
|
|
12005
|
+
required: ["success"],
|
|
12006
|
+
properties: {
|
|
12007
|
+
success: {
|
|
12008
|
+
type: "boolean",
|
|
12009
|
+
description: "Whether the operation was successful",
|
|
12010
|
+
},
|
|
12011
|
+
error: {
|
|
12012
|
+
type: "string",
|
|
12013
|
+
description: "Error message if the operation failed",
|
|
12014
|
+
},
|
|
12015
|
+
deals: {
|
|
12016
|
+
type: "array",
|
|
12017
|
+
description: "List of deals matching the search criteria",
|
|
12018
|
+
items: {
|
|
12019
|
+
type: "object",
|
|
12020
|
+
properties: {
|
|
12021
|
+
id: {
|
|
12022
|
+
type: "string",
|
|
12023
|
+
description: "The deal ID",
|
|
12024
|
+
},
|
|
12025
|
+
dealname: {
|
|
12026
|
+
type: "string",
|
|
12027
|
+
description: "Deal name",
|
|
12028
|
+
},
|
|
12029
|
+
amount: {
|
|
12030
|
+
type: "string",
|
|
12031
|
+
description: "Deal amount",
|
|
12032
|
+
},
|
|
12033
|
+
dealstage: {
|
|
12034
|
+
type: "string",
|
|
12035
|
+
description: "Deal stage",
|
|
12036
|
+
},
|
|
12037
|
+
createdAt: {
|
|
12038
|
+
type: "string",
|
|
12039
|
+
description: "When the deal was created",
|
|
12040
|
+
},
|
|
12041
|
+
},
|
|
12042
|
+
},
|
|
12043
|
+
},
|
|
12044
|
+
},
|
|
12045
|
+
},
|
|
12046
|
+
name: "getDeals",
|
|
12047
|
+
provider: "hubspot",
|
|
12048
|
+
};
|
|
12049
|
+
export const hubspotGetDealDetailsDefinition = {
|
|
12050
|
+
description: "Get detailed information about a specific HubSpot deal",
|
|
12051
|
+
scopes: ["oauth crm.objects.deals.read"],
|
|
12052
|
+
parameters: {
|
|
12053
|
+
type: "object",
|
|
12054
|
+
required: ["dealId"],
|
|
12055
|
+
properties: {
|
|
12056
|
+
dealId: {
|
|
12057
|
+
type: "string",
|
|
12058
|
+
description: "The ID of the HubSpot deal to retrieve",
|
|
12059
|
+
},
|
|
12060
|
+
},
|
|
12061
|
+
},
|
|
12062
|
+
output: {
|
|
12063
|
+
type: "object",
|
|
12064
|
+
required: ["success"],
|
|
12065
|
+
properties: {
|
|
12066
|
+
success: {
|
|
12067
|
+
type: "boolean",
|
|
12068
|
+
description: "Whether the operation was successful",
|
|
12069
|
+
},
|
|
12070
|
+
error: {
|
|
12071
|
+
type: "string",
|
|
12072
|
+
description: "Error message if the operation failed",
|
|
12073
|
+
},
|
|
12074
|
+
deal: {
|
|
12075
|
+
type: "object",
|
|
12076
|
+
description: "The deal details",
|
|
12077
|
+
properties: {
|
|
12078
|
+
id: {
|
|
12079
|
+
type: "string",
|
|
12080
|
+
description: "The deal ID",
|
|
12081
|
+
},
|
|
12082
|
+
dealname: {
|
|
12083
|
+
type: "string",
|
|
12084
|
+
description: "Deal name",
|
|
12085
|
+
},
|
|
12086
|
+
description: {
|
|
12087
|
+
type: "string",
|
|
12088
|
+
description: "Description of deal",
|
|
12089
|
+
},
|
|
12090
|
+
amount: {
|
|
12091
|
+
type: "string",
|
|
12092
|
+
description: "Deal amount",
|
|
12093
|
+
},
|
|
12094
|
+
dealstage: {
|
|
12095
|
+
type: "string",
|
|
12096
|
+
description: "Deal stage",
|
|
12097
|
+
},
|
|
12098
|
+
pipeline: {
|
|
12099
|
+
type: "string",
|
|
12100
|
+
description: "Pipeline",
|
|
12101
|
+
},
|
|
12102
|
+
dealtype: {
|
|
12103
|
+
type: "string",
|
|
12104
|
+
description: "Deal type",
|
|
12105
|
+
},
|
|
12106
|
+
closedate: {
|
|
12107
|
+
type: "string",
|
|
12108
|
+
description: "Close date",
|
|
12109
|
+
},
|
|
12110
|
+
createdAt: {
|
|
12111
|
+
type: "string",
|
|
12112
|
+
description: "When the deal was created",
|
|
12113
|
+
},
|
|
12114
|
+
updatedAt: {
|
|
12115
|
+
type: "string",
|
|
12116
|
+
description: "When the deal was last updated",
|
|
12117
|
+
},
|
|
12118
|
+
ownerId: {
|
|
12119
|
+
type: "string",
|
|
12120
|
+
description: "Deal owner ID",
|
|
12121
|
+
},
|
|
12122
|
+
archived: {
|
|
12123
|
+
type: "boolean",
|
|
12124
|
+
description: "Whether the deal is archived",
|
|
12125
|
+
},
|
|
12126
|
+
},
|
|
12127
|
+
},
|
|
12128
|
+
},
|
|
12129
|
+
},
|
|
12130
|
+
name: "getDealDetails",
|
|
12131
|
+
provider: "hubspot",
|
|
12132
|
+
};
|
|
12133
|
+
export const hubspotGetTicketsDefinition = {
|
|
12134
|
+
description: "List or search HubSpot tickets by optional query",
|
|
12135
|
+
scopes: ["oauth crm.objects.tickets.read"],
|
|
12136
|
+
parameters: {
|
|
12137
|
+
type: "object",
|
|
12138
|
+
required: [],
|
|
12139
|
+
properties: {
|
|
12140
|
+
query: {
|
|
12141
|
+
type: "string",
|
|
12142
|
+
description: "Optional search query to filter tickets by subject, status, or other properties",
|
|
12143
|
+
},
|
|
12144
|
+
limit: {
|
|
12145
|
+
type: "number",
|
|
12146
|
+
description: "Maximum number of tickets to return (default 100, max 100)",
|
|
12147
|
+
},
|
|
12148
|
+
},
|
|
12149
|
+
},
|
|
12150
|
+
output: {
|
|
12151
|
+
type: "object",
|
|
12152
|
+
required: ["success"],
|
|
12153
|
+
properties: {
|
|
12154
|
+
success: {
|
|
12155
|
+
type: "boolean",
|
|
12156
|
+
description: "Whether the operation was successful",
|
|
12157
|
+
},
|
|
12158
|
+
error: {
|
|
12159
|
+
type: "string",
|
|
12160
|
+
description: "Error message if the operation failed",
|
|
12161
|
+
},
|
|
12162
|
+
tickets: {
|
|
12163
|
+
type: "array",
|
|
12164
|
+
description: "List of tickets matching the search criteria",
|
|
12165
|
+
items: {
|
|
12166
|
+
type: "object",
|
|
12167
|
+
properties: {
|
|
12168
|
+
id: {
|
|
12169
|
+
type: "string",
|
|
12170
|
+
description: "The ticket ID",
|
|
12171
|
+
},
|
|
12172
|
+
subject: {
|
|
12173
|
+
type: "string",
|
|
12174
|
+
description: "Ticket subject",
|
|
12175
|
+
},
|
|
12176
|
+
status: {
|
|
12177
|
+
type: "string",
|
|
12178
|
+
description: "Ticket status",
|
|
12179
|
+
},
|
|
12180
|
+
createdAt: {
|
|
12181
|
+
type: "string",
|
|
12182
|
+
description: "When the ticket was created",
|
|
12183
|
+
},
|
|
12184
|
+
},
|
|
12185
|
+
},
|
|
12186
|
+
},
|
|
12187
|
+
},
|
|
12188
|
+
},
|
|
12189
|
+
name: "getTickets",
|
|
12190
|
+
provider: "hubspot",
|
|
12191
|
+
};
|
|
12192
|
+
export const hubspotGetTicketDetailsDefinition = {
|
|
12193
|
+
description: "Get detailed information about a specific HubSpot ticket",
|
|
12194
|
+
scopes: ["oauth crm.objects.tickets.read"],
|
|
12195
|
+
parameters: {
|
|
12196
|
+
type: "object",
|
|
12197
|
+
required: ["ticketId"],
|
|
12198
|
+
properties: {
|
|
12199
|
+
ticketId: {
|
|
12200
|
+
type: "string",
|
|
12201
|
+
description: "The ID of the HubSpot ticket to retrieve",
|
|
12202
|
+
},
|
|
12203
|
+
},
|
|
12204
|
+
},
|
|
12205
|
+
output: {
|
|
12206
|
+
type: "object",
|
|
12207
|
+
required: ["success"],
|
|
12208
|
+
properties: {
|
|
12209
|
+
success: {
|
|
12210
|
+
type: "boolean",
|
|
12211
|
+
description: "Whether the operation was successful",
|
|
12212
|
+
},
|
|
12213
|
+
error: {
|
|
12214
|
+
type: "string",
|
|
12215
|
+
description: "Error message if the operation failed",
|
|
12216
|
+
},
|
|
12217
|
+
ticket: {
|
|
12218
|
+
type: "object",
|
|
12219
|
+
description: "The ticket details",
|
|
12220
|
+
properties: {
|
|
12221
|
+
id: {
|
|
12222
|
+
type: "string",
|
|
12223
|
+
description: "The ticket ID",
|
|
12224
|
+
},
|
|
12225
|
+
subject: {
|
|
12226
|
+
type: "string",
|
|
12227
|
+
description: "Ticket subject",
|
|
12228
|
+
},
|
|
12229
|
+
content: {
|
|
12230
|
+
type: "string",
|
|
12231
|
+
description: "Ticket content/description",
|
|
12232
|
+
},
|
|
12233
|
+
pipeline: {
|
|
12234
|
+
type: "string",
|
|
12235
|
+
description: "Pipeline",
|
|
12236
|
+
},
|
|
12237
|
+
status: {
|
|
12238
|
+
type: "string",
|
|
12239
|
+
description: "Ticket status",
|
|
12240
|
+
},
|
|
12241
|
+
priority: {
|
|
12242
|
+
type: "string",
|
|
12243
|
+
description: "Ticket priority",
|
|
12244
|
+
},
|
|
12245
|
+
createdAt: {
|
|
12246
|
+
type: "string",
|
|
12247
|
+
description: "When the ticket was created",
|
|
12248
|
+
},
|
|
12249
|
+
updatedAt: {
|
|
12250
|
+
type: "string",
|
|
12251
|
+
description: "When the ticket was last updated",
|
|
12252
|
+
},
|
|
12253
|
+
ownerId: {
|
|
12254
|
+
type: "string",
|
|
12255
|
+
description: "Ticket owner id",
|
|
12256
|
+
},
|
|
12257
|
+
archived: {
|
|
12258
|
+
type: "boolean",
|
|
12259
|
+
description: "Whether the ticket is archived",
|
|
12260
|
+
},
|
|
12261
|
+
},
|
|
12262
|
+
},
|
|
12263
|
+
},
|
|
12264
|
+
},
|
|
12265
|
+
name: "getTicketDetails",
|
|
12266
|
+
provider: "hubspot",
|
|
12267
|
+
};
|