@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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/collection-media.cjs +1 -0
- package/dist/actions/collection-media.cjs.map +1 -1
- package/dist/actions/collection-media.d.cts +3 -17
- package/dist/actions/collection-media.d.cts.map +1 -1
- package/dist/actions/collection-media.d.mts +3 -17
- package/dist/actions/collection-media.d.mts.map +1 -1
- package/dist/actions/collection-media.mjs +1 -0
- package/dist/actions/collection-media.mjs.map +1 -1
- package/dist/actions/curated-photos.cjs +1 -0
- package/dist/actions/curated-photos.cjs.map +1 -1
- package/dist/actions/curated-photos.d.cts +3 -16
- package/dist/actions/curated-photos.d.cts.map +1 -1
- package/dist/actions/curated-photos.d.mts +3 -16
- package/dist/actions/curated-photos.d.mts.map +1 -1
- package/dist/actions/curated-photos.mjs +1 -0
- package/dist/actions/curated-photos.mjs.map +1 -1
- package/dist/actions/featured-collections.cjs +1 -0
- package/dist/actions/featured-collections.cjs.map +1 -1
- package/dist/actions/featured-collections.d.cts +3 -16
- package/dist/actions/featured-collections.d.cts.map +1 -1
- package/dist/actions/featured-collections.d.mts +3 -16
- package/dist/actions/featured-collections.d.mts.map +1 -1
- package/dist/actions/featured-collections.mjs +1 -0
- package/dist/actions/featured-collections.mjs.map +1 -1
- package/dist/actions/get-photo.cjs +1 -0
- package/dist/actions/get-photo.cjs.map +1 -1
- package/dist/actions/get-photo.d.cts +3 -15
- package/dist/actions/get-photo.d.cts.map +1 -1
- package/dist/actions/get-photo.d.mts +3 -15
- package/dist/actions/get-photo.d.mts.map +1 -1
- package/dist/actions/get-photo.mjs +1 -0
- package/dist/actions/get-photo.mjs.map +1 -1
- package/dist/actions/get-video-by-id.cjs +1 -0
- package/dist/actions/get-video-by-id.cjs.map +1 -1
- package/dist/actions/get-video-by-id.d.cts +3 -15
- package/dist/actions/get-video-by-id.d.cts.map +1 -1
- package/dist/actions/get-video-by-id.d.mts +3 -15
- package/dist/actions/get-video-by-id.d.mts.map +1 -1
- package/dist/actions/get-video-by-id.mjs +1 -0
- package/dist/actions/get-video-by-id.mjs.map +1 -1
- package/dist/actions/my-collections.cjs +1 -0
- package/dist/actions/my-collections.cjs.map +1 -1
- package/dist/actions/my-collections.d.cts +3 -16
- package/dist/actions/my-collections.d.cts.map +1 -1
- package/dist/actions/my-collections.d.mts +3 -16
- package/dist/actions/my-collections.d.mts.map +1 -1
- package/dist/actions/my-collections.mjs +1 -0
- package/dist/actions/my-collections.mjs.map +1 -1
- package/dist/actions/popular-videos.cjs +1 -0
- package/dist/actions/popular-videos.cjs.map +1 -1
- package/dist/actions/popular-videos.d.cts +3 -16
- package/dist/actions/popular-videos.d.cts.map +1 -1
- package/dist/actions/popular-videos.d.mts +3 -16
- package/dist/actions/popular-videos.d.mts.map +1 -1
- package/dist/actions/popular-videos.mjs +1 -0
- package/dist/actions/popular-videos.mjs.map +1 -1
- package/dist/actions/search-photos.cjs +1 -0
- package/dist/actions/search-photos.cjs.map +1 -1
- package/dist/actions/search-photos.d.cts +4 -22
- package/dist/actions/search-photos.d.cts.map +1 -1
- package/dist/actions/search-photos.d.mts +4 -22
- package/dist/actions/search-photos.d.mts.map +1 -1
- package/dist/actions/search-photos.mjs +1 -0
- package/dist/actions/search-photos.mjs.map +1 -1
- package/dist/actions/search-videos.cjs +1 -0
- package/dist/actions/search-videos.cjs.map +1 -1
- package/dist/actions/search-videos.d.cts +4 -20
- package/dist/actions/search-videos.d.cts.map +1 -1
- package/dist/actions/search-videos.d.mts +4 -20
- package/dist/actions/search-videos.d.mts.map +1 -1
- package/dist/actions/search-videos.mjs +1 -0
- package/dist/actions/search-videos.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -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":"
|
|
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,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/G,aAAa,EAAE,KAAK;EAAC;EAAa;EAAY;CAAQ,CAAC,CAAC,CAAC,S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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,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlBsC,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,YAWO;AACV,CAAC"}
|
|
@@ -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":"
|
|
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,+CAA+C;AAC3D,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAA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AC,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,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-videos.d.ts
|
|
@@ -11,8 +13,8 @@ declare const PexelsSearchVideosInput: z.ZodObject<{
|
|
|
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,25 +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:
|
|
56
|
-
query: string;
|
|
57
|
-
page?: number | undefined;
|
|
58
|
-
size?: "small" | "large" | "medium" | undefined;
|
|
59
|
-
per_page?: number | undefined;
|
|
60
|
-
orientation?: "landscape" | "portrait" | "square" | undefined;
|
|
61
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
62
|
-
connectionId: z.ZodString;
|
|
63
|
-
entityId: z.ZodString;
|
|
64
|
-
instanceId: z.ZodString;
|
|
65
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
-
generic_api_key: z.ZodString;
|
|
67
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
68
|
-
connectionId: z.ZodString;
|
|
69
|
-
entityId: z.ZodString;
|
|
70
|
-
instanceId: z.ZodString;
|
|
71
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
-
generic_api_key: z.ZodString;
|
|
73
|
-
}, z.core.$strip>>]>;
|
|
57
|
+
declare const pexelsSearchVideos: AppAction<typeof PexelsSearchVideosInput, typeof PexelsSearchVideosOutput, typeof pexels.credential>;
|
|
74
58
|
//#endregion
|
|
75
59
|
export { pexelsSearchVideos };
|
|
76
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":"
|
|
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"}
|
|
@@ -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-videos.d.ts
|
|
@@ -11,8 +13,8 @@ declare const PexelsSearchVideosInput: z.ZodObject<{
|
|
|
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,25 +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:
|
|
56
|
-
query: string;
|
|
57
|
-
page?: number | undefined;
|
|
58
|
-
size?: "small" | "large" | "medium" | undefined;
|
|
59
|
-
per_page?: number | undefined;
|
|
60
|
-
orientation?: "landscape" | "portrait" | "square" | undefined;
|
|
61
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
62
|
-
connectionId: z.ZodString;
|
|
63
|
-
entityId: z.ZodString;
|
|
64
|
-
instanceId: z.ZodString;
|
|
65
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
-
generic_api_key: z.ZodString;
|
|
67
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
68
|
-
connectionId: z.ZodString;
|
|
69
|
-
entityId: z.ZodString;
|
|
70
|
-
instanceId: z.ZodString;
|
|
71
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
-
generic_api_key: z.ZodString;
|
|
73
|
-
}, z.core.$strip>>]>;
|
|
57
|
+
declare const pexelsSearchVideos: AppAction<typeof PexelsSearchVideosInput, typeof PexelsSearchVideosOutput, typeof pexels.credential>;
|
|
74
58
|
//#endregion
|
|
75
59
|
export { pexelsSearchVideos };
|
|
76
60
|
//# sourceMappingURL=search-videos.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-videos.d.mts","names":[],"sources":["../../src/actions/search-videos.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-videos.d.mts","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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-videos.mjs","names":[],"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":"
|
|
1
|
+
{"version":3,"file":"search-videos.mjs","names":[],"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,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAm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,kCAAkC,CAAC,CAAC,SAAS,uCAAuC;CACzG,gBAAgB,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,qDAAqD;AAC/H,CAAC,CAAC,CAAC,YAAY;AASf,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBsC,EAAE,OAAO;EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC/E,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,8CAA8C;EACvG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACpF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const pexels = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "pexels",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.pexels = pexels;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const pexels = defineApp({\n slug: \"pexels\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const pexels: KeystrokeApp<\"pexels\", typeof credential> = defineApp({\n slug: \"pexels\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAA8D;CACzE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const pexels: KeystrokeApp<"pexels", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { pexels };
|
|
13
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const pexels: KeystrokeApp<"pexels", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { pexels };
|
|
13
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const pexels = defineApp({\n slug: \"pexels\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const pexels: KeystrokeApp<\"pexels\", typeof credential> = defineApp({\n slug: \"pexels\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,SAAoD,UAAU;CACzE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { pexels } from "./app.cjs";
|
|
1
2
|
import { pexelsCollectionMedia } from "./actions/collection-media.cjs";
|
|
2
3
|
import { pexelsCuratedPhotos } from "./actions/curated-photos.cjs";
|
|
3
4
|
import { pexelsFeaturedCollections } from "./actions/featured-collections.cjs";
|
|
@@ -7,6 +8,5 @@ import { pexelsMyCollections } from "./actions/my-collections.cjs";
|
|
|
7
8
|
import { pexelsPopularVideos } from "./actions/popular-videos.cjs";
|
|
8
9
|
import { pexelsSearchPhotos } from "./actions/search-photos.cjs";
|
|
9
10
|
import { pexelsSearchVideos } from "./actions/search-videos.cjs";
|
|
10
|
-
import { pexels } from "./app.cjs";
|
|
11
11
|
import { pexelsCatalog } from "./catalog.cjs";
|
|
12
12
|
export { pexels, pexelsCatalog, pexelsCollectionMedia, pexelsCuratedPhotos, pexelsFeaturedCollections, pexelsGetPhoto, pexelsGetVideoById, pexelsMyCollections, pexelsPopularVideos, pexelsSearchPhotos, pexelsSearchVideos };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { pexels } from "./app.mjs";
|
|
1
2
|
import { pexelsCollectionMedia } from "./actions/collection-media.mjs";
|
|
2
3
|
import { pexelsCuratedPhotos } from "./actions/curated-photos.mjs";
|
|
3
4
|
import { pexelsFeaturedCollections } from "./actions/featured-collections.mjs";
|
|
@@ -7,6 +8,5 @@ import { pexelsMyCollections } from "./actions/my-collections.mjs";
|
|
|
7
8
|
import { pexelsPopularVideos } from "./actions/popular-videos.mjs";
|
|
8
9
|
import { pexelsSearchPhotos } from "./actions/search-photos.mjs";
|
|
9
10
|
import { pexelsSearchVideos } from "./actions/search-videos.mjs";
|
|
10
|
-
import { pexels } from "./app.mjs";
|
|
11
11
|
import { pexelsCatalog } from "./catalog.mjs";
|
|
12
12
|
export { pexels, pexelsCatalog, pexelsCollectionMedia, pexelsCuratedPhotos, pexelsFeaturedCollections, pexelsGetPhoto, pexelsGetVideoById, pexelsMyCollections, pexelsPopularVideos, pexelsSearchPhotos, pexelsSearchVideos };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/pexels",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|