@credal/actions 0.2.155 → 0.2.157

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 (35) hide show
  1. package/dist/actions/actionMapper.js +43 -1
  2. package/dist/actions/autogen/templates.js +100 -86
  3. package/dist/actions/autogen/types.d.ts +22 -31
  4. package/dist/actions/autogen/types.js +65 -48
  5. package/dist/actions/parse.d.ts +0 -10
  6. package/dist/actions/parse.js +2 -11
  7. package/dist/actions/providers/confluence/updatePage.js +15 -14
  8. package/dist/actions/providers/github/searchOrganization.js +3 -3
  9. package/dist/actions/providers/jamf/types.d.ts +8 -0
  10. package/dist/actions/providers/jamf/types.js +7 -0
  11. package/dist/actions/providers/jira/getJiraIssuesByQuery.js +42 -27
  12. package/dist/actions/providers/salesforce/getSalesforceRecordsByQuery.js +1 -1
  13. package/package.json +1 -1
  14. package/dist/actions/providers/generic/fillTemplateAction.d.ts +0 -7
  15. package/dist/actions/providers/generic/fillTemplateAction.js +0 -18
  16. package/dist/actions/providers/generic/genericApiCall.d.ts +0 -3
  17. package/dist/actions/providers/generic/genericApiCall.js +0 -38
  18. package/dist/actions/providers/google-oauth/getDriveContentById.d.ts +0 -3
  19. package/dist/actions/providers/google-oauth/getDriveContentById.js +0 -161
  20. package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.d.ts +0 -3
  21. package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.js +0 -47
  22. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.d.ts +0 -3
  23. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.js +0 -110
  24. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.d.ts +0 -3
  25. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.js +0 -78
  26. package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.d.ts +0 -15
  27. package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.js +0 -129
  28. package/dist/actions/providers/googlemaps/nearbysearch.d.ts +0 -3
  29. package/dist/actions/providers/googlemaps/nearbysearch.js +0 -96
  30. package/dist/actions/providers/slackUser/getSlackMessagesInTimeRange.d.ts +0 -3
  31. package/dist/actions/providers/slackUser/getSlackMessagesInTimeRange.js +0 -81
  32. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.d.ts +0 -3
  33. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.js +0 -154
  34. package/dist/actions/providers/x/scrapeTweetDataWithNitter.d.ts +0 -3
  35. package/dist/actions/providers/x/scrapeTweetDataWithNitter.js +0 -45
@@ -412,7 +412,49 @@ export const ActionMapper = {
412
412
  },
413
413
  jira: jiraActions,
414
414
  jiraOrg: jiraActions,
415
- jiraDataCenter: jiraActions,
415
+ jiraDataCenter: {
416
+ // Exclude Service Desk: getServiceDesks, createServiceDeskRequest, publicCommentOnServiceDeskRequest
417
+ getJiraIssuesByQuery: {
418
+ fn: getJiraIssuesByQuery,
419
+ paramsSchema: jiraGetJiraIssuesByQueryParamsSchema,
420
+ outputSchema: jiraGetJiraIssuesByQueryOutputSchema,
421
+ },
422
+ assignJiraTicket: {
423
+ fn: assignJiraTicket,
424
+ paramsSchema: jiraAssignJiraTicketParamsSchema,
425
+ outputSchema: jiraAssignJiraTicketOutputSchema,
426
+ },
427
+ commentJiraTicket: {
428
+ fn: commentJiraTicket,
429
+ paramsSchema: jiraCommentJiraTicketParamsSchema,
430
+ outputSchema: jiraCommentJiraTicketOutputSchema,
431
+ },
432
+ createJiraTicket: {
433
+ fn: createJiraTicket,
434
+ paramsSchema: jiraCreateJiraTicketParamsSchema,
435
+ outputSchema: jiraCreateJiraTicketOutputSchema,
436
+ },
437
+ getJiraTicketDetails: {
438
+ fn: getJiraTicketDetails,
439
+ paramsSchema: jiraGetJiraTicketDetailsParamsSchema,
440
+ outputSchema: jiraGetJiraTicketDetailsOutputSchema,
441
+ },
442
+ getJiraTicketHistory: {
443
+ fn: getJiraTicketHistory,
444
+ paramsSchema: jiraGetJiraTicketHistoryParamsSchema,
445
+ outputSchema: jiraGetJiraTicketHistoryOutputSchema,
446
+ },
447
+ updateJiraTicketDetails: {
448
+ fn: updateJiraTicketDetails,
449
+ paramsSchema: jiraUpdateJiraTicketDetailsParamsSchema,
450
+ outputSchema: jiraUpdateJiraTicketDetailsOutputSchema,
451
+ },
452
+ updateJiraTicketStatus: {
453
+ fn: updateJiraTicketStatus,
454
+ paramsSchema: jiraUpdateJiraTicketStatusParamsSchema,
455
+ outputSchema: jiraUpdateJiraTicketStatusOutputSchema,
456
+ },
457
+ },
416
458
  openstreetmap: {
417
459
  getLatitudeLongitudeFromLocation: {
418
460
  fn: getLatitudeLongitudeFromLocation,
@@ -1590,12 +1590,7 @@ export const jiraGetJiraIssuesByQueryDefinition = {
1590
1590
  },
1591
1591
  output: {
1592
1592
  type: "object",
1593
- required: ["success"],
1594
1593
  properties: {
1595
- success: {
1596
- type: "boolean",
1597
- description: "Whether the records were successfully retrieved",
1598
- },
1599
1594
  results: {
1600
1595
  type: "array",
1601
1596
  description: "The results of the Jira issues",
@@ -2282,12 +2277,7 @@ export const jiraOrgGetJiraIssuesByQueryDefinition = {
2282
2277
  },
2283
2278
  output: {
2284
2279
  type: "object",
2285
- required: ["success"],
2286
2280
  properties: {
2287
- success: {
2288
- type: "boolean",
2289
- description: "Whether the records were successfully retrieved",
2290
- },
2291
2281
  results: {
2292
2282
  type: "array",
2293
2283
  description: "The results of the Jira issues",
@@ -2974,12 +2964,7 @@ export const jiraDataCenterGetJiraIssuesByQueryDefinition = {
2974
2964
  },
2975
2965
  output: {
2976
2966
  type: "object",
2977
- required: ["success"],
2978
2967
  properties: {
2979
- success: {
2980
- type: "boolean",
2981
- description: "Whether the records were successfully retrieved",
2982
- },
2983
2968
  results: {
2984
2969
  type: "array",
2985
2970
  description: "The results of the Jira issues",
@@ -12349,91 +12334,92 @@ export const githubSearchOrganizationDefinition = {
12349
12334
  properties: {
12350
12335
  success: {
12351
12336
  type: "boolean",
12352
- description: "Whether the operation was successful",
12337
+ description: "Whether the operation was successful.",
12353
12338
  },
12354
12339
  error: {
12355
12340
  type: "string",
12356
- description: "Error message if the operation failed",
12341
+ description: "Error message if the operation failed.",
12357
12342
  },
12358
12343
  results: {
12359
12344
  type: "array",
12360
- description: "Array of search results",
12345
+ description: "List of search results.",
12361
12346
  items: {
12362
12347
  type: "object",
12363
- required: ["name", "url", "type", "content"],
12348
+ required: ["type", "name", "url", "contents"],
12364
12349
  properties: {
12365
- name: {
12350
+ type: {
12366
12351
  type: "string",
12367
- description: "The name of the result (file name, commit SHA, or issue/PR title)",
12352
+ enum: ["code", "commit", "issueOrPullRequest"],
12353
+ description: "The type of search result.",
12368
12354
  },
12369
- url: {
12355
+ name: {
12370
12356
  type: "string",
12371
- description: "The URL of the result",
12357
+ description: "The name or identifier for the result (e.g., file name, commit SHA, or PR title).",
12372
12358
  },
12373
- type: {
12359
+ url: {
12374
12360
  type: "string",
12375
- enum: ["code", "commit", "issueOrPullRequest"],
12376
- description: "The type of the result",
12361
+ description: "The API URL of the result.",
12377
12362
  },
12378
- content: {
12363
+ contents: {
12364
+ description: "The contents of the result, which vary depending on its type.",
12379
12365
  oneOf: [
12380
12366
  {
12381
12367
  type: "object",
12382
- description: "Code result content",
12368
+ description: "Code search result content.",
12383
12369
  required: ["name", "path", "sha", "url", "score", "textMatches"],
12384
12370
  properties: {
12385
12371
  name: {
12386
12372
  type: "string",
12387
- description: "The name of the file that had a match",
12373
+ description: "The name of the file that had a match.",
12388
12374
  },
12389
12375
  path: {
12390
12376
  type: "string",
12391
- description: "The path of the file that had a match",
12377
+ description: "The path of the file that had a match.",
12392
12378
  },
12393
12379
  sha: {
12394
12380
  type: "string",
12395
- description: "The SHA of the commit that had a match",
12381
+ description: "The short SHA of the commit containing the match.",
12396
12382
  },
12397
12383
  url: {
12398
12384
  type: "string",
12399
- description: "The URL of the file that had a match",
12385
+ description: "The API URL of the file that had a match.",
12400
12386
  },
12401
12387
  score: {
12402
12388
  type: "number",
12403
- description: "The similarity score of the match",
12389
+ description: "The similarity score of the match.",
12404
12390
  },
12405
12391
  textMatches: {
12406
12392
  type: "array",
12407
- description: "A list of text matches that match the query",
12393
+ description: "A list of text matches found within the file.",
12408
12394
  items: {
12409
12395
  type: "object",
12410
12396
  required: ["matches"],
12411
12397
  properties: {
12412
12398
  object_url: {
12413
12399
  type: "string",
12414
- description: "The URL of the object that had a match",
12400
+ description: "The API URL of the matched object.",
12415
12401
  },
12416
12402
  object_type: {
12417
12403
  type: "string",
12418
- description: "The type of the object that had a match",
12404
+ description: "The type of object that was matched.",
12419
12405
  },
12420
12406
  fragment: {
12421
12407
  type: "string",
12422
- description: "The fragment of the text that had a match",
12408
+ description: "Text snippet showing the match.",
12423
12409
  },
12424
12410
  matches: {
12425
12411
  type: "array",
12426
- description: "A list of matches that match the query",
12412
+ description: "List of matches found in the fragment.",
12427
12413
  items: {
12428
12414
  type: "object",
12429
12415
  properties: {
12430
12416
  text: {
12431
12417
  type: "string",
12432
- description: "The text that had a match",
12418
+ description: "The text that matched.",
12433
12419
  },
12434
12420
  indices: {
12435
12421
  type: "array",
12436
- description: "The indices of the text that had a match",
12422
+ description: "Start and end indices of the match.",
12437
12423
  items: {
12438
12424
  type: "number",
12439
12425
  },
@@ -12448,67 +12434,81 @@ export const githubSearchOrganizationDefinition = {
12448
12434
  },
12449
12435
  {
12450
12436
  type: "object",
12451
- description: "Commit result content",
12452
- required: ["sha", "url", "message", "author", "committer", "parents", "tree", "commitDate"],
12437
+ description: "Commit search result content.",
12438
+ required: ["sha", "url", "commit", "score"],
12453
12439
  properties: {
12454
12440
  sha: {
12455
12441
  type: "string",
12456
- description: "The SHA of the commit that had a match",
12442
+ description: "The commit SHA.",
12457
12443
  },
12458
12444
  url: {
12459
12445
  type: "string",
12460
- description: "The URL of the commit that had a match",
12446
+ description: "The API URL of the commit.",
12461
12447
  },
12462
12448
  commit: {
12463
12449
  type: "object",
12464
- required: ["message", "author", "score", "files"],
12450
+ required: ["message", "author"],
12465
12451
  properties: {
12452
+ message: {
12453
+ type: "string",
12454
+ description: "The commit message.",
12455
+ },
12466
12456
  author: {
12467
12457
  type: "object",
12468
12458
  required: ["name", "email", "date"],
12469
12459
  properties: {
12470
12460
  name: {
12471
12461
  type: "string",
12472
- description: "The name of the author",
12462
+ description: "The commit author name.",
12473
12463
  },
12474
12464
  email: {
12475
12465
  type: "string",
12476
- description: "The email of the author",
12466
+ description: "The commit author email.",
12477
12467
  },
12478
12468
  date: {
12479
12469
  type: "string",
12480
- description: "The date of the commit",
12470
+ description: "The commit date.",
12481
12471
  },
12482
12472
  },
12483
12473
  },
12484
- message: {
12474
+ },
12475
+ },
12476
+ author: {
12477
+ type: "object",
12478
+ description: "The GitHub user who authored the commit.",
12479
+ properties: {
12480
+ login: {
12485
12481
  type: "string",
12486
- description: "The message of the commit",
12482
+ description: "GitHub username of the author.",
12483
+ },
12484
+ html_url: {
12485
+ type: "string",
12486
+ description: "URL to the author’s GitHub profile.",
12487
12487
  },
12488
12488
  },
12489
- score: {
12490
- type: "number",
12491
- description: "The score of the commit",
12492
- },
12493
- files: {
12494
- type: "array",
12495
- description: "A list of files that match the query",
12496
- items: {
12497
- type: "object",
12498
- required: ["filename", "status", "patch"],
12499
- properties: {
12500
- filename: {
12501
- type: "string",
12502
- description: "The filename of the file",
12503
- },
12504
- status: {
12505
- type: "string",
12506
- description: "The status of the file",
12507
- },
12508
- patch: {
12509
- type: "string",
12510
- description: "The patch of the file",
12511
- },
12489
+ },
12490
+ score: {
12491
+ type: "number",
12492
+ description: "The commit search relevance score.",
12493
+ },
12494
+ files: {
12495
+ type: "array",
12496
+ description: "List of files changed in the commit.",
12497
+ items: {
12498
+ type: "object",
12499
+ required: ["filename", "status"],
12500
+ properties: {
12501
+ filename: {
12502
+ type: "string",
12503
+ description: "The filename of the changed file.",
12504
+ },
12505
+ status: {
12506
+ type: "string",
12507
+ description: "The status of the change (added, modified, deleted).",
12508
+ },
12509
+ patch: {
12510
+ type: "string",
12511
+ description: "The diff patch (truncated).",
12512
12512
  },
12513
12513
  },
12514
12514
  },
@@ -12517,56 +12517,70 @@ export const githubSearchOrganizationDefinition = {
12517
12517
  },
12518
12518
  {
12519
12519
  type: "object",
12520
- description: "Issue or pull request result content",
12521
- required: ["title", "url", "state", "createdAt", "updatedAt", "user"],
12520
+ description: "Issue or pull request search result content.",
12521
+ required: ["number", "title", "html_url", "state", "isPullRequest", "user", "score"],
12522
12522
  properties: {
12523
12523
  number: {
12524
12524
  type: "number",
12525
- description: "The number of the issue or pull request",
12525
+ description: "The issue or pull request number.",
12526
12526
  },
12527
12527
  title: {
12528
12528
  type: "string",
12529
- description: "The title of the issue or pull request",
12529
+ description: "The title of the issue or pull request.",
12530
12530
  },
12531
12531
  html_url: {
12532
12532
  type: "string",
12533
- description: "The URL of the issue or pull request",
12533
+ description: "The URL of the issue or pull request.",
12534
12534
  },
12535
12535
  state: {
12536
12536
  type: "string",
12537
- description: "The state of the issue or pull request",
12538
12537
  enum: ["open", "closed"],
12538
+ description: "The state of the issue or pull request.",
12539
12539
  },
12540
12540
  isPullRequest: {
12541
12541
  type: "boolean",
12542
- description: "Whether the issue or pull request is a pull request",
12542
+ description: "Whether the item is a pull request.",
12543
12543
  },
12544
12544
  body: {
12545
12545
  type: "string",
12546
- description: "The body of the issue or pull request",
12546
+ description: "The body text of the issue or pull request.",
12547
+ },
12548
+ user: {
12549
+ type: "object",
12550
+ description: "The user who created the issue or pull request.",
12551
+ properties: {
12552
+ name: {
12553
+ type: "string",
12554
+ description: "The user’s display name.",
12555
+ },
12556
+ email: {
12557
+ type: "string",
12558
+ description: "The user’s email address, if available.",
12559
+ },
12560
+ },
12547
12561
  },
12548
12562
  score: {
12549
12563
  type: "number",
12550
- description: "The score of the issue or pull request",
12564
+ description: "The search result relevance score.",
12551
12565
  },
12552
12566
  files: {
12553
12567
  type: "array",
12554
- description: "A list of files that match the query",
12568
+ description: "Files associated with the pull request.",
12555
12569
  items: {
12556
12570
  type: "object",
12557
12571
  required: ["filename", "status"],
12558
12572
  properties: {
12559
12573
  filename: {
12560
12574
  type: "string",
12561
- description: "The filename of the file",
12575
+ description: "File name in the PR diff.",
12562
12576
  },
12563
12577
  status: {
12564
12578
  type: "string",
12565
- description: "The status of the file",
12579
+ description: "File change status (added, modified, removed).",
12566
12580
  },
12567
12581
  patch: {
12568
12582
  type: "string",
12569
- description: "The patch of the file",
12583
+ description: "Diff patch content (truncated).",
12570
12584
  },
12571
12585
  },
12572
12586
  },