@keystrokehq/pexels 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/collection-media.cjs +76 -0
- package/dist/actions/collection-media.cjs.map +1 -0
- package/dist/actions/collection-media.d.cts +9 -0
- package/dist/actions/collection-media.d.cts.map +1 -0
- package/dist/actions/collection-media.d.mts +9 -0
- package/dist/actions/collection-media.d.mts.map +1 -0
- package/dist/actions/collection-media.mjs +75 -0
- package/dist/actions/collection-media.mjs.map +1 -0
- package/dist/actions/curated-photos.cjs +48 -0
- package/dist/actions/curated-photos.cjs.map +1 -0
- package/dist/actions/curated-photos.d.cts +9 -0
- package/dist/actions/curated-photos.d.cts.map +1 -0
- package/dist/actions/curated-photos.d.mts +9 -0
- package/dist/actions/curated-photos.d.mts.map +1 -0
- package/dist/actions/curated-photos.mjs +47 -0
- package/dist/actions/curated-photos.mjs.map +1 -0
- package/dist/actions/featured-collections.cjs +35 -0
- package/dist/actions/featured-collections.cjs.map +1 -0
- package/dist/actions/featured-collections.d.cts +9 -0
- package/dist/actions/featured-collections.d.cts.map +1 -0
- package/dist/actions/featured-collections.d.mts +9 -0
- package/dist/actions/featured-collections.d.mts.map +1 -0
- package/dist/actions/featured-collections.mjs +34 -0
- package/dist/actions/featured-collections.mjs.map +1 -0
- package/dist/actions/get-photo.cjs +38 -0
- package/dist/actions/get-photo.cjs.map +1 -0
- package/dist/actions/get-photo.d.cts +9 -0
- package/dist/actions/get-photo.d.cts.map +1 -0
- package/dist/actions/get-photo.d.mts +9 -0
- package/dist/actions/get-photo.d.mts.map +1 -0
- package/dist/actions/get-photo.mjs +37 -0
- package/dist/actions/get-photo.mjs.map +1 -0
- package/dist/actions/get-video-by-id.cjs +46 -0
- package/dist/actions/get-video-by-id.cjs.map +1 -0
- package/dist/actions/get-video-by-id.d.cts +9 -0
- package/dist/actions/get-video-by-id.d.cts.map +1 -0
- package/dist/actions/get-video-by-id.d.mts +9 -0
- package/dist/actions/get-video-by-id.d.mts.map +1 -0
- package/dist/actions/get-video-by-id.mjs +45 -0
- package/dist/actions/get-video-by-id.mjs.map +1 -0
- package/dist/actions/index.cjs +19 -0
- package/dist/actions/index.d.cts +10 -0
- package/dist/actions/index.d.mts +10 -0
- package/dist/actions/index.mjs +10 -0
- package/dist/actions/my-collections.cjs +33 -0
- package/dist/actions/my-collections.cjs.map +1 -0
- package/dist/actions/my-collections.d.cts +9 -0
- package/dist/actions/my-collections.d.cts.map +1 -0
- package/dist/actions/my-collections.d.mts +9 -0
- package/dist/actions/my-collections.d.mts.map +1 -0
- package/dist/actions/my-collections.mjs +32 -0
- package/dist/actions/my-collections.mjs.map +1 -0
- package/dist/actions/popular-videos.cjs +58 -0
- package/dist/actions/popular-videos.cjs.map +1 -0
- package/dist/actions/popular-videos.d.cts +9 -0
- package/dist/actions/popular-videos.d.cts.map +1 -0
- package/dist/actions/popular-videos.d.mts +9 -0
- package/dist/actions/popular-videos.d.mts.map +1 -0
- package/dist/actions/popular-videos.mjs +57 -0
- package/dist/actions/popular-videos.mjs.map +1 -0
- package/dist/actions/search-photos.cjs +62 -0
- package/dist/actions/search-photos.cjs.map +1 -0
- package/dist/actions/search-photos.d.cts +9 -0
- package/dist/actions/search-photos.d.cts.map +1 -0
- package/dist/actions/search-photos.d.mts +9 -0
- package/dist/actions/search-photos.d.mts.map +1 -0
- package/dist/actions/search-photos.mjs +61 -0
- package/dist/actions/search-photos.mjs.map +1 -0
- package/dist/actions/search-videos.cjs +69 -0
- package/dist/actions/search-videos.cjs.map +1 -0
- package/dist/actions/search-videos.d.cts +9 -0
- package/dist/actions/search-videos.d.cts.map +1 -0
- package/dist/actions/search-videos.d.mts +9 -0
- package/dist/actions/search-videos.d.mts.map +1 -0
- package/dist/actions/search-videos.mjs +68 -0
- package/dist/actions/search-videos.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +24 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.mjs +13 -0
- package/package.json +49 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-photo.ts
|
|
4
|
+
const PexelsGetPhotoInput = zod.z.object({ id: zod.z.number().int().describe("The unique identifier of the photo to retrieve") }).describe("Request schema for retrieving a specific photo by its ID.");
|
|
5
|
+
const PexelsGetPhoto_PhotoSrcSchema = zod.z.object({
|
|
6
|
+
tiny: zod.z.string().describe("Tiny size photo URL"),
|
|
7
|
+
large: zod.z.string().describe("Large size photo URL"),
|
|
8
|
+
small: zod.z.string().describe("Small size photo URL"),
|
|
9
|
+
medium: zod.z.string().describe("Medium size photo URL"),
|
|
10
|
+
large2x: zod.z.string().describe("Double-resolution large size photo URL"),
|
|
11
|
+
original: zod.z.string().describe("Original size photo URL"),
|
|
12
|
+
portrait: zod.z.string().describe("Portrait orientation photo URL"),
|
|
13
|
+
landscape: zod.z.string().describe("Landscape orientation photo URL")
|
|
14
|
+
}).describe("Various image size URLs for a photo.");
|
|
15
|
+
const PexelsGetPhotoOutput = zod.z.object({
|
|
16
|
+
id: zod.z.number().int().describe("Photo's unique identifier"),
|
|
17
|
+
alt: zod.z.string().describe("Alternate text description of the photo"),
|
|
18
|
+
src: PexelsGetPhoto_PhotoSrcSchema.nullable(),
|
|
19
|
+
url: zod.z.string().describe("Pexels page URL for the photo"),
|
|
20
|
+
liked: zod.z.boolean().describe("Whether the requesting user has liked this photo"),
|
|
21
|
+
width: zod.z.number().int().describe("Width of the photo in pixels"),
|
|
22
|
+
height: zod.z.number().int().describe("Height of the photo in pixels"),
|
|
23
|
+
avg_color: zod.z.string().describe("Average color of the photo in hex code"),
|
|
24
|
+
photographer: zod.z.string().describe("Name of the photographer"),
|
|
25
|
+
photographer_id: zod.z.number().int().describe("Photographer's unique identifier"),
|
|
26
|
+
photographer_url: zod.z.string().describe("URL of the photographer's profile")
|
|
27
|
+
}).describe("Detailed information for a single photo.");
|
|
28
|
+
const pexelsGetPhoto = require_action.action("PEXELS_GET_PHOTO", {
|
|
29
|
+
slug: "pexels-get-photo",
|
|
30
|
+
name: "Get Photo",
|
|
31
|
+
description: "Tool to retrieve detailed information about a specific photo. Use when you have a valid photo ID to fetch metadata including dimensions, photographer details, and image URLs. Use after confirming the photo ID from search or curated endpoints.",
|
|
32
|
+
input: PexelsGetPhotoInput,
|
|
33
|
+
output: PexelsGetPhotoOutput
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
exports.pexelsGetPhoto = pexelsGetPhoto;
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=get-photo.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-photo.cjs","names":["z","action"],"sources":["../../src/actions/get-photo.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsGetPhotoInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the photo to retrieve\"),\n}).describe(\"Request schema for retrieving a specific photo by its ID.\");\nconst PexelsGetPhoto_PhotoSrcSchema: z.ZodTypeAny = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\"),\n large: z.string().describe(\"Large size photo URL\"),\n small: z.string().describe(\"Small size photo URL\"),\n medium: z.string().describe(\"Medium size photo URL\"),\n large2x: z.string().describe(\"Double-resolution large size photo URL\"),\n original: z.string().describe(\"Original size photo URL\"),\n portrait: z.string().describe(\"Portrait orientation photo URL\"),\n landscape: z.string().describe(\"Landscape orientation photo URL\"),\n}).describe(\"Various image size URLs for a photo.\");\nexport const PexelsGetPhotoOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Photo's unique identifier\"),\n alt: z.string().describe(\"Alternate text description of the photo\"),\n src: PexelsGetPhoto_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"Pexels page URL for the photo\"),\n liked: z.boolean().describe(\"Whether the requesting user has liked this photo\"),\n width: z.number().int().describe(\"Width of the photo in pixels\"),\n height: z.number().int().describe(\"Height of the photo in pixels\"),\n avg_color: z.string().describe(\"Average color of the photo in hex code\"),\n photographer: z.string().describe(\"Name of the photographer\"),\n photographer_id: z.number().int().describe(\"Photographer's unique identifier\"),\n photographer_url: z.string().describe(\"URL of the photographer's profile\"),\n}).describe(\"Detailed information for a single photo.\");\n\nexport const pexelsGetPhoto = action(\"PEXELS_GET_PHOTO\", {\n slug: \"pexels-get-photo\",\n name: \"Get Photo\",\n description: \"Tool to retrieve detailed information about a specific photo. Use when you have a valid photo ID to fetch metadata including dimensions, photographer details, and image URLs. Use after confirming the photo ID from search or curated endpoints.\",\n input: PexelsGetPhotoInput,\n output: PexelsGetPhotoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,EACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAA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mC;AAC3E,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-photo.d.ts
|
|
4
|
+
declare const PexelsGetPhotoInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsGetPhotoOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsGetPhoto: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsGetPhoto };
|
|
9
|
+
//# sourceMappingURL=get-photo.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-photo.d.cts","names":[],"sources":["../../src/actions/get-photo.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAEoC;AAAA,cAW3D,oBAAA,EAAsB,CAAA,CAAE,UAYkB;AAAA,cAE1C,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-photo.d.ts
|
|
4
|
+
declare const PexelsGetPhotoInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsGetPhotoOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsGetPhoto: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsGetPhoto };
|
|
9
|
+
//# sourceMappingURL=get-photo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-photo.d.mts","names":[],"sources":["../../src/actions/get-photo.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAEoC;AAAA,cAW3D,oBAAA,EAAsB,CAAA,CAAE,UAYkB;AAAA,cAE1C,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-photo.ts
|
|
4
|
+
const PexelsGetPhotoInput = z.object({ id: z.number().int().describe("The unique identifier of the photo to retrieve") }).describe("Request schema for retrieving a specific photo by its ID.");
|
|
5
|
+
const PexelsGetPhoto_PhotoSrcSchema = z.object({
|
|
6
|
+
tiny: z.string().describe("Tiny size photo URL"),
|
|
7
|
+
large: z.string().describe("Large size photo URL"),
|
|
8
|
+
small: z.string().describe("Small size photo URL"),
|
|
9
|
+
medium: z.string().describe("Medium size photo URL"),
|
|
10
|
+
large2x: z.string().describe("Double-resolution large size photo URL"),
|
|
11
|
+
original: z.string().describe("Original size photo URL"),
|
|
12
|
+
portrait: z.string().describe("Portrait orientation photo URL"),
|
|
13
|
+
landscape: z.string().describe("Landscape orientation photo URL")
|
|
14
|
+
}).describe("Various image size URLs for a photo.");
|
|
15
|
+
const pexelsGetPhoto = action("PEXELS_GET_PHOTO", {
|
|
16
|
+
slug: "pexels-get-photo",
|
|
17
|
+
name: "Get Photo",
|
|
18
|
+
description: "Tool to retrieve detailed information about a specific photo. Use when you have a valid photo ID to fetch metadata including dimensions, photographer details, and image URLs. Use after confirming the photo ID from search or curated endpoints.",
|
|
19
|
+
input: PexelsGetPhotoInput,
|
|
20
|
+
output: z.object({
|
|
21
|
+
id: z.number().int().describe("Photo's unique identifier"),
|
|
22
|
+
alt: z.string().describe("Alternate text description of the photo"),
|
|
23
|
+
src: PexelsGetPhoto_PhotoSrcSchema.nullable(),
|
|
24
|
+
url: z.string().describe("Pexels page URL for the photo"),
|
|
25
|
+
liked: z.boolean().describe("Whether the requesting user has liked this photo"),
|
|
26
|
+
width: z.number().int().describe("Width of the photo in pixels"),
|
|
27
|
+
height: z.number().int().describe("Height of the photo in pixels"),
|
|
28
|
+
avg_color: z.string().describe("Average color of the photo in hex code"),
|
|
29
|
+
photographer: z.string().describe("Name of the photographer"),
|
|
30
|
+
photographer_id: z.number().int().describe("Photographer's unique identifier"),
|
|
31
|
+
photographer_url: z.string().describe("URL of the photographer's profile")
|
|
32
|
+
}).describe("Detailed information for a single photo.")
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { pexelsGetPhoto };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=get-photo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-photo.mjs","names":[],"sources":["../../src/actions/get-photo.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsGetPhotoInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the photo to retrieve\"),\n}).describe(\"Request schema for retrieving a specific photo by its ID.\");\nconst PexelsGetPhoto_PhotoSrcSchema: z.ZodTypeAny = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\"),\n large: z.string().describe(\"Large size photo URL\"),\n small: z.string().describe(\"Small size photo URL\"),\n medium: z.string().describe(\"Medium size photo URL\"),\n large2x: z.string().describe(\"Double-resolution large size photo URL\"),\n original: z.string().describe(\"Original size photo URL\"),\n portrait: z.string().describe(\"Portrait orientation photo URL\"),\n landscape: z.string().describe(\"Landscape orientation photo URL\"),\n}).describe(\"Various image size URLs for a photo.\");\nexport const PexelsGetPhotoOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Photo's unique identifier\"),\n alt: z.string().describe(\"Alternate text description of the photo\"),\n src: PexelsGetPhoto_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"Pexels page URL for the photo\"),\n liked: z.boolean().describe(\"Whether the requesting user has liked this photo\"),\n width: z.number().int().describe(\"Width of the photo in pixels\"),\n height: z.number().int().describe(\"Height of the photo in pixels\"),\n avg_color: z.string().describe(\"Average color of the photo in hex code\"),\n photographer: z.string().describe(\"Name of the photographer\"),\n photographer_id: z.number().int().describe(\"Photographer's unique identifier\"),\n photographer_url: z.string().describe(\"URL of the photographer's profile\"),\n}).describe(\"Detailed information for a single photo.\");\n\nexport const pexelsGetPhoto = action(\"PEXELS_GET_PHOTO\", {\n slug: \"pexels-get-photo\",\n name: \"Get Photo\",\n description: \"Tool to retrieve detailed information about a specific photo. Use when you have a valid photo ID to fetch metadata including dimensions, photographer details, and image URLs. Use after confirming the photo ID from search or curated endpoints.\",\n input: PexelsGetPhotoInput,\n output: PexelsGetPhotoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO,EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAClE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAelD,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAnBgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EAClE,KAAK,8BAA8B,SAAS;EAC5C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EACxD,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD;EAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;EAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACvE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EAC5D,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EAC7E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3E,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-video-by-id.ts
|
|
4
|
+
const PexelsGetVideoByIdInput = zod.z.object({ id: zod.z.number().int().describe("The unique identifier of the video to retrieve") }).describe("Request schema for retrieving a specific video by its ID.");
|
|
5
|
+
const PexelsGetVideoById_UserSchema = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Unique identifier of the videographer"),
|
|
7
|
+
url: zod.z.string().describe("URL to the videographer's Pexels profile"),
|
|
8
|
+
name: zod.z.string().describe("Name of the videographer")
|
|
9
|
+
}).describe("Information about the videographer.");
|
|
10
|
+
const PexelsGetVideoById_VideoFileSchema = zod.z.object({
|
|
11
|
+
id: zod.z.number().int().describe("Unique identifier of the video file"),
|
|
12
|
+
fps: zod.z.number().describe("Frames per second of the video file").nullable().optional(),
|
|
13
|
+
link: zod.z.string().describe("Direct download URL for this video file version"),
|
|
14
|
+
width: zod.z.number().int().describe("Width of this video file version in pixels"),
|
|
15
|
+
height: zod.z.number().int().describe("Height of this video file version in pixels"),
|
|
16
|
+
quality: zod.z.string().describe("Quality level (e.g., 'sd', 'hd', 'uhd')").nullable().optional(),
|
|
17
|
+
file_type: zod.z.string().describe("MIME type of the video file (e.g., 'video/mp4')")
|
|
18
|
+
}).describe("A video file variant with specific quality and dimensions.");
|
|
19
|
+
const PexelsGetVideoById_VideoPictureSchema = zod.z.object({
|
|
20
|
+
id: zod.z.number().int().describe("Unique identifier of the preview picture"),
|
|
21
|
+
nr: zod.z.number().int().describe("Picture number/index"),
|
|
22
|
+
picture: zod.z.string().describe("URL to the preview image")
|
|
23
|
+
}).describe("A preview image for the video.");
|
|
24
|
+
const PexelsGetVideoByIdOutput = zod.z.object({
|
|
25
|
+
id: zod.z.number().int().describe("Unique identifier for the video"),
|
|
26
|
+
url: zod.z.string().describe("Pexels.com page URL for this video"),
|
|
27
|
+
tags: zod.z.array(zod.z.string()).describe("List of tags associated with the video"),
|
|
28
|
+
user: PexelsGetVideoById_UserSchema.nullable(),
|
|
29
|
+
image: zod.z.string().describe("URL to a preview screenshot of the video"),
|
|
30
|
+
width: zod.z.number().int().describe("Original video width in pixels"),
|
|
31
|
+
height: zod.z.number().int().describe("Original video height in pixels"),
|
|
32
|
+
duration: zod.z.number().int().describe("Duration of the video in seconds"),
|
|
33
|
+
video_files: zod.z.array(PexelsGetVideoById_VideoFileSchema).describe("Array of different sized/quality versions of the video"),
|
|
34
|
+
video_pictures: zod.z.array(PexelsGetVideoById_VideoPictureSchema).describe("Array of preview images for the video")
|
|
35
|
+
}).describe("Detailed information for a single video from Pexels.");
|
|
36
|
+
const pexelsGetVideoById = require_action.action("PEXELS_GET_VIDEO_BY_ID", {
|
|
37
|
+
slug: "pexels-get-video-by-id",
|
|
38
|
+
name: "Get Video by ID",
|
|
39
|
+
description: "Tool to retrieve detailed information about a specific video from Pexels. Use when you have a valid video ID to fetch metadata including dimensions, duration, videographer details, and available video file versions.",
|
|
40
|
+
input: PexelsGetVideoByIdInput,
|
|
41
|
+
output: PexelsGetVideoByIdOutput
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
exports.pexelsGetVideoById = pexelsGetVideoById;
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=get-video-by-id.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-video-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-video-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsGetVideoByIdInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the video to retrieve\"),\n}).describe(\"Request schema for retrieving a specific video by its ID.\");\nconst PexelsGetVideoById_UserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the videographer\"),\n url: z.string().describe(\"URL to the videographer's Pexels profile\"),\n name: z.string().describe(\"Name of the videographer\"),\n}).describe(\"Information about the videographer.\");\nconst PexelsGetVideoById_VideoFileSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the video file\"),\n fps: z.number().describe(\"Frames per second of the video file\").nullable().optional(),\n link: z.string().describe(\"Direct download URL for this video file version\"),\n width: z.number().int().describe(\"Width of this video file version in pixels\"),\n height: z.number().int().describe(\"Height of this video file version in pixels\"),\n quality: z.string().describe(\"Quality level (e.g., 'sd', 'hd', 'uhd')\").nullable().optional(),\n file_type: z.string().describe(\"MIME type of the video file (e.g., 'video/mp4')\"),\n}).describe(\"A video file variant with specific quality and dimensions.\");\nconst PexelsGetVideoById_VideoPictureSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the preview picture\"),\n nr: z.number().int().describe(\"Picture number/index\"),\n picture: z.string().describe(\"URL to the preview image\"),\n}).describe(\"A preview image for the video.\");\nexport const PexelsGetVideoByIdOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the video\"),\n url: z.string().describe(\"Pexels.com page URL for this video\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the video\"),\n user: PexelsGetVideoById_UserSchema.nullable(),\n image: z.string().describe(\"URL to a preview screenshot of the video\"),\n width: z.number().int().describe(\"Original video width in pixels\"),\n height: z.number().int().describe(\"Original video height in pixels\"),\n duration: z.number().int().describe(\"Duration of the video in seconds\"),\n video_files: z.array(PexelsGetVideoById_VideoFileSchema).describe(\"Array of different sized/quality versions of the video\"),\n video_pictures: z.array(PexelsGetVideoById_VideoPictureSchema).describe(\"Array of preview images for the video\"),\n}).describe(\"Detailed information for a single video from Pexels.\");\n\nexport const pexelsGetVideoById = action(\"PEXELS_GET_VIDEO_BY_ID\", {\n slug: \"pexels-get-video-by-id\",\n name: \"Get Video by ID\",\n description: \"Tool to retrieve detailed information about a specific video from Pexels. Use when you have a valid video ID to fetch metadata including dimensions, duration, videographer details, and available video file versions.\",\n input: PexelsGetVideoByIdInput,\n output: PexelsGetVideoByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AACtD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,qC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,CAAC,SAAS,0CAA0C;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CACtE,aAAaA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,wDAAwD;CAC1H,gBAAgBA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uCAAuC;AACjH,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,qBAAqBC,eAAAA,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-video-by-id.d.ts
|
|
4
|
+
declare const PexelsGetVideoByIdInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsGetVideoByIdOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsGetVideoById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsGetVideoById };
|
|
9
|
+
//# sourceMappingURL=get-video-by-id.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-video-by-id.d.cts","names":[],"sources":["../../src/actions/get-video-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEgC;AAAA,cAoB3D,wBAAA,EAA0B,CAAA,CAAE,UAW0B;AAAA,cAEtD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-video-by-id.d.ts
|
|
4
|
+
declare const PexelsGetVideoByIdInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsGetVideoByIdOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsGetVideoById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsGetVideoById };
|
|
9
|
+
//# sourceMappingURL=get-video-by-id.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-video-by-id.d.mts","names":[],"sources":["../../src/actions/get-video-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEgC;AAAA,cAoB3D,wBAAA,EAA0B,CAAA,CAAE,UAW0B;AAAA,cAEtD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-video-by-id.ts
|
|
4
|
+
const PexelsGetVideoByIdInput = z.object({ id: z.number().int().describe("The unique identifier of the video to retrieve") }).describe("Request schema for retrieving a specific video by its ID.");
|
|
5
|
+
const PexelsGetVideoById_UserSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("Unique identifier of the videographer"),
|
|
7
|
+
url: z.string().describe("URL to the videographer's Pexels profile"),
|
|
8
|
+
name: z.string().describe("Name of the videographer")
|
|
9
|
+
}).describe("Information about the videographer.");
|
|
10
|
+
const PexelsGetVideoById_VideoFileSchema = z.object({
|
|
11
|
+
id: z.number().int().describe("Unique identifier of the video file"),
|
|
12
|
+
fps: z.number().describe("Frames per second of the video file").nullable().optional(),
|
|
13
|
+
link: z.string().describe("Direct download URL for this video file version"),
|
|
14
|
+
width: z.number().int().describe("Width of this video file version in pixels"),
|
|
15
|
+
height: z.number().int().describe("Height of this video file version in pixels"),
|
|
16
|
+
quality: z.string().describe("Quality level (e.g., 'sd', 'hd', 'uhd')").nullable().optional(),
|
|
17
|
+
file_type: z.string().describe("MIME type of the video file (e.g., 'video/mp4')")
|
|
18
|
+
}).describe("A video file variant with specific quality and dimensions.");
|
|
19
|
+
const PexelsGetVideoById_VideoPictureSchema = z.object({
|
|
20
|
+
id: z.number().int().describe("Unique identifier of the preview picture"),
|
|
21
|
+
nr: z.number().int().describe("Picture number/index"),
|
|
22
|
+
picture: z.string().describe("URL to the preview image")
|
|
23
|
+
}).describe("A preview image for the video.");
|
|
24
|
+
const pexelsGetVideoById = action("PEXELS_GET_VIDEO_BY_ID", {
|
|
25
|
+
slug: "pexels-get-video-by-id",
|
|
26
|
+
name: "Get Video by ID",
|
|
27
|
+
description: "Tool to retrieve detailed information about a specific video from Pexels. Use when you have a valid video ID to fetch metadata including dimensions, duration, videographer details, and available video file versions.",
|
|
28
|
+
input: PexelsGetVideoByIdInput,
|
|
29
|
+
output: z.object({
|
|
30
|
+
id: z.number().int().describe("Unique identifier for the video"),
|
|
31
|
+
url: z.string().describe("Pexels.com page URL for this video"),
|
|
32
|
+
tags: z.array(z.string()).describe("List of tags associated with the video"),
|
|
33
|
+
user: PexelsGetVideoById_UserSchema.nullable(),
|
|
34
|
+
image: z.string().describe("URL to a preview screenshot of the video"),
|
|
35
|
+
width: z.number().int().describe("Original video width in pixels"),
|
|
36
|
+
height: z.number().int().describe("Original video height in pixels"),
|
|
37
|
+
duration: z.number().int().describe("Duration of the video in seconds"),
|
|
38
|
+
video_files: z.array(PexelsGetVideoById_VideoFileSchema).describe("Array of different sized/quality versions of the video"),
|
|
39
|
+
video_pictures: z.array(PexelsGetVideoById_VideoPictureSchema).describe("Array of preview images for the video")
|
|
40
|
+
}).describe("Detailed information for a single video from Pexels.")
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { pexelsGetVideoById };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=get-video-by-id.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-video-by-id.mjs","names":[],"sources":["../../src/actions/get-video-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsGetVideoByIdInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the video to retrieve\"),\n}).describe(\"Request schema for retrieving a specific video by its ID.\");\nconst PexelsGetVideoById_UserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the videographer\"),\n url: z.string().describe(\"URL to the videographer's Pexels profile\"),\n name: z.string().describe(\"Name of the videographer\"),\n}).describe(\"Information about the videographer.\");\nconst PexelsGetVideoById_VideoFileSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the video file\"),\n fps: z.number().describe(\"Frames per second of the video file\").nullable().optional(),\n link: z.string().describe(\"Direct download URL for this video file version\"),\n width: z.number().int().describe(\"Width of this video file version in pixels\"),\n height: z.number().int().describe(\"Height of this video file version in pixels\"),\n quality: z.string().describe(\"Quality level (e.g., 'sd', 'hd', 'uhd')\").nullable().optional(),\n file_type: z.string().describe(\"MIME type of the video file (e.g., 'video/mp4')\"),\n}).describe(\"A video file variant with specific quality and dimensions.\");\nconst PexelsGetVideoById_VideoPictureSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the preview picture\"),\n nr: z.number().int().describe(\"Picture number/index\"),\n picture: z.string().describe(\"URL to the preview image\"),\n}).describe(\"A preview image for the video.\");\nexport const PexelsGetVideoByIdOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the video\"),\n url: z.string().describe(\"Pexels.com page URL for this video\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the video\"),\n user: PexelsGetVideoById_UserSchema.nullable(),\n image: z.string().describe(\"URL to a preview screenshot of the video\"),\n width: z.number().int().describe(\"Original video width in pixels\"),\n height: z.number().int().describe(\"Original video height in pixels\"),\n duration: z.number().int().describe(\"Duration of the video in seconds\"),\n video_files: z.array(PexelsGetVideoById_VideoFileSchema).describe(\"Array of different sized/quality versions of the video\"),\n video_pictures: z.array(PexelsGetVideoById_VideoPictureSchema).describe(\"Array of preview images for the video\"),\n}).describe(\"Detailed information for a single video from Pexels.\");\n\nexport const pexelsGetVideoById = action(\"PEXELS_GET_VIDEO_BY_ID\", {\n slug: \"pexels-get-video-by-id\",\n name: \"Get Video by ID\",\n description: \"Tool to retrieve detailed information about a specific video from Pexels. Use when you have a valid video ID to fetch metadata including dimensions, duration, videographer details, and available video file versions.\",\n input: PexelsGetVideoByIdInput,\n output: PexelsGetVideoByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AACtD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC3E,OAAO,EAAE,O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qC,CAAC,CAAC,SAAS,uCAAuC;CACjH,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_collection_media = require("./collection-media.cjs");
|
|
3
|
+
const require_curated_photos = require("./curated-photos.cjs");
|
|
4
|
+
const require_featured_collections = require("./featured-collections.cjs");
|
|
5
|
+
const require_get_photo = require("./get-photo.cjs");
|
|
6
|
+
const require_get_video_by_id = require("./get-video-by-id.cjs");
|
|
7
|
+
const require_my_collections = require("./my-collections.cjs");
|
|
8
|
+
const require_popular_videos = require("./popular-videos.cjs");
|
|
9
|
+
const require_search_photos = require("./search-photos.cjs");
|
|
10
|
+
const require_search_videos = require("./search-videos.cjs");
|
|
11
|
+
exports.pexelsCollectionMedia = require_collection_media.pexelsCollectionMedia;
|
|
12
|
+
exports.pexelsCuratedPhotos = require_curated_photos.pexelsCuratedPhotos;
|
|
13
|
+
exports.pexelsFeaturedCollections = require_featured_collections.pexelsFeaturedCollections;
|
|
14
|
+
exports.pexelsGetPhoto = require_get_photo.pexelsGetPhoto;
|
|
15
|
+
exports.pexelsGetVideoById = require_get_video_by_id.pexelsGetVideoById;
|
|
16
|
+
exports.pexelsMyCollections = require_my_collections.pexelsMyCollections;
|
|
17
|
+
exports.pexelsPopularVideos = require_popular_videos.pexelsPopularVideos;
|
|
18
|
+
exports.pexelsSearchPhotos = require_search_photos.pexelsSearchPhotos;
|
|
19
|
+
exports.pexelsSearchVideos = require_search_videos.pexelsSearchVideos;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { pexelsCollectionMedia } from "./collection-media.cjs";
|
|
2
|
+
import { pexelsCuratedPhotos } from "./curated-photos.cjs";
|
|
3
|
+
import { pexelsFeaturedCollections } from "./featured-collections.cjs";
|
|
4
|
+
import { pexelsGetPhoto } from "./get-photo.cjs";
|
|
5
|
+
import { pexelsGetVideoById } from "./get-video-by-id.cjs";
|
|
6
|
+
import { pexelsMyCollections } from "./my-collections.cjs";
|
|
7
|
+
import { pexelsPopularVideos } from "./popular-videos.cjs";
|
|
8
|
+
import { pexelsSearchPhotos } from "./search-photos.cjs";
|
|
9
|
+
import { pexelsSearchVideos } from "./search-videos.cjs";
|
|
10
|
+
export { pexelsCollectionMedia, pexelsCuratedPhotos, pexelsFeaturedCollections, pexelsGetPhoto, pexelsGetVideoById, pexelsMyCollections, pexelsPopularVideos, pexelsSearchPhotos, pexelsSearchVideos };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { pexelsCollectionMedia } from "./collection-media.mjs";
|
|
2
|
+
import { pexelsCuratedPhotos } from "./curated-photos.mjs";
|
|
3
|
+
import { pexelsFeaturedCollections } from "./featured-collections.mjs";
|
|
4
|
+
import { pexelsGetPhoto } from "./get-photo.mjs";
|
|
5
|
+
import { pexelsGetVideoById } from "./get-video-by-id.mjs";
|
|
6
|
+
import { pexelsMyCollections } from "./my-collections.mjs";
|
|
7
|
+
import { pexelsPopularVideos } from "./popular-videos.mjs";
|
|
8
|
+
import { pexelsSearchPhotos } from "./search-photos.mjs";
|
|
9
|
+
import { pexelsSearchVideos } from "./search-videos.mjs";
|
|
10
|
+
export { pexelsCollectionMedia, pexelsCuratedPhotos, pexelsFeaturedCollections, pexelsGetPhoto, pexelsGetVideoById, pexelsMyCollections, pexelsPopularVideos, pexelsSearchPhotos, pexelsSearchVideos };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { pexelsCollectionMedia } from "./collection-media.mjs";
|
|
2
|
+
import { pexelsCuratedPhotos } from "./curated-photos.mjs";
|
|
3
|
+
import { pexelsFeaturedCollections } from "./featured-collections.mjs";
|
|
4
|
+
import { pexelsGetPhoto } from "./get-photo.mjs";
|
|
5
|
+
import { pexelsGetVideoById } from "./get-video-by-id.mjs";
|
|
6
|
+
import { pexelsMyCollections } from "./my-collections.mjs";
|
|
7
|
+
import { pexelsPopularVideos } from "./popular-videos.mjs";
|
|
8
|
+
import { pexelsSearchPhotos } from "./search-photos.mjs";
|
|
9
|
+
import { pexelsSearchVideos } from "./search-videos.mjs";
|
|
10
|
+
export { pexelsCollectionMedia, pexelsCuratedPhotos, pexelsFeaturedCollections, pexelsGetPhoto, pexelsGetVideoById, pexelsMyCollections, pexelsPopularVideos, pexelsSearchPhotos, pexelsSearchVideos };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/my-collections.ts
|
|
4
|
+
const PexelsMyCollectionsInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().default(1).describe("Page number to retrieve, must be >= 1").optional(),
|
|
6
|
+
per_page: zod.z.number().int().default(15).describe("Number of collections per page, between 1 and 80").optional()
|
|
7
|
+
}).describe("Request model for retrieving user collections with pagination.");
|
|
8
|
+
const PexelsMyCollections_CollectionSchema = zod.z.object({
|
|
9
|
+
id: zod.z.number().int().describe("Collection ID"),
|
|
10
|
+
title: zod.z.string().describe("Collection title"),
|
|
11
|
+
private: zod.z.boolean().describe("Whether the collection is private"),
|
|
12
|
+
description: zod.z.string().describe("Collection description, if provided").nullable().optional(),
|
|
13
|
+
media_count: zod.z.number().int().describe("Total media items in the collection"),
|
|
14
|
+
photos_count: zod.z.number().int().describe("Number of photos in the collection"),
|
|
15
|
+
videos_count: zod.z.number().int().describe("Number of videos in the collection")
|
|
16
|
+
}).describe("Represents a Pexels collection.");
|
|
17
|
+
const PexelsMyCollectionsOutput = zod.z.object({
|
|
18
|
+
page: zod.z.number().int().describe("Current page number returned"),
|
|
19
|
+
per_page: zod.z.number().int().describe("Number of collections per page returned"),
|
|
20
|
+
collections: zod.z.array(PexelsMyCollections_CollectionSchema).describe("List of user collections"),
|
|
21
|
+
total_results: zod.z.number().int().describe("Total number of collections")
|
|
22
|
+
}).describe("Response model for user collections listing.");
|
|
23
|
+
const pexelsMyCollections = require_action.action("PEXELS_MY_COLLECTIONS", {
|
|
24
|
+
slug: "pexels-my-collections",
|
|
25
|
+
name: "Get My Collections",
|
|
26
|
+
description: "Tool to get all of the user's collections on Pexels. Use when you need to list a user's collections with pagination support.",
|
|
27
|
+
input: PexelsMyCollectionsInput,
|
|
28
|
+
output: PexelsMyCollectionsOutput
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.pexelsMyCollections = pexelsMyCollections;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=my-collections.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"my-collections.cjs","names":["z","action"],"sources":["../../src/actions/my-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsMyCollectionsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve, must be >= 1\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of collections per page, between 1 and 80\").optional(),\n}).describe(\"Request model for retrieving user collections with pagination.\");\nconst PexelsMyCollections_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Collection ID\"),\n title: z.string().describe(\"Collection title\"),\n private: z.boolean().describe(\"Whether the collection is private\"),\n description: z.string().describe(\"Collection description, if provided\").nullable().optional(),\n media_count: z.number().int().describe(\"Total media items in the collection\"),\n photos_count: z.number().int().describe(\"Number of photos in the collection\"),\n videos_count: z.number().int().describe(\"Number of videos in the collection\"),\n}).describe(\"Represents a Pexels collection.\");\nexport const PexelsMyCollectionsOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number returned\"),\n per_page: z.number().int().describe(\"Number of collections per page returned\"),\n collections: z.array(PexelsMyCollections_CollectionSchema).describe(\"List of user collections\"),\n total_results: z.number().int().describe(\"Total number of collections\"),\n}).describe(\"Response model for user collections listing.\");\n\nexport const pexelsMyCollections = action(\"PEXELS_MY_COLLECTIONS\", {\n slug: \"pexels-my-collections\",\n name: \"Get My Collections\",\n description: \"Tool to get all of the user's collections on Pexels. Use when you need to list a user's collections with pagination support.\",\n input: PexelsMyCollectionsInput,\n output: PexelsMyCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC7C,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AAC9E,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAC7E,aAAaA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,0BAA0B;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;AACxE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/my-collections.d.ts
|
|
4
|
+
declare const PexelsMyCollectionsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsMyCollectionsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsMyCollections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsMyCollections };
|
|
9
|
+
//# sourceMappingURL=my-collections.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"my-collections.d.cts","names":[],"sources":["../../src/actions/my-collections.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGoC;AAAA,cAUhE,yBAAA,EAA2B,CAAA,CAAE,UAKiB;AAAA,cAE9C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/my-collections.d.ts
|
|
4
|
+
declare const PexelsMyCollectionsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsMyCollectionsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsMyCollections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsMyCollections };
|
|
9
|
+
//# sourceMappingURL=my-collections.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"my-collections.d.mts","names":[],"sources":["../../src/actions/my-collections.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGoC;AAAA,cAUhE,yBAAA,EAA2B,CAAA,CAAE,UAKiB;AAAA,cAE9C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/my-collections.ts
|
|
4
|
+
const PexelsMyCollectionsInput = z.object({
|
|
5
|
+
page: z.number().int().default(1).describe("Page number to retrieve, must be >= 1").optional(),
|
|
6
|
+
per_page: z.number().int().default(15).describe("Number of collections per page, between 1 and 80").optional()
|
|
7
|
+
}).describe("Request model for retrieving user collections with pagination.");
|
|
8
|
+
const PexelsMyCollections_CollectionSchema = z.object({
|
|
9
|
+
id: z.number().int().describe("Collection ID"),
|
|
10
|
+
title: z.string().describe("Collection title"),
|
|
11
|
+
private: z.boolean().describe("Whether the collection is private"),
|
|
12
|
+
description: z.string().describe("Collection description, if provided").nullable().optional(),
|
|
13
|
+
media_count: z.number().int().describe("Total media items in the collection"),
|
|
14
|
+
photos_count: z.number().int().describe("Number of photos in the collection"),
|
|
15
|
+
videos_count: z.number().int().describe("Number of videos in the collection")
|
|
16
|
+
}).describe("Represents a Pexels collection.");
|
|
17
|
+
const pexelsMyCollections = action("PEXELS_MY_COLLECTIONS", {
|
|
18
|
+
slug: "pexels-my-collections",
|
|
19
|
+
name: "Get My Collections",
|
|
20
|
+
description: "Tool to get all of the user's collections on Pexels. Use when you need to list a user's collections with pagination support.",
|
|
21
|
+
input: PexelsMyCollectionsInput,
|
|
22
|
+
output: z.object({
|
|
23
|
+
page: z.number().int().describe("Current page number returned"),
|
|
24
|
+
per_page: z.number().int().describe("Number of collections per page returned"),
|
|
25
|
+
collections: z.array(PexelsMyCollections_CollectionSchema).describe("List of user collections"),
|
|
26
|
+
total_results: z.number().int().describe("Total number of collections")
|
|
27
|
+
}).describe("Response model for user collections listing.")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { pexelsMyCollections };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=my-collections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"my-collections.mjs","names":[],"sources":["../../src/actions/my-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsMyCollectionsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve, must be >= 1\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of collections per page, between 1 and 80\").optional(),\n}).describe(\"Request model for retrieving user collections with pagination.\");\nconst PexelsMyCollections_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Collection ID\"),\n title: z.string().describe(\"Collection title\"),\n private: z.boolean().describe(\"Whether the collection is private\"),\n description: z.string().describe(\"Collection description, if provided\").nullable().optional(),\n media_count: z.number().int().describe(\"Total media items in the collection\"),\n photos_count: z.number().int().describe(\"Number of photos in the collection\"),\n videos_count: z.number().int().describe(\"Number of videos in the collection\"),\n}).describe(\"Represents a Pexels collection.\");\nexport const PexelsMyCollectionsOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number returned\"),\n per_page: z.number().int().describe(\"Number of collections per page returned\"),\n collections: z.array(PexelsMyCollections_CollectionSchema).describe(\"List of user collections\"),\n total_results: z.number().int().describe(\"Total number of collections\"),\n}).describe(\"Response model for user collections listing.\");\n\nexport const pexelsMyCollections = action(\"PEXELS_MY_COLLECTIONS\", {\n slug: \"pexels-my-collections\",\n name: \"Get My Collections\",\n description: \"Tool to get all of the user's collections on Pexels. Use when you need to list a user's collections with pagination support.\",\n input: PexelsMyCollectionsInput,\n output: PexelsMyCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC7C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CAC5E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC5E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AAC9E,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAQ7C,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;EAC7E,aAAa,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,0BAA0B;EAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CACxE,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/popular-videos.ts
|
|
4
|
+
const PexelsPopularVideosInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().describe("Page number to retrieve. Default is 1.").optional(),
|
|
6
|
+
per_page: zod.z.number().int().describe("Number of videos per page (1–80). Default is 15.").optional()
|
|
7
|
+
}).describe("Request parameters for retrieving popular videos from Pexels.");
|
|
8
|
+
const PexelsPopularVideos_UserModelSchema = zod.z.object({
|
|
9
|
+
id: zod.z.number().int().describe("ID of the video author."),
|
|
10
|
+
url: zod.z.string().describe("URL of the author's profile."),
|
|
11
|
+
name: zod.z.string().describe("Name of the video author.")
|
|
12
|
+
});
|
|
13
|
+
const PexelsPopularVideos_VideoFileModelSchema = zod.z.object({
|
|
14
|
+
id: zod.z.number().int().describe("ID of the video file."),
|
|
15
|
+
fps: zod.z.number().describe("Frames per second of the video file."),
|
|
16
|
+
link: zod.z.string().describe("Direct URL to the video file."),
|
|
17
|
+
width: zod.z.number().int().describe("Width of the video file in pixels."),
|
|
18
|
+
height: zod.z.number().int().describe("Height of the video file in pixels."),
|
|
19
|
+
quality: zod.z.string().describe("Quality label of the video file."),
|
|
20
|
+
file_type: zod.z.string().describe("MIME type of the video file.")
|
|
21
|
+
});
|
|
22
|
+
const PexelsPopularVideos_VideoPictureModelSchema = zod.z.object({
|
|
23
|
+
id: zod.z.number().int().describe("ID of the preview picture."),
|
|
24
|
+
nr: zod.z.number().int().describe("Sequence number of the picture."),
|
|
25
|
+
picture: zod.z.string().describe("URL of the preview picture.")
|
|
26
|
+
});
|
|
27
|
+
const PexelsPopularVideos_VideoModelSchema = zod.z.object({
|
|
28
|
+
id: zod.z.number().int().describe("ID of the video."),
|
|
29
|
+
url: zod.z.string().describe("URL to the Pexels page for the video."),
|
|
30
|
+
tags: zod.z.array(zod.z.string()).describe("List of tags associated with the video."),
|
|
31
|
+
user: PexelsPopularVideos_UserModelSchema.nullable(),
|
|
32
|
+
image: zod.z.string().describe("URL of the video preview image."),
|
|
33
|
+
width: zod.z.number().int().describe("Width of the video in pixels."),
|
|
34
|
+
height: zod.z.number().int().describe("Height of the video in pixels."),
|
|
35
|
+
duration: zod.z.number().int().describe("Duration of the video in seconds."),
|
|
36
|
+
full_res: zod.z.string().describe("URL of the full-resolution video (if available).").nullable().optional(),
|
|
37
|
+
avg_color: zod.z.string().describe("Average color of the video preview image (hex code).").nullable().optional(),
|
|
38
|
+
video_files: zod.z.array(PexelsPopularVideos_VideoFileModelSchema).describe("Available video file variants."),
|
|
39
|
+
video_pictures: zod.z.array(PexelsPopularVideos_VideoPictureModelSchema).describe("List of preview pictures for the video.")
|
|
40
|
+
});
|
|
41
|
+
const PexelsPopularVideosOutput = zod.z.object({
|
|
42
|
+
url: zod.z.string().describe("URL of the results page."),
|
|
43
|
+
page: zod.z.number().int().describe("Current page number."),
|
|
44
|
+
videos: zod.z.array(PexelsPopularVideos_VideoModelSchema).describe("List of popular video objects."),
|
|
45
|
+
per_page: zod.z.number().int().describe("Number of videos per page."),
|
|
46
|
+
total_results: zod.z.number().int().describe("Total number of video results available.")
|
|
47
|
+
});
|
|
48
|
+
const pexelsPopularVideos = require_action.action("PEXELS_POPULAR_VIDEOS", {
|
|
49
|
+
slug: "pexels-popular-videos",
|
|
50
|
+
name: "Get Popular Videos",
|
|
51
|
+
description: "Tool to retrieve current popular Pexels videos. Use when you want to fetch trending videos from Pexels.",
|
|
52
|
+
input: PexelsPopularVideosInput,
|
|
53
|
+
output: PexelsPopularVideosOutput
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
exports.pexelsPopularVideos = pexelsPopularVideos;
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=popular-videos.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popular-videos.cjs","names":["z","action"],"sources":["../../src/actions/popular-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsPopularVideosInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve. Default is 1.\").optional(),\n per_page: z.number().int().describe(\"Number of videos per page (1–80). Default is 15.\").optional(),\n}).describe(\"Request parameters for retrieving popular videos from Pexels.\");\nconst PexelsPopularVideos_UserModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the video author.\"),\n url: z.string().describe(\"URL of the author's profile.\"),\n name: z.string().describe(\"Name of the video author.\"),\n});\nconst PexelsPopularVideos_VideoFileModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the video file.\"),\n fps: z.number().describe(\"Frames per second of the video file.\"),\n link: z.string().describe(\"Direct URL to the video file.\"),\n width: z.number().int().describe(\"Width of the video file in pixels.\"),\n height: z.number().int().describe(\"Height of the video file in pixels.\"),\n quality: z.string().describe(\"Quality label of the video file.\"),\n file_type: z.string().describe(\"MIME type of the video file.\"),\n});\nconst PexelsPopularVideos_VideoPictureModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the preview picture.\"),\n nr: z.number().int().describe(\"Sequence number of the picture.\"),\n picture: z.string().describe(\"URL of the preview picture.\"),\n});\nconst PexelsPopularVideos_VideoModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the video.\"),\n url: z.string().describe(\"URL to the Pexels page for the video.\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the video.\"),\n user: PexelsPopularVideos_UserModelSchema.nullable(),\n image: z.string().describe(\"URL of the video preview image.\"),\n width: z.number().int().describe(\"Width of the video in pixels.\"),\n height: z.number().int().describe(\"Height of the video in pixels.\"),\n duration: z.number().int().describe(\"Duration of the video in seconds.\"),\n full_res: z.string().describe(\"URL of the full-resolution video (if available).\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the video preview image (hex code).\").nullable().optional(),\n video_files: z.array(PexelsPopularVideos_VideoFileModelSchema).describe(\"Available video file variants.\"),\n video_pictures: z.array(PexelsPopularVideos_VideoPictureModelSchema).describe(\"List of preview pictures for the video.\"),\n});\nexport const PexelsPopularVideosOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the results page.\"),\n page: z.number().int().describe(\"Current page number.\"),\n videos: z.array(PexelsPopularVideos_VideoModelSchema).describe(\"List of popular video objects.\"),\n per_page: z.number().int().describe(\"Number of videos per page.\"),\n total_results: z.number().int().describe(\"Total number of video results available.\"),\n});\n\nexport const pexelsPopularVideos = action(\"PEXELS_POPULAR_VIDEOS\", {\n slug: \"pexels-popular-videos\",\n name: \"Get Popular Videos\",\n description: \"Tool to retrieve current popular Pexels videos. Use when you want to fetch trending videos from Pexels.\",\n input: PexelsPopularVideosInput,\n output: PexelsPopularVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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AA+B;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gCAAgC;CACxG,gBAAgBA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC;AACzH,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CACtD,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,gCAAgC;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CAChE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;AACrF,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/popular-videos.d.ts
|
|
4
|
+
declare const PexelsPopularVideosInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsPopularVideosOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsPopularVideos: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsPopularVideos };
|
|
9
|
+
//# sourceMappingURL=popular-videos.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popular-videos.d.cts","names":[],"sources":["../../src/actions/popular-videos.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGmC;AAAA,cAkC/D,yBAAA,EAA2B,CAAA,CAAE,UAMxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/popular-videos.d.ts
|
|
4
|
+
declare const PexelsPopularVideosInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsPopularVideosOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsPopularVideos: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsPopularVideos };
|
|
9
|
+
//# sourceMappingURL=popular-videos.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popular-videos.d.mts","names":[],"sources":["../../src/actions/popular-videos.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGmC;AAAA,cAkC/D,yBAAA,EAA2B,CAAA,CAAE,UAMxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|