@keystrokehq/pexels 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/collection-media.cjs +29 -29
  4. package/dist/actions/collection-media.cjs.map +1 -1
  5. package/dist/actions/collection-media.d.cts +62 -3
  6. package/dist/actions/collection-media.d.cts.map +1 -1
  7. package/dist/actions/collection-media.d.mts +62 -3
  8. package/dist/actions/collection-media.d.mts.map +1 -1
  9. package/dist/actions/collection-media.mjs +29 -29
  10. package/dist/actions/collection-media.mjs.map +1 -1
  11. package/dist/actions/curated-photos.cjs +21 -21
  12. package/dist/actions/curated-photos.cjs.map +1 -1
  13. package/dist/actions/curated-photos.d.cts +36 -3
  14. package/dist/actions/curated-photos.d.cts.map +1 -1
  15. package/dist/actions/curated-photos.d.mts +36 -3
  16. package/dist/actions/curated-photos.d.mts.map +1 -1
  17. package/dist/actions/curated-photos.mjs +21 -21
  18. package/dist/actions/curated-photos.mjs.map +1 -1
  19. package/dist/actions/featured-collections.cjs +9 -9
  20. package/dist/actions/featured-collections.cjs.map +1 -1
  21. package/dist/actions/featured-collections.d.cts +24 -3
  22. package/dist/actions/featured-collections.d.cts.map +1 -1
  23. package/dist/actions/featured-collections.d.mts +24 -3
  24. package/dist/actions/featured-collections.d.mts.map +1 -1
  25. package/dist/actions/featured-collections.mjs +9 -9
  26. package/dist/actions/featured-collections.mjs.map +1 -1
  27. package/dist/actions/get-photo.cjs +18 -18
  28. package/dist/actions/get-photo.cjs.map +1 -1
  29. package/dist/actions/get-photo.d.cts +28 -3
  30. package/dist/actions/get-photo.d.cts.map +1 -1
  31. package/dist/actions/get-photo.d.mts +28 -3
  32. package/dist/actions/get-photo.d.mts.map +1 -1
  33. package/dist/actions/get-photo.mjs +18 -18
  34. package/dist/actions/get-photo.mjs.map +1 -1
  35. package/dist/actions/get-video-by-id.cjs +17 -17
  36. package/dist/actions/get-video-by-id.cjs.map +1 -1
  37. package/dist/actions/get-video-by-id.d.cts +34 -3
  38. package/dist/actions/get-video-by-id.d.cts.map +1 -1
  39. package/dist/actions/get-video-by-id.d.mts +34 -3
  40. package/dist/actions/get-video-by-id.d.mts.map +1 -1
  41. package/dist/actions/get-video-by-id.mjs +17 -17
  42. package/dist/actions/get-video-by-id.mjs.map +1 -1
  43. package/dist/actions/my-collections.cjs +9 -9
  44. package/dist/actions/my-collections.cjs.map +1 -1
  45. package/dist/actions/my-collections.d.cts +22 -3
  46. package/dist/actions/my-collections.d.cts.map +1 -1
  47. package/dist/actions/my-collections.d.mts +22 -3
  48. package/dist/actions/my-collections.d.mts.map +1 -1
  49. package/dist/actions/my-collections.mjs +9 -9
  50. package/dist/actions/my-collections.mjs.map +1 -1
  51. package/dist/actions/popular-videos.cjs +23 -23
  52. package/dist/actions/popular-videos.cjs.map +1 -1
  53. package/dist/actions/popular-videos.d.cts +44 -3
  54. package/dist/actions/popular-videos.d.cts.map +1 -1
  55. package/dist/actions/popular-videos.d.mts +44 -3
  56. package/dist/actions/popular-videos.d.mts.map +1 -1
  57. package/dist/actions/popular-videos.mjs +23 -23
  58. package/dist/actions/popular-videos.mjs.map +1 -1
  59. package/dist/actions/search-photos.cjs +20 -20
  60. package/dist/actions/search-photos.cjs.map +1 -1
  61. package/dist/actions/search-photos.d.cts +55 -3
  62. package/dist/actions/search-photos.d.cts.map +1 -1
  63. package/dist/actions/search-photos.d.mts +55 -3
  64. package/dist/actions/search-photos.d.mts.map +1 -1
  65. package/dist/actions/search-photos.mjs +20 -20
  66. package/dist/actions/search-photos.mjs.map +1 -1
  67. package/dist/actions/search-videos.cjs +21 -21
  68. package/dist/actions/search-videos.cjs.map +1 -1
  69. package/dist/actions/search-videos.d.cts +58 -3
  70. package/dist/actions/search-videos.d.cts.map +1 -1
  71. package/dist/actions/search-videos.d.mts +58 -3
  72. package/dist/actions/search-videos.d.mts.map +1 -1
  73. package/dist/actions/search-videos.mjs +21 -21
  74. package/dist/actions/search-videos.mjs.map +1 -1
  75. package/dist/catalog.cjs +7 -1
  76. package/dist/catalog.cjs.map +1 -1
  77. package/dist/catalog.d.cts +8 -0
  78. package/dist/catalog.d.mts +8 -0
  79. package/dist/catalog.mjs +7 -1
  80. package/dist/catalog.mjs.map +1 -1
  81. package/package.json +2 -2
@@ -1,9 +1,50 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/popular-videos.d.ts
4
- declare const PexelsPopularVideosInput: z.ZodTypeAny;
5
- declare const PexelsPopularVideosOutput: z.ZodTypeAny;
6
- declare const pexelsPopularVideos: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PexelsPopularVideosInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PexelsPopularVideosOutput: z.ZodObject<{
9
+ url: z.ZodNullable<z.ZodString>;
10
+ page: z.ZodNullable<z.ZodNumber>;
11
+ videos: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodNumber>;
13
+ url: z.ZodNullable<z.ZodString>;
14
+ tags: z.ZodArray<z.ZodString>;
15
+ user: z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodNumber>;
17
+ url: z.ZodNullable<z.ZodString>;
18
+ name: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ image: z.ZodNullable<z.ZodString>;
21
+ width: z.ZodNullable<z.ZodNumber>;
22
+ height: z.ZodNullable<z.ZodNumber>;
23
+ duration: z.ZodNullable<z.ZodNumber>;
24
+ full_res: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ avg_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ video_files: z.ZodArray<z.ZodObject<{
27
+ id: z.ZodNullable<z.ZodNumber>;
28
+ fps: z.ZodNullable<z.ZodNumber>;
29
+ link: z.ZodNullable<z.ZodString>;
30
+ width: z.ZodNullable<z.ZodNumber>;
31
+ height: z.ZodNullable<z.ZodNumber>;
32
+ quality: z.ZodNullable<z.ZodString>;
33
+ file_type: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>>;
35
+ video_pictures: z.ZodArray<z.ZodObject<{
36
+ id: z.ZodNullable<z.ZodNumber>;
37
+ nr: z.ZodNullable<z.ZodNumber>;
38
+ picture: z.ZodNullable<z.ZodString>;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>>;
41
+ per_page: z.ZodNullable<z.ZodNumber>;
42
+ total_results: z.ZodNullable<z.ZodNumber>;
43
+ }, z.core.$strip>;
44
+ declare const pexelsPopularVideos: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ page?: number | undefined;
46
+ per_page?: number | undefined;
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
48
  //#endregion
8
49
  export { pexelsPopularVideos };
9
50
  //# sourceMappingURL=popular-videos.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popular-videos.d.cts","names":[],"sources":["../../src/actions/popular-videos.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGmC;AAAA,cAkC/D,yBAAA,EAA2B,CAAA,CAAE,UAMxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"popular-videos.d.cts","names":[],"sources":["../../src/actions/popular-videos.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAqCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,50 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/popular-videos.d.ts
4
- declare const PexelsPopularVideosInput: z.ZodTypeAny;
5
- declare const PexelsPopularVideosOutput: z.ZodTypeAny;
6
- declare const pexelsPopularVideos: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PexelsPopularVideosInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PexelsPopularVideosOutput: z.ZodObject<{
9
+ url: z.ZodNullable<z.ZodString>;
10
+ page: z.ZodNullable<z.ZodNumber>;
11
+ videos: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodNumber>;
13
+ url: z.ZodNullable<z.ZodString>;
14
+ tags: z.ZodArray<z.ZodString>;
15
+ user: z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodNumber>;
17
+ url: z.ZodNullable<z.ZodString>;
18
+ name: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ image: z.ZodNullable<z.ZodString>;
21
+ width: z.ZodNullable<z.ZodNumber>;
22
+ height: z.ZodNullable<z.ZodNumber>;
23
+ duration: z.ZodNullable<z.ZodNumber>;
24
+ full_res: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ avg_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ video_files: z.ZodArray<z.ZodObject<{
27
+ id: z.ZodNullable<z.ZodNumber>;
28
+ fps: z.ZodNullable<z.ZodNumber>;
29
+ link: z.ZodNullable<z.ZodString>;
30
+ width: z.ZodNullable<z.ZodNumber>;
31
+ height: z.ZodNullable<z.ZodNumber>;
32
+ quality: z.ZodNullable<z.ZodString>;
33
+ file_type: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$strip>>;
35
+ video_pictures: z.ZodArray<z.ZodObject<{
36
+ id: z.ZodNullable<z.ZodNumber>;
37
+ nr: z.ZodNullable<z.ZodNumber>;
38
+ picture: z.ZodNullable<z.ZodString>;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>>;
41
+ per_page: z.ZodNullable<z.ZodNumber>;
42
+ total_results: z.ZodNullable<z.ZodNumber>;
43
+ }, z.core.$strip>;
44
+ declare const pexelsPopularVideos: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ page?: number | undefined;
46
+ per_page?: number | undefined;
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
48
  //#endregion
8
49
  export { pexelsPopularVideos };
9
50
  //# sourceMappingURL=popular-videos.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popular-videos.d.mts","names":[],"sources":["../../src/actions/popular-videos.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGmC;AAAA,cAkC/D,yBAAA,EAA2B,CAAA,CAAE,UAMxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"popular-videos.d.mts","names":[],"sources":["../../src/actions/popular-videos.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAqCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
@@ -6,33 +6,33 @@ const PexelsPopularVideosInput = z.object({
6
6
  per_page: z.number().int().describe("Number of videos per page (1–80). Default is 15.").optional()
7
7
  }).describe("Request parameters for retrieving popular videos from Pexels.");
8
8
  const PexelsPopularVideos_UserModelSchema = z.object({
9
- id: z.number().int().describe("ID of the video author."),
10
- url: z.string().describe("URL of the author's profile."),
11
- name: z.string().describe("Name of the video author.")
9
+ id: z.number().int().describe("ID of the video author.").nullable(),
10
+ url: z.string().describe("URL of the author's profile.").nullable(),
11
+ name: z.string().describe("Name of the video author.").nullable()
12
12
  });
13
13
  const PexelsPopularVideos_VideoFileModelSchema = z.object({
14
- id: z.number().int().describe("ID of the video file."),
15
- fps: z.number().describe("Frames per second of the video file."),
16
- link: z.string().describe("Direct URL to the video file."),
17
- width: z.number().int().describe("Width of the video file in pixels."),
18
- height: z.number().int().describe("Height of the video file in pixels."),
19
- quality: z.string().describe("Quality label of the video file."),
20
- file_type: z.string().describe("MIME type of the video file.")
14
+ id: z.number().int().describe("ID of the video file.").nullable(),
15
+ fps: z.number().describe("Frames per second of the video file.").nullable(),
16
+ link: z.string().describe("Direct URL to the video file.").nullable(),
17
+ width: z.number().int().describe("Width of the video file in pixels.").nullable(),
18
+ height: z.number().int().describe("Height of the video file in pixels.").nullable(),
19
+ quality: z.string().describe("Quality label of the video file.").nullable(),
20
+ file_type: z.string().describe("MIME type of the video file.").nullable()
21
21
  });
22
22
  const PexelsPopularVideos_VideoPictureModelSchema = z.object({
23
- id: z.number().int().describe("ID of the preview picture."),
24
- nr: z.number().int().describe("Sequence number of the picture."),
25
- picture: z.string().describe("URL of the preview picture.")
23
+ id: z.number().int().describe("ID of the preview picture.").nullable(),
24
+ nr: z.number().int().describe("Sequence number of the picture.").nullable(),
25
+ picture: z.string().describe("URL of the preview picture.").nullable()
26
26
  });
27
27
  const PexelsPopularVideos_VideoModelSchema = z.object({
28
- id: z.number().int().describe("ID of the video."),
29
- url: z.string().describe("URL to the Pexels page for the video."),
28
+ id: z.number().int().describe("ID of the video.").nullable(),
29
+ url: z.string().describe("URL to the Pexels page for the video.").nullable(),
30
30
  tags: z.array(z.string()).describe("List of tags associated with the video."),
31
31
  user: PexelsPopularVideos_UserModelSchema.nullable(),
32
- image: z.string().describe("URL of the video preview image."),
33
- width: z.number().int().describe("Width of the video in pixels."),
34
- height: z.number().int().describe("Height of the video in pixels."),
35
- duration: z.number().int().describe("Duration of the video in seconds."),
32
+ image: z.string().describe("URL of the video preview image.").nullable(),
33
+ width: z.number().int().describe("Width of the video in pixels.").nullable(),
34
+ height: z.number().int().describe("Height of the video in pixels.").nullable(),
35
+ duration: z.number().int().describe("Duration of the video in seconds.").nullable(),
36
36
  full_res: z.string().describe("URL of the full-resolution video (if available).").nullable().optional(),
37
37
  avg_color: z.string().describe("Average color of the video preview image (hex code).").nullable().optional(),
38
38
  video_files: z.array(PexelsPopularVideos_VideoFileModelSchema).describe("Available video file variants."),
@@ -44,11 +44,11 @@ const pexelsPopularVideos = action("PEXELS_POPULAR_VIDEOS", {
44
44
  description: "Tool to retrieve current popular Pexels videos. Use when you want to fetch trending videos from Pexels.",
45
45
  input: PexelsPopularVideosInput,
46
46
  output: z.object({
47
- url: z.string().describe("URL of the results page."),
48
- page: z.number().int().describe("Current page number."),
47
+ url: z.string().describe("URL of the results page.").nullable(),
48
+ page: z.number().int().describe("Current page number.").nullable(),
49
49
  videos: z.array(PexelsPopularVideos_VideoModelSchema).describe("List of popular video objects."),
50
- per_page: z.number().int().describe("Number of videos per page."),
51
- total_results: z.number().int().describe("Total number of video results available.")
50
+ per_page: z.number().int().describe("Number of videos per page.").nullable(),
51
+ total_results: z.number().int().describe("Total number of video results available.").nullable()
52
52
  })
53
53
  });
54
54
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"popular-videos.mjs","names":[],"sources":["../../src/actions/popular-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsPopularVideosInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve. Default is 1.\").optional(),\n per_page: z.number().int().describe(\"Number of videos per page (1–80). Default is 15.\").optional(),\n}).describe(\"Request parameters for retrieving popular videos from Pexels.\");\nconst PexelsPopularVideos_UserModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the video author.\"),\n url: z.string().describe(\"URL of the author's profile.\"),\n name: z.string().describe(\"Name of the video author.\"),\n});\nconst PexelsPopularVideos_VideoFileModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the video file.\"),\n fps: z.number().describe(\"Frames per second of the video file.\"),\n link: z.string().describe(\"Direct URL to the video file.\"),\n width: z.number().int().describe(\"Width of the video file in pixels.\"),\n height: z.number().int().describe(\"Height of the video file in pixels.\"),\n quality: z.string().describe(\"Quality label of the video file.\"),\n file_type: z.string().describe(\"MIME type of the video file.\"),\n});\nconst PexelsPopularVideos_VideoPictureModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the preview picture.\"),\n nr: z.number().int().describe(\"Sequence number of the picture.\"),\n picture: z.string().describe(\"URL of the preview picture.\"),\n});\nconst PexelsPopularVideos_VideoModelSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the video.\"),\n url: z.string().describe(\"URL to the Pexels page for the video.\"),\n tags: z.array(z.string()).describe(\"List of tags associated with the video.\"),\n user: PexelsPopularVideos_UserModelSchema.nullable(),\n image: z.string().describe(\"URL of the video preview image.\"),\n width: z.number().int().describe(\"Width of the video in pixels.\"),\n height: z.number().int().describe(\"Height of the video in pixels.\"),\n duration: z.number().int().describe(\"Duration of the video in seconds.\"),\n full_res: z.string().describe(\"URL of the full-resolution video (if available).\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the video preview image (hex code).\").nullable().optional(),\n video_files: z.array(PexelsPopularVideos_VideoFileModelSchema).describe(\"Available video file variants.\"),\n video_pictures: z.array(PexelsPopularVideos_VideoPictureModelSchema).describe(\"List of preview pictures for the video.\"),\n});\nexport const PexelsPopularVideosOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the results page.\"),\n page: z.number().int().describe(\"Current page number.\"),\n videos: z.array(PexelsPopularVideos_VideoModelSchema).describe(\"List of popular video objects.\"),\n per_page: z.number().int().describe(\"Number of videos per page.\"),\n total_results: z.number().int().describe(\"Total number of video results available.\"),\n});\n\nexport const pexelsPopularVideos = action(\"PEXELS_POPULAR_VIDEOS\", {\n slug: \"pexels-popular-videos\",\n name: \"Get Popular Videos\",\n description: \"Tool to retrieve current popular Pexels videos. Use when you want to fetch trending videos from Pexels.\",\n input: PexelsPopularVideosInput,\n output: PexelsPopularVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACvD,CAAC;AACD,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB;CACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC/D,CAAC;AACD,MAAM,8CAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4B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gC;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;EAChE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACrF,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"popular-videos.mjs","names":[],"sources":["../../src/actions/popular-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsPopularVideosInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve. Default is 1.\").optional(),\n per_page: z.number().int().describe(\"Number of videos per page (1–80). Default is 15.\").optional(),\n}).describe(\"Request parameters for retrieving popular videos from Pexels.\");\nconst PexelsPopularVideos_UserModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video author.\").nullable(),\n url: z.string().describe(\"URL of the author's profile.\").nullable(),\n name: z.string().describe(\"Name of the video author.\").nullable(),\n});\nconst PexelsPopularVideos_VideoFileModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video file.\").nullable(),\n fps: z.number().describe(\"Frames per second of the video file.\").nullable(),\n link: z.string().describe(\"Direct URL to the video file.\").nullable(),\n width: z.number().int().describe(\"Width of the video file in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the video file in pixels.\").nullable(),\n quality: z.string().describe(\"Quality label of the video file.\").nullable(),\n file_type: z.string().describe(\"MIME type of the video file.\").nullable(),\n});\nconst PexelsPopularVideos_VideoPictureModelSchema = z.object({\n id: z.number().int().describe(\"ID of the preview picture.\").nullable(),\n nr: z.number().int().describe(\"Sequence number of the picture.\").nullable(),\n picture: z.string().describe(\"URL of the preview picture.\").nullable(),\n});\nconst PexelsPopularVideos_VideoModelSchema = z.object({\n id: z.number().int().describe(\"ID of the video.\").nullable(),\n url: z.string().describe(\"URL to the Pexels page for the video.\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags associated with the video.\"),\n user: PexelsPopularVideos_UserModelSchema.nullable(),\n image: z.string().describe(\"URL of the video preview image.\").nullable(),\n width: z.number().int().describe(\"Width of the video in pixels.\").nullable(),\n height: z.number().int().describe(\"Height of the video in pixels.\").nullable(),\n duration: z.number().int().describe(\"Duration of the video in seconds.\").nullable(),\n full_res: z.string().describe(\"URL of the full-resolution video (if available).\").nullable().optional(),\n avg_color: z.string().describe(\"Average color of the video preview image (hex code).\").nullable().optional(),\n video_files: z.array(PexelsPopularVideos_VideoFileModelSchema).describe(\"Available video file variants.\"),\n video_pictures: z.array(PexelsPopularVideos_VideoPictureModelSchema).describe(\"List of preview pictures for the video.\"),\n});\nexport const PexelsPopularVideosOutput = z.object({\n url: z.string().describe(\"URL of the results page.\").nullable(),\n page: z.number().int().describe(\"Current page number.\").nullable(),\n videos: z.array(PexelsPopularVideos_VideoModelSchema).describe(\"List of popular video objects.\"),\n per_page: z.number().int().describe(\"Number of videos per page.\").nullable(),\n total_results: z.number().int().describe(\"Total number of video results available.\").nullable(),\n});\n\nexport const pexelsPopularVideos = action(\"PEXELS_POPULAR_VIDEOS\", {\n slug: \"pexels-popular-videos\",\n name: \"Get Popular Videos\",\n description: \"Tool to retrieve current popular Pexels videos. Use when you want to fetch trending videos from Pexels.\",\n input: PexelsPopularVideosInput,\n output: PexelsPopularVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OA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Parameters to search photos on Pexels by query and optional filters.");
21
21
  const PexelsSearchPhotos_PhotoSrcSchema = zod.z.object({
22
- tiny: zod.z.string().describe("Tiny size photo URL"),
23
- large: zod.z.string().describe("Large size photo URL"),
24
- small: zod.z.string().describe("Small size photo URL"),
25
- medium: zod.z.string().describe("Medium size photo URL"),
26
- large2x: zod.z.string().describe("2x large photo URL"),
27
- original: zod.z.string().describe("Original size photo URL"),
28
- portrait: zod.z.string().describe("Portrait orientation photo URL"),
29
- landscape: zod.z.string().describe("Landscape orientation photo URL")
22
+ tiny: zod.z.string().describe("Tiny size photo URL").nullable(),
23
+ large: zod.z.string().describe("Large size photo URL").nullable(),
24
+ small: zod.z.string().describe("Small size photo URL").nullable(),
25
+ medium: zod.z.string().describe("Medium size photo URL").nullable(),
26
+ large2x: zod.z.string().describe("2x large photo URL").nullable(),
27
+ original: zod.z.string().describe("Original size photo URL").nullable(),
28
+ portrait: zod.z.string().describe("Portrait orientation photo URL").nullable(),
29
+ landscape: zod.z.string().describe("Landscape orientation photo URL").nullable()
30
30
  });
31
31
  const PexelsSearchPhotos_PhotoSchema = zod.z.object({
32
- id: zod.z.number().int().describe("Unique identifier for the photo"),
32
+ id: zod.z.number().int().describe("Unique identifier for the photo").nullable(),
33
33
  alt: zod.z.string().describe("Alternate text for the photo").nullable().optional(),
34
34
  src: PexelsSearchPhotos_PhotoSrcSchema.nullable(),
35
- url: zod.z.string().describe("URL to the photo's Pexels page"),
36
- liked: zod.z.boolean().describe("Indicates if the photo is liked by the user"),
37
- width: zod.z.number().int().describe("Photo width in pixels"),
38
- height: zod.z.number().int().describe("Photo height in pixels"),
39
- avg_color: zod.z.string().describe("Average color of the photo (hex code)"),
40
- photographer: zod.z.string().describe("Photographer name"),
41
- photographer_id: zod.z.number().int().describe("Photographer's ID"),
42
- photographer_url: zod.z.string().describe("Photographer's profile URL")
35
+ url: zod.z.string().describe("URL to the photo's Pexels page").nullable(),
36
+ liked: zod.z.boolean().describe("Indicates if the photo is liked by the user").nullable(),
37
+ width: zod.z.number().int().describe("Photo width in pixels").nullable(),
38
+ height: zod.z.number().int().describe("Photo height in pixels").nullable(),
39
+ avg_color: zod.z.string().describe("Average color of the photo (hex code)").nullable(),
40
+ photographer: zod.z.string().describe("Photographer name").nullable(),
41
+ photographer_id: zod.z.number().int().describe("Photographer's ID").nullable(),
42
+ photographer_url: zod.z.string().describe("Photographer's profile URL").nullable()
43
43
  });
44
44
  const PexelsSearchPhotosOutput = zod.z.object({
45
- page: zod.z.number().int().describe("Current page number"),
45
+ page: zod.z.number().int().describe("Current page number").nullable(),
46
46
  photos: zod.z.array(PexelsSearchPhotos_PhotoSchema).describe("List of photo objects returned"),
47
- per_page: zod.z.number().int().describe("Number of results per page"),
47
+ per_page: zod.z.number().int().describe("Number of results per page").nullable(),
48
48
  next_page: zod.z.string().describe("URL to the next page of results, if available").nullable().optional(),
49
49
  prev_page: zod.z.string().describe("URL to the previous page of results, if available").nullable().optional(),
50
- total_results: zod.z.number().int().describe("Total number of results for this search")
50
+ total_results: zod.z.number().int().describe("Total number of results for this search").nullable()
51
51
  });
52
52
  const pexelsSearchPhotos = require_action.action("PEXELS_SEARCH_PHOTOS", {
53
53
  slug: "pexels-search-photos",
@@ -1 +1 @@
1
- {"version":3,"file":"search-photos.cjs","names":["z","action"],"sources":["../../src/actions/search-photos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PexelsSearchPhotosInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\"),\n large: z.string().describe(\"Large size photo URL\"),\n small: z.string().describe(\"Small size photo URL\"),\n medium: z.string().describe(\"Medium size photo URL\"),\n large2x: z.string().describe(\"2x large photo URL\"),\n original: z.string().describe(\"Original size photo URL\"),\n portrait: z.string().describe(\"Portrait orientation photo URL\"),\n landscape: z.string().describe(\"Landscape orientation photo URL\"),\n});\nconst PexelsSearchPhotos_PhotoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo\"),\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\"),\n liked: z.boolean().describe(\"Indicates if the photo is liked by the user\"),\n width: z.number().int().describe(\"Photo width in pixels\"),\n height: z.number().int().describe(\"Photo height in pixels\"),\n avg_color: z.string().describe(\"Average color of the photo (hex code)\"),\n photographer: z.string().describe(\"Photographer name\"),\n photographer_id: z.number().int().describe(\"Photographer's ID\"),\n photographer_url: z.string().describe(\"Photographer's profile URL\"),\n});\nexport const PexelsSearchPhotosOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n photos: z.array(PexelsSearchPhotos_PhotoSchema).describe(\"List of photo objects returned\"),\n per_page: z.number().int().describe(\"Number of results per page\"),\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\"),\n});\n\nexport const pexelsSearchPhotos = action(\"PEXELS_SEARCH_PHOTOS\", {\n slug: \"pexels-search-photos\",\n name: \"Search Photos\",\n description: \"Tool to search for photos on Pexels. Use when you need to retrieve photos by a search term and optional filters. Call after confirming you have a valid Pexels API key. Response image URLs are nested under `photo.src.<size>` (e.g., `photo.src.original`, `photo.src.landscape`, `photo.src.medium`); the top-level `url` field is not sufficient for accessing specific image sizes.\",\n input: PexelsSearchPhotosInput,\n output: PexelsSearchPhotosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACnI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ;CACjL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/G,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAY;CAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sB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IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,gCAAgC;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;AACpF,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-photos.cjs","names":["z","action"],"sources":["../../src/actions/search-photos.ts"],"sourcesContent":["import { 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});\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});\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});\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.\",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AA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,gCAAgC;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAC/F,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,61 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/search-photos.d.ts
4
- declare const PexelsSearchPhotosInput: z.ZodTypeAny;
5
- declare const PexelsSearchPhotosOutput: z.ZodTypeAny;
6
- declare const pexelsSearchPhotos: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PexelsSearchPhotosInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ size: z.ZodOptional<z.ZodEnum<{
7
+ large: "large";
8
+ medium: "medium";
9
+ small: "small";
10
+ }>>;
11
+ color: z.ZodOptional<z.ZodString>;
12
+ query: z.ZodString;
13
+ locale: z.ZodOptional<z.ZodString>;
14
+ per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
15
+ orientation: z.ZodOptional<z.ZodEnum<{
16
+ landscape: "landscape";
17
+ portrait: "portrait";
18
+ square: "square";
19
+ }>>;
20
+ }, z.core.$strip>;
21
+ declare const PexelsSearchPhotosOutput: z.ZodObject<{
22
+ page: z.ZodNullable<z.ZodNumber>;
23
+ photos: z.ZodArray<z.ZodObject<{
24
+ id: z.ZodNullable<z.ZodNumber>;
25
+ alt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ src: z.ZodNullable<z.ZodObject<{
27
+ tiny: z.ZodNullable<z.ZodString>;
28
+ large: z.ZodNullable<z.ZodString>;
29
+ small: z.ZodNullable<z.ZodString>;
30
+ medium: z.ZodNullable<z.ZodString>;
31
+ large2x: z.ZodNullable<z.ZodString>;
32
+ original: z.ZodNullable<z.ZodString>;
33
+ portrait: z.ZodNullable<z.ZodString>;
34
+ landscape: z.ZodNullable<z.ZodString>;
35
+ }, z.core.$strip>>;
36
+ url: z.ZodNullable<z.ZodString>;
37
+ liked: z.ZodNullable<z.ZodBoolean>;
38
+ width: z.ZodNullable<z.ZodNumber>;
39
+ height: z.ZodNullable<z.ZodNumber>;
40
+ avg_color: z.ZodNullable<z.ZodString>;
41
+ photographer: z.ZodNullable<z.ZodString>;
42
+ photographer_id: z.ZodNullable<z.ZodNumber>;
43
+ photographer_url: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$strip>>;
45
+ per_page: z.ZodNullable<z.ZodNumber>;
46
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ total_results: z.ZodNullable<z.ZodNumber>;
49
+ }, z.core.$strip>;
50
+ declare const pexelsSearchPhotos: import("@keystrokehq/action").WorkflowActionDefinition<{
51
+ query: string;
52
+ page?: number | undefined;
53
+ size?: "large" | "medium" | "small" | undefined;
54
+ color?: string | undefined;
55
+ locale?: string | undefined;
56
+ per_page?: number | undefined;
57
+ orientation?: "landscape" | "portrait" | "square" | undefined;
58
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
59
  //#endregion
8
60
  export { pexelsSearchPhotos };
9
61
  //# sourceMappingURL=search-photos.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-photos.d.cts","names":[],"sources":["../../src/actions/search-photos.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQ2C;AAAA,cAwBtE,wBAAA,EAA0B,CAAA,CAAE,UAOvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"search-photos.d.cts","names":[],"sources":["../../src/actions/search-photos.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAgCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,61 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/search-photos.d.ts
4
- declare const PexelsSearchPhotosInput: z.ZodTypeAny;
5
- declare const PexelsSearchPhotosOutput: z.ZodTypeAny;
6
- declare const pexelsSearchPhotos: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PexelsSearchPhotosInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ size: z.ZodOptional<z.ZodEnum<{
7
+ large: "large";
8
+ medium: "medium";
9
+ small: "small";
10
+ }>>;
11
+ color: z.ZodOptional<z.ZodString>;
12
+ query: z.ZodString;
13
+ locale: z.ZodOptional<z.ZodString>;
14
+ per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
15
+ orientation: z.ZodOptional<z.ZodEnum<{
16
+ landscape: "landscape";
17
+ portrait: "portrait";
18
+ square: "square";
19
+ }>>;
20
+ }, z.core.$strip>;
21
+ declare const PexelsSearchPhotosOutput: z.ZodObject<{
22
+ page: z.ZodNullable<z.ZodNumber>;
23
+ photos: z.ZodArray<z.ZodObject<{
24
+ id: z.ZodNullable<z.ZodNumber>;
25
+ alt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ src: z.ZodNullable<z.ZodObject<{
27
+ tiny: z.ZodNullable<z.ZodString>;
28
+ large: z.ZodNullable<z.ZodString>;
29
+ small: z.ZodNullable<z.ZodString>;
30
+ medium: z.ZodNullable<z.ZodString>;
31
+ large2x: z.ZodNullable<z.ZodString>;
32
+ original: z.ZodNullable<z.ZodString>;
33
+ portrait: z.ZodNullable<z.ZodString>;
34
+ landscape: z.ZodNullable<z.ZodString>;
35
+ }, z.core.$strip>>;
36
+ url: z.ZodNullable<z.ZodString>;
37
+ liked: z.ZodNullable<z.ZodBoolean>;
38
+ width: z.ZodNullable<z.ZodNumber>;
39
+ height: z.ZodNullable<z.ZodNumber>;
40
+ avg_color: z.ZodNullable<z.ZodString>;
41
+ photographer: z.ZodNullable<z.ZodString>;
42
+ photographer_id: z.ZodNullable<z.ZodNumber>;
43
+ photographer_url: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$strip>>;
45
+ per_page: z.ZodNullable<z.ZodNumber>;
46
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ total_results: z.ZodNullable<z.ZodNumber>;
49
+ }, z.core.$strip>;
50
+ declare const pexelsSearchPhotos: import("@keystrokehq/action").WorkflowActionDefinition<{
51
+ query: string;
52
+ page?: number | undefined;
53
+ size?: "large" | "medium" | "small" | undefined;
54
+ color?: string | undefined;
55
+ locale?: string | undefined;
56
+ per_page?: number | undefined;
57
+ orientation?: "landscape" | "portrait" | "square" | undefined;
58
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
59
  //#endregion
8
60
  export { pexelsSearchPhotos };
9
61
  //# sourceMappingURL=search-photos.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-photos.d.mts","names":[],"sources":["../../src/actions/search-photos.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQ2C;AAAA,cAwBtE,wBAAA,EAA0B,CAAA,CAAE,UAOvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"search-photos.d.mts","names":[],"sources":["../../src/actions/search-photos.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAgCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASxB,kBAAA,gCAAkB,wBAAA"}
@@ -19,27 +19,27 @@ const PexelsSearchPhotosInput = z.object({
19
19
  ]).describe("Filter by photo orientation.").optional()
20
20
  }).describe("Parameters to search photos on Pexels by query and optional filters.");
21
21
  const PexelsSearchPhotos_PhotoSrcSchema = z.object({
22
- tiny: z.string().describe("Tiny size photo URL"),
23
- large: z.string().describe("Large size photo URL"),
24
- small: z.string().describe("Small size photo URL"),
25
- medium: z.string().describe("Medium size photo URL"),
26
- large2x: z.string().describe("2x large photo URL"),
27
- original: z.string().describe("Original size photo URL"),
28
- portrait: z.string().describe("Portrait orientation photo URL"),
29
- landscape: z.string().describe("Landscape orientation photo URL")
22
+ tiny: z.string().describe("Tiny size photo URL").nullable(),
23
+ large: z.string().describe("Large size photo URL").nullable(),
24
+ small: z.string().describe("Small size photo URL").nullable(),
25
+ medium: z.string().describe("Medium size photo URL").nullable(),
26
+ large2x: z.string().describe("2x large photo URL").nullable(),
27
+ original: z.string().describe("Original size photo URL").nullable(),
28
+ portrait: z.string().describe("Portrait orientation photo URL").nullable(),
29
+ landscape: z.string().describe("Landscape orientation photo URL").nullable()
30
30
  });
31
31
  const PexelsSearchPhotos_PhotoSchema = z.object({
32
- id: z.number().int().describe("Unique identifier for the photo"),
32
+ id: z.number().int().describe("Unique identifier for the photo").nullable(),
33
33
  alt: z.string().describe("Alternate text for the photo").nullable().optional(),
34
34
  src: PexelsSearchPhotos_PhotoSrcSchema.nullable(),
35
- url: z.string().describe("URL to the photo's Pexels page"),
36
- liked: z.boolean().describe("Indicates if the photo is liked by the user"),
37
- width: z.number().int().describe("Photo width in pixels"),
38
- height: z.number().int().describe("Photo height in pixels"),
39
- avg_color: z.string().describe("Average color of the photo (hex code)"),
40
- photographer: z.string().describe("Photographer name"),
41
- photographer_id: z.number().int().describe("Photographer's ID"),
42
- photographer_url: z.string().describe("Photographer's profile URL")
35
+ url: z.string().describe("URL to the photo's Pexels page").nullable(),
36
+ liked: z.boolean().describe("Indicates if the photo is liked by the user").nullable(),
37
+ width: z.number().int().describe("Photo width in pixels").nullable(),
38
+ height: z.number().int().describe("Photo height in pixels").nullable(),
39
+ avg_color: z.string().describe("Average color of the photo (hex code)").nullable(),
40
+ photographer: z.string().describe("Photographer name").nullable(),
41
+ photographer_id: z.number().int().describe("Photographer's ID").nullable(),
42
+ photographer_url: z.string().describe("Photographer's profile URL").nullable()
43
43
  });
44
44
  const pexelsSearchPhotos = action("PEXELS_SEARCH_PHOTOS", {
45
45
  slug: "pexels-search-photos",
@@ -47,12 +47,12 @@ const pexelsSearchPhotos = action("PEXELS_SEARCH_PHOTOS", {
47
47
  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.",
48
48
  input: PexelsSearchPhotosInput,
49
49
  output: z.object({
50
- page: z.number().int().describe("Current page number"),
50
+ page: z.number().int().describe("Current page number").nullable(),
51
51
  photos: z.array(PexelsSearchPhotos_PhotoSchema).describe("List of photo objects returned"),
52
- per_page: z.number().int().describe("Number of results per page"),
52
+ per_page: z.number().int().describe("Number of results per page").nullable(),
53
53
  next_page: z.string().describe("URL to the next page of results, if available").nullable().optional(),
54
54
  prev_page: z.string().describe("URL to the previous page of results, if available").nullable().optional(),
55
- total_results: z.number().int().describe("Total number of results for this search")
55
+ total_results: z.number().int().describe("Total number of results for this search").nullable()
56
56
  })
57
57
  });
58
58
  //#endregion
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n tiny: z.string().describe(\"Tiny size photo URL\"),\n large: z.string().describe(\"Large size photo URL\"),\n small: z.string().describe(\"Small size photo URL\"),\n medium: z.string().describe(\"Medium size photo URL\"),\n large2x: z.string().describe(\"2x large photo URL\"),\n original: z.string().describe(\"Original size photo URL\"),\n portrait: z.string().describe(\"Portrait orientation photo URL\"),\n landscape: z.string().describe(\"Landscape orientation photo URL\"),\n});\nconst PexelsSearchPhotos_PhotoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the photo\"),\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\"),\n liked: z.boolean().describe(\"Indicates if the photo is liked by the user\"),\n width: z.number().int().describe(\"Photo width in pixels\"),\n height: z.number().int().describe(\"Photo height in pixels\"),\n avg_color: z.string().describe(\"Average color of the photo (hex code)\"),\n photographer: z.string().describe(\"Photographer name\"),\n photographer_id: z.number().int().describe(\"Photographer's ID\"),\n photographer_url: z.string().describe(\"Photographer's profile URL\"),\n});\nexport const PexelsSearchPhotosOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n photos: z.array(PexelsSearchPhotos_PhotoSchema).describe(\"List of photo objects returned\"),\n per_page: z.number().int().describe(\"Number of results per page\"),\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\"),\n});\n\nexport const pexelsSearchPhotos = action(\"PEXELS_SEARCH_PHOTOS\", {\n slug: \"pexels-search-photos\",\n name: \"Search Photos\",\n description: \"Tool to search for photos on Pexels. Use when you need to retrieve photos by a search term and optional filters. Call after confirming you have a valid Pexels API key. Response image URLs are nested under `photo.src.<size>` (e.g., `photo.src.original`, `photo.src.landscape`, `photo.src.medium`); the top-level `url` field is not sufficient for accessing specific image sizes.\",\n input: PexelsSearchPhotosInput,\n output: PexelsSearchPhotosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,m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AAS;CAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB;CACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CACrD,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;CAC9D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AACpE,CAAC;AAUD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;EACrD,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,gCAAgC;EACzF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;EAChE,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;CACpF,CAOU;AACV,CAAC"}
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});\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});\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});\n\nexport const pexelsSearchPhotos = action(\"PEXELS_SEARCH_PHOTOS\", {\n slug: \"pexels-search-photos\",\n name: \"Search Photos\",\n description: \"Tool to search for photos on Pexels. Use when you need to retrieve photos by a search term and optional filters. Call after confirming you have a valid Pexels API key. Response image URLs are nested under `photo.src.<size>` (e.g., `photo.src.original`, `photo.src.landscape`, `photo.src.medium`); the top-level `url` field is not sufficient for accessing specific image sizes.\",\n input: PexelsSearchPhotosInput,\n output: PexelsSearchPhotosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzG,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACnI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ;CACjL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,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,SAAS,8BAA8B,CAAC,CAAC,S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