@keystrokehq/pexels 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/collection-media.cjs +6 -6
- package/dist/actions/collection-media.cjs.map +1 -1
- package/dist/actions/collection-media.d.cts +6 -6
- package/dist/actions/collection-media.d.mts +6 -6
- package/dist/actions/collection-media.mjs +6 -6
- package/dist/actions/collection-media.mjs.map +1 -1
- package/dist/actions/curated-photos.cjs +3 -3
- package/dist/actions/curated-photos.cjs.map +1 -1
- package/dist/actions/curated-photos.d.cts +3 -3
- package/dist/actions/curated-photos.d.mts +3 -3
- package/dist/actions/curated-photos.mjs +3 -3
- package/dist/actions/curated-photos.mjs.map +1 -1
- package/dist/actions/featured-collections.cjs +2 -2
- package/dist/actions/featured-collections.cjs.map +1 -1
- package/dist/actions/featured-collections.d.cts +2 -2
- package/dist/actions/featured-collections.d.mts +2 -2
- package/dist/actions/featured-collections.mjs +2 -2
- package/dist/actions/featured-collections.mjs.map +1 -1
- package/dist/actions/get-photo.cjs +2 -2
- package/dist/actions/get-photo.cjs.map +1 -1
- package/dist/actions/get-photo.d.cts +2 -2
- package/dist/actions/get-photo.d.mts +2 -2
- package/dist/actions/get-photo.mjs +2 -2
- package/dist/actions/get-photo.mjs.map +1 -1
- package/dist/actions/get-video-by-id.cjs +4 -4
- package/dist/actions/get-video-by-id.cjs.map +1 -1
- package/dist/actions/get-video-by-id.d.cts +4 -4
- package/dist/actions/get-video-by-id.d.mts +4 -4
- package/dist/actions/get-video-by-id.mjs +4 -4
- package/dist/actions/get-video-by-id.mjs.map +1 -1
- package/dist/actions/my-collections.cjs +2 -2
- package/dist/actions/my-collections.cjs.map +1 -1
- package/dist/actions/my-collections.d.cts +2 -2
- package/dist/actions/my-collections.d.mts +2 -2
- package/dist/actions/my-collections.mjs +2 -2
- package/dist/actions/my-collections.mjs.map +1 -1
- package/dist/actions/popular-videos.cjs +5 -5
- package/dist/actions/popular-videos.cjs.map +1 -1
- package/dist/actions/popular-videos.d.cts +5 -5
- package/dist/actions/popular-videos.d.mts +5 -5
- package/dist/actions/popular-videos.mjs +5 -5
- package/dist/actions/popular-videos.mjs.map +1 -1
- package/dist/actions/search-photos.cjs +3 -3
- package/dist/actions/search-photos.cjs.map +1 -1
- package/dist/actions/search-photos.d.cts +7 -7
- package/dist/actions/search-photos.d.mts +7 -7
- package/dist/actions/search-photos.mjs +3 -3
- package/dist/actions/search-photos.mjs.map +1 -1
- package/dist/actions/search-videos.cjs +5 -5
- package/dist/actions/search-videos.cjs.map +1 -1
- package/dist/actions/search-videos.d.cts +9 -9
- package/dist/actions/search-videos.d.mts +9 -9
- package/dist/actions/search-videos.mjs +5 -5
- package/dist/actions/search-videos.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15,12 +15,12 @@ const PexelsCollectionMedia_PhotoSrcSchema = zod.z.object({
|
|
|
15
15
|
original: zod.z.string().describe("Original size photo URL").nullable(),
|
|
16
16
|
portrait: zod.z.string().describe("Portrait orientation photo URL").nullable(),
|
|
17
17
|
landscape: zod.z.string().describe("Landscape orientation photo URL").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const PexelsCollectionMedia_VideoUserSchema = zod.z.object({
|
|
20
20
|
id: zod.z.number().int().describe("User ID").nullable(),
|
|
21
21
|
url: zod.z.string().describe("User profile URL").nullable(),
|
|
22
22
|
name: zod.z.string().describe("User name").nullable()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const PexelsCollectionMedia_VideoFileSchema = zod.z.object({
|
|
25
25
|
id: zod.z.number().int().describe("Unique identifier for the video file").nullable(),
|
|
26
26
|
fps: zod.z.number().describe("Frames per second").nullable(),
|
|
@@ -30,12 +30,12 @@ const PexelsCollectionMedia_VideoFileSchema = zod.z.object({
|
|
|
30
30
|
height: zod.z.number().int().describe("Video height in pixels").nullable(),
|
|
31
31
|
quality: zod.z.string().describe("Quality level (sd, hd, uhd)").nullable(),
|
|
32
32
|
file_type: zod.z.string().describe("MIME type of the video file").nullable()
|
|
33
|
-
});
|
|
33
|
+
}).passthrough();
|
|
34
34
|
const PexelsCollectionMedia_VideoPictureSchema = zod.z.object({
|
|
35
35
|
id: zod.z.number().int().describe("Unique identifier for the preview picture").nullable(),
|
|
36
36
|
nr: zod.z.number().int().describe("Preview picture number").nullable(),
|
|
37
37
|
picture: zod.z.string().describe("URL to the preview picture").nullable()
|
|
38
|
-
});
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const PexelsCollectionMedia_MediaItemSchema = zod.z.object({
|
|
40
40
|
id: zod.z.number().int().describe("Unique identifier for the media").nullable(),
|
|
41
41
|
alt: zod.z.string().describe("Alternate text for the photo").nullable().optional(),
|
|
@@ -54,7 +54,7 @@ const PexelsCollectionMedia_MediaItemSchema = zod.z.object({
|
|
|
54
54
|
video_pictures: zod.z.array(PexelsCollectionMedia_VideoPictureSchema).describe("Video preview pictures (videos only)").nullable().optional(),
|
|
55
55
|
photographer_id: zod.z.number().int().describe("Photographer's ID (photos only)").nullable().optional(),
|
|
56
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.");
|
|
57
|
+
}).passthrough().describe("A media item that can be either a Photo or a Video.\nUses flexible fields to handle both types.");
|
|
58
58
|
const PexelsCollectionMediaOutput = zod.z.object({
|
|
59
59
|
page: zod.z.number().int().describe("Current page number returned").nullable(),
|
|
60
60
|
media: zod.z.array(PexelsCollectionMedia_MediaItemSchema).describe("List of media items (photos and/or videos) in the collection"),
|
|
@@ -62,7 +62,7 @@ const PexelsCollectionMediaOutput = zod.z.object({
|
|
|
62
62
|
next_page: zod.z.string().describe("URL for the next page of results, if available").nullable().optional(),
|
|
63
63
|
prev_page: zod.z.string().describe("URL for the previous page of results, if available").nullable().optional(),
|
|
64
64
|
total_results: zod.z.number().int().describe("Total number of media items in the collection").nullable()
|
|
65
|
-
});
|
|
65
|
+
}).passthrough();
|
|
66
66
|
const pexelsCollectionMedia = require_action.action("PEXELS_COLLECTION_MEDIA", {
|
|
67
67
|
slug: "pexels-collection-media",
|
|
68
68
|
name: "Get Collection Media",
|
|
@@ -1 +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.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.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"2x large photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n});\nconst PexelsCollectionMedia_VideoUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n url: z.string().describe(\"User profile URL\").nullable(),\n name: z.string().describe(\"User name\").nullable(),\n});\nconst PexelsCollectionMedia_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the video file\").nullable(),\n fps: z.number().describe(\"Frames per second\").nullable(),\n link: z.string().describe(\"URL to download the video file\").nullable(),\n size: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n width: z.number().int().describe(\"Video width in pixels\").nullable(),\n height: z.number().int().describe(\"Video height in pixels\").nullable(),\n quality: z.string().describe(\"Quality level (sd, hd, uhd)\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file\").nullable(),\n});\nconst PexelsCollectionMedia_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the preview picture\").nullable(),\n nr: z.number().int().describe(\"Preview picture number\").nullable(),\n picture: z.string().describe(\"URL to the preview picture\").nullable(),\n});\nconst PexelsCollectionMedia_MediaItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the media\").nullable(),\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\").nullable(),\n type: z.string().describe(\"Media type: 'Photo' or 'Video'\").nullable(),\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\").nullable(),\n height: z.number().int().describe(\"Media height in pixels\").nullable(),\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.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\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\").nullable(),\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\").nullable(),\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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC;
|
|
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.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.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"2x large photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n url: z.string().describe(\"User profile URL\").nullable(),\n name: z.string().describe(\"User name\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the video file\").nullable(),\n fps: z.number().describe(\"Frames per second\").nullable(),\n link: z.string().describe(\"URL to download the video file\").nullable(),\n size: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n width: z.number().int().describe(\"Video width in pixels\").nullable(),\n height: z.number().int().describe(\"Video height in pixels\").nullable(),\n quality: z.string().describe(\"Quality level (sd, hd, uhd)\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the preview picture\").nullable(),\n nr: z.number().int().describe(\"Preview picture number\").nullable(),\n picture: z.string().describe(\"URL to the preview picture\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_MediaItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the media\").nullable(),\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\").nullable(),\n type: z.string().describe(\"Media type: 'Photo' or 'Video'\").nullable(),\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\").nullable(),\n height: z.number().int().describe(\"Media height in pixels\").nullable(),\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}).passthrough().describe(\"A media item that can be either a Photo or a Video.\\nUses flexible fields to handle both types.\");\nexport const PexelsCollectionMediaOutput = z.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\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\").nullable(),\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\").nullable(),\n}).passthrough();\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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SA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SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -20,14 +20,14 @@ declare const PexelsCollectionMediaOutput: z.ZodObject<{
|
|
|
20
20
|
original: z.ZodNullable<z.ZodString>;
|
|
21
21
|
portrait: z.ZodNullable<z.ZodString>;
|
|
22
22
|
landscape: z.ZodNullable<z.ZodString>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>>;
|
|
24
24
|
url: z.ZodNullable<z.ZodString>;
|
|
25
25
|
type: z.ZodNullable<z.ZodString>;
|
|
26
26
|
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
27
|
id: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
url: z.ZodNullable<z.ZodString>;
|
|
29
29
|
name: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
31
|
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
liked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
33
|
width: z.ZodNullable<z.ZodNumber>;
|
|
@@ -43,21 +43,21 @@ declare const PexelsCollectionMediaOutput: z.ZodObject<{
|
|
|
43
43
|
height: z.ZodNullable<z.ZodNumber>;
|
|
44
44
|
quality: z.ZodNullable<z.ZodString>;
|
|
45
45
|
file_type: z.ZodNullable<z.ZodString>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>>>;
|
|
47
47
|
photographer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
48
|
video_pictures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
49
49
|
id: z.ZodNullable<z.ZodNumber>;
|
|
50
50
|
nr: z.ZodNullable<z.ZodNumber>;
|
|
51
51
|
picture: z.ZodNullable<z.ZodString>;
|
|
52
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>>>>;
|
|
53
53
|
photographer_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
54
|
photographer_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
56
|
per_page: z.ZodNullable<z.ZodNumber>;
|
|
57
57
|
next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
59
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
60
|
-
}, z.core.$
|
|
60
|
+
}, z.core.$loose>;
|
|
61
61
|
declare const pexelsCollectionMedia: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
62
62
|
id: string;
|
|
63
63
|
page?: number | undefined;
|
|
@@ -20,14 +20,14 @@ declare const PexelsCollectionMediaOutput: z.ZodObject<{
|
|
|
20
20
|
original: z.ZodNullable<z.ZodString>;
|
|
21
21
|
portrait: z.ZodNullable<z.ZodString>;
|
|
22
22
|
landscape: z.ZodNullable<z.ZodString>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>>;
|
|
24
24
|
url: z.ZodNullable<z.ZodString>;
|
|
25
25
|
type: z.ZodNullable<z.ZodString>;
|
|
26
26
|
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
27
|
id: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
url: z.ZodNullable<z.ZodString>;
|
|
29
29
|
name: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
31
|
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
liked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
33
|
width: z.ZodNullable<z.ZodNumber>;
|
|
@@ -43,21 +43,21 @@ declare const PexelsCollectionMediaOutput: z.ZodObject<{
|
|
|
43
43
|
height: z.ZodNullable<z.ZodNumber>;
|
|
44
44
|
quality: z.ZodNullable<z.ZodString>;
|
|
45
45
|
file_type: z.ZodNullable<z.ZodString>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>>>;
|
|
47
47
|
photographer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
48
|
video_pictures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
49
49
|
id: z.ZodNullable<z.ZodNumber>;
|
|
50
50
|
nr: z.ZodNullable<z.ZodNumber>;
|
|
51
51
|
picture: z.ZodNullable<z.ZodString>;
|
|
52
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>>>>;
|
|
53
53
|
photographer_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
54
|
photographer_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
56
|
per_page: z.ZodNullable<z.ZodNumber>;
|
|
57
57
|
next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
59
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
60
|
-
}, z.core.$
|
|
60
|
+
}, z.core.$loose>;
|
|
61
61
|
declare const pexelsCollectionMedia: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
62
62
|
id: string;
|
|
63
63
|
page?: number | undefined;
|
|
@@ -15,12 +15,12 @@ const PexelsCollectionMedia_PhotoSrcSchema = z.object({
|
|
|
15
15
|
original: z.string().describe("Original size photo URL").nullable(),
|
|
16
16
|
portrait: z.string().describe("Portrait orientation photo URL").nullable(),
|
|
17
17
|
landscape: z.string().describe("Landscape orientation photo URL").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const PexelsCollectionMedia_VideoUserSchema = z.object({
|
|
20
20
|
id: z.number().int().describe("User ID").nullable(),
|
|
21
21
|
url: z.string().describe("User profile URL").nullable(),
|
|
22
22
|
name: z.string().describe("User name").nullable()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const PexelsCollectionMedia_VideoFileSchema = z.object({
|
|
25
25
|
id: z.number().int().describe("Unique identifier for the video file").nullable(),
|
|
26
26
|
fps: z.number().describe("Frames per second").nullable(),
|
|
@@ -30,12 +30,12 @@ const PexelsCollectionMedia_VideoFileSchema = z.object({
|
|
|
30
30
|
height: z.number().int().describe("Video height in pixels").nullable(),
|
|
31
31
|
quality: z.string().describe("Quality level (sd, hd, uhd)").nullable(),
|
|
32
32
|
file_type: z.string().describe("MIME type of the video file").nullable()
|
|
33
|
-
});
|
|
33
|
+
}).passthrough();
|
|
34
34
|
const PexelsCollectionMedia_VideoPictureSchema = z.object({
|
|
35
35
|
id: z.number().int().describe("Unique identifier for the preview picture").nullable(),
|
|
36
36
|
nr: z.number().int().describe("Preview picture number").nullable(),
|
|
37
37
|
picture: z.string().describe("URL to the preview picture").nullable()
|
|
38
|
-
});
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const PexelsCollectionMedia_MediaItemSchema = z.object({
|
|
40
40
|
id: z.number().int().describe("Unique identifier for the media").nullable(),
|
|
41
41
|
alt: z.string().describe("Alternate text for the photo").nullable().optional(),
|
|
@@ -54,7 +54,7 @@ const PexelsCollectionMedia_MediaItemSchema = z.object({
|
|
|
54
54
|
video_pictures: z.array(PexelsCollectionMedia_VideoPictureSchema).describe("Video preview pictures (videos only)").nullable().optional(),
|
|
55
55
|
photographer_id: z.number().int().describe("Photographer's ID (photos only)").nullable().optional(),
|
|
56
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.");
|
|
57
|
+
}).passthrough().describe("A media item that can be either a Photo or a Video.\nUses flexible fields to handle both types.");
|
|
58
58
|
const pexelsCollectionMedia = action("PEXELS_COLLECTION_MEDIA", {
|
|
59
59
|
slug: "pexels-collection-media",
|
|
60
60
|
name: "Get Collection Media",
|
|
@@ -67,7 +67,7 @@ const pexelsCollectionMedia = action("PEXELS_COLLECTION_MEDIA", {
|
|
|
67
67
|
next_page: z.string().describe("URL for the next page of results, if available").nullable().optional(),
|
|
68
68
|
prev_page: z.string().describe("URL for the previous page of results, if available").nullable().optional(),
|
|
69
69
|
total_results: z.number().int().describe("Total number of media items in the collection").nullable()
|
|
70
|
-
})
|
|
70
|
+
}).passthrough()
|
|
71
71
|
});
|
|
72
72
|
//#endregion
|
|
73
73
|
export { pexelsCollectionMedia };
|
|
@@ -1 +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.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.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"2x large photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n});\nconst PexelsCollectionMedia_VideoUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n url: z.string().describe(\"User profile URL\").nullable(),\n name: z.string().describe(\"User name\").nullable(),\n});\nconst PexelsCollectionMedia_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the video file\").nullable(),\n fps: z.number().describe(\"Frames per second\").nullable(),\n link: z.string().describe(\"URL to download the video file\").nullable(),\n size: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n width: z.number().int().describe(\"Video width in pixels\").nullable(),\n height: z.number().int().describe(\"Video height in pixels\").nullable(),\n quality: z.string().describe(\"Quality level (sd, hd, uhd)\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file\").nullable(),\n});\nconst PexelsCollectionMedia_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the preview picture\").nullable(),\n nr: z.number().int().describe(\"Preview picture number\").nullable(),\n picture: z.string().describe(\"URL to the preview picture\").nullable(),\n});\nconst PexelsCollectionMedia_MediaItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the media\").nullable(),\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\").nullable(),\n type: z.string().describe(\"Media type: 'Photo' or 'Video'\").nullable(),\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\").nullable(),\n height: z.number().int().describe(\"Media height in pixels\").nullable(),\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.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\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\").nullable(),\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\").nullable(),\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,6BAA6B,EAAE,OAAO;CACjD,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,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC;
|
|
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.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.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"2x large photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n url: z.string().describe(\"User profile URL\").nullable(),\n name: z.string().describe(\"User name\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the video file\").nullable(),\n fps: z.number().describe(\"Frames per second\").nullable(),\n link: z.string().describe(\"URL to download the video file\").nullable(),\n size: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n width: z.number().int().describe(\"Video width in pixels\").nullable(),\n height: z.number().int().describe(\"Video height in pixels\").nullable(),\n quality: z.string().describe(\"Quality level (sd, hd, uhd)\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the preview picture\").nullable(),\n nr: z.number().int().describe(\"Preview picture number\").nullable(),\n picture: z.string().describe(\"URL to the preview picture\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_MediaItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the media\").nullable(),\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\").nullable(),\n type: z.string().describe(\"Media type: 'Photo' or 'Video'\").nullable(),\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\").nullable(),\n height: z.number().int().describe(\"Media height in pixels\").nullable(),\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}).passthrough().describe(\"A media item that can be either a Photo or a Video.\\nUses flexible fields to handle both types.\");\nexport const PexelsCollectionMediaOutput = z.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\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\").nullable(),\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\").nullable(),\n}).passthrough();\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,6BAA6B,EAAE,OAAO;CACjD,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,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,C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ACzG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ const PexelsCuratedPhotos_PhotoSrcSchema = zod.z.object({
|
|
|
14
14
|
original: zod.z.string().describe("URL of the original image.").nullable(),
|
|
15
15
|
portrait: zod.z.string().describe("URL of the portrait image.").nullable(),
|
|
16
16
|
landscape: zod.z.string().describe("URL of the landscape image.").nullable()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const PexelsCuratedPhotos_PhotoSchema = zod.z.object({
|
|
19
19
|
id: zod.z.number().int().describe("Unique identifier for the photo.").nullable(),
|
|
20
20
|
alt: zod.z.string().describe("Alternative text for the photo.").nullable(),
|
|
@@ -27,14 +27,14 @@ const PexelsCuratedPhotos_PhotoSchema = zod.z.object({
|
|
|
27
27
|
photographer: zod.z.string().describe("Name of the photographer.").nullable(),
|
|
28
28
|
photographer_id: zod.z.number().int().describe("ID of the photographer.").nullable(),
|
|
29
29
|
photographer_url: zod.z.string().describe("URL to the photographer's profile.").nullable()
|
|
30
|
-
});
|
|
30
|
+
}).passthrough();
|
|
31
31
|
const PexelsCuratedPhotosOutput = zod.z.object({
|
|
32
32
|
page: zod.z.number().int().describe("Current page number.").nullable(),
|
|
33
33
|
photos: zod.z.array(PexelsCuratedPhotos_PhotoSchema).describe("List of curated photo objects."),
|
|
34
34
|
per_page: zod.z.number().int().describe("Number of results returned per page.").nullable(),
|
|
35
35
|
next_page: zod.z.string().describe("URL to the next page of results, if available.").nullable().optional(),
|
|
36
36
|
total_results: zod.z.number().int().describe("Total number of curated photos available.").nullable()
|
|
37
|
-
});
|
|
37
|
+
}).passthrough();
|
|
38
38
|
const pexelsCuratedPhotos = require_action.action("PEXELS_CURATED_PHOTOS", {
|
|
39
39
|
slug: "pexels-curated-photos",
|
|
40
40
|
name: "Get Curated Photos",
|
|
@@ -1 +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.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.object({\n tiny: z.string().describe(\"URL of the tiny image.\").nullable(),\n large: z.string().describe(\"URL of the large image.\").nullable(),\n small: z.string().describe(\"URL of the small image.\").nullable(),\n medium: z.string().describe(\"URL of the medium image.\").nullable(),\n large2x: z.string().describe(\"URL of the large2x image.\").nullable(),\n original: z.string().describe(\"URL of the original image.\").nullable(),\n portrait: z.string().describe(\"URL of the portrait image.\").nullable(),\n landscape: z.string().describe(\"URL of the landscape image.\").nullable(),\n});\nconst PexelsCuratedPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo.\").nullable(),\n alt: z.string().describe(\"Alternative text for the photo.\").nullable(),\n src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL of the photo page on Pexels.\").nullable(),\n liked: z.boolean().describe(\"Whether the user has liked the photo.\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels.\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in HEX format.\").nullable(),\n photographer: z.string().describe(\"Name of the photographer.\").nullable(),\n photographer_id: z.number().int().describe(\"ID of the photographer.\").nullable(),\n photographer_url: z.string().describe(\"URL to the photographer's profile.\").nullable(),\n});\nexport const PexelsCuratedPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\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.\").nullable(),\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.\").nullable(),\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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACzE,CAAC;
|
|
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.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.object({\n tiny: z.string().describe(\"URL of the tiny image.\").nullable(),\n large: z.string().describe(\"URL of the large image.\").nullable(),\n small: z.string().describe(\"URL of the small image.\").nullable(),\n medium: z.string().describe(\"URL of the medium image.\").nullable(),\n large2x: z.string().describe(\"URL of the large2x image.\").nullable(),\n original: z.string().describe(\"URL of the original image.\").nullable(),\n portrait: z.string().describe(\"URL of the portrait image.\").nullable(),\n landscape: z.string().describe(\"URL of the landscape image.\").nullable(),\n}).passthrough();\nconst PexelsCuratedPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo.\").nullable(),\n alt: z.string().describe(\"Alternative text for the photo.\").nullable(),\n src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL of the photo page on Pexels.\").nullable(),\n liked: z.boolean().describe(\"Whether the user has liked the photo.\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels.\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in HEX format.\").nullable(),\n photographer: z.string().describe(\"Name of the photographer.\").nullable(),\n photographer_id: z.number().int().describe(\"ID of the photographer.\").nullable(),\n photographer_url: z.string().describe(\"URL to the photographer's profile.\").nullable(),\n}).passthrough();\nexport const PexelsCuratedPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\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.\").nullable(),\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.\").nullable(),\n}).passthrough();\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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,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QAAQA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,gCAAgC;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,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,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ declare const PexelsCuratedPhotosOutput: z.ZodObject<{
|
|
|
19
19
|
original: z.ZodNullable<z.ZodString>;
|
|
20
20
|
portrait: z.ZodNullable<z.ZodString>;
|
|
21
21
|
landscape: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
url: z.ZodNullable<z.ZodString>;
|
|
24
24
|
liked: z.ZodNullable<z.ZodBoolean>;
|
|
25
25
|
width: z.ZodNullable<z.ZodNumber>;
|
|
@@ -28,11 +28,11 @@ declare const PexelsCuratedPhotosOutput: z.ZodObject<{
|
|
|
28
28
|
photographer: z.ZodNullable<z.ZodString>;
|
|
29
29
|
photographer_id: z.ZodNullable<z.ZodNumber>;
|
|
30
30
|
photographer_url: z.ZodNullable<z.ZodString>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
per_page: z.ZodNullable<z.ZodNumber>;
|
|
33
33
|
next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>;
|
|
36
36
|
declare const pexelsCuratedPhotos: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
37
|
page?: number | undefined;
|
|
38
38
|
per_page?: number | undefined;
|
|
@@ -19,7 +19,7 @@ declare const PexelsCuratedPhotosOutput: z.ZodObject<{
|
|
|
19
19
|
original: z.ZodNullable<z.ZodString>;
|
|
20
20
|
portrait: z.ZodNullable<z.ZodString>;
|
|
21
21
|
landscape: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
url: z.ZodNullable<z.ZodString>;
|
|
24
24
|
liked: z.ZodNullable<z.ZodBoolean>;
|
|
25
25
|
width: z.ZodNullable<z.ZodNumber>;
|
|
@@ -28,11 +28,11 @@ declare const PexelsCuratedPhotosOutput: z.ZodObject<{
|
|
|
28
28
|
photographer: z.ZodNullable<z.ZodString>;
|
|
29
29
|
photographer_id: z.ZodNullable<z.ZodNumber>;
|
|
30
30
|
photographer_url: z.ZodNullable<z.ZodString>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
per_page: z.ZodNullable<z.ZodNumber>;
|
|
33
33
|
next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>;
|
|
36
36
|
declare const pexelsCuratedPhotos: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
37
|
page?: number | undefined;
|
|
38
38
|
per_page?: number | undefined;
|
|
@@ -14,7 +14,7 @@ const PexelsCuratedPhotos_PhotoSrcSchema = z.object({
|
|
|
14
14
|
original: z.string().describe("URL of the original image.").nullable(),
|
|
15
15
|
portrait: z.string().describe("URL of the portrait image.").nullable(),
|
|
16
16
|
landscape: z.string().describe("URL of the landscape image.").nullable()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const PexelsCuratedPhotos_PhotoSchema = z.object({
|
|
19
19
|
id: z.number().int().describe("Unique identifier for the photo.").nullable(),
|
|
20
20
|
alt: z.string().describe("Alternative text for the photo.").nullable(),
|
|
@@ -27,7 +27,7 @@ const PexelsCuratedPhotos_PhotoSchema = z.object({
|
|
|
27
27
|
photographer: z.string().describe("Name of the photographer.").nullable(),
|
|
28
28
|
photographer_id: z.number().int().describe("ID of the photographer.").nullable(),
|
|
29
29
|
photographer_url: z.string().describe("URL to the photographer's profile.").nullable()
|
|
30
|
-
});
|
|
30
|
+
}).passthrough();
|
|
31
31
|
const pexelsCuratedPhotos = action("PEXELS_CURATED_PHOTOS", {
|
|
32
32
|
slug: "pexels-curated-photos",
|
|
33
33
|
name: "Get Curated Photos",
|
|
@@ -39,7 +39,7 @@ const pexelsCuratedPhotos = action("PEXELS_CURATED_PHOTOS", {
|
|
|
39
39
|
per_page: z.number().int().describe("Number of results returned per page.").nullable(),
|
|
40
40
|
next_page: z.string().describe("URL to the next page of results, if available.").nullable().optional(),
|
|
41
41
|
total_results: z.number().int().describe("Total number of curated photos available.").nullable()
|
|
42
|
-
})
|
|
42
|
+
}).passthrough()
|
|
43
43
|
});
|
|
44
44
|
//#endregion
|
|
45
45
|
export { pexelsCuratedPhotos };
|
|
@@ -1 +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.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.object({\n tiny: z.string().describe(\"URL of the tiny image.\").nullable(),\n large: z.string().describe(\"URL of the large image.\").nullable(),\n small: z.string().describe(\"URL of the small image.\").nullable(),\n medium: z.string().describe(\"URL of the medium image.\").nullable(),\n large2x: z.string().describe(\"URL of the large2x image.\").nullable(),\n original: z.string().describe(\"URL of the original image.\").nullable(),\n portrait: z.string().describe(\"URL of the portrait image.\").nullable(),\n landscape: z.string().describe(\"URL of the landscape image.\").nullable(),\n});\nconst PexelsCuratedPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo.\").nullable(),\n alt: z.string().describe(\"Alternative text for the photo.\").nullable(),\n src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL of the photo page on Pexels.\").nullable(),\n liked: z.boolean().describe(\"Whether the user has liked the photo.\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels.\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in HEX format.\").nullable(),\n photographer: z.string().describe(\"Name of the photographer.\").nullable(),\n photographer_id: z.number().int().describe(\"ID of the photographer.\").nullable(),\n photographer_url: z.string().describe(\"URL to the photographer's profile.\").nullable(),\n});\nexport const PexelsCuratedPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\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.\").nullable(),\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.\").nullable(),\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,2BAA2B,EAAE,OAAO;CAC/C,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,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACzE,CAAC;
|
|
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.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.object({\n tiny: z.string().describe(\"URL of the tiny image.\").nullable(),\n large: z.string().describe(\"URL of the large image.\").nullable(),\n small: z.string().describe(\"URL of the small image.\").nullable(),\n medium: z.string().describe(\"URL of the medium image.\").nullable(),\n large2x: z.string().describe(\"URL of the large2x image.\").nullable(),\n original: z.string().describe(\"URL of the original image.\").nullable(),\n portrait: z.string().describe(\"URL of the portrait image.\").nullable(),\n landscape: z.string().describe(\"URL of the landscape image.\").nullable(),\n}).passthrough();\nconst PexelsCuratedPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo.\").nullable(),\n alt: z.string().describe(\"Alternative text for the photo.\").nullable(),\n src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL of the photo page on Pexels.\").nullable(),\n liked: z.boolean().describe(\"Whether the user has liked the photo.\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels.\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in HEX format.\").nullable(),\n photographer: z.string().describe(\"Name of the photographer.\").nullable(),\n photographer_id: z.number().int().describe(\"ID of the photographer.\").nullable(),\n photographer_url: z.string().describe(\"URL to the photographer's profile.\").nullable(),\n}).passthrough();\nexport const PexelsCuratedPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\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.\").nullable(),\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.\").nullable(),\n}).passthrough();\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,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,UAAU,EAAE,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gC,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACxE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AASf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACjE,QAAQ,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,gCAAgC;EAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -13,7 +13,7 @@ const PexelsFeaturedCollections_FeaturedCollectionSchema = zod.z.object({
|
|
|
13
13
|
media_count: zod.z.number().int().describe("Total number of media items in the collection").nullable(),
|
|
14
14
|
photos_count: zod.z.number().int().describe("Number of photos in the collection").nullable(),
|
|
15
15
|
videos_count: zod.z.number().int().describe("Number of videos in the collection").nullable()
|
|
16
|
-
}).describe("A single featured collection object.");
|
|
16
|
+
}).passthrough().describe("A single featured collection object.");
|
|
17
17
|
const PexelsFeaturedCollectionsOutput = zod.z.object({
|
|
18
18
|
page: zod.z.number().int().describe("Current page number").nullable(),
|
|
19
19
|
per_page: zod.z.number().int().describe("Number of results per page").nullable(),
|
|
@@ -21,7 +21,7 @@ const PexelsFeaturedCollectionsOutput = zod.z.object({
|
|
|
21
21
|
prev_page: zod.z.string().describe("URL to the previous page of results, if available").nullable().optional(),
|
|
22
22
|
collections: zod.z.array(PexelsFeaturedCollections_FeaturedCollectionSchema).describe("List of featured collections"),
|
|
23
23
|
total_results: zod.z.number().int().describe("Total number of featured collections available").nullable()
|
|
24
|
-
}).describe("Response model for featured collections, including pagination.");
|
|
24
|
+
}).passthrough().describe("Response model for featured collections, including pagination.");
|
|
25
25
|
const pexelsFeaturedCollections = require_action.action("PEXELS_FEATURED_COLLECTIONS", {
|
|
26
26
|
slug: "pexels-featured-collections",
|
|
27
27
|
name: "Featured Collections",
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Collection ID (alphanumeric string)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\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\").nullable(),\n photos_count: z.number().int().describe(\"Number of photos in the collection\").nullable(),\n videos_count: z.number().int().describe(\"Number of videos in the collection\").nullable(),\n}).describe(\"A single featured collection object.\");\nexport const PexelsFeaturedCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of results per page\").nullable(),\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\").nullable(),\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,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,sCAAsC;
|
|
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.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.object({\n id: z.string().describe(\"Collection ID (alphanumeric string)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\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\").nullable(),\n photos_count: z.number().int().describe(\"Number of photos in the collection\").nullable(),\n videos_count: z.number().int().describe(\"Number of videos in the collection\").nullable(),\n}).passthrough().describe(\"A single featured collection object.\");\nexport const PexelsFeaturedCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of results per page\").nullable(),\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\").nullable(),\n}).passthrough().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,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,8BAA8B;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -18,9 +18,9 @@ declare const PexelsFeaturedCollectionsOutput: z.ZodObject<{
|
|
|
18
18
|
media_count: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
photos_count: z.ZodNullable<z.ZodNumber>;
|
|
20
20
|
videos_count: z.ZodNullable<z.ZodNumber>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
22
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const pexelsFeaturedCollections: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
page?: number | undefined;
|
|
26
26
|
per_page?: number | undefined;
|
|
@@ -18,9 +18,9 @@ declare const PexelsFeaturedCollectionsOutput: z.ZodObject<{
|
|
|
18
18
|
media_count: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
photos_count: z.ZodNullable<z.ZodNumber>;
|
|
20
20
|
videos_count: z.ZodNullable<z.ZodNumber>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
22
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const pexelsFeaturedCollections: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
page?: number | undefined;
|
|
26
26
|
per_page?: number | undefined;
|
|
@@ -13,7 +13,7 @@ const PexelsFeaturedCollections_FeaturedCollectionSchema = z.object({
|
|
|
13
13
|
media_count: z.number().int().describe("Total number of media items in the collection").nullable(),
|
|
14
14
|
photos_count: z.number().int().describe("Number of photos in the collection").nullable(),
|
|
15
15
|
videos_count: z.number().int().describe("Number of videos in the collection").nullable()
|
|
16
|
-
}).describe("A single featured collection object.");
|
|
16
|
+
}).passthrough().describe("A single featured collection object.");
|
|
17
17
|
const pexelsFeaturedCollections = action("PEXELS_FEATURED_COLLECTIONS", {
|
|
18
18
|
slug: "pexels-featured-collections",
|
|
19
19
|
name: "Featured Collections",
|
|
@@ -26,7 +26,7 @@ const pexelsFeaturedCollections = action("PEXELS_FEATURED_COLLECTIONS", {
|
|
|
26
26
|
prev_page: z.string().describe("URL to the previous page of results, if available").nullable().optional(),
|
|
27
27
|
collections: z.array(PexelsFeaturedCollections_FeaturedCollectionSchema).describe("List of featured collections"),
|
|
28
28
|
total_results: z.number().int().describe("Total number of featured collections available").nullable()
|
|
29
|
-
}).describe("Response model for featured collections, including pagination.")
|
|
29
|
+
}).passthrough().describe("Response model for featured collections, including pagination.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { pexelsFeaturedCollections };
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Collection ID (alphanumeric string)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\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\").nullable(),\n photos_count: z.number().int().describe(\"Number of photos in the collection\").nullable(),\n videos_count: z.number().int().describe(\"Number of videos in the collection\").nullable(),\n}).describe(\"A single featured collection object.\");\nexport const PexelsFeaturedCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of results per page\").nullable(),\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\").nullable(),\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,iCAAiC,EAAE,OAAO;CACrD,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,qDAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,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,CAAC,CAAC,SAAS;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,sCAAsC;
|
|
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.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.object({\n id: z.string().describe(\"Collection ID (alphanumeric string)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\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\").nullable(),\n photos_count: z.number().int().describe(\"Number of photos in the collection\").nullable(),\n videos_count: z.number().int().describe(\"Number of videos in the collection\").nullable(),\n}).passthrough().describe(\"A single featured collection object.\");\nexport const PexelsFeaturedCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of results per page\").nullable(),\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\").nullable(),\n}).passthrough().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,iCAAiC,EAAE,OAAO;CACrD,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,qDAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,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,CAAC,CAAC,SAAS;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAUhE,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAChE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,aAAa,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,8BAA8B;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ const PexelsGetPhoto_PhotoSrcSchema = zod.z.object({
|
|
|
11
11
|
original: zod.z.string().describe("Original size photo URL").nullable(),
|
|
12
12
|
portrait: zod.z.string().describe("Portrait orientation photo URL").nullable(),
|
|
13
13
|
landscape: zod.z.string().describe("Landscape orientation photo URL").nullable()
|
|
14
|
-
}).describe("Various image size URLs for a photo.");
|
|
14
|
+
}).passthrough().describe("Various image size URLs for a photo.");
|
|
15
15
|
const PexelsGetPhotoOutput = zod.z.object({
|
|
16
16
|
id: zod.z.number().int().describe("Photo's unique identifier").nullable(),
|
|
17
17
|
alt: zod.z.string().describe("Alternate text description of the photo").nullable(),
|
|
@@ -24,7 +24,7 @@ const PexelsGetPhotoOutput = zod.z.object({
|
|
|
24
24
|
photographer: zod.z.string().describe("Name of the photographer").nullable(),
|
|
25
25
|
photographer_id: zod.z.number().int().describe("Photographer's unique identifier").nullable(),
|
|
26
26
|
photographer_url: zod.z.string().describe("URL of the photographer's profile").nullable()
|
|
27
|
-
}).describe("Detailed information for a single photo.");
|
|
27
|
+
}).passthrough().describe("Detailed information for a single photo.");
|
|
28
28
|
const pexelsGetPhoto = require_action.action("PEXELS_GET_PHOTO", {
|
|
29
29
|
slug: "pexels-get-photo",
|
|
30
30
|
name: "Get Photo",
|
|
@@ -1 +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.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.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"Double-resolution large size photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).describe(\"Various image size URLs for a photo.\");\nexport const PexelsGetPhotoOutput = z.object({\n id: z.number().int().describe(\"Photo's unique identifier\").nullable(),\n alt: z.string().describe(\"Alternate text description of the photo\").nullable(),\n src: PexelsGetPhoto_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"Pexels page URL for the photo\").nullable(),\n liked: z.boolean().describe(\"Whether the requesting user has liked this photo\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in hex code\").nullable(),\n photographer: z.string().describe(\"Name of the photographer\").nullable(),\n photographer_id: z.number().int().describe(\"Photographer's unique identifier\").nullable(),\n photographer_url: z.string().describe(\"URL of the photographer's profile\").nullable(),\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,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,sCAAsC;
|
|
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.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.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"Double-resolution large size photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).passthrough().describe(\"Various image size URLs for a photo.\");\nexport const PexelsGetPhotoOutput = z.object({\n id: z.number().int().describe(\"Photo's unique identifier\").nullable(),\n alt: z.string().describe(\"Alternate text description of the photo\").nullable(),\n src: PexelsGetPhoto_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"Pexels page URL for the photo\").nullable(),\n liked: z.boolean().describe(\"Whether the requesting user has liked this photo\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in hex code\").nullable(),\n photographer: z.string().describe(\"Name of the photographer\").nullable(),\n photographer_id: z.number().int().describe(\"Photographer's unique identifier\").nullable(),\n photographer_url: z.string().describe(\"URL of the photographer's profile\").nullable(),\n}).passthrough().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,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,O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