@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
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/pexels
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `pexels`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 9
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { pexelsCollectionMedia } from "@keystrokehq/pexels/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "pexels-agent",
|
|
15
|
+
tools: [pexelsCollectionMedia],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.pexels.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executePexelsTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["pexels","executePexelsTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pexels } from \"./app\";\nimport { executePexelsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return pexels.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePexelsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { pexels } from "./app.mjs";
|
|
2
|
+
import { executePexelsTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return pexels.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executePexelsTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pexels } from \"./app\";\nimport { executePexelsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return pexels.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePexelsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/collection-media.ts
|
|
4
|
+
const PexelsCollectionMediaInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique identifier of the Pexels collection."),
|
|
6
|
+
page: zod.z.number().int().default(1).describe("Page number for pagination, must be >= 1.").optional(),
|
|
7
|
+
per_page: zod.z.number().int().default(15).describe("Number of results per page (1-80).").optional()
|
|
8
|
+
}).describe("Request parameters to fetch media items from a Pexels collection.");
|
|
9
|
+
const PexelsCollectionMedia_PhotoSrcSchema = zod.z.object({
|
|
10
|
+
tiny: zod.z.string().describe("Tiny size photo URL"),
|
|
11
|
+
large: zod.z.string().describe("Large size photo URL"),
|
|
12
|
+
small: zod.z.string().describe("Small size photo URL"),
|
|
13
|
+
medium: zod.z.string().describe("Medium size photo URL"),
|
|
14
|
+
large2x: zod.z.string().describe("2x large photo URL"),
|
|
15
|
+
original: zod.z.string().describe("Original size photo URL"),
|
|
16
|
+
portrait: zod.z.string().describe("Portrait orientation photo URL"),
|
|
17
|
+
landscape: zod.z.string().describe("Landscape orientation photo URL")
|
|
18
|
+
});
|
|
19
|
+
const PexelsCollectionMedia_VideoUserSchema = zod.z.object({
|
|
20
|
+
id: zod.z.number().int().describe("User ID"),
|
|
21
|
+
url: zod.z.string().describe("User profile URL"),
|
|
22
|
+
name: zod.z.string().describe("User name")
|
|
23
|
+
});
|
|
24
|
+
const PexelsCollectionMedia_VideoFileSchema = zod.z.object({
|
|
25
|
+
id: zod.z.number().int().describe("Unique identifier for the video file"),
|
|
26
|
+
fps: zod.z.number().describe("Frames per second"),
|
|
27
|
+
link: zod.z.string().describe("URL to download the video file"),
|
|
28
|
+
size: zod.z.number().int().describe("File size in bytes").nullable().optional(),
|
|
29
|
+
width: zod.z.number().int().describe("Video width in pixels"),
|
|
30
|
+
height: zod.z.number().int().describe("Video height in pixels"),
|
|
31
|
+
quality: zod.z.string().describe("Quality level (sd, hd, uhd)"),
|
|
32
|
+
file_type: zod.z.string().describe("MIME type of the video file")
|
|
33
|
+
});
|
|
34
|
+
const PexelsCollectionMedia_VideoPictureSchema = zod.z.object({
|
|
35
|
+
id: zod.z.number().int().describe("Unique identifier for the preview picture"),
|
|
36
|
+
nr: zod.z.number().int().describe("Preview picture number"),
|
|
37
|
+
picture: zod.z.string().describe("URL to the preview picture")
|
|
38
|
+
});
|
|
39
|
+
const PexelsCollectionMedia_MediaItemSchema = zod.z.object({
|
|
40
|
+
id: zod.z.number().int().describe("Unique identifier for the media"),
|
|
41
|
+
alt: zod.z.string().describe("Alternate text for the photo").nullable().optional(),
|
|
42
|
+
src: PexelsCollectionMedia_PhotoSrcSchema.nullable().optional(),
|
|
43
|
+
url: zod.z.string().describe("URL to the media's Pexels page"),
|
|
44
|
+
type: zod.z.string().describe("Media type: 'Photo' or 'Video'"),
|
|
45
|
+
user: PexelsCollectionMedia_VideoUserSchema.nullable().optional(),
|
|
46
|
+
image: zod.z.string().describe("Video thumbnail URL (videos only)").nullable().optional(),
|
|
47
|
+
liked: zod.z.boolean().describe("Indicates if the photo is liked (photos only)").nullable().optional(),
|
|
48
|
+
width: zod.z.number().int().describe("Media width in pixels"),
|
|
49
|
+
height: zod.z.number().int().describe("Media height in pixels"),
|
|
50
|
+
duration: zod.z.number().int().describe("Video duration in seconds (videos only)").nullable().optional(),
|
|
51
|
+
avg_color: zod.z.string().describe("Average color of the media (hex code, may be null for videos)").nullable().optional(),
|
|
52
|
+
video_files: zod.z.array(PexelsCollectionMedia_VideoFileSchema).describe("Available video files (videos only)").nullable().optional(),
|
|
53
|
+
photographer: zod.z.string().describe("Photographer name (photos only)").nullable().optional(),
|
|
54
|
+
video_pictures: zod.z.array(PexelsCollectionMedia_VideoPictureSchema).describe("Video preview pictures (videos only)").nullable().optional(),
|
|
55
|
+
photographer_id: zod.z.number().int().describe("Photographer's ID (photos only)").nullable().optional(),
|
|
56
|
+
photographer_url: zod.z.string().describe("Photographer's profile URL (photos only)").nullable().optional()
|
|
57
|
+
}).describe("A media item that can be either a Photo or a Video.\nUses flexible fields to handle both types.");
|
|
58
|
+
const PexelsCollectionMediaOutput = zod.z.object({
|
|
59
|
+
page: zod.z.number().int().describe("Current page number returned"),
|
|
60
|
+
media: zod.z.array(PexelsCollectionMedia_MediaItemSchema).describe("List of media items (photos and/or videos) in the collection"),
|
|
61
|
+
per_page: zod.z.number().int().describe("Number of results per page returned"),
|
|
62
|
+
next_page: zod.z.string().describe("URL for the next page of results, if available").nullable().optional(),
|
|
63
|
+
prev_page: zod.z.string().describe("URL for the previous page of results, if available").nullable().optional(),
|
|
64
|
+
total_results: zod.z.number().int().describe("Total number of media items in the collection")
|
|
65
|
+
});
|
|
66
|
+
const pexelsCollectionMedia = require_action.action("PEXELS_COLLECTION_MEDIA", {
|
|
67
|
+
slug: "pexels-collection-media",
|
|
68
|
+
name: "Get Collection Media",
|
|
69
|
+
description: "Tool to get all media within a collection by its ID. Use when you need to fetch paginated media from a specific collection.",
|
|
70
|
+
input: PexelsCollectionMediaInput,
|
|
71
|
+
output: PexelsCollectionMediaOutput
|
|
72
|
+
});
|
|
73
|
+
//#endregion
|
|
74
|
+
exports.pexelsCollectionMedia = pexelsCollectionMedia;
|
|
75
|
+
|
|
76
|
+
//# sourceMappingURL=collection-media.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-media.cjs","names":["z","action"],"sources":["../../src/actions/collection-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsCollectionMediaInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the Pexels collection.\"),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80).\").optional(),\n}).describe(\"Request parameters to fetch media items from a Pexels collection.\");\nconst PexelsCollectionMedia_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(\"2x large 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});\nconst PexelsCollectionMedia_VideoUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"User ID\"),\n url: z.string().describe(\"User profile URL\"),\n name: z.string().describe(\"User name\"),\n});\nconst PexelsCollectionMedia_VideoFileSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the video file\"),\n fps: z.number().describe(\"Frames per second\"),\n link: z.string().describe(\"URL to download the video file\"),\n size: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n width: z.number().int().describe(\"Video width in pixels\"),\n height: z.number().int().describe(\"Video height in pixels\"),\n quality: z.string().describe(\"Quality level (sd, hd, uhd)\"),\n file_type: z.string().describe(\"MIME type of the video file\"),\n});\nconst PexelsCollectionMedia_VideoPictureSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the preview picture\"),\n nr: z.number().int().describe(\"Preview picture number\"),\n picture: z.string().describe(\"URL to the preview picture\"),\n});\nconst PexelsCollectionMedia_MediaItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the media\"),\n alt: z.string().describe(\"Alternate text for the photo\").nullable().optional(),\n src: PexelsCollectionMedia_PhotoSrcSchema.nullable().optional(),\n url: z.string().describe(\"URL to the media's Pexels page\"),\n type: z.string().describe(\"Media type: 'Photo' or 'Video'\"),\n user: PexelsCollectionMedia_VideoUserSchema.nullable().optional(),\n image: z.string().describe(\"Video thumbnail URL (videos only)\").nullable().optional(),\n liked: z.boolean().describe(\"Indicates if the photo is liked (photos only)\").nullable().optional(),\n width: z.number().int().describe(\"Media width in pixels\"),\n height: z.number().int().describe(\"Media height in pixels\"),\n duration: z.number().int().describe(\"Video duration in seconds (videos only)\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the media (hex code, may be null for videos)\").nullable().optional(),\n video_files: z.array(PexelsCollectionMedia_VideoFileSchema).describe(\"Available video files (videos only)\").nullable().optional(),\n photographer: z.string().describe(\"Photographer name (photos only)\").nullable().optional(),\n video_pictures: z.array(PexelsCollectionMedia_VideoPictureSchema).describe(\"Video preview pictures (videos only)\").nullable().optional(),\n photographer_id: z.number().int().describe(\"Photographer's ID (photos only)\").nullable().optional(),\n photographer_url: z.string().describe(\"Photographer's profile URL (photos only)\").nullable().optional(),\n}).describe(\"A media item that can be either a Photo or a Video.\\nUses flexible fields to handle both types.\");\nexport const PexelsCollectionMediaOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number returned\"),\n media: z.array(PexelsCollectionMedia_MediaItemSchema).describe(\"List of media items (photos and/or videos) in the collection\"),\n per_page: z.number().int().describe(\"Number of results per page returned\"),\n next_page: z.string().describe(\"URL for the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL for the previous page of results, if available\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of media items in the collection\"),\n});\n\nexport const pexelsCollectionMedia = action(\"PEXELS_COLLECTION_MEDIA\", {\n slug: \"pexels-collection-media\",\n name: \"Get Collection Media\",\n description: \"Tool to get all media within a collection by its ID. Use when you need to fetch paginated media from a specific collection.\",\n input: PexelsCollectionMediaInput,\n output: PexelsCollectionMediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAA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,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,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/collection-media.d.ts
|
|
4
|
+
declare const PexelsCollectionMediaInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsCollectionMediaOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsCollectionMedia: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsCollectionMedia };
|
|
9
|
+
//# sourceMappingURL=collection-media.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-media.d.cts","names":[],"sources":["../../src/actions/collection-media.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIqC;AAAA,cAkDnE,2BAAA,EAA6B,CAAA,CAAE,UAO1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/collection-media.d.ts
|
|
4
|
+
declare const PexelsCollectionMediaInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsCollectionMediaOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsCollectionMedia: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsCollectionMedia };
|
|
9
|
+
//# sourceMappingURL=collection-media.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-media.d.mts","names":[],"sources":["../../src/actions/collection-media.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIqC;AAAA,cAkDnE,2BAAA,EAA6B,CAAA,CAAE,UAO1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/collection-media.ts
|
|
4
|
+
const PexelsCollectionMediaInput = z.object({
|
|
5
|
+
id: z.string().describe("The unique identifier of the Pexels collection."),
|
|
6
|
+
page: z.number().int().default(1).describe("Page number for pagination, must be >= 1.").optional(),
|
|
7
|
+
per_page: z.number().int().default(15).describe("Number of results per page (1-80).").optional()
|
|
8
|
+
}).describe("Request parameters to fetch media items from a Pexels collection.");
|
|
9
|
+
const PexelsCollectionMedia_PhotoSrcSchema = z.object({
|
|
10
|
+
tiny: z.string().describe("Tiny size photo URL"),
|
|
11
|
+
large: z.string().describe("Large size photo URL"),
|
|
12
|
+
small: z.string().describe("Small size photo URL"),
|
|
13
|
+
medium: z.string().describe("Medium size photo URL"),
|
|
14
|
+
large2x: z.string().describe("2x large photo URL"),
|
|
15
|
+
original: z.string().describe("Original size photo URL"),
|
|
16
|
+
portrait: z.string().describe("Portrait orientation photo URL"),
|
|
17
|
+
landscape: z.string().describe("Landscape orientation photo URL")
|
|
18
|
+
});
|
|
19
|
+
const PexelsCollectionMedia_VideoUserSchema = z.object({
|
|
20
|
+
id: z.number().int().describe("User ID"),
|
|
21
|
+
url: z.string().describe("User profile URL"),
|
|
22
|
+
name: z.string().describe("User name")
|
|
23
|
+
});
|
|
24
|
+
const PexelsCollectionMedia_VideoFileSchema = z.object({
|
|
25
|
+
id: z.number().int().describe("Unique identifier for the video file"),
|
|
26
|
+
fps: z.number().describe("Frames per second"),
|
|
27
|
+
link: z.string().describe("URL to download the video file"),
|
|
28
|
+
size: z.number().int().describe("File size in bytes").nullable().optional(),
|
|
29
|
+
width: z.number().int().describe("Video width in pixels"),
|
|
30
|
+
height: z.number().int().describe("Video height in pixels"),
|
|
31
|
+
quality: z.string().describe("Quality level (sd, hd, uhd)"),
|
|
32
|
+
file_type: z.string().describe("MIME type of the video file")
|
|
33
|
+
});
|
|
34
|
+
const PexelsCollectionMedia_VideoPictureSchema = z.object({
|
|
35
|
+
id: z.number().int().describe("Unique identifier for the preview picture"),
|
|
36
|
+
nr: z.number().int().describe("Preview picture number"),
|
|
37
|
+
picture: z.string().describe("URL to the preview picture")
|
|
38
|
+
});
|
|
39
|
+
const PexelsCollectionMedia_MediaItemSchema = z.object({
|
|
40
|
+
id: z.number().int().describe("Unique identifier for the media"),
|
|
41
|
+
alt: z.string().describe("Alternate text for the photo").nullable().optional(),
|
|
42
|
+
src: PexelsCollectionMedia_PhotoSrcSchema.nullable().optional(),
|
|
43
|
+
url: z.string().describe("URL to the media's Pexels page"),
|
|
44
|
+
type: z.string().describe("Media type: 'Photo' or 'Video'"),
|
|
45
|
+
user: PexelsCollectionMedia_VideoUserSchema.nullable().optional(),
|
|
46
|
+
image: z.string().describe("Video thumbnail URL (videos only)").nullable().optional(),
|
|
47
|
+
liked: z.boolean().describe("Indicates if the photo is liked (photos only)").nullable().optional(),
|
|
48
|
+
width: z.number().int().describe("Media width in pixels"),
|
|
49
|
+
height: z.number().int().describe("Media height in pixels"),
|
|
50
|
+
duration: z.number().int().describe("Video duration in seconds (videos only)").nullable().optional(),
|
|
51
|
+
avg_color: z.string().describe("Average color of the media (hex code, may be null for videos)").nullable().optional(),
|
|
52
|
+
video_files: z.array(PexelsCollectionMedia_VideoFileSchema).describe("Available video files (videos only)").nullable().optional(),
|
|
53
|
+
photographer: z.string().describe("Photographer name (photos only)").nullable().optional(),
|
|
54
|
+
video_pictures: z.array(PexelsCollectionMedia_VideoPictureSchema).describe("Video preview pictures (videos only)").nullable().optional(),
|
|
55
|
+
photographer_id: z.number().int().describe("Photographer's ID (photos only)").nullable().optional(),
|
|
56
|
+
photographer_url: z.string().describe("Photographer's profile URL (photos only)").nullable().optional()
|
|
57
|
+
}).describe("A media item that can be either a Photo or a Video.\nUses flexible fields to handle both types.");
|
|
58
|
+
const pexelsCollectionMedia = action("PEXELS_COLLECTION_MEDIA", {
|
|
59
|
+
slug: "pexels-collection-media",
|
|
60
|
+
name: "Get Collection Media",
|
|
61
|
+
description: "Tool to get all media within a collection by its ID. Use when you need to fetch paginated media from a specific collection.",
|
|
62
|
+
input: PexelsCollectionMediaInput,
|
|
63
|
+
output: z.object({
|
|
64
|
+
page: z.number().int().describe("Current page number returned"),
|
|
65
|
+
media: z.array(PexelsCollectionMedia_MediaItemSchema).describe("List of media items (photos and/or videos) in the collection"),
|
|
66
|
+
per_page: z.number().int().describe("Number of results per page returned"),
|
|
67
|
+
next_page: z.string().describe("URL for the next page of results, if available").nullable().optional(),
|
|
68
|
+
prev_page: z.string().describe("URL for the previous page of results, if available").nullable().optional(),
|
|
69
|
+
total_results: z.number().int().describe("Total number of media items in the collection")
|
|
70
|
+
})
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
73
|
+
export { pexelsCollectionMedia };
|
|
74
|
+
|
|
75
|
+
//# sourceMappingURL=collection-media.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-media.mjs","names":[],"sources":["../../src/actions/collection-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsCollectionMediaInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the Pexels collection.\"),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80).\").optional(),\n}).describe(\"Request parameters to fetch media items from a Pexels collection.\");\nconst PexelsCollectionMedia_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(\"2x large 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});\nconst PexelsCollectionMedia_VideoUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"User ID\"),\n url: z.string().describe(\"User profile URL\"),\n name: z.string().describe(\"User name\"),\n});\nconst PexelsCollectionMedia_VideoFileSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the video file\"),\n fps: z.number().describe(\"Frames per second\"),\n link: z.string().describe(\"URL to download the video file\"),\n size: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n width: z.number().int().describe(\"Video width in pixels\"),\n height: z.number().int().describe(\"Video height in pixels\"),\n quality: z.string().describe(\"Quality level (sd, hd, uhd)\"),\n file_type: z.string().describe(\"MIME type of the video file\"),\n});\nconst PexelsCollectionMedia_VideoPictureSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the preview picture\"),\n nr: z.number().int().describe(\"Preview picture number\"),\n picture: z.string().describe(\"URL to the preview picture\"),\n});\nconst PexelsCollectionMedia_MediaItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the media\"),\n alt: z.string().describe(\"Alternate text for the photo\").nullable().optional(),\n src: PexelsCollectionMedia_PhotoSrcSchema.nullable().optional(),\n url: z.string().describe(\"URL to the media's Pexels page\"),\n type: z.string().describe(\"Media type: 'Photo' or 'Video'\"),\n user: PexelsCollectionMedia_VideoUserSchema.nullable().optional(),\n image: z.string().describe(\"Video thumbnail URL (videos only)\").nullable().optional(),\n liked: z.boolean().describe(\"Indicates if the photo is liked (photos only)\").nullable().optional(),\n width: z.number().int().describe(\"Media width in pixels\"),\n height: z.number().int().describe(\"Media height in pixels\"),\n duration: z.number().int().describe(\"Video duration in seconds (videos only)\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the media (hex code, may be null for videos)\").nullable().optional(),\n video_files: z.array(PexelsCollectionMedia_VideoFileSchema).describe(\"Available video files (videos only)\").nullable().optional(),\n photographer: z.string().describe(\"Photographer name (photos only)\").nullable().optional(),\n video_pictures: z.array(PexelsCollectionMedia_VideoPictureSchema).describe(\"Video preview pictures (videos only)\").nullable().optional(),\n photographer_id: z.number().int().describe(\"Photographer's ID (photos only)\").nullable().optional(),\n photographer_url: z.string().describe(\"Photographer's profile URL (photos only)\").nullable().optional(),\n}).describe(\"A media item that can be either a Photo or a Video.\\nUses flexible fields to handle both types.\");\nexport const PexelsCollectionMediaOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number returned\"),\n media: z.array(PexelsCollectionMedia_MediaItemSchema).describe(\"List of media items (photos and/or videos) in the collection\"),\n per_page: z.number().int().describe(\"Number of results per page returned\"),\n next_page: z.string().describe(\"URL for the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL for the previous page of results, if available\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of media items in the collection\"),\n});\n\nexport const pexelsCollectionMedia = action(\"PEXELS_COLLECTION_MEDIA\", {\n slug: \"pexels-collection-media\",\n name: \"Get Collection Media\",\n description: \"Tool to get all media within a collection by its ID. Use when you need to fetch paginated media from a specific collection.\",\n input: PexelsCollectionMediaInput,\n output: PexelsCollectionMediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,E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C,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAU7G,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;EAC9D,OAAO,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,8DAA8D;EAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CAC1F,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/curated-photos.ts
|
|
4
|
+
const PexelsCuratedPhotosInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().describe("Page number to retrieve (min 1). Defaults to Pexels API default of 1.").optional(),
|
|
6
|
+
per_page: zod.z.number().int().describe("Number of results per page (min 1, max 80). Defaults to Pexels API default of 15.").optional()
|
|
7
|
+
}).describe("Request parameters for fetching curated photos from Pexels.");
|
|
8
|
+
const PexelsCuratedPhotos_PhotoSrcSchema = zod.z.object({
|
|
9
|
+
tiny: zod.z.string().describe("URL of the tiny image."),
|
|
10
|
+
large: zod.z.string().describe("URL of the large image."),
|
|
11
|
+
small: zod.z.string().describe("URL of the small image."),
|
|
12
|
+
medium: zod.z.string().describe("URL of the medium image."),
|
|
13
|
+
large2x: zod.z.string().describe("URL of the large2x image."),
|
|
14
|
+
original: zod.z.string().describe("URL of the original image."),
|
|
15
|
+
portrait: zod.z.string().describe("URL of the portrait image."),
|
|
16
|
+
landscape: zod.z.string().describe("URL of the landscape image.")
|
|
17
|
+
});
|
|
18
|
+
const PexelsCuratedPhotos_PhotoSchema = zod.z.object({
|
|
19
|
+
id: zod.z.number().int().describe("Unique identifier for the photo."),
|
|
20
|
+
alt: zod.z.string().describe("Alternative text for the photo."),
|
|
21
|
+
src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),
|
|
22
|
+
url: zod.z.string().describe("URL of the photo page on Pexels."),
|
|
23
|
+
liked: zod.z.boolean().describe("Whether the user has liked the photo."),
|
|
24
|
+
width: zod.z.number().int().describe("Width of the photo in pixels."),
|
|
25
|
+
height: zod.z.number().int().describe("Height of the photo in pixels."),
|
|
26
|
+
avg_color: zod.z.string().describe("Average color of the photo in HEX format."),
|
|
27
|
+
photographer: zod.z.string().describe("Name of the photographer."),
|
|
28
|
+
photographer_id: zod.z.number().int().describe("ID of the photographer."),
|
|
29
|
+
photographer_url: zod.z.string().describe("URL to the photographer's profile.")
|
|
30
|
+
});
|
|
31
|
+
const PexelsCuratedPhotosOutput = zod.z.object({
|
|
32
|
+
page: zod.z.number().int().describe("Current page number."),
|
|
33
|
+
photos: zod.z.array(PexelsCuratedPhotos_PhotoSchema).describe("List of curated photo objects."),
|
|
34
|
+
per_page: zod.z.number().int().describe("Number of results returned per page."),
|
|
35
|
+
next_page: zod.z.string().describe("URL to the next page of results, if available.").nullable().optional(),
|
|
36
|
+
total_results: zod.z.number().int().describe("Total number of curated photos available.")
|
|
37
|
+
});
|
|
38
|
+
const pexelsCuratedPhotos = require_action.action("PEXELS_CURATED_PHOTOS", {
|
|
39
|
+
slug: "pexels-curated-photos",
|
|
40
|
+
name: "Get Curated Photos",
|
|
41
|
+
description: "Tool to get real-time curated photos. Use when you need to fetch curated photos with pagination support.",
|
|
42
|
+
input: PexelsCuratedPhotosInput,
|
|
43
|
+
output: PexelsCuratedPhotosOutput
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
exports.pexelsCuratedPhotos = pexelsCuratedPhotos;
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=curated-photos.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"curated-photos.cjs","names":["z","action"],"sources":["../../src/actions/curated-photos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsCuratedPhotosInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve (min 1). Defaults to Pexels API default of 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page (min 1, max 80). Defaults to Pexels API default of 15.\").optional(),\n}).describe(\"Request parameters for fetching curated photos from Pexels.\");\nconst PexelsCuratedPhotos_PhotoSrcSchema: z.ZodTypeAny = z.object({\n tiny: z.string().describe(\"URL of the tiny image.\"),\n large: z.string().describe(\"URL of the large image.\"),\n small: z.string().describe(\"URL of the small image.\"),\n medium: z.string().describe(\"URL of the medium image.\"),\n large2x: z.string().describe(\"URL of the large2x image.\"),\n original: z.string().describe(\"URL of the original image.\"),\n portrait: z.string().describe(\"URL of the portrait image.\"),\n landscape: z.string().describe(\"URL of the landscape image.\"),\n});\nconst PexelsCuratedPhotos_PhotoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo.\"),\n alt: z.string().describe(\"Alternative text for the photo.\"),\n src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL of the photo page on Pexels.\"),\n liked: z.boolean().describe(\"Whether the user has liked the 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 format.\"),\n photographer: z.string().describe(\"Name of the photographer.\"),\n photographer_id: z.number().int().describe(\"ID of the photographer.\"),\n photographer_url: z.string().describe(\"URL to the photographer's profile.\"),\n});\nexport const PexelsCuratedPhotosOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number.\"),\n photos: z.array(PexelsCuratedPhotos_PhotoSchema).describe(\"List of curated photo objects.\"),\n per_page: z.number().int().describe(\"Number of results returned per page.\"),\n next_page: z.string().describe(\"URL to the next page of results, if available.\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of curated photos available.\"),\n});\n\nexport const pexelsCuratedPhotos = action(\"PEXELS_CURATED_PHOTOS\", {\n slug: \"pexels-curated-photos\",\n name: \"Get Curated Photos\",\n description: \"Tool to get real-time curated photos. Use when you need to fetch curated photos with pagination support.\",\n input: PexelsCuratedPhotosInput,\n output: PexelsCuratedPhotosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBA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MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CACtD,QAAQA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,gCAAgC;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;AACtF,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/curated-photos.d.ts
|
|
4
|
+
declare const PexelsCuratedPhotosInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsCuratedPhotosOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsCuratedPhotos: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsCuratedPhotos };
|
|
9
|
+
//# sourceMappingURL=curated-photos.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"curated-photos.d.cts","names":[],"sources":["../../src/actions/curated-photos.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGiC;AAAA,cAwB7D,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/curated-photos.d.ts
|
|
4
|
+
declare const PexelsCuratedPhotosInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsCuratedPhotosOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsCuratedPhotos: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsCuratedPhotos };
|
|
9
|
+
//# sourceMappingURL=curated-photos.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"curated-photos.d.mts","names":[],"sources":["../../src/actions/curated-photos.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGiC;AAAA,cAwB7D,yBAAA,EAA2B,CAAA,CAAE,UAMxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/curated-photos.ts
|
|
4
|
+
const PexelsCuratedPhotosInput = z.object({
|
|
5
|
+
page: z.number().int().describe("Page number to retrieve (min 1). Defaults to Pexels API default of 1.").optional(),
|
|
6
|
+
per_page: z.number().int().describe("Number of results per page (min 1, max 80). Defaults to Pexels API default of 15.").optional()
|
|
7
|
+
}).describe("Request parameters for fetching curated photos from Pexels.");
|
|
8
|
+
const PexelsCuratedPhotos_PhotoSrcSchema = z.object({
|
|
9
|
+
tiny: z.string().describe("URL of the tiny image."),
|
|
10
|
+
large: z.string().describe("URL of the large image."),
|
|
11
|
+
small: z.string().describe("URL of the small image."),
|
|
12
|
+
medium: z.string().describe("URL of the medium image."),
|
|
13
|
+
large2x: z.string().describe("URL of the large2x image."),
|
|
14
|
+
original: z.string().describe("URL of the original image."),
|
|
15
|
+
portrait: z.string().describe("URL of the portrait image."),
|
|
16
|
+
landscape: z.string().describe("URL of the landscape image.")
|
|
17
|
+
});
|
|
18
|
+
const PexelsCuratedPhotos_PhotoSchema = z.object({
|
|
19
|
+
id: z.number().int().describe("Unique identifier for the photo."),
|
|
20
|
+
alt: z.string().describe("Alternative text for the photo."),
|
|
21
|
+
src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),
|
|
22
|
+
url: z.string().describe("URL of the photo page on Pexels."),
|
|
23
|
+
liked: z.boolean().describe("Whether the user has liked the photo."),
|
|
24
|
+
width: z.number().int().describe("Width of the photo in pixels."),
|
|
25
|
+
height: z.number().int().describe("Height of the photo in pixels."),
|
|
26
|
+
avg_color: z.string().describe("Average color of the photo in HEX format."),
|
|
27
|
+
photographer: z.string().describe("Name of the photographer."),
|
|
28
|
+
photographer_id: z.number().int().describe("ID of the photographer."),
|
|
29
|
+
photographer_url: z.string().describe("URL to the photographer's profile.")
|
|
30
|
+
});
|
|
31
|
+
const pexelsCuratedPhotos = action("PEXELS_CURATED_PHOTOS", {
|
|
32
|
+
slug: "pexels-curated-photos",
|
|
33
|
+
name: "Get Curated Photos",
|
|
34
|
+
description: "Tool to get real-time curated photos. Use when you need to fetch curated photos with pagination support.",
|
|
35
|
+
input: PexelsCuratedPhotosInput,
|
|
36
|
+
output: z.object({
|
|
37
|
+
page: z.number().int().describe("Current page number."),
|
|
38
|
+
photos: z.array(PexelsCuratedPhotos_PhotoSchema).describe("List of curated photo objects."),
|
|
39
|
+
per_page: z.number().int().describe("Number of results returned per page."),
|
|
40
|
+
next_page: z.string().describe("URL to the next page of results, if available.").nullable().optional(),
|
|
41
|
+
total_results: z.number().int().describe("Total number of curated photos available.")
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { pexelsCuratedPhotos };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=curated-photos.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"curated-photos.mjs","names":[],"sources":["../../src/actions/curated-photos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsCuratedPhotosInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve (min 1). Defaults to Pexels API default of 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page (min 1, max 80). Defaults to Pexels API default of 15.\").optional(),\n}).describe(\"Request parameters for fetching curated photos from Pexels.\");\nconst PexelsCuratedPhotos_PhotoSrcSchema: z.ZodTypeAny = z.object({\n tiny: z.string().describe(\"URL of the tiny image.\"),\n large: z.string().describe(\"URL of the large image.\"),\n small: z.string().describe(\"URL of the small image.\"),\n medium: z.string().describe(\"URL of the medium image.\"),\n large2x: z.string().describe(\"URL of the large2x image.\"),\n original: z.string().describe(\"URL of the original image.\"),\n portrait: z.string().describe(\"URL of the portrait image.\"),\n landscape: z.string().describe(\"URL of the landscape image.\"),\n});\nconst PexelsCuratedPhotos_PhotoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo.\"),\n alt: z.string().describe(\"Alternative text for the photo.\"),\n src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL of the photo page on Pexels.\"),\n liked: z.boolean().describe(\"Whether the user has liked the 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 format.\"),\n photographer: z.string().describe(\"Name of the photographer.\"),\n photographer_id: z.number().int().describe(\"ID of the photographer.\"),\n photographer_url: z.string().describe(\"URL to the photographer's profile.\"),\n});\nexport const PexelsCuratedPhotosOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number.\"),\n photos: z.array(PexelsCuratedPhotos_PhotoSchema).describe(\"List of curated photo objects.\"),\n per_page: z.number().int().describe(\"Number of results returned per page.\"),\n next_page: z.string().describe(\"URL to the next page of results, if available.\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of curated photos available.\"),\n});\n\nexport const pexelsCuratedPhotos = action(\"PEXELS_CURATED_PHOTOS\", {\n slug: \"pexels-curated-photos\",\n name: \"Get Curated Photos\",\n description: \"Tool to get real-time curated photos. Use when you need to fetch curated photos with pagination support.\",\n input: PexelsCuratedPhotosInput,\n output: PexelsCuratedPhotosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,qCAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC9D,CAAC;AACD,MAAM,kCAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC1D,KAAK,mCAAmC,SAAS;CACjD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC3D,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC7D,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CACpE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;AAC5E,CAAC;AASD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;EACtD,QAAQ,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,gCAAgC;EAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CACtF,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/featured-collections.ts
|
|
4
|
+
const PexelsFeaturedCollectionsInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().default(1).describe("Page number of results to retrieve, must be >= 1.").optional(),
|
|
6
|
+
per_page: zod.z.number().int().default(15).describe("Number of results per page (1-80). Defaults to 15.").optional()
|
|
7
|
+
}).describe("Parameters to retrieve featured collections on Pexels.");
|
|
8
|
+
const PexelsFeaturedCollections_FeaturedCollectionSchema = zod.z.object({
|
|
9
|
+
id: zod.z.string().describe("Collection ID (alphanumeric string)"),
|
|
10
|
+
title: zod.z.string().describe("Title of the collection"),
|
|
11
|
+
private: zod.z.boolean().describe("Whether the collection is private"),
|
|
12
|
+
description: zod.z.string().describe("Description of the collection").nullable().optional(),
|
|
13
|
+
media_count: zod.z.number().int().describe("Total number of 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("A single featured collection object.");
|
|
17
|
+
const PexelsFeaturedCollectionsOutput = zod.z.object({
|
|
18
|
+
page: zod.z.number().int().describe("Current page number"),
|
|
19
|
+
per_page: zod.z.number().int().describe("Number of results per page"),
|
|
20
|
+
next_page: zod.z.string().describe("URL to the next page of results, if available").nullable().optional(),
|
|
21
|
+
prev_page: zod.z.string().describe("URL to the previous page of results, if available").nullable().optional(),
|
|
22
|
+
collections: zod.z.array(PexelsFeaturedCollections_FeaturedCollectionSchema).describe("List of featured collections"),
|
|
23
|
+
total_results: zod.z.number().int().describe("Total number of featured collections available")
|
|
24
|
+
}).describe("Response model for featured collections, including pagination.");
|
|
25
|
+
const pexelsFeaturedCollections = require_action.action("PEXELS_FEATURED_COLLECTIONS", {
|
|
26
|
+
slug: "pexels-featured-collections",
|
|
27
|
+
name: "Featured Collections",
|
|
28
|
+
description: "Tool to get featured collections. Use when you need curated collections of photos and videos with pagination support.",
|
|
29
|
+
input: PexelsFeaturedCollectionsInput,
|
|
30
|
+
output: PexelsFeaturedCollectionsOutput
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.pexelsFeaturedCollections = pexelsFeaturedCollections;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=featured-collections.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-collections.cjs","names":["z","action"],"sources":["../../src/actions/featured-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsFeaturedCollectionsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80). Defaults to 15.\").optional(),\n}).describe(\"Parameters to retrieve featured collections on Pexels.\");\nconst PexelsFeaturedCollections_FeaturedCollectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Collection ID (alphanumeric string)\"),\n title: z.string().describe(\"Title of the collection\"),\n private: z.boolean().describe(\"Whether the collection is private\"),\n description: z.string().describe(\"Description of the collection\").nullable().optional(),\n media_count: z.number().int().describe(\"Total number of 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(\"A single featured collection object.\");\nexport const PexelsFeaturedCollectionsOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n per_page: z.number().int().describe(\"Number of results per page\"),\n next_page: z.string().describe(\"URL to the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL to the previous page of results, if available\").nullable().optional(),\n collections: z.array(PexelsFeaturedCollections_FeaturedCollectionSchema).describe(\"List of featured collections\"),\n total_results: z.number().int().describe(\"Total number of featured collections available\"),\n}).describe(\"Response model for featured collections, including pagination.\");\n\nexport const pexelsFeaturedCollections = action(\"PEXELS_FEATURED_COLLECTIONS\", {\n slug: \"pexels-featured-collections\",\n name: \"Featured Collections\",\n description: \"Tool to get featured collections. Use when you need curated collections of photos and videos with pagination support.\",\n input: PexelsFeaturedCollectionsInput,\n output: PexelsFeaturedCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAA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AkD,CAAC,CAAC,SAAS,8BAA8B;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;AAC3F,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,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/featured-collections.d.ts
|
|
4
|
+
declare const PexelsFeaturedCollectionsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsFeaturedCollectionsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsFeaturedCollections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsFeaturedCollections };
|
|
9
|
+
//# sourceMappingURL=featured-collections.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-collections.d.cts","names":[],"sources":["../../src/actions/featured-collections.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAGsB;AAAA,cAUxD,+BAAA,EAAiC,CAAA,CAAE,UAO6B;AAAA,cAEhE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/featured-collections.d.ts
|
|
4
|
+
declare const PexelsFeaturedCollectionsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PexelsFeaturedCollectionsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pexelsFeaturedCollections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pexelsFeaturedCollections };
|
|
9
|
+
//# sourceMappingURL=featured-collections.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-collections.d.mts","names":[],"sources":["../../src/actions/featured-collections.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAGsB;AAAA,cAUxD,+BAAA,EAAiC,CAAA,CAAE,UAO6B;AAAA,cAEhE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/featured-collections.ts
|
|
4
|
+
const PexelsFeaturedCollectionsInput = z.object({
|
|
5
|
+
page: z.number().int().default(1).describe("Page number of results to retrieve, must be >= 1.").optional(),
|
|
6
|
+
per_page: z.number().int().default(15).describe("Number of results per page (1-80). Defaults to 15.").optional()
|
|
7
|
+
}).describe("Parameters to retrieve featured collections on Pexels.");
|
|
8
|
+
const PexelsFeaturedCollections_FeaturedCollectionSchema = z.object({
|
|
9
|
+
id: z.string().describe("Collection ID (alphanumeric string)"),
|
|
10
|
+
title: z.string().describe("Title of the collection"),
|
|
11
|
+
private: z.boolean().describe("Whether the collection is private"),
|
|
12
|
+
description: z.string().describe("Description of the collection").nullable().optional(),
|
|
13
|
+
media_count: z.number().int().describe("Total number of 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("A single featured collection object.");
|
|
17
|
+
const pexelsFeaturedCollections = action("PEXELS_FEATURED_COLLECTIONS", {
|
|
18
|
+
slug: "pexels-featured-collections",
|
|
19
|
+
name: "Featured Collections",
|
|
20
|
+
description: "Tool to get featured collections. Use when you need curated collections of photos and videos with pagination support.",
|
|
21
|
+
input: PexelsFeaturedCollectionsInput,
|
|
22
|
+
output: z.object({
|
|
23
|
+
page: z.number().int().describe("Current page number"),
|
|
24
|
+
per_page: z.number().int().describe("Number of results per page"),
|
|
25
|
+
next_page: z.string().describe("URL to the next page of results, if available").nullable().optional(),
|
|
26
|
+
prev_page: z.string().describe("URL to the previous page of results, if available").nullable().optional(),
|
|
27
|
+
collections: z.array(PexelsFeaturedCollections_FeaturedCollectionSchema).describe("List of featured collections"),
|
|
28
|
+
total_results: z.number().int().describe("Total number of featured collections available")
|
|
29
|
+
}).describe("Response model for featured collections, including pagination.")
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { pexelsFeaturedCollections };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=featured-collections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-collections.mjs","names":[],"sources":["../../src/actions/featured-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsFeaturedCollectionsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80). Defaults to 15.\").optional(),\n}).describe(\"Parameters to retrieve featured collections on Pexels.\");\nconst PexelsFeaturedCollections_FeaturedCollectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Collection ID (alphanumeric string)\"),\n title: z.string().describe(\"Title of the collection\"),\n private: z.boolean().describe(\"Whether the collection is private\"),\n description: z.string().describe(\"Description of the collection\").nullable().optional(),\n media_count: z.number().int().describe(\"Total number of 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(\"A single featured collection object.\");\nexport const PexelsFeaturedCollectionsOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n per_page: z.number().int().describe(\"Number of results per page\"),\n next_page: z.string().describe(\"URL to the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL to the previous page of results, if available\").nullable().optional(),\n collections: z.array(PexelsFeaturedCollections_FeaturedCollectionSchema).describe(\"List of featured collections\"),\n total_results: z.number().int().describe(\"Total number of featured collections available\"),\n}).describe(\"Response model for featured collections, including pagination.\");\n\nexport const pexelsFeaturedCollections = action(\"PEXELS_FEATURED_COLLECTIONS\", {\n slug: \"pexels-featured-collections\",\n name: \"Featured Collections\",\n description: \"Tool to get featured collections. Use when you need curated collections of photos and videos with pagination support.\",\n input: PexelsFeaturedCollectionsInput,\n output: PexelsFeaturedCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,qDAAmE,EAAE,OAAO;CAChF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CACtF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC5E,cAAc,EAAE,O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