@credal/actions 0.2.76 → 0.2.79
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 +63 -1
- package/dist/actions/autogen/templates.d.ts +10 -0
- package/dist/actions/autogen/templates.js +826 -18
- package/dist/actions/autogen/types.d.ts +753 -20
- package/dist/actions/autogen/types.js +242 -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 +8 -3
- 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/jira/getJiraIssuesByQuery.js +5 -4
- 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",
|
|
@@ -1299,7 +1303,18 @@ export const jiraGetJiraIssuesByQueryDefinition = {
|
|
|
1299
1303
|
description: "The retrieved Jira issues",
|
|
1300
1304
|
items: {
|
|
1301
1305
|
type: "object",
|
|
1302
|
-
required: [
|
|
1306
|
+
required: [
|
|
1307
|
+
"id",
|
|
1308
|
+
"key",
|
|
1309
|
+
"summary",
|
|
1310
|
+
"description",
|
|
1311
|
+
"project",
|
|
1312
|
+
"issueType",
|
|
1313
|
+
"status",
|
|
1314
|
+
"created",
|
|
1315
|
+
"updated",
|
|
1316
|
+
"url",
|
|
1317
|
+
],
|
|
1303
1318
|
properties: {
|
|
1304
1319
|
id: {
|
|
1305
1320
|
type: "string",
|
|
@@ -1317,6 +1332,10 @@ export const jiraGetJiraIssuesByQueryDefinition = {
|
|
|
1317
1332
|
type: "string",
|
|
1318
1333
|
description: "Plain text description",
|
|
1319
1334
|
},
|
|
1335
|
+
url: {
|
|
1336
|
+
type: "string",
|
|
1337
|
+
description: "The web url of the Jira ticket",
|
|
1338
|
+
},
|
|
1320
1339
|
project: {
|
|
1321
1340
|
type: "object",
|
|
1322
1341
|
properties: {
|
|
@@ -1925,7 +1944,18 @@ export const jiraOrgGetJiraIssuesByQueryDefinition = {
|
|
|
1925
1944
|
description: "The retrieved Jira issues",
|
|
1926
1945
|
items: {
|
|
1927
1946
|
type: "object",
|
|
1928
|
-
required: [
|
|
1947
|
+
required: [
|
|
1948
|
+
"id",
|
|
1949
|
+
"key",
|
|
1950
|
+
"summary",
|
|
1951
|
+
"description",
|
|
1952
|
+
"project",
|
|
1953
|
+
"issueType",
|
|
1954
|
+
"status",
|
|
1955
|
+
"created",
|
|
1956
|
+
"updated",
|
|
1957
|
+
"url",
|
|
1958
|
+
],
|
|
1929
1959
|
properties: {
|
|
1930
1960
|
id: {
|
|
1931
1961
|
type: "string",
|
|
@@ -1943,6 +1973,10 @@ export const jiraOrgGetJiraIssuesByQueryDefinition = {
|
|
|
1943
1973
|
type: "string",
|
|
1944
1974
|
description: "Plain text description",
|
|
1945
1975
|
},
|
|
1976
|
+
url: {
|
|
1977
|
+
type: "string",
|
|
1978
|
+
description: "The web url of the Jira ticket",
|
|
1979
|
+
},
|
|
1946
1980
|
project: {
|
|
1947
1981
|
type: "object",
|
|
1948
1982
|
properties: {
|
|
@@ -2481,7 +2515,7 @@ export const zendeskAddCommentToTicketDefinition = {
|
|
|
2481
2515
|
scopes: [],
|
|
2482
2516
|
parameters: {
|
|
2483
2517
|
type: "object",
|
|
2484
|
-
required: ["ticketId", "subdomain", "
|
|
2518
|
+
required: ["ticketId", "subdomain", "body"],
|
|
2485
2519
|
properties: {
|
|
2486
2520
|
ticketId: {
|
|
2487
2521
|
type: "string",
|
|
@@ -2491,20 +2525,27 @@ export const zendeskAddCommentToTicketDefinition = {
|
|
|
2491
2525
|
type: "string",
|
|
2492
2526
|
description: "The subdomain of the Zendesk account",
|
|
2493
2527
|
},
|
|
2494
|
-
|
|
2495
|
-
type: "
|
|
2496
|
-
description: "The
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
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",
|
|
2508
2549
|
},
|
|
2509
2550
|
},
|
|
2510
2551
|
},
|
|
@@ -4548,6 +4589,94 @@ export const googleOauthUpdateCalendarEventDefinition = {
|
|
|
4548
4589
|
name: "updateCalendarEvent",
|
|
4549
4590
|
provider: "googleOauth",
|
|
4550
4591
|
};
|
|
4592
|
+
export const googleOauthEditAGoogleCalendarEventDefinition = {
|
|
4593
|
+
description: "Edit an existing Google Calendar event using OAuth authentication",
|
|
4594
|
+
scopes: ["https://www.googleapis.com/auth/calendar"],
|
|
4595
|
+
parameters: {
|
|
4596
|
+
type: "object",
|
|
4597
|
+
required: ["calendarId", "eventId"],
|
|
4598
|
+
properties: {
|
|
4599
|
+
calendarId: {
|
|
4600
|
+
type: "string",
|
|
4601
|
+
description: "The ID of the calendar containing the event",
|
|
4602
|
+
},
|
|
4603
|
+
eventId: {
|
|
4604
|
+
type: "string",
|
|
4605
|
+
description: "The ID of the event to edit",
|
|
4606
|
+
},
|
|
4607
|
+
title: {
|
|
4608
|
+
type: "string",
|
|
4609
|
+
description: "The new title/summary of the event",
|
|
4610
|
+
},
|
|
4611
|
+
description: {
|
|
4612
|
+
type: "string",
|
|
4613
|
+
description: "The new description of the event",
|
|
4614
|
+
},
|
|
4615
|
+
start: {
|
|
4616
|
+
type: "string",
|
|
4617
|
+
description: "The new start date/time (RFC3339 timestamp)",
|
|
4618
|
+
},
|
|
4619
|
+
end: {
|
|
4620
|
+
type: "string",
|
|
4621
|
+
description: "The new end date/time (RFC3339 timestamp)",
|
|
4622
|
+
},
|
|
4623
|
+
location: {
|
|
4624
|
+
type: "string",
|
|
4625
|
+
description: "The new location of the event",
|
|
4626
|
+
},
|
|
4627
|
+
attendees: {
|
|
4628
|
+
type: "array",
|
|
4629
|
+
description: "The new list of attendees (replaces existing attendees)",
|
|
4630
|
+
items: {
|
|
4631
|
+
type: "string",
|
|
4632
|
+
description: "The email address of the attendee",
|
|
4633
|
+
},
|
|
4634
|
+
},
|
|
4635
|
+
status: {
|
|
4636
|
+
type: "string",
|
|
4637
|
+
description: "The new status of the event (confirmed, tentative, cancelled)",
|
|
4638
|
+
},
|
|
4639
|
+
organizer: {
|
|
4640
|
+
type: "object",
|
|
4641
|
+
description: "The new organizer of the event",
|
|
4642
|
+
properties: {
|
|
4643
|
+
email: {
|
|
4644
|
+
type: "string",
|
|
4645
|
+
description: "The organizer's email address",
|
|
4646
|
+
},
|
|
4647
|
+
displayName: {
|
|
4648
|
+
type: "string",
|
|
4649
|
+
description: "The organizer's display name",
|
|
4650
|
+
},
|
|
4651
|
+
},
|
|
4652
|
+
},
|
|
4653
|
+
},
|
|
4654
|
+
},
|
|
4655
|
+
output: {
|
|
4656
|
+
type: "object",
|
|
4657
|
+
required: ["success"],
|
|
4658
|
+
properties: {
|
|
4659
|
+
success: {
|
|
4660
|
+
type: "boolean",
|
|
4661
|
+
description: "Whether the event was edited successfully",
|
|
4662
|
+
},
|
|
4663
|
+
eventId: {
|
|
4664
|
+
type: "string",
|
|
4665
|
+
description: "The ID of the edited event",
|
|
4666
|
+
},
|
|
4667
|
+
eventUrl: {
|
|
4668
|
+
type: "string",
|
|
4669
|
+
description: "The URL to access the edited event",
|
|
4670
|
+
},
|
|
4671
|
+
error: {
|
|
4672
|
+
type: "string",
|
|
4673
|
+
description: "The error that occurred if the event was not edited successfully",
|
|
4674
|
+
},
|
|
4675
|
+
},
|
|
4676
|
+
},
|
|
4677
|
+
name: "editAGoogleCalendarEvent",
|
|
4678
|
+
provider: "googleOauth",
|
|
4679
|
+
};
|
|
4551
4680
|
export const googleOauthDeleteCalendarEventDefinition = {
|
|
4552
4681
|
description: "Delete an event from a Google Calendar using OAuth authentication",
|
|
4553
4682
|
scopes: ["https://www.googleapis.com/auth/calendar"],
|
|
@@ -6978,6 +7107,85 @@ export const googleOauthDeleteGroupMemberDefinition = {
|
|
|
6978
7107
|
name: "deleteGroupMember",
|
|
6979
7108
|
provider: "googleOauth",
|
|
6980
7109
|
};
|
|
7110
|
+
export const googleOauthQueryGoogleBigQueryDefinition = {
|
|
7111
|
+
description: "Execute read only SQL queries on Google BigQuery datasets",
|
|
7112
|
+
scopes: ["https://www.googleapis.com/auth/bigquery.readonly"],
|
|
7113
|
+
parameters: {
|
|
7114
|
+
type: "object",
|
|
7115
|
+
required: ["query", "projectId"],
|
|
7116
|
+
properties: {
|
|
7117
|
+
query: {
|
|
7118
|
+
type: "string",
|
|
7119
|
+
description: "The SQL query to execute in BigQuery",
|
|
7120
|
+
},
|
|
7121
|
+
projectId: {
|
|
7122
|
+
type: "string",
|
|
7123
|
+
description: "The Google Cloud Project ID. If not provided, will use the default project",
|
|
7124
|
+
},
|
|
7125
|
+
maxResults: {
|
|
7126
|
+
type: "number",
|
|
7127
|
+
description: "Maximum number of results to return. Defaults to 1000",
|
|
7128
|
+
},
|
|
7129
|
+
timeoutMs: {
|
|
7130
|
+
type: "number",
|
|
7131
|
+
description: "Timeout for the query in milliseconds. Defaults to 30000",
|
|
7132
|
+
},
|
|
7133
|
+
maximumBytesProcessed: {
|
|
7134
|
+
type: "string",
|
|
7135
|
+
description: "Maximum bytes to process for the query. Defaults to 500000000 (500MB). Use -1 for no limit",
|
|
7136
|
+
},
|
|
7137
|
+
},
|
|
7138
|
+
},
|
|
7139
|
+
output: {
|
|
7140
|
+
type: "object",
|
|
7141
|
+
required: ["success"],
|
|
7142
|
+
properties: {
|
|
7143
|
+
success: {
|
|
7144
|
+
type: "boolean",
|
|
7145
|
+
description: "Whether the query was executed successfully",
|
|
7146
|
+
},
|
|
7147
|
+
data: {
|
|
7148
|
+
type: "array",
|
|
7149
|
+
description: "The query results as an array of objects",
|
|
7150
|
+
items: {
|
|
7151
|
+
type: "object",
|
|
7152
|
+
description: "A row of data from the query result",
|
|
7153
|
+
},
|
|
7154
|
+
},
|
|
7155
|
+
totalRows: {
|
|
7156
|
+
type: "string",
|
|
7157
|
+
description: "Total number of rows in the result set",
|
|
7158
|
+
},
|
|
7159
|
+
schema: {
|
|
7160
|
+
type: "array",
|
|
7161
|
+
description: "Schema information for the result columns",
|
|
7162
|
+
items: {
|
|
7163
|
+
type: "object",
|
|
7164
|
+
properties: {
|
|
7165
|
+
name: {
|
|
7166
|
+
type: "string",
|
|
7167
|
+
description: "Column name",
|
|
7168
|
+
},
|
|
7169
|
+
type: {
|
|
7170
|
+
type: "string",
|
|
7171
|
+
description: "Column data type",
|
|
7172
|
+
},
|
|
7173
|
+
mode: {
|
|
7174
|
+
type: "string",
|
|
7175
|
+
description: "Column mode (NULLABLE, REQUIRED, REPEATED)",
|
|
7176
|
+
},
|
|
7177
|
+
},
|
|
7178
|
+
},
|
|
7179
|
+
},
|
|
7180
|
+
error: {
|
|
7181
|
+
type: "string",
|
|
7182
|
+
description: "Error message if query failed",
|
|
7183
|
+
},
|
|
7184
|
+
},
|
|
7185
|
+
},
|
|
7186
|
+
name: "queryGoogleBigQuery",
|
|
7187
|
+
provider: "googleOauth",
|
|
7188
|
+
};
|
|
6981
7189
|
export const googlemailSearchGmailMessagesDefinition = {
|
|
6982
7190
|
description: "Search Gmail messages in a user's inbox using a query string.",
|
|
6983
7191
|
scopes: ["https://www.googleapis.com/auth/gmail.readonly"],
|
|
@@ -7164,7 +7372,11 @@ export const googlemailSendGmailDefinition = {
|
|
|
7164
7372
|
},
|
|
7165
7373
|
content: {
|
|
7166
7374
|
type: "string",
|
|
7167
|
-
description: "Email body content
|
|
7375
|
+
description: "Email body content in HTML format",
|
|
7376
|
+
},
|
|
7377
|
+
threadId: {
|
|
7378
|
+
type: "string",
|
|
7379
|
+
description: "Optional thread ID to reply to an existing email thread",
|
|
7168
7380
|
},
|
|
7169
7381
|
},
|
|
7170
7382
|
},
|
|
@@ -11419,3 +11631,599 @@ export const linearGetTeamsDefinition = {
|
|
|
11419
11631
|
name: "getTeams",
|
|
11420
11632
|
provider: "linear",
|
|
11421
11633
|
};
|
|
11634
|
+
export const hubspotGetContactsDefinition = {
|
|
11635
|
+
description: "List or search HubSpot contacts by optional query",
|
|
11636
|
+
scopes: ["oauth crm.objects.contacts.read"],
|
|
11637
|
+
parameters: {
|
|
11638
|
+
type: "object",
|
|
11639
|
+
required: [],
|
|
11640
|
+
properties: {
|
|
11641
|
+
query: {
|
|
11642
|
+
type: "string",
|
|
11643
|
+
description: "Optional search query to filter contacts by name, email, or other properties",
|
|
11644
|
+
},
|
|
11645
|
+
limit: {
|
|
11646
|
+
type: "number",
|
|
11647
|
+
description: "Maximum number of contacts to return (default 100, max 100)",
|
|
11648
|
+
},
|
|
11649
|
+
},
|
|
11650
|
+
},
|
|
11651
|
+
output: {
|
|
11652
|
+
type: "object",
|
|
11653
|
+
required: ["success"],
|
|
11654
|
+
properties: {
|
|
11655
|
+
success: {
|
|
11656
|
+
type: "boolean",
|
|
11657
|
+
description: "Whether the operation was successful",
|
|
11658
|
+
},
|
|
11659
|
+
error: {
|
|
11660
|
+
type: "string",
|
|
11661
|
+
description: "Error message if the operation failed",
|
|
11662
|
+
},
|
|
11663
|
+
contacts: {
|
|
11664
|
+
type: "array",
|
|
11665
|
+
description: "List of contacts matching the search criteria",
|
|
11666
|
+
items: {
|
|
11667
|
+
type: "object",
|
|
11668
|
+
properties: {
|
|
11669
|
+
id: {
|
|
11670
|
+
type: "string",
|
|
11671
|
+
description: "The contact ID",
|
|
11672
|
+
},
|
|
11673
|
+
email: {
|
|
11674
|
+
type: "string",
|
|
11675
|
+
description: "Contact email address",
|
|
11676
|
+
},
|
|
11677
|
+
firstname: {
|
|
11678
|
+
type: "string",
|
|
11679
|
+
description: "Contact first name",
|
|
11680
|
+
},
|
|
11681
|
+
lastname: {
|
|
11682
|
+
type: "string",
|
|
11683
|
+
description: "Contact last name",
|
|
11684
|
+
},
|
|
11685
|
+
createdate: {
|
|
11686
|
+
type: "string",
|
|
11687
|
+
description: "When the contact was created",
|
|
11688
|
+
},
|
|
11689
|
+
},
|
|
11690
|
+
},
|
|
11691
|
+
},
|
|
11692
|
+
},
|
|
11693
|
+
},
|
|
11694
|
+
name: "getContacts",
|
|
11695
|
+
provider: "hubspot",
|
|
11696
|
+
};
|
|
11697
|
+
export const hubspotGetContactDetailsDefinition = {
|
|
11698
|
+
description: "Get detailed information about a specific HubSpot contact",
|
|
11699
|
+
scopes: ["oauth crm.objects.contacts.read"],
|
|
11700
|
+
parameters: {
|
|
11701
|
+
type: "object",
|
|
11702
|
+
required: ["contactId"],
|
|
11703
|
+
properties: {
|
|
11704
|
+
contactId: {
|
|
11705
|
+
type: "string",
|
|
11706
|
+
description: "The ID of the HubSpot contact to retrieve",
|
|
11707
|
+
},
|
|
11708
|
+
},
|
|
11709
|
+
},
|
|
11710
|
+
output: {
|
|
11711
|
+
type: "object",
|
|
11712
|
+
required: ["success"],
|
|
11713
|
+
properties: {
|
|
11714
|
+
success: {
|
|
11715
|
+
type: "boolean",
|
|
11716
|
+
description: "Whether the operation was successful",
|
|
11717
|
+
},
|
|
11718
|
+
error: {
|
|
11719
|
+
type: "string",
|
|
11720
|
+
description: "Error message if the operation failed",
|
|
11721
|
+
},
|
|
11722
|
+
contact: {
|
|
11723
|
+
type: "object",
|
|
11724
|
+
description: "The contact details",
|
|
11725
|
+
properties: {
|
|
11726
|
+
id: {
|
|
11727
|
+
type: "string",
|
|
11728
|
+
description: "The contact ID",
|
|
11729
|
+
},
|
|
11730
|
+
email: {
|
|
11731
|
+
type: "string",
|
|
11732
|
+
description: "Contact email address",
|
|
11733
|
+
},
|
|
11734
|
+
firstname: {
|
|
11735
|
+
type: "string",
|
|
11736
|
+
description: "Contact first name",
|
|
11737
|
+
},
|
|
11738
|
+
lastname: {
|
|
11739
|
+
type: "string",
|
|
11740
|
+
description: "Contact last name",
|
|
11741
|
+
},
|
|
11742
|
+
company: {
|
|
11743
|
+
type: "string",
|
|
11744
|
+
description: "Contact company",
|
|
11745
|
+
},
|
|
11746
|
+
phone: {
|
|
11747
|
+
type: "string",
|
|
11748
|
+
description: "Contact phone number",
|
|
11749
|
+
},
|
|
11750
|
+
address: {
|
|
11751
|
+
type: "string",
|
|
11752
|
+
description: "Contact address",
|
|
11753
|
+
},
|
|
11754
|
+
city: {
|
|
11755
|
+
type: "string",
|
|
11756
|
+
description: "Contact city",
|
|
11757
|
+
},
|
|
11758
|
+
state: {
|
|
11759
|
+
type: "string",
|
|
11760
|
+
description: "Contact state",
|
|
11761
|
+
},
|
|
11762
|
+
zip: {
|
|
11763
|
+
type: "string",
|
|
11764
|
+
description: "Contact zip code",
|
|
11765
|
+
},
|
|
11766
|
+
country: {
|
|
11767
|
+
type: "string",
|
|
11768
|
+
description: "Contact country",
|
|
11769
|
+
},
|
|
11770
|
+
lifecyclestage: {
|
|
11771
|
+
type: "string",
|
|
11772
|
+
description: "Contact lifecycle stage",
|
|
11773
|
+
},
|
|
11774
|
+
leadstatus: {
|
|
11775
|
+
type: "string",
|
|
11776
|
+
description: "Contact lead status",
|
|
11777
|
+
},
|
|
11778
|
+
createdAt: {
|
|
11779
|
+
type: "string",
|
|
11780
|
+
description: "When the contact was created",
|
|
11781
|
+
},
|
|
11782
|
+
updatedAt: {
|
|
11783
|
+
type: "string",
|
|
11784
|
+
description: "When the contact was last updated",
|
|
11785
|
+
},
|
|
11786
|
+
archived: {
|
|
11787
|
+
type: "boolean",
|
|
11788
|
+
description: "Whether the contact is archived",
|
|
11789
|
+
},
|
|
11790
|
+
},
|
|
11791
|
+
},
|
|
11792
|
+
},
|
|
11793
|
+
},
|
|
11794
|
+
name: "getContactDetails",
|
|
11795
|
+
provider: "hubspot",
|
|
11796
|
+
};
|
|
11797
|
+
export const hubspotGetCompaniesDefinition = {
|
|
11798
|
+
description: "List or search HubSpot companies by optional query",
|
|
11799
|
+
scopes: ["oauth crm.objects.companies.read"],
|
|
11800
|
+
parameters: {
|
|
11801
|
+
type: "object",
|
|
11802
|
+
required: [],
|
|
11803
|
+
properties: {
|
|
11804
|
+
query: {
|
|
11805
|
+
type: "string",
|
|
11806
|
+
description: "Optional search query to filter companies by name, domain, or other properties",
|
|
11807
|
+
},
|
|
11808
|
+
limit: {
|
|
11809
|
+
type: "number",
|
|
11810
|
+
description: "Maximum number of companies to return (default 100, max 100)",
|
|
11811
|
+
},
|
|
11812
|
+
},
|
|
11813
|
+
},
|
|
11814
|
+
output: {
|
|
11815
|
+
type: "object",
|
|
11816
|
+
required: ["success"],
|
|
11817
|
+
properties: {
|
|
11818
|
+
success: {
|
|
11819
|
+
type: "boolean",
|
|
11820
|
+
description: "Whether the operation was successful",
|
|
11821
|
+
},
|
|
11822
|
+
error: {
|
|
11823
|
+
type: "string",
|
|
11824
|
+
description: "Error message if the operation failed",
|
|
11825
|
+
},
|
|
11826
|
+
companies: {
|
|
11827
|
+
type: "array",
|
|
11828
|
+
description: "List of companies matching the search criteria",
|
|
11829
|
+
items: {
|
|
11830
|
+
type: "object",
|
|
11831
|
+
properties: {
|
|
11832
|
+
id: {
|
|
11833
|
+
type: "string",
|
|
11834
|
+
description: "The company ID",
|
|
11835
|
+
},
|
|
11836
|
+
name: {
|
|
11837
|
+
type: "string",
|
|
11838
|
+
description: "Company name",
|
|
11839
|
+
},
|
|
11840
|
+
domain: {
|
|
11841
|
+
type: "string",
|
|
11842
|
+
description: "Company domain",
|
|
11843
|
+
},
|
|
11844
|
+
createdAt: {
|
|
11845
|
+
type: "string",
|
|
11846
|
+
description: "When the company was created",
|
|
11847
|
+
},
|
|
11848
|
+
},
|
|
11849
|
+
},
|
|
11850
|
+
},
|
|
11851
|
+
},
|
|
11852
|
+
},
|
|
11853
|
+
name: "getCompanies",
|
|
11854
|
+
provider: "hubspot",
|
|
11855
|
+
};
|
|
11856
|
+
export const hubspotGetCompanyDetailsDefinition = {
|
|
11857
|
+
description: "Get detailed information about a specific HubSpot company",
|
|
11858
|
+
scopes: ["oauth crm.objects.companies.read"],
|
|
11859
|
+
parameters: {
|
|
11860
|
+
type: "object",
|
|
11861
|
+
required: ["companyId"],
|
|
11862
|
+
properties: {
|
|
11863
|
+
companyId: {
|
|
11864
|
+
type: "string",
|
|
11865
|
+
description: "The ID of the HubSpot company to retrieve",
|
|
11866
|
+
},
|
|
11867
|
+
},
|
|
11868
|
+
},
|
|
11869
|
+
output: {
|
|
11870
|
+
type: "object",
|
|
11871
|
+
required: ["success"],
|
|
11872
|
+
properties: {
|
|
11873
|
+
success: {
|
|
11874
|
+
type: "boolean",
|
|
11875
|
+
description: "Whether the operation was successful",
|
|
11876
|
+
},
|
|
11877
|
+
error: {
|
|
11878
|
+
type: "string",
|
|
11879
|
+
description: "Error message if the operation failed",
|
|
11880
|
+
},
|
|
11881
|
+
company: {
|
|
11882
|
+
type: "object",
|
|
11883
|
+
description: "The company details",
|
|
11884
|
+
properties: {
|
|
11885
|
+
id: {
|
|
11886
|
+
type: "string",
|
|
11887
|
+
description: "The company ID",
|
|
11888
|
+
},
|
|
11889
|
+
name: {
|
|
11890
|
+
type: "string",
|
|
11891
|
+
description: "Company name",
|
|
11892
|
+
},
|
|
11893
|
+
domain: {
|
|
11894
|
+
type: "string",
|
|
11895
|
+
description: "Company domain",
|
|
11896
|
+
},
|
|
11897
|
+
industry: {
|
|
11898
|
+
type: "string",
|
|
11899
|
+
description: "Company industry",
|
|
11900
|
+
},
|
|
11901
|
+
phone: {
|
|
11902
|
+
type: "string",
|
|
11903
|
+
description: "Company phone number",
|
|
11904
|
+
},
|
|
11905
|
+
address: {
|
|
11906
|
+
type: "string",
|
|
11907
|
+
description: "Company address",
|
|
11908
|
+
},
|
|
11909
|
+
city: {
|
|
11910
|
+
type: "string",
|
|
11911
|
+
description: "Company city",
|
|
11912
|
+
},
|
|
11913
|
+
state: {
|
|
11914
|
+
type: "string",
|
|
11915
|
+
description: "Company state",
|
|
11916
|
+
},
|
|
11917
|
+
zip: {
|
|
11918
|
+
type: "string",
|
|
11919
|
+
description: "Company zip code",
|
|
11920
|
+
},
|
|
11921
|
+
country: {
|
|
11922
|
+
type: "string",
|
|
11923
|
+
description: "Company country",
|
|
11924
|
+
},
|
|
11925
|
+
website: {
|
|
11926
|
+
type: "string",
|
|
11927
|
+
description: "Company website",
|
|
11928
|
+
},
|
|
11929
|
+
createdAt: {
|
|
11930
|
+
type: "string",
|
|
11931
|
+
description: "When the company was created",
|
|
11932
|
+
},
|
|
11933
|
+
updatedAt: {
|
|
11934
|
+
type: "string",
|
|
11935
|
+
description: "When the company was last updated",
|
|
11936
|
+
},
|
|
11937
|
+
archived: {
|
|
11938
|
+
type: "boolean",
|
|
11939
|
+
description: "Whether the company is archived",
|
|
11940
|
+
},
|
|
11941
|
+
},
|
|
11942
|
+
},
|
|
11943
|
+
},
|
|
11944
|
+
},
|
|
11945
|
+
name: "getCompanyDetails",
|
|
11946
|
+
provider: "hubspot",
|
|
11947
|
+
};
|
|
11948
|
+
export const hubspotGetDealsDefinition = {
|
|
11949
|
+
description: "List or search HubSpot deals by optional query",
|
|
11950
|
+
scopes: ["oauth crm.objects.deals.read"],
|
|
11951
|
+
parameters: {
|
|
11952
|
+
type: "object",
|
|
11953
|
+
required: [],
|
|
11954
|
+
properties: {
|
|
11955
|
+
query: {
|
|
11956
|
+
type: "string",
|
|
11957
|
+
description: "Optional search query to filter deals by name, stage, or other properties",
|
|
11958
|
+
},
|
|
11959
|
+
limit: {
|
|
11960
|
+
type: "number",
|
|
11961
|
+
description: "Maximum number of deals to return (default 100, max 100)",
|
|
11962
|
+
},
|
|
11963
|
+
},
|
|
11964
|
+
},
|
|
11965
|
+
output: {
|
|
11966
|
+
type: "object",
|
|
11967
|
+
required: ["success"],
|
|
11968
|
+
properties: {
|
|
11969
|
+
success: {
|
|
11970
|
+
type: "boolean",
|
|
11971
|
+
description: "Whether the operation was successful",
|
|
11972
|
+
},
|
|
11973
|
+
error: {
|
|
11974
|
+
type: "string",
|
|
11975
|
+
description: "Error message if the operation failed",
|
|
11976
|
+
},
|
|
11977
|
+
deals: {
|
|
11978
|
+
type: "array",
|
|
11979
|
+
description: "List of deals matching the search criteria",
|
|
11980
|
+
items: {
|
|
11981
|
+
type: "object",
|
|
11982
|
+
properties: {
|
|
11983
|
+
id: {
|
|
11984
|
+
type: "string",
|
|
11985
|
+
description: "The deal ID",
|
|
11986
|
+
},
|
|
11987
|
+
dealname: {
|
|
11988
|
+
type: "string",
|
|
11989
|
+
description: "Deal name",
|
|
11990
|
+
},
|
|
11991
|
+
amount: {
|
|
11992
|
+
type: "string",
|
|
11993
|
+
description: "Deal amount",
|
|
11994
|
+
},
|
|
11995
|
+
dealstage: {
|
|
11996
|
+
type: "string",
|
|
11997
|
+
description: "Deal stage",
|
|
11998
|
+
},
|
|
11999
|
+
createdAt: {
|
|
12000
|
+
type: "string",
|
|
12001
|
+
description: "When the deal was created",
|
|
12002
|
+
},
|
|
12003
|
+
},
|
|
12004
|
+
},
|
|
12005
|
+
},
|
|
12006
|
+
},
|
|
12007
|
+
},
|
|
12008
|
+
name: "getDeals",
|
|
12009
|
+
provider: "hubspot",
|
|
12010
|
+
};
|
|
12011
|
+
export const hubspotGetDealDetailsDefinition = {
|
|
12012
|
+
description: "Get detailed information about a specific HubSpot deal",
|
|
12013
|
+
scopes: ["oauth crm.objects.deals.read"],
|
|
12014
|
+
parameters: {
|
|
12015
|
+
type: "object",
|
|
12016
|
+
required: ["dealId"],
|
|
12017
|
+
properties: {
|
|
12018
|
+
dealId: {
|
|
12019
|
+
type: "string",
|
|
12020
|
+
description: "The ID of the HubSpot deal to retrieve",
|
|
12021
|
+
},
|
|
12022
|
+
},
|
|
12023
|
+
},
|
|
12024
|
+
output: {
|
|
12025
|
+
type: "object",
|
|
12026
|
+
required: ["success"],
|
|
12027
|
+
properties: {
|
|
12028
|
+
success: {
|
|
12029
|
+
type: "boolean",
|
|
12030
|
+
description: "Whether the operation was successful",
|
|
12031
|
+
},
|
|
12032
|
+
error: {
|
|
12033
|
+
type: "string",
|
|
12034
|
+
description: "Error message if the operation failed",
|
|
12035
|
+
},
|
|
12036
|
+
deal: {
|
|
12037
|
+
type: "object",
|
|
12038
|
+
description: "The deal details",
|
|
12039
|
+
properties: {
|
|
12040
|
+
id: {
|
|
12041
|
+
type: "string",
|
|
12042
|
+
description: "The deal ID",
|
|
12043
|
+
},
|
|
12044
|
+
dealname: {
|
|
12045
|
+
type: "string",
|
|
12046
|
+
description: "Deal name",
|
|
12047
|
+
},
|
|
12048
|
+
description: {
|
|
12049
|
+
type: "string",
|
|
12050
|
+
description: "Description of deal",
|
|
12051
|
+
},
|
|
12052
|
+
amount: {
|
|
12053
|
+
type: "string",
|
|
12054
|
+
description: "Deal amount",
|
|
12055
|
+
},
|
|
12056
|
+
dealstage: {
|
|
12057
|
+
type: "string",
|
|
12058
|
+
description: "Deal stage",
|
|
12059
|
+
},
|
|
12060
|
+
pipeline: {
|
|
12061
|
+
type: "string",
|
|
12062
|
+
description: "Pipeline",
|
|
12063
|
+
},
|
|
12064
|
+
dealtype: {
|
|
12065
|
+
type: "string",
|
|
12066
|
+
description: "Deal type",
|
|
12067
|
+
},
|
|
12068
|
+
closedate: {
|
|
12069
|
+
type: "string",
|
|
12070
|
+
description: "Close date",
|
|
12071
|
+
},
|
|
12072
|
+
createdAt: {
|
|
12073
|
+
type: "string",
|
|
12074
|
+
description: "When the deal was created",
|
|
12075
|
+
},
|
|
12076
|
+
updatedAt: {
|
|
12077
|
+
type: "string",
|
|
12078
|
+
description: "When the deal was last updated",
|
|
12079
|
+
},
|
|
12080
|
+
ownerId: {
|
|
12081
|
+
type: "string",
|
|
12082
|
+
description: "Deal owner ID",
|
|
12083
|
+
},
|
|
12084
|
+
archived: {
|
|
12085
|
+
type: "boolean",
|
|
12086
|
+
description: "Whether the deal is archived",
|
|
12087
|
+
},
|
|
12088
|
+
},
|
|
12089
|
+
},
|
|
12090
|
+
},
|
|
12091
|
+
},
|
|
12092
|
+
name: "getDealDetails",
|
|
12093
|
+
provider: "hubspot",
|
|
12094
|
+
};
|
|
12095
|
+
export const hubspotGetTicketsDefinition = {
|
|
12096
|
+
description: "List or search HubSpot tickets by optional query",
|
|
12097
|
+
scopes: ["oauth crm.objects.tickets.read"],
|
|
12098
|
+
parameters: {
|
|
12099
|
+
type: "object",
|
|
12100
|
+
required: [],
|
|
12101
|
+
properties: {
|
|
12102
|
+
query: {
|
|
12103
|
+
type: "string",
|
|
12104
|
+
description: "Optional search query to filter tickets by subject, status, or other properties",
|
|
12105
|
+
},
|
|
12106
|
+
limit: {
|
|
12107
|
+
type: "number",
|
|
12108
|
+
description: "Maximum number of tickets to return (default 100, max 100)",
|
|
12109
|
+
},
|
|
12110
|
+
},
|
|
12111
|
+
},
|
|
12112
|
+
output: {
|
|
12113
|
+
type: "object",
|
|
12114
|
+
required: ["success"],
|
|
12115
|
+
properties: {
|
|
12116
|
+
success: {
|
|
12117
|
+
type: "boolean",
|
|
12118
|
+
description: "Whether the operation was successful",
|
|
12119
|
+
},
|
|
12120
|
+
error: {
|
|
12121
|
+
type: "string",
|
|
12122
|
+
description: "Error message if the operation failed",
|
|
12123
|
+
},
|
|
12124
|
+
tickets: {
|
|
12125
|
+
type: "array",
|
|
12126
|
+
description: "List of tickets matching the search criteria",
|
|
12127
|
+
items: {
|
|
12128
|
+
type: "object",
|
|
12129
|
+
properties: {
|
|
12130
|
+
id: {
|
|
12131
|
+
type: "string",
|
|
12132
|
+
description: "The ticket ID",
|
|
12133
|
+
},
|
|
12134
|
+
subject: {
|
|
12135
|
+
type: "string",
|
|
12136
|
+
description: "Ticket subject",
|
|
12137
|
+
},
|
|
12138
|
+
status: {
|
|
12139
|
+
type: "string",
|
|
12140
|
+
description: "Ticket status",
|
|
12141
|
+
},
|
|
12142
|
+
createdAt: {
|
|
12143
|
+
type: "string",
|
|
12144
|
+
description: "When the ticket was created",
|
|
12145
|
+
},
|
|
12146
|
+
},
|
|
12147
|
+
},
|
|
12148
|
+
},
|
|
12149
|
+
},
|
|
12150
|
+
},
|
|
12151
|
+
name: "getTickets",
|
|
12152
|
+
provider: "hubspot",
|
|
12153
|
+
};
|
|
12154
|
+
export const hubspotGetTicketDetailsDefinition = {
|
|
12155
|
+
description: "Get detailed information about a specific HubSpot ticket",
|
|
12156
|
+
scopes: ["oauth crm.objects.tickets.read"],
|
|
12157
|
+
parameters: {
|
|
12158
|
+
type: "object",
|
|
12159
|
+
required: ["ticketId"],
|
|
12160
|
+
properties: {
|
|
12161
|
+
ticketId: {
|
|
12162
|
+
type: "string",
|
|
12163
|
+
description: "The ID of the HubSpot ticket to retrieve",
|
|
12164
|
+
},
|
|
12165
|
+
},
|
|
12166
|
+
},
|
|
12167
|
+
output: {
|
|
12168
|
+
type: "object",
|
|
12169
|
+
required: ["success"],
|
|
12170
|
+
properties: {
|
|
12171
|
+
success: {
|
|
12172
|
+
type: "boolean",
|
|
12173
|
+
description: "Whether the operation was successful",
|
|
12174
|
+
},
|
|
12175
|
+
error: {
|
|
12176
|
+
type: "string",
|
|
12177
|
+
description: "Error message if the operation failed",
|
|
12178
|
+
},
|
|
12179
|
+
ticket: {
|
|
12180
|
+
type: "object",
|
|
12181
|
+
description: "The ticket details",
|
|
12182
|
+
properties: {
|
|
12183
|
+
id: {
|
|
12184
|
+
type: "string",
|
|
12185
|
+
description: "The ticket ID",
|
|
12186
|
+
},
|
|
12187
|
+
subject: {
|
|
12188
|
+
type: "string",
|
|
12189
|
+
description: "Ticket subject",
|
|
12190
|
+
},
|
|
12191
|
+
content: {
|
|
12192
|
+
type: "string",
|
|
12193
|
+
description: "Ticket content/description",
|
|
12194
|
+
},
|
|
12195
|
+
pipeline: {
|
|
12196
|
+
type: "string",
|
|
12197
|
+
description: "Pipeline",
|
|
12198
|
+
},
|
|
12199
|
+
status: {
|
|
12200
|
+
type: "string",
|
|
12201
|
+
description: "Ticket status",
|
|
12202
|
+
},
|
|
12203
|
+
priority: {
|
|
12204
|
+
type: "string",
|
|
12205
|
+
description: "Ticket priority",
|
|
12206
|
+
},
|
|
12207
|
+
createdAt: {
|
|
12208
|
+
type: "string",
|
|
12209
|
+
description: "When the ticket was created",
|
|
12210
|
+
},
|
|
12211
|
+
updatedAt: {
|
|
12212
|
+
type: "string",
|
|
12213
|
+
description: "When the ticket was last updated",
|
|
12214
|
+
},
|
|
12215
|
+
ownerId: {
|
|
12216
|
+
type: "string",
|
|
12217
|
+
description: "Ticket owner id",
|
|
12218
|
+
},
|
|
12219
|
+
archived: {
|
|
12220
|
+
type: "boolean",
|
|
12221
|
+
description: "Whether the ticket is archived",
|
|
12222
|
+
},
|
|
12223
|
+
},
|
|
12224
|
+
},
|
|
12225
|
+
},
|
|
12226
|
+
},
|
|
12227
|
+
name: "getTicketDetails",
|
|
12228
|
+
provider: "hubspot",
|
|
12229
|
+
};
|