@keystrokehq/pexels 0.1.0 → 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.
Files changed (81) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/collection-media.cjs +35 -35
  4. package/dist/actions/collection-media.cjs.map +1 -1
  5. package/dist/actions/collection-media.d.cts +62 -3
  6. package/dist/actions/collection-media.d.cts.map +1 -1
  7. package/dist/actions/collection-media.d.mts +62 -3
  8. package/dist/actions/collection-media.d.mts.map +1 -1
  9. package/dist/actions/collection-media.mjs +35 -35
  10. package/dist/actions/collection-media.mjs.map +1 -1
  11. package/dist/actions/curated-photos.cjs +24 -24
  12. package/dist/actions/curated-photos.cjs.map +1 -1
  13. package/dist/actions/curated-photos.d.cts +36 -3
  14. package/dist/actions/curated-photos.d.cts.map +1 -1
  15. package/dist/actions/curated-photos.d.mts +36 -3
  16. package/dist/actions/curated-photos.d.mts.map +1 -1
  17. package/dist/actions/curated-photos.mjs +24 -24
  18. package/dist/actions/curated-photos.mjs.map +1 -1
  19. package/dist/actions/featured-collections.cjs +11 -11
  20. package/dist/actions/featured-collections.cjs.map +1 -1
  21. package/dist/actions/featured-collections.d.cts +24 -3
  22. package/dist/actions/featured-collections.d.cts.map +1 -1
  23. package/dist/actions/featured-collections.d.mts +24 -3
  24. package/dist/actions/featured-collections.d.mts.map +1 -1
  25. package/dist/actions/featured-collections.mjs +11 -11
  26. package/dist/actions/featured-collections.mjs.map +1 -1
  27. package/dist/actions/get-photo.cjs +20 -20
  28. package/dist/actions/get-photo.cjs.map +1 -1
  29. package/dist/actions/get-photo.d.cts +28 -3
  30. package/dist/actions/get-photo.d.cts.map +1 -1
  31. package/dist/actions/get-photo.d.mts +28 -3
  32. package/dist/actions/get-photo.d.mts.map +1 -1
  33. package/dist/actions/get-photo.mjs +20 -20
  34. package/dist/actions/get-photo.mjs.map +1 -1
  35. package/dist/actions/get-video-by-id.cjs +21 -21
  36. package/dist/actions/get-video-by-id.cjs.map +1 -1
  37. package/dist/actions/get-video-by-id.d.cts +34 -3
  38. package/dist/actions/get-video-by-id.d.cts.map +1 -1
  39. package/dist/actions/get-video-by-id.d.mts +34 -3
  40. package/dist/actions/get-video-by-id.d.mts.map +1 -1
  41. package/dist/actions/get-video-by-id.mjs +21 -21
  42. package/dist/actions/get-video-by-id.mjs.map +1 -1
  43. package/dist/actions/my-collections.cjs +11 -11
  44. package/dist/actions/my-collections.cjs.map +1 -1
  45. package/dist/actions/my-collections.d.cts +22 -3
  46. package/dist/actions/my-collections.d.cts.map +1 -1
  47. package/dist/actions/my-collections.d.mts +22 -3
  48. package/dist/actions/my-collections.d.mts.map +1 -1
  49. package/dist/actions/my-collections.mjs +11 -11
  50. package/dist/actions/my-collections.mjs.map +1 -1
  51. package/dist/actions/popular-videos.cjs +28 -28
  52. package/dist/actions/popular-videos.cjs.map +1 -1
  53. package/dist/actions/popular-videos.d.cts +44 -3
  54. package/dist/actions/popular-videos.d.cts.map +1 -1
  55. package/dist/actions/popular-videos.d.mts +44 -3
  56. package/dist/actions/popular-videos.d.mts.map +1 -1
  57. package/dist/actions/popular-videos.mjs +28 -28
  58. package/dist/actions/popular-videos.mjs.map +1 -1
  59. package/dist/actions/search-photos.cjs +23 -23
  60. package/dist/actions/search-photos.cjs.map +1 -1
  61. package/dist/actions/search-photos.d.cts +55 -3
  62. package/dist/actions/search-photos.d.cts.map +1 -1
  63. package/dist/actions/search-photos.d.mts +55 -3
  64. package/dist/actions/search-photos.d.mts.map +1 -1
  65. package/dist/actions/search-photos.mjs +23 -23
  66. package/dist/actions/search-photos.mjs.map +1 -1
  67. package/dist/actions/search-videos.cjs +26 -26
  68. package/dist/actions/search-videos.cjs.map +1 -1
  69. package/dist/actions/search-videos.d.cts +58 -3
  70. package/dist/actions/search-videos.d.cts.map +1 -1
  71. package/dist/actions/search-videos.d.mts +58 -3
  72. package/dist/actions/search-videos.d.mts.map +1 -1
  73. package/dist/actions/search-videos.mjs +26 -26
  74. package/dist/actions/search-videos.mjs.map +1 -1
  75. package/dist/catalog.cjs +7 -1
  76. package/dist/catalog.cjs.map +1 -1
  77. package/dist/catalog.d.cts +8 -0
  78. package/dist/catalog.d.mts +8 -0
  79. package/dist/catalog.mjs +7 -1
  80. package/dist/catalog.mjs.map +1 -1
  81. package/package.json +2 -2
@@ -1 +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"}
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\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 as z.ZodTypeAny,\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"}
@@ -1 +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"}
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\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 as z.ZodTypeAny,\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"}
@@ -7,46 +7,46 @@ const PexelsCollectionMediaInput = zod.z.object({
7
7
  per_page: zod.z.number().int().default(15).describe("Number of results per page (1-80).").optional()
8
8
  }).describe("Request parameters to fetch media items from a Pexels collection.");
9
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
- });
10
+ tiny: zod.z.string().describe("Tiny size photo URL").nullable(),
11
+ large: zod.z.string().describe("Large size photo URL").nullable(),
12
+ small: zod.z.string().describe("Small size photo URL").nullable(),
13
+ medium: zod.z.string().describe("Medium size photo URL").nullable(),
14
+ large2x: zod.z.string().describe("2x large photo URL").nullable(),
15
+ original: zod.z.string().describe("Original size photo URL").nullable(),
16
+ portrait: zod.z.string().describe("Portrait orientation photo URL").nullable(),
17
+ landscape: zod.z.string().describe("Landscape orientation photo URL").nullable()
18
+ }).passthrough();
19
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
- });
20
+ id: zod.z.number().int().describe("User ID").nullable(),
21
+ url: zod.z.string().describe("User profile URL").nullable(),
22
+ name: zod.z.string().describe("User name").nullable()
23
+ }).passthrough();
24
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"),
25
+ id: zod.z.number().int().describe("Unique identifier for the video file").nullable(),
26
+ fps: zod.z.number().describe("Frames per second").nullable(),
27
+ link: zod.z.string().describe("URL to download the video file").nullable(),
28
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
- });
29
+ width: zod.z.number().int().describe("Video width in pixels").nullable(),
30
+ height: zod.z.number().int().describe("Video height in pixels").nullable(),
31
+ quality: zod.z.string().describe("Quality level (sd, hd, uhd)").nullable(),
32
+ file_type: zod.z.string().describe("MIME type of the video file").nullable()
33
+ }).passthrough();
34
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
- });
35
+ id: zod.z.number().int().describe("Unique identifier for the preview picture").nullable(),
36
+ nr: zod.z.number().int().describe("Preview picture number").nullable(),
37
+ picture: zod.z.string().describe("URL to the preview picture").nullable()
38
+ }).passthrough();
39
39
  const PexelsCollectionMedia_MediaItemSchema = zod.z.object({
40
- id: zod.z.number().int().describe("Unique identifier for the media"),
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(),
42
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'"),
43
+ url: zod.z.string().describe("URL to the media's Pexels page").nullable(),
44
+ type: zod.z.string().describe("Media type: 'Photo' or 'Video'").nullable(),
45
45
  user: PexelsCollectionMedia_VideoUserSchema.nullable().optional(),
46
46
  image: zod.z.string().describe("Video thumbnail URL (videos only)").nullable().optional(),
47
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"),
48
+ width: zod.z.number().int().describe("Media width in pixels").nullable(),
49
+ height: zod.z.number().int().describe("Media height in pixels").nullable(),
50
50
  duration: zod.z.number().int().describe("Video duration in seconds (videos only)").nullable().optional(),
51
51
  avg_color: zod.z.string().describe("Average color of the media (hex code, may be null for videos)").nullable().optional(),
52
52
  video_files: zod.z.array(PexelsCollectionMedia_VideoFileSchema).describe("Available video files (videos only)").nullable().optional(),
@@ -54,15 +54,15 @@ 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
- page: zod.z.number().int().describe("Current page number returned"),
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"),
61
- per_page: zod.z.number().int().describe("Number of results per page returned"),
61
+ per_page: zod.z.number().int().describe("Number of results per page returned").nullable(),
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
- total_results: zod.z.number().int().describe("Total number of media items in the collection")
65
- });
64
+ total_results: zod.z.number().int().describe("Total number of media items in the collection").nullable()
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.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,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,SAASA,IAAAA,EAAE,OAAO,CA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AE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAC7G,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAC9D,OAAOA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,8DAA8D;CAC7H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;AAC1F,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,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: PexelsCollectionMediaIn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@@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PexelsCollectionMediaInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ }, z.core.$strip>;
9
+ declare const PexelsCollectionMediaOutput: z.ZodObject<{
10
+ page: z.ZodNullable<z.ZodNumber>;
11
+ media: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodNumber>;
13
+ alt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ src: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ tiny: z.ZodNullable<z.ZodString>;
16
+ large: z.ZodNullable<z.ZodString>;
17
+ small: z.ZodNullable<z.ZodString>;
18
+ medium: z.ZodNullable<z.ZodString>;
19
+ large2x: z.ZodNullable<z.ZodString>;
20
+ original: z.ZodNullable<z.ZodString>;
21
+ portrait: z.ZodNullable<z.ZodString>;
22
+ landscape: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$loose>>>;
24
+ url: z.ZodNullable<z.ZodString>;
25
+ type: z.ZodNullable<z.ZodString>;
26
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ id: z.ZodNullable<z.ZodNumber>;
28
+ url: z.ZodNullable<z.ZodString>;
29
+ name: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$loose>>>;
31
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ liked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33
+ width: z.ZodNullable<z.ZodNumber>;
34
+ height: z.ZodNullable<z.ZodNumber>;
35
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ avg_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ video_files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
38
+ id: z.ZodNullable<z.ZodNumber>;
39
+ fps: z.ZodNullable<z.ZodNumber>;
40
+ link: z.ZodNullable<z.ZodString>;
41
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
+ width: z.ZodNullable<z.ZodNumber>;
43
+ height: z.ZodNullable<z.ZodNumber>;
44
+ quality: z.ZodNullable<z.ZodString>;
45
+ file_type: z.ZodNullable<z.ZodString>;
46
+ }, z.core.$loose>>>>;
47
+ photographer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ video_pictures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
49
+ id: z.ZodNullable<z.ZodNumber>;
50
+ nr: z.ZodNullable<z.ZodNumber>;
51
+ picture: z.ZodNullable<z.ZodString>;
52
+ }, z.core.$loose>>>>;
53
+ photographer_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
+ photographer_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ }, z.core.$loose>>;
56
+ per_page: z.ZodNullable<z.ZodNumber>;
57
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ total_results: z.ZodNullable<z.ZodNumber>;
60
+ }, z.core.$loose>;
61
+ declare const pexelsCollectionMedia: import("@keystrokehq/action").WorkflowActionDefinition<{
62
+ id: string;
63
+ page?: number | undefined;
64
+ per_page?: number | undefined;
65
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
66
  //#endregion
8
67
  export { pexelsCollectionMedia };
9
68
  //# sourceMappingURL=collection-media.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"collection-media.d.cts","names":[],"sources":["../../src/actions/collection-media.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAsD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,68 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PexelsCollectionMediaInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ }, z.core.$strip>;
9
+ declare const PexelsCollectionMediaOutput: z.ZodObject<{
10
+ page: z.ZodNullable<z.ZodNumber>;
11
+ media: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodNumber>;
13
+ alt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ src: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ tiny: z.ZodNullable<z.ZodString>;
16
+ large: z.ZodNullable<z.ZodString>;
17
+ small: z.ZodNullable<z.ZodString>;
18
+ medium: z.ZodNullable<z.ZodString>;
19
+ large2x: z.ZodNullable<z.ZodString>;
20
+ original: z.ZodNullable<z.ZodString>;
21
+ portrait: z.ZodNullable<z.ZodString>;
22
+ landscape: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$loose>>>;
24
+ url: z.ZodNullable<z.ZodString>;
25
+ type: z.ZodNullable<z.ZodString>;
26
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ id: z.ZodNullable<z.ZodNumber>;
28
+ url: z.ZodNullable<z.ZodString>;
29
+ name: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$loose>>>;
31
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ liked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33
+ width: z.ZodNullable<z.ZodNumber>;
34
+ height: z.ZodNullable<z.ZodNumber>;
35
+ duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ avg_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ video_files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
38
+ id: z.ZodNullable<z.ZodNumber>;
39
+ fps: z.ZodNullable<z.ZodNumber>;
40
+ link: z.ZodNullable<z.ZodString>;
41
+ size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
+ width: z.ZodNullable<z.ZodNumber>;
43
+ height: z.ZodNullable<z.ZodNumber>;
44
+ quality: z.ZodNullable<z.ZodString>;
45
+ file_type: z.ZodNullable<z.ZodString>;
46
+ }, z.core.$loose>>>>;
47
+ photographer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ video_pictures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
49
+ id: z.ZodNullable<z.ZodNumber>;
50
+ nr: z.ZodNullable<z.ZodNumber>;
51
+ picture: z.ZodNullable<z.ZodString>;
52
+ }, z.core.$loose>>>>;
53
+ photographer_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
+ photographer_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ }, z.core.$loose>>;
56
+ per_page: z.ZodNullable<z.ZodNumber>;
57
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ total_results: z.ZodNullable<z.ZodNumber>;
60
+ }, z.core.$loose>;
61
+ declare const pexelsCollectionMedia: import("@keystrokehq/action").WorkflowActionDefinition<{
62
+ id: string;
63
+ page?: number | undefined;
64
+ per_page?: number | undefined;
65
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
66
  //#endregion
8
67
  export { pexelsCollectionMedia };
9
68
  //# sourceMappingURL=collection-media.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"collection-media.d.mts","names":[],"sources":["../../src/actions/collection-media.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAsD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA"}
@@ -7,46 +7,46 @@ const PexelsCollectionMediaInput = z.object({
7
7
  per_page: z.number().int().default(15).describe("Number of results per page (1-80).").optional()
8
8
  }).describe("Request parameters to fetch media items from a Pexels collection.");
9
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
- });
10
+ tiny: z.string().describe("Tiny size photo URL").nullable(),
11
+ large: z.string().describe("Large size photo URL").nullable(),
12
+ small: z.string().describe("Small size photo URL").nullable(),
13
+ medium: z.string().describe("Medium size photo URL").nullable(),
14
+ large2x: z.string().describe("2x large photo URL").nullable(),
15
+ original: z.string().describe("Original size photo URL").nullable(),
16
+ portrait: z.string().describe("Portrait orientation photo URL").nullable(),
17
+ landscape: z.string().describe("Landscape orientation photo URL").nullable()
18
+ }).passthrough();
19
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
- });
20
+ id: z.number().int().describe("User ID").nullable(),
21
+ url: z.string().describe("User profile URL").nullable(),
22
+ name: z.string().describe("User name").nullable()
23
+ }).passthrough();
24
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"),
25
+ id: z.number().int().describe("Unique identifier for the video file").nullable(),
26
+ fps: z.number().describe("Frames per second").nullable(),
27
+ link: z.string().describe("URL to download the video file").nullable(),
28
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
- });
29
+ width: z.number().int().describe("Video width in pixels").nullable(),
30
+ height: z.number().int().describe("Video height in pixels").nullable(),
31
+ quality: z.string().describe("Quality level (sd, hd, uhd)").nullable(),
32
+ file_type: z.string().describe("MIME type of the video file").nullable()
33
+ }).passthrough();
34
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
- });
35
+ id: z.number().int().describe("Unique identifier for the preview picture").nullable(),
36
+ nr: z.number().int().describe("Preview picture number").nullable(),
37
+ picture: z.string().describe("URL to the preview picture").nullable()
38
+ }).passthrough();
39
39
  const PexelsCollectionMedia_MediaItemSchema = z.object({
40
- id: z.number().int().describe("Unique identifier for the media"),
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(),
42
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'"),
43
+ url: z.string().describe("URL to the media's Pexels page").nullable(),
44
+ type: z.string().describe("Media type: 'Photo' or 'Video'").nullable(),
45
45
  user: PexelsCollectionMedia_VideoUserSchema.nullable().optional(),
46
46
  image: z.string().describe("Video thumbnail URL (videos only)").nullable().optional(),
47
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"),
48
+ width: z.number().int().describe("Media width in pixels").nullable(),
49
+ height: z.number().int().describe("Media height in pixels").nullable(),
50
50
  duration: z.number().int().describe("Video duration in seconds (videos only)").nullable().optional(),
51
51
  avg_color: z.string().describe("Average color of the media (hex code, may be null for videos)").nullable().optional(),
52
52
  video_files: z.array(PexelsCollectionMedia_VideoFileSchema).describe("Available video files (videos only)").nullable().optional(),
@@ -54,20 +54,20 @@ 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",
61
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
62
  input: PexelsCollectionMediaInput,
63
63
  output: z.object({
64
- page: z.number().int().describe("Current page number returned"),
64
+ page: z.number().int().describe("Current page number returned").nullable(),
65
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"),
66
+ per_page: z.number().int().describe("Number of results per page returned").nullable(),
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
- total_results: z.number().int().describe("Total number of media items in the collection")
70
- })
69
+ total_results: z.number().int().describe("Total number of media items in the collection").nullable()
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.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,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CA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,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"}
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,CA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AU3H,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACzE,OAAO,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,8DAA8D;EAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACpF,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,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -6,35 +6,35 @@ const PexelsCuratedPhotosInput = zod.z.object({
6
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
7
  }).describe("Request parameters for fetching curated photos from Pexels.");
8
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
- });
9
+ tiny: zod.z.string().describe("URL of the tiny image.").nullable(),
10
+ large: zod.z.string().describe("URL of the large image.").nullable(),
11
+ small: zod.z.string().describe("URL of the small image.").nullable(),
12
+ medium: zod.z.string().describe("URL of the medium image.").nullable(),
13
+ large2x: zod.z.string().describe("URL of the large2x image.").nullable(),
14
+ original: zod.z.string().describe("URL of the original image.").nullable(),
15
+ portrait: zod.z.string().describe("URL of the portrait image.").nullable(),
16
+ landscape: zod.z.string().describe("URL of the landscape image.").nullable()
17
+ }).passthrough();
18
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."),
19
+ id: zod.z.number().int().describe("Unique identifier for the photo.").nullable(),
20
+ alt: zod.z.string().describe("Alternative text for the photo.").nullable(),
21
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
- });
22
+ url: zod.z.string().describe("URL of the photo page on Pexels.").nullable(),
23
+ liked: zod.z.boolean().describe("Whether the user has liked the photo.").nullable(),
24
+ width: zod.z.number().int().describe("Width of the photo in pixels.").nullable(),
25
+ height: zod.z.number().int().describe("Height of the photo in pixels.").nullable(),
26
+ avg_color: zod.z.string().describe("Average color of the photo in HEX format.").nullable(),
27
+ photographer: zod.z.string().describe("Name of the photographer.").nullable(),
28
+ photographer_id: zod.z.number().int().describe("ID of the photographer.").nullable(),
29
+ photographer_url: zod.z.string().describe("URL to the photographer's profile.").nullable()
30
+ }).passthrough();
31
31
  const PexelsCuratedPhotosOutput = zod.z.object({
32
- page: zod.z.number().int().describe("Current page number."),
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
- per_page: zod.z.number().int().describe("Number of results returned per page."),
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
- total_results: zod.z.number().int().describe("Total number of curated photos available.")
37
- });
36
+ total_results: zod.z.number().int().describe("Total number of curated photos available.").nullable()
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.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,wBAAwB;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAA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,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"}
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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