@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
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["pexels","executePexelsTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pexels } from \"./app\";\nimport { executePexelsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["pexels","executePexelsTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { pexels } from \"./app\";\nimport { executePexelsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof pexels.credential> {\n return pexels.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePexelsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pexels } from \"./app\";\nimport { executePexelsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { pexels } from \"./app\";\nimport { executePexelsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof pexels.credential> {\n return pexels.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePexelsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-media.cjs","names":["z","action"],"sources":["../../src/actions/collection-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsCollectionMediaInput = z.object({\n id: z.string().describe(\"The unique identifier of the Pexels collection.\"),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80).\").optional(),\n}).describe(\"Request parameters to fetch media items from a Pexels collection.\");\nconst PexelsCollectionMedia_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"2x large photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n url: z.string().describe(\"User profile URL\").nullable(),\n name: z.string().describe(\"User name\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the video file\").nullable(),\n fps: z.number().describe(\"Frames per second\").nullable(),\n link: z.string().describe(\"URL to download the video file\").nullable(),\n size: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n width: z.number().int().describe(\"Video width in pixels\").nullable(),\n height: z.number().int().describe(\"Video height in pixels\").nullable(),\n quality: z.string().describe(\"Quality level (sd, hd, uhd)\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the preview picture\").nullable(),\n nr: z.number().int().describe(\"Preview picture number\").nullable(),\n picture: z.string().describe(\"URL to the preview picture\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_MediaItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the media\").nullable(),\n alt: z.string().describe(\"Alternate text for the photo\").nullable().optional(),\n src: PexelsCollectionMedia_PhotoSrcSchema.nullable().optional(),\n url: z.string().describe(\"URL to the media's Pexels page\").nullable(),\n type: z.string().describe(\"Media type: 'Photo' or 'Video'\").nullable(),\n user: PexelsCollectionMedia_VideoUserSchema.nullable().optional(),\n image: z.string().describe(\"Video thumbnail URL (videos only)\").nullable().optional(),\n liked: z.boolean().describe(\"Indicates if the photo is liked (photos only)\").nullable().optional(),\n width: z.number().int().describe(\"Media width in pixels\").nullable(),\n height: z.number().int().describe(\"Media height in pixels\").nullable(),\n duration: z.number().int().describe(\"Video duration in seconds (videos only)\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the media (hex code, may be null for videos)\").nullable().optional(),\n video_files: z.array(PexelsCollectionMedia_VideoFileSchema).describe(\"Available video files (videos only)\").nullable().optional(),\n photographer: z.string().describe(\"Photographer name (photos only)\").nullable().optional(),\n video_pictures: z.array(PexelsCollectionMedia_VideoPictureSchema).describe(\"Video preview pictures (videos only)\").nullable().optional(),\n photographer_id: z.number().int().describe(\"Photographer's ID (photos only)\").nullable().optional(),\n photographer_url: z.string().describe(\"Photographer's profile URL (photos only)\").nullable().optional(),\n}).passthrough().describe(\"A media item that can be either a Photo or a Video.\\nUses flexible fields to handle both types.\");\nexport const PexelsCollectionMediaOutput = z.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\n media: z.array(PexelsCollectionMedia_MediaItemSchema).describe(\"List of media items (photos and/or videos) in the collection\"),\n per_page: z.number().int().describe(\"Number of results per page returned\").nullable(),\n next_page: z.string().describe(\"URL for the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL for the previous page of results, if available\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of media items in the collection\").nullable(),\n}).passthrough();\n\nexport const pexelsCollectionMedia = action(\"PEXELS_COLLECTION_MEDIA\", {\n slug: \"pexels-collection-media\",\n name: \"Get Collection Media\",\n description: \"Tool to get all media within a collection by its ID. Use when you need to fetch paginated media from a specific collection.\",\n input: PexelsCollectionMediaInput,\n output: PexelsCollectionMediaOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-media.cjs","names":["z","action"],"sources":["../../src/actions/collection-media.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 PexelsCollectionMediaInput = z.object({\n id: z.string().describe(\"The unique identifier of the Pexels collection.\"),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80).\").optional(),\n}).describe(\"Request parameters to fetch media items from a Pexels collection.\");\nconst PexelsCollectionMedia_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"2x large photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n url: z.string().describe(\"User profile URL\").nullable(),\n name: z.string().describe(\"User name\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the video file\").nullable(),\n fps: z.number().describe(\"Frames per second\").nullable(),\n link: z.string().describe(\"URL to download the video file\").nullable(),\n size: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n width: z.number().int().describe(\"Video width in pixels\").nullable(),\n height: z.number().int().describe(\"Video height in pixels\").nullable(),\n quality: z.string().describe(\"Quality level (sd, hd, uhd)\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the preview picture\").nullable(),\n nr: z.number().int().describe(\"Preview picture number\").nullable(),\n picture: z.string().describe(\"URL to the preview picture\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_MediaItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the media\").nullable(),\n alt: z.string().describe(\"Alternate text for the photo\").nullable().optional(),\n src: PexelsCollectionMedia_PhotoSrcSchema.nullable().optional(),\n url: z.string().describe(\"URL to the media's Pexels page\").nullable(),\n type: z.string().describe(\"Media type: 'Photo' or 'Video'\").nullable(),\n user: PexelsCollectionMedia_VideoUserSchema.nullable().optional(),\n image: z.string().describe(\"Video thumbnail URL (videos only)\").nullable().optional(),\n liked: z.boolean().describe(\"Indicates if the photo is liked (photos only)\").nullable().optional(),\n width: z.number().int().describe(\"Media width in pixels\").nullable(),\n height: z.number().int().describe(\"Media height in pixels\").nullable(),\n duration: z.number().int().describe(\"Video duration in seconds (videos only)\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the media (hex code, may be null for videos)\").nullable().optional(),\n video_files: z.array(PexelsCollectionMedia_VideoFileSchema).describe(\"Available video files (videos only)\").nullable().optional(),\n photographer: z.string().describe(\"Photographer name (photos only)\").nullable().optional(),\n video_pictures: z.array(PexelsCollectionMedia_VideoPictureSchema).describe(\"Video preview pictures (videos only)\").nullable().optional(),\n photographer_id: z.number().int().describe(\"Photographer's ID (photos only)\").nullable().optional(),\n photographer_url: z.string().describe(\"Photographer's profile URL (photos only)\").nullable().optional(),\n}).passthrough().describe(\"A media item that can be either a Photo or a Video.\\nUses flexible fields to handle both types.\");\nexport const PexelsCollectionMediaOutput = z.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\n media: z.array(PexelsCollectionMedia_MediaItemSchema).describe(\"List of media items (photos and/or videos) in the collection\"),\n per_page: z.number().int().describe(\"Number of results per page returned\").nullable(),\n next_page: z.string().describe(\"URL for the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL for the previous page of results, if available\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of media items in the collection\").nullable(),\n}).passthrough();\n\nexport const pexelsCollectionMedia: AppAction<\n typeof PexelsCollectionMediaInput,\n typeof PexelsCollectionMediaOutput,\n typeof pexels.credential\n> = action(\"PEXELS_COLLECTION_MEDIA\", {\n slug: \"pexels-collection-media\",\n name: \"Get Collection Media\",\n description: \"Tool to get all media within a collection by its ID. Use when you need to fetch paginated media from a specific collection.\",\n input: PexelsCollectionMediaInput,\n output: PexelsCollectionMediaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,C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,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,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/collection-media.d.ts
|
|
@@ -58,23 +60,7 @@ declare const PexelsCollectionMediaOutput: z.ZodObject<{
|
|
|
58
60
|
prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
61
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
60
62
|
}, z.core.$loose>;
|
|
61
|
-
declare const pexelsCollectionMedia:
|
|
62
|
-
id: string;
|
|
63
|
-
page?: number | undefined;
|
|
64
|
-
per_page?: number | undefined;
|
|
65
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
66
|
-
connectionId: z.ZodString;
|
|
67
|
-
entityId: z.ZodString;
|
|
68
|
-
instanceId: z.ZodString;
|
|
69
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
-
generic_api_key: z.ZodString;
|
|
71
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
72
|
-
connectionId: z.ZodString;
|
|
73
|
-
entityId: z.ZodString;
|
|
74
|
-
instanceId: z.ZodString;
|
|
75
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
-
generic_api_key: z.ZodString;
|
|
77
|
-
}, z.core.$strip>>]>;
|
|
63
|
+
declare const pexelsCollectionMedia: AppAction<typeof PexelsCollectionMediaInput, typeof PexelsCollectionMediaOutput, typeof pexels.credential>;
|
|
78
64
|
//#endregion
|
|
79
65
|
export { pexelsCollectionMedia };
|
|
80
66
|
//# sourceMappingURL=collection-media.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-media.d.cts","names":[],"sources":["../../src/actions/collection-media.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-media.d.cts","names":[],"sources":["../../src/actions/collection-media.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAsD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/collection-media.d.ts
|
|
@@ -58,23 +60,7 @@ declare const PexelsCollectionMediaOutput: z.ZodObject<{
|
|
|
58
60
|
prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
61
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
60
62
|
}, z.core.$loose>;
|
|
61
|
-
declare const pexelsCollectionMedia:
|
|
62
|
-
id: string;
|
|
63
|
-
page?: number | undefined;
|
|
64
|
-
per_page?: number | undefined;
|
|
65
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
66
|
-
connectionId: z.ZodString;
|
|
67
|
-
entityId: z.ZodString;
|
|
68
|
-
instanceId: z.ZodString;
|
|
69
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
-
generic_api_key: z.ZodString;
|
|
71
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
72
|
-
connectionId: z.ZodString;
|
|
73
|
-
entityId: z.ZodString;
|
|
74
|
-
instanceId: z.ZodString;
|
|
75
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
-
generic_api_key: z.ZodString;
|
|
77
|
-
}, z.core.$strip>>]>;
|
|
63
|
+
declare const pexelsCollectionMedia: AppAction<typeof PexelsCollectionMediaInput, typeof PexelsCollectionMediaOutput, typeof pexels.credential>;
|
|
78
64
|
//#endregion
|
|
79
65
|
export { pexelsCollectionMedia };
|
|
80
66
|
//# sourceMappingURL=collection-media.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-media.d.mts","names":[],"sources":["../../src/actions/collection-media.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-media.d.mts","names":[],"sources":["../../src/actions/collection-media.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAsD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAS3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-media.mjs","names":[],"sources":["../../src/actions/collection-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsCollectionMediaInput = z.object({\n id: z.string().describe(\"The unique identifier of the Pexels collection.\"),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80).\").optional(),\n}).describe(\"Request parameters to fetch media items from a Pexels collection.\");\nconst PexelsCollectionMedia_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"2x large photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n url: z.string().describe(\"User profile URL\").nullable(),\n name: z.string().describe(\"User name\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the video file\").nullable(),\n fps: z.number().describe(\"Frames per second\").nullable(),\n link: z.string().describe(\"URL to download the video file\").nullable(),\n size: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n width: z.number().int().describe(\"Video width in pixels\").nullable(),\n height: z.number().int().describe(\"Video height in pixels\").nullable(),\n quality: z.string().describe(\"Quality level (sd, hd, uhd)\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the preview picture\").nullable(),\n nr: z.number().int().describe(\"Preview picture number\").nullable(),\n picture: z.string().describe(\"URL to the preview picture\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_MediaItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the media\").nullable(),\n alt: z.string().describe(\"Alternate text for the photo\").nullable().optional(),\n src: PexelsCollectionMedia_PhotoSrcSchema.nullable().optional(),\n url: z.string().describe(\"URL to the media's Pexels page\").nullable(),\n type: z.string().describe(\"Media type: 'Photo' or 'Video'\").nullable(),\n user: PexelsCollectionMedia_VideoUserSchema.nullable().optional(),\n image: z.string().describe(\"Video thumbnail URL (videos only)\").nullable().optional(),\n liked: z.boolean().describe(\"Indicates if the photo is liked (photos only)\").nullable().optional(),\n width: z.number().int().describe(\"Media width in pixels\").nullable(),\n height: z.number().int().describe(\"Media height in pixels\").nullable(),\n duration: z.number().int().describe(\"Video duration in seconds (videos only)\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the media (hex code, may be null for videos)\").nullable().optional(),\n video_files: z.array(PexelsCollectionMedia_VideoFileSchema).describe(\"Available video files (videos only)\").nullable().optional(),\n photographer: z.string().describe(\"Photographer name (photos only)\").nullable().optional(),\n video_pictures: z.array(PexelsCollectionMedia_VideoPictureSchema).describe(\"Video preview pictures (videos only)\").nullable().optional(),\n photographer_id: z.number().int().describe(\"Photographer's ID (photos only)\").nullable().optional(),\n photographer_url: z.string().describe(\"Photographer's profile URL (photos only)\").nullable().optional(),\n}).passthrough().describe(\"A media item that can be either a Photo or a Video.\\nUses flexible fields to handle both types.\");\nexport const PexelsCollectionMediaOutput = z.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\n media: z.array(PexelsCollectionMedia_MediaItemSchema).describe(\"List of media items (photos and/or videos) in the collection\"),\n per_page: z.number().int().describe(\"Number of results per page returned\").nullable(),\n next_page: z.string().describe(\"URL for the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL for the previous page of results, if available\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of media items in the collection\").nullable(),\n}).passthrough();\n\nexport const pexelsCollectionMedia = action(\"PEXELS_COLLECTION_MEDIA\", {\n slug: \"pexels-collection-media\",\n name: \"Get Collection Media\",\n description: \"Tool to get all media within a collection by its ID. Use when you need to fetch paginated media from a specific collection.\",\n input: PexelsCollectionMediaInput,\n output: PexelsCollectionMediaOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-media.mjs","names":[],"sources":["../../src/actions/collection-media.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 PexelsCollectionMediaInput = z.object({\n id: z.string().describe(\"The unique identifier of the Pexels collection.\"),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80).\").optional(),\n}).describe(\"Request parameters to fetch media items from a Pexels collection.\");\nconst PexelsCollectionMedia_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"2x large photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n url: z.string().describe(\"User profile URL\").nullable(),\n name: z.string().describe(\"User name\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoFileSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the video file\").nullable(),\n fps: z.number().describe(\"Frames per second\").nullable(),\n link: z.string().describe(\"URL to download the video file\").nullable(),\n size: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n width: z.number().int().describe(\"Video width in pixels\").nullable(),\n height: z.number().int().describe(\"Video height in pixels\").nullable(),\n quality: z.string().describe(\"Quality level (sd, hd, uhd)\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_VideoPictureSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the preview picture\").nullable(),\n nr: z.number().int().describe(\"Preview picture number\").nullable(),\n picture: z.string().describe(\"URL to the preview picture\").nullable(),\n}).passthrough();\nconst PexelsCollectionMedia_MediaItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the media\").nullable(),\n alt: z.string().describe(\"Alternate text for the photo\").nullable().optional(),\n src: PexelsCollectionMedia_PhotoSrcSchema.nullable().optional(),\n url: z.string().describe(\"URL to the media's Pexels page\").nullable(),\n type: z.string().describe(\"Media type: 'Photo' or 'Video'\").nullable(),\n user: PexelsCollectionMedia_VideoUserSchema.nullable().optional(),\n image: z.string().describe(\"Video thumbnail URL (videos only)\").nullable().optional(),\n liked: z.boolean().describe(\"Indicates if the photo is liked (photos only)\").nullable().optional(),\n width: z.number().int().describe(\"Media width in pixels\").nullable(),\n height: z.number().int().describe(\"Media height in pixels\").nullable(),\n duration: z.number().int().describe(\"Video duration in seconds (videos only)\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the media (hex code, may be null for videos)\").nullable().optional(),\n video_files: z.array(PexelsCollectionMedia_VideoFileSchema).describe(\"Available video files (videos only)\").nullable().optional(),\n photographer: z.string().describe(\"Photographer name (photos only)\").nullable().optional(),\n video_pictures: z.array(PexelsCollectionMedia_VideoPictureSchema).describe(\"Video preview pictures (videos only)\").nullable().optional(),\n photographer_id: z.number().int().describe(\"Photographer's ID (photos only)\").nullable().optional(),\n photographer_url: z.string().describe(\"Photographer's profile URL (photos only)\").nullable().optional(),\n}).passthrough().describe(\"A media item that can be either a Photo or a Video.\\nUses flexible fields to handle both types.\");\nexport const PexelsCollectionMediaOutput = z.object({\n page: z.number().int().describe(\"Current page number returned\").nullable(),\n media: z.array(PexelsCollectionMedia_MediaItemSchema).describe(\"List of media items (photos and/or videos) in the collection\"),\n per_page: z.number().int().describe(\"Number of results per page returned\").nullable(),\n next_page: z.string().describe(\"URL for the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL for the previous page of results, if available\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of media items in the collection\").nullable(),\n}).passthrough();\n\nexport const pexelsCollectionMedia: AppAction<\n typeof PexelsCollectionMediaInput,\n typeof PexelsCollectionMediaOutput,\n typeof pexels.credential\n> = action(\"PEXELS_COLLECTION_MEDIA\", {\n slug: \"pexels-collection-media\",\n name: \"Get Collection Media\",\n description: \"Tool to get all media within a collection by its ID. Use when you need to fetch paginated media from a specific collection.\",\n input: PexelsCollectionMediaInput,\n output: PexelsCollectionMediaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,SAAS;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAA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C,SAAS;CAClG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iGAAiG;AAU3H,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACzE,OAAO,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,8DAA8D;EAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curated-photos.cjs","names":["z","action"],"sources":["../../src/actions/curated-photos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsCuratedPhotosInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve (min 1). Defaults to Pexels API default of 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page (min 1, max 80). Defaults to Pexels API default of 15.\").optional(),\n}).describe(\"Request parameters for fetching curated photos from Pexels.\");\nconst PexelsCuratedPhotos_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"URL of the tiny image.\").nullable(),\n large: z.string().describe(\"URL of the large image.\").nullable(),\n small: z.string().describe(\"URL of the small image.\").nullable(),\n medium: z.string().describe(\"URL of the medium image.\").nullable(),\n large2x: z.string().describe(\"URL of the large2x image.\").nullable(),\n original: z.string().describe(\"URL of the original image.\").nullable(),\n portrait: z.string().describe(\"URL of the portrait image.\").nullable(),\n landscape: z.string().describe(\"URL of the landscape image.\").nullable(),\n}).passthrough();\nconst PexelsCuratedPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo.\").nullable(),\n alt: z.string().describe(\"Alternative text for the photo.\").nullable(),\n src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL of the photo page on Pexels.\").nullable(),\n liked: z.boolean().describe(\"Whether the user has liked the photo.\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels.\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in HEX format.\").nullable(),\n photographer: z.string().describe(\"Name of the photographer.\").nullable(),\n photographer_id: z.number().int().describe(\"ID of the photographer.\").nullable(),\n photographer_url: z.string().describe(\"URL to the photographer's profile.\").nullable(),\n}).passthrough();\nexport const PexelsCuratedPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\n photos: z.array(PexelsCuratedPhotos_PhotoSchema).describe(\"List of curated photo objects.\"),\n per_page: z.number().int().describe(\"Number of results returned per page.\").nullable(),\n next_page: z.string().describe(\"URL to the next page of results, if available.\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of curated photos available.\").nullable(),\n}).passthrough();\n\nexport const pexelsCuratedPhotos = action(\"PEXELS_CURATED_PHOTOS\", {\n slug: \"pexels-curated-photos\",\n name: \"Get Curated Photos\",\n description: \"Tool to get real-time curated photos. Use when you need to fetch curated photos with pagination support.\",\n input: PexelsCuratedPhotosInput,\n output: PexelsCuratedPhotosOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"curated-photos.cjs","names":["z","action"],"sources":["../../src/actions/curated-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 PexelsCuratedPhotosInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve (min 1). Defaults to Pexels API default of 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page (min 1, max 80). Defaults to Pexels API default of 15.\").optional(),\n}).describe(\"Request parameters for fetching curated photos from Pexels.\");\nconst PexelsCuratedPhotos_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"URL of the tiny image.\").nullable(),\n large: z.string().describe(\"URL of the large image.\").nullable(),\n small: z.string().describe(\"URL of the small image.\").nullable(),\n medium: z.string().describe(\"URL of the medium image.\").nullable(),\n large2x: z.string().describe(\"URL of the large2x image.\").nullable(),\n original: z.string().describe(\"URL of the original image.\").nullable(),\n portrait: z.string().describe(\"URL of the portrait image.\").nullable(),\n landscape: z.string().describe(\"URL of the landscape image.\").nullable(),\n}).passthrough();\nconst PexelsCuratedPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo.\").nullable(),\n alt: z.string().describe(\"Alternative text for the photo.\").nullable(),\n src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL of the photo page on Pexels.\").nullable(),\n liked: z.boolean().describe(\"Whether the user has liked the photo.\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels.\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in HEX format.\").nullable(),\n photographer: z.string().describe(\"Name of the photographer.\").nullable(),\n photographer_id: z.number().int().describe(\"ID of the photographer.\").nullable(),\n photographer_url: z.string().describe(\"URL to the photographer's profile.\").nullable(),\n}).passthrough();\nexport const PexelsCuratedPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\n photos: z.array(PexelsCuratedPhotos_PhotoSchema).describe(\"List of curated photo objects.\"),\n per_page: z.number().int().describe(\"Number of results returned per page.\").nullable(),\n next_page: z.string().describe(\"URL to the next page of results, if available.\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of curated photos available.\").nullable(),\n}).passthrough();\n\nexport const pexelsCuratedPhotos: AppAction<\n typeof PexelsCuratedPhotosInput,\n typeof PexelsCuratedPhotosOutput,\n typeof pexels.credential\n> = action(\"PEXELS_CURATED_PHOTOS\", {\n slug: \"pexels-curated-photos\",\n name: \"Get Curated Photos\",\n description: \"Tool to get real-time curated photos. Use when you need to fetch curated photos with pagination support.\",\n input: PexelsCuratedPhotosInput,\n output: PexelsCuratedPhotosOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,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CACjE,QAAQA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,gCAAgC;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,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/curated-photos.d.ts
|
|
@@ -33,22 +35,7 @@ declare const PexelsCuratedPhotosOutput: z.ZodObject<{
|
|
|
33
35
|
next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
36
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
35
37
|
}, z.core.$loose>;
|
|
36
|
-
declare const pexelsCuratedPhotos:
|
|
37
|
-
page?: number | undefined;
|
|
38
|
-
per_page?: number | undefined;
|
|
39
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
generic_api_key: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
46
|
-
connectionId: z.ZodString;
|
|
47
|
-
entityId: z.ZodString;
|
|
48
|
-
instanceId: z.ZodString;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>;
|
|
38
|
+
declare const pexelsCuratedPhotos: AppAction<typeof PexelsCuratedPhotosInput, typeof PexelsCuratedPhotosOutput, typeof pexels.credential>;
|
|
52
39
|
//#endregion
|
|
53
40
|
export { pexelsCuratedPhotos };
|
|
54
41
|
//# sourceMappingURL=curated-photos.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curated-photos.d.cts","names":[],"sources":["../../src/actions/curated-photos.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"curated-photos.d.cts","names":[],"sources":["../../src/actions/curated-photos.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA2BxB,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/curated-photos.d.ts
|
|
@@ -33,22 +35,7 @@ declare const PexelsCuratedPhotosOutput: z.ZodObject<{
|
|
|
33
35
|
next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
36
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
35
37
|
}, z.core.$loose>;
|
|
36
|
-
declare const pexelsCuratedPhotos:
|
|
37
|
-
page?: number | undefined;
|
|
38
|
-
per_page?: number | undefined;
|
|
39
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
generic_api_key: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
46
|
-
connectionId: z.ZodString;
|
|
47
|
-
entityId: z.ZodString;
|
|
48
|
-
instanceId: z.ZodString;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>;
|
|
38
|
+
declare const pexelsCuratedPhotos: AppAction<typeof PexelsCuratedPhotosInput, typeof PexelsCuratedPhotosOutput, typeof pexels.credential>;
|
|
52
39
|
//#endregion
|
|
53
40
|
export { pexelsCuratedPhotos };
|
|
54
41
|
//# sourceMappingURL=curated-photos.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curated-photos.d.mts","names":[],"sources":["../../src/actions/curated-photos.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"curated-photos.d.mts","names":[],"sources":["../../src/actions/curated-photos.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curated-photos.mjs","names":[],"sources":["../../src/actions/curated-photos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsCuratedPhotosInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve (min 1). Defaults to Pexels API default of 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page (min 1, max 80). Defaults to Pexels API default of 15.\").optional(),\n}).describe(\"Request parameters for fetching curated photos from Pexels.\");\nconst PexelsCuratedPhotos_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"URL of the tiny image.\").nullable(),\n large: z.string().describe(\"URL of the large image.\").nullable(),\n small: z.string().describe(\"URL of the small image.\").nullable(),\n medium: z.string().describe(\"URL of the medium image.\").nullable(),\n large2x: z.string().describe(\"URL of the large2x image.\").nullable(),\n original: z.string().describe(\"URL of the original image.\").nullable(),\n portrait: z.string().describe(\"URL of the portrait image.\").nullable(),\n landscape: z.string().describe(\"URL of the landscape image.\").nullable(),\n}).passthrough();\nconst PexelsCuratedPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo.\").nullable(),\n alt: z.string().describe(\"Alternative text for the photo.\").nullable(),\n src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL of the photo page on Pexels.\").nullable(),\n liked: z.boolean().describe(\"Whether the user has liked the photo.\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels.\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in HEX format.\").nullable(),\n photographer: z.string().describe(\"Name of the photographer.\").nullable(),\n photographer_id: z.number().int().describe(\"ID of the photographer.\").nullable(),\n photographer_url: z.string().describe(\"URL to the photographer's profile.\").nullable(),\n}).passthrough();\nexport const PexelsCuratedPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\n photos: z.array(PexelsCuratedPhotos_PhotoSchema).describe(\"List of curated photo objects.\"),\n per_page: z.number().int().describe(\"Number of results returned per page.\").nullable(),\n next_page: z.string().describe(\"URL to the next page of results, if available.\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of curated photos available.\").nullable(),\n}).passthrough();\n\nexport const pexelsCuratedPhotos = action(\"PEXELS_CURATED_PHOTOS\", {\n slug: \"pexels-curated-photos\",\n name: \"Get Curated Photos\",\n description: \"Tool to get real-time curated photos. Use when you need to fetch curated photos with pagination support.\",\n input: PexelsCuratedPhotosInput,\n output: PexelsCuratedPhotosOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"curated-photos.mjs","names":[],"sources":["../../src/actions/curated-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 PexelsCuratedPhotosInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve (min 1). Defaults to Pexels API default of 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page (min 1, max 80). Defaults to Pexels API default of 15.\").optional(),\n}).describe(\"Request parameters for fetching curated photos from Pexels.\");\nconst PexelsCuratedPhotos_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"URL of the tiny image.\").nullable(),\n large: z.string().describe(\"URL of the large image.\").nullable(),\n small: z.string().describe(\"URL of the small image.\").nullable(),\n medium: z.string().describe(\"URL of the medium image.\").nullable(),\n large2x: z.string().describe(\"URL of the large2x image.\").nullable(),\n original: z.string().describe(\"URL of the original image.\").nullable(),\n portrait: z.string().describe(\"URL of the portrait image.\").nullable(),\n landscape: z.string().describe(\"URL of the landscape image.\").nullable(),\n}).passthrough();\nconst PexelsCuratedPhotos_PhotoSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo.\").nullable(),\n alt: z.string().describe(\"Alternative text for the photo.\").nullable(),\n src: PexelsCuratedPhotos_PhotoSrcSchema.nullable(),\n url: z.string().describe(\"URL of the photo page on Pexels.\").nullable(),\n liked: z.boolean().describe(\"Whether the user has liked the photo.\").nullable(),\n width: z.number().int().describe(\"Width of the photo in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the photo in pixels.\").nullable(),\n avg_color: z.string().describe(\"Average color of the photo in HEX format.\").nullable(),\n photographer: z.string().describe(\"Name of the photographer.\").nullable(),\n photographer_id: z.number().int().describe(\"ID of the photographer.\").nullable(),\n photographer_url: z.string().describe(\"URL to the photographer's profile.\").nullable(),\n}).passthrough();\nexport const PexelsCuratedPhotosOutput = z.object({\n page: z.number().int().describe(\"Current page number.\").nullable(),\n photos: z.array(PexelsCuratedPhotos_PhotoSchema).describe(\"List of curated photo objects.\"),\n per_page: z.number().int().describe(\"Number of results returned per page.\").nullable(),\n next_page: z.string().describe(\"URL to the next page of results, if available.\").nullable().optional(),\n total_results: z.number().int().describe(\"Total number of curated photos available.\").nullable(),\n}).passthrough();\n\nexport const pexelsCuratedPhotos: AppAction<\n typeof PexelsCuratedPhotosInput,\n typeof PexelsCuratedPhotosOutput,\n typeof pexels.credential\n> = action(\"PEXELS_CURATED_PHOTOS\", {\n slug: \"pexels-curated-photos\",\n name: \"Get Curated Photos\",\n description: \"Tool to get real-time curated photos. Use when you need to fetch curated photos with pagination support.\",\n input: PexelsCuratedPhotosInput,\n output: PexelsCuratedPhotosOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC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AC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACjE,QAAQ,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,gCAAgC;EAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-collections.cjs","names":["z","action"],"sources":["../../src/actions/featured-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsFeaturedCollectionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80). Defaults to 15.\").optional(),\n}).describe(\"Parameters to retrieve featured collections on Pexels.\");\nconst PexelsFeaturedCollections_FeaturedCollectionSchema = z.object({\n id: z.string().describe(\"Collection ID (alphanumeric string)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\n description: z.string().describe(\"Description of the collection\").nullable().optional(),\n media_count: z.number().int().describe(\"Total number of media items in the collection\").nullable(),\n photos_count: z.number().int().describe(\"Number of photos in the collection\").nullable(),\n videos_count: z.number().int().describe(\"Number of videos in the collection\").nullable(),\n}).passthrough().describe(\"A single featured collection object.\");\nexport const PexelsFeaturedCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of results per page\").nullable(),\n next_page: z.string().describe(\"URL to the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL to the previous page of results, if available\").nullable().optional(),\n collections: z.array(PexelsFeaturedCollections_FeaturedCollectionSchema).describe(\"List of featured collections\"),\n total_results: z.number().int().describe(\"Total number of featured collections available\").nullable(),\n}).passthrough().describe(\"Response model for featured collections, including pagination.\");\n\nexport const pexelsFeaturedCollections = action(\"PEXELS_FEATURED_COLLECTIONS\", {\n slug: \"pexels-featured-collections\",\n name: \"Featured Collections\",\n description: \"Tool to get featured collections. Use when you need curated collections of photos and videos with pagination support.\",\n input: PexelsFeaturedCollectionsInput,\n output: PexelsFeaturedCollectionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"featured-collections.cjs","names":["z","action"],"sources":["../../src/actions/featured-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 PexelsFeaturedCollectionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80). Defaults to 15.\").optional(),\n}).describe(\"Parameters to retrieve featured collections on Pexels.\");\nconst PexelsFeaturedCollections_FeaturedCollectionSchema = z.object({\n id: z.string().describe(\"Collection ID (alphanumeric string)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\n description: z.string().describe(\"Description of the collection\").nullable().optional(),\n media_count: z.number().int().describe(\"Total number of media items in the collection\").nullable(),\n photos_count: z.number().int().describe(\"Number of photos in the collection\").nullable(),\n videos_count: z.number().int().describe(\"Number of videos in the collection\").nullable(),\n}).passthrough().describe(\"A single featured collection object.\");\nexport const PexelsFeaturedCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of results per page\").nullable(),\n next_page: z.string().describe(\"URL to the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL to the previous page of results, if available\").nullable().optional(),\n collections: z.array(PexelsFeaturedCollections_FeaturedCollectionSchema).describe(\"List of featured collections\"),\n total_results: z.number().int().describe(\"Total number of featured collections available\").nullable(),\n}).passthrough().describe(\"Response model for featured collections, including pagination.\");\n\nexport const pexelsFeaturedCollections: AppAction<\n typeof PexelsFeaturedCollectionsInput,\n typeof PexelsFeaturedCollectionsOutput,\n typeof pexels.credential\n> = action(\"PEXELS_FEATURED_COLLECTIONS\", {\n slug: \"pexels-featured-collections\",\n name: \"Featured Collections\",\n description: \"Tool to get featured collections. Use when you need curated collections of photos and videos with pagination support.\",\n input: PexelsFeaturedCollectionsInput,\n output: PexelsFeaturedCollectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,8BAA8B;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,4BAITC,eAAAA,OAAO,+BAA+B;CACxC,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/featured-collections.d.ts
|
|
@@ -21,22 +23,7 @@ declare const PexelsFeaturedCollectionsOutput: z.ZodObject<{
|
|
|
21
23
|
}, z.core.$loose>>;
|
|
22
24
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const pexelsFeaturedCollections:
|
|
25
|
-
page?: number | undefined;
|
|
26
|
-
per_page?: number | undefined;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const pexelsFeaturedCollections: AppAction<typeof PexelsFeaturedCollectionsInput, typeof PexelsFeaturedCollectionsOutput, typeof pexels.credential>;
|
|
40
27
|
//#endregion
|
|
41
28
|
export { pexelsFeaturedCollections };
|
|
42
29
|
//# sourceMappingURL=featured-collections.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-collections.d.cts","names":[],"sources":["../../src/actions/featured-collections.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"featured-collections.d.cts","names":[],"sources":["../../src/actions/featured-collections.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAS/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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/featured-collections.d.ts
|
|
@@ -21,22 +23,7 @@ declare const PexelsFeaturedCollectionsOutput: z.ZodObject<{
|
|
|
21
23
|
}, z.core.$loose>>;
|
|
22
24
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const pexelsFeaturedCollections:
|
|
25
|
-
page?: number | undefined;
|
|
26
|
-
per_page?: number | undefined;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"pexels", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const pexelsFeaturedCollections: AppAction<typeof PexelsFeaturedCollectionsInput, typeof PexelsFeaturedCollectionsOutput, typeof pexels.credential>;
|
|
40
27
|
//#endregion
|
|
41
28
|
export { pexelsFeaturedCollections };
|
|
42
29
|
//# sourceMappingURL=featured-collections.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-collections.d.mts","names":[],"sources":["../../src/actions/featured-collections.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"featured-collections.d.mts","names":[],"sources":["../../src/actions/featured-collections.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAS/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featured-collections.mjs","names":[],"sources":["../../src/actions/featured-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsFeaturedCollectionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80). Defaults to 15.\").optional(),\n}).describe(\"Parameters to retrieve featured collections on Pexels.\");\nconst PexelsFeaturedCollections_FeaturedCollectionSchema = z.object({\n id: z.string().describe(\"Collection ID (alphanumeric string)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\n description: z.string().describe(\"Description of the collection\").nullable().optional(),\n media_count: z.number().int().describe(\"Total number of media items in the collection\").nullable(),\n photos_count: z.number().int().describe(\"Number of photos in the collection\").nullable(),\n videos_count: z.number().int().describe(\"Number of videos in the collection\").nullable(),\n}).passthrough().describe(\"A single featured collection object.\");\nexport const PexelsFeaturedCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of results per page\").nullable(),\n next_page: z.string().describe(\"URL to the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL to the previous page of results, if available\").nullable().optional(),\n collections: z.array(PexelsFeaturedCollections_FeaturedCollectionSchema).describe(\"List of featured collections\"),\n total_results: z.number().int().describe(\"Total number of featured collections available\").nullable(),\n}).passthrough().describe(\"Response model for featured collections, including pagination.\");\n\nexport const pexelsFeaturedCollections = action(\"PEXELS_FEATURED_COLLECTIONS\", {\n slug: \"pexels-featured-collections\",\n name: \"Featured Collections\",\n description: \"Tool to get featured collections. Use when you need curated collections of photos and videos with pagination support.\",\n input: PexelsFeaturedCollectionsInput,\n output: PexelsFeaturedCollectionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"featured-collections.mjs","names":[],"sources":["../../src/actions/featured-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 PexelsFeaturedCollectionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of results to retrieve, must be >= 1.\").optional(),\n per_page: z.number().int().default(15).describe(\"Number of results per page (1-80). Defaults to 15.\").optional(),\n}).describe(\"Parameters to retrieve featured collections on Pexels.\");\nconst PexelsFeaturedCollections_FeaturedCollectionSchema = z.object({\n id: z.string().describe(\"Collection ID (alphanumeric string)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\n private: z.boolean().describe(\"Whether the collection is private\").nullable(),\n description: z.string().describe(\"Description of the collection\").nullable().optional(),\n media_count: z.number().int().describe(\"Total number of media items in the collection\").nullable(),\n photos_count: z.number().int().describe(\"Number of photos in the collection\").nullable(),\n videos_count: z.number().int().describe(\"Number of videos in the collection\").nullable(),\n}).passthrough().describe(\"A single featured collection object.\");\nexport const PexelsFeaturedCollectionsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n per_page: z.number().int().describe(\"Number of results per page\").nullable(),\n next_page: z.string().describe(\"URL to the next page of results, if available\").nullable().optional(),\n prev_page: z.string().describe(\"URL to the previous page of results, if available\").nullable().optional(),\n collections: z.array(PexelsFeaturedCollections_FeaturedCollectionSchema).describe(\"List of featured collections\"),\n total_results: z.number().int().describe(\"Total number of featured collections available\").nullable(),\n}).passthrough().describe(\"Response model for featured collections, including pagination.\");\n\nexport const pexelsFeaturedCollections: AppAction<\n typeof PexelsFeaturedCollectionsInput,\n typeof PexelsFeaturedCollectionsOutput,\n typeof pexels.credential\n> = action(\"PEXELS_FEATURED_COLLECTIONS\", {\n slug: \"pexels-featured-collections\",\n name: \"Featured Collections\",\n description: \"Tool to get featured collections. Use when you need curated collections of photos and videos with pagination support.\",\n input: PexelsFeaturedCollectionsInput,\n output: PexelsFeaturedCollectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,qDAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAUhE,MAAa,4BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlB6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAChE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,aAAa,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,8BAA8B;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-photo.cjs","names":["z","action"],"sources":["../../src/actions/get-photo.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsGetPhotoInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the photo to retrieve\"),\n}).describe(\"Request schema for retrieving a specific photo by its ID.\");\nconst PexelsGetPhoto_PhotoSrcSchema = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\").nullable(),\n large: z.string().describe(\"Large size photo URL\").nullable(),\n small: z.string().describe(\"Small size photo URL\").nullable(),\n medium: z.string().describe(\"Medium size photo URL\").nullable(),\n large2x: z.string().describe(\"Double-resolution large size photo URL\").nullable(),\n original: z.string().describe(\"Original size photo URL\").nullable(),\n portrait: z.string().describe(\"Portrait orientation photo URL\").nullable(),\n landscape: z.string().describe(\"Landscape orientation photo URL\").nullable(),\n}).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":"
|
|
1
|
+
{"version":3,"file":"get-photo.cjs","names":["z","action"],"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,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAA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EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACvE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,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-photo.d.ts
|
|
@@ -26,21 +28,7 @@ declare const PexelsGetPhotoOutput: z.ZodObject<{
|
|
|
26
28
|
photographer_id: z.ZodNullable<z.ZodNumber>;
|
|
27
29
|
photographer_url: z.ZodNullable<z.ZodString>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const pexelsGetPhoto:
|
|
30
|
-
id: number;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<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>>]>, 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>>]>;
|
|
31
|
+
declare const pexelsGetPhoto: AppAction<typeof PexelsGetPhotoInput, typeof PexelsGetPhotoOutput, typeof pexels.credential>;
|
|
44
32
|
//#endregion
|
|
45
33
|
export { pexelsGetPhoto };
|
|
46
34
|
//# sourceMappingURL=get-photo.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-photo.d.cts","names":[],"sources":["../../src/actions/get-photo.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-photo.d.cts","names":[],"sources":["../../src/actions/get-photo.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAanB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAcpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,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-photo.d.ts
|
|
@@ -26,21 +28,7 @@ declare const PexelsGetPhotoOutput: z.ZodObject<{
|
|
|
26
28
|
photographer_id: z.ZodNullable<z.ZodNumber>;
|
|
27
29
|
photographer_url: z.ZodNullable<z.ZodString>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const pexelsGetPhoto:
|
|
30
|
-
id: number;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<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>>]>, 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>>]>;
|
|
31
|
+
declare const pexelsGetPhoto: AppAction<typeof PexelsGetPhotoInput, typeof PexelsGetPhotoOutput, typeof pexels.credential>;
|
|
44
32
|
//#endregion
|
|
45
33
|
export { pexelsGetPhoto };
|
|
46
34
|
//# sourceMappingURL=get-photo.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-photo.d.mts","names":[],"sources":["../../src/actions/get-photo.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-photo.d.mts","names":[],"sources":["../../src/actions/get-photo.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAanB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAcpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,MAAA,CAAO,UAAA"}
|