@credal/actions 0.2.67 → 0.2.69

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.
@@ -1,4 +1,4 @@
1
- import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackArchiveChannelParamsSchema, slackArchiveChannelOutputSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraGetServiceDesksParamsSchema, jiraGetServiceDesksOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, gongGetGongTranscriptsParamsSchema, gongGetGongTranscriptsOutputSchema, ashbyCreateNoteParamsSchema, ashbyCreateNoteOutputSchema, ashbyGetCandidateInfoParamsSchema, ashbyGetCandidateInfoOutputSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, ashbyListCandidatesParamsSchema, ashbyListCandidatesOutputSchema, ashbyListCandidateNotesParamsSchema, ashbyListCandidateNotesOutputSchema, ashbySearchCandidatesParamsSchema, ashbySearchCandidatesOutputSchema, ashbyCreateCandidateParamsSchema, ashbyCreateCandidateOutputSchema, ashbyUpdateCandidateParamsSchema, ashbyUpdateCandidateOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, salesforceFetchSalesforceSchemaByObjectParamsSchema, salesforceFetchSalesforceSchemaByObjectOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, ashbyAddCandidateToProjectParamsSchema, ashbyAddCandidateToProjectOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, kandjiGetFVRecoveryKeyForDeviceParamsSchema, kandjiGetFVRecoveryKeyForDeviceOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, jamfGetJamfComputerInventoryParamsSchema, jamfGetJamfComputerInventoryOutputSchema, jamfGetJamfFileVaultRecoveryKeyParamsSchema, jamfGetJamfFileVaultRecoveryKeyOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, oktaListOktaUsersParamsSchema, oktaListOktaUsersOutputSchema, oktaGetOktaUserParamsSchema, oktaGetOktaUserOutputSchema, oktaListOktaUserGroupsParamsSchema, oktaListOktaUserGroupsOutputSchema, oktaListOktaGroupsParamsSchema, oktaListOktaGroupsOutputSchema, oktaGetOktaGroupParamsSchema, oktaGetOktaGroupOutputSchema, oktaListOktaGroupMembersParamsSchema, oktaListOktaGroupMembersOutputSchema, oktaRemoveUserFromGroupParamsSchema, oktaRemoveUserFromGroupOutputSchema, oktaAddUserToGroupParamsSchema, oktaAddUserToGroupOutputSchema, oktaResetPasswordParamsSchema, oktaResetPasswordOutputSchema, oktaResetMFAParamsSchema, oktaResetMFAOutputSchema, oktaListMFAParamsSchema, oktaListMFAOutputSchema, jamfGetJamfUserComputerIdParamsSchema, jamfGetJamfUserComputerIdOutputSchema, jamfLockJamfComputerByIdParamsSchema, jamfLockJamfComputerByIdOutputSchema, oktaTriggerOktaWorkflowParamsSchema, oktaTriggerOktaWorkflowOutputSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchRepositoryOutputSchema, githubSearchRepositoryParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, } from "./autogen/types.js";
1
+ import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackArchiveChannelParamsSchema, slackArchiveChannelOutputSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraGetServiceDesksParamsSchema, jiraGetServiceDesksOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, gongGetGongTranscriptsParamsSchema, gongGetGongTranscriptsOutputSchema, ashbyCreateNoteParamsSchema, ashbyCreateNoteOutputSchema, ashbyGetCandidateInfoParamsSchema, ashbyGetCandidateInfoOutputSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, ashbyListCandidatesParamsSchema, ashbyListCandidatesOutputSchema, ashbyListCandidateNotesParamsSchema, ashbyListCandidateNotesOutputSchema, ashbySearchCandidatesParamsSchema, ashbySearchCandidatesOutputSchema, ashbyCreateCandidateParamsSchema, ashbyCreateCandidateOutputSchema, ashbyUpdateCandidateParamsSchema, ashbyUpdateCandidateOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, salesforceFetchSalesforceSchemaByObjectParamsSchema, salesforceFetchSalesforceSchemaByObjectOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, ashbyAddCandidateToProjectParamsSchema, ashbyAddCandidateToProjectOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, kandjiGetFVRecoveryKeyForDeviceParamsSchema, kandjiGetFVRecoveryKeyForDeviceOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, jamfGetJamfComputerInventoryParamsSchema, jamfGetJamfComputerInventoryOutputSchema, jamfGetJamfFileVaultRecoveryKeyParamsSchema, jamfGetJamfFileVaultRecoveryKeyOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, oktaListOktaUsersParamsSchema, oktaListOktaUsersOutputSchema, oktaGetOktaUserParamsSchema, oktaGetOktaUserOutputSchema, oktaListOktaUserGroupsParamsSchema, oktaListOktaUserGroupsOutputSchema, oktaListOktaGroupsParamsSchema, oktaListOktaGroupsOutputSchema, oktaGetOktaGroupParamsSchema, oktaGetOktaGroupOutputSchema, oktaListOktaGroupMembersParamsSchema, oktaListOktaGroupMembersOutputSchema, oktaRemoveUserFromGroupParamsSchema, oktaRemoveUserFromGroupOutputSchema, oktaAddUserToGroupParamsSchema, oktaAddUserToGroupOutputSchema, oktaResetPasswordParamsSchema, oktaResetPasswordOutputSchema, oktaResetMFAParamsSchema, oktaResetMFAOutputSchema, oktaListMFAParamsSchema, oktaListMFAOutputSchema, jamfGetJamfUserComputerIdParamsSchema, jamfGetJamfUserComputerIdOutputSchema, jamfLockJamfComputerByIdParamsSchema, jamfLockJamfComputerByIdOutputSchema, oktaTriggerOktaWorkflowParamsSchema, oktaTriggerOktaWorkflowOutputSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchRepositoryOutputSchema, githubSearchRepositoryParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, } from "./autogen/types.js";
2
2
  import validateAddress from "./providers/googlemaps/validateAddress.js";
3
3
  import add from "./providers/math/add.js";
4
4
  import fillTemplate from "./providers/generic/fillTemplate.js";
@@ -12,6 +12,7 @@ import updateTicketStatus from "./providers/zendesk/updateTicketStatus.js";
12
12
  import addCommentToTicket from "./providers/zendesk/addCommentToTicket.js";
13
13
  import assignTicket from "./providers/zendesk/assignTicket.js";
14
14
  import listZendeskTickets from "./providers/zendesk/listTickets.js";
15
+ import searchZendeskByQuery from "./providers/zendesk/searchZendeskByQuery.js";
15
16
  import assignJiraTicket from "./providers/jira/assignJiraTicket.js";
16
17
  import commentJiraTicket from "./providers/jira/commentJiraTicket.js";
17
18
  import createJiraTicket from "./providers/jira/createJiraTicket.js";
@@ -345,6 +346,11 @@ export const ActionMapper = {
345
346
  paramsSchema: zendeskListZendeskTicketsParamsSchema,
346
347
  outputSchema: zendeskListZendeskTicketsOutputSchema,
347
348
  },
349
+ searchZendeskByQuery: {
350
+ fn: searchZendeskByQuery,
351
+ paramsSchema: zendeskSearchZendeskByQueryParamsSchema,
352
+ outputSchema: zendeskSearchZendeskByQueryOutputSchema,
353
+ },
348
354
  },
349
355
  mongo: {
350
356
  insertMongoDoc: {
@@ -45,6 +45,7 @@ export declare const zendeskGetTicketDetailsDefinition: ActionTemplate;
45
45
  export declare const zendeskUpdateTicketStatusDefinition: ActionTemplate;
46
46
  export declare const zendeskAddCommentToTicketDefinition: ActionTemplate;
47
47
  export declare const zendeskAssignTicketDefinition: ActionTemplate;
48
+ export declare const zendeskSearchZendeskByQueryDefinition: ActionTemplate;
48
49
  export declare const linkedinCreateShareLinkedinPostUrlDefinition: ActionTemplate;
49
50
  export declare const xCreateShareXPostUrlDefinition: ActionTemplate;
50
51
  export declare const mongoInsertMongoDocDefinition: ActionTemplate;
@@ -2347,6 +2347,52 @@ export const zendeskAssignTicketDefinition = {
2347
2347
  name: "assignTicket",
2348
2348
  provider: "zendesk",
2349
2349
  };
2350
+ export const zendeskSearchZendeskByQueryDefinition = {
2351
+ description: "Search Zendesk objects by query with flexible filtering options",
2352
+ scopes: [],
2353
+ parameters: {
2354
+ type: "object",
2355
+ required: ["subdomain", "query"],
2356
+ properties: {
2357
+ subdomain: {
2358
+ type: "string",
2359
+ description: "The subdomain of the Zendesk account",
2360
+ },
2361
+ query: {
2362
+ type: "string",
2363
+ description: 'Search query string that can include filters like status, priority, tags, assignee, etc. Examples - status:open, priority:high, tags:bug, assignee:user@example.com, or combination like "status:open priority:high"',
2364
+ },
2365
+ objectType: {
2366
+ type: "string",
2367
+ enum: ["ticket", "user", "organization", "group"],
2368
+ description: "The type of Zendesk object to search (defaults to ticket)",
2369
+ },
2370
+ limit: {
2371
+ type: "number",
2372
+ description: "Maximum number of objects to return (optional, defaults to 100)",
2373
+ },
2374
+ },
2375
+ },
2376
+ output: {
2377
+ type: "object",
2378
+ required: ["results", "count"],
2379
+ properties: {
2380
+ results: {
2381
+ type: "array",
2382
+ description: "List of objects matching the query",
2383
+ items: {
2384
+ type: "object",
2385
+ },
2386
+ },
2387
+ count: {
2388
+ type: "number",
2389
+ description: "Number of objects found",
2390
+ },
2391
+ },
2392
+ },
2393
+ name: "searchZendeskByQuery",
2394
+ provider: "zendesk",
2395
+ };
2350
2396
  export const linkedinCreateShareLinkedinPostUrlDefinition = {
2351
2397
  description: "Create a share linkedin post link",
2352
2398
  scopes: [],
@@ -10183,6 +10229,10 @@ export const gitlabSearchGroupDefinition = {
10183
10229
  type: "string",
10184
10230
  description: "The group ID of the project to search in",
10185
10231
  },
10232
+ project: {
10233
+ type: "string",
10234
+ description: "The name of the project to search in",
10235
+ },
10186
10236
  },
10187
10237
  },
10188
10238
  output: {
@@ -2201,6 +2201,35 @@ export type zendeskAssignTicketParamsType = z.infer<typeof zendeskAssignTicketPa
2201
2201
  export declare const zendeskAssignTicketOutputSchema: z.ZodVoid;
2202
2202
  export type zendeskAssignTicketOutputType = z.infer<typeof zendeskAssignTicketOutputSchema>;
2203
2203
  export type zendeskAssignTicketFunction = ActionFunction<zendeskAssignTicketParamsType, AuthParamsType, zendeskAssignTicketOutputType>;
2204
+ export declare const zendeskSearchZendeskByQueryParamsSchema: z.ZodObject<{
2205
+ subdomain: z.ZodString;
2206
+ query: z.ZodString;
2207
+ objectType: z.ZodOptional<z.ZodEnum<["ticket", "user", "organization", "group"]>>;
2208
+ limit: z.ZodOptional<z.ZodNumber>;
2209
+ }, "strip", z.ZodTypeAny, {
2210
+ query: string;
2211
+ subdomain: string;
2212
+ limit?: number | undefined;
2213
+ objectType?: "user" | "ticket" | "organization" | "group" | undefined;
2214
+ }, {
2215
+ query: string;
2216
+ subdomain: string;
2217
+ limit?: number | undefined;
2218
+ objectType?: "user" | "ticket" | "organization" | "group" | undefined;
2219
+ }>;
2220
+ export type zendeskSearchZendeskByQueryParamsType = z.infer<typeof zendeskSearchZendeskByQueryParamsSchema>;
2221
+ export declare const zendeskSearchZendeskByQueryOutputSchema: z.ZodObject<{
2222
+ results: z.ZodArray<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>, "many">;
2223
+ count: z.ZodNumber;
2224
+ }, "strip", z.ZodTypeAny, {
2225
+ results: z.objectOutputType<{}, z.ZodAny, "strip">[];
2226
+ count: number;
2227
+ }, {
2228
+ results: z.objectInputType<{}, z.ZodAny, "strip">[];
2229
+ count: number;
2230
+ }>;
2231
+ export type zendeskSearchZendeskByQueryOutputType = z.infer<typeof zendeskSearchZendeskByQueryOutputSchema>;
2232
+ export type zendeskSearchZendeskByQueryFunction = ActionFunction<zendeskSearchZendeskByQueryParamsType, AuthParamsType, zendeskSearchZendeskByQueryOutputType>;
2204
2233
  export declare const linkedinCreateShareLinkedinPostUrlParamsSchema: z.ZodObject<{
2205
2234
  text: z.ZodOptional<z.ZodString>;
2206
2235
  url: z.ZodOptional<z.ZodString>;
@@ -3971,11 +4000,11 @@ export declare const oktaGetOktaUserOutputSchema: z.ZodObject<{
3971
4000
  countryCode: z.ZodOptional<z.ZodString>;
3972
4001
  }, "strip", z.ZodTypeAny, {
3973
4002
  title?: string | undefined;
4003
+ organization?: string | undefined;
3974
4004
  email?: string | undefined;
3975
4005
  firstName?: string | undefined;
3976
4006
  lastName?: string | undefined;
3977
4007
  state?: string | undefined;
3978
- organization?: string | undefined;
3979
4008
  displayName?: string | undefined;
3980
4009
  login?: string | undefined;
3981
4010
  nickName?: string | undefined;
@@ -3995,11 +4024,11 @@ export declare const oktaGetOktaUserOutputSchema: z.ZodObject<{
3995
4024
  countryCode?: string | undefined;
3996
4025
  }, {
3997
4026
  title?: string | undefined;
4027
+ organization?: string | undefined;
3998
4028
  email?: string | undefined;
3999
4029
  firstName?: string | undefined;
4000
4030
  lastName?: string | undefined;
4001
4031
  state?: string | undefined;
4002
- organization?: string | undefined;
4003
4032
  displayName?: string | undefined;
4004
4033
  login?: string | undefined;
4005
4034
  nickName?: string | undefined;
@@ -4025,11 +4054,11 @@ export declare const oktaGetOktaUserOutputSchema: z.ZodObject<{
4025
4054
  status?: string | undefined;
4026
4055
  profile?: {
4027
4056
  title?: string | undefined;
4057
+ organization?: string | undefined;
4028
4058
  email?: string | undefined;
4029
4059
  firstName?: string | undefined;
4030
4060
  lastName?: string | undefined;
4031
4061
  state?: string | undefined;
4032
- organization?: string | undefined;
4033
4062
  displayName?: string | undefined;
4034
4063
  login?: string | undefined;
4035
4064
  nickName?: string | undefined;
@@ -4061,11 +4090,11 @@ export declare const oktaGetOktaUserOutputSchema: z.ZodObject<{
4061
4090
  status?: string | undefined;
4062
4091
  profile?: {
4063
4092
  title?: string | undefined;
4093
+ organization?: string | undefined;
4064
4094
  email?: string | undefined;
4065
4095
  firstName?: string | undefined;
4066
4096
  lastName?: string | undefined;
4067
4097
  state?: string | undefined;
4068
- organization?: string | undefined;
4069
4098
  displayName?: string | undefined;
4070
4099
  login?: string | undefined;
4071
4100
  nickName?: string | undefined;
@@ -4102,11 +4131,11 @@ export declare const oktaGetOktaUserOutputSchema: z.ZodObject<{
4102
4131
  status?: string | undefined;
4103
4132
  profile?: {
4104
4133
  title?: string | undefined;
4134
+ organization?: string | undefined;
4105
4135
  email?: string | undefined;
4106
4136
  firstName?: string | undefined;
4107
4137
  lastName?: string | undefined;
4108
4138
  state?: string | undefined;
4109
- organization?: string | undefined;
4110
4139
  displayName?: string | undefined;
4111
4140
  login?: string | undefined;
4112
4141
  nickName?: string | undefined;
@@ -4142,11 +4171,11 @@ export declare const oktaGetOktaUserOutputSchema: z.ZodObject<{
4142
4171
  status?: string | undefined;
4143
4172
  profile?: {
4144
4173
  title?: string | undefined;
4174
+ organization?: string | undefined;
4145
4175
  email?: string | undefined;
4146
4176
  firstName?: string | undefined;
4147
4177
  lastName?: string | undefined;
4148
4178
  state?: string | undefined;
4149
- organization?: string | undefined;
4150
4179
  displayName?: string | undefined;
4151
4180
  login?: string | undefined;
4152
4181
  nickName?: string | undefined;
@@ -6958,12 +6987,15 @@ export type jamfLockJamfComputerByIdFunction = ActionFunction<jamfLockJamfComput
6958
6987
  export declare const gitlabSearchGroupParamsSchema: z.ZodObject<{
6959
6988
  query: z.ZodString;
6960
6989
  groupId: z.ZodString;
6990
+ project: z.ZodOptional<z.ZodString>;
6961
6991
  }, "strip", z.ZodTypeAny, {
6962
6992
  query: string;
6963
6993
  groupId: string;
6994
+ project?: string | undefined;
6964
6995
  }, {
6965
6996
  query: string;
6966
6997
  groupId: string;
6998
+ project?: string | undefined;
6967
6999
  }>;
6968
7000
  export type gitlabSearchGroupParamsType = z.infer<typeof gitlabSearchGroupParamsSchema>;
6969
7001
  export declare const gitlabSearchGroupOutputSchema: z.ZodObject<{
@@ -723,6 +723,21 @@ export const zendeskAssignTicketParamsSchema = z.object({
723
723
  assigneeEmail: z.string().describe("The email address of the agent to assign the ticket to"),
724
724
  });
725
725
  export const zendeskAssignTicketOutputSchema = z.void();
726
+ export const zendeskSearchZendeskByQueryParamsSchema = z.object({
727
+ subdomain: z.string().describe("The subdomain of the Zendesk account"),
728
+ query: z
729
+ .string()
730
+ .describe('Search query string that can include filters like status, priority, tags, assignee, etc. Examples - status:open, priority:high, tags:bug, assignee:user@example.com, or combination like "status:open priority:high"'),
731
+ objectType: z
732
+ .enum(["ticket", "user", "organization", "group"])
733
+ .describe("The type of Zendesk object to search (defaults to ticket)")
734
+ .optional(),
735
+ limit: z.number().describe("Maximum number of objects to return (optional, defaults to 100)").optional(),
736
+ });
737
+ export const zendeskSearchZendeskByQueryOutputSchema = z.object({
738
+ results: z.array(z.object({}).catchall(z.any())).describe("List of objects matching the query"),
739
+ count: z.number().describe("Number of objects found"),
740
+ });
726
741
  export const linkedinCreateShareLinkedinPostUrlParamsSchema = z.object({
727
742
  text: z.string().describe("The text for the linkedin post").optional(),
728
743
  url: z.string().describe("The url for the linkedin post").optional(),
@@ -3532,6 +3547,7 @@ export const jamfLockJamfComputerByIdOutputSchema = z.object({
3532
3547
  export const gitlabSearchGroupParamsSchema = z.object({
3533
3548
  query: z.string().describe("The query that will be used to search gitlab blobs and merge requests"),
3534
3549
  groupId: z.string().describe("The group ID of the project to search in"),
3550
+ project: z.string().describe("The name of the project to search in").optional(),
3535
3551
  });
3536
3552
  export const gitlabSearchGroupOutputSchema = z.object({
3537
3553
  mergeRequests: z
@@ -21,9 +21,7 @@ function createProjectPathCache() {
21
21
  }
22
22
  function gitlabFetch(endpoint, authToken) {
23
23
  return __awaiter(this, void 0, void 0, function* () {
24
- const res = yield fetch(endpoint, {
25
- headers: { Authorization: `Bearer ${authToken}` },
26
- });
24
+ const res = yield fetch(endpoint, { headers: { Authorization: `Bearer ${authToken}` } });
27
25
  if (!res.ok)
28
26
  throw new Error(`GitLab API error: ${res.status} ${res.statusText}`);
29
27
  return res.json();
@@ -54,35 +52,15 @@ function constructBlobUrl(input) {
54
52
  }
55
53
  function enhanceBlobWithUrl(blob, authToken, baseUrl, gitlabWebBaseUrl, projectPathCache) {
56
54
  return __awaiter(this, void 0, void 0, function* () {
57
- try {
58
- const projectPath = yield getProjectPath(blob.project_id, authToken, baseUrl, projectPathCache);
59
- const web_url = constructBlobUrl({
60
- baseUrl: gitlabWebBaseUrl,
61
- projectPath,
62
- ref: blob.ref,
63
- path: blob.path,
64
- startline: blob.startline,
65
- });
66
- return Object.assign(Object.assign({}, blob), { web_url });
67
- }
68
- catch (error) {
69
- console.warn(`Failed to construct URL for blob in project ${blob.project_id}:`, error);
70
- const fallbackUrl = constructBlobUrl({
71
- baseUrl: gitlabWebBaseUrl,
72
- projectPath: `project-${blob.project_id}`,
73
- ref: blob.ref,
74
- path: blob.path,
75
- startline: blob.startline,
76
- });
77
- return Object.assign(Object.assign({}, blob), { web_url: fallbackUrl });
78
- }
79
- });
80
- }
81
- function globalSearch(input) {
82
- return __awaiter(this, void 0, void 0, function* () {
83
- const { scope, query, groupId, authToken, baseUrl } = input;
84
- const endpoint = `${baseUrl}/groups/${encodeURIComponent(groupId)}/search?scope=${scope}&search=${encodeURIComponent(query)}`;
85
- return gitlabFetch(endpoint, authToken);
55
+ const projectPath = yield getProjectPath(blob.project_id, authToken, baseUrl, projectPathCache);
56
+ const web_url = constructBlobUrl({
57
+ baseUrl: gitlabWebBaseUrl,
58
+ projectPath,
59
+ ref: blob.ref,
60
+ path: blob.path,
61
+ startline: blob.startline,
62
+ });
63
+ return Object.assign(Object.assign({}, blob), { web_url });
86
64
  });
87
65
  }
88
66
  function getCommitDetails(input) {
@@ -95,10 +73,7 @@ function getCommitDetails(input) {
95
73
  sha: commit.id,
96
74
  web_url: `${webBaseUrl}/${projectPath}/-/commit/${commit.id}`,
97
75
  message: commit.message,
98
- author: {
99
- name: commit.author_name,
100
- email: commit.author_email,
101
- },
76
+ author: { name: commit.author_name, email: commit.author_email },
102
77
  created_at: commit.created_at,
103
78
  files: (diffs || []).slice(0, MAX_FILES_PER_COMMIT).map(diff => ({
104
79
  old_path: diff.old_path,
@@ -114,40 +89,28 @@ const searchGroup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params,
114
89
  const gitlabBaseApiUrl = `${gitlabBaseUrl}/api/v4`;
115
90
  if (!authToken)
116
91
  throw new Error(MISSING_AUTH_TOKEN);
117
- const { query, groupId } = params;
92
+ const { query, groupId, project } = params;
118
93
  const projectPathCache = createProjectPathCache();
119
- // --- Top-level: run all searches in parallel
94
+ const fullProjectPath = project ? `${groupId}/${project}` : undefined;
95
+ const encodedGroup = encodeURIComponent(groupId);
96
+ const fetchSearchResults = (scope) => __awaiter(void 0, void 0, void 0, function* () {
97
+ const endpoint = fullProjectPath
98
+ ? `${gitlabBaseApiUrl}/projects/${encodeURIComponent(fullProjectPath)}/search?scope=${scope}&search=${encodeURIComponent(query)}`
99
+ : `${gitlabBaseApiUrl}/groups/${encodedGroup}/search?scope=${scope}&search=${encodeURIComponent(query)}`;
100
+ return gitlabFetch(endpoint, authToken);
101
+ });
120
102
  const [mrResults, blobResults, commitResults] = yield Promise.all([
121
- globalSearch({
122
- scope: "merge_requests",
123
- query,
124
- groupId,
125
- authToken,
126
- baseUrl: gitlabBaseApiUrl,
127
- }),
128
- globalSearch({
129
- scope: "blobs",
130
- query,
131
- groupId,
132
- authToken,
133
- baseUrl: gitlabBaseApiUrl,
134
- }),
135
- globalSearch({
136
- scope: "commits",
137
- query,
138
- groupId,
139
- authToken,
140
- baseUrl: gitlabBaseApiUrl,
141
- }),
103
+ fetchSearchResults("merge_requests"),
104
+ fetchSearchResults("blobs"),
105
+ fetchSearchResults("commits"),
142
106
  ]);
143
- // --- Merge Requests: diffs in parallel
144
107
  const limitedMRResults = mrResults.slice(0, MAX_ISSUES_OR_PRS);
145
108
  const mergeRequests = yield Promise.all(limitedMRResults.map((metadata) => __awaiter(void 0, void 0, void 0, function* () {
146
- let diffs = yield gitlabFetch(`${gitlabBaseApiUrl}/projects/${metadata.project_id}/merge_requests/${metadata.iid}/diffs`, authToken);
109
+ const endpoint = `${gitlabBaseApiUrl}/projects/${metadata.project_id}/merge_requests/${metadata.iid}/diffs`;
110
+ let diffs = yield gitlabFetch(endpoint, authToken);
147
111
  diffs = (diffs || []).slice(0, MAX_FILES_PER_PR).map(diff => (Object.assign(Object.assign({}, diff), { diff: diff.diff ? diff.diff.split("\n").slice(0, MAX_PATCH_LINES).join("\n") : diff.diff })));
148
112
  return { metadata, diffs };
149
113
  })));
150
- // --- Blobs: enhance with URL in parallel
151
114
  const limitedBlobResults = blobResults.slice(0, MAX_CODE_RESULTS);
152
115
  const blobsWithUrls = yield Promise.all(limitedBlobResults.map(blob => enhanceBlobWithUrl(blob, authToken, gitlabBaseApiUrl, gitlabBaseUrl, projectPathCache)));
153
116
  const blobs = blobsWithUrls.map(blob => {
@@ -164,7 +127,6 @@ const searchGroup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params,
164
127
  matchedMergeRequests: matches,
165
128
  };
166
129
  });
167
- // --- Commits: details in parallel
168
130
  const limitedCommitResults = commitResults.slice(0, MAX_COMMITS);
169
131
  const commits = yield Promise.all(limitedCommitResults.map(commit => getCommitDetails({
170
132
  projectId: commit.project_id,
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { axiosClient } from "../../util/axiosClient.js";
10
+ import { axiosClientWithRetries } from "../../util/axiosClient.js";
11
11
  import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
12
  const getZendeskTicketDetails = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
13
  const { authToken } = authParams;
@@ -16,7 +16,7 @@ const getZendeskTicketDetails = (_a) => __awaiter(void 0, [_a], void 0, function
16
16
  if (!authToken) {
17
17
  throw new Error(MISSING_AUTH_TOKEN);
18
18
  }
19
- const response = yield axiosClient.request({
19
+ const response = yield axiosClientWithRetries.request({
20
20
  url: url,
21
21
  method: "GET",
22
22
  headers: {
@@ -0,0 +1,3 @@
1
+ import type { zendeskSearchZendeskByQueryFunction } from "../../autogen/types.js";
2
+ declare const searchZendeskByQuery: zendeskSearchZendeskByQueryFunction;
3
+ export default searchZendeskByQuery;
@@ -0,0 +1,35 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { axiosClient } from "../../util/axiosClient.js";
11
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
+ const searchZendeskByQuery = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
+ const { authToken } = authParams;
14
+ const { subdomain, query, objectType = "ticket", limit = 100 } = params;
15
+ // Endpoint for searching Zendesk objects
16
+ const url = `https://${subdomain}.zendesk.com/api/v2/search.json`;
17
+ if (!authToken) {
18
+ throw new Error(MISSING_AUTH_TOKEN);
19
+ }
20
+ // Build search query parameters
21
+ const queryParams = new URLSearchParams();
22
+ queryParams.append("query", `type:${objectType} ${query}`);
23
+ queryParams.append("per_page", limit.toString());
24
+ const response = yield axiosClient.get(`${url}?${queryParams.toString()}`, {
25
+ headers: {
26
+ "Content-Type": "application/json",
27
+ Authorization: `Bearer ${authToken}`,
28
+ },
29
+ });
30
+ return {
31
+ results: response.data.results,
32
+ count: response.data.count,
33
+ };
34
+ });
35
+ export default searchZendeskByQuery;
@@ -7,3 +7,4 @@ export declare class ApiError extends Error {
7
7
  export declare function isAxiosTimeoutError(error: unknown): boolean;
8
8
  export declare const axiosClient: AxiosInstance;
9
9
  export declare function createAxiosClientWithTimeout(timeout: number): AxiosInstance;
10
+ export declare const axiosClientWithRetries: AxiosInstance;
@@ -1,4 +1,5 @@
1
1
  import axios from "axios";
2
+ import axiosRetry from "axios-retry";
2
3
  export class ApiError extends Error {
3
4
  constructor(message, status, data) {
4
5
  super(message);
@@ -44,3 +45,18 @@ export const axiosClient = createAxiosClient();
44
45
  export function createAxiosClientWithTimeout(timeout) {
45
46
  return createAxiosClient(timeout);
46
47
  }
48
+ function createAxiosClientWithRetries(timeout) {
49
+ const instance = createAxiosClient(timeout);
50
+ axiosRetry(instance, {
51
+ retries: 3,
52
+ retryDelay: axiosRetry.exponentialDelay,
53
+ retryCondition: error => {
54
+ if (axiosRetry.isNetworkError(error) || !error.response)
55
+ return true;
56
+ const status = error.response.status;
57
+ return status === 408 || status === 429 || status >= 500;
58
+ },
59
+ });
60
+ return instance;
61
+ }
62
+ export const axiosClientWithRetries = createAxiosClientWithRetries();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.67",
3
+ "version": "0.2.69",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,
@@ -54,6 +54,7 @@
54
54
  "@slack/web-api": "^7.8.0",
55
55
  "@types/snowflake-sdk": "^1.6.24",
56
56
  "ajv": "^8.17.1",
57
+ "axios-retry": "^4.5.0",
57
58
  "date-fns": "^4.1.0",
58
59
  "docx": "^9.3.0",
59
60
  "dotenv": "^16.4.7",