Skip to content

Commit a8eed87

Browse files
committed
Merge branch 'master' into jay/money-1912-docs-api-sdk-action-configure-run-triggerdeploy-etc
2 parents ecd575d + 2b422d2 commit a8eed87

File tree

113 files changed

+1938
-610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1938
-610
lines changed

.github/workflows/publish-marketplace-content.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
shell: bash {0} # don't fast fail
4848
run: |
4949
printf -v added_modified_renamed_files '%s,%s' '${{ steps.files.outputs.added_modified }}' '${{ steps.files.outputs.renamed }}'
50-
pnpm dlx ts-node --esm scripts/updateMarketplaceReadme.mts $added_modified_renamed_files
50+
pnpm dlx tsx scripts/updateMarketplaceReadme.mts $added_modified_renamed_files

components/algolia/actions/create-objects/create-objects.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "algolia-create-objects",
55
name: "Create Objects",
66
description: "Adds an array of JavaScript objects to the given index. [See docs here](https://www.algolia.com/doc/api-reference/api-methods/save-objects/)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
algolia,

components/algolia/actions/delete-objects/delete-objects.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "algolia-delete-objects",
55
name: "Delete Objects",
66
description: "Delete objects from the given index. [See docs here](https://www.algolia.com/doc/api-reference/api-methods/delete-objects/)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
algolia,

components/algolia/algolia.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import algoliasearch from "algoliasearch";
1+
import { algoliasearch } from "algoliasearch";
22

33
export default {
44
type: "app",

components/algolia/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/algolia",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Pipedream Algolia Components",
55
"main": "algolia.app.js",
66
"keywords": [

components/gistly/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Overview
2+
3+
Gistly API allows you to fetch transcripts or subtitles from YouTube videos in various formats. It's a powerful tool for integrating video content into your applications, enabling you to process and analyze video transcripts programmatically.
4+
5+
- Instantly fetch transcripts from a library of billions of YouTube videos
6+
- Extract accurate and time-stamped video transcripts for content analysis
7+
- High performance and high availability API for bulk requests
8+
9+
# API Details
10+
11+
- **Endpoint**: `GET https://api.gist.ly/youtube/transcript`
12+
- **Authorization**: Requires an API key in the Authorization header.
13+
- **Parameters**:
14+
- `url` or `videoId`: Specify the YouTube video.
15+
- `text`: Boolean to return plain text transcript.
16+
- `chunkSize`: Maximum characters per transcript chunk (optional).
17+
18+
For more details, visit the [Gistly API documentation](https://gist.ly/youtube-transcript-api#doc).
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import app from "../../gistly.app.mjs";
2+
3+
export default {
4+
key: "gistly-get-transcript",
5+
name: "Get Transcript",
6+
description:
7+
"Fetches transcript/subtitles from a YouTube video using Gistly API.",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
app,
12+
videoUrl: {
13+
propDefinition: [
14+
app,
15+
"videoUrl",
16+
],
17+
optional: true,
18+
},
19+
videoId: {
20+
propDefinition: [
21+
app,
22+
"videoId",
23+
],
24+
optional: true,
25+
},
26+
text: {
27+
propDefinition: [
28+
app,
29+
"text",
30+
],
31+
},
32+
chunkSize: {
33+
propDefinition: [
34+
app,
35+
"chunkSize",
36+
],
37+
},
38+
},
39+
async run({ $ }) {
40+
const params = {
41+
url: this.videoUrl,
42+
videoId: this.videoId,
43+
text: this.text,
44+
chunkSize: this.chunkSize,
45+
};
46+
47+
const response = await this.app.getTranscript({
48+
$,
49+
params,
50+
});
51+
52+
$.export("$summary", "Successfully fetched the transcript for the video.");
53+
return response;
54+
},
55+
};

components/gistly/gistly.app.mjs

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,56 @@
1+
import { axios } from "@pipedream/platform";
2+
13
export default {
24
type: "app",
35
app: "gistly",
4-
propDefinitions: {},
6+
propDefinitions: {
7+
videoUrl: {
8+
type: "string",
9+
label: "YouTube Video URL",
10+
description: "The URL of the YouTube video to fetch the transcript from",
11+
},
12+
videoId: {
13+
type: "string",
14+
label: "YouTube Video ID",
15+
description: "The ID of the YouTube video to fetch the transcript from",
16+
},
17+
text: {
18+
type: "boolean",
19+
label: "Plain Text",
20+
description: "Return plain text transcript",
21+
default: false,
22+
},
23+
chunkSize: {
24+
type: "integer",
25+
label: "Chunk Size",
26+
description: "Maximum characters per transcript chunk",
27+
optional: true,
28+
},
29+
},
530
methods: {
6-
// this.$auth contains connected account data
7-
authKeys() {
8-
console.log(Object.keys(this.$auth));
31+
_apiKey() {
32+
return this.$auth.api_key;
33+
},
34+
_apiUrl() {
35+
return "https://api.gist.ly";
36+
},
37+
_makeRequest({
38+
$ = this, path, ...args
39+
}) {
40+
return axios($, {
41+
url: `${this._apiUrl()}${path}`,
42+
...args,
43+
headers: {
44+
"x-api-key": this._apiKey(),
45+
"Content-Type": "application/json",
46+
},
47+
});
48+
},
49+
getTranscript(args = {}) {
50+
return this._makeRequest({
51+
path: "/youtube/transcript",
52+
...args,
53+
});
954
},
1055
},
11-
};
56+
};

components/gistly/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/gistly",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "Pipedream Gistly Components",
55
"main": "gistly.app.mjs",
66
"keywords": [
@@ -11,5 +11,8 @@
1111
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
1212
"publishConfig": {
1313
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.0.3"
1417
}
15-
}
18+
}

components/github/actions/common/constants.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const PULL_REQUEST_STATES = [
66
"PENDING",
77
];
88

9+
const LIMIT = 100;
10+
911
export default {
1012
PULL_REQUEST_STATES,
13+
LIMIT,
1114
};

0 commit comments

Comments
 (0)