@credal/actions 0.1.75 → 0.1.77

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.
@@ -81,6 +81,7 @@ const getTopNSearchResultUrls_1 = __importDefault(require("./providers/bing/getT
81
81
  const getGongTranscripts_1 = __importDefault(require("./providers/gong/getGongTranscripts"));
82
82
  const types_2 = require("./autogen/types");
83
83
  const getFVRecoveryKeyForDevice_1 = __importDefault(require("./providers/kandji/getFVRecoveryKeyForDevice"));
84
+ const listAsanaTasksByProject_1 = __importDefault(require("./providers/asana/listAsanaTasksByProject"));
84
85
  exports.ActionMapper = {
85
86
  generic: {
86
87
  fillTemplate: {
@@ -105,6 +106,11 @@ exports.ActionMapper = {
105
106
  paramsSchema: types_1.asanaUpdateTaskParamsSchema,
106
107
  outputSchema: types_1.asanaUpdateTaskOutputSchema,
107
108
  },
109
+ listAsanaTasksByProject: {
110
+ fn: listAsanaTasksByProject_1.default,
111
+ paramsSchema: types_1.asanaListAsanaTasksByProjectParamsSchema,
112
+ outputSchema: types_1.asanaListAsanaTasksByProjectOutputSchema,
113
+ },
108
114
  },
109
115
  math: {
110
116
  add: {
@@ -1,6 +1,7 @@
1
1
  import { ActionTemplate } from "../../actions/parse";
2
2
  export declare const genericFillTemplateDefinition: ActionTemplate;
3
3
  export declare const asanaCommentTaskDefinition: ActionTemplate;
4
+ export declare const asanaListAsanaTasksByProjectDefinition: ActionTemplate;
4
5
  export declare const asanaCreateTaskDefinition: ActionTemplate;
5
6
  export declare const asanaUpdateTaskDefinition: ActionTemplate;
6
7
  export declare const slackSendMessageDefinition: ActionTemplate;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.gongGetGongTranscriptsDefinition = exports.googleOauthUpdatePresentationDefinition = exports.googleOauthCreatePresentationDefinition = exports.googleOauthUpdateSpreadsheetDefinition = exports.googleOauthCreateSpreadsheetDefinition = exports.googleOauthScheduleCalendarMeetingDefinition = exports.googleOauthUpdateDocDefinition = exports.googleOauthCreateNewGoogleDocDefinition = exports.resendSendEmailDefinition = exports.firecrawlScrapeTweetDataWithNitterDefinition = exports.firecrawlScrapeUrlDefinition = exports.firecrawlDeepResearchDefinition = exports.nwsGetForecastForLocationDefinition = exports.openstreetmapGetLatitudeLongitudeFromLocationDefinition = exports.snowflakeRunSnowflakeQueryDefinition = exports.snowflakeGetRowByFieldValueDefinition = exports.mongoInsertMongoDocDefinition = exports.xCreateShareXPostUrlDefinition = exports.linkedinCreateShareLinkedinPostUrlDefinition = exports.zendeskAssignTicketDefinition = exports.zendeskAddCommentToTicketDefinition = exports.zendeskUpdateTicketStatusDefinition = exports.zendeskGetTicketDetailsDefinition = exports.zendeskListZendeskTicketsDefinition = exports.zendeskCreateZendeskTicketDefinition = exports.credalCallCopilotDefinition = exports.bingGetTopNSearchResultUrlsDefinition = exports.googlemapsNearbysearchRestaurantsDefinition = exports.googlemapsValidateAddressDefinition = exports.kandjiGetFVRecoveryKeyForDeviceDefinition = exports.jiraGetJiraIssuesByQueryDefinition = exports.jiraUpdateJiraTicketStatusDefinition = exports.jiraUpdateJiraTicketDetailsDefinition = exports.jiraGetJiraTicketHistoryDefinition = exports.jiraGetJiraTicketDetailsDefinition = exports.jiraCreateJiraTicketDefinition = exports.jiraCommentJiraTicketDefinition = exports.jiraAssignJiraTicketDefinition = exports.confluenceFetchPageContentDefinition = exports.confluenceOverwritePageDefinition = exports.mathAddDefinition = exports.slackGetChannelMessagesDefinition = exports.slackSendMessageDefinition = exports.asanaUpdateTaskDefinition = exports.asanaCreateTaskDefinition = exports.asanaCommentTaskDefinition = exports.genericFillTemplateDefinition = void 0;
4
- exports.githubListPullRequestsDefinition = exports.githubCreatePullRequestDefinition = exports.githubCreateBranchDefinition = exports.githubCreateOrUpdateFileDefinition = exports.microsoftGetDocumentDefinition = exports.microsoftMessageTeamsChannelDefinition = exports.microsoftMessageTeamsChatDefinition = exports.microsoftUpdateSpreadsheetDefinition = exports.microsoftUpdateDocumentDefinition = exports.microsoftCreateDocumentDefinition = exports.salesforceFetchSalesforceSchemaByObjectDefinition = exports.salesforceGetRecordDefinition = exports.salesforceGetSalesforceRecordsByQueryDefinition = exports.salesforceGenerateSalesReportDefinition = exports.salesforceCreateCaseDefinition = exports.salesforceCreateRecordDefinition = exports.salesforceUpdateRecordDefinition = exports.ashbyUpdateCandidateDefinition = exports.ashbyCreateCandidateDefinition = exports.ashbyListCandidateNotesDefinition = exports.ashbySearchCandidatesDefinition = exports.ashbyListCandidatesDefinition = exports.ashbyAddCandidateToProjectDefinition = exports.ashbyGetCandidateInfoDefinition = exports.ashbyCreateNoteDefinition = void 0;
3
+ exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.gongGetGongTranscriptsDefinition = exports.googleOauthUpdatePresentationDefinition = exports.googleOauthCreatePresentationDefinition = exports.googleOauthUpdateSpreadsheetDefinition = exports.googleOauthCreateSpreadsheetDefinition = exports.googleOauthScheduleCalendarMeetingDefinition = exports.googleOauthUpdateDocDefinition = exports.googleOauthCreateNewGoogleDocDefinition = exports.resendSendEmailDefinition = exports.firecrawlScrapeTweetDataWithNitterDefinition = exports.firecrawlScrapeUrlDefinition = exports.firecrawlDeepResearchDefinition = exports.nwsGetForecastForLocationDefinition = exports.openstreetmapGetLatitudeLongitudeFromLocationDefinition = exports.snowflakeRunSnowflakeQueryDefinition = exports.snowflakeGetRowByFieldValueDefinition = exports.mongoInsertMongoDocDefinition = exports.xCreateShareXPostUrlDefinition = exports.linkedinCreateShareLinkedinPostUrlDefinition = exports.zendeskAssignTicketDefinition = exports.zendeskAddCommentToTicketDefinition = exports.zendeskUpdateTicketStatusDefinition = exports.zendeskGetTicketDetailsDefinition = exports.zendeskListZendeskTicketsDefinition = exports.zendeskCreateZendeskTicketDefinition = exports.credalCallCopilotDefinition = exports.bingGetTopNSearchResultUrlsDefinition = exports.googlemapsNearbysearchRestaurantsDefinition = exports.googlemapsValidateAddressDefinition = exports.kandjiGetFVRecoveryKeyForDeviceDefinition = exports.jiraGetJiraIssuesByQueryDefinition = exports.jiraUpdateJiraTicketStatusDefinition = exports.jiraUpdateJiraTicketDetailsDefinition = exports.jiraGetJiraTicketHistoryDefinition = exports.jiraGetJiraTicketDetailsDefinition = exports.jiraCreateJiraTicketDefinition = exports.jiraCommentJiraTicketDefinition = exports.jiraAssignJiraTicketDefinition = exports.confluenceFetchPageContentDefinition = exports.confluenceOverwritePageDefinition = exports.mathAddDefinition = exports.slackGetChannelMessagesDefinition = exports.slackSendMessageDefinition = exports.asanaUpdateTaskDefinition = exports.asanaCreateTaskDefinition = exports.asanaListAsanaTasksByProjectDefinition = exports.asanaCommentTaskDefinition = exports.genericFillTemplateDefinition = void 0;
4
+ exports.githubListPullRequestsDefinition = exports.githubCreatePullRequestDefinition = exports.githubCreateBranchDefinition = exports.githubCreateOrUpdateFileDefinition = exports.microsoftGetDocumentDefinition = exports.microsoftMessageTeamsChannelDefinition = exports.microsoftMessageTeamsChatDefinition = exports.microsoftUpdateSpreadsheetDefinition = exports.microsoftUpdateDocumentDefinition = exports.microsoftCreateDocumentDefinition = exports.salesforceFetchSalesforceSchemaByObjectDefinition = exports.salesforceGetRecordDefinition = exports.salesforceGetSalesforceRecordsByQueryDefinition = exports.salesforceGenerateSalesReportDefinition = exports.salesforceCreateCaseDefinition = exports.salesforceCreateRecordDefinition = exports.salesforceUpdateRecordDefinition = exports.ashbyUpdateCandidateDefinition = exports.ashbyCreateCandidateDefinition = exports.ashbyListCandidateNotesDefinition = exports.ashbySearchCandidatesDefinition = exports.ashbyListCandidatesDefinition = exports.ashbyAddCandidateToProjectDefinition = exports.ashbyGetCandidateInfoDefinition = exports.ashbyCreateNoteDefinition = exports.lookerEnableUserByEmailDefinition = void 0;
5
5
  exports.genericFillTemplateDefinition = {
6
6
  description: "Simple utility that takes a template and returns it filled in",
7
7
  scopes: [],
@@ -70,6 +70,180 @@ exports.asanaCommentTaskDefinition = {
70
70
  name: "commentTask",
71
71
  provider: "asana",
72
72
  };
73
+ exports.asanaListAsanaTasksByProjectDefinition = {
74
+ description: "List all tasks associated with an Asana project and their data",
75
+ scopes: [],
76
+ parameters: {
77
+ type: "object",
78
+ required: ["projectId"],
79
+ properties: {
80
+ projectId: {
81
+ type: "string",
82
+ description: "Project gid the tasks belong to",
83
+ },
84
+ },
85
+ },
86
+ output: {
87
+ type: "object",
88
+ required: ["success"],
89
+ properties: {
90
+ error: {
91
+ type: "string",
92
+ description: "Error if task retrieval was unsuccessful",
93
+ },
94
+ success: {
95
+ type: "boolean",
96
+ description: "Whether task retrieval was successful",
97
+ },
98
+ tasks: {
99
+ type: "array",
100
+ description: "The list of tasks in the project",
101
+ items: {
102
+ type: "object",
103
+ description: "A task in the project",
104
+ required: ["task"],
105
+ properties: {
106
+ task: {
107
+ type: "object",
108
+ properties: {
109
+ name: {
110
+ type: "string",
111
+ },
112
+ resource_type: {
113
+ type: "string",
114
+ },
115
+ completed: {
116
+ type: "boolean",
117
+ },
118
+ modified_at: {
119
+ type: "string",
120
+ },
121
+ notes: {
122
+ type: "string",
123
+ },
124
+ custom_fields: {
125
+ type: "array",
126
+ items: {
127
+ type: "object",
128
+ properties: {
129
+ gid: {
130
+ type: "string",
131
+ },
132
+ name: {
133
+ type: "string",
134
+ },
135
+ display_value: {
136
+ type: "string",
137
+ },
138
+ },
139
+ },
140
+ },
141
+ num_subtasks: {
142
+ type: "number",
143
+ },
144
+ },
145
+ },
146
+ subtasks: {
147
+ type: "array",
148
+ nullable: true,
149
+ items: {
150
+ type: "object",
151
+ properties: {
152
+ name: {
153
+ type: "string",
154
+ },
155
+ resource_type: {
156
+ type: "string",
157
+ },
158
+ completed: {
159
+ type: "boolean",
160
+ },
161
+ modified_at: {
162
+ type: "string",
163
+ },
164
+ notes: {
165
+ type: "string",
166
+ },
167
+ assignee: {
168
+ type: "string",
169
+ },
170
+ custom_fields: {
171
+ type: "array",
172
+ items: {
173
+ type: "object",
174
+ properties: {
175
+ gid: {
176
+ type: "string",
177
+ },
178
+ name: {
179
+ type: "string",
180
+ },
181
+ enum_options: {
182
+ type: "array",
183
+ items: {
184
+ type: "object",
185
+ properties: {
186
+ gid: {
187
+ type: "string",
188
+ },
189
+ name: {
190
+ type: "string",
191
+ },
192
+ },
193
+ },
194
+ },
195
+ },
196
+ },
197
+ },
198
+ num_subtasks: {
199
+ type: "number",
200
+ },
201
+ },
202
+ },
203
+ },
204
+ taskStories: {
205
+ type: "array",
206
+ nullable: true,
207
+ items: {
208
+ type: "object",
209
+ properties: {
210
+ gid: {
211
+ type: "string",
212
+ },
213
+ created_at: {
214
+ type: "string",
215
+ },
216
+ text: {
217
+ type: "string",
218
+ },
219
+ resource_type: {
220
+ type: "string",
221
+ },
222
+ created_by: {
223
+ type: "object",
224
+ properties: {
225
+ gid: {
226
+ type: "string",
227
+ },
228
+ name: {
229
+ type: "string",
230
+ },
231
+ resource_type: {
232
+ type: "string",
233
+ },
234
+ },
235
+ },
236
+ },
237
+ },
238
+ },
239
+ },
240
+ },
241
+ },
242
+ },
243
+ },
244
+ name: "listAsanaTasksByProject",
245
+ provider: "asana",
246
+ };
73
247
  exports.asanaCreateTaskDefinition = {
74
248
  description: "Create an Asana task with specified content using optional template",
75
249
  scopes: [],
@@ -717,12 +891,16 @@ exports.kandjiGetFVRecoveryKeyForDeviceDefinition = {
717
891
  scopes: [],
718
892
  parameters: {
719
893
  type: "object",
720
- required: ["serialNumber"],
894
+ required: ["serialNumber", "subdomain"],
721
895
  properties: {
722
896
  serialNumber: {
723
897
  type: "string",
724
898
  description: "The serial number of the device",
725
899
  },
900
+ subdomain: {
901
+ type: "string",
902
+ description: "The subdomain of the Kandji account",
903
+ },
726
904
  },
727
905
  },
728
906
  output: {
@@ -108,6 +108,351 @@ export declare const asanaCommentTaskOutputSchema: z.ZodObject<{
108
108
  }>;
109
109
  export type asanaCommentTaskOutputType = z.infer<typeof asanaCommentTaskOutputSchema>;
110
110
  export type asanaCommentTaskFunction = ActionFunction<asanaCommentTaskParamsType, AuthParamsType, asanaCommentTaskOutputType>;
111
+ export declare const asanaListAsanaTasksByProjectParamsSchema: z.ZodObject<{
112
+ projectId: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ projectId: string;
115
+ }, {
116
+ projectId: string;
117
+ }>;
118
+ export type asanaListAsanaTasksByProjectParamsType = z.infer<typeof asanaListAsanaTasksByProjectParamsSchema>;
119
+ export declare const asanaListAsanaTasksByProjectOutputSchema: z.ZodObject<{
120
+ error: z.ZodOptional<z.ZodString>;
121
+ success: z.ZodBoolean;
122
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
123
+ task: z.ZodObject<{
124
+ name: z.ZodOptional<z.ZodString>;
125
+ resource_type: z.ZodOptional<z.ZodString>;
126
+ completed: z.ZodOptional<z.ZodBoolean>;
127
+ modified_at: z.ZodOptional<z.ZodString>;
128
+ notes: z.ZodOptional<z.ZodString>;
129
+ custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
+ gid: z.ZodOptional<z.ZodString>;
131
+ name: z.ZodOptional<z.ZodString>;
132
+ display_value: z.ZodOptional<z.ZodString>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ name?: string | undefined;
135
+ gid?: string | undefined;
136
+ display_value?: string | undefined;
137
+ }, {
138
+ name?: string | undefined;
139
+ gid?: string | undefined;
140
+ display_value?: string | undefined;
141
+ }>, "many">>;
142
+ num_subtasks: z.ZodOptional<z.ZodNumber>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ name?: string | undefined;
145
+ completed?: boolean | undefined;
146
+ notes?: string | undefined;
147
+ resource_type?: string | undefined;
148
+ modified_at?: string | undefined;
149
+ custom_fields?: {
150
+ name?: string | undefined;
151
+ gid?: string | undefined;
152
+ display_value?: string | undefined;
153
+ }[] | undefined;
154
+ num_subtasks?: number | undefined;
155
+ }, {
156
+ name?: string | undefined;
157
+ completed?: boolean | undefined;
158
+ notes?: string | undefined;
159
+ resource_type?: string | undefined;
160
+ modified_at?: string | undefined;
161
+ custom_fields?: {
162
+ name?: string | undefined;
163
+ gid?: string | undefined;
164
+ display_value?: string | undefined;
165
+ }[] | undefined;
166
+ num_subtasks?: number | undefined;
167
+ }>;
168
+ subtasks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
169
+ name: z.ZodOptional<z.ZodString>;
170
+ resource_type: z.ZodOptional<z.ZodString>;
171
+ completed: z.ZodOptional<z.ZodBoolean>;
172
+ modified_at: z.ZodOptional<z.ZodString>;
173
+ notes: z.ZodOptional<z.ZodString>;
174
+ assignee: z.ZodOptional<z.ZodString>;
175
+ custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
176
+ gid: z.ZodOptional<z.ZodString>;
177
+ name: z.ZodOptional<z.ZodString>;
178
+ enum_options: z.ZodOptional<z.ZodArray<z.ZodObject<{
179
+ gid: z.ZodOptional<z.ZodString>;
180
+ name: z.ZodOptional<z.ZodString>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ name?: string | undefined;
183
+ gid?: string | undefined;
184
+ }, {
185
+ name?: string | undefined;
186
+ gid?: string | undefined;
187
+ }>, "many">>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ name?: string | undefined;
190
+ gid?: string | undefined;
191
+ enum_options?: {
192
+ name?: string | undefined;
193
+ gid?: string | undefined;
194
+ }[] | undefined;
195
+ }, {
196
+ name?: string | undefined;
197
+ gid?: string | undefined;
198
+ enum_options?: {
199
+ name?: string | undefined;
200
+ gid?: string | undefined;
201
+ }[] | undefined;
202
+ }>, "many">>;
203
+ num_subtasks: z.ZodOptional<z.ZodNumber>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ name?: string | undefined;
206
+ assignee?: string | undefined;
207
+ completed?: boolean | undefined;
208
+ notes?: string | undefined;
209
+ resource_type?: string | undefined;
210
+ modified_at?: string | undefined;
211
+ custom_fields?: {
212
+ name?: string | undefined;
213
+ gid?: string | undefined;
214
+ enum_options?: {
215
+ name?: string | undefined;
216
+ gid?: string | undefined;
217
+ }[] | undefined;
218
+ }[] | undefined;
219
+ num_subtasks?: number | undefined;
220
+ }, {
221
+ name?: string | undefined;
222
+ assignee?: string | undefined;
223
+ completed?: boolean | undefined;
224
+ notes?: string | undefined;
225
+ resource_type?: string | undefined;
226
+ modified_at?: string | undefined;
227
+ custom_fields?: {
228
+ name?: string | undefined;
229
+ gid?: string | undefined;
230
+ enum_options?: {
231
+ name?: string | undefined;
232
+ gid?: string | undefined;
233
+ }[] | undefined;
234
+ }[] | undefined;
235
+ num_subtasks?: number | undefined;
236
+ }>, "many">>>;
237
+ taskStories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
238
+ gid: z.ZodOptional<z.ZodString>;
239
+ created_at: z.ZodOptional<z.ZodString>;
240
+ text: z.ZodOptional<z.ZodString>;
241
+ resource_type: z.ZodOptional<z.ZodString>;
242
+ created_by: z.ZodOptional<z.ZodObject<{
243
+ gid: z.ZodOptional<z.ZodString>;
244
+ name: z.ZodOptional<z.ZodString>;
245
+ resource_type: z.ZodOptional<z.ZodString>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ name?: string | undefined;
248
+ resource_type?: string | undefined;
249
+ gid?: string | undefined;
250
+ }, {
251
+ name?: string | undefined;
252
+ resource_type?: string | undefined;
253
+ gid?: string | undefined;
254
+ }>>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ text?: string | undefined;
257
+ resource_type?: string | undefined;
258
+ gid?: string | undefined;
259
+ created_at?: string | undefined;
260
+ created_by?: {
261
+ name?: string | undefined;
262
+ resource_type?: string | undefined;
263
+ gid?: string | undefined;
264
+ } | undefined;
265
+ }, {
266
+ text?: string | undefined;
267
+ resource_type?: string | undefined;
268
+ gid?: string | undefined;
269
+ created_at?: string | undefined;
270
+ created_by?: {
271
+ name?: string | undefined;
272
+ resource_type?: string | undefined;
273
+ gid?: string | undefined;
274
+ } | undefined;
275
+ }>, "many">>>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ task: {
278
+ name?: string | undefined;
279
+ completed?: boolean | undefined;
280
+ notes?: string | undefined;
281
+ resource_type?: string | undefined;
282
+ modified_at?: string | undefined;
283
+ custom_fields?: {
284
+ name?: string | undefined;
285
+ gid?: string | undefined;
286
+ display_value?: string | undefined;
287
+ }[] | undefined;
288
+ num_subtasks?: number | undefined;
289
+ };
290
+ subtasks?: {
291
+ name?: string | undefined;
292
+ assignee?: string | undefined;
293
+ completed?: boolean | undefined;
294
+ notes?: string | undefined;
295
+ resource_type?: string | undefined;
296
+ modified_at?: string | undefined;
297
+ custom_fields?: {
298
+ name?: string | undefined;
299
+ gid?: string | undefined;
300
+ enum_options?: {
301
+ name?: string | undefined;
302
+ gid?: string | undefined;
303
+ }[] | undefined;
304
+ }[] | undefined;
305
+ num_subtasks?: number | undefined;
306
+ }[] | null | undefined;
307
+ taskStories?: {
308
+ text?: string | undefined;
309
+ resource_type?: string | undefined;
310
+ gid?: string | undefined;
311
+ created_at?: string | undefined;
312
+ created_by?: {
313
+ name?: string | undefined;
314
+ resource_type?: string | undefined;
315
+ gid?: string | undefined;
316
+ } | undefined;
317
+ }[] | null | undefined;
318
+ }, {
319
+ task: {
320
+ name?: string | undefined;
321
+ completed?: boolean | undefined;
322
+ notes?: string | undefined;
323
+ resource_type?: string | undefined;
324
+ modified_at?: string | undefined;
325
+ custom_fields?: {
326
+ name?: string | undefined;
327
+ gid?: string | undefined;
328
+ display_value?: string | undefined;
329
+ }[] | undefined;
330
+ num_subtasks?: number | undefined;
331
+ };
332
+ subtasks?: {
333
+ name?: string | undefined;
334
+ assignee?: string | undefined;
335
+ completed?: boolean | undefined;
336
+ notes?: string | undefined;
337
+ resource_type?: string | undefined;
338
+ modified_at?: string | undefined;
339
+ custom_fields?: {
340
+ name?: string | undefined;
341
+ gid?: string | undefined;
342
+ enum_options?: {
343
+ name?: string | undefined;
344
+ gid?: string | undefined;
345
+ }[] | undefined;
346
+ }[] | undefined;
347
+ num_subtasks?: number | undefined;
348
+ }[] | null | undefined;
349
+ taskStories?: {
350
+ text?: string | undefined;
351
+ resource_type?: string | undefined;
352
+ gid?: string | undefined;
353
+ created_at?: string | undefined;
354
+ created_by?: {
355
+ name?: string | undefined;
356
+ resource_type?: string | undefined;
357
+ gid?: string | undefined;
358
+ } | undefined;
359
+ }[] | null | undefined;
360
+ }>, "many">>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ success: boolean;
363
+ error?: string | undefined;
364
+ tasks?: {
365
+ task: {
366
+ name?: string | undefined;
367
+ completed?: boolean | undefined;
368
+ notes?: string | undefined;
369
+ resource_type?: string | undefined;
370
+ modified_at?: string | undefined;
371
+ custom_fields?: {
372
+ name?: string | undefined;
373
+ gid?: string | undefined;
374
+ display_value?: string | undefined;
375
+ }[] | undefined;
376
+ num_subtasks?: number | undefined;
377
+ };
378
+ subtasks?: {
379
+ name?: string | undefined;
380
+ assignee?: string | undefined;
381
+ completed?: boolean | undefined;
382
+ notes?: string | undefined;
383
+ resource_type?: string | undefined;
384
+ modified_at?: string | undefined;
385
+ custom_fields?: {
386
+ name?: string | undefined;
387
+ gid?: string | undefined;
388
+ enum_options?: {
389
+ name?: string | undefined;
390
+ gid?: string | undefined;
391
+ }[] | undefined;
392
+ }[] | undefined;
393
+ num_subtasks?: number | undefined;
394
+ }[] | null | undefined;
395
+ taskStories?: {
396
+ text?: string | undefined;
397
+ resource_type?: string | undefined;
398
+ gid?: string | undefined;
399
+ created_at?: string | undefined;
400
+ created_by?: {
401
+ name?: string | undefined;
402
+ resource_type?: string | undefined;
403
+ gid?: string | undefined;
404
+ } | undefined;
405
+ }[] | null | undefined;
406
+ }[] | undefined;
407
+ }, {
408
+ success: boolean;
409
+ error?: string | undefined;
410
+ tasks?: {
411
+ task: {
412
+ name?: string | undefined;
413
+ completed?: boolean | undefined;
414
+ notes?: string | undefined;
415
+ resource_type?: string | undefined;
416
+ modified_at?: string | undefined;
417
+ custom_fields?: {
418
+ name?: string | undefined;
419
+ gid?: string | undefined;
420
+ display_value?: string | undefined;
421
+ }[] | undefined;
422
+ num_subtasks?: number | undefined;
423
+ };
424
+ subtasks?: {
425
+ name?: string | undefined;
426
+ assignee?: string | undefined;
427
+ completed?: boolean | undefined;
428
+ notes?: string | undefined;
429
+ resource_type?: string | undefined;
430
+ modified_at?: string | undefined;
431
+ custom_fields?: {
432
+ name?: string | undefined;
433
+ gid?: string | undefined;
434
+ enum_options?: {
435
+ name?: string | undefined;
436
+ gid?: string | undefined;
437
+ }[] | undefined;
438
+ }[] | undefined;
439
+ num_subtasks?: number | undefined;
440
+ }[] | null | undefined;
441
+ taskStories?: {
442
+ text?: string | undefined;
443
+ resource_type?: string | undefined;
444
+ gid?: string | undefined;
445
+ created_at?: string | undefined;
446
+ created_by?: {
447
+ name?: string | undefined;
448
+ resource_type?: string | undefined;
449
+ gid?: string | undefined;
450
+ } | undefined;
451
+ }[] | null | undefined;
452
+ }[] | undefined;
453
+ }>;
454
+ export type asanaListAsanaTasksByProjectOutputType = z.infer<typeof asanaListAsanaTasksByProjectOutputSchema>;
455
+ export type asanaListAsanaTasksByProjectFunction = ActionFunction<asanaListAsanaTasksByProjectParamsType, AuthParamsType, asanaListAsanaTasksByProjectOutputType>;
111
456
  export declare const asanaCreateTaskParamsSchema: z.ZodObject<{
112
457
  projectId: z.ZodString;
113
458
  name: z.ZodString;
@@ -553,10 +898,13 @@ export type jiraGetJiraIssuesByQueryOutputType = z.infer<typeof jiraGetJiraIssue
553
898
  export type jiraGetJiraIssuesByQueryFunction = ActionFunction<jiraGetJiraIssuesByQueryParamsType, AuthParamsType, jiraGetJiraIssuesByQueryOutputType>;
554
899
  export declare const kandjiGetFVRecoveryKeyForDeviceParamsSchema: z.ZodObject<{
555
900
  serialNumber: z.ZodString;
901
+ subdomain: z.ZodString;
556
902
  }, "strip", z.ZodTypeAny, {
557
903
  serialNumber: string;
904
+ subdomain: string;
558
905
  }, {
559
906
  serialNumber: string;
907
+ subdomain: string;
560
908
  }>;
561
909
  export type kandjiGetFVRecoveryKeyForDeviceParamsType = z.infer<typeof kandjiGetFVRecoveryKeyForDeviceParamsSchema>;
562
910
  export declare const kandjiGetFVRecoveryKeyForDeviceOutputSchema: z.ZodObject<{
@@ -1048,12 +1396,12 @@ export declare const zendeskCreateZendeskTicketParamsSchema: z.ZodObject<{
1048
1396
  body: z.ZodOptional<z.ZodString>;
1049
1397
  subdomain: z.ZodString;
1050
1398
  }, "strip", z.ZodTypeAny, {
1051
- subject: string;
1052
1399
  subdomain: string;
1400
+ subject: string;
1053
1401
  body?: string | undefined;
1054
1402
  }, {
1055
- subject: string;
1056
1403
  subdomain: string;
1404
+ subject: string;
1057
1405
  body?: string | undefined;
1058
1406
  }>;
1059
1407
  export type zendeskCreateZendeskTicketParamsType = z.infer<typeof zendeskCreateZendeskTicketParamsSchema>;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zendeskGetTicketDetailsParamsSchema = exports.zendeskListZendeskTicketsOutputSchema = exports.zendeskListZendeskTicketsParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema = exports.credalCallCopilotOutputSchema = exports.credalCallCopilotParamsSchema = exports.bingGetTopNSearchResultUrlsOutputSchema = exports.bingGetTopNSearchResultUrlsParamsSchema = exports.googlemapsNearbysearchRestaurantsOutputSchema = exports.googlemapsNearbysearchRestaurantsParamsSchema = exports.googlemapsValidateAddressOutputSchema = exports.googlemapsValidateAddressParamsSchema = exports.kandjiGetFVRecoveryKeyForDeviceOutputSchema = exports.kandjiGetFVRecoveryKeyForDeviceParamsSchema = exports.jiraGetJiraIssuesByQueryOutputSchema = exports.jiraGetJiraIssuesByQueryParamsSchema = exports.jiraUpdateJiraTicketStatusOutputSchema = exports.jiraUpdateJiraTicketStatusParamsSchema = exports.jiraUpdateJiraTicketDetailsOutputSchema = exports.jiraUpdateJiraTicketDetailsParamsSchema = exports.jiraGetJiraTicketHistoryOutputSchema = exports.jiraGetJiraTicketHistoryParamsSchema = exports.jiraGetJiraTicketDetailsOutputSchema = exports.jiraGetJiraTicketDetailsParamsSchema = exports.jiraCreateJiraTicketOutputSchema = exports.jiraCreateJiraTicketParamsSchema = exports.jiraCommentJiraTicketOutputSchema = exports.jiraCommentJiraTicketParamsSchema = exports.jiraAssignJiraTicketOutputSchema = exports.jiraAssignJiraTicketParamsSchema = exports.confluenceFetchPageContentOutputSchema = exports.confluenceFetchPageContentParamsSchema = exports.confluenceOverwritePageOutputSchema = exports.confluenceOverwritePageParamsSchema = exports.mathAddOutputSchema = exports.mathAddParamsSchema = exports.slackGetChannelMessagesOutputSchema = exports.slackGetChannelMessagesParamsSchema = exports.slackSendMessageOutputSchema = exports.slackSendMessageParamsSchema = exports.asanaUpdateTaskOutputSchema = exports.asanaUpdateTaskParamsSchema = exports.asanaCreateTaskOutputSchema = exports.asanaCreateTaskParamsSchema = exports.asanaCommentTaskOutputSchema = exports.asanaCommentTaskParamsSchema = exports.genericFillTemplateOutputSchema = exports.genericFillTemplateParamsSchema = exports.AuthParamsSchema = void 0;
4
- exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = exports.gongGetGongTranscriptsOutputSchema = exports.gongGetGongTranscriptsParamsSchema = exports.googleOauthUpdatePresentationOutputSchema = exports.googleOauthUpdatePresentationParamsSchema = exports.googleOauthCreatePresentationOutputSchema = exports.googleOauthCreatePresentationParamsSchema = exports.googleOauthUpdateSpreadsheetOutputSchema = exports.googleOauthUpdateSpreadsheetParamsSchema = exports.googleOauthCreateSpreadsheetOutputSchema = exports.googleOauthCreateSpreadsheetParamsSchema = exports.googleOauthScheduleCalendarMeetingOutputSchema = exports.googleOauthScheduleCalendarMeetingParamsSchema = exports.googleOauthUpdateDocOutputSchema = exports.googleOauthUpdateDocParamsSchema = exports.googleOauthCreateNewGoogleDocOutputSchema = exports.googleOauthCreateNewGoogleDocParamsSchema = exports.resendSendEmailOutputSchema = exports.resendSendEmailParamsSchema = exports.firecrawlScrapeTweetDataWithNitterOutputSchema = exports.firecrawlScrapeTweetDataWithNitterParamsSchema = exports.firecrawlScrapeUrlOutputSchema = exports.firecrawlScrapeUrlParamsSchema = exports.firecrawlDeepResearchOutputSchema = exports.firecrawlDeepResearchParamsSchema = exports.nwsGetForecastForLocationOutputSchema = exports.nwsGetForecastForLocationParamsSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationOutputSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationParamsSchema = exports.snowflakeRunSnowflakeQueryOutputSchema = exports.snowflakeRunSnowflakeQueryParamsSchema = exports.snowflakeGetRowByFieldValueOutputSchema = exports.snowflakeGetRowByFieldValueParamsSchema = exports.mongoInsertMongoDocOutputSchema = exports.mongoInsertMongoDocParamsSchema = exports.xCreateShareXPostUrlOutputSchema = exports.xCreateShareXPostUrlParamsSchema = exports.linkedinCreateShareLinkedinPostUrlOutputSchema = exports.linkedinCreateShareLinkedinPostUrlParamsSchema = exports.zendeskAssignTicketOutputSchema = exports.zendeskAssignTicketParamsSchema = exports.zendeskAddCommentToTicketOutputSchema = exports.zendeskAddCommentToTicketParamsSchema = exports.zendeskUpdateTicketStatusOutputSchema = exports.zendeskUpdateTicketStatusParamsSchema = exports.zendeskGetTicketDetailsOutputSchema = void 0;
5
- exports.githubListPullRequestsParamsSchema = exports.githubCreatePullRequestOutputSchema = exports.githubCreatePullRequestParamsSchema = exports.githubCreateBranchOutputSchema = exports.githubCreateBranchParamsSchema = exports.githubCreateOrUpdateFileOutputSchema = exports.githubCreateOrUpdateFileParamsSchema = exports.microsoftGetDocumentOutputSchema = exports.microsoftGetDocumentParamsSchema = exports.microsoftMessageTeamsChannelOutputSchema = exports.microsoftMessageTeamsChannelParamsSchema = exports.microsoftMessageTeamsChatOutputSchema = exports.microsoftMessageTeamsChatParamsSchema = exports.microsoftUpdateSpreadsheetOutputSchema = exports.microsoftUpdateSpreadsheetParamsSchema = exports.microsoftUpdateDocumentOutputSchema = exports.microsoftUpdateDocumentParamsSchema = exports.microsoftCreateDocumentOutputSchema = exports.microsoftCreateDocumentParamsSchema = exports.salesforceFetchSalesforceSchemaByObjectOutputSchema = exports.salesforceFetchSalesforceSchemaByObjectParamsSchema = exports.salesforceGetRecordOutputSchema = exports.salesforceGetRecordParamsSchema = exports.salesforceGetSalesforceRecordsByQueryOutputSchema = exports.salesforceGetSalesforceRecordsByQueryParamsSchema = exports.salesforceGenerateSalesReportOutputSchema = exports.salesforceGenerateSalesReportParamsSchema = exports.salesforceCreateCaseOutputSchema = exports.salesforceCreateCaseParamsSchema = exports.salesforceCreateRecordOutputSchema = exports.salesforceCreateRecordParamsSchema = exports.salesforceUpdateRecordOutputSchema = exports.salesforceUpdateRecordParamsSchema = exports.ashbyUpdateCandidateOutputSchema = exports.ashbyUpdateCandidateParamsSchema = exports.ashbyCreateCandidateOutputSchema = exports.ashbyCreateCandidateParamsSchema = exports.ashbyListCandidateNotesOutputSchema = exports.ashbyListCandidateNotesParamsSchema = exports.ashbySearchCandidatesOutputSchema = exports.ashbySearchCandidatesParamsSchema = exports.ashbyListCandidatesOutputSchema = exports.ashbyListCandidatesParamsSchema = exports.ashbyAddCandidateToProjectOutputSchema = exports.ashbyAddCandidateToProjectParamsSchema = exports.ashbyGetCandidateInfoOutputSchema = exports.ashbyGetCandidateInfoParamsSchema = exports.ashbyCreateNoteOutputSchema = exports.ashbyCreateNoteParamsSchema = exports.lookerEnableUserByEmailOutputSchema = void 0;
6
- exports.githubListPullRequestsOutputSchema = void 0;
3
+ exports.zendeskListZendeskTicketsParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema = exports.credalCallCopilotOutputSchema = exports.credalCallCopilotParamsSchema = exports.bingGetTopNSearchResultUrlsOutputSchema = exports.bingGetTopNSearchResultUrlsParamsSchema = exports.googlemapsNearbysearchRestaurantsOutputSchema = exports.googlemapsNearbysearchRestaurantsParamsSchema = exports.googlemapsValidateAddressOutputSchema = exports.googlemapsValidateAddressParamsSchema = exports.kandjiGetFVRecoveryKeyForDeviceOutputSchema = exports.kandjiGetFVRecoveryKeyForDeviceParamsSchema = exports.jiraGetJiraIssuesByQueryOutputSchema = exports.jiraGetJiraIssuesByQueryParamsSchema = exports.jiraUpdateJiraTicketStatusOutputSchema = exports.jiraUpdateJiraTicketStatusParamsSchema = exports.jiraUpdateJiraTicketDetailsOutputSchema = exports.jiraUpdateJiraTicketDetailsParamsSchema = exports.jiraGetJiraTicketHistoryOutputSchema = exports.jiraGetJiraTicketHistoryParamsSchema = exports.jiraGetJiraTicketDetailsOutputSchema = exports.jiraGetJiraTicketDetailsParamsSchema = exports.jiraCreateJiraTicketOutputSchema = exports.jiraCreateJiraTicketParamsSchema = exports.jiraCommentJiraTicketOutputSchema = exports.jiraCommentJiraTicketParamsSchema = exports.jiraAssignJiraTicketOutputSchema = exports.jiraAssignJiraTicketParamsSchema = exports.confluenceFetchPageContentOutputSchema = exports.confluenceFetchPageContentParamsSchema = exports.confluenceOverwritePageOutputSchema = exports.confluenceOverwritePageParamsSchema = exports.mathAddOutputSchema = exports.mathAddParamsSchema = exports.slackGetChannelMessagesOutputSchema = exports.slackGetChannelMessagesParamsSchema = exports.slackSendMessageOutputSchema = exports.slackSendMessageParamsSchema = exports.asanaUpdateTaskOutputSchema = exports.asanaUpdateTaskParamsSchema = exports.asanaCreateTaskOutputSchema = exports.asanaCreateTaskParamsSchema = exports.asanaListAsanaTasksByProjectOutputSchema = exports.asanaListAsanaTasksByProjectParamsSchema = exports.asanaCommentTaskOutputSchema = exports.asanaCommentTaskParamsSchema = exports.genericFillTemplateOutputSchema = exports.genericFillTemplateParamsSchema = exports.AuthParamsSchema = void 0;
4
+ exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = exports.gongGetGongTranscriptsOutputSchema = exports.gongGetGongTranscriptsParamsSchema = exports.googleOauthUpdatePresentationOutputSchema = exports.googleOauthUpdatePresentationParamsSchema = exports.googleOauthCreatePresentationOutputSchema = exports.googleOauthCreatePresentationParamsSchema = exports.googleOauthUpdateSpreadsheetOutputSchema = exports.googleOauthUpdateSpreadsheetParamsSchema = exports.googleOauthCreateSpreadsheetOutputSchema = exports.googleOauthCreateSpreadsheetParamsSchema = exports.googleOauthScheduleCalendarMeetingOutputSchema = exports.googleOauthScheduleCalendarMeetingParamsSchema = exports.googleOauthUpdateDocOutputSchema = exports.googleOauthUpdateDocParamsSchema = exports.googleOauthCreateNewGoogleDocOutputSchema = exports.googleOauthCreateNewGoogleDocParamsSchema = exports.resendSendEmailOutputSchema = exports.resendSendEmailParamsSchema = exports.firecrawlScrapeTweetDataWithNitterOutputSchema = exports.firecrawlScrapeTweetDataWithNitterParamsSchema = exports.firecrawlScrapeUrlOutputSchema = exports.firecrawlScrapeUrlParamsSchema = exports.firecrawlDeepResearchOutputSchema = exports.firecrawlDeepResearchParamsSchema = exports.nwsGetForecastForLocationOutputSchema = exports.nwsGetForecastForLocationParamsSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationOutputSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationParamsSchema = exports.snowflakeRunSnowflakeQueryOutputSchema = exports.snowflakeRunSnowflakeQueryParamsSchema = exports.snowflakeGetRowByFieldValueOutputSchema = exports.snowflakeGetRowByFieldValueParamsSchema = exports.mongoInsertMongoDocOutputSchema = exports.mongoInsertMongoDocParamsSchema = exports.xCreateShareXPostUrlOutputSchema = exports.xCreateShareXPostUrlParamsSchema = exports.linkedinCreateShareLinkedinPostUrlOutputSchema = exports.linkedinCreateShareLinkedinPostUrlParamsSchema = exports.zendeskAssignTicketOutputSchema = exports.zendeskAssignTicketParamsSchema = exports.zendeskAddCommentToTicketOutputSchema = exports.zendeskAddCommentToTicketParamsSchema = exports.zendeskUpdateTicketStatusOutputSchema = exports.zendeskUpdateTicketStatusParamsSchema = exports.zendeskGetTicketDetailsOutputSchema = exports.zendeskGetTicketDetailsParamsSchema = exports.zendeskListZendeskTicketsOutputSchema = void 0;
5
+ exports.githubCreatePullRequestParamsSchema = exports.githubCreateBranchOutputSchema = exports.githubCreateBranchParamsSchema = exports.githubCreateOrUpdateFileOutputSchema = exports.githubCreateOrUpdateFileParamsSchema = exports.microsoftGetDocumentOutputSchema = exports.microsoftGetDocumentParamsSchema = exports.microsoftMessageTeamsChannelOutputSchema = exports.microsoftMessageTeamsChannelParamsSchema = exports.microsoftMessageTeamsChatOutputSchema = exports.microsoftMessageTeamsChatParamsSchema = exports.microsoftUpdateSpreadsheetOutputSchema = exports.microsoftUpdateSpreadsheetParamsSchema = exports.microsoftUpdateDocumentOutputSchema = exports.microsoftUpdateDocumentParamsSchema = exports.microsoftCreateDocumentOutputSchema = exports.microsoftCreateDocumentParamsSchema = exports.salesforceFetchSalesforceSchemaByObjectOutputSchema = exports.salesforceFetchSalesforceSchemaByObjectParamsSchema = exports.salesforceGetRecordOutputSchema = exports.salesforceGetRecordParamsSchema = exports.salesforceGetSalesforceRecordsByQueryOutputSchema = exports.salesforceGetSalesforceRecordsByQueryParamsSchema = exports.salesforceGenerateSalesReportOutputSchema = exports.salesforceGenerateSalesReportParamsSchema = exports.salesforceCreateCaseOutputSchema = exports.salesforceCreateCaseParamsSchema = exports.salesforceCreateRecordOutputSchema = exports.salesforceCreateRecordParamsSchema = exports.salesforceUpdateRecordOutputSchema = exports.salesforceUpdateRecordParamsSchema = exports.ashbyUpdateCandidateOutputSchema = exports.ashbyUpdateCandidateParamsSchema = exports.ashbyCreateCandidateOutputSchema = exports.ashbyCreateCandidateParamsSchema = exports.ashbyListCandidateNotesOutputSchema = exports.ashbyListCandidateNotesParamsSchema = exports.ashbySearchCandidatesOutputSchema = exports.ashbySearchCandidatesParamsSchema = exports.ashbyListCandidatesOutputSchema = exports.ashbyListCandidatesParamsSchema = exports.ashbyAddCandidateToProjectOutputSchema = exports.ashbyAddCandidateToProjectParamsSchema = exports.ashbyGetCandidateInfoOutputSchema = exports.ashbyGetCandidateInfoParamsSchema = exports.ashbyCreateNoteOutputSchema = exports.ashbyCreateNoteParamsSchema = exports.lookerEnableUserByEmailOutputSchema = exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = void 0;
6
+ exports.githubListPullRequestsOutputSchema = exports.githubListPullRequestsParamsSchema = exports.githubCreatePullRequestOutputSchema = void 0;
7
7
  const zod_1 = require("zod");
8
8
  exports.AuthParamsSchema = zod_1.z.object({
9
9
  authToken: zod_1.z.string().optional(),
@@ -41,6 +41,72 @@ exports.asanaCommentTaskOutputSchema = zod_1.z.object({
41
41
  success: zod_1.z.boolean().describe("Whether comment was successfully made"),
42
42
  commentUrl: zod_1.z.string().describe("The url to the created comment").optional(),
43
43
  });
44
+ exports.asanaListAsanaTasksByProjectParamsSchema = zod_1.z.object({
45
+ projectId: zod_1.z.string().describe("Project gid the tasks belong to"),
46
+ });
47
+ exports.asanaListAsanaTasksByProjectOutputSchema = zod_1.z.object({
48
+ error: zod_1.z.string().describe("Error if task retrieval was unsuccessful").optional(),
49
+ success: zod_1.z.boolean().describe("Whether task retrieval was successful"),
50
+ tasks: zod_1.z
51
+ .array(zod_1.z
52
+ .object({
53
+ task: zod_1.z.object({
54
+ name: zod_1.z.string().optional(),
55
+ resource_type: zod_1.z.string().optional(),
56
+ completed: zod_1.z.boolean().optional(),
57
+ modified_at: zod_1.z.string().optional(),
58
+ notes: zod_1.z.string().optional(),
59
+ custom_fields: zod_1.z
60
+ .array(zod_1.z.object({
61
+ gid: zod_1.z.string().optional(),
62
+ name: zod_1.z.string().optional(),
63
+ display_value: zod_1.z.string().optional(),
64
+ }))
65
+ .optional(),
66
+ num_subtasks: zod_1.z.number().optional(),
67
+ }),
68
+ subtasks: zod_1.z
69
+ .array(zod_1.z.object({
70
+ name: zod_1.z.string().optional(),
71
+ resource_type: zod_1.z.string().optional(),
72
+ completed: zod_1.z.boolean().optional(),
73
+ modified_at: zod_1.z.string().optional(),
74
+ notes: zod_1.z.string().optional(),
75
+ assignee: zod_1.z.string().optional(),
76
+ custom_fields: zod_1.z
77
+ .array(zod_1.z.object({
78
+ gid: zod_1.z.string().optional(),
79
+ name: zod_1.z.string().optional(),
80
+ enum_options: zod_1.z
81
+ .array(zod_1.z.object({ gid: zod_1.z.string().optional(), name: zod_1.z.string().optional() }))
82
+ .optional(),
83
+ }))
84
+ .optional(),
85
+ num_subtasks: zod_1.z.number().optional(),
86
+ }))
87
+ .nullable()
88
+ .optional(),
89
+ taskStories: zod_1.z
90
+ .array(zod_1.z.object({
91
+ gid: zod_1.z.string().optional(),
92
+ created_at: zod_1.z.string().optional(),
93
+ text: zod_1.z.string().optional(),
94
+ resource_type: zod_1.z.string().optional(),
95
+ created_by: zod_1.z
96
+ .object({
97
+ gid: zod_1.z.string().optional(),
98
+ name: zod_1.z.string().optional(),
99
+ resource_type: zod_1.z.string().optional(),
100
+ })
101
+ .optional(),
102
+ }))
103
+ .nullable()
104
+ .optional(),
105
+ })
106
+ .describe("A task in the project"))
107
+ .describe("The list of tasks in the project")
108
+ .optional(),
109
+ });
44
110
  exports.asanaCreateTaskParamsSchema = zod_1.z.object({
45
111
  projectId: zod_1.z.string().describe("Project gid the task belongs to"),
46
112
  name: zod_1.z.string().describe("The name of the new task"),
@@ -210,6 +276,7 @@ exports.jiraGetJiraIssuesByQueryOutputSchema = zod_1.z.object({
210
276
  });
211
277
  exports.kandjiGetFVRecoveryKeyForDeviceParamsSchema = zod_1.z.object({
212
278
  serialNumber: zod_1.z.string().describe("The serial number of the device"),
279
+ subdomain: zod_1.z.string().describe("The subdomain of the Kandji account"),
213
280
  });
214
281
  exports.kandjiGetFVRecoveryKeyForDeviceOutputSchema = zod_1.z.object({
215
282
  success: zod_1.z.boolean().describe("Whether the recovery key was retrieved successfully"),
@@ -0,0 +1,3 @@
1
+ import type { asanaListAsanaTasksByProjectFunction } from "../../autogen/types";
2
+ declare const listAsanaTasksByProject: asanaListAsanaTasksByProjectFunction;
3
+ export default listAsanaTasksByProject;
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const zod_1 = require("zod");
16
+ const axios_1 = __importDefault(require("axios"));
17
+ const missingAuthConstants_1 = require("../../util/missingAuthConstants");
18
+ const TaskSchema = zod_1.z
19
+ .object({
20
+ gid: zod_1.z.string(),
21
+ })
22
+ .partial()
23
+ .passthrough();
24
+ const TaskDetailsSchema = zod_1.z
25
+ .object({
26
+ name: zod_1.z.string(),
27
+ resource_type: zod_1.z.string(),
28
+ completed: zod_1.z.boolean(),
29
+ modified_at: zod_1.z.string(),
30
+ notes: zod_1.z.string(),
31
+ custom_fields: zod_1.z.array(zod_1.z.object({
32
+ gid: zod_1.z.string(),
33
+ name: zod_1.z.string(),
34
+ display_value: zod_1.z.string(),
35
+ })),
36
+ num_subtasks: zod_1.z.number(),
37
+ })
38
+ .partial()
39
+ .passthrough();
40
+ const TaskStorySchema = zod_1.z
41
+ .object({
42
+ gid: zod_1.z.string(),
43
+ created_at: zod_1.z.string(),
44
+ text: zod_1.z.string(),
45
+ resource_type: zod_1.z.string(),
46
+ created_by: zod_1.z.object({
47
+ gid: zod_1.z.string(),
48
+ name: zod_1.z.string(),
49
+ resource_type: zod_1.z.string(),
50
+ }),
51
+ })
52
+ .partial()
53
+ .passthrough();
54
+ const NextPageSchema = zod_1.z
55
+ .object({
56
+ offset: zod_1.z.string(),
57
+ path: zod_1.z.string(),
58
+ uri: zod_1.z.string(),
59
+ })
60
+ .nullable();
61
+ const TaskOutputSchema = zod_1.z.object({
62
+ task: TaskDetailsSchema,
63
+ subtasks: zod_1.z.array(TaskDetailsSchema).nullable(),
64
+ taskStories: zod_1.z.array(TaskStorySchema).nullable(),
65
+ });
66
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
67
+ const AsanaOutputSchema = zod_1.z.object({
68
+ data: zod_1.z.object({
69
+ tasks: zod_1.z.array(TaskOutputSchema),
70
+ subtasks: zod_1.z.array(TaskDetailsSchema).nullable(),
71
+ }),
72
+ next_page: NextPageSchema,
73
+ });
74
+ function getTaskIdsFromProject(authToken, projectId) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ let nextPage = undefined;
77
+ const tasks = [];
78
+ do {
79
+ const response = yield axios_1.default.get(`https://app.asana.com/api/1.0/projects/${projectId}/tasks`, {
80
+ headers: { Authorization: `Bearer ${authToken}` },
81
+ params: {
82
+ limit: 100,
83
+ completed_since: "now",
84
+ offset: nextPage ? nextPage.offset : undefined,
85
+ },
86
+ });
87
+ const parsedTasks = zod_1.z.array(TaskSchema).safeParse(response.data.data);
88
+ if (!parsedTasks.success) {
89
+ return tasks;
90
+ }
91
+ tasks.push(...parsedTasks.data.map(task => task.gid).filter((gid) => gid !== undefined));
92
+ nextPage = response.data.next_page;
93
+ } while (nextPage);
94
+ return tasks;
95
+ });
96
+ }
97
+ // Only handles the first layer of subtasks, not nested ones
98
+ function getSubtasksFromTask(authToken, taskId) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ let nextPage = undefined;
101
+ const subtasks = [];
102
+ do {
103
+ const response = yield axios_1.default.get(`https://app.asana.com/api/1.0/tasks/${taskId}/subtasks`, {
104
+ headers: { Authorization: `Bearer ${authToken}` },
105
+ params: {
106
+ limit: 100,
107
+ offset: nextPage ? nextPage.offset : undefined,
108
+ },
109
+ });
110
+ const parsedSubtasks = zod_1.z.array(TaskSchema).safeParse(response.data.data);
111
+ if (!parsedSubtasks.success) {
112
+ return subtasks;
113
+ }
114
+ subtasks.push(...parsedSubtasks.data);
115
+ nextPage = response.data.next_page;
116
+ } while (nextPage);
117
+ return subtasks;
118
+ });
119
+ }
120
+ function getTaskDetails(authToken, taskId) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ const response = yield axios_1.default.get(`https://app.asana.com/api/1.0/tasks/${taskId}`, {
123
+ headers: { Authorization: `Bearer ${authToken}` },
124
+ params: {
125
+ options: {
126
+ fields: ["num_subtasks"],
127
+ },
128
+ },
129
+ });
130
+ const parsedTask = TaskDetailsSchema.safeParse(response.data.data);
131
+ if (!parsedTask.success) {
132
+ return null;
133
+ }
134
+ return parsedTask.data;
135
+ });
136
+ }
137
+ function getTaskStories(authToken, taskId) {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ const response = yield axios_1.default.get(`https://app.asana.com/api/1.0/tasks/${taskId}/stories`, {
140
+ headers: { Authorization: `Bearer ${authToken}` },
141
+ });
142
+ const parsedTask = zod_1.z.array(TaskStorySchema).safeParse(response.data.data);
143
+ if (!parsedTask.success) {
144
+ return null;
145
+ }
146
+ return parsedTask.data;
147
+ });
148
+ }
149
+ const listAsanaTasksByProject = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
150
+ const { authToken } = authParams;
151
+ const { projectId } = params;
152
+ if (!authToken) {
153
+ return { success: false, error: missingAuthConstants_1.MISSING_AUTH_TOKEN };
154
+ }
155
+ try {
156
+ const taskIds = yield getTaskIdsFromProject(authToken, projectId);
157
+ const tasks = [];
158
+ for (const taskId of taskIds) {
159
+ const task = yield getTaskDetails(authToken, taskId);
160
+ if (!task) {
161
+ continue;
162
+ }
163
+ const subtasks = yield getSubtasksFromTask(authToken, taskId);
164
+ const taskStories = yield getTaskStories(authToken, taskId);
165
+ tasks.push({
166
+ task,
167
+ subtasks,
168
+ taskStories,
169
+ });
170
+ }
171
+ return {
172
+ success: true,
173
+ tasks,
174
+ };
175
+ }
176
+ catch (error) {
177
+ console.error("Error listing asana tasks:", error);
178
+ return {
179
+ success: false,
180
+ error: error instanceof Error ? error.message : "Unknown error",
181
+ };
182
+ }
183
+ });
184
+ exports.default = listAsanaTasksByProject;
@@ -62,6 +62,7 @@ const UserSchema = zod_1.z
62
62
  firstName: zod_1.z.string(),
63
63
  lastName: zod_1.z.string(),
64
64
  title: zod_1.z.string(),
65
+ emailAddress: zod_1.z.string(),
65
66
  })
66
67
  .partial()
67
68
  .passthrough();
@@ -78,6 +79,7 @@ const CallSchema = zod_1.z
78
79
  id: zod_1.z.string(),
79
80
  primaryUserId: zod_1.z.string(),
80
81
  started: zod_1.z.string(),
82
+ isPrivate: zod_1.z.boolean(),
81
83
  }),
82
84
  parties: zod_1.z.array(zod_1.z
83
85
  .object({
@@ -244,8 +246,21 @@ const getGongTranscripts = (_a) => __awaiter(void 0, [_a], void 0, function* ({
244
246
  error: missingAuthConstants_1.MISSING_AUTH_TOKEN,
245
247
  };
246
248
  }
249
+ if (!authParams.username) {
250
+ return {
251
+ success: false,
252
+ error: "Missing user email",
253
+ };
254
+ }
247
255
  try {
248
256
  const gongUsers = yield getUsers(authParams.authToken);
257
+ const userEmails = gongUsers.map(user => user.emailAddress);
258
+ if (!userEmails.includes(authParams.username)) {
259
+ return {
260
+ success: false,
261
+ error: "User email not found in Gong users",
262
+ };
263
+ }
249
264
  const filteredGongUsers = gongUsers.filter(user => user.title === params.userRole);
250
265
  const trackers = yield getTrackers(authParams.authToken);
251
266
  const filteredTrackers = trackers.filter(tracker => { var _a, _b; return (_a = params.trackers) === null || _a === void 0 ? void 0 : _a.includes((_b = tracker.trackerName) !== null && _b !== void 0 ? _b : ""); });
@@ -259,15 +274,21 @@ const getGongTranscripts = (_a) => __awaiter(void 0, [_a], void 0, function* ({
259
274
  ? filteredTrackers.map(tracker => tracker.trackerId).filter((id) => id !== undefined)
260
275
  : undefined,
261
276
  });
277
+ const publicCalls = calls.filter(call => {
278
+ if (!call.metaData) {
279
+ return false;
280
+ }
281
+ return !call.metaData.isPrivate;
282
+ });
262
283
  // Get transcripts for the calls we found
263
284
  const callTranscripts = yield getTranscripts(authParams.authToken, {
264
285
  fromDateTime: (_d = params.startDate) !== null && _d !== void 0 ? _d : "",
265
286
  toDateTime: (_e = params.endDate) !== null && _e !== void 0 ? _e : "",
266
- callIds: calls.map(call => { var _a; return (_a = call.metaData) === null || _a === void 0 ? void 0 : _a.id; }).filter((id) => id !== undefined),
287
+ callIds: publicCalls.map(call => { var _a; return (_a = call.metaData) === null || _a === void 0 ? void 0 : _a.id; }).filter((id) => id !== undefined),
267
288
  });
268
289
  // Map speaker IDs to names in the transcripts
269
290
  const userIdToNameMap = {};
270
- calls.forEach(call => {
291
+ publicCalls.forEach(call => {
271
292
  // Check if call has parties array
272
293
  if (call.parties && Array.isArray(call.parties)) {
273
294
  // Iterate through each party in the call
@@ -11,10 +11,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const axiosClient_1 = require("../../util/axiosClient");
13
13
  const getFVRecoveryKeyForDevice = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
14
- const { serialNumber } = params;
15
- const { subdomain, apiKey } = authParams;
16
- if (!apiKey || !subdomain) {
17
- throw new Error("Missing API key or subdomain in auth parameters");
14
+ const { serialNumber, subdomain } = params;
15
+ const { apiKey } = authParams;
16
+ if (!apiKey) {
17
+ throw new Error("Missing API key in auth parameters");
18
18
  }
19
19
  try {
20
20
  // First list all devices to get the device for the specific device
@@ -0,0 +1,3 @@
1
+ import { salesforceGetSalesforceRecordsByQueryFunction } from "../../autogen/types";
2
+ declare const getSalesforceRecordByQuery: salesforceGetSalesforceRecordsByQueryFunction;
3
+ export default getSalesforceRecordByQuery;
@@ -10,36 +10,34 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const axiosClient_1 = require("../../util/axiosClient");
13
- const getComputerInventory = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
+ const getSalesforceRecordByQuery = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
14
14
  const { authToken, baseUrl } = authParams;
15
- const { section } = params;
16
- if (!baseUrl) {
17
- throw new Error("Base URL is required to fetch computer inventory");
18
- }
19
- const apiUrl = `${baseUrl}/v1/computer-inventory`;
20
- const queryParams = {};
21
- if (section) {
22
- queryParams.section = section;
15
+ const { query, limit } = params;
16
+ if (!authToken || !baseUrl) {
17
+ return {
18
+ success: false,
19
+ error: "authToken and baseUrl are required for Salesforce API",
20
+ };
23
21
  }
22
+ // The API limits the maximum number of records returned to 2000, the limit lets the user set a smaller custom limit
23
+ const url = `${baseUrl}/services/data/v56.0/query/?q=${encodeURIComponent(query + " LIMIT " + (limit != undefined && limit <= 2000 ? limit : 2000))}`;
24
24
  try {
25
- const response = yield axiosClient_1.axiosClient.get(apiUrl, {
25
+ const response = yield axiosClient_1.axiosClient.get(url, {
26
26
  headers: {
27
27
  Authorization: `Bearer ${authToken}`,
28
- Accept: "application/json",
29
28
  },
30
- params: queryParams,
31
29
  });
32
30
  return {
33
31
  success: true,
34
- data: response.data,
32
+ records: response.data,
35
33
  };
36
34
  }
37
35
  catch (error) {
38
- console.error("Error retrieving computer inventory: ", error);
36
+ console.error("Error retrieving Salesforce record:", error);
39
37
  return {
40
38
  success: false,
41
- error: error instanceof Error ? error.message : "Unknown error",
39
+ error: error instanceof Error ? error.message : "An unknown error occurred",
42
40
  };
43
41
  }
44
42
  });
45
- exports.default = getComputerInventory;
43
+ exports.default = getSalesforceRecordByQuery;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.1.75",
3
+ "version": "0.1.77",
4
4
  "description": "AI Actions by Credal AI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +0,0 @@
1
- import type { jamfGetComputerInventoryFunction } from "../../autogen/types";
2
- declare const getComputerInventory: jamfGetComputerInventoryFunction;
3
- export default getComputerInventory;
@@ -1,3 +0,0 @@
1
- import type { jamfGetFileVaultRecoveryKeyFunction } from "../../autogen/types";
2
- declare const getFileVaultRecoveryKey: jamfGetFileVaultRecoveryKeyFunction;
3
- export default getFileVaultRecoveryKey;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const axiosClient_1 = require("../../util/axiosClient");
13
- const getFileVaultRecoveryKey = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
14
- const { authToken, baseUrl } = authParams;
15
- const { computerId } = params;
16
- if (!baseUrl || !computerId) {
17
- throw new Error("Base URL and Computer ID are required to fetch FileVault2 recovery key");
18
- }
19
- const apiUrl = `${baseUrl}/JSSResource/computers/${computerId}/FileVault2RecoveryKey`;
20
- try {
21
- const response = yield axiosClient_1.axiosClient.get(apiUrl, {
22
- headers: {
23
- Authorization: `Bearer ${authToken}`,
24
- Accept: "application/json",
25
- },
26
- });
27
- return {
28
- success: true,
29
- data: response.data,
30
- };
31
- }
32
- catch (error) {
33
- console.error("Error retrieving FileVault2 recovery key: ", error);
34
- return {
35
- success: false,
36
- error: error instanceof Error ? error.message : "Unknown error",
37
- };
38
- }
39
- });
40
- exports.default = getFileVaultRecoveryKey;