Skip to content

Commit 8f3278c

Browse files
committed
2 parents c4e01d5 + 8d75612 commit 8f3278c

File tree

23 files changed

+380
-2388
lines changed

23 files changed

+380
-2388
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
import app from "../../gong.app.mjs";
2+
import constants from "../../common/constants.mjs";
3+
import { ConfigurationError } from "@pipedream/platform";
4+
5+
export default {
6+
key: "gong-get-extensive-data",
7+
name: "Get Extensive Data",
8+
description: "Lists detailed call data. [See the documentation](https://us-66463.app.gong.io/settings/api/documentation#post-/v2/calls/extensive)",
9+
version: "0.0.1",
10+
type: "action",
11+
props: {
12+
app,
13+
fromDateTime: {
14+
propDefinition: [
15+
app,
16+
"fromDateTime",
17+
],
18+
optional: true,
19+
},
20+
toDateTime: {
21+
propDefinition: [
22+
app,
23+
"toDateTime",
24+
],
25+
optional: true,
26+
},
27+
workspaceId: {
28+
optional: true,
29+
propDefinition: [
30+
app,
31+
"workspaceId",
32+
],
33+
},
34+
callIds: {
35+
propDefinition: [
36+
app,
37+
"callIds",
38+
],
39+
},
40+
primaryUserIds: {
41+
type: "string[]",
42+
label: "Primary User IDs",
43+
description: "An optional list of user identifiers, if supplied the API will return only the calls hosted by the specified users. The identifiers in this field match the primaryUserId field of the calls.",
44+
propDefinition: [
45+
app,
46+
"userId",
47+
],
48+
optional: true,
49+
},
50+
maxResults: {
51+
type: "integer",
52+
label: "Max Results",
53+
description: "The maximum number or results to return",
54+
default: constants.DEFAULT_MAX,
55+
optional: true,
56+
},
57+
},
58+
methods: {
59+
getExtensiveData(args = {}) {
60+
return this.app.post({
61+
path: "/calls/extensive",
62+
...args,
63+
});
64+
},
65+
},
66+
async run({ $ }) {
67+
const {
68+
app,
69+
getExtensiveData,
70+
maxResults,
71+
...filter
72+
} = this;
73+
74+
if (filter?.workspaceId && filter?.callIds) {
75+
throw new ConfigurationError("Must not provide both `callIds` and `workspaceId`");
76+
}
77+
78+
try {
79+
const calls = await app.paginate({
80+
resourceFn: getExtensiveData,
81+
resourceFnArgs: {
82+
step: $,
83+
data: {
84+
filter,
85+
},
86+
},
87+
resourceName: "calls",
88+
max: maxResults,
89+
});
90+
91+
if (calls?.length) {
92+
$.export("$summary", `Successfully retrieved data for ${calls.length} calls`);
93+
}
94+
return calls;
95+
}
96+
catch (error) {
97+
const noCallsMessage = "No calls found corresponding to the provided filters";
98+
if (error?.message.includes(noCallsMessage)) {
99+
$.export("$summary", noCallsMessage);
100+
} else {
101+
throw new ConfigurationError(`${error?.message}`);
102+
}
103+
}
104+
},
105+
};

components/gong/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/gong",
3-
"version": "0.1.2",
3+
"version": "0.2.0",
44
"description": "Pipedream Gong Components",
55
"main": "gong.app.mjs",
66
"keywords": [

components/notiff_io/notiff_io.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

components/notion/actions/retrieve-block/retrieve-block.mjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "notion-retrieve-block",
55
name: "Retrieve Page Content",
66
description: "Get page content as block objects or markdown. Blocks can be text, lists, media, a page, among others. [See the documentation](https://developers.notion.com/reference/retrieve-a-block)",
7-
version: "0.2.0",
7+
version: "0.2.1",
88
type: "action",
99
props: {
1010
notion,
@@ -42,14 +42,15 @@ export default {
4242
const subpagesOnly = retrieveChildren === "Sub-Pages Only";
4343

4444
const block = await this.notion.retrieveBlock(this.blockId);
45-
if ([
45+
const shouldRetrieveChildren = [
4646
true,
4747
"All Children",
4848
"Sub-Pages Only",
49-
].includes(retrieveChildren)) {
49+
].includes(retrieveChildren);
50+
if (shouldRetrieveChildren) {
5051
block.children = await this.notion.retrieveBlockChildren(block, subpagesOnly);
5152
}
52-
$.export("$summary", `Successfully retrieved block${retrieveChildren
53+
$.export("$summary", `Successfully retrieved block${shouldRetrieveChildren
5354
? ` with ${block.children.length ?? 0} ${subpagesOnly
5455
? "sub-pages"
5556
: "children"}`

components/notion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/notion",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"description": "Pipedream Notion Components",
55
"main": "notion.app.mjs",
66
"keywords": [

components/smartlead/smartlead.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

docs-v2/pages/connect/components.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const components = await pd.getComponents({ q: "gitlab" });
144144
```bash
145145
curl -X https://api.pipedream.com/v1/connect/{project_id}/actions?app=gitlab \
146146
-H "Content-Type: application/json" \
147-
-H "X-PD-Environment: development" \
147+
-H "X-PD-Environment: {environment}" \
148148
-H "Authorization: Bearer {access_token}"
149149

150150
# Parse and return the data you need
@@ -239,7 +239,7 @@ const component = await pd.getComponent({ key: "gitlab-list-commits" });
239239
```bash
240240
curl -X https://api.pipedream.com/v1/connect/{project_id}/components/gitlab-list-commits \
241241
-H "Content-Type: application/json" \
242-
-H "X-PD-Environment: development" \
242+
-H "X-PD-Environment: {environment}" \
243243
-H "Authorization: Bearer {access_token}"
244244

245245
# Parse and return the data you need
@@ -346,7 +346,7 @@ const { options } = await pd.configureComponent({
346346
```bash
347347
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/components/configure \
348348
-H "Content-Type: application/json" \
349-
-H "X-PD-Environment: development" \
349+
-H "X-PD-Environment: {environment}" \
350350
-H "Authorization: Bearer {access_token}" \
351351
-d '{
352352
"external_user_id": "abc-123",
@@ -450,7 +450,7 @@ For example, to retrieve the configuration options for the `refName` prop:
450450
}
451451
```
452452

453-
### Configure dynamic props (optional)
453+
### Configure dynamic props
454454

455455
The set of props that a component can accept might not be static, and may change
456456
depending on the values of prior props. Props that behave this way are called
@@ -617,16 +617,16 @@ const resp = await pd.runAction({
617617
```bash
618618
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
619619
-H "Content-Type: application/json" \
620-
-H "X-PD-Environment: development" \
620+
-H "X-PD-Environment: {environment}" \
621621
-H "Authorization: Bearer {access_token}" \
622622
-d '{
623623
"external_user_id": "abc-123",
624624
"id": "gitlab-list-commits",
625-
"prop_name": "projectId",
626625
"configured_props": {
627626
"gitlab": {
628627
"authProvisionId": "apn_kVh9AoD"
629-
}
628+
},
629+
"projectId": 45672541,
630630
}
631631
}'
632632

@@ -709,11 +709,11 @@ Deploy a source for your users:
709709
const { data: deployedTrigger } = await pd.deployTrigger({
710710
externalUserId: "abc-123",
711711
id: "gitlab-new-issue",
712-
propName: "projectId",
713712
configuredProps: {
714713
gitlab: {
715714
authProvisionId: "apn_kVh9AoD",
716-
}
715+
},
716+
projectId: 45672541,
717717
},
718718
webhookUrl: "https://events.example.com/gitlab-new-issue"
719719
});
@@ -731,16 +731,16 @@ const {
731731
```bash
732732
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/components/triggers/deploy \
733733
-H "Content-Type: application/json" \
734-
-H "X-PD-Environment: development" \
734+
-H "X-PD-Environment: {environment}" \
735735
-H "Authorization: Bearer {access_token}" \
736736
-d '{
737737
"external_user_id": "abc-123",
738738
"id": "gitlab-new-issue",
739-
"prop_name": "projectId",
740739
"configured_props": {
741740
"gitlab": {
742741
"authProvisionId": "apn_kVh9AoD"
743-
}
742+
},
743+
"projectId": 45672541,
744744
},
745745
"webhook_url": "https://events.example.com/gitlab-new-issue"
746746
}'

docs-v2/pages/connect/mcp.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pipedream's MCP servers are powered by [Pipedream Connect](https://pipedream.com
1616
- Secure account connections with revocable access
1717

1818
<Callout type="info">
19-
Pipedream handles all OAuth and credential management through our [secure credential infrastructure](/privacy-and-security/#third-party-oauth-grants-api-keys-and-environment-variables). User credentials are encrypted at rest and all requests are made through Pipedream's servers, never directly exposing credentials to AI models.
19+
User credentials are encrypted at rest and all requests are made through Pipedream's servers, never directly exposing credentials to AI models. Read more about how we protect user credentials [here](/privacy-and-security/#third-party-oauth-grants-api-keys-and-environment-variables).
2020
</Callout>
2121

2222
## Available MCP servers
@@ -170,13 +170,19 @@ Pipedream's MCP servers enable AI assistants to perform a wide range of tasks:
170170
- Each MCP server provides tools specific to that app. Tools are automatically created based on Pipedream's registry of pre-built actions.
171171
- You can find the supported tools for a given app on its MCP server page or search for specific actions here: [pipedream.com/expore](https://pipedream.com/explore#popular-actions).
172172

173+
## Known gaps and limitations
174+
175+
- Pipedream's MCP server doesn't yet support [configuring dynamic props](/connect/components/#configure-dynamic-props), which means LLMs may get confused when trying to configure props that require inputs from previous props
176+
- As an end user, you need to manually add distinct MCP servers for every app you want to interact with, instead of using a single MCP server that contains tools for many APIs
177+
173178
## Pricing
174179

175180
- Anyone can use Pipedream's hosted MCP servers for their own use **for free**
176181
- To deploy Pipedream's MCP servers to your own app or agent, [contact our sales team](https://pipedream.com/pricing?plan=Enterprise)
177182

178-
## Resources
183+
## Additional resources
179184

185+
- [Pipedream hosted MCP servers](https://mcp.pipedream.com)
180186
- [MCP official spec](https://modelcontextprotocol.io/)
181187
- [Pipedream MCP reference implementation](https://github.com/PipedreamHQ/pipedream/tree/master/modelcontextprotocol)
182188
- [MCP inspector tool](https://modelcontextprotocol.io/docs/tools/inspector/)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"devDependencies": {
4242
"@eslint/eslintrc": "^3.2.0",
4343
"@eslint/js": "^9.15.0",
44+
"@next/eslint-plugin-next": "^14.2.5",
4445
"@pipedream/types": "0.1.4",
4546
"@tsconfig/node14": "^1.0.1",
4647
"@types/jest": "^27.4.1",
@@ -59,7 +60,6 @@
5960
"husky": "^7.0.4",
6061
"jest": "^29.7.0",
6162
"lint-staged": "^12.3.4",
62-
"@next/eslint-plugin-next": "^14.2.5",
6363
"pnpm": "9.14.2",
6464
"putout": ">=36",
6565
"renamer": "^4.0.0",

packages/connect-react/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<!-- markdownlint-disable MD024 -->
22
# Changelog
33

4+
# [1.0.1] - 2025-02-19
5+
6+
- remove bad polyfill (would break checking `document`)
7+
- handle bad `decode-named-character-reference` browser import via vite resolve.alias
8+
- stop accidentally bundling `lodash` (-80KB for es build)
9+
410
# [1.0.0-preview.30] - 2025-02-19
511

612
- SelectApp and SelectComponent Improvements

0 commit comments

Comments
 (0)