@tangle-network/agent-integrations 0.53.21 → 0.53.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/catalog.js CHANGED
@@ -7,16 +7,16 @@ import {
7
7
  parseIntegrationToolName,
8
8
  searchIntegrationTools,
9
9
  toMcpTools
10
- } from "./chunk-HNKLPD2J.js";
10
+ } from "./chunk-5WDBKER3.js";
11
11
  import "./chunk-XGL345YX.js";
12
12
  import "./chunk-ANWNXGVV.js";
13
13
  import "./chunk-H4XYLS7T.js";
14
14
  import "./chunk-FK4ENHCP.js";
15
- import "./chunk-DZUD7PHN.js";
15
+ import "./chunk-Z3HCDXRN.js";
16
16
  import "./chunk-FKBVBEKX.js";
17
17
  import "./chunk-P4FFI752.js";
18
- import "./chunk-TS4LMQX5.js";
19
- import "./chunk-NG3QG5RG.js";
18
+ import "./chunk-BDFPQX7U.js";
19
+ import "./chunk-GODEAAAZ.js";
20
20
  import "./chunk-XC54EOUQ.js";
21
21
  import "./chunk-JXFPIZ3O.js";
22
22
  import "./chunk-PZ5AY32C.js";
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  integrationSpecToConnector,
7
7
  listIntegrationSpecs
8
- } from "./chunk-DZUD7PHN.js";
8
+ } from "./chunk-Z3HCDXRN.js";
9
9
  import {
10
10
  CONNECTOR_ADAPTER_FACTORIES,
11
11
  adapters_exports
12
- } from "./chunk-NG3QG5RG.js";
12
+ } from "./chunk-GODEAAAZ.js";
13
13
 
14
14
  // src/activepieces-catalog.ts
15
15
  import { readFileSync } from "fs";
@@ -4406,4 +4406,4 @@ export {
4406
4406
  signCapability,
4407
4407
  verifyCapabilityToken
4408
4408
  };
4409
- //# sourceMappingURL=chunk-HNKLPD2J.js.map
4409
+ //# sourceMappingURL=chunk-5WDBKER3.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CONNECTOR_ADAPTER_FACTORIES,
3
3
  adapters_exports
4
- } from "./chunk-NG3QG5RG.js";
4
+ } from "./chunk-GODEAAAZ.js";
5
5
 
6
6
  // src/connectors/bundled-manifests.ts
7
7
  var MANIFEST_PROBE_PREFIX = "tangle-adapter-metadata-";
@@ -106,4 +106,4 @@ export {
106
106
  bundledApiKeyHint,
107
107
  bundledOAuth2Auth
108
108
  };
109
- //# sourceMappingURL=chunk-TS4LMQX5.js.map
109
+ //# sourceMappingURL=chunk-BDFPQX7U.js.map
@@ -27582,19 +27582,55 @@ var ironcladConnector = declarativeRestConnector({
27582
27582
  });
27583
27583
 
27584
27584
  // src/connectors/adapters/jira-cloud.ts
27585
+ var JIRA_READ_SCOPE = "read:jira-work";
27586
+ var JIRA_WRITE_SCOPE = "write:jira-work";
27587
+ var JIRA_USER_SCOPE = "read:jira-user";
27588
+ var jiraSiteProperty = {
27589
+ cloudId: {
27590
+ type: "string",
27591
+ description: "Atlassian site id from resources.list."
27592
+ }
27593
+ };
27585
27594
  var jiraCloudConnector = declarativeRestConnector({
27586
27595
  kind: "jira-cloud",
27587
27596
  displayName: "Jira Cloud",
27588
27597
  description: "Issue tracking and project management on Jira Cloud \u2014 create, update, comment on, transition, and search issues via the REST API v3.",
27589
27598
  auth: {
27590
- kind: "api-key",
27591
- hint: "Jira Cloud API token (https://id.atlassian.com/manage-profile/security/api-tokens). The instance URL (e.g. https://example.atlassian.net) is supplied per data source as metadata.instanceUrl."
27599
+ kind: "oauth2",
27600
+ authorizationUrl: "https://auth.atlassian.com/authorize",
27601
+ tokenUrl: "https://auth.atlassian.com/oauth/token",
27602
+ scopes: [
27603
+ "offline_access",
27604
+ JIRA_READ_SCOPE,
27605
+ JIRA_WRITE_SCOPE,
27606
+ JIRA_USER_SCOPE
27607
+ ],
27608
+ clientIdEnv: "ATLASSIAN_OAUTH_CLIENT_ID",
27609
+ clientSecretEnv: "ATLASSIAN_OAUTH_CLIENT_SECRET",
27610
+ extraAuthParams: {
27611
+ audience: "api.atlassian.com",
27612
+ prompt: "consent"
27613
+ }
27592
27614
  },
27593
27615
  category: "doc",
27594
27616
  defaultConsistencyModel: "authoritative",
27595
- baseUrl: { metadataKey: "instanceUrl" },
27596
- test: { method: "GET", path: "/rest/api/3/myself" },
27617
+ baseUrl: "https://api.atlassian.com",
27618
+ defaultHeaders: { accept: "application/json" },
27619
+ test: { method: "GET", path: "/oauth/token/accessible-resources" },
27597
27620
  capabilities: [
27621
+ {
27622
+ name: "resources.list",
27623
+ class: "read",
27624
+ description: "List Atlassian sites authorized for this connection. Use a returned id as the cloudId required by every Jira action.",
27625
+ parameters: {
27626
+ type: "object",
27627
+ properties: {}
27628
+ },
27629
+ request: {
27630
+ method: "GET",
27631
+ path: "/oauth/token/accessible-resources"
27632
+ }
27633
+ },
27598
27634
  {
27599
27635
  name: "issues.create",
27600
27636
  class: "mutation",
@@ -27602,16 +27638,28 @@ var jiraCloudConnector = declarativeRestConnector({
27602
27638
  parameters: {
27603
27639
  type: "object",
27604
27640
  properties: {
27641
+ ...jiraSiteProperty,
27605
27642
  fields: { type: "object", description: "Issue fields \u2014 must include project, summary, and issuetype." },
27606
27643
  update: { type: "object" },
27607
27644
  transition: { type: "object" },
27608
27645
  properties: { type: "array" },
27609
27646
  historyMetadata: { type: "object" }
27610
27647
  },
27611
- required: ["fields"]
27648
+ required: ["cloudId", "fields"]
27612
27649
  },
27613
- request: { method: "POST", path: "/rest/api/3/issue", body: "args" },
27614
- cas: "native-idempotency"
27650
+ request: {
27651
+ method: "POST",
27652
+ path: "/ex/jira/{cloudId}/rest/api/3/issue",
27653
+ body: {
27654
+ fields: "{fields}",
27655
+ update: "{update}",
27656
+ transition: "{transition}",
27657
+ properties: "{properties}",
27658
+ historyMetadata: "{historyMetadata}"
27659
+ }
27660
+ },
27661
+ cas: "native-idempotency",
27662
+ requiredScopes: [JIRA_WRITE_SCOPE]
27615
27663
  },
27616
27664
  {
27617
27665
  name: "issues.search",
@@ -27620,6 +27668,7 @@ var jiraCloudConnector = declarativeRestConnector({
27620
27668
  parameters: {
27621
27669
  type: "object",
27622
27670
  properties: {
27671
+ ...jiraSiteProperty,
27623
27672
  jql: { type: "string", description: "JQL query (see https://support.atlassian.com/jira-software-cloud/docs/use-advanced-search-with-jira-query-language-jql/)." },
27624
27673
  startAt: { type: "integer", minimum: 0 },
27625
27674
  maxResults: { type: "integer", minimum: 1, maximum: 100 },
@@ -27627,11 +27676,11 @@ var jiraCloudConnector = declarativeRestConnector({
27627
27676
  expand: { type: "string" },
27628
27677
  validateQuery: { type: "string", enum: ["strict", "warn", "none", "true", "false"] }
27629
27678
  },
27630
- required: ["jql"]
27679
+ required: ["cloudId", "jql"]
27631
27680
  },
27632
27681
  request: {
27633
27682
  method: "GET",
27634
- path: "/rest/api/3/search",
27683
+ path: "/ex/jira/{cloudId}/rest/api/3/search",
27635
27684
  query: {
27636
27685
  jql: "{jql}",
27637
27686
  startAt: "{startAt}",
@@ -27640,7 +27689,8 @@ var jiraCloudConnector = declarativeRestConnector({
27640
27689
  expand: "{expand}",
27641
27690
  validateQuery: "{validateQuery}"
27642
27691
  }
27643
- }
27692
+ },
27693
+ requiredScopes: [JIRA_READ_SCOPE]
27644
27694
  },
27645
27695
  {
27646
27696
  name: "issues.get",
@@ -27649,18 +27699,20 @@ var jiraCloudConnector = declarativeRestConnector({
27649
27699
  parameters: {
27650
27700
  type: "object",
27651
27701
  properties: {
27702
+ ...jiraSiteProperty,
27652
27703
  issueIdOrKey: { type: "string" },
27653
27704
  fields: { type: "string" },
27654
27705
  expand: { type: "string", description: 'Comma-delimited expand list \u2014 e.g. "renderedFields,names,schema,transitions".' },
27655
27706
  properties: { type: "string" }
27656
27707
  },
27657
- required: ["issueIdOrKey"]
27708
+ required: ["cloudId", "issueIdOrKey"]
27658
27709
  },
27659
27710
  request: {
27660
27711
  method: "GET",
27661
- path: "/rest/api/3/issue/{issueIdOrKey}",
27712
+ path: "/ex/jira/{cloudId}/rest/api/3/issue/{issueIdOrKey}",
27662
27713
  query: { fields: "{fields}", expand: "{expand}", properties: "{properties}" }
27663
- }
27714
+ },
27715
+ requiredScopes: [JIRA_READ_SCOPE]
27664
27716
  },
27665
27717
  {
27666
27718
  name: "issues.update",
@@ -27669,6 +27721,7 @@ var jiraCloudConnector = declarativeRestConnector({
27669
27721
  parameters: {
27670
27722
  type: "object",
27671
27723
  properties: {
27724
+ ...jiraSiteProperty,
27672
27725
  issueIdOrKey: { type: "string" },
27673
27726
  fields: { type: "object" },
27674
27727
  update: { type: "object" },
@@ -27676,15 +27729,16 @@ var jiraCloudConnector = declarativeRestConnector({
27676
27729
  historyMetadata: { type: "object" },
27677
27730
  notifyUsers: { type: "boolean" }
27678
27731
  },
27679
- required: ["issueIdOrKey"]
27732
+ required: ["cloudId", "issueIdOrKey"]
27680
27733
  },
27681
27734
  request: {
27682
27735
  method: "PUT",
27683
- path: "/rest/api/3/issue/{issueIdOrKey}",
27736
+ path: "/ex/jira/{cloudId}/rest/api/3/issue/{issueIdOrKey}",
27684
27737
  query: { notifyUsers: "{notifyUsers}" },
27685
27738
  body: { fields: "{fields}", update: "{update}", properties: "{properties}", historyMetadata: "{historyMetadata}" }
27686
27739
  },
27687
- cas: "optimistic-read-verify"
27740
+ cas: "optimistic-read-verify",
27741
+ requiredScopes: [JIRA_WRITE_SCOPE]
27688
27742
  },
27689
27743
  {
27690
27744
  name: "issues.assign",
@@ -27693,17 +27747,19 @@ var jiraCloudConnector = declarativeRestConnector({
27693
27747
  parameters: {
27694
27748
  type: "object",
27695
27749
  properties: {
27750
+ ...jiraSiteProperty,
27696
27751
  issueIdOrKey: { type: "string" },
27697
27752
  accountId: { type: ["string", "null"] }
27698
27753
  },
27699
- required: ["issueIdOrKey"]
27754
+ required: ["cloudId", "issueIdOrKey"]
27700
27755
  },
27701
27756
  request: {
27702
27757
  method: "PUT",
27703
- path: "/rest/api/3/issue/{issueIdOrKey}/assignee",
27758
+ path: "/ex/jira/{cloudId}/rest/api/3/issue/{issueIdOrKey}/assignee",
27704
27759
  body: { accountId: "{accountId}" }
27705
27760
  },
27706
- cas: "optimistic-read-verify"
27761
+ cas: "optimistic-read-verify",
27762
+ requiredScopes: [JIRA_WRITE_SCOPE]
27707
27763
  },
27708
27764
  {
27709
27765
  name: "issues.transition",
@@ -27712,20 +27768,22 @@ var jiraCloudConnector = declarativeRestConnector({
27712
27768
  parameters: {
27713
27769
  type: "object",
27714
27770
  properties: {
27771
+ ...jiraSiteProperty,
27715
27772
  issueIdOrKey: { type: "string" },
27716
27773
  transition: { type: "object", description: "Object with at least { id: string }." },
27717
27774
  fields: { type: "object" },
27718
27775
  update: { type: "object" },
27719
27776
  historyMetadata: { type: "object" }
27720
27777
  },
27721
- required: ["issueIdOrKey", "transition"]
27778
+ required: ["cloudId", "issueIdOrKey", "transition"]
27722
27779
  },
27723
27780
  request: {
27724
27781
  method: "POST",
27725
- path: "/rest/api/3/issue/{issueIdOrKey}/transitions",
27782
+ path: "/ex/jira/{cloudId}/rest/api/3/issue/{issueIdOrKey}/transitions",
27726
27783
  body: { transition: "{transition}", fields: "{fields}", update: "{update}", historyMetadata: "{historyMetadata}" }
27727
27784
  },
27728
- cas: "native-idempotency"
27785
+ cas: "native-idempotency",
27786
+ requiredScopes: [JIRA_WRITE_SCOPE]
27729
27787
  },
27730
27788
  {
27731
27789
  name: "issues.link",
@@ -27734,19 +27792,21 @@ var jiraCloudConnector = declarativeRestConnector({
27734
27792
  parameters: {
27735
27793
  type: "object",
27736
27794
  properties: {
27795
+ ...jiraSiteProperty,
27737
27796
  type: { type: "object", description: "Link type \u2014 { name: string } or { id: string }." },
27738
27797
  inwardIssue: { type: "object", description: "{ key: string } | { id: string }." },
27739
27798
  outwardIssue: { type: "object", description: "{ key: string } | { id: string }." },
27740
27799
  comment: { type: "object" }
27741
27800
  },
27742
- required: ["type", "inwardIssue", "outwardIssue"]
27801
+ required: ["cloudId", "type", "inwardIssue", "outwardIssue"]
27743
27802
  },
27744
27803
  request: {
27745
27804
  method: "POST",
27746
- path: "/rest/api/3/issueLink",
27805
+ path: "/ex/jira/{cloudId}/rest/api/3/issueLink",
27747
27806
  body: { type: "{type}", inwardIssue: "{inwardIssue}", outwardIssue: "{outwardIssue}", comment: "{comment}" }
27748
27807
  },
27749
- cas: "native-idempotency"
27808
+ cas: "native-idempotency",
27809
+ requiredScopes: [JIRA_WRITE_SCOPE]
27750
27810
  },
27751
27811
  {
27752
27812
  name: "issues.watchers.add",
@@ -27755,17 +27815,19 @@ var jiraCloudConnector = declarativeRestConnector({
27755
27815
  parameters: {
27756
27816
  type: "object",
27757
27817
  properties: {
27818
+ ...jiraSiteProperty,
27758
27819
  issueIdOrKey: { type: "string" },
27759
27820
  accountId: { type: "string" }
27760
27821
  },
27761
- required: ["issueIdOrKey", "accountId"]
27822
+ required: ["cloudId", "issueIdOrKey", "accountId"]
27762
27823
  },
27763
27824
  request: {
27764
27825
  method: "POST",
27765
- path: "/rest/api/3/issue/{issueIdOrKey}/watchers",
27826
+ path: "/ex/jira/{cloudId}/rest/api/3/issue/{issueIdOrKey}/watchers",
27766
27827
  body: "{accountId}"
27767
27828
  },
27768
- cas: "native-idempotency"
27829
+ cas: "native-idempotency",
27830
+ requiredScopes: [JIRA_WRITE_SCOPE]
27769
27831
  },
27770
27832
  {
27771
27833
  name: "comments.list",
@@ -27774,19 +27836,21 @@ var jiraCloudConnector = declarativeRestConnector({
27774
27836
  parameters: {
27775
27837
  type: "object",
27776
27838
  properties: {
27839
+ ...jiraSiteProperty,
27777
27840
  issueIdOrKey: { type: "string" },
27778
27841
  startAt: { type: "integer", minimum: 0 },
27779
27842
  maxResults: { type: "integer", minimum: 1, maximum: 100 },
27780
27843
  orderBy: { type: "string", enum: ["created", "-created", "+created"] },
27781
27844
  expand: { type: "string" }
27782
27845
  },
27783
- required: ["issueIdOrKey"]
27846
+ required: ["cloudId", "issueIdOrKey"]
27784
27847
  },
27785
27848
  request: {
27786
27849
  method: "GET",
27787
- path: "/rest/api/3/issue/{issueIdOrKey}/comment",
27850
+ path: "/ex/jira/{cloudId}/rest/api/3/issue/{issueIdOrKey}/comment",
27788
27851
  query: { startAt: "{startAt}", maxResults: "{maxResults}", orderBy: "{orderBy}", expand: "{expand}" }
27789
- }
27852
+ },
27853
+ requiredScopes: [JIRA_READ_SCOPE]
27790
27854
  },
27791
27855
  {
27792
27856
  name: "comments.create",
@@ -27795,19 +27859,21 @@ var jiraCloudConnector = declarativeRestConnector({
27795
27859
  parameters: {
27796
27860
  type: "object",
27797
27861
  properties: {
27862
+ ...jiraSiteProperty,
27798
27863
  issueIdOrKey: { type: "string" },
27799
27864
  body: { type: ["object", "string"], description: 'ADF document or plain string (wiki text via "expand=renderedBody" in subsequent fetch).' },
27800
27865
  visibility: { type: "object" },
27801
27866
  properties: { type: "array" }
27802
27867
  },
27803
- required: ["issueIdOrKey", "body"]
27868
+ required: ["cloudId", "issueIdOrKey", "body"]
27804
27869
  },
27805
27870
  request: {
27806
27871
  method: "POST",
27807
- path: "/rest/api/3/issue/{issueIdOrKey}/comment",
27872
+ path: "/ex/jira/{cloudId}/rest/api/3/issue/{issueIdOrKey}/comment",
27808
27873
  body: { body: "{body}", visibility: "{visibility}", properties: "{properties}" }
27809
27874
  },
27810
- cas: "native-idempotency"
27875
+ cas: "native-idempotency",
27876
+ requiredScopes: [JIRA_WRITE_SCOPE]
27811
27877
  },
27812
27878
  {
27813
27879
  name: "comments.update",
@@ -27816,20 +27882,22 @@ var jiraCloudConnector = declarativeRestConnector({
27816
27882
  parameters: {
27817
27883
  type: "object",
27818
27884
  properties: {
27885
+ ...jiraSiteProperty,
27819
27886
  issueIdOrKey: { type: "string" },
27820
27887
  commentId: { type: "string" },
27821
27888
  body: { type: ["object", "string"] },
27822
27889
  visibility: { type: "object" },
27823
27890
  properties: { type: "array" }
27824
27891
  },
27825
- required: ["issueIdOrKey", "commentId", "body"]
27892
+ required: ["cloudId", "issueIdOrKey", "commentId", "body"]
27826
27893
  },
27827
27894
  request: {
27828
27895
  method: "PUT",
27829
- path: "/rest/api/3/issue/{issueIdOrKey}/comment/{commentId}",
27896
+ path: "/ex/jira/{cloudId}/rest/api/3/issue/{issueIdOrKey}/comment/{commentId}",
27830
27897
  body: { body: "{body}", visibility: "{visibility}", properties: "{properties}" }
27831
27898
  },
27832
- cas: "optimistic-read-verify"
27899
+ cas: "optimistic-read-verify",
27900
+ requiredScopes: [JIRA_WRITE_SCOPE]
27833
27901
  },
27834
27902
  {
27835
27903
  name: "comments.delete",
@@ -27838,16 +27906,18 @@ var jiraCloudConnector = declarativeRestConnector({
27838
27906
  parameters: {
27839
27907
  type: "object",
27840
27908
  properties: {
27909
+ ...jiraSiteProperty,
27841
27910
  issueIdOrKey: { type: "string" },
27842
27911
  commentId: { type: "string" }
27843
27912
  },
27844
- required: ["issueIdOrKey", "commentId"]
27913
+ required: ["cloudId", "issueIdOrKey", "commentId"]
27845
27914
  },
27846
27915
  request: {
27847
27916
  method: "DELETE",
27848
- path: "/rest/api/3/issue/{issueIdOrKey}/comment/{commentId}"
27917
+ path: "/ex/jira/{cloudId}/rest/api/3/issue/{issueIdOrKey}/comment/{commentId}"
27849
27918
  },
27850
- cas: "optimistic-read-verify"
27919
+ cas: "optimistic-read-verify",
27920
+ requiredScopes: [JIRA_WRITE_SCOPE]
27851
27921
  },
27852
27922
  {
27853
27923
  name: "attachments.get",
@@ -27855,13 +27925,17 @@ var jiraCloudConnector = declarativeRestConnector({
27855
27925
  description: "Fetch attachment metadata by attachment ID.",
27856
27926
  parameters: {
27857
27927
  type: "object",
27858
- properties: { attachmentId: { type: "string" } },
27859
- required: ["attachmentId"]
27928
+ properties: {
27929
+ ...jiraSiteProperty,
27930
+ attachmentId: { type: "string" }
27931
+ },
27932
+ required: ["cloudId", "attachmentId"]
27860
27933
  },
27861
27934
  request: {
27862
27935
  method: "GET",
27863
- path: "/rest/api/3/attachment/{attachmentId}"
27864
- }
27936
+ path: "/ex/jira/{cloudId}/rest/api/3/attachment/{attachmentId}"
27937
+ },
27938
+ requiredScopes: [JIRA_READ_SCOPE]
27865
27939
  },
27866
27940
  {
27867
27941
  name: "users.find",
@@ -27870,22 +27944,25 @@ var jiraCloudConnector = declarativeRestConnector({
27870
27944
  parameters: {
27871
27945
  type: "object",
27872
27946
  properties: {
27947
+ ...jiraSiteProperty,
27873
27948
  query: { type: "string" },
27874
27949
  accountId: { type: "string" },
27875
27950
  startAt: { type: "integer", minimum: 0 },
27876
27951
  maxResults: { type: "integer", minimum: 1, maximum: 1e3 }
27877
- }
27952
+ },
27953
+ required: ["cloudId"]
27878
27954
  },
27879
27955
  request: {
27880
27956
  method: "GET",
27881
- path: "/rest/api/3/user/search",
27957
+ path: "/ex/jira/{cloudId}/rest/api/3/user/search",
27882
27958
  query: {
27883
27959
  query: "{query}",
27884
27960
  accountId: "{accountId}",
27885
27961
  startAt: "{startAt}",
27886
27962
  maxResults: "{maxResults}"
27887
27963
  }
27888
- }
27964
+ },
27965
+ requiredScopes: [JIRA_USER_SCOPE]
27889
27966
  }
27890
27967
  ]
27891
27968
  });
@@ -57234,7 +57311,10 @@ var CONNECTOR_ADAPTER_FACTORIES = [
57234
57311
  clientSecret: "TODOIST_OAUTH_CLIENT_SECRET"
57235
57312
  }),
57236
57313
  defineFactoryAdapter(() => trelloConnector, {}),
57237
- defineFactoryAdapter(() => jiraCloudConnector, {}),
57314
+ defineFactoryAdapter(() => jiraCloudConnector, {
57315
+ clientId: "ATLASSIAN_OAUTH_CLIENT_ID",
57316
+ clientSecret: "ATLASSIAN_OAUTH_CLIENT_SECRET"
57317
+ }),
57238
57318
  defineFactoryAdapter(() => ringcentralConnector, {
57239
57319
  clientId: "RINGCENTRAL_OAUTH_CLIENT_ID",
57240
57320
  clientSecret: "RINGCENTRAL_OAUTH_CLIENT_SECRET"
@@ -137642,4 +137722,4 @@ export {
137642
137722
  demandbaseConnector,
137643
137723
  adapters_exports
137644
137724
  };
137645
- //# sourceMappingURL=chunk-NG3QG5RG.js.map
137725
+ //# sourceMappingURL=chunk-GODEAAAZ.js.map