@credal/actions 0.2.32 → 0.2.34

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.
Files changed (26) hide show
  1. package/dist/actions/actionMapper.js +19 -1
  2. package/dist/actions/autogen/templates.d.ts +5 -0
  3. package/dist/actions/autogen/templates.js +377 -0
  4. package/dist/actions/autogen/types.d.ts +370 -0
  5. package/dist/actions/autogen/types.js +122 -0
  6. package/dist/actions/groups.js +3 -1
  7. package/dist/actions/providers/jira/createServiceDeskRequest.d.ts +3 -0
  8. package/dist/actions/providers/jira/createServiceDeskRequest.js +54 -0
  9. package/dist/actions/providers/jira/getServiceDesks.d.ts +3 -0
  10. package/dist/actions/providers/jira/getServiceDesks.js +101 -0
  11. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
  12. package/dist/actions/providers/{jamf/getComputerInventory.js → salesforce/getSalesforceRecordByQuery.js} +14 -16
  13. package/dist/actions/providers/salesforce/searchSalesforceRecords.d.ts +3 -0
  14. package/dist/actions/providers/salesforce/searchSalesforceRecords.js +52 -0
  15. package/package.json +1 -1
  16. package/dist/actions/providers/google-oauth/listGmailThreads.d.ts +0 -3
  17. package/dist/actions/providers/google-oauth/listGmailThreads.js +0 -98
  18. package/dist/actions/providers/google-oauth/searchGmailMessages.d.ts +0 -3
  19. package/dist/actions/providers/google-oauth/searchGmailMessages.js +0 -91
  20. package/dist/actions/providers/jamf/getComputerInventory.d.ts +0 -3
  21. package/dist/actions/providers/jamf/getFileVaultRecoveryKey.d.ts +0 -3
  22. package/dist/actions/providers/jamf/getFileVaultRecoveryKey.js +0 -40
  23. package/dist/actions/providers/jamf/restartJamfComputerById.d.ts +0 -3
  24. package/dist/actions/providers/jamf/restartJamfComputerById.js +0 -37
  25. package/dist/actions/providers/jamf/types.d.ts +0 -8
  26. package/dist/actions/providers/jamf/types.js +0 -7
@@ -956,6 +956,157 @@ export declare const jiraCreateJiraTicketOutputSchema: z.ZodObject<{
956
956
  }>;
957
957
  export type jiraCreateJiraTicketOutputType = z.infer<typeof jiraCreateJiraTicketOutputSchema>;
958
958
  export type jiraCreateJiraTicketFunction = ActionFunction<jiraCreateJiraTicketParamsType, AuthParamsType, jiraCreateJiraTicketOutputType>;
959
+ export declare const jiraGetServiceDesksParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
960
+ export type jiraGetServiceDesksParamsType = z.infer<typeof jiraGetServiceDesksParamsSchema>;
961
+ export declare const jiraGetServiceDesksOutputSchema: z.ZodObject<{
962
+ success: z.ZodBoolean;
963
+ error: z.ZodOptional<z.ZodString>;
964
+ serviceDesks: z.ZodOptional<z.ZodArray<z.ZodObject<{
965
+ id: z.ZodOptional<z.ZodString>;
966
+ projectId: z.ZodOptional<z.ZodString>;
967
+ projectKey: z.ZodOptional<z.ZodString>;
968
+ projectName: z.ZodOptional<z.ZodString>;
969
+ requestTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
970
+ id: z.ZodOptional<z.ZodString>;
971
+ name: z.ZodOptional<z.ZodString>;
972
+ description: z.ZodOptional<z.ZodString>;
973
+ issueTypeId: z.ZodOptional<z.ZodString>;
974
+ portalId: z.ZodOptional<z.ZodString>;
975
+ helpText: z.ZodOptional<z.ZodString>;
976
+ serviceDeskId: z.ZodOptional<z.ZodString>;
977
+ canCreateRequest: z.ZodOptional<z.ZodBoolean>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ description?: string | undefined;
980
+ name?: string | undefined;
981
+ id?: string | undefined;
982
+ serviceDeskId?: string | undefined;
983
+ issueTypeId?: string | undefined;
984
+ portalId?: string | undefined;
985
+ helpText?: string | undefined;
986
+ canCreateRequest?: boolean | undefined;
987
+ }, {
988
+ description?: string | undefined;
989
+ name?: string | undefined;
990
+ id?: string | undefined;
991
+ serviceDeskId?: string | undefined;
992
+ issueTypeId?: string | undefined;
993
+ portalId?: string | undefined;
994
+ helpText?: string | undefined;
995
+ canCreateRequest?: boolean | undefined;
996
+ }>, "many">>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ projectId?: string | undefined;
999
+ id?: string | undefined;
1000
+ projectKey?: string | undefined;
1001
+ projectName?: string | undefined;
1002
+ requestTypes?: {
1003
+ description?: string | undefined;
1004
+ name?: string | undefined;
1005
+ id?: string | undefined;
1006
+ serviceDeskId?: string | undefined;
1007
+ issueTypeId?: string | undefined;
1008
+ portalId?: string | undefined;
1009
+ helpText?: string | undefined;
1010
+ canCreateRequest?: boolean | undefined;
1011
+ }[] | undefined;
1012
+ }, {
1013
+ projectId?: string | undefined;
1014
+ id?: string | undefined;
1015
+ projectKey?: string | undefined;
1016
+ projectName?: string | undefined;
1017
+ requestTypes?: {
1018
+ description?: string | undefined;
1019
+ name?: string | undefined;
1020
+ id?: string | undefined;
1021
+ serviceDeskId?: string | undefined;
1022
+ issueTypeId?: string | undefined;
1023
+ portalId?: string | undefined;
1024
+ helpText?: string | undefined;
1025
+ canCreateRequest?: boolean | undefined;
1026
+ }[] | undefined;
1027
+ }>, "many">>;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ success: boolean;
1030
+ error?: string | undefined;
1031
+ serviceDesks?: {
1032
+ projectId?: string | undefined;
1033
+ id?: string | undefined;
1034
+ projectKey?: string | undefined;
1035
+ projectName?: string | undefined;
1036
+ requestTypes?: {
1037
+ description?: string | undefined;
1038
+ name?: string | undefined;
1039
+ id?: string | undefined;
1040
+ serviceDeskId?: string | undefined;
1041
+ issueTypeId?: string | undefined;
1042
+ portalId?: string | undefined;
1043
+ helpText?: string | undefined;
1044
+ canCreateRequest?: boolean | undefined;
1045
+ }[] | undefined;
1046
+ }[] | undefined;
1047
+ }, {
1048
+ success: boolean;
1049
+ error?: string | undefined;
1050
+ serviceDesks?: {
1051
+ projectId?: string | undefined;
1052
+ id?: string | undefined;
1053
+ projectKey?: string | undefined;
1054
+ projectName?: string | undefined;
1055
+ requestTypes?: {
1056
+ description?: string | undefined;
1057
+ name?: string | undefined;
1058
+ id?: string | undefined;
1059
+ serviceDeskId?: string | undefined;
1060
+ issueTypeId?: string | undefined;
1061
+ portalId?: string | undefined;
1062
+ helpText?: string | undefined;
1063
+ canCreateRequest?: boolean | undefined;
1064
+ }[] | undefined;
1065
+ }[] | undefined;
1066
+ }>;
1067
+ export type jiraGetServiceDesksOutputType = z.infer<typeof jiraGetServiceDesksOutputSchema>;
1068
+ export type jiraGetServiceDesksFunction = ActionFunction<jiraGetServiceDesksParamsType, AuthParamsType, jiraGetServiceDesksOutputType>;
1069
+ export declare const jiraCreateServiceDeskRequestParamsSchema: z.ZodObject<{
1070
+ serviceDeskId: z.ZodString;
1071
+ requestTypeId: z.ZodString;
1072
+ summary: z.ZodString;
1073
+ description: z.ZodString;
1074
+ reporter: z.ZodOptional<z.ZodString>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ description: string;
1077
+ summary: string;
1078
+ serviceDeskId: string;
1079
+ requestTypeId: string;
1080
+ reporter?: string | undefined;
1081
+ }, {
1082
+ description: string;
1083
+ summary: string;
1084
+ serviceDeskId: string;
1085
+ requestTypeId: string;
1086
+ reporter?: string | undefined;
1087
+ }>;
1088
+ export type jiraCreateServiceDeskRequestParamsType = z.infer<typeof jiraCreateServiceDeskRequestParamsSchema>;
1089
+ export declare const jiraCreateServiceDeskRequestOutputSchema: z.ZodObject<{
1090
+ success: z.ZodBoolean;
1091
+ error: z.ZodOptional<z.ZodString>;
1092
+ issueKey: z.ZodOptional<z.ZodString>;
1093
+ webLink: z.ZodOptional<z.ZodString>;
1094
+ currentStatus: z.ZodOptional<z.ZodString>;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ success: boolean;
1097
+ error?: string | undefined;
1098
+ issueKey?: string | undefined;
1099
+ webLink?: string | undefined;
1100
+ currentStatus?: string | undefined;
1101
+ }, {
1102
+ success: boolean;
1103
+ error?: string | undefined;
1104
+ issueKey?: string | undefined;
1105
+ webLink?: string | undefined;
1106
+ currentStatus?: string | undefined;
1107
+ }>;
1108
+ export type jiraCreateServiceDeskRequestOutputType = z.infer<typeof jiraCreateServiceDeskRequestOutputSchema>;
1109
+ export type jiraCreateServiceDeskRequestFunction = ActionFunction<jiraCreateServiceDeskRequestParamsType, AuthParamsType, jiraCreateServiceDeskRequestOutputType>;
959
1110
  export declare const jiraGetJiraTicketDetailsParamsSchema: z.ZodObject<{
960
1111
  projectKey: z.ZodString;
961
1112
  issueId: z.ZodString;
@@ -1188,6 +1339,157 @@ export declare const jiraOrgCreateJiraTicketOutputSchema: z.ZodObject<{
1188
1339
  }>;
1189
1340
  export type jiraOrgCreateJiraTicketOutputType = z.infer<typeof jiraOrgCreateJiraTicketOutputSchema>;
1190
1341
  export type jiraOrgCreateJiraTicketFunction = ActionFunction<jiraOrgCreateJiraTicketParamsType, AuthParamsType, jiraOrgCreateJiraTicketOutputType>;
1342
+ export declare const jiraOrgGetServiceDesksParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1343
+ export type jiraOrgGetServiceDesksParamsType = z.infer<typeof jiraOrgGetServiceDesksParamsSchema>;
1344
+ export declare const jiraOrgGetServiceDesksOutputSchema: z.ZodObject<{
1345
+ success: z.ZodBoolean;
1346
+ error: z.ZodOptional<z.ZodString>;
1347
+ serviceDesks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1348
+ id: z.ZodOptional<z.ZodString>;
1349
+ projectId: z.ZodOptional<z.ZodString>;
1350
+ projectKey: z.ZodOptional<z.ZodString>;
1351
+ projectName: z.ZodOptional<z.ZodString>;
1352
+ requestTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1353
+ id: z.ZodOptional<z.ZodString>;
1354
+ name: z.ZodOptional<z.ZodString>;
1355
+ description: z.ZodOptional<z.ZodString>;
1356
+ issueTypeId: z.ZodOptional<z.ZodString>;
1357
+ portalId: z.ZodOptional<z.ZodString>;
1358
+ helpText: z.ZodOptional<z.ZodString>;
1359
+ serviceDeskId: z.ZodOptional<z.ZodString>;
1360
+ canCreateRequest: z.ZodOptional<z.ZodBoolean>;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ description?: string | undefined;
1363
+ name?: string | undefined;
1364
+ id?: string | undefined;
1365
+ serviceDeskId?: string | undefined;
1366
+ issueTypeId?: string | undefined;
1367
+ portalId?: string | undefined;
1368
+ helpText?: string | undefined;
1369
+ canCreateRequest?: boolean | undefined;
1370
+ }, {
1371
+ description?: string | undefined;
1372
+ name?: string | undefined;
1373
+ id?: string | undefined;
1374
+ serviceDeskId?: string | undefined;
1375
+ issueTypeId?: string | undefined;
1376
+ portalId?: string | undefined;
1377
+ helpText?: string | undefined;
1378
+ canCreateRequest?: boolean | undefined;
1379
+ }>, "many">>;
1380
+ }, "strip", z.ZodTypeAny, {
1381
+ projectId?: string | undefined;
1382
+ id?: string | undefined;
1383
+ projectKey?: string | undefined;
1384
+ projectName?: string | undefined;
1385
+ requestTypes?: {
1386
+ description?: string | undefined;
1387
+ name?: string | undefined;
1388
+ id?: string | undefined;
1389
+ serviceDeskId?: string | undefined;
1390
+ issueTypeId?: string | undefined;
1391
+ portalId?: string | undefined;
1392
+ helpText?: string | undefined;
1393
+ canCreateRequest?: boolean | undefined;
1394
+ }[] | undefined;
1395
+ }, {
1396
+ projectId?: string | undefined;
1397
+ id?: string | undefined;
1398
+ projectKey?: string | undefined;
1399
+ projectName?: string | undefined;
1400
+ requestTypes?: {
1401
+ description?: string | undefined;
1402
+ name?: string | undefined;
1403
+ id?: string | undefined;
1404
+ serviceDeskId?: string | undefined;
1405
+ issueTypeId?: string | undefined;
1406
+ portalId?: string | undefined;
1407
+ helpText?: string | undefined;
1408
+ canCreateRequest?: boolean | undefined;
1409
+ }[] | undefined;
1410
+ }>, "many">>;
1411
+ }, "strip", z.ZodTypeAny, {
1412
+ success: boolean;
1413
+ error?: string | undefined;
1414
+ serviceDesks?: {
1415
+ projectId?: string | undefined;
1416
+ id?: string | undefined;
1417
+ projectKey?: string | undefined;
1418
+ projectName?: string | undefined;
1419
+ requestTypes?: {
1420
+ description?: string | undefined;
1421
+ name?: string | undefined;
1422
+ id?: string | undefined;
1423
+ serviceDeskId?: string | undefined;
1424
+ issueTypeId?: string | undefined;
1425
+ portalId?: string | undefined;
1426
+ helpText?: string | undefined;
1427
+ canCreateRequest?: boolean | undefined;
1428
+ }[] | undefined;
1429
+ }[] | undefined;
1430
+ }, {
1431
+ success: boolean;
1432
+ error?: string | undefined;
1433
+ serviceDesks?: {
1434
+ projectId?: string | undefined;
1435
+ id?: string | undefined;
1436
+ projectKey?: string | undefined;
1437
+ projectName?: string | undefined;
1438
+ requestTypes?: {
1439
+ description?: string | undefined;
1440
+ name?: string | undefined;
1441
+ id?: string | undefined;
1442
+ serviceDeskId?: string | undefined;
1443
+ issueTypeId?: string | undefined;
1444
+ portalId?: string | undefined;
1445
+ helpText?: string | undefined;
1446
+ canCreateRequest?: boolean | undefined;
1447
+ }[] | undefined;
1448
+ }[] | undefined;
1449
+ }>;
1450
+ export type jiraOrgGetServiceDesksOutputType = z.infer<typeof jiraOrgGetServiceDesksOutputSchema>;
1451
+ export type jiraOrgGetServiceDesksFunction = ActionFunction<jiraOrgGetServiceDesksParamsType, AuthParamsType, jiraOrgGetServiceDesksOutputType>;
1452
+ export declare const jiraOrgCreateServiceDeskRequestParamsSchema: z.ZodObject<{
1453
+ serviceDeskId: z.ZodString;
1454
+ requestTypeId: z.ZodString;
1455
+ summary: z.ZodString;
1456
+ description: z.ZodString;
1457
+ reporter: z.ZodOptional<z.ZodString>;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ description: string;
1460
+ summary: string;
1461
+ serviceDeskId: string;
1462
+ requestTypeId: string;
1463
+ reporter?: string | undefined;
1464
+ }, {
1465
+ description: string;
1466
+ summary: string;
1467
+ serviceDeskId: string;
1468
+ requestTypeId: string;
1469
+ reporter?: string | undefined;
1470
+ }>;
1471
+ export type jiraOrgCreateServiceDeskRequestParamsType = z.infer<typeof jiraOrgCreateServiceDeskRequestParamsSchema>;
1472
+ export declare const jiraOrgCreateServiceDeskRequestOutputSchema: z.ZodObject<{
1473
+ success: z.ZodBoolean;
1474
+ error: z.ZodOptional<z.ZodString>;
1475
+ issueKey: z.ZodOptional<z.ZodString>;
1476
+ webLink: z.ZodOptional<z.ZodString>;
1477
+ currentStatus: z.ZodOptional<z.ZodString>;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ success: boolean;
1480
+ error?: string | undefined;
1481
+ issueKey?: string | undefined;
1482
+ webLink?: string | undefined;
1483
+ currentStatus?: string | undefined;
1484
+ }, {
1485
+ success: boolean;
1486
+ error?: string | undefined;
1487
+ issueKey?: string | undefined;
1488
+ webLink?: string | undefined;
1489
+ currentStatus?: string | undefined;
1490
+ }>;
1491
+ export type jiraOrgCreateServiceDeskRequestOutputType = z.infer<typeof jiraOrgCreateServiceDeskRequestOutputSchema>;
1492
+ export type jiraOrgCreateServiceDeskRequestFunction = ActionFunction<jiraOrgCreateServiceDeskRequestParamsType, AuthParamsType, jiraOrgCreateServiceDeskRequestOutputType>;
1191
1493
  export declare const jiraOrgGetJiraTicketDetailsParamsSchema: z.ZodObject<{
1192
1494
  projectKey: z.ZodString;
1193
1495
  issueId: z.ZodString;
@@ -5118,6 +5420,74 @@ export declare const salesforceGenerateSalesReportOutputSchema: z.ZodObject<{
5118
5420
  }>;
5119
5421
  export type salesforceGenerateSalesReportOutputType = z.infer<typeof salesforceGenerateSalesReportOutputSchema>;
5120
5422
  export type salesforceGenerateSalesReportFunction = ActionFunction<salesforceGenerateSalesReportParamsType, AuthParamsType, salesforceGenerateSalesReportOutputType>;
5423
+ export declare const salesforceSearchSalesforceRecordsParamsSchema: z.ZodObject<{
5424
+ keyword: z.ZodString;
5425
+ recordType: z.ZodString;
5426
+ fieldsToSearch: z.ZodArray<z.ZodString, "many">;
5427
+ limit: z.ZodOptional<z.ZodNumber>;
5428
+ }, "strip", z.ZodTypeAny, {
5429
+ keyword: string;
5430
+ recordType: string;
5431
+ fieldsToSearch: string[];
5432
+ limit?: number | undefined;
5433
+ }, {
5434
+ keyword: string;
5435
+ recordType: string;
5436
+ fieldsToSearch: string[];
5437
+ limit?: number | undefined;
5438
+ }>;
5439
+ export type salesforceSearchSalesforceRecordsParamsType = z.infer<typeof salesforceSearchSalesforceRecordsParamsSchema>;
5440
+ export declare const salesforceSearchSalesforceRecordsOutputSchema: z.ZodObject<{
5441
+ success: z.ZodBoolean;
5442
+ searchRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
5443
+ id: z.ZodOptional<z.ZodString>;
5444
+ attributes: z.ZodOptional<z.ZodObject<{
5445
+ type: z.ZodString;
5446
+ url: z.ZodString;
5447
+ }, "strip", z.ZodAny, z.objectOutputType<{
5448
+ type: z.ZodString;
5449
+ url: z.ZodString;
5450
+ }, z.ZodAny, "strip">, z.objectInputType<{
5451
+ type: z.ZodString;
5452
+ url: z.ZodString;
5453
+ }, z.ZodAny, "strip">>>;
5454
+ }, "strip", z.ZodTypeAny, {
5455
+ attributes?: z.objectOutputType<{
5456
+ type: z.ZodString;
5457
+ url: z.ZodString;
5458
+ }, z.ZodAny, "strip"> | undefined;
5459
+ id?: string | undefined;
5460
+ }, {
5461
+ attributes?: z.objectInputType<{
5462
+ type: z.ZodString;
5463
+ url: z.ZodString;
5464
+ }, z.ZodAny, "strip"> | undefined;
5465
+ id?: string | undefined;
5466
+ }>, "many">>;
5467
+ error: z.ZodOptional<z.ZodString>;
5468
+ }, "strip", z.ZodTypeAny, {
5469
+ success: boolean;
5470
+ error?: string | undefined;
5471
+ searchRecords?: {
5472
+ attributes?: z.objectOutputType<{
5473
+ type: z.ZodString;
5474
+ url: z.ZodString;
5475
+ }, z.ZodAny, "strip"> | undefined;
5476
+ id?: string | undefined;
5477
+ }[] | undefined;
5478
+ }, {
5479
+ success: boolean;
5480
+ error?: string | undefined;
5481
+ searchRecords?: {
5482
+ attributes?: z.objectInputType<{
5483
+ type: z.ZodString;
5484
+ url: z.ZodString;
5485
+ }, z.ZodAny, "strip"> | undefined;
5486
+ id?: string | undefined;
5487
+ }[] | undefined;
5488
+ }>;
5489
+ export type salesforceSearchSalesforceRecordsOutputType = z.infer<typeof salesforceSearchSalesforceRecordsOutputSchema>;
5490
+ export type salesforceSearchSalesforceRecordsFunction = ActionFunction<salesforceSearchSalesforceRecordsParamsType, AuthParamsType, salesforceSearchSalesforceRecordsOutputType>;
5121
5491
  export declare const salesforceGetSalesforceRecordsByQueryParamsSchema: z.ZodObject<{
5122
5492
  query: z.ZodString;
5123
5493
  limit: z.ZodOptional<z.ZodNumber>;
@@ -302,6 +302,54 @@ export const jiraCreateJiraTicketParamsSchema = z.object({
302
302
  export const jiraCreateJiraTicketOutputSchema = z.object({
303
303
  ticketUrl: z.string().describe("The url to the created Jira Ticket"),
304
304
  });
305
+ export const jiraGetServiceDesksParamsSchema = z.object({});
306
+ export const jiraGetServiceDesksOutputSchema = z.object({
307
+ success: z.boolean().describe("Whether the service desks were retrieved successfully"),
308
+ error: z.string().describe("The error that occurred if the service desks were not retrieved successfully").optional(),
309
+ serviceDesks: z
310
+ .array(z
311
+ .object({
312
+ id: z.string().describe("The ID of the service desk").optional(),
313
+ projectId: z.string().describe("The ID of the project").optional(),
314
+ projectKey: z.string().describe("The key of the project").optional(),
315
+ projectName: z.string().describe("The name of the service desk").optional(),
316
+ requestTypes: z
317
+ .array(z
318
+ .object({
319
+ id: z.string().describe("The ID of the request type").optional(),
320
+ name: z.string().describe("The name of the request type").optional(),
321
+ description: z.string().describe("The description of the request type").optional(),
322
+ issueTypeId: z.string().describe("The ID of the issue type").optional(),
323
+ portalId: z.string().describe("The ID of the customer portal").optional(),
324
+ helpText: z.string().describe("The help text for the request type").optional(),
325
+ serviceDeskId: z.string().describe("The ID of the service desk").optional(),
326
+ canCreateRequest: z.boolean().describe("Whether the request type can be created").optional(),
327
+ })
328
+ .describe("A request type"))
329
+ .describe("The list of request types")
330
+ .optional(),
331
+ })
332
+ .describe("A service desk"))
333
+ .describe("The list of service desks")
334
+ .optional(),
335
+ });
336
+ export const jiraCreateServiceDeskRequestParamsSchema = z.object({
337
+ serviceDeskId: z.string().describe("The ID of the service desk to create the request in"),
338
+ requestTypeId: z.string().describe("The ID of the request type to use for the new request"),
339
+ summary: z.string().describe("The summary of the new service desk request"),
340
+ description: z.string().describe("The description for the new service desk request"),
341
+ reporter: z
342
+ .string()
343
+ .describe("The email address of the person reporting the issue (for raising on behalf of)")
344
+ .optional(),
345
+ });
346
+ export const jiraCreateServiceDeskRequestOutputSchema = z.object({
347
+ success: z.boolean().describe("Whether the request was created successfully"),
348
+ error: z.string().describe("The error that occurred if the request was not created successfully").optional(),
349
+ issueKey: z.string().describe("The Jira issue key of the created request").optional(),
350
+ webLink: z.string().describe("The link to the customer portal request, if available").optional(),
351
+ currentStatus: z.string().describe("The current status of the created request").optional(),
352
+ });
305
353
  export const jiraGetJiraTicketDetailsParamsSchema = z.object({
306
354
  projectKey: z.string().describe("The key for the project"),
307
355
  issueId: z.string().describe("The ID of the ticket"),
@@ -393,6 +441,54 @@ export const jiraOrgCreateJiraTicketParamsSchema = z.object({
393
441
  export const jiraOrgCreateJiraTicketOutputSchema = z.object({
394
442
  ticketUrl: z.string().describe("The url to the created Jira Ticket"),
395
443
  });
444
+ export const jiraOrgGetServiceDesksParamsSchema = z.object({});
445
+ export const jiraOrgGetServiceDesksOutputSchema = z.object({
446
+ success: z.boolean().describe("Whether the service desks were retrieved successfully"),
447
+ error: z.string().describe("The error that occurred if the service desks were not retrieved successfully").optional(),
448
+ serviceDesks: z
449
+ .array(z
450
+ .object({
451
+ id: z.string().describe("The ID of the service desk").optional(),
452
+ projectId: z.string().describe("The ID of the project").optional(),
453
+ projectKey: z.string().describe("The key of the project").optional(),
454
+ projectName: z.string().describe("The name of the service desk").optional(),
455
+ requestTypes: z
456
+ .array(z
457
+ .object({
458
+ id: z.string().describe("The ID of the request type").optional(),
459
+ name: z.string().describe("The name of the request type").optional(),
460
+ description: z.string().describe("The description of the request type").optional(),
461
+ issueTypeId: z.string().describe("The ID of the issue type").optional(),
462
+ portalId: z.string().describe("The ID of the customer portal").optional(),
463
+ helpText: z.string().describe("The help text for the request type").optional(),
464
+ serviceDeskId: z.string().describe("The ID of the service desk").optional(),
465
+ canCreateRequest: z.boolean().describe("Whether the request type can be created").optional(),
466
+ })
467
+ .describe("A request type"))
468
+ .describe("The list of request types")
469
+ .optional(),
470
+ })
471
+ .describe("A service desk"))
472
+ .describe("The list of service desks")
473
+ .optional(),
474
+ });
475
+ export const jiraOrgCreateServiceDeskRequestParamsSchema = z.object({
476
+ serviceDeskId: z.string().describe("The ID of the service desk to create the request in"),
477
+ requestTypeId: z.string().describe("The ID of the request type to use for the new request"),
478
+ summary: z.string().describe("The summary of the new service desk request"),
479
+ description: z.string().describe("The description for the new service desk request"),
480
+ reporter: z
481
+ .string()
482
+ .describe("The email address of the person reporting the issue (for raising on behalf of)")
483
+ .optional(),
484
+ });
485
+ export const jiraOrgCreateServiceDeskRequestOutputSchema = z.object({
486
+ success: z.boolean().describe("Whether the request was created successfully"),
487
+ error: z.string().describe("The error that occurred if the request was not created successfully").optional(),
488
+ issueKey: z.string().describe("The Jira issue key of the created request").optional(),
489
+ webLink: z.string().describe("The link to the customer portal request, if available").optional(),
490
+ currentStatus: z.string().describe("The current status of the created request").optional(),
491
+ });
396
492
  export const jiraOrgGetJiraTicketDetailsParamsSchema = z.object({
397
493
  projectKey: z.string().describe("The key for the project"),
398
494
  issueId: z.string().describe("The ID of the ticket"),
@@ -2975,6 +3071,32 @@ export const salesforceGenerateSalesReportOutputSchema = z.object({
2975
3071
  .optional(),
2976
3072
  error: z.string().describe("The error that occurred if the sales report was not successfully generated.").optional(),
2977
3073
  });
3074
+ export const salesforceSearchSalesforceRecordsParamsSchema = z.object({
3075
+ keyword: z.string().describe("The keyword to search for"),
3076
+ recordType: z.string().describe("The type of record to search for"),
3077
+ fieldsToSearch: z.array(z.string()).describe("The fields to search for the keyword"),
3078
+ limit: z.number().describe("The maximum number of records to return").optional(),
3079
+ });
3080
+ export const salesforceSearchSalesforceRecordsOutputSchema = z.object({
3081
+ success: z.boolean().describe("Whether the records were successfully retrieved"),
3082
+ searchRecords: z
3083
+ .array(z
3084
+ .object({
3085
+ id: z.string().describe("The Salesforce record ID").optional(),
3086
+ attributes: z
3087
+ .object({
3088
+ type: z.string().describe("The Salesforce object type"),
3089
+ url: z.string().describe("The Salesforce record URL"),
3090
+ })
3091
+ .catchall(z.any())
3092
+ .describe("Metadata about the Salesforce record")
3093
+ .optional(),
3094
+ })
3095
+ .describe("A record from Salesforce"))
3096
+ .describe("The records that match the search")
3097
+ .optional(),
3098
+ error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
3099
+ });
2978
3100
  export const salesforceGetSalesforceRecordsByQueryParamsSchema = z.object({
2979
3101
  query: z.string().describe("The SOQL query to execute"),
2980
3102
  limit: z.number().describe("The maximum number of records to retrieve").optional(),
@@ -1,4 +1,4 @@
1
- import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, } from "./autogen/templates.js";
1
+ import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, jiraGetServiceDesksDefinition, jiraCreateServiceDeskRequestDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, } from "./autogen/templates.js";
2
2
  export const ACTION_GROUPS = {
3
3
  GENERIC: {
4
4
  description: "Generic utility actions",
@@ -100,6 +100,8 @@ export const ACTION_GROUPS = {
100
100
  jiraUpdateJiraTicketDetailsDefinition,
101
101
  jiraUpdateJiraTicketStatusDefinition,
102
102
  jiraGetJiraIssuesByQueryDefinition,
103
+ jiraGetServiceDesksDefinition,
104
+ jiraCreateServiceDeskRequestDefinition,
103
105
  ],
104
106
  },
105
107
  JIRA_ORG_ACTIONS: {
@@ -0,0 +1,3 @@
1
+ import type { jiraCreateServiceDeskRequestFunction } from "../../autogen/types.js";
2
+ declare const createServiceDeskRequest: jiraCreateServiceDeskRequestFunction;
3
+ export default createServiceDeskRequest;
@@ -0,0 +1,54 @@
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
+ const createServiceDeskRequest = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
12
+ const { serviceDeskId, requestTypeId, summary, description, reporter } = params;
13
+ const { authToken, cloudId } = authParams;
14
+ if (!cloudId || !authToken) {
15
+ throw new Error("Valid Cloud ID and auth token are required to get service desks");
16
+ }
17
+ const baseUrl = `https://api.atlassian.com/ex/jira/${cloudId}/rest/servicedeskapi/request`;
18
+ try {
19
+ const response = yield axiosClient.post(baseUrl, {
20
+ requestTypeId,
21
+ serviceDeskId,
22
+ // summary,
23
+ // description,
24
+ // reporter,
25
+ requestFieldValues: {
26
+ summary,
27
+ description,
28
+ },
29
+ raiseOnBehalfOf: reporter,
30
+ }, {
31
+ headers: {
32
+ Authorization: `Bearer ${authToken}`,
33
+ Accept: "application/json",
34
+ "Content-Type": "application/json",
35
+ },
36
+ });
37
+ const webLink = response.data._links.web;
38
+ const currentStatus = response.data.currentStatus.status;
39
+ return {
40
+ success: true,
41
+ webLink,
42
+ currentStatus,
43
+ issueKey: response.data.issueKey,
44
+ };
45
+ }
46
+ catch (error) {
47
+ console.error("Error creating service desk request: ", error);
48
+ return {
49
+ success: false,
50
+ error: error instanceof Error ? error.message : "Unknown error",
51
+ };
52
+ }
53
+ });
54
+ export default createServiceDeskRequest;
@@ -0,0 +1,3 @@
1
+ import type { jiraGetServiceDesksFunction } from "../../autogen/types.js";
2
+ declare const getServiceDesks: jiraGetServiceDesksFunction;
3
+ export default getServiceDesks;