@keystrokehq/shotstack 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-template.cjs +1 -0
  4. package/dist/actions/create-template.cjs.map +1 -1
  5. package/dist/actions/create-template.d.cts +3 -21
  6. package/dist/actions/create-template.d.cts.map +1 -1
  7. package/dist/actions/create-template.d.mts +3 -21
  8. package/dist/actions/create-template.d.mts.map +1 -1
  9. package/dist/actions/create-template.mjs +1 -0
  10. package/dist/actions/create-template.mjs.map +1 -1
  11. package/dist/actions/create-template2.cjs +1 -0
  12. package/dist/actions/create-template2.cjs.map +1 -1
  13. package/dist/actions/create-template2.d.cts +3 -50
  14. package/dist/actions/create-template2.d.cts.map +1 -1
  15. package/dist/actions/create-template2.d.mts +3 -50
  16. package/dist/actions/create-template2.d.mts.map +1 -1
  17. package/dist/actions/create-template2.mjs +1 -0
  18. package/dist/actions/create-template2.mjs.map +1 -1
  19. package/dist/actions/delete-ingested-media.cjs +1 -0
  20. package/dist/actions/delete-ingested-media.cjs.map +1 -1
  21. package/dist/actions/delete-ingested-media.d.cts +3 -17
  22. package/dist/actions/delete-ingested-media.d.cts.map +1 -1
  23. package/dist/actions/delete-ingested-media.d.mts +3 -17
  24. package/dist/actions/delete-ingested-media.d.mts.map +1 -1
  25. package/dist/actions/delete-ingested-media.mjs +1 -0
  26. package/dist/actions/delete-ingested-media.mjs.map +1 -1
  27. package/dist/actions/delete-template2.cjs +1 -0
  28. package/dist/actions/delete-template2.cjs.map +1 -1
  29. package/dist/actions/delete-template2.d.cts +3 -17
  30. package/dist/actions/delete-template2.d.cts.map +1 -1
  31. package/dist/actions/delete-template2.d.mts +3 -17
  32. package/dist/actions/delete-template2.d.mts.map +1 -1
  33. package/dist/actions/delete-template2.mjs +1 -0
  34. package/dist/actions/delete-template2.mjs.map +1 -1
  35. package/dist/actions/delete-workflow.cjs +1 -0
  36. package/dist/actions/delete-workflow.cjs.map +1 -1
  37. package/dist/actions/delete-workflow.d.cts +3 -17
  38. package/dist/actions/delete-workflow.d.cts.map +1 -1
  39. package/dist/actions/delete-workflow.d.mts +3 -17
  40. package/dist/actions/delete-workflow.d.mts.map +1 -1
  41. package/dist/actions/delete-workflow.mjs +1 -0
  42. package/dist/actions/delete-workflow.mjs.map +1 -1
  43. package/dist/actions/fetch-source.cjs +1 -0
  44. package/dist/actions/fetch-source.cjs.map +1 -1
  45. package/dist/actions/fetch-source.d.cts +3 -17
  46. package/dist/actions/fetch-source.d.cts.map +1 -1
  47. package/dist/actions/fetch-source.d.mts +3 -17
  48. package/dist/actions/fetch-source.d.mts.map +1 -1
  49. package/dist/actions/fetch-source.mjs +1 -0
  50. package/dist/actions/fetch-source.mjs.map +1 -1
  51. package/dist/actions/get-assets-render.cjs +1 -0
  52. package/dist/actions/get-assets-render.cjs.map +1 -1
  53. package/dist/actions/get-assets-render.d.cts +3 -17
  54. package/dist/actions/get-assets-render.d.cts.map +1 -1
  55. package/dist/actions/get-assets-render.d.mts +3 -17
  56. package/dist/actions/get-assets-render.d.mts.map +1 -1
  57. package/dist/actions/get-assets-render.mjs +1 -0
  58. package/dist/actions/get-assets-render.mjs.map +1 -1
  59. package/dist/actions/get-assets.cjs +1 -0
  60. package/dist/actions/get-assets.cjs.map +1 -1
  61. package/dist/actions/get-assets.d.cts +3 -17
  62. package/dist/actions/get-assets.d.cts.map +1 -1
  63. package/dist/actions/get-assets.d.mts +3 -17
  64. package/dist/actions/get-assets.d.mts.map +1 -1
  65. package/dist/actions/get-assets.mjs +1 -0
  66. package/dist/actions/get-assets.mjs.map +1 -1
  67. package/dist/actions/get-render-callback.cjs +1 -0
  68. package/dist/actions/get-render-callback.cjs.map +1 -1
  69. package/dist/actions/get-render-callback.d.cts +3 -17
  70. package/dist/actions/get-render-callback.d.cts.map +1 -1
  71. package/dist/actions/get-render-callback.d.mts +3 -17
  72. package/dist/actions/get-render-callback.d.mts.map +1 -1
  73. package/dist/actions/get-render-callback.mjs +1 -0
  74. package/dist/actions/get-render-callback.mjs.map +1 -1
  75. package/dist/actions/get-render-status.cjs +1 -0
  76. package/dist/actions/get-render-status.cjs.map +1 -1
  77. package/dist/actions/get-render-status.d.cts +3 -20
  78. package/dist/actions/get-render-status.d.cts.map +1 -1
  79. package/dist/actions/get-render-status.d.mts +3 -20
  80. package/dist/actions/get-render-status.d.mts.map +1 -1
  81. package/dist/actions/get-render-status.mjs +1 -0
  82. package/dist/actions/get-render-status.mjs.map +1 -1
  83. package/dist/actions/get-source.cjs +1 -0
  84. package/dist/actions/get-source.cjs.map +1 -1
  85. package/dist/actions/get-source.d.cts +3 -17
  86. package/dist/actions/get-source.d.cts.map +1 -1
  87. package/dist/actions/get-source.d.mts +3 -17
  88. package/dist/actions/get-source.d.mts.map +1 -1
  89. package/dist/actions/get-source.mjs +1 -0
  90. package/dist/actions/get-source.mjs.map +1 -1
  91. package/dist/actions/get-template-by-version.cjs +1 -0
  92. package/dist/actions/get-template-by-version.cjs.map +1 -1
  93. package/dist/actions/get-template-by-version.d.cts +3 -18
  94. package/dist/actions/get-template-by-version.d.cts.map +1 -1
  95. package/dist/actions/get-template-by-version.d.mts +3 -18
  96. package/dist/actions/get-template-by-version.d.mts.map +1 -1
  97. package/dist/actions/get-template-by-version.mjs +1 -0
  98. package/dist/actions/get-template-by-version.mjs.map +1 -1
  99. package/dist/actions/get-template.cjs +1 -0
  100. package/dist/actions/get-template.cjs.map +1 -1
  101. package/dist/actions/get-template.d.cts +3 -17
  102. package/dist/actions/get-template.d.cts.map +1 -1
  103. package/dist/actions/get-template.d.mts +3 -17
  104. package/dist/actions/get-template.d.mts.map +1 -1
  105. package/dist/actions/get-template.mjs +1 -0
  106. package/dist/actions/get-template.mjs.map +1 -1
  107. package/dist/actions/get-upload-url.cjs +1 -0
  108. package/dist/actions/get-upload-url.cjs.map +1 -1
  109. package/dist/actions/get-upload-url.d.cts +3 -17
  110. package/dist/actions/get-upload-url.d.cts.map +1 -1
  111. package/dist/actions/get-upload-url.d.mts +3 -17
  112. package/dist/actions/get-upload-url.d.mts.map +1 -1
  113. package/dist/actions/get-upload-url.mjs +1 -0
  114. package/dist/actions/get-upload-url.mjs.map +1 -1
  115. package/dist/actions/inspect-media.cjs +1 -0
  116. package/dist/actions/inspect-media.cjs.map +1 -1
  117. package/dist/actions/inspect-media.d.cts +3 -17
  118. package/dist/actions/inspect-media.d.cts.map +1 -1
  119. package/dist/actions/inspect-media.d.mts +3 -17
  120. package/dist/actions/inspect-media.d.mts.map +1 -1
  121. package/dist/actions/inspect-media.mjs +1 -0
  122. package/dist/actions/inspect-media.mjs.map +1 -1
  123. package/dist/actions/list-sources.cjs +1 -0
  124. package/dist/actions/list-sources.cjs.map +1 -1
  125. package/dist/actions/list-sources.d.cts +3 -19
  126. package/dist/actions/list-sources.d.cts.map +1 -1
  127. package/dist/actions/list-sources.d.mts +3 -19
  128. package/dist/actions/list-sources.d.mts.map +1 -1
  129. package/dist/actions/list-sources.mjs +1 -0
  130. package/dist/actions/list-sources.mjs.map +1 -1
  131. package/dist/actions/list-sources2.cjs +1 -0
  132. package/dist/actions/list-sources2.cjs.map +1 -1
  133. package/dist/actions/list-sources2.d.cts +3 -20
  134. package/dist/actions/list-sources2.d.cts.map +1 -1
  135. package/dist/actions/list-sources2.d.mts +3 -20
  136. package/dist/actions/list-sources2.d.mts.map +1 -1
  137. package/dist/actions/list-sources2.mjs +1 -0
  138. package/dist/actions/list-sources2.mjs.map +1 -1
  139. package/dist/actions/list-templates.cjs +1 -0
  140. package/dist/actions/list-templates.cjs.map +1 -1
  141. package/dist/actions/list-templates.d.cts +3 -15
  142. package/dist/actions/list-templates.d.cts.map +1 -1
  143. package/dist/actions/list-templates.d.mts +3 -15
  144. package/dist/actions/list-templates.d.mts.map +1 -1
  145. package/dist/actions/list-templates.mjs +1 -0
  146. package/dist/actions/list-templates.mjs.map +1 -1
  147. package/dist/actions/list-templates2.cjs +1 -0
  148. package/dist/actions/list-templates2.cjs.map +1 -1
  149. package/dist/actions/list-templates2.d.cts +3 -17
  150. package/dist/actions/list-templates2.d.cts.map +1 -1
  151. package/dist/actions/list-templates2.d.mts +3 -17
  152. package/dist/actions/list-templates2.d.mts.map +1 -1
  153. package/dist/actions/list-templates2.mjs +1 -0
  154. package/dist/actions/list-templates2.mjs.map +1 -1
  155. package/dist/actions/post-upload.cjs +1 -0
  156. package/dist/actions/post-upload.cjs.map +1 -1
  157. package/dist/actions/post-upload.d.cts +3 -15
  158. package/dist/actions/post-upload.d.cts.map +1 -1
  159. package/dist/actions/post-upload.d.mts +3 -15
  160. package/dist/actions/post-upload.d.mts.map +1 -1
  161. package/dist/actions/post-upload.mjs +1 -0
  162. package/dist/actions/post-upload.mjs.map +1 -1
  163. package/dist/actions/render-video.cjs +1 -0
  164. package/dist/actions/render-video.cjs.map +1 -1
  165. package/dist/actions/render-video.d.cts +3 -19
  166. package/dist/actions/render-video.d.cts.map +1 -1
  167. package/dist/actions/render-video.d.mts +3 -19
  168. package/dist/actions/render-video.d.mts.map +1 -1
  169. package/dist/actions/render-video.mjs +1 -0
  170. package/dist/actions/render-video.mjs.map +1 -1
  171. package/dist/actions/transfer-asset.cjs +1 -0
  172. package/dist/actions/transfer-asset.cjs.map +1 -1
  173. package/dist/actions/transfer-asset.d.cts +3 -24
  174. package/dist/actions/transfer-asset.d.cts.map +1 -1
  175. package/dist/actions/transfer-asset.d.mts +3 -24
  176. package/dist/actions/transfer-asset.d.mts.map +1 -1
  177. package/dist/actions/transfer-asset.mjs +1 -0
  178. package/dist/actions/transfer-asset.mjs.map +1 -1
  179. package/dist/actions/update-template.cjs +1 -0
  180. package/dist/actions/update-template.cjs.map +1 -1
  181. package/dist/actions/update-template.d.cts +3 -19
  182. package/dist/actions/update-template.d.cts.map +1 -1
  183. package/dist/actions/update-template.d.mts +3 -19
  184. package/dist/actions/update-template.d.mts.map +1 -1
  185. package/dist/actions/update-template.mjs +1 -0
  186. package/dist/actions/update-template.mjs.map +1 -1
  187. package/dist/app.cjs +5 -4
  188. package/dist/app.cjs.map +1 -1
  189. package/dist/app.d.cts +4 -6
  190. package/dist/app.d.cts.map +1 -1
  191. package/dist/app.d.mts +4 -6
  192. package/dist/app.d.mts.map +1 -1
  193. package/dist/app.mjs +0 -1
  194. package/dist/app.mjs.map +1 -1
  195. package/dist/index.d.cts +1 -1
  196. package/dist/index.d.mts +1 -1
  197. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get-render-callback.mjs","names":[],"sources":["../../src/actions/get-render-callback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetRenderCallbackInput = z.object({\n renderId: z.string().describe(\"The unique identifier of the render process.\"),\n}).describe(\"Request model for retrieving a render's callback settings.\");\nconst ShotstackGetRenderCallback_CallbackDataSchema = z.object({\n url: z.string().nullable(),\n status: z.string().describe(\"The current status of the callback.\").nullable(),\n attempts: z.number().int().describe(\"The number of callback attempts made.\").nullable(),\n responseBody: z.string().describe(\"Response body from the callback endpoint.\").nullable(),\n responseCode: z.number().int().describe(\"HTTP response code returned from callback calls.\").nullable(),\n lastAttemptedAt: z.string().describe(\"ISO8601 timestamp of the most recent callback attempt.\").nullable(),\n}).passthrough().describe(\"Details of the callback associated with a render.\");\nexport const ShotstackGetRenderCallbackOutput = z.object({\n data: ShotstackGetRenderCallback_CallbackDataSchema.nullable(),\n message: z.string().describe(\"Message describing the callback status.\").nullable(),\n success: z.boolean().describe(\"Indicates if the request was successful.\").nullable(),\n}).passthrough().describe(\"Response model for a render's callback settings.\");\n\nexport const shotstackGetRenderCallback = action(\"SHOTSTACK_GET_RENDER_CALLBACK\", {\n slug: \"shotstack-get-render-callback\",\n name: \"Get Render Callback\",\n description: \"Tool to retrieve the webhook/callback URL configuration for a specific render job. Returns only callback settings (URL, method, headers), not render status or output URLs — use a separate render-status check to obtain final results.\",\n input: ShotstackGetRenderCallbackInput,\n output: ShotstackGetRenderCallbackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO,EACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EAC9E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gDAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS;CACzB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACrG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAO7E,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX8C,EAAE,OAAO;EACvD,MAAM,8CAA8C,SAAS;EAC7D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-render-callback.mjs","names":[],"sources":["../../src/actions/get-render-callback.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shotstack } from \"../app\";\n\nexport const ShotstackGetRenderCallbackInput = z.object({\n renderId: z.string().describe(\"The unique identifier of the render process.\"),\n}).describe(\"Request model for retrieving a render's callback settings.\");\nconst ShotstackGetRenderCallback_CallbackDataSchema = z.object({\n url: z.string().nullable(),\n status: z.string().describe(\"The current status of the callback.\").nullable(),\n attempts: z.number().int().describe(\"The number of callback attempts made.\").nullable(),\n responseBody: z.string().describe(\"Response body from the callback endpoint.\").nullable(),\n responseCode: z.number().int().describe(\"HTTP response code returned from callback calls.\").nullable(),\n lastAttemptedAt: z.string().describe(\"ISO8601 timestamp of the most recent callback attempt.\").nullable(),\n}).passthrough().describe(\"Details of the callback associated with a render.\");\nexport const ShotstackGetRenderCallbackOutput = z.object({\n data: ShotstackGetRenderCallback_CallbackDataSchema.nullable(),\n message: z.string().describe(\"Message describing the callback status.\").nullable(),\n success: z.boolean().describe(\"Indicates if the request was successful.\").nullable(),\n}).passthrough().describe(\"Response model for a render's callback settings.\");\n\nexport const shotstackGetRenderCallback: AppAction<\n typeof ShotstackGetRenderCallbackInput,\n typeof ShotstackGetRenderCallbackOutput,\n typeof shotstack.credential\n> = action(\"SHOTSTACK_GET_RENDER_CALLBACK\", {\n slug: \"shotstack-get-render-callback\",\n name: \"Get Render Callback\",\n description: \"Tool to retrieve the webhook/callback URL configuration for a specific render job. Returns only callback settings (URL, method, headers), not render status or output URLs — use a separate render-status check to obtain final results.\",\n input: ShotstackGetRenderCallbackInput,\n output: ShotstackGetRenderCallbackOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO,EACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EAC9E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gDAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS;CACzB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACrG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAO7E,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf8C,EAAE,OAAO;EACvD,MAAM,8CAA8C,SAAS;EAC7D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-render-status.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-render-status.cjs","names":["z","action"],"sources":["../../src/actions/get-render-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetRenderStatusInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the render job to retrieve status for.\"),\n data: z.boolean().describe(\"Include the original timeline and output settings in the response. Default is false (will be deprecated to false soon).\").optional(),\n merged: z.boolean().describe(\"When used with data=true, shows merge fields merged into the data response.\").optional(),\n version: z.string().default(\"stage\").describe(\"API version to use. Use 'stage' for sandbox/testing or 'v1' for production.\").optional(),\n}).describe(\"Request model for retrieving render job status.\");\nconst ShotstackGetRenderStatus_EditDataSchema = z.object({\n disk: z.enum([\"local\", \"mount\"]).describe(\"Deprecated - formerly specified disk storage type; now handled automatically with no effect when set.\").nullable().optional(),\n merge: z.array(z.record(z.string(), z.unknown())).describe(\"An array of key/value pairs that provides an easy way to create templates with placeholders for dynamic content replacement.\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Specifies the rendered output format and destination settings.\"),\n callback: z.string().describe(\"Optional webhook URL for receiving status notifications when rendering completes, fails, or when videos are sent to output destinations.\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"An edit defines the arrangement of a video on a timeline, an audio edit or an image design.\"),\n}).passthrough().describe(\"Timeline and output rendering data (Edit schema).\");\nconst ShotstackGetRenderStatus_RenderResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the render task in UUID format.\").nullable(),\n url: z.string().describe(\"The URL of the final asset (temporary, 24-hour validity).\").nullable().optional(),\n data: ShotstackGetRenderStatus_EditDataSchema.nullable().optional(),\n plan: z.string().describe(\"Customer subscription plan type.\").nullable().optional(),\n error: z.string().describe(\"An error message, only displayed if an error occurred.\").nullable().optional(),\n owner: z.string().describe(\"The owner ID of the render task.\").nullable(),\n poster: z.string().describe(\"The URL of the poster image if requested.\").nullable().optional(),\n status: z.enum([\"queued\", \"fetching\", \"preprocessing\", \"rendering\", \"saving\", \"done\", \"failed\"]).describe(\"The status of the render task.\").nullable(),\n created: z.string().describe(\"The time the render task was initially queued.\").nullable().optional(),\n updated: z.string().describe(\"The time the render status was last updated.\").nullable().optional(),\n duration: z.number().describe(\"The output video or audio length in seconds.\").nullable().optional(),\n thumbnail: z.string().describe(\"The URL of the thumbnail image if requested.\").nullable().optional(),\n renderTime: z.number().describe(\"The time taken to render the asset in milliseconds.\").nullable().optional(),\n}).passthrough().describe(\"Render job details and status information.\");\nexport const ShotstackGetRenderStatusOutput = z.object({\n message: z.string().describe(\"OK or an error message.\").nullable(),\n success: z.boolean().describe(\"true if status available, else false.\").nullable(),\n response: ShotstackGetRenderStatus_RenderResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing render job status and details.\");\n\nexport const shotstackGetRenderStatus = action(\"SHOTSTACK_GET_RENDER_STATUS\", {\n slug: \"shotstack-get-render-status\",\n name: \"Get Render Status\",\n description: \"Tool to retrieve the current status and details of a Shotstack render job by render ID. Use when polling a render until done or failed, typically after creating a render with SHOTSTACK_RENDER_VIDEO.\",\n input: ShotstackGetRenderStatusInput,\n output: ShotstackGetRenderStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CAChG,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAC/J,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,KAAK,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvK,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/M,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9L,UA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OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,UAAU,kDAAkD,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-render-status.cjs","names":["z","action"],"sources":["../../src/actions/get-render-status.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shotstack } from \"../app\";\n\nexport const ShotstackGetRenderStatusInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the render job to retrieve status for.\"),\n data: z.boolean().describe(\"Include the original timeline and output settings in the response. Default is false (will be deprecated to false soon).\").optional(),\n merged: z.boolean().describe(\"When used with data=true, shows merge fields merged into the data response.\").optional(),\n version: z.string().default(\"stage\").describe(\"API version to use. Use 'stage' for sandbox/testing or 'v1' for production.\").optional(),\n}).describe(\"Request model for retrieving render job status.\");\nconst ShotstackGetRenderStatus_EditDataSchema = z.object({\n disk: z.enum([\"local\", \"mount\"]).describe(\"Deprecated - formerly specified disk storage type; now handled automatically with no effect when set.\").nullable().optional(),\n merge: z.array(z.record(z.string(), z.unknown())).describe(\"An array of key/value pairs that provides an easy way to create templates with placeholders for dynamic content replacement.\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Specifies the rendered output format and destination settings.\"),\n callback: z.string().describe(\"Optional webhook URL for receiving status notifications when rendering completes, fails, or when videos are sent to output destinations.\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"An edit defines the arrangement of a video on a timeline, an audio edit or an image design.\"),\n}).passthrough().describe(\"Timeline and output rendering data (Edit schema).\");\nconst ShotstackGetRenderStatus_RenderResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the render task in UUID format.\").nullable(),\n url: z.string().describe(\"The URL of the final asset (temporary, 24-hour validity).\").nullable().optional(),\n data: ShotstackGetRenderStatus_EditDataSchema.nullable().optional(),\n plan: z.string().describe(\"Customer subscription plan type.\").nullable().optional(),\n error: z.string().describe(\"An error message, only displayed if an error occurred.\").nullable().optional(),\n owner: z.string().describe(\"The owner ID of the render task.\").nullable(),\n poster: z.string().describe(\"The URL of the poster image if requested.\").nullable().optional(),\n status: z.enum([\"queued\", \"fetching\", \"preprocessing\", \"rendering\", \"saving\", \"done\", \"failed\"]).describe(\"The status of the render task.\").nullable(),\n created: z.string().describe(\"The time the render task was initially queued.\").nullable().optional(),\n updated: z.string().describe(\"The time the render status was last updated.\").nullable().optional(),\n duration: z.number().describe(\"The output video or audio length in seconds.\").nullable().optional(),\n thumbnail: z.string().describe(\"The URL of the thumbnail image if requested.\").nullable().optional(),\n renderTime: z.number().describe(\"The time taken to render the asset in milliseconds.\").nullable().optional(),\n}).passthrough().describe(\"Render job details and status information.\");\nexport const ShotstackGetRenderStatusOutput = z.object({\n message: z.string().describe(\"OK or an error message.\").nullable(),\n success: z.boolean().describe(\"true if status available, else false.\").nullable(),\n response: ShotstackGetRenderStatus_RenderResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing render job status and details.\");\n\nexport const shotstackGetRenderStatus: AppAction<\n typeof ShotstackGetRenderStatusInput,\n typeof ShotstackGetRenderStatusOutput,\n typeof shotstack.credential\n> = action(\"SHOTSTACK_GET_RENDER_STATUS\", {\n slug: \"shotstack-get-render-status\",\n name: \"Get Render Status\",\n description: \"Tool to retrieve the current status and details of a Shotstack render job by render ID. Use when polling a render until done or failed, typically after creating a render with SHOTSTACK_RENDER_VIDEO.\",\n input: ShotstackGetRenderStatusInput,\n output: ShotstackGetRenderStatusOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CAChG,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAC/J,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,KAAK,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvK,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/M,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9L,UAAUA,IAAAA,EAAE,OAAOA,IAA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8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,UAAU,kDAAkD,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { shotstack } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-render-status.d.ts
@@ -43,26 +45,7 @@ declare const ShotstackGetRenderStatusOutput: z.ZodObject<{
43
45
  renderTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
46
  }, z.core.$loose>>;
45
47
  }, z.core.$loose>;
46
- declare const shotstackGetRenderStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
47
- id: string;
48
- data?: boolean | undefined;
49
- merged?: boolean | undefined;
50
- version?: string | undefined;
51
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
52
- connectionId: z.ZodString;
53
- entityId: z.ZodString;
54
- instanceId: z.ZodString;
55
- }, z.core.$strip>, z.ZodObject<{
56
- version: z.ZodString;
57
- generic_api_key: z.ZodString;
58
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
59
- connectionId: z.ZodString;
60
- entityId: z.ZodString;
61
- instanceId: z.ZodString;
62
- }, z.core.$strip>, z.ZodObject<{
63
- version: z.ZodString;
64
- generic_api_key: z.ZodString;
65
- }, z.core.$strip>>]>;
48
+ declare const shotstackGetRenderStatus: AppAction<typeof ShotstackGetRenderStatusInput, typeof ShotstackGetRenderStatusOutput, typeof shotstack.credential>;
66
49
  //#endregion
67
50
  export { shotstackGetRenderStatus };
68
51
  //# sourceMappingURL=get-render-status.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-render-status.d.cts","names":[],"sources":["../../src/actions/get-render-status.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-render-status.d.cts","names":[],"sources":["../../src/actions/get-render-status.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shotstack } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-render-status.d.ts
@@ -43,26 +45,7 @@ declare const ShotstackGetRenderStatusOutput: z.ZodObject<{
43
45
  renderTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
46
  }, z.core.$loose>>;
45
47
  }, z.core.$loose>;
46
- declare const shotstackGetRenderStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
47
- id: string;
48
- data?: boolean | undefined;
49
- merged?: boolean | undefined;
50
- version?: string | undefined;
51
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
52
- connectionId: z.ZodString;
53
- entityId: z.ZodString;
54
- instanceId: z.ZodString;
55
- }, z.core.$strip>, z.ZodObject<{
56
- version: z.ZodString;
57
- generic_api_key: z.ZodString;
58
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
59
- connectionId: z.ZodString;
60
- entityId: z.ZodString;
61
- instanceId: z.ZodString;
62
- }, z.core.$strip>, z.ZodObject<{
63
- version: z.ZodString;
64
- generic_api_key: z.ZodString;
65
- }, z.core.$strip>>]>;
48
+ declare const shotstackGetRenderStatus: AppAction<typeof ShotstackGetRenderStatusInput, typeof ShotstackGetRenderStatusOutput, typeof shotstack.credential>;
66
49
  //#endregion
67
50
  export { shotstackGetRenderStatus };
68
51
  //# sourceMappingURL=get-render-status.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-render-status.d.mts","names":[],"sources":["../../src/actions/get-render-status.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-render-status.d.mts","names":[],"sources":["../../src/actions/get-render-status.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-render-status.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-render-status.mjs","names":[],"sources":["../../src/actions/get-render-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetRenderStatusInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the render job to retrieve status for.\"),\n data: z.boolean().describe(\"Include the original timeline and output settings in the response. Default is false (will be deprecated to false soon).\").optional(),\n merged: z.boolean().describe(\"When used with data=true, shows merge fields merged into the data response.\").optional(),\n version: z.string().default(\"stage\").describe(\"API version to use. Use 'stage' for sandbox/testing or 'v1' for production.\").optional(),\n}).describe(\"Request model for retrieving render job status.\");\nconst ShotstackGetRenderStatus_EditDataSchema = z.object({\n disk: z.enum([\"local\", \"mount\"]).describe(\"Deprecated - formerly specified disk storage type; now handled automatically with no effect when set.\").nullable().optional(),\n merge: z.array(z.record(z.string(), z.unknown())).describe(\"An array of key/value pairs that provides an easy way to create templates with placeholders for dynamic content replacement.\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Specifies the rendered output format and destination settings.\"),\n callback: z.string().describe(\"Optional webhook URL for receiving status notifications when rendering completes, fails, or when videos are sent to output destinations.\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"An edit defines the arrangement of a video on a timeline, an audio edit or an image design.\"),\n}).passthrough().describe(\"Timeline and output rendering data (Edit schema).\");\nconst ShotstackGetRenderStatus_RenderResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the render task in UUID format.\").nullable(),\n url: z.string().describe(\"The URL of the final asset (temporary, 24-hour validity).\").nullable().optional(),\n data: ShotstackGetRenderStatus_EditDataSchema.nullable().optional(),\n plan: z.string().describe(\"Customer subscription plan type.\").nullable().optional(),\n error: z.string().describe(\"An error message, only displayed if an error occurred.\").nullable().optional(),\n owner: z.string().describe(\"The owner ID of the render task.\").nullable(),\n poster: z.string().describe(\"The URL of the poster image if requested.\").nullable().optional(),\n status: z.enum([\"queued\", \"fetching\", \"preprocessing\", \"rendering\", \"saving\", \"done\", \"failed\"]).describe(\"The status of the render task.\").nullable(),\n created: z.string().describe(\"The time the render task was initially queued.\").nullable().optional(),\n updated: z.string().describe(\"The time the render status was last updated.\").nullable().optional(),\n duration: z.number().describe(\"The output video or audio length in seconds.\").nullable().optional(),\n thumbnail: z.string().describe(\"The URL of the thumbnail image if requested.\").nullable().optional(),\n renderTime: z.number().describe(\"The time taken to render the asset in milliseconds.\").nullable().optional(),\n}).passthrough().describe(\"Render job details and status information.\");\nexport const ShotstackGetRenderStatusOutput = z.object({\n message: z.string().describe(\"OK or an error message.\").nullable(),\n success: z.boolean().describe(\"true if status available, else false.\").nullable(),\n response: ShotstackGetRenderStatus_RenderResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing render job status and details.\");\n\nexport const shotstackGetRenderStatus = action(\"SHOTSTACK_GET_RENDER_STATUS\", {\n slug: \"shotstack-get-render-status\",\n name: \"Get Render Status\",\n description: \"Tool to retrieve the current status and details of a Shotstack render job by render ID. Use when polling a render until done or failed, typically after creating a render with SHOTSTACK_RENDER_VIDEO.\",\n input: ShotstackGetRenderStatusInput,\n output: ShotstackGetRenderStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CAChG,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAC/J,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,KAAK,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SA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,CAAC,CAAC,SAAS;CACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAOtE,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4C,EAAE,OAAO;EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAChF,UAAU,kDAAkD,SAAS;CACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-render-status.mjs","names":[],"sources":["../../src/actions/get-render-status.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shotstack } from \"../app\";\n\nexport const ShotstackGetRenderStatusInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the render job to retrieve status for.\"),\n data: z.boolean().describe(\"Include the original timeline and output settings in the response. Default is false (will be deprecated to false soon).\").optional(),\n merged: z.boolean().describe(\"When used with data=true, shows merge fields merged into the data response.\").optional(),\n version: z.string().default(\"stage\").describe(\"API version to use. Use 'stage' for sandbox/testing or 'v1' for production.\").optional(),\n}).describe(\"Request model for retrieving render job status.\");\nconst ShotstackGetRenderStatus_EditDataSchema = z.object({\n disk: z.enum([\"local\", \"mount\"]).describe(\"Deprecated - formerly specified disk storage type; now handled automatically with no effect when set.\").nullable().optional(),\n merge: z.array(z.record(z.string(), z.unknown())).describe(\"An array of key/value pairs that provides an easy way to create templates with placeholders for dynamic content replacement.\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Specifies the rendered output format and destination settings.\"),\n callback: z.string().describe(\"Optional webhook URL for receiving status notifications when rendering completes, fails, or when videos are sent to output destinations.\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"An edit defines the arrangement of a video on a timeline, an audio edit or an image design.\"),\n}).passthrough().describe(\"Timeline and output rendering data (Edit schema).\");\nconst ShotstackGetRenderStatus_RenderResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the render task in UUID format.\").nullable(),\n url: z.string().describe(\"The URL of the final asset (temporary, 24-hour validity).\").nullable().optional(),\n data: ShotstackGetRenderStatus_EditDataSchema.nullable().optional(),\n plan: z.string().describe(\"Customer subscription plan type.\").nullable().optional(),\n error: z.string().describe(\"An error message, only displayed if an error occurred.\").nullable().optional(),\n owner: z.string().describe(\"The owner ID of the render task.\").nullable(),\n poster: z.string().describe(\"The URL of the poster image if requested.\").nullable().optional(),\n status: z.enum([\"queued\", \"fetching\", \"preprocessing\", \"rendering\", \"saving\", \"done\", \"failed\"]).describe(\"The status of the render task.\").nullable(),\n created: z.string().describe(\"The time the render task was initially queued.\").nullable().optional(),\n updated: z.string().describe(\"The time the render status was last updated.\").nullable().optional(),\n duration: z.number().describe(\"The output video or audio length in seconds.\").nullable().optional(),\n thumbnail: z.string().describe(\"The URL of the thumbnail image if requested.\").nullable().optional(),\n renderTime: z.number().describe(\"The time taken to render the asset in milliseconds.\").nullable().optional(),\n}).passthrough().describe(\"Render job details and status information.\");\nexport const ShotstackGetRenderStatusOutput = z.object({\n message: z.string().describe(\"OK or an error message.\").nullable(),\n success: z.boolean().describe(\"true if status available, else false.\").nullable(),\n response: ShotstackGetRenderStatus_RenderResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing render job status and details.\");\n\nexport const shotstackGetRenderStatus: AppAction<\n typeof ShotstackGetRenderStatusInput,\n typeof ShotstackGetRenderStatusOutput,\n typeof shotstack.credential\n> = action(\"SHOTSTACK_GET_RENDER_STATUS\", {\n slug: \"shotstack-get-render-status\",\n name: \"Get Render Status\",\n description: \"Tool to retrieve the current status and details of a Shotstack render job by render ID. Use when polling a render until done or failed, typically after creating a render with SHOTSTACK_RENDER_VIDEO.\",\n input: ShotstackGetRenderStatusInput,\n output: ShotstackGetRenderStatusOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CAChG,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAC/J,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,KAAK,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvK,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/M,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9L,UAAU,EA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AC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAOtE,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf4C,EAAE,OAAO;EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAChF,UAAU,kDAAkD,SAAS;CACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-source.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-source.cjs","names":["z","action"],"sources":["../../src/actions/get-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetSourceInput = z.object({\n id: z.string().describe(\"Unique identifier of the source asset to retrieve.\"),\n}).describe(\"Request model for retrieving a source asset by ID.\");\nconst ShotstackGetSource_SourceAttributesSchema = z.object({\n id: z.string().describe(\"The unique identifier for the source asset.\").nullable(),\n fps: z.number().describe(\"Frame rate of the video.\").nullable().optional(),\n error: z.string().describe(\"Error message if ingestion failed.\").nullable().optional(),\n input: z.string().describe(\"The original input URL that was ingested.\").nullable(),\n owner: z.string().describe(\"The owner identifier for the source asset.\").nullable(),\n width: z.number().int().describe(\"Width of the media in pixels (for video/image).\").nullable().optional(),\n height: z.number().int().describe(\"Height of the media in pixels (for video/image).\").nullable().optional(),\n source: z.string().describe(\"The URL of the ingested source file in Shotstack storage.\").nullable().optional(),\n status: z.string().describe(\"The ingestion status of the source (e.g., pending, ready, failed).\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was ingested.\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source status was last updated.\").nullable(),\n duration: z.number().describe(\"Duration of the media in seconds (for video/audio).\").nullable().optional(),\n filesize: z.number().int().describe(\"The file size in bytes.\").nullable().optional(),\n extension: z.string().describe(\"The file extension of the source.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a source asset.\");\nconst ShotstackGetSource_SourceDataSchema = z.object({\n id: z.string().describe(\"The unique identifier for the source asset.\").nullable(),\n type: z.string().describe(\"The resource type (always 'source').\").nullable(),\n attributes: ShotstackGetSource_SourceAttributesSchema.nullable(),\n}).passthrough().describe(\"JSON:API format source data wrapper.\");\nexport const ShotstackGetSourceOutput = z.object({\n data: ShotstackGetSource_SourceDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing details of the requested source asset.\");\n\nexport const shotstackGetSource = action(\"SHOTSTACK_GET_SOURCE\", {\n slug: \"shotstack-get-source\",\n name: \"Get Source Details\",\n description: \"Tool to fetch the details of a specific source asset. Use when you need to inspect a source after uploading, check its status, or diagnose ingest/render failures—such as unsupported codecs, corrupt files, or bad URLs—before retrying.\",\n input: ShotstackGetSourceInput,\n output: ShotstackGetSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C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S;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,oCAAoC,SAAS,EACrD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-source.cjs","names":["z","action"],"sources":["../../src/actions/get-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shotstack } from \"../app\";\n\nexport const ShotstackGetSourceInput = z.object({\n id: z.string().describe(\"Unique identifier of the source asset to retrieve.\"),\n}).describe(\"Request model for retrieving a source asset by ID.\");\nconst ShotstackGetSource_SourceAttributesSchema = z.object({\n id: z.string().describe(\"The unique identifier for the source asset.\").nullable(),\n fps: z.number().describe(\"Frame rate of the video.\").nullable().optional(),\n error: z.string().describe(\"Error message if ingestion failed.\").nullable().optional(),\n input: z.string().describe(\"The original input URL that was ingested.\").nullable(),\n owner: z.string().describe(\"The owner identifier for the source asset.\").nullable(),\n width: z.number().int().describe(\"Width of the media in pixels (for video/image).\").nullable().optional(),\n height: z.number().int().describe(\"Height of the media in pixels (for video/image).\").nullable().optional(),\n source: z.string().describe(\"The URL of the ingested source file in Shotstack storage.\").nullable().optional(),\n status: z.string().describe(\"The ingestion status of the source (e.g., pending, ready, failed).\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was ingested.\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source status was last updated.\").nullable(),\n duration: z.number().describe(\"Duration of the media in seconds (for video/audio).\").nullable().optional(),\n filesize: z.number().int().describe(\"The file size in bytes.\").nullable().optional(),\n extension: z.string().describe(\"The file extension of the source.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a source asset.\");\nconst ShotstackGetSource_SourceDataSchema = z.object({\n id: z.string().describe(\"The unique identifier for the source asset.\").nullable(),\n type: z.string().describe(\"The resource type (always 'source').\").nullable(),\n attributes: ShotstackGetSource_SourceAttributesSchema.nullable(),\n}).passthrough().describe(\"JSON:API format source data wrapper.\");\nexport const ShotstackGetSourceOutput = z.object({\n data: ShotstackGetSource_SourceDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing details of the requested source asset.\");\n\nexport const shotstackGetSource: AppAction<\n typeof ShotstackGetSourceInput,\n typeof ShotstackGetSourceOutput,\n typeof shotstack.credential\n> = action(\"SHOTSTACK_GET_SOURCE\", {\n slug: \"shotstack-get-source\",\n name: \"Get Source Details\",\n description: \"Tool to fetch the details of a specific source asset. Use when you need to inspect a source after uploading, check its status, or diagnose ingest/render failures—such as unsupported codecs, corrupt files, or bad URLs—before retrying.\",\n input: ShotstackGetSourceInput,\n output: ShotstackGetSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,OAAOA,IA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,oCAAoC,SAAS,EACrD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { shotstack } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-source.d.ts
@@ -26,23 +28,7 @@ declare const ShotstackGetSourceOutput: z.ZodObject<{
26
28
  }, z.core.$loose>>;
27
29
  }, z.core.$loose>>;
28
30
  }, z.core.$loose>;
29
- declare const shotstackGetSource: import("@keystrokehq/action").WorkflowActionDefinition<{
30
- id: string;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- version: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
39
- connectionId: z.ZodString;
40
- entityId: z.ZodString;
41
- instanceId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- version: z.ZodString;
44
- generic_api_key: z.ZodString;
45
- }, z.core.$strip>>]>;
31
+ declare const shotstackGetSource: AppAction<typeof ShotstackGetSourceInput, typeof ShotstackGetSourceOutput, typeof shotstack.credential>;
46
32
  //#endregion
47
33
  export { shotstackGetSource };
48
34
  //# sourceMappingURL=get-source.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-source.d.cts","names":[],"sources":["../../src/actions/get-source.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAwBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-source.d.cts","names":[],"sources":["../../src/actions/get-source.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAwBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shotstack } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-source.d.ts
@@ -26,23 +28,7 @@ declare const ShotstackGetSourceOutput: z.ZodObject<{
26
28
  }, z.core.$loose>>;
27
29
  }, z.core.$loose>>;
28
30
  }, z.core.$loose>;
29
- declare const shotstackGetSource: import("@keystrokehq/action").WorkflowActionDefinition<{
30
- id: string;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- version: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
39
- connectionId: z.ZodString;
40
- entityId: z.ZodString;
41
- instanceId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- version: z.ZodString;
44
- generic_api_key: z.ZodString;
45
- }, z.core.$strip>>]>;
31
+ declare const shotstackGetSource: AppAction<typeof ShotstackGetSourceInput, typeof ShotstackGetSourceOutput, typeof shotstack.credential>;
46
32
  //#endregion
47
33
  export { shotstackGetSource };
48
34
  //# sourceMappingURL=get-source.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-source.d.mts","names":[],"sources":["../../src/actions/get-source.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAwBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-source.d.mts","names":[],"sources":["../../src/actions/get-source.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAwBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-source.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-source.mjs","names":[],"sources":["../../src/actions/get-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetSourceInput = z.object({\n id: z.string().describe(\"Unique identifier of the source asset to retrieve.\"),\n}).describe(\"Request model for retrieving a source asset by ID.\");\nconst ShotstackGetSource_SourceAttributesSchema = z.object({\n id: z.string().describe(\"The unique identifier for the source asset.\").nullable(),\n fps: z.number().describe(\"Frame rate of the video.\").nullable().optional(),\n error: z.string().describe(\"Error message if ingestion failed.\").nullable().optional(),\n input: z.string().describe(\"The original input URL that was ingested.\").nullable(),\n owner: z.string().describe(\"The owner identifier for the source asset.\").nullable(),\n width: z.number().int().describe(\"Width of the media in pixels (for video/image).\").nullable().optional(),\n height: z.number().int().describe(\"Height of the media in pixels (for video/image).\").nullable().optional(),\n source: z.string().describe(\"The URL of the ingested source file in Shotstack storage.\").nullable().optional(),\n status: z.string().describe(\"The ingestion status of the source (e.g., pending, ready, failed).\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was ingested.\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source status was last updated.\").nullable(),\n duration: z.number().describe(\"Duration of the media in seconds (for video/audio).\").nullable().optional(),\n filesize: z.number().int().describe(\"The file size in bytes.\").nullable().optional(),\n extension: z.string().describe(\"The file extension of the source.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a source asset.\");\nconst ShotstackGetSource_SourceDataSchema = z.object({\n id: z.string().describe(\"The unique identifier for the source asset.\").nullable(),\n type: z.string().describe(\"The resource type (always 'source').\").nullable(),\n attributes: ShotstackGetSource_SourceAttributesSchema.nullable(),\n}).passthrough().describe(\"JSON:API format source data wrapper.\");\nexport const ShotstackGetSourceOutput = z.object({\n data: ShotstackGetSource_SourceDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing details of the requested source asset.\");\n\nexport const shotstackGetSource = action(\"SHOTSTACK_GET_SOURCE\", {\n slug: \"shotstack-get-source\",\n name: \"Get Source Details\",\n description: \"Tool to fetch the details of a specific source asset. Use when you need to inspect a source after uploading, check its status, or diagnose ingest/render failures—such as unsupported codecs, corrupt files, or bad URLs—before retrying.\",\n input: ShotstackGetSourceInput,\n output: ShotstackGetSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;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EACrD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-source.mjs","names":[],"sources":["../../src/actions/get-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shotstack } from \"../app\";\n\nexport const ShotstackGetSourceInput = z.object({\n id: z.string().describe(\"Unique identifier of the source asset to retrieve.\"),\n}).describe(\"Request model for retrieving a source asset by ID.\");\nconst ShotstackGetSource_SourceAttributesSchema = z.object({\n id: z.string().describe(\"The unique identifier for the source asset.\").nullable(),\n fps: z.number().describe(\"Frame rate of the video.\").nullable().optional(),\n error: z.string().describe(\"Error message if ingestion failed.\").nullable().optional(),\n input: z.string().describe(\"The original input URL that was ingested.\").nullable(),\n owner: z.string().describe(\"The owner identifier for the source asset.\").nullable(),\n width: z.number().int().describe(\"Width of the media in pixels (for video/image).\").nullable().optional(),\n height: z.number().int().describe(\"Height of the media in pixels (for video/image).\").nullable().optional(),\n source: z.string().describe(\"The URL of the ingested source file in Shotstack storage.\").nullable().optional(),\n status: z.string().describe(\"The ingestion status of the source (e.g., pending, ready, failed).\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was ingested.\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source status was last updated.\").nullable(),\n duration: z.number().describe(\"Duration of the media in seconds (for video/audio).\").nullable().optional(),\n filesize: z.number().int().describe(\"The file size in bytes.\").nullable().optional(),\n extension: z.string().describe(\"The file extension of the source.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a source asset.\");\nconst ShotstackGetSource_SourceDataSchema = z.object({\n id: z.string().describe(\"The unique identifier for the source asset.\").nullable(),\n type: z.string().describe(\"The resource type (always 'source').\").nullable(),\n attributes: ShotstackGetSource_SourceAttributesSchema.nullable(),\n}).passthrough().describe(\"JSON:API format source data wrapper.\");\nexport const ShotstackGetSourceOutput = z.object({\n data: ShotstackGetSource_SourceDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing details of the requested source asset.\");\n\nexport const shotstackGetSource: AppAction<\n typeof ShotstackGetSourceInput,\n typeof ShotstackGetSourceOutput,\n typeof shotstack.credential\n> = action(\"SHOTSTACK_GET_SOURCE\", {\n slug: \"shotstack-get-source\",\n name: \"Get Source Details\",\n description: \"Tool to fetch the details of a specific source asset. Use when you need to inspect a source after uploading, check its status, or diagnose ingest/render failures—such as unsupported codecs, corrupt files, or bad URLs—before retrying.\",\n input: ShotstackGetSourceInput,\n output: ShotstackGetSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACrG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AACzD,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,YAAY,0CAA0C,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAKhE,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO,EAC/C,MAAM,oCAAoC,SAAS,EACrD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-template-by-version.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-template-by-version.cjs","names":["z","action"],"sources":["../../src/actions/get-template-by-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetTemplateByVersionInput = z.object({\n id: z.string().describe(\"The id of the template in UUID format\"),\n version: z.string().default(\"v1\").describe(\"The version of the Edit API to use. Common values: 'v1', 'stage'.\").optional(),\n}).describe(\"Parameters required to retrieve details of a specific template by version.\");\nconst ShotstackGetTemplateByVersion_TemplateEditSchema = z.object({\n disk: z.string().describe(\"Disk storage configuration for assets\").nullable().optional(),\n merge: z.array(z.unknown()).describe(\"Merge fields for template\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output settings for the template\").nullable().optional(),\n callback: z.string().describe(\"Callback URL for webhooks\").nullable().optional(),\n instance: z.string().describe(\"Instance configuration\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"Timeline definition of the template\").nullable().optional(),\n}).passthrough().describe(\"Template edit configuration containing timeline and output settings.\");\nconst ShotstackGetTemplateByVersion_TemplateDataResponseSchema = z.object({\n id: z.string().describe(\"The unique id of the template in UUID format\").nullable(),\n name: z.string().describe(\"The template name\").nullable(),\n owner: z.string().describe(\"The owner id of the template\").nullable(),\n template: ShotstackGetTemplateByVersion_TemplateEditSchema.nullable(),\n}).passthrough().describe(\"Template data response containing template details.\");\nexport const ShotstackGetTemplateByVersionOutput = z.object({\n message: z.string().describe(\"OK, Bad Request or an error message\").nullable(),\n success: z.boolean().describe(\"true if successfully returned, else false\").nullable(),\n response: ShotstackGetTemplateByVersion_TemplateDataResponseSchema.nullable(),\n}).passthrough().describe(\"Response schema for template retrieval by version.\");\n\nexport const shotstackGetTemplateByVersion = action(\"SHOTSTACK_GET_TEMPLATE_BY_VERSION\", {\n slug: \"shotstack-get-template-by-version\",\n name: \"Get Template By Version\",\n description: \"Tool to retrieve a template by template id and API version. Use when you need to fetch template details from a specific Edit API version.\",\n input: ShotstackGetTemplateByVersionInput,\n output: ShotstackGetTemplateByVersionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC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AAS;CACpE,UAAU,iDAAiD,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,UAAU,yDAAyD,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-template-by-version.cjs","names":["z","action"],"sources":["../../src/actions/get-template-by-version.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shotstack } from \"../app\";\n\nexport const ShotstackGetTemplateByVersionInput = z.object({\n id: z.string().describe(\"The id of the template in UUID format\"),\n version: z.string().default(\"v1\").describe(\"The version of the Edit API to use. Common values: 'v1', 'stage'.\").optional(),\n}).describe(\"Parameters required to retrieve details of a specific template by version.\");\nconst ShotstackGetTemplateByVersion_TemplateEditSchema = z.object({\n disk: z.string().describe(\"Disk storage configuration for assets\").nullable().optional(),\n merge: z.array(z.unknown()).describe(\"Merge fields for template\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output settings for the template\").nullable().optional(),\n callback: z.string().describe(\"Callback URL for webhooks\").nullable().optional(),\n instance: z.string().describe(\"Instance configuration\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"Timeline definition of the template\").nullable().optional(),\n}).passthrough().describe(\"Template edit configuration containing timeline and output settings.\");\nconst ShotstackGetTemplateByVersion_TemplateDataResponseSchema = z.object({\n id: z.string().describe(\"The unique id of the template in UUID format\").nullable(),\n name: z.string().describe(\"The template name\").nullable(),\n owner: z.string().describe(\"The owner id of the template\").nullable(),\n template: ShotstackGetTemplateByVersion_TemplateEditSchema.nullable(),\n}).passthrough().describe(\"Template data response containing template details.\");\nexport const ShotstackGetTemplateByVersionOutput = z.object({\n message: z.string().describe(\"OK, Bad Request or an error message\").nullable(),\n success: z.boolean().describe(\"true if successfully returned, else false\").nullable(),\n response: ShotstackGetTemplateByVersion_TemplateDataResponseSchema.nullable(),\n}).passthrough().describe(\"Response schema for template retrieval by version.\");\n\nexport const shotstackGetTemplateByVersion: AppAction<\n typeof ShotstackGetTemplateByVersionInput,\n typeof ShotstackGetTemplateByVersionOutput,\n typeof shotstack.credential\n> = action(\"SHOTSTACK_GET_TEMPLATE_BY_VERSION\", {\n slug: \"shotstack-get-template-by-version\",\n name: \"Get Template By Version\",\n description: \"Tool to retrieve a template by template id and API version. Use when you need to fetch template details from a specific Edit API version.\",\n input: ShotstackGetTemplateByVersionInput,\n output: ShotstackGetTemplateByVersionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAA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}
@@ -1,3 +1,5 @@
1
+ import { shotstack } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-template-by-version.d.ts
@@ -22,24 +24,7 @@ declare const ShotstackGetTemplateByVersionOutput: z.ZodObject<{
22
24
  }, z.core.$loose>>;
23
25
  }, z.core.$loose>>;
24
26
  }, z.core.$loose>;
25
- declare const shotstackGetTemplateByVersion: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- id: string;
27
- version?: string | undefined;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- version: z.ZodString;
34
- generic_api_key: z.ZodString;
35
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- version: z.ZodString;
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>;
27
+ declare const shotstackGetTemplateByVersion: AppAction<typeof ShotstackGetTemplateByVersionInput, typeof ShotstackGetTemplateByVersionOutput, typeof shotstack.credential>;
43
28
  //#endregion
44
29
  export { shotstackGetTemplateByVersion };
45
30
  //# sourceMappingURL=get-template-by-version.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-template-by-version.d.cts","names":[],"sources":["../../src/actions/get-template-by-version.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAkBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"get-template-by-version.d.cts","names":[],"sources":["../../src/actions/get-template-by-version.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAkBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shotstack } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-template-by-version.d.ts
@@ -22,24 +24,7 @@ declare const ShotstackGetTemplateByVersionOutput: z.ZodObject<{
22
24
  }, z.core.$loose>>;
23
25
  }, z.core.$loose>>;
24
26
  }, z.core.$loose>;
25
- declare const shotstackGetTemplateByVersion: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- id: string;
27
- version?: string | undefined;
28
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- version: z.ZodString;
34
- generic_api_key: z.ZodString;
35
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- version: z.ZodString;
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>;
27
+ declare const shotstackGetTemplateByVersion: AppAction<typeof ShotstackGetTemplateByVersionInput, typeof ShotstackGetTemplateByVersionOutput, typeof shotstack.credential>;
43
28
  //#endregion
44
29
  export { shotstackGetTemplateByVersion };
45
30
  //# sourceMappingURL=get-template-by-version.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-template-by-version.d.mts","names":[],"sources":["../../src/actions/get-template-by-version.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAkBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"get-template-by-version.d.mts","names":[],"sources":["../../src/actions/get-template-by-version.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAkBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-template-by-version.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-template-by-version.mjs","names":[],"sources":["../../src/actions/get-template-by-version.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetTemplateByVersionInput = z.object({\n id: z.string().describe(\"The id of the template in UUID format\"),\n version: z.string().default(\"v1\").describe(\"The version of the Edit API to use. Common values: 'v1', 'stage'.\").optional(),\n}).describe(\"Parameters required to retrieve details of a specific template by version.\");\nconst ShotstackGetTemplateByVersion_TemplateEditSchema = z.object({\n disk: z.string().describe(\"Disk storage configuration for assets\").nullable().optional(),\n merge: z.array(z.unknown()).describe(\"Merge fields for template\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output settings for the template\").nullable().optional(),\n callback: z.string().describe(\"Callback URL for webhooks\").nullable().optional(),\n instance: z.string().describe(\"Instance configuration\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"Timeline definition of the template\").nullable().optional(),\n}).passthrough().describe(\"Template edit configuration containing timeline and output settings.\");\nconst ShotstackGetTemplateByVersion_TemplateDataResponseSchema = z.object({\n id: z.string().describe(\"The unique id of the template in UUID format\").nullable(),\n name: z.string().describe(\"The template name\").nullable(),\n owner: z.string().describe(\"The owner id of the template\").nullable(),\n template: ShotstackGetTemplateByVersion_TemplateEditSchema.nullable(),\n}).passthrough().describe(\"Template data response containing template details.\");\nexport const ShotstackGetTemplateByVersionOutput = z.object({\n message: z.string().describe(\"OK, Bad Request or an error message\").nullable(),\n success: z.boolean().describe(\"true if successfully returned, else false\").nullable(),\n response: ShotstackGetTemplateByVersion_TemplateDataResponseSchema.nullable(),\n}).passthrough().describe(\"Response schema for template retrieval by version.\");\n\nexport const shotstackGetTemplateByVersion = action(\"SHOTSTACK_GET_TEMPLATE_BY_VERSION\", {\n slug: \"shotstack-get-template-by-version\",\n name: \"Get Template By Version\",\n description: \"Tool to retrieve a template by template id and API version. Use when you need to fetch template details from a specific Edit API version.\",\n input: ShotstackGetTemplateByVersionInput,\n output: ShotstackGetTemplateByVersionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sEAAsE;AAChG,MAAM,2DAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,UAAU,iDAAiD,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAO/E,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACpF,UAAU,yDAAyD,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-template-by-version.mjs","names":[],"sources":["../../src/actions/get-template-by-version.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shotstack } from \"../app\";\n\nexport const ShotstackGetTemplateByVersionInput = z.object({\n id: z.string().describe(\"The id of the template in UUID format\"),\n version: z.string().default(\"v1\").describe(\"The version of the Edit API to use. Common values: 'v1', 'stage'.\").optional(),\n}).describe(\"Parameters required to retrieve details of a specific template by version.\");\nconst ShotstackGetTemplateByVersion_TemplateEditSchema = z.object({\n disk: z.string().describe(\"Disk storage configuration for assets\").nullable().optional(),\n merge: z.array(z.unknown()).describe(\"Merge fields for template\").nullable().optional(),\n output: z.record(z.string(), z.unknown()).describe(\"Output settings for the template\").nullable().optional(),\n callback: z.string().describe(\"Callback URL for webhooks\").nullable().optional(),\n instance: z.string().describe(\"Instance configuration\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"Timeline definition of the template\").nullable().optional(),\n}).passthrough().describe(\"Template edit configuration containing timeline and output settings.\");\nconst ShotstackGetTemplateByVersion_TemplateDataResponseSchema = z.object({\n id: z.string().describe(\"The unique id of the template in UUID format\").nullable(),\n name: z.string().describe(\"The template name\").nullable(),\n owner: z.string().describe(\"The owner id of the template\").nullable(),\n template: ShotstackGetTemplateByVersion_TemplateEditSchema.nullable(),\n}).passthrough().describe(\"Template data response containing template details.\");\nexport const ShotstackGetTemplateByVersionOutput = z.object({\n message: z.string().describe(\"OK, Bad Request or an error message\").nullable(),\n success: z.boolean().describe(\"true if successfully returned, else false\").nullable(),\n response: ShotstackGetTemplateByVersion_TemplateDataResponseSchema.nullable(),\n}).passthrough().describe(\"Response schema for template retrieval by version.\");\n\nexport const shotstackGetTemplateByVersion: AppAction<\n typeof ShotstackGetTemplateByVersionInput,\n typeof ShotstackGetTemplateByVersionOutput,\n typeof shotstack.credential\n> = action(\"SHOTSTACK_GET_TEMPLATE_BY_VERSION\", {\n slug: \"shotstack-get-template-by-version\",\n name: \"Get Template By Version\",\n description: \"Tool to retrieve a template by template id and API version. Use when you need to fetch template details from a specific Edit API version.\",\n input: ShotstackGetTemplateByVersionInput,\n output: ShotstackGetTemplateByVersionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CA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C,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACpF,UAAU,yDAAyD,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-template.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-template.cjs","names":["z","action"],"sources":["../../src/actions/get-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetTemplateInput = z.object({\n templateId: z.string().describe(\"The unique identifier of the template to retrieve.\"),\n}).describe(\"Parameters required to retrieve details of a specific template.\");\nconst ShotstackGetTemplate_TemplateDataSchema = z.object({\n output: z.record(z.string(), z.unknown()).describe(\"Output settings for the template (format, resolution, etc.).\").nullable().optional(),\n callback: z.string().describe(\"Webhook URL to call when render completes.\").nullable().optional(),\n instance: z.string().describe(\"Shotstack instance identifier.\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"Timeline definition of the template.\").nullable().optional(),\n}).passthrough().describe(\"Object containing the actual template definition with timeline and output settings.\");\nconst ShotstackGetTemplate_TemplateResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the template.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n owner: z.string().describe(\"Owner's Shotstack account ID.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the template was created.\").nullable().optional(),\n updated: z.string().describe(\"ISO 8601 timestamp when the template was last updated.\").nullable().optional(),\n template: z.union([z.boolean(), ShotstackGetTemplate_TemplateDataSchema]),\n}).passthrough().describe(\"Data object containing template details.\");\nexport const ShotstackGetTemplateOutput = z.object({\n message: z.string().describe(\"Informational message returned by the API.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the request was successful.\").nullable(),\n response: ShotstackGetTemplate_TemplateResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for template retrieval.\");\n\nexport const shotstackGetTemplate = action(\"SHOTSTACK_GET_TEMPLATE\", {\n slug: \"shotstack-get-template\",\n name: \"Get Template\",\n description: \"Tool to retrieve details of a specific template. Use when you have the ID of an existing template and need its metadata.\",\n input: ShotstackGetTemplateInput,\n output: ShotstackGetTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EACtF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAAqF;AAC/G,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,GAAG,uCAAuC,CAAC;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAU,gDAAgD,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-template.cjs","names":["z","action"],"sources":["../../src/actions/get-template.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shotstack } from \"../app\";\n\nexport const ShotstackGetTemplateInput = z.object({\n templateId: z.string().describe(\"The unique identifier of the template to retrieve.\"),\n}).describe(\"Parameters required to retrieve details of a specific template.\");\nconst ShotstackGetTemplate_TemplateDataSchema = z.object({\n output: z.record(z.string(), z.unknown()).describe(\"Output settings for the template (format, resolution, etc.).\").nullable().optional(),\n callback: z.string().describe(\"Webhook URL to call when render completes.\").nullable().optional(),\n instance: z.string().describe(\"Shotstack instance identifier.\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"Timeline definition of the template.\").nullable().optional(),\n}).passthrough().describe(\"Object containing the actual template definition with timeline and output settings.\");\nconst ShotstackGetTemplate_TemplateResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the template.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n owner: z.string().describe(\"Owner's Shotstack account ID.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the template was created.\").nullable().optional(),\n updated: z.string().describe(\"ISO 8601 timestamp when the template was last updated.\").nullable().optional(),\n template: z.union([z.boolean(), ShotstackGetTemplate_TemplateDataSchema]),\n}).passthrough().describe(\"Data object containing template details.\");\nexport const ShotstackGetTemplateOutput = z.object({\n message: z.string().describe(\"Informational message returned by the API.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the request was successful.\").nullable(),\n response: ShotstackGetTemplate_TemplateResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for template retrieval.\");\n\nexport const shotstackGetTemplate: AppAction<\n typeof ShotstackGetTemplateInput,\n typeof ShotstackGetTemplateOutput,\n typeof shotstack.credential\n> = action(\"SHOTSTACK_GET_TEMPLATE\", {\n slug: \"shotstack-get-template\",\n name: \"Get Template\",\n description: \"Tool to retrieve details of a specific template. Use when you have the ID of an existing template and need its metadata.\",\n input: ShotstackGetTemplateInput,\n output: ShotstackGetTemplateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EACtF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,UAAUA,IAAAA,EAAE,OA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,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { shotstack } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-template.d.ts
@@ -21,23 +23,7 @@ declare const ShotstackGetTemplateOutput: z.ZodObject<{
21
23
  }, z.core.$loose>]>;
22
24
  }, z.core.$loose>>;
23
25
  }, z.core.$loose>;
24
- declare const shotstackGetTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- templateId: string;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- version: z.ZodString;
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- version: z.ZodString;
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>;
26
+ declare const shotstackGetTemplate: AppAction<typeof ShotstackGetTemplateInput, typeof ShotstackGetTemplateOutput, typeof shotstack.credential>;
41
27
  //#endregion
42
28
  export { shotstackGetTemplate };
43
29
  //# sourceMappingURL=get-template.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-template.d.cts","names":[],"sources":["../../src/actions/get-template.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAiBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"get-template.d.cts","names":[],"sources":["../../src/actions/get-template.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAiBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shotstack } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-template.d.ts
@@ -21,23 +23,7 @@ declare const ShotstackGetTemplateOutput: z.ZodObject<{
21
23
  }, z.core.$loose>]>;
22
24
  }, z.core.$loose>>;
23
25
  }, z.core.$loose>;
24
- declare const shotstackGetTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- templateId: string;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- version: z.ZodString;
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shotstack", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- version: z.ZodString;
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>;
26
+ declare const shotstackGetTemplate: AppAction<typeof ShotstackGetTemplateInput, typeof ShotstackGetTemplateOutput, typeof shotstack.credential>;
41
27
  //#endregion
42
28
  export { shotstackGetTemplate };
43
29
  //# sourceMappingURL=get-template.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-template.d.mts","names":[],"sources":["../../src/actions/get-template.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAiBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"get-template.d.mts","names":[],"sources":["../../src/actions/get-template.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAiBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-template.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-template.mjs","names":[],"sources":["../../src/actions/get-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetTemplateInput = z.object({\n templateId: z.string().describe(\"The unique identifier of the template to retrieve.\"),\n}).describe(\"Parameters required to retrieve details of a specific template.\");\nconst ShotstackGetTemplate_TemplateDataSchema = z.object({\n output: z.record(z.string(), z.unknown()).describe(\"Output settings for the template (format, resolution, etc.).\").nullable().optional(),\n callback: z.string().describe(\"Webhook URL to call when render completes.\").nullable().optional(),\n instance: z.string().describe(\"Shotstack instance identifier.\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"Timeline definition of the template.\").nullable().optional(),\n}).passthrough().describe(\"Object containing the actual template definition with timeline and output settings.\");\nconst ShotstackGetTemplate_TemplateResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the template.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n owner: z.string().describe(\"Owner's Shotstack account ID.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the template was created.\").nullable().optional(),\n updated: z.string().describe(\"ISO 8601 timestamp when the template was last updated.\").nullable().optional(),\n template: z.union([z.boolean(), ShotstackGetTemplate_TemplateDataSchema]),\n}).passthrough().describe(\"Data object containing template details.\");\nexport const ShotstackGetTemplateOutput = z.object({\n message: z.string().describe(\"Informational message returned by the API.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the request was successful.\").nullable(),\n response: ShotstackGetTemplate_TemplateResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for template retrieval.\");\n\nexport const shotstackGetTemplate = action(\"SHOTSTACK_GET_TEMPLATE\", {\n slug: \"shotstack-get-template\",\n name: \"Get Template\",\n description: \"Tool to retrieve details of a specific template. Use when you have the ID of an existing template and need its metadata.\",\n input: ShotstackGetTemplateInput,\n output: ShotstackGetTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EACtF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,0CAA0C,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAAqF;AAC/G,MAAM,kDAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,UAAU,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,uCAAuC,CAAC;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAOpE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,UAAU,gDAAgD,SAAS;CACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-template.mjs","names":[],"sources":["../../src/actions/get-template.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shotstack } from \"../app\";\n\nexport const ShotstackGetTemplateInput = z.object({\n templateId: z.string().describe(\"The unique identifier of the template to retrieve.\"),\n}).describe(\"Parameters required to retrieve details of a specific template.\");\nconst ShotstackGetTemplate_TemplateDataSchema = z.object({\n output: z.record(z.string(), z.unknown()).describe(\"Output settings for the template (format, resolution, etc.).\").nullable().optional(),\n callback: z.string().describe(\"Webhook URL to call when render completes.\").nullable().optional(),\n instance: z.string().describe(\"Shotstack instance identifier.\").nullable().optional(),\n timeline: z.record(z.string(), z.unknown()).describe(\"Timeline definition of the template.\").nullable().optional(),\n}).passthrough().describe(\"Object containing the actual template definition with timeline and output settings.\");\nconst ShotstackGetTemplate_TemplateResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the template.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n owner: z.string().describe(\"Owner's Shotstack account ID.\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the template was created.\").nullable().optional(),\n updated: z.string().describe(\"ISO 8601 timestamp when the template was last updated.\").nullable().optional(),\n template: z.union([z.boolean(), ShotstackGetTemplate_TemplateDataSchema]),\n}).passthrough().describe(\"Data object containing template details.\");\nexport const ShotstackGetTemplateOutput = z.object({\n message: z.string().describe(\"Informational message returned by the API.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the request was successful.\").nullable(),\n response: ShotstackGetTemplate_TemplateResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for template retrieval.\");\n\nexport const shotstackGetTemplate: AppAction<\n typeof ShotstackGetTemplateInput,\n typeof ShotstackGetTemplateOutput,\n typeof shotstack.credential\n> = action(\"SHOTSTACK_GET_TEMPLATE\", {\n slug: \"shotstack-get-template\",\n name: \"Get Template\",\n description: \"Tool to retrieve details of a specific template. Use when you have the ID of an existing template and need its metadata.\",\n input: ShotstackGetTemplateInput,\n output: ShotstackGetTemplateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO,EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EACtF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,0CAA0C,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC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