@keystrokehq/pexels 0.1.5 → 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 -17
  6. package/dist/actions/collection-media.d.cts.map +1 -1
  7. package/dist/actions/collection-media.d.mts +3 -17
  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 -16
  14. package/dist/actions/curated-photos.d.cts.map +1 -1
  15. package/dist/actions/curated-photos.d.mts +3 -16
  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 -16
  22. package/dist/actions/featured-collections.d.cts.map +1 -1
  23. package/dist/actions/featured-collections.d.mts +3 -16
  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 -15
  30. package/dist/actions/get-photo.d.cts.map +1 -1
  31. package/dist/actions/get-photo.d.mts +3 -15
  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 -15
  38. package/dist/actions/get-video-by-id.d.cts.map +1 -1
  39. package/dist/actions/get-video-by-id.d.mts +3 -15
  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 -16
  46. package/dist/actions/my-collections.d.cts.map +1 -1
  47. package/dist/actions/my-collections.d.mts +3 -16
  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 -16
  54. package/dist/actions/popular-videos.d.cts.map +1 -1
  55. package/dist/actions/popular-videos.d.mts +3 -16
  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 +4 -22
  62. package/dist/actions/search-photos.d.cts.map +1 -1
  63. package/dist/actions/search-photos.d.mts +4 -22
  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 +4 -20
  70. package/dist/actions/search-videos.d.cts.map +1 -1
  71. package/dist/actions/search-videos.d.mts +4 -20
  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 +2 -2
  76. package/dist/app.cjs.map +1 -1
  77. package/dist/app.d.cts +4 -6
  78. package/dist/app.d.cts.map +1 -1
  79. package/dist/app.d.mts +4 -6
  80. package/dist/app.d.mts.map +1 -1
  81. package/dist/app.mjs +0 -1
  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 +1 @@
1
- {"version":3,"file":"get-photo.mjs","names":[],"sources":["../../src/actions/get-photo.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsGetPhotoInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the photo to retrieve\"),\n}).describe(\"Request schema for retrieving a specific photo by its ID.\");\nconst PexelsGetPhoto_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"Double-resolution large size photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).passthrough().describe(\"Various image size URLs for a photo.\");\nexport const PexelsGetPhotoOutput = z.object({\n id: z.number().int().describe(\"Photo's unique identifier\").nullable(),\n alt: z.string().describe(\"Alternate text description of the photo\").nullable(),\n src: PexelsGetPhoto_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"Pexels page URL for the photo\").nullable(),\n liked: z.boolean().describe(\"Whether the requesting user has liked this photo\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in hex code\").nullable(),\n photographer: z.string().describe(\"Name of the photographer\").nullable(),\n photographer_id: z.number().int().describe(\"Photographer's unique identifier\").nullable(),\n photographer_url: z.string().describe(\"URL of the photographer's profile\").nullable(),\n}).passthrough().describe(\"Detailed information for a single photo.\");\n\nexport const pexelsGetPhoto = action(\"PEXELS_GET_PHOTO\", {\n slug: \"pexels-get-photo\",\n name: \"Get Photo\",\n description: \"Tool to retrieve detailed information about a specific photo. Use when you have a valid photo ID to fetch metadata including dimensions, photographer details, and image URLs. Use after confirming the photo ID from search or curated endpoints.\",\n input: PexelsGetPhotoInput,\n output: PexelsGetPhotoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO,EAC1C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAAgC,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAehE,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAnBkC,EAAE,OAAO;EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC7E,KAAK,8BAA8B,SAAS;EAC5C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACnE,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACzF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACvE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-photo.mjs","names":[],"sources":["../../src/actions/get-photo.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 PexelsGetPhotoInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the photo to retrieve\"),\n}).describe(\"Request schema for retrieving a specific photo by its ID.\");\nconst PexelsGetPhoto_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"Double-resolution large size photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).passthrough().describe(\"Various image size URLs for a photo.\");\nexport const PexelsGetPhotoOutput = z.object({\n id: z.number().int().describe(\"Photo's unique identifier\").nullable(),\n alt: z.string().describe(\"Alternate text description of the photo\").nullable(),\n src: PexelsGetPhoto_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"Pexels page URL for the photo\").nullable(),\n liked: z.boolean().describe(\"Whether the requesting user has liked this photo\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in hex code\").nullable(),\n photographer: z.string().describe(\"Name of the photographer\").nullable(),\n photographer_id: z.number().int().describe(\"Photographer's unique identifier\").nullable(),\n photographer_url: z.string().describe(\"URL of the photographer's profile\").nullable(),\n}).passthrough().describe(\"Detailed information for a single photo.\");\n\nexport const pexelsGetPhoto: AppAction<\n typeof PexelsGetPhotoInput,\n typeof PexelsGetPhotoOutput,\n typeof pexels.credential\n> = action(\"PEXELS_GET_PHOTO\", {\n slug: \"pexels-get-photo\",\n name: \"Get Photo\",\n description: \"Tool to retrieve detailed information about a specific photo. Use when you have a valid photo ID to fetch metadata including dimensions, photographer details, and image URLs. Use after confirming the photo ID from search or curated endpoints.\",\n input: PexelsGetPhotoInput,\n output: PexelsGetPhotoOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsB,EAAE,OAAO,EAC1C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAg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C,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACvE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;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/get-video-by-id.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-video-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-video-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsGetVideoByIdInput = z.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,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,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SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC;CAC3E,MAAM,8BAA8B,SAAS;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,wDAAwD;CAC1H,gBAAgBA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uCAAuC;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,qBAAqBC,eAAAA,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-video-by-id.cjs","names":["z","action"],"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,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EA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AC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,wDAAwD;CAC1H,gBAAgBA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uCAAuC;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,qBAITC,eAAAA,OAAO,0BAA0B;CACnC,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/get-video-by-id.d.ts
@@ -32,21 +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<"pexels", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
44
- connectionId: z.ZodString;
45
- entityId: z.ZodString;
46
- instanceId: z.ZodString;
47
- }, z.core.$strip>, z.ZodObject<{
48
- generic_api_key: z.ZodString;
49
- }, z.core.$strip>>]>;
37
+ declare const pexelsGetVideoById: AppAction<typeof PexelsGetVideoByIdInput, typeof PexelsGetVideoByIdOutput, typeof pexels.credential>;
50
38
  //#endregion
51
39
  export { pexelsGetVideoById };
52
40
  //# sourceMappingURL=get-video-by-id.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-video-by-id.d.cts","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.cts","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,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,21 +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<"pexels", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
44
- connectionId: z.ZodString;
45
- entityId: z.ZodString;
46
- instanceId: z.ZodString;
47
- }, z.core.$strip>, z.ZodObject<{
48
- generic_api_key: z.ZodString;
49
- }, z.core.$strip>>]>;
37
+ declare const pexelsGetVideoById: AppAction<typeof PexelsGetVideoByIdInput, typeof PexelsGetVideoByIdOutput, typeof pexels.credential>;
50
38
  //#endregion
51
39
  export { pexelsGetVideoById };
52
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,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAW,EAAE,OAAO,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C,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,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,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC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;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,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,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,sBAAsBC,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":";;;;AAMA,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,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,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,22 +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<"pexels", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>;
24
+ declare const pexelsMyCollections: AppAction<typeof PexelsMyCollectionsInput, typeof PexelsMyCollectionsOutput, typeof pexels.credential>;
38
25
  //#endregion
39
26
  export { pexelsMyCollections };
40
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,22 +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<"pexels", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>;
24
+ declare const pexelsMyCollections: AppAction<typeof PexelsMyCollectionsInput, typeof PexelsMyCollectionsOutput, typeof pexels.credential>;
38
25
  //#endregion
39
26
  export { pexelsMyCollections };
40
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,O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AAS,0BAA0B;EAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,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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EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,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,CA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AC,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,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,CA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AAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gCAAgC;CACxG,gBAAgBA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC;AACzH,CAAC,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,22 +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<"pexels", z.ZodObject<{
48
- connectionId: z.ZodString;
49
- entityId: z.ZodString;
50
- instanceId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- generic_api_key: z.ZodString;
53
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
54
- connectionId: z.ZodString;
55
- entityId: z.ZodString;
56
- instanceId: z.ZodString;
57
- }, z.core.$strip>, z.ZodObject<{
58
- generic_api_key: z.ZodString;
59
- }, z.core.$strip>>]>;
46
+ declare const pexelsPopularVideos: AppAction<typeof PexelsPopularVideosInput, typeof PexelsPopularVideosOutput, typeof pexels.credential>;
60
47
  //#endregion
61
48
  export { pexelsPopularVideos };
62
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,22 +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<"pexels", z.ZodObject<{
48
- connectionId: z.ZodString;
49
- entityId: z.ZodString;
50
- instanceId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- generic_api_key: z.ZodString;
53
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
54
- connectionId: z.ZodString;
55
- entityId: z.ZodString;
56
- instanceId: z.ZodString;
57
- }, z.core.$strip>, z.ZodObject<{
58
- generic_api_key: z.ZodString;
59
- }, z.core.$strip>>]>;
46
+ declare const pexelsPopularVideos: AppAction<typeof PexelsPopularVideosInput, typeof PexelsPopularVideosOutput, typeof pexels.credential>;
60
47
  //#endregion
61
48
  export { pexelsPopularVideos };
62
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,KAA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AC,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,EAA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AS,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,uBAAu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AC3E,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,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,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,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AAC,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,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,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/search-photos.d.ts
@@ -13,8 +15,8 @@ declare const PexelsSearchPhotosInput: z.ZodObject<{
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,27 +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?: "small" | "large" | "medium" | 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<"pexels", z.ZodObject<{
59
- connectionId: z.ZodString;
60
- entityId: z.ZodString;
61
- instanceId: z.ZodString;
62
- }, z.core.$strip>, z.ZodObject<{
63
- generic_api_key: z.ZodString;
64
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
65
- connectionId: z.ZodString;
66
- entityId: z.ZodString;
67
- instanceId: z.ZodString;
68
- }, z.core.$strip>, z.ZodObject<{
69
- generic_api_key: z.ZodString;
70
- }, z.core.$strip>>]>;
52
+ declare const pexelsSearchPhotos: AppAction<typeof PexelsSearchPhotosInput, typeof PexelsSearchPhotosOutput, typeof pexels.credential>;
71
53
  //#endregion
72
54
  export { pexelsSearchPhotos };
73
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,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/search-photos.d.ts
@@ -13,8 +15,8 @@ declare const PexelsSearchPhotosInput: z.ZodObject<{
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,27 +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?: "small" | "large" | "medium" | 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<"pexels", z.ZodObject<{
59
- connectionId: z.ZodString;
60
- entityId: z.ZodString;
61
- instanceId: z.ZodString;
62
- }, z.core.$strip>, z.ZodObject<{
63
- generic_api_key: z.ZodString;
64
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
65
- connectionId: z.ZodString;
66
- entityId: z.ZodString;
67
- instanceId: z.ZodString;
68
- }, z.core.$strip>, z.ZodObject<{
69
- generic_api_key: z.ZodString;
70
- }, z.core.$strip>>]>;
52
+ declare const pexelsSearchPhotos: AppAction<typeof PexelsSearchPhotosInput, typeof PexelsSearchPhotosOutput, typeof pexels.credential>;
71
53
  //#endregion
72
54
  export { pexelsSearchPhotos };
73
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