@keystrokehq/pexels 0.1.4 → 0.1.6

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 (85) 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 +1 -0
  4. package/dist/actions/collection-media.cjs.map +1 -1
  5. package/dist/actions/collection-media.d.cts +3 -5
  6. package/dist/actions/collection-media.d.cts.map +1 -1
  7. package/dist/actions/collection-media.d.mts +3 -5
  8. package/dist/actions/collection-media.d.mts.map +1 -1
  9. package/dist/actions/collection-media.mjs +1 -0
  10. package/dist/actions/collection-media.mjs.map +1 -1
  11. package/dist/actions/curated-photos.cjs +1 -0
  12. package/dist/actions/curated-photos.cjs.map +1 -1
  13. package/dist/actions/curated-photos.d.cts +3 -4
  14. package/dist/actions/curated-photos.d.cts.map +1 -1
  15. package/dist/actions/curated-photos.d.mts +3 -4
  16. package/dist/actions/curated-photos.d.mts.map +1 -1
  17. package/dist/actions/curated-photos.mjs +1 -0
  18. package/dist/actions/curated-photos.mjs.map +1 -1
  19. package/dist/actions/featured-collections.cjs +1 -0
  20. package/dist/actions/featured-collections.cjs.map +1 -1
  21. package/dist/actions/featured-collections.d.cts +3 -4
  22. package/dist/actions/featured-collections.d.cts.map +1 -1
  23. package/dist/actions/featured-collections.d.mts +3 -4
  24. package/dist/actions/featured-collections.d.mts.map +1 -1
  25. package/dist/actions/featured-collections.mjs +1 -0
  26. package/dist/actions/featured-collections.mjs.map +1 -1
  27. package/dist/actions/get-photo.cjs +1 -0
  28. package/dist/actions/get-photo.cjs.map +1 -1
  29. package/dist/actions/get-photo.d.cts +3 -3
  30. package/dist/actions/get-photo.d.cts.map +1 -1
  31. package/dist/actions/get-photo.d.mts +3 -3
  32. package/dist/actions/get-photo.d.mts.map +1 -1
  33. package/dist/actions/get-photo.mjs +1 -0
  34. package/dist/actions/get-photo.mjs.map +1 -1
  35. package/dist/actions/get-video-by-id.cjs +1 -0
  36. package/dist/actions/get-video-by-id.cjs.map +1 -1
  37. package/dist/actions/get-video-by-id.d.cts +3 -3
  38. package/dist/actions/get-video-by-id.d.cts.map +1 -1
  39. package/dist/actions/get-video-by-id.d.mts +3 -3
  40. package/dist/actions/get-video-by-id.d.mts.map +1 -1
  41. package/dist/actions/get-video-by-id.mjs +1 -0
  42. package/dist/actions/get-video-by-id.mjs.map +1 -1
  43. package/dist/actions/my-collections.cjs +1 -0
  44. package/dist/actions/my-collections.cjs.map +1 -1
  45. package/dist/actions/my-collections.d.cts +3 -4
  46. package/dist/actions/my-collections.d.cts.map +1 -1
  47. package/dist/actions/my-collections.d.mts +3 -4
  48. package/dist/actions/my-collections.d.mts.map +1 -1
  49. package/dist/actions/my-collections.mjs +1 -0
  50. package/dist/actions/my-collections.mjs.map +1 -1
  51. package/dist/actions/popular-videos.cjs +1 -0
  52. package/dist/actions/popular-videos.cjs.map +1 -1
  53. package/dist/actions/popular-videos.d.cts +3 -4
  54. package/dist/actions/popular-videos.d.cts.map +1 -1
  55. package/dist/actions/popular-videos.d.mts +3 -4
  56. package/dist/actions/popular-videos.d.mts.map +1 -1
  57. package/dist/actions/popular-videos.mjs +1 -0
  58. package/dist/actions/popular-videos.mjs.map +1 -1
  59. package/dist/actions/search-photos.cjs +1 -0
  60. package/dist/actions/search-photos.cjs.map +1 -1
  61. package/dist/actions/search-photos.d.cts +5 -11
  62. package/dist/actions/search-photos.d.cts.map +1 -1
  63. package/dist/actions/search-photos.d.mts +5 -11
  64. package/dist/actions/search-photos.d.mts.map +1 -1
  65. package/dist/actions/search-photos.mjs +1 -0
  66. package/dist/actions/search-photos.mjs.map +1 -1
  67. package/dist/actions/search-videos.cjs +1 -0
  68. package/dist/actions/search-videos.cjs.map +1 -1
  69. package/dist/actions/search-videos.d.cts +5 -9
  70. package/dist/actions/search-videos.d.cts.map +1 -1
  71. package/dist/actions/search-videos.d.mts +5 -9
  72. package/dist/actions/search-videos.d.mts.map +1 -1
  73. package/dist/actions/search-videos.mjs +1 -0
  74. package/dist/actions/search-videos.mjs.map +1 -1
  75. package/dist/app.cjs +5 -2
  76. package/dist/app.cjs.map +1 -1
  77. package/dist/app.d.cts +7 -1
  78. package/dist/app.d.cts.map +1 -1
  79. package/dist/app.d.mts +7 -1
  80. package/dist/app.d.mts.map +1 -1
  81. package/dist/app.mjs +3 -2
  82. package/dist/app.mjs.map +1 -1
  83. package/dist/index.d.cts +1 -1
  84. package/dist/index.d.mts +1 -1
  85. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { pexels } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-video-by-id.d.ts
@@ -32,9 +34,7 @@ declare const PexelsGetVideoByIdOutput: z.ZodObject<{
32
34
  picture: z.ZodNullable<z.ZodString>;
33
35
  }, z.core.$loose>>;
34
36
  }, z.core.$loose>;
35
- declare const pexelsGetVideoById: import("@keystrokehq/action").WorkflowActionDefinition<{
36
- id: number;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
+ declare const pexelsGetVideoById: AppAction<typeof PexelsGetVideoByIdInput, typeof PexelsGetVideoByIdOutput, typeof pexels.credential>;
38
38
  //#endregion
39
39
  export { pexelsGetVideoById };
40
40
  //# sourceMappingURL=get-video-by-id.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-video-by-id.d.mts","names":[],"sources":["../../src/actions/get-video-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAaxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-video-by-id.d.mts","names":[],"sources":["../../src/actions/get-video-by-id.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAaxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-video-by-id.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-video-by-id.mjs","names":[],"sources":["../../src/actions/get-video-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsGetVideoByIdInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the video to retrieve\"),\n}).describe(\"Request schema for retrieving a specific video by its ID.\");\nconst PexelsGetVideoById_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the videographer\").nullable(),\n url: z.string().describe(\"URL to the videographer's Pexels profile\").nullable(),\n name: z.string().describe(\"Name of the videographer\").nullable(),\n}).passthrough().describe(\"Information about the videographer.\");\nconst PexelsGetVideoById_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the video file\").nullable(),\n fps: z.number().describe(\"Frames per second of the video file\").nullable().optional(),\n link: z.string().describe(\"Direct download URL for this video file version\").nullable(),\n width: z.number().int().describe(\"Width of this video file version in pixels\").nullable(),\n height: z.number().int().describe(\"Height of this video file version in pixels\").nullable(),\n quality: z.string().describe(\"Quality level (e.g., 'sd', 'hd', 'uhd')\").nullable().optional(),\n file_type: z.string().describe(\"MIME type of the video file (e.g., 'video/mp4')\").nullable(),\n}).passthrough().describe(\"A video file variant with specific quality and dimensions.\");\nconst PexelsGetVideoById_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the preview picture\").nullable(),\n nr: z.number().int().describe(\"Picture number/index\").nullable(),\n picture: z.string().describe(\"URL to the preview image\").nullable(),\n}).passthrough().describe(\"A preview image for the video.\");\nexport const PexelsGetVideoByIdOutput = z.object({\n id: z.number().int().describe(\"Unique identifier for the video\").nullable(),\n url: z.string().describe(\"Pexels.com page URL for this video\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags associated with the video\"),\n user: PexelsGetVideoById_UserSchema.nullable(),\n image: z.string().describe(\"URL to a preview screenshot of the video\").nullable(),\n width: z.number().int().describe(\"Original video width in pixels\").nullable(),\n height: z.number().int().describe(\"Original video height in pixels\").nullable(),\n duration: z.number().int().describe(\"Duration of the video in seconds\").nullable(),\n video_files: z.array(PexelsGetVideoById_VideoFileSchema).describe(\"Array of different sized/quality versions of the video\"),\n video_pictures: z.array(PexelsGetVideoById_VideoPictureSchema).describe(\"Array of preview images for the video\"),\n}).passthrough().describe(\"Detailed information for a single video from Pexels.\");\n\nexport const pexelsGetVideoById = action(\"PEXELS_GET_VIDEO_BY_ID\", {\n slug: \"pexels-get-video-by-id\",\n name: \"Get Video by ID\",\n description: \"Tool to retrieve detailed information about a specific video from Pexels. Use when you have a valid video ID to fetch metadata including dimensions, duration, videographer details, and available video file versions.\",\n input: PexelsGetVideoByIdInput,\n output: PexelsGetVideoByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,qCAAqC,EAAE,OAAO;CAClD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AM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC;EAC3E,MAAM,8BAA8B,SAAS;EAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,wDAAwD;EAC1H,gBAAgB,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uCAAuC;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-video-by-id.mjs","names":[],"sources":["../../src/actions/get-video-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pexels } from \"../app\";\n\nexport const PexelsGetVideoByIdInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the video to retrieve\"),\n}).describe(\"Request schema for retrieving a specific video by its ID.\");\nconst PexelsGetVideoById_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the videographer\").nullable(),\n url: z.string().describe(\"URL to the videographer's Pexels profile\").nullable(),\n name: z.string().describe(\"Name of the videographer\").nullable(),\n}).passthrough().describe(\"Information about the videographer.\");\nconst PexelsGetVideoById_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the video file\").nullable(),\n fps: z.number().describe(\"Frames per second of the video file\").nullable().optional(),\n link: z.string().describe(\"Direct download URL for this video file version\").nullable(),\n width: z.number().int().describe(\"Width of this video file version in pixels\").nullable(),\n height: z.number().int().describe(\"Height of this video file version in pixels\").nullable(),\n quality: z.string().describe(\"Quality level (e.g., 'sd', 'hd', 'uhd')\").nullable().optional(),\n file_type: z.string().describe(\"MIME type of the video file (e.g., 'video/mp4')\").nullable(),\n}).passthrough().describe(\"A video file variant with specific quality and dimensions.\");\nconst PexelsGetVideoById_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the preview picture\").nullable(),\n nr: z.number().int().describe(\"Picture number/index\").nullable(),\n picture: z.string().describe(\"URL to the preview image\").nullable(),\n}).passthrough().describe(\"A preview image for the video.\");\nexport const PexelsGetVideoByIdOutput = z.object({\n id: z.number().int().describe(\"Unique identifier for the video\").nullable(),\n url: z.string().describe(\"Pexels.com page URL for this video\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags associated with the video\"),\n user: PexelsGetVideoById_UserSchema.nullable(),\n image: z.string().describe(\"URL to a preview screenshot of the video\").nullable(),\n width: z.number().int().describe(\"Original video width in pixels\").nullable(),\n height: z.number().int().describe(\"Original video height in pixels\").nullable(),\n duration: z.number().int().describe(\"Duration of the video in seconds\").nullable(),\n video_files: z.array(PexelsGetVideoById_VideoFileSchema).describe(\"Array of different sized/quality versions of the video\"),\n video_pictures: z.array(PexelsGetVideoById_VideoPictureSchema).describe(\"Array of preview images for the video\"),\n}).passthrough().describe(\"Detailed information for a single video from Pexels.\");\n\nexport const pexelsGetVideoById: AppAction<\n typeof PexelsGetVideoByIdInput,\n typeof PexelsGetVideoByIdOutput,\n typeof pexels.credential\n> = action(\"PEXELS_GET_VIDEO_BY_ID\", {\n slug: \"pexels-get-video-by-id\",\n name: \"Get Video by ID\",\n description: \"Tool to retrieve detailed information about a specific video from Pexels. Use when you have a valid video ID to fetch metadata including dimensions, duration, videographer details, and available video file versions.\",\n input: PexelsGetVideoByIdInput,\n output: PexelsGetVideoByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OA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AC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAc1D,MAAa,qBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAtBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC;EAC3E,MAAM,8BAA8B,SAAS;EAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,wDAAwD;EAC1H,gBAAgB,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uCAAuC;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/my-collections.ts
@@ -1 +1 @@
1
- {"version":3,"file":"my-collections.cjs","names":["z","action"],"sources":["../../src/actions/my-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsMyCollectionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve, must be >= 1\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of collections per page, between 1 and 80\").optional(),\n}).describe(\"Request model for retrieving user collections with pagination.\");\nconst PexelsMyCollections_CollectionSchema = z.object({\n id: z.number().int().describe(\"Collection ID\").nullable(),\n title: z.string().describe(\"Collection title\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\n description: z.string().describe(\"Collection description, if provided\").nullable().optional(),\n media_count: z.number().int().describe(\"Total 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(\"Represents a Pexels collection.\");\nexport const PexelsMyCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\n per_page: z.number().int().describe(\"Number of collections per page returned\").nullable(),\n collections: z.array(PexelsMyCollections_CollectionSchema).describe(\"List of user collections\"),\n total_results: z.number().int().describe(\"Total number of collections\").nullable(),\n}).passthrough().describe(\"Response model for user collections listing.\");\n\nexport const pexelsMyCollections = action(\"PEXELS_MY_COLLECTIONS\", {\n slug: \"pexels-my-collections\",\n name: \"Get My Collections\",\n description: \"Tool to get all of the user's collections on Pexels. Use when you need to list a user's collections with pagination support.\",\n input: PexelsMyCollectionsInput,\n output: PexelsMyCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC/G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BC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"my-collections.cjs","names":["z","action"],"sources":["../../src/actions/my-collections.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pexels } from \"../app\";\n\nexport const PexelsMyCollectionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve, must be >= 1\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of collections per page, between 1 and 80\").optional(),\n}).describe(\"Request model for retrieving user collections with pagination.\");\nconst PexelsMyCollections_CollectionSchema = z.object({\n id: z.number().int().describe(\"Collection ID\").nullable(),\n title: z.string().describe(\"Collection title\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\n description: z.string().describe(\"Collection description, if provided\").nullable().optional(),\n media_count: z.number().int().describe(\"Total 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(\"Represents a Pexels collection.\");\nexport const PexelsMyCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\n per_page: z.number().int().describe(\"Number of collections per page returned\").nullable(),\n collections: z.array(PexelsMyCollections_CollectionSchema).describe(\"List of user collections\"),\n total_results: z.number().int().describe(\"Total number of collections\").nullable(),\n}).passthrough().describe(\"Response model for user collections listing.\");\n\nexport const pexelsMyCollections: AppAction<\n typeof PexelsMyCollectionsInput,\n typeof PexelsMyCollectionsOutput,\n typeof pexels.credential\n> = action(\"PEXELS_MY_COLLECTIONS\", {\n slug: \"pexels-my-collections\",\n name: \"Get My Collections\",\n description: \"Tool to get all of the user's collections on Pexels. Use when you need to list a user's collections with pagination support.\",\n input: PexelsMyCollectionsInput,\n output: PexelsMyCollectionsOutput,\n});\n"],"mappings":";;;;AAM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AI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,0BAA0B;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pexels } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/my-collections.d.ts
@@ -19,10 +21,7 @@ declare const PexelsMyCollectionsOutput: z.ZodObject<{
19
21
  }, z.core.$loose>>;
20
22
  total_results: z.ZodNullable<z.ZodNumber>;
21
23
  }, z.core.$loose>;
22
- declare const pexelsMyCollections: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- page?: number | undefined;
24
- per_page?: number | undefined;
25
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ declare const pexelsMyCollections: AppAction<typeof PexelsMyCollectionsInput, typeof PexelsMyCollectionsOutput, typeof pexels.credential>;
26
25
  //#endregion
27
26
  export { pexelsMyCollections };
28
27
  //# sourceMappingURL=my-collections.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"my-collections.d.cts","names":[],"sources":["../../src/actions/my-collections.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"my-collections.d.cts","names":[],"sources":["../../src/actions/my-collections.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pexels } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/my-collections.d.ts
@@ -19,10 +21,7 @@ declare const PexelsMyCollectionsOutput: z.ZodObject<{
19
21
  }, z.core.$loose>>;
20
22
  total_results: z.ZodNullable<z.ZodNumber>;
21
23
  }, z.core.$loose>;
22
- declare const pexelsMyCollections: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- page?: number | undefined;
24
- per_page?: number | undefined;
25
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ declare const pexelsMyCollections: AppAction<typeof PexelsMyCollectionsInput, typeof PexelsMyCollectionsOutput, typeof pexels.credential>;
26
25
  //#endregion
27
26
  export { pexelsMyCollections };
28
27
  //# sourceMappingURL=my-collections.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"my-collections.d.mts","names":[],"sources":["../../src/actions/my-collections.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"my-collections.d.mts","names":[],"sources":["../../src/actions/my-collections.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/my-collections.ts
@@ -1 +1 @@
1
- {"version":3,"file":"my-collections.mjs","names":[],"sources":["../../src/actions/my-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsMyCollectionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve, must be >= 1\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of collections per page, between 1 and 80\").optional(),\n}).describe(\"Request model for retrieving user collections with pagination.\");\nconst PexelsMyCollections_CollectionSchema = z.object({\n id: z.number().int().describe(\"Collection ID\").nullable(),\n title: z.string().describe(\"Collection title\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\n description: z.string().describe(\"Collection description, if provided\").nullable().optional(),\n media_count: z.number().int().describe(\"Total 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(\"Represents a Pexels collection.\");\nexport const PexelsMyCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\n per_page: z.number().int().describe(\"Number of collections per page returned\").nullable(),\n collections: z.array(PexelsMyCollections_CollectionSchema).describe(\"List of user collections\"),\n total_results: z.number().int().describe(\"Total number of collections\").nullable(),\n}).passthrough().describe(\"Response model for user collections listing.\");\n\nexport const pexelsMyCollections = action(\"PEXELS_MY_COLLECTIONS\", {\n slug: \"pexels-my-collections\",\n name: \"Get My Collections\",\n description: \"Tool to get all of the user's collections on Pexels. Use when you need to list a user's collections with pagination support.\",\n input: PexelsMyCollectionsInput,\n output: PexelsMyCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC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AC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"my-collections.mjs","names":[],"sources":["../../src/actions/my-collections.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pexels } from \"../app\";\n\nexport const PexelsMyCollectionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number to retrieve, must be >= 1\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of collections per page, between 1 and 80\").optional(),\n}).describe(\"Request model for retrieving user collections with pagination.\");\nconst PexelsMyCollections_CollectionSchema = z.object({\n id: z.number().int().describe(\"Collection ID\").nullable(),\n title: z.string().describe(\"Collection title\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\n description: z.string().describe(\"Collection description, if provided\").nullable().optional(),\n media_count: z.number().int().describe(\"Total 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(\"Represents a Pexels collection.\");\nexport const PexelsMyCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\n per_page: z.number().int().describe(\"Number of collections per page returned\").nullable(),\n collections: z.array(PexelsMyCollections_CollectionSchema).describe(\"List of user collections\"),\n total_results: z.number().int().describe(\"Total number of collections\").nullable(),\n}).passthrough().describe(\"Response model for user collections listing.\");\n\nexport const pexelsMyCollections: AppAction<\n typeof PexelsMyCollectionsInput,\n typeof PexelsMyCollectionsOutput,\n typeof pexels.credential\n> = action(\"PEXELS_MY_COLLECTIONS\", {\n slug: \"pexels-my-collections\",\n name: \"Get My Collections\",\n description: \"Tool to get all of the user's collections on Pexels. Use when you need to list a user's collections with pagination support.\",\n input: PexelsMyCollectionsInput,\n output: PexelsMyCollectionsOutput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,yCAAyC,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,0BAA0B;EAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/popular-videos.ts
@@ -1 +1 @@
1
- {"version":3,"file":"popular-videos.cjs","names":["z","action"],"sources":["../../src/actions/popular-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsPopularVideosInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve. Default is 1.\").optional(),\n per_page: z.number().int().describe(\"Number of videos per page (1–80). Default is 15.\").optional(),\n}).describe(\"Request parameters for retrieving popular videos from Pexels.\");\nconst PexelsPopularVideos_UserModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video author.\").nullable(),\n url: z.string().describe(\"URL of the author's profile.\").nullable(),\n name: z.string().describe(\"Name of the video author.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoFileModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video file.\").nullable(),\n fps: z.number().describe(\"Frames per second of the video file.\").nullable(),\n link: z.string().describe(\"Direct URL to the video file.\").nullable(),\n width: z.number().int().describe(\"Width of the video file in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the video file in pixels.\").nullable(),\n quality: z.string().describe(\"Quality label of the video file.\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoPictureModelSchema = z.object({\n id: z.number().int().describe(\"ID of the preview picture.\").nullable(),\n nr: z.number().int().describe(\"Sequence number of the picture.\").nullable(),\n picture: z.string().describe(\"URL of the preview picture.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video.\").nullable(),\n url: z.string().describe(\"URL to the Pexels page for the video.\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags associated with the video.\"),\n user: PexelsPopularVideos_UserModelSchema.nullable(),\n image: z.string().describe(\"URL of the video preview image.\").nullable(),\n width: z.number().int().describe(\"Width of the video in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the video in pixels.\").nullable(),\n duration: z.number().int().describe(\"Duration of the video in seconds.\").nullable(),\n full_res: z.string().describe(\"URL of the full-resolution video (if available).\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the video preview image (hex code).\").nullable().optional(),\n video_files: z.array(PexelsPopularVideos_VideoFileModelSchema).describe(\"Available video file variants.\"),\n video_pictures: z.array(PexelsPopularVideos_VideoPictureModelSchema).describe(\"List of preview pictures for the video.\"),\n}).passthrough();\nexport const PexelsPopularVideosOutput = z.object({\n url: z.string().describe(\"URL of the results page.\").nullable(),\n page: z.number().int().describe(\"Current page number.\").nullable(),\n videos: z.array(PexelsPopularVideos_VideoModelSchema).describe(\"List of popular video objects.\"),\n per_page: z.number().int().describe(\"Number of videos per page.\").nullable(),\n total_results: z.number().int().describe(\"Total number of video results available.\").nullable(),\n}).passthrough();\n\nexport const pexelsPopularVideos = action(\"PEXELS_POPULAR_VIDEOS\", {\n slug: \"pexels-popular-videos\",\n name: \"Get Popular Videos\",\n description: \"Tool to retrieve current popular Pexels videos. Use when you want to fetch trending videos from Pexels.\",\n input: PexelsPopularVideosInput,\n output: PexelsPopularVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC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O;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,gCAAgC;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"popular-videos.cjs","names":["z","action"],"sources":["../../src/actions/popular-videos.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pexels } from \"../app\";\n\nexport const PexelsPopularVideosInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve. Default is 1.\").optional(),\n per_page: z.number().int().describe(\"Number of videos per page (1–80). Default is 15.\").optional(),\n}).describe(\"Request parameters for retrieving popular videos from Pexels.\");\nconst PexelsPopularVideos_UserModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video author.\").nullable(),\n url: z.string().describe(\"URL of the author's profile.\").nullable(),\n name: z.string().describe(\"Name of the video author.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoFileModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video file.\").nullable(),\n fps: z.number().describe(\"Frames per second of the video file.\").nullable(),\n link: z.string().describe(\"Direct URL to the video file.\").nullable(),\n width: z.number().int().describe(\"Width of the video file in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the video file in pixels.\").nullable(),\n quality: z.string().describe(\"Quality label of the video file.\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoPictureModelSchema = z.object({\n id: z.number().int().describe(\"ID of the preview picture.\").nullable(),\n nr: z.number().int().describe(\"Sequence number of the picture.\").nullable(),\n picture: z.string().describe(\"URL of the preview picture.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video.\").nullable(),\n url: z.string().describe(\"URL to the Pexels page for the video.\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags associated with the video.\"),\n user: PexelsPopularVideos_UserModelSchema.nullable(),\n image: z.string().describe(\"URL of the video preview image.\").nullable(),\n width: z.number().int().describe(\"Width of the video in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the video in pixels.\").nullable(),\n duration: z.number().int().describe(\"Duration of the video in seconds.\").nullable(),\n full_res: z.string().describe(\"URL of the full-resolution video (if available).\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the video preview image (hex code).\").nullable().optional(),\n video_files: z.array(PexelsPopularVideos_VideoFileModelSchema).describe(\"Available video file variants.\"),\n video_pictures: z.array(PexelsPopularVideos_VideoPictureModelSchema).describe(\"List of preview pictures for the video.\"),\n}).passthrough();\nexport const PexelsPopularVideosOutput = z.object({\n url: z.string().describe(\"URL of the results page.\").nullable(),\n page: z.number().int().describe(\"Current page number.\").nullable(),\n videos: z.array(PexelsPopularVideos_VideoModelSchema).describe(\"List of popular video objects.\"),\n per_page: z.number().int().describe(\"Number of videos per page.\").nullable(),\n total_results: z.number().int().describe(\"Total number of video results available.\").nullable(),\n}).passthrough();\n\nexport const pexelsPopularVideos: AppAction<\n typeof PexelsPopularVideosInput,\n typeof PexelsPopularVideosOutput,\n typeof pexels.credential\n> = action(\"PEXELS_POPULAR_VIDEOS\", {\n slug: \"pexels-popular-videos\",\n name: \"Get Popular Videos\",\n description: \"Tool to retrieve current popular Pexels videos. Use when you want to fetch trending videos from Pexels.\",\n input: PexelsPopularVideosInput,\n output: PexelsPopularVideosOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,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AkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gCAAgC;CACxG,gBAAgBA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC;AACzH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,gCAAgC;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { pexels } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/popular-videos.d.ts
@@ -41,10 +43,7 @@ declare const PexelsPopularVideosOutput: z.ZodObject<{
41
43
  per_page: z.ZodNullable<z.ZodNumber>;
42
44
  total_results: z.ZodNullable<z.ZodNumber>;
43
45
  }, z.core.$loose>;
44
- declare const pexelsPopularVideos: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- page?: number | undefined;
46
- per_page?: number | undefined;
47
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
46
+ declare const pexelsPopularVideos: AppAction<typeof PexelsPopularVideosInput, typeof PexelsPopularVideosOutput, typeof pexels.credential>;
48
47
  //#endregion
49
48
  export { pexelsPopularVideos };
50
49
  //# sourceMappingURL=popular-videos.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popular-videos.d.cts","names":[],"sources":["../../src/actions/popular-videos.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAqCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"popular-videos.d.cts","names":[],"sources":["../../src/actions/popular-videos.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAqCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { pexels } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/popular-videos.d.ts
@@ -41,10 +43,7 @@ declare const PexelsPopularVideosOutput: z.ZodObject<{
41
43
  per_page: z.ZodNullable<z.ZodNumber>;
42
44
  total_results: z.ZodNullable<z.ZodNumber>;
43
45
  }, z.core.$loose>;
44
- declare const pexelsPopularVideos: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- page?: number | undefined;
46
- per_page?: number | undefined;
47
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
46
+ declare const pexelsPopularVideos: AppAction<typeof PexelsPopularVideosInput, typeof PexelsPopularVideosOutput, typeof pexels.credential>;
48
47
  //#endregion
49
48
  export { pexelsPopularVideos };
50
49
  //# sourceMappingURL=popular-videos.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popular-videos.d.mts","names":[],"sources":["../../src/actions/popular-videos.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAqCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"popular-videos.d.mts","names":[],"sources":["../../src/actions/popular-videos.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAqCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/popular-videos.ts
@@ -1 +1 @@
1
- {"version":3,"file":"popular-videos.mjs","names":[],"sources":["../../src/actions/popular-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsPopularVideosInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve. Default is 1.\").optional(),\n per_page: z.number().int().describe(\"Number of videos per page (1–80). Default is 15.\").optional(),\n}).describe(\"Request parameters for retrieving popular videos from Pexels.\");\nconst PexelsPopularVideos_UserModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video author.\").nullable(),\n url: z.string().describe(\"URL of the author's profile.\").nullable(),\n name: z.string().describe(\"Name of the video author.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoFileModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video file.\").nullable(),\n fps: z.number().describe(\"Frames per second of the video file.\").nullable(),\n link: z.string().describe(\"Direct URL to the video file.\").nullable(),\n width: z.number().int().describe(\"Width of the video file in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the video file in pixels.\").nullable(),\n quality: z.string().describe(\"Quality label of the video file.\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoPictureModelSchema = z.object({\n id: z.number().int().describe(\"ID of the preview picture.\").nullable(),\n nr: z.number().int().describe(\"Sequence number of the picture.\").nullable(),\n picture: z.string().describe(\"URL of the preview picture.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video.\").nullable(),\n url: z.string().describe(\"URL to the Pexels page for the video.\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags associated with the video.\"),\n user: PexelsPopularVideos_UserModelSchema.nullable(),\n image: z.string().describe(\"URL of the video preview image.\").nullable(),\n width: z.number().int().describe(\"Width of the video in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the video in pixels.\").nullable(),\n duration: z.number().int().describe(\"Duration of the video in seconds.\").nullable(),\n full_res: z.string().describe(\"URL of the full-resolution video (if available).\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the video preview image (hex code).\").nullable().optional(),\n video_files: z.array(PexelsPopularVideos_VideoFileModelSchema).describe(\"Available video file variants.\"),\n video_pictures: z.array(PexelsPopularVideos_VideoPictureModelSchema).describe(\"List of preview pictures for the video.\"),\n}).passthrough();\nexport const PexelsPopularVideosOutput = z.object({\n url: z.string().describe(\"URL of the results page.\").nullable(),\n page: z.number().int().describe(\"Current page number.\").nullable(),\n videos: z.array(PexelsPopularVideos_VideoModelSchema).describe(\"List of popular video objects.\"),\n per_page: z.number().int().describe(\"Number of videos per page.\").nullable(),\n total_results: z.number().int().describe(\"Total number of video results available.\").nullable(),\n}).passthrough();\n\nexport const pexelsPopularVideos = action(\"PEXELS_POPULAR_VIDEOS\", {\n slug: \"pexels-popular-videos\",\n name: \"Get Popular Videos\",\n description: \"Tool to retrieve current popular Pexels videos. Use when you want to fetch trending videos from Pexels.\",\n input: PexelsPopularVideosInput,\n output: PexelsPopularVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAClF,SAAS,EAAE,OAAO,CAAC,C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S;CAC3G,aAAa,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gCAAgC;CACxG,gBAAgB,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC;AACzH,CAAC,CAAC,CAAC,YAAY;AASf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACjE,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,gCAAgC;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"popular-videos.mjs","names":[],"sources":["../../src/actions/popular-videos.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pexels } from \"../app\";\n\nexport const PexelsPopularVideosInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve. Default is 1.\").optional(),\n per_page: z.number().int().describe(\"Number of videos per page (1–80). Default is 15.\").optional(),\n}).describe(\"Request parameters for retrieving popular videos from Pexels.\");\nconst PexelsPopularVideos_UserModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video author.\").nullable(),\n url: z.string().describe(\"URL of the author's profile.\").nullable(),\n name: z.string().describe(\"Name of the video author.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoFileModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video file.\").nullable(),\n fps: z.number().describe(\"Frames per second of the video file.\").nullable(),\n link: z.string().describe(\"Direct URL to the video file.\").nullable(),\n width: z.number().int().describe(\"Width of the video file in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the video file in pixels.\").nullable(),\n quality: z.string().describe(\"Quality label of the video file.\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoPictureModelSchema = z.object({\n id: z.number().int().describe(\"ID of the preview picture.\").nullable(),\n nr: z.number().int().describe(\"Sequence number of the picture.\").nullable(),\n picture: z.string().describe(\"URL of the preview picture.\").nullable(),\n}).passthrough();\nconst PexelsPopularVideos_VideoModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video.\").nullable(),\n url: z.string().describe(\"URL to the Pexels page for the video.\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags associated with the video.\"),\n user: PexelsPopularVideos_UserModelSchema.nullable(),\n image: z.string().describe(\"URL of the video preview image.\").nullable(),\n width: z.number().int().describe(\"Width of the video in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the video in pixels.\").nullable(),\n duration: z.number().int().describe(\"Duration of the video in seconds.\").nullable(),\n full_res: z.string().describe(\"URL of the full-resolution video (if available).\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the video preview image (hex code).\").nullable().optional(),\n video_files: z.array(PexelsPopularVideos_VideoFileModelSchema).describe(\"Available video file variants.\"),\n video_pictures: z.array(PexelsPopularVideos_VideoPictureModelSchema).describe(\"List of preview pictures for the video.\"),\n}).passthrough();\nexport const PexelsPopularVideosOutput = z.object({\n url: z.string().describe(\"URL of the results page.\").nullable(),\n page: z.number().int().describe(\"Current page number.\").nullable(),\n videos: z.array(PexelsPopularVideos_VideoModelSchema).describe(\"List of popular video objects.\"),\n per_page: z.number().int().describe(\"Number of videos per page.\").nullable(),\n total_results: z.number().int().describe(\"Total number of video results available.\").nullable(),\n}).passthrough();\n\nexport const pexelsPopularVideos: AppAction<\n typeof PexelsPopularVideosInput,\n typeof PexelsPopularVideosOutput,\n typeof pexels.credential\n> = action(\"PEXELS_POPULAR_VIDEOS\", {\n slug: \"pexels-popular-videos\",\n name: \"Get Popular Videos\",\n description: \"Tool to retrieve current popular Pexels videos. Use when you want to fetch trending videos from Pexels.\",\n input: PexelsPopularVideosInput,\n output: PexelsPopularVideosOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,S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3G,aAAa,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gCAAgC;CACxG,gBAAgB,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC;AACzH,CAAC,CAAC,CAAC,YAAY;AASf,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBuC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACjE,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,gCAAgC;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/search-photos.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-photos.cjs","names":["z","action"],"sources":["../../src/actions/search-photos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsSearchPhotosInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n size: z.enum([\"large\", \"medium\", \"small\"]).describe(\"Filter by photo size.\").optional(),\n color: z.string().describe(\"Filter by photo color. Accepts standard color names or hex codes, e.g., 'red' or '#00ff00'.\").optional(),\n query: z.string().describe(\"Search term to find photos. Use specific, descriptive terms (e.g., 'plated chicken overhead shot' instead of 'chicken') to improve result relevance.\"),\n locale: z.string().describe(\"Language locale for search results, e.g., 'en-US', 'pt-BR'.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80). Defaults to 15.\").optional(),\n orientation: z.enum([\"landscape\", \"portrait\", \"square\"]).describe(\"Filter by photo orientation.\").optional(),\n}).describe(\"Parameters to search photos on Pexels by query and optional filters.\");\nconst PexelsSearchPhotos_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 PexelsSearchPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo\").nullable(),\n alt: z.string().describe(\"Alternate text for the photo\").nullable().optional(),\n src: PexelsSearchPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL to the photo's Pexels page\").nullable(),\n liked: z.boolean().describe(\"Indicates if the photo is liked by the user\").nullable(),\n width: z.number().int().describe(\"Photo width in pixels\").nullable(),\n height: z.number().int().describe(\"Photo height in pixels\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo (hex code)\").nullable(),\n photographer: z.string().describe(\"Photographer name\").nullable(),\n photographer_id: z.number().int().describe(\"Photographer's ID\").nullable(),\n photographer_url: z.string().describe(\"Photographer's profile URL\").nullable(),\n}).passthrough();\nexport const PexelsSearchPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n photos: z.array(PexelsSearchPhotos_PhotoSchema).describe(\"List of photo objects returned\"),\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 total_results: z.number().int().describe(\"Total number of results for this search\").nullable(),\n}).passthrough();\n\nexport const pexelsSearchPhotos = action(\"PEXELS_SEARCH_PHOTOS\", {\n slug: \"pexels-search-photos\",\n name: \"Search Photos\",\n description: \"Tool to search for photos on Pexels. Use when you need to retrieve photos by a search term and optional filters. Call after confirming you have a valid Pexels API key. Response image URLs are nested under `photo.src.<size>` (e.g., `photo.src.original`, `photo.src.landscape`, `photo.src.medium`); the top-level `url` field is not sufficient for accessing specific image sizes.\",\n input: PexelsSearchPhotosInput,\n output: PexelsSearchPhotosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACnI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ;CACjL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/G,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAY;CAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAA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,uCAAuC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAChE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACzE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,gCAAgC;CACzF,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,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-photos.cjs","names":["z","action"],"sources":["../../src/actions/search-photos.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pexels } from \"../app\";\n\nexport const PexelsSearchPhotosInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n size: z.enum([\"large\", \"medium\", \"small\"]).describe(\"Filter by photo size.\").optional(),\n color: z.string().describe(\"Filter by photo color. Accepts standard color names or hex codes, e.g., 'red' or '#00ff00'.\").optional(),\n query: z.string().describe(\"Search term to find photos. Use specific, descriptive terms (e.g., 'plated chicken overhead shot' instead of 'chicken') to improve result relevance.\"),\n locale: z.string().describe(\"Language locale for search results, e.g., 'en-US', 'pt-BR'.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80). Defaults to 15.\").optional(),\n orientation: z.enum([\"landscape\", \"portrait\", \"square\"]).describe(\"Filter by photo orientation.\").optional(),\n}).describe(\"Parameters to search photos on Pexels by query and optional filters.\");\nconst PexelsSearchPhotos_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 PexelsSearchPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo\").nullable(),\n alt: z.string().describe(\"Alternate text for the photo\").nullable().optional(),\n src: PexelsSearchPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL to the photo's Pexels page\").nullable(),\n liked: z.boolean().describe(\"Indicates if the photo is liked by the user\").nullable(),\n width: z.number().int().describe(\"Photo width in pixels\").nullable(),\n height: z.number().int().describe(\"Photo height in pixels\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo (hex code)\").nullable(),\n photographer: z.string().describe(\"Photographer name\").nullable(),\n photographer_id: z.number().int().describe(\"Photographer's ID\").nullable(),\n photographer_url: z.string().describe(\"Photographer's profile URL\").nullable(),\n}).passthrough();\nexport const PexelsSearchPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n photos: z.array(PexelsSearchPhotos_PhotoSchema).describe(\"List of photo objects returned\"),\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 total_results: z.number().int().describe(\"Total number of results for this search\").nullable(),\n}).passthrough();\n\nexport const pexelsSearchPhotos: AppAction<\n typeof PexelsSearchPhotosInput,\n typeof PexelsSearchPhotosOutput,\n typeof pexels.credential\n> = action(\"PEXELS_SEARCH_PHOTOS\", {\n slug: \"pexels-search-photos\",\n name: \"Search Photos\",\n description: \"Tool to search for photos on Pexels. Use when you need to retrieve photos by a search term and optional filters. Call after confirming you have a valid Pexels API key. Response image URLs are nested under `photo.src.<size>` (e.g., `photo.src.original`, `photo.src.landscape`, `photo.src.medium`); the top-level `url` field is not sufficient for accessing specific image sizes.\",\n input: PexelsSearchPhotosInput,\n output: PexelsSearchPhotosOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACnI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ;CACjL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACpG,UAAUA,IAA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,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,20 +1,22 @@
1
+ import { pexels } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search-photos.d.ts
4
6
  declare const PexelsSearchPhotosInput: z.ZodObject<{
5
7
  page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
8
  size: z.ZodOptional<z.ZodEnum<{
9
+ small: "small";
7
10
  large: "large";
8
11
  medium: "medium";
9
- small: "small";
10
12
  }>>;
11
13
  color: z.ZodOptional<z.ZodString>;
12
14
  query: z.ZodString;
13
15
  locale: z.ZodOptional<z.ZodString>;
14
16
  per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
15
17
  orientation: z.ZodOptional<z.ZodEnum<{
16
- landscape: "landscape";
17
18
  portrait: "portrait";
19
+ landscape: "landscape";
18
20
  square: "square";
19
21
  }>>;
20
22
  }, z.core.$strip>;
@@ -47,15 +49,7 @@ declare const PexelsSearchPhotosOutput: z.ZodObject<{
47
49
  prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
50
  total_results: z.ZodNullable<z.ZodNumber>;
49
51
  }, z.core.$loose>;
50
- declare const pexelsSearchPhotos: import("@keystrokehq/action").WorkflowActionDefinition<{
51
- query: string;
52
- page?: number | undefined;
53
- size?: "large" | "medium" | "small" | undefined;
54
- color?: string | undefined;
55
- locale?: string | undefined;
56
- per_page?: number | undefined;
57
- orientation?: "landscape" | "portrait" | "square" | undefined;
58
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
+ declare const pexelsSearchPhotos: AppAction<typeof PexelsSearchPhotosInput, typeof PexelsSearchPhotosOutput, typeof pexels.credential>;
59
53
  //#endregion
60
54
  export { pexelsSearchPhotos };
61
55
  //# sourceMappingURL=search-photos.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-photos.d.cts","names":[],"sources":["../../src/actions/search-photos.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAgCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"search-photos.d.cts","names":[],"sources":["../../src/actions/search-photos.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAgCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,20 +1,22 @@
1
+ import { pexels } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search-photos.d.ts
4
6
  declare const PexelsSearchPhotosInput: z.ZodObject<{
5
7
  page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
8
  size: z.ZodOptional<z.ZodEnum<{
9
+ small: "small";
7
10
  large: "large";
8
11
  medium: "medium";
9
- small: "small";
10
12
  }>>;
11
13
  color: z.ZodOptional<z.ZodString>;
12
14
  query: z.ZodString;
13
15
  locale: z.ZodOptional<z.ZodString>;
14
16
  per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
15
17
  orientation: z.ZodOptional<z.ZodEnum<{
16
- landscape: "landscape";
17
18
  portrait: "portrait";
19
+ landscape: "landscape";
18
20
  square: "square";
19
21
  }>>;
20
22
  }, z.core.$strip>;
@@ -47,15 +49,7 @@ declare const PexelsSearchPhotosOutput: z.ZodObject<{
47
49
  prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
50
  total_results: z.ZodNullable<z.ZodNumber>;
49
51
  }, z.core.$loose>;
50
- declare const pexelsSearchPhotos: import("@keystrokehq/action").WorkflowActionDefinition<{
51
- query: string;
52
- page?: number | undefined;
53
- size?: "large" | "medium" | "small" | undefined;
54
- color?: string | undefined;
55
- locale?: string | undefined;
56
- per_page?: number | undefined;
57
- orientation?: "landscape" | "portrait" | "square" | undefined;
58
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
+ declare const pexelsSearchPhotos: AppAction<typeof PexelsSearchPhotosInput, typeof PexelsSearchPhotosOutput, typeof pexels.credential>;
59
53
  //#endregion
60
54
  export { pexelsSearchPhotos };
61
55
  //# sourceMappingURL=search-photos.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-photos.d.mts","names":[],"sources":["../../src/actions/search-photos.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAgCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"search-photos.d.mts","names":[],"sources":["../../src/actions/search-photos.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAgCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/search-photos.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-photos.mjs","names":[],"sources":["../../src/actions/search-photos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsSearchPhotosInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n size: z.enum([\"large\", \"medium\", \"small\"]).describe(\"Filter by photo size.\").optional(),\n color: z.string().describe(\"Filter by photo color. Accepts standard color names or hex codes, e.g., 'red' or '#00ff00'.\").optional(),\n query: z.string().describe(\"Search term to find photos. Use specific, descriptive terms (e.g., 'plated chicken overhead shot' instead of 'chicken') to improve result relevance.\"),\n locale: z.string().describe(\"Language locale for search results, e.g., 'en-US', 'pt-BR'.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80). Defaults to 15.\").optional(),\n orientation: z.enum([\"landscape\", \"portrait\", \"square\"]).describe(\"Filter by photo orientation.\").optional(),\n}).describe(\"Parameters to search photos on Pexels by query and optional filters.\");\nconst PexelsSearchPhotos_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 PexelsSearchPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo\").nullable(),\n alt: z.string().describe(\"Alternate text for the photo\").nullable().optional(),\n src: PexelsSearchPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL to the photo's Pexels page\").nullable(),\n liked: z.boolean().describe(\"Indicates if the photo is liked by the user\").nullable(),\n width: z.number().int().describe(\"Photo width in pixels\").nullable(),\n height: z.number().int().describe(\"Photo height in pixels\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo (hex code)\").nullable(),\n photographer: z.string().describe(\"Photographer name\").nullable(),\n photographer_id: z.number().int().describe(\"Photographer's ID\").nullable(),\n photographer_url: z.string().describe(\"Photographer's profile URL\").nullable(),\n}).passthrough();\nexport const PexelsSearchPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n photos: z.array(PexelsSearchPhotos_PhotoSchema).describe(\"List of photo objects returned\"),\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 total_results: z.number().int().describe(\"Total number of results for this search\").nullable(),\n}).passthrough();\n\nexport const pexelsSearchPhotos = action(\"PEXELS_SEARCH_PHOTOS\", {\n slug: \"pexels-search-photos\",\n name: \"Search Photos\",\n description: \"Tool to search for photos on Pexels. Use when you need to retrieve photos by a search term and optional filters. Call after confirming you have a valid Pexels API key. Response image URLs are nested under `photo.src.<size>` (e.g., `photo.src.original`, `photo.src.landscape`, `photo.src.medium`); the top-level `url` field is not sufficient for accessing specific image sizes.\",\n input: PexelsSearchPhotosInput,\n output: PexelsSearchPhotosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACnI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ;CACjL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,C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OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAChE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACzE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AAUf,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAChE,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,gCAAgC;EACzF,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,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"search-photos.mjs","names":[],"sources":["../../src/actions/search-photos.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pexels } from \"../app\";\n\nexport const PexelsSearchPhotosInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n size: z.enum([\"large\", \"medium\", \"small\"]).describe(\"Filter by photo size.\").optional(),\n color: z.string().describe(\"Filter by photo color. Accepts standard color names or hex codes, e.g., 'red' or '#00ff00'.\").optional(),\n query: z.string().describe(\"Search term to find photos. Use specific, descriptive terms (e.g., 'plated chicken overhead shot' instead of 'chicken') to improve result relevance.\"),\n locale: z.string().describe(\"Language locale for search results, e.g., 'en-US', 'pt-BR'.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80). Defaults to 15.\").optional(),\n orientation: z.enum([\"landscape\", \"portrait\", \"square\"]).describe(\"Filter by photo orientation.\").optional(),\n}).describe(\"Parameters to search photos on Pexels by query and optional filters.\");\nconst PexelsSearchPhotos_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 PexelsSearchPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo\").nullable(),\n alt: z.string().describe(\"Alternate text for the photo\").nullable().optional(),\n src: PexelsSearchPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL to the photo's Pexels page\").nullable(),\n liked: z.boolean().describe(\"Indicates if the photo is liked by the user\").nullable(),\n width: z.number().int().describe(\"Photo width in pixels\").nullable(),\n height: z.number().int().describe(\"Photo height in pixels\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo (hex code)\").nullable(),\n photographer: z.string().describe(\"Photographer name\").nullable(),\n photographer_id: z.number().int().describe(\"Photographer's ID\").nullable(),\n photographer_url: z.string().describe(\"Photographer's profile URL\").nullable(),\n}).passthrough();\nexport const PexelsSearchPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n photos: z.array(PexelsSearchPhotos_PhotoSchema).describe(\"List of photo objects returned\"),\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 total_results: z.number().int().describe(\"Total number of results for this search\").nullable(),\n}).passthrough();\n\nexport const pexelsSearchPhotos: AppAction<\n typeof PexelsSearchPhotosInput,\n typeof PexelsSearchPhotosOutput,\n typeof pexels.credential\n> = action(\"PEXELS_SEARCH_PHOTOS\", {\n slug: \"pexels-search-photos\",\n name: \"Search Photos\",\n description: \"Tool to search for photos on Pexels. Use when you need to retrieve photos by a search term and optional filters. Call after confirming you have a valid Pexels API key. Response image URLs are nested under `photo.src.<size>` (e.g., `photo.src.original`, `photo.src.landscape`, `photo.src.medium`); the top-level `url` field is not sufficient for accessing specific image sizes.\",\n input: PexelsSearchPhotosInput,\n output: PexelsSearchPhotosOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACnI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ;CACjL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CA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s");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/search-videos.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-videos.cjs","names":["z","action"],"sources":["../../src/actions/search-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsSearchVideosInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for paginated results (starting at 1)\").optional(),\n size: z.enum([\"large\", \"medium\", \"small\"]).describe(\"Filter results by video size\").optional(),\n query: z.string().describe(\"Search query term for finding relevant videos\"),\n per_page: z.number().int().default(15).describe(\"Number of results per page (min 1, max 80) Keep close to default when only a few results are needed to avoid oversized responses.\").optional(),\n orientation: z.enum([\"landscape\", \"portrait\", \"square\"]).describe(\"Filter results by video orientation\").optional(),\n}).describe(\"Request model for searching videos on Pexels.\");\nconst PexelsSearchVideos_UserSchema = z.object({\n id: z.number().int().describe(\"Photographer user ID\").nullable(),\n url: z.string().describe(\"Photographer profile URL\").nullable(),\n name: z.string().describe(\"Photographer name\").nullable(),\n}).passthrough();\nconst PexelsSearchVideos_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Video file ID\").nullable(),\n fps: z.number().describe(\"Frames per second for this file\").nullable().optional(),\n link: z.string().describe(\"Direct download link to this video file\").nullable(),\n width: z.number().int().describe(\"Width of this video file in pixels\").nullable(),\n height: z.number().int().describe(\"Height of this video file in pixels\").nullable(),\n quality: z.string().describe(\"Video quality, e.g., 'hd' or 'sd'\").nullable().optional(),\n file_type: z.string().describe(\"MIME type of the video file\").nullable(),\n}).passthrough();\nconst PexelsSearchVideos_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"ID of the thumbnail picture\").nullable(),\n nr: z.number().int().describe(\"Index number of this thumbnail in the video timeline\").nullable(),\n picture: z.string().describe(\"URL to the thumbnail image\").nullable(),\n}).passthrough();\nconst PexelsSearchVideos_VideoSchema = z.object({\n id: z.number().int().describe(\"Video ID\").nullable(),\n url: z.string().describe(\"URL to the video page on Pexels\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags describing the video\"),\n user: PexelsSearchVideos_UserSchema.nullable(),\n image: z.string().describe(\"URL to the video thumbnail image\").nullable(),\n width: z.number().int().describe(\"Original video width in pixels\").nullable(),\n height: z.number().int().describe(\"Original video height in pixels\").nullable(),\n duration: z.number().int().describe(\"Video duration in seconds\").nullable(),\n full_res: z.string().describe(\"URL to the highest resolution video file\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the thumbnail in hex format, e.g., '#AABBCC'\").nullable().optional(),\n video_files: z.array(PexelsSearchVideos_VideoFileSchema).describe(\"List of available video file variants\"),\n video_pictures: z.array(PexelsSearchVideos_VideoPictureSchema).describe(\"List of video thumbnail images at different offsets\"),\n}).passthrough();\nexport const PexelsSearchVideosOutput = z.object({\n url: z.string().describe(\"URL to Pexels search results page\").nullable(),\n page: z.number().int().describe(\"Current page number of the results\").nullable(),\n videos: z.array(PexelsSearchVideos_VideoSchema).describe(\"List of video objects returned by the search\"),\n per_page: z.number().int().describe(\"Number of results returned per page\").nullable(),\n total_results: z.number().int().describe(\"Total number of videos matching the search query\").nullable(),\n}).passthrough();\n\nexport const pexelsSearchVideos = action(\"PEXELS_SEARCH_VIDEOS\", {\n slug: \"pexels-search-videos\",\n name: \"Search Videos\",\n description: \"Tool to search for videos on Pexels by query and optional filters. Use when you need to find relevant video assets. Combining multiple filters with a narrow query may return few or no results; only apply strict filter combinations when explicitly required.\",\n input: PexelsSearchVideosInput,\n output: PexelsSearchVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC7F,OAAOA,IAAAA,EA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IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAaA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,uCAAuC;CACzG,gBAAgBA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,qDAAqD;AAC/H,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,8CAA8C;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-videos.cjs","names":["z","action"],"sources":["../../src/actions/search-videos.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { pexels } from \"../app\";\n\nexport const PexelsSearchVideosInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for paginated results (starting at 1)\").optional(),\n size: z.enum([\"large\", \"medium\", \"small\"]).describe(\"Filter results by video size\").optional(),\n query: z.string().describe(\"Search query term for finding relevant videos\"),\n per_page: z.number().int().default(15).describe(\"Number of results per page (min 1, max 80) Keep close to default when only a few results are needed to avoid oversized responses.\").optional(),\n orientation: z.enum([\"landscape\", \"portrait\", \"square\"]).describe(\"Filter results by video orientation\").optional(),\n}).describe(\"Request model for searching videos on Pexels.\");\nconst PexelsSearchVideos_UserSchema = z.object({\n id: z.number().int().describe(\"Photographer user ID\").nullable(),\n url: z.string().describe(\"Photographer profile URL\").nullable(),\n name: z.string().describe(\"Photographer name\").nullable(),\n}).passthrough();\nconst PexelsSearchVideos_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Video file ID\").nullable(),\n fps: z.number().describe(\"Frames per second for this file\").nullable().optional(),\n link: z.string().describe(\"Direct download link to this video file\").nullable(),\n width: z.number().int().describe(\"Width of this video file in pixels\").nullable(),\n height: z.number().int().describe(\"Height of this video file in pixels\").nullable(),\n quality: z.string().describe(\"Video quality, e.g., 'hd' or 'sd'\").nullable().optional(),\n file_type: z.string().describe(\"MIME type of the video file\").nullable(),\n}).passthrough();\nconst PexelsSearchVideos_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"ID of the thumbnail picture\").nullable(),\n nr: z.number().int().describe(\"Index number of this thumbnail in the video timeline\").nullable(),\n picture: z.string().describe(\"URL to the thumbnail image\").nullable(),\n}).passthrough();\nconst PexelsSearchVideos_VideoSchema = z.object({\n id: z.number().int().describe(\"Video ID\").nullable(),\n url: z.string().describe(\"URL to the video page on Pexels\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags describing the video\"),\n user: PexelsSearchVideos_UserSchema.nullable(),\n image: z.string().describe(\"URL to the video thumbnail image\").nullable(),\n width: z.number().int().describe(\"Original video width in pixels\").nullable(),\n height: z.number().int().describe(\"Original video height in pixels\").nullable(),\n duration: z.number().int().describe(\"Video duration in seconds\").nullable(),\n full_res: z.string().describe(\"URL to the highest resolution video file\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the thumbnail in hex format, e.g., '#AABBCC'\").nullable().optional(),\n video_files: z.array(PexelsSearchVideos_VideoFileSchema).describe(\"List of available video file variants\"),\n video_pictures: z.array(PexelsSearchVideos_VideoPictureSchema).describe(\"List of video thumbnail images at different offsets\"),\n}).passthrough();\nexport const PexelsSearchVideosOutput = z.object({\n url: z.string().describe(\"URL to Pexels search results page\").nullable(),\n page: z.number().int().describe(\"Current page number of the results\").nullable(),\n videos: z.array(PexelsSearchVideos_VideoSchema).describe(\"List of video objects returned by the search\"),\n per_page: z.number().int().describe(\"Number of results returned per page\").nullable(),\n total_results: z.number().int().describe(\"Total number of videos matching the search query\").nullable(),\n}).passthrough();\n\nexport const pexelsSearchVideos: AppAction<\n typeof PexelsSearchVideosInput,\n typeof PexelsSearchVideosOutput,\n typeof pexels.credential\n> = action(\"PEXELS_SEARCH_VIDEOS\", {\n slug: \"pexels-search-videos\",\n name: \"Search Videos\",\n description: \"Tool to search for videos on Pexels by query and optional filters. Use when you need to find relevant video assets. Combining multiple filters with a narrow query may return few or no results; only apply strict filter combinations when explicitly required.\",\n input: PexelsSearchVideosInput,\n output: PexelsSearchVideosOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAC9L,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAY;CAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,+CA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KA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,8CAA8C;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,18 +1,20 @@
1
+ import { pexels } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search-videos.d.ts
4
6
  declare const PexelsSearchVideosInput: z.ZodObject<{
5
7
  page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
8
  size: z.ZodOptional<z.ZodEnum<{
9
+ small: "small";
7
10
  large: "large";
8
11
  medium: "medium";
9
- small: "small";
10
12
  }>>;
11
13
  query: z.ZodString;
12
14
  per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
15
  orientation: z.ZodOptional<z.ZodEnum<{
14
- landscape: "landscape";
15
16
  portrait: "portrait";
17
+ landscape: "landscape";
16
18
  square: "square";
17
19
  }>>;
18
20
  }, z.core.$strip>;
@@ -52,13 +54,7 @@ declare const PexelsSearchVideosOutput: z.ZodObject<{
52
54
  per_page: z.ZodNullable<z.ZodNumber>;
53
55
  total_results: z.ZodNullable<z.ZodNumber>;
54
56
  }, z.core.$loose>;
55
- declare const pexelsSearchVideos: import("@keystrokehq/action").WorkflowActionDefinition<{
56
- query: string;
57
- page?: number | undefined;
58
- size?: "large" | "medium" | "small" | undefined;
59
- per_page?: number | undefined;
60
- orientation?: "landscape" | "portrait" | "square" | undefined;
61
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
57
+ declare const pexelsSearchVideos: AppAction<typeof PexelsSearchVideosInput, typeof PexelsSearchVideosOutput, typeof pexels.credential>;
62
58
  //#endregion
63
59
  export { pexelsSearchVideos };
64
60
  //# sourceMappingURL=search-videos.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-videos.d.cts","names":[],"sources":["../../src/actions/search-videos.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAwCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"search-videos.d.cts","names":[],"sources":["../../src/actions/search-videos.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAwCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}