@keystrokehq/shotstack 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-template.cjs +3 -3
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +21 -3
- package/dist/actions/create-template.d.cts.map +1 -1
- package/dist/actions/create-template.d.mts +21 -3
- package/dist/actions/create-template.d.mts.map +1 -1
- package/dist/actions/create-template.mjs +3 -3
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-template2.cjs +4 -4
- package/dist/actions/create-template2.cjs.map +1 -1
- package/dist/actions/create-template2.d.cts +88 -3
- package/dist/actions/create-template2.d.cts.map +1 -1
- package/dist/actions/create-template2.d.mts +88 -3
- package/dist/actions/create-template2.d.mts.map +1 -1
- package/dist/actions/create-template2.mjs +4 -4
- package/dist/actions/create-template2.mjs.map +1 -1
- package/dist/actions/delete-ingested-media.cjs +2 -2
- package/dist/actions/delete-ingested-media.cjs.map +1 -1
- package/dist/actions/delete-ingested-media.d.cts +10 -3
- package/dist/actions/delete-ingested-media.d.cts.map +1 -1
- package/dist/actions/delete-ingested-media.d.mts +10 -3
- package/dist/actions/delete-ingested-media.d.mts.map +1 -1
- package/dist/actions/delete-ingested-media.mjs +2 -2
- package/dist/actions/delete-ingested-media.mjs.map +1 -1
- package/dist/actions/delete-template2.cjs +2 -2
- package/dist/actions/delete-template2.cjs.map +1 -1
- package/dist/actions/delete-template2.d.cts +10 -3
- package/dist/actions/delete-template2.d.cts.map +1 -1
- package/dist/actions/delete-template2.d.mts +10 -3
- package/dist/actions/delete-template2.d.mts.map +1 -1
- package/dist/actions/delete-template2.mjs +2 -2
- package/dist/actions/delete-template2.mjs.map +1 -1
- package/dist/actions/delete-workflow.cjs +2 -2
- package/dist/actions/delete-workflow.cjs.map +1 -1
- package/dist/actions/delete-workflow.d.cts +10 -3
- package/dist/actions/delete-workflow.d.cts.map +1 -1
- package/dist/actions/delete-workflow.d.mts +10 -3
- package/dist/actions/delete-workflow.d.mts.map +1 -1
- package/dist/actions/delete-workflow.mjs +2 -2
- package/dist/actions/delete-workflow.mjs.map +1 -1
- package/dist/actions/fetch-source.cjs +2 -2
- package/dist/actions/fetch-source.cjs.map +1 -1
- package/dist/actions/fetch-source.d.cts +12 -3
- package/dist/actions/fetch-source.d.cts.map +1 -1
- package/dist/actions/fetch-source.d.mts +12 -3
- package/dist/actions/fetch-source.d.mts.map +1 -1
- package/dist/actions/fetch-source.mjs +2 -2
- package/dist/actions/fetch-source.mjs.map +1 -1
- package/dist/actions/get-assets-render.cjs.map +1 -1
- package/dist/actions/get-assets-render.d.cts +23 -3
- package/dist/actions/get-assets-render.d.cts.map +1 -1
- package/dist/actions/get-assets-render.d.mts +23 -3
- package/dist/actions/get-assets-render.d.mts.map +1 -1
- package/dist/actions/get-assets-render.mjs.map +1 -1
- package/dist/actions/get-assets.cjs.map +1 -1
- package/dist/actions/get-assets.d.cts +43 -3
- package/dist/actions/get-assets.d.cts.map +1 -1
- package/dist/actions/get-assets.d.mts +43 -3
- package/dist/actions/get-assets.d.mts.map +1 -1
- package/dist/actions/get-assets.mjs.map +1 -1
- package/dist/actions/get-render-callback.cjs +7 -7
- package/dist/actions/get-render-callback.cjs.map +1 -1
- package/dist/actions/get-render-callback.d.cts +18 -3
- package/dist/actions/get-render-callback.d.cts.map +1 -1
- package/dist/actions/get-render-callback.d.mts +18 -3
- package/dist/actions/get-render-callback.d.mts.map +1 -1
- package/dist/actions/get-render-callback.mjs +7 -7
- package/dist/actions/get-render-callback.mjs.map +1 -1
- package/dist/actions/get-render-status.cjs +5 -5
- package/dist/actions/get-render-status.cjs.map +1 -1
- package/dist/actions/get-render-status.d.cts +48 -3
- package/dist/actions/get-render-status.d.cts.map +1 -1
- package/dist/actions/get-render-status.d.mts +48 -3
- package/dist/actions/get-render-status.d.mts.map +1 -1
- package/dist/actions/get-render-status.mjs +5 -5
- package/dist/actions/get-render-status.mjs.map +1 -1
- package/dist/actions/get-source.cjs +8 -8
- package/dist/actions/get-source.cjs.map +1 -1
- package/dist/actions/get-source.d.cts +28 -3
- package/dist/actions/get-source.d.cts.map +1 -1
- package/dist/actions/get-source.d.mts +28 -3
- package/dist/actions/get-source.d.mts.map +1 -1
- package/dist/actions/get-source.mjs +8 -8
- package/dist/actions/get-source.mjs.map +1 -1
- package/dist/actions/get-template-by-version.cjs +5 -5
- package/dist/actions/get-template-by-version.cjs.map +1 -1
- package/dist/actions/get-template-by-version.d.cts +25 -3
- package/dist/actions/get-template-by-version.d.cts.map +1 -1
- package/dist/actions/get-template-by-version.d.mts +25 -3
- package/dist/actions/get-template-by-version.d.mts.map +1 -1
- package/dist/actions/get-template-by-version.mjs +5 -5
- package/dist/actions/get-template-by-version.mjs.map +1 -1
- package/dist/actions/get-template.cjs +4 -4
- package/dist/actions/get-template.cjs.map +1 -1
- package/dist/actions/get-template.d.cts +23 -3
- package/dist/actions/get-template.d.cts.map +1 -1
- package/dist/actions/get-template.d.mts +23 -3
- package/dist/actions/get-template.d.mts.map +1 -1
- package/dist/actions/get-template.mjs +4 -4
- package/dist/actions/get-template.mjs.map +1 -1
- package/dist/actions/get-upload-url.cjs +5 -5
- package/dist/actions/get-upload-url.cjs.map +1 -1
- package/dist/actions/get-upload-url.d.cts +17 -3
- package/dist/actions/get-upload-url.d.cts.map +1 -1
- package/dist/actions/get-upload-url.d.mts +17 -3
- package/dist/actions/get-upload-url.d.mts.map +1 -1
- package/dist/actions/get-upload-url.mjs +5 -5
- package/dist/actions/get-upload-url.mjs.map +1 -1
- package/dist/actions/inspect-media.cjs +3 -3
- package/dist/actions/inspect-media.cjs.map +1 -1
- package/dist/actions/inspect-media.d.cts +83 -3
- package/dist/actions/inspect-media.d.cts.map +1 -1
- package/dist/actions/inspect-media.d.mts +83 -3
- package/dist/actions/inspect-media.d.mts.map +1 -1
- package/dist/actions/inspect-media.mjs +3 -3
- package/dist/actions/inspect-media.mjs.map +1 -1
- package/dist/actions/list-sources.cjs +8 -8
- package/dist/actions/list-sources.cjs.map +1 -1
- package/dist/actions/list-sources.d.cts +38 -3
- package/dist/actions/list-sources.d.cts.map +1 -1
- package/dist/actions/list-sources.d.mts +38 -3
- package/dist/actions/list-sources.d.mts.map +1 -1
- package/dist/actions/list-sources.mjs +8 -8
- package/dist/actions/list-sources.mjs.map +1 -1
- package/dist/actions/list-sources2.cjs +6 -6
- package/dist/actions/list-sources2.cjs.map +1 -1
- package/dist/actions/list-sources2.d.cts +43 -3
- package/dist/actions/list-sources2.d.cts.map +1 -1
- package/dist/actions/list-sources2.d.mts +43 -3
- package/dist/actions/list-sources2.d.mts.map +1 -1
- package/dist/actions/list-sources2.mjs +6 -6
- package/dist/actions/list-sources2.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +6 -6
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +15 -3
- package/dist/actions/list-templates.d.cts.map +1 -1
- package/dist/actions/list-templates.d.mts +15 -3
- package/dist/actions/list-templates.d.mts.map +1 -1
- package/dist/actions/list-templates.mjs +6 -6
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/list-templates2.cjs +7 -7
- package/dist/actions/list-templates2.cjs.map +1 -1
- package/dist/actions/list-templates2.d.cts +22 -3
- package/dist/actions/list-templates2.d.cts.map +1 -1
- package/dist/actions/list-templates2.d.mts +22 -3
- package/dist/actions/list-templates2.d.mts.map +1 -1
- package/dist/actions/list-templates2.mjs +7 -7
- package/dist/actions/list-templates2.mjs.map +1 -1
- package/dist/actions/post-upload.cjs +5 -5
- package/dist/actions/post-upload.cjs.map +1 -1
- package/dist/actions/post-upload.d.cts +13 -3
- package/dist/actions/post-upload.d.cts.map +1 -1
- package/dist/actions/post-upload.d.mts +13 -3
- package/dist/actions/post-upload.d.mts.map +1 -1
- package/dist/actions/post-upload.mjs +5 -5
- package/dist/actions/post-upload.mjs.map +1 -1
- package/dist/actions/render-video.cjs +3 -3
- package/dist/actions/render-video.cjs.map +1 -1
- package/dist/actions/render-video.d.cts +21 -3
- package/dist/actions/render-video.d.cts.map +1 -1
- package/dist/actions/render-video.d.mts +21 -3
- package/dist/actions/render-video.d.mts.map +1 -1
- package/dist/actions/render-video.mjs +3 -3
- package/dist/actions/render-video.mjs.map +1 -1
- package/dist/actions/transfer-asset.cjs.map +1 -1
- package/dist/actions/transfer-asset.d.cts +29 -3
- package/dist/actions/transfer-asset.d.cts.map +1 -1
- package/dist/actions/transfer-asset.d.mts +29 -3
- package/dist/actions/transfer-asset.d.mts.map +1 -1
- package/dist/actions/transfer-asset.mjs.map +1 -1
- package/dist/actions/update-template.cjs +3 -3
- package/dist/actions/update-template.cjs.map +1 -1
- package/dist/actions/update-template.d.cts +18 -3
- package/dist/actions/update-template.d.cts.map +1 -1
- package/dist/actions/update-template.d.mts +18 -3
- package/dist/actions/update-template.d.mts.map +1 -1
- package/dist/actions/update-template.mjs +3 -3
- package/dist/actions/update-template.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-assets.mjs","names":[],"sources":["../../src/actions/get-assets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetAssetsInput
|
|
1
|
+
{"version":3,"file":"get-assets.mjs","names":[],"sources":["../../src/actions/get-assets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetAssetsInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the asset to retrieve. Can be the asset ID, render ID, source ID, or rendition ID.\"),\n}).describe(\"Request model for retrieving an asset by ID.\");\nconst ShotstackGetAssets_AssetAttributesSchema = z.object({\n id: z.string().describe(\"Unique asset identifier (UUID).\").nullable().optional(),\n url: z.string().describe(\"Publicly accessible CDN URL for the asset.\").nullable().optional(),\n owner: z.string().describe(\"Account owner identifier.\").nullable().optional(),\n region: z.string().describe(\"Geographic region where asset is stored (e.g., 'au').\").nullable().optional(),\n status: z.string().describe(\"Current asset state. Values: 'ready' (available for use) or 'deleted' (no longer consuming storage).\").nullable().optional(),\n created: z.string().describe(\"Asset creation timestamp (ISO 8601 format).\").nullable().optional(),\n updated: z.string().describe(\"Last modification timestamp (ISO 8601 format).\").nullable().optional(),\n filename: z.string().describe(\"Name of the asset file.\").nullable().optional(),\n provider: z.string().describe(\"Hosting provider name (e.g., 'shotstack').\").nullable().optional(),\n renderId: z.string().describe(\"Associated render job identifier (if asset from render).\").nullable().optional(),\n sourceId: z.string().describe(\"Source identifier (if asset from ingestion service).\").nullable().optional(),\n providerId: z.string().describe(\"Third-party provider identifier.\").nullable().optional(),\n renditionId: z.string().describe(\"Rendition identifier (if asset from ingestion rendition).\").nullable().optional(),\n}).describe(\"Attributes of an asset.\");\nconst ShotstackGetAssets_AssetDataSchema = z.object({\n type: z.string().describe(\"Resource type, always 'assets'.\").nullable().optional(),\n attributes: ShotstackGetAssets_AssetAttributesSchema.nullable().optional(),\n}).describe(\"Asset data object following JSON:API specification.\");\nexport const ShotstackGetAssetsOutput = z.object({\n data: z.union([ShotstackGetAssets_AssetDataSchema, z.array(ShotstackGetAssets_AssetDataSchema)]),\n}).describe(\"Response model containing asset details.\");\n\nexport const shotstackGetAssets = action(\"SHOTSTACK_GET_ASSETS\", {\n slug: \"shotstack-get-assets\",\n name: \"Get Asset\",\n description: \"Tool to fetch details of a hosted asset by its unique identifier. Use when you need to retrieve information about videos, images, audio files, thumbnails, or poster images hosted on Shotstack's CDN.\",\n input: ShotstackGetAssetsInput,\n output: ShotstackGetAssetsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAAI,E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AC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,yCAAyC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAKjE,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,EAAE,MAAM,CAAC,oCAAoC,EAAE,MAAM,kCAAkC,CAAC,CAAC,EACjG,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -4,16 +4,16 @@ let zod = require("zod");
|
|
|
4
4
|
const ShotstackGetRenderCallbackInput = zod.z.object({ renderId: zod.z.string().describe("The unique identifier of the render process.") }).describe("Request model for retrieving a render's callback settings.");
|
|
5
5
|
const ShotstackGetRenderCallback_CallbackDataSchema = zod.z.object({
|
|
6
6
|
url: zod.z.string().nullable(),
|
|
7
|
-
status: zod.z.string().describe("The current status of the callback."),
|
|
8
|
-
attempts: zod.z.number().int().describe("The number of callback attempts made."),
|
|
9
|
-
responseBody: zod.z.string().describe("Response body from the callback endpoint."),
|
|
10
|
-
responseCode: zod.z.number().int().describe("HTTP response code returned from callback calls."),
|
|
11
|
-
lastAttemptedAt: zod.z.string().describe("ISO8601 timestamp of the most recent callback attempt.")
|
|
7
|
+
status: zod.z.string().describe("The current status of the callback.").nullable(),
|
|
8
|
+
attempts: zod.z.number().int().describe("The number of callback attempts made.").nullable(),
|
|
9
|
+
responseBody: zod.z.string().describe("Response body from the callback endpoint.").nullable(),
|
|
10
|
+
responseCode: zod.z.number().int().describe("HTTP response code returned from callback calls.").nullable(),
|
|
11
|
+
lastAttemptedAt: zod.z.string().describe("ISO8601 timestamp of the most recent callback attempt.").nullable()
|
|
12
12
|
}).describe("Details of the callback associated with a render.");
|
|
13
13
|
const ShotstackGetRenderCallbackOutput = zod.z.object({
|
|
14
14
|
data: ShotstackGetRenderCallback_CallbackDataSchema.nullable(),
|
|
15
|
-
message: zod.z.string().describe("Message describing the callback status."),
|
|
16
|
-
success: zod.z.boolean().describe("Indicates if the request was successful.")
|
|
15
|
+
message: zod.z.string().describe("Message describing the callback status.").nullable(),
|
|
16
|
+
success: zod.z.boolean().describe("Indicates if the request was successful.").nullable()
|
|
17
17
|
}).describe("Response model for a render's callback settings.");
|
|
18
18
|
const shotstackGetRenderCallback = require_action.action("SHOTSTACK_GET_RENDER_CALLBACK", {
|
|
19
19
|
slug: "shotstack-get-render-callback",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-render-callback.cjs","names":["z","action"],"sources":["../../src/actions/get-render-callback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackGetRenderCallbackInput
|
|
1
|
+
{"version":3,"file":"get-render-callback.cjs","names":["z","action"],"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}).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}).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,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EAC9E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACzB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACrG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAM,8CAA8C,SAAS;CAC7D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-render-callback.d.ts
|
|
4
|
-
declare const ShotstackGetRenderCallbackInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShotstackGetRenderCallbackInput: z.ZodObject<{
|
|
5
|
+
renderId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShotstackGetRenderCallbackOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
status: z.ZodNullable<z.ZodString>;
|
|
11
|
+
attempts: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
responseBody: z.ZodNullable<z.ZodString>;
|
|
13
|
+
responseCode: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
lastAttemptedAt: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
message: z.ZodNullable<z.ZodString>;
|
|
17
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const shotstackGetRenderCallback: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
renderId: string;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { shotstackGetRenderCallback };
|
|
9
24
|
//# sourceMappingURL=get-render-callback.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-render-callback.d.cts","names":[],"sources":["../../src/actions/get-render-callback.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"get-render-callback.d.cts","names":[],"sources":["../../src/actions/get-render-callback.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAW/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAMhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-render-callback.d.ts
|
|
4
|
-
declare const ShotstackGetRenderCallbackInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShotstackGetRenderCallbackInput: z.ZodObject<{
|
|
5
|
+
renderId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShotstackGetRenderCallbackOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
status: z.ZodNullable<z.ZodString>;
|
|
11
|
+
attempts: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
responseBody: z.ZodNullable<z.ZodString>;
|
|
13
|
+
responseCode: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
lastAttemptedAt: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
message: z.ZodNullable<z.ZodString>;
|
|
17
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const shotstackGetRenderCallback: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
renderId: string;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { shotstackGetRenderCallback };
|
|
9
24
|
//# sourceMappingURL=get-render-callback.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-render-callback.d.mts","names":[],"sources":["../../src/actions/get-render-callback.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"get-render-callback.d.mts","names":[],"sources":["../../src/actions/get-render-callback.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAW/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAMhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
const ShotstackGetRenderCallbackInput = z.object({ renderId: z.string().describe("The unique identifier of the render process.") }).describe("Request model for retrieving a render's callback settings.");
|
|
5
5
|
const ShotstackGetRenderCallback_CallbackDataSchema = z.object({
|
|
6
6
|
url: z.string().nullable(),
|
|
7
|
-
status: z.string().describe("The current status of the callback."),
|
|
8
|
-
attempts: z.number().int().describe("The number of callback attempts made."),
|
|
9
|
-
responseBody: z.string().describe("Response body from the callback endpoint."),
|
|
10
|
-
responseCode: z.number().int().describe("HTTP response code returned from callback calls."),
|
|
11
|
-
lastAttemptedAt: z.string().describe("ISO8601 timestamp of the most recent callback attempt.")
|
|
7
|
+
status: z.string().describe("The current status of the callback.").nullable(),
|
|
8
|
+
attempts: z.number().int().describe("The number of callback attempts made.").nullable(),
|
|
9
|
+
responseBody: z.string().describe("Response body from the callback endpoint.").nullable(),
|
|
10
|
+
responseCode: z.number().int().describe("HTTP response code returned from callback calls.").nullable(),
|
|
11
|
+
lastAttemptedAt: z.string().describe("ISO8601 timestamp of the most recent callback attempt.").nullable()
|
|
12
12
|
}).describe("Details of the callback associated with a render.");
|
|
13
13
|
const shotstackGetRenderCallback = action("SHOTSTACK_GET_RENDER_CALLBACK", {
|
|
14
14
|
slug: "shotstack-get-render-callback",
|
|
@@ -17,8 +17,8 @@ const shotstackGetRenderCallback = action("SHOTSTACK_GET_RENDER_CALLBACK", {
|
|
|
17
17
|
input: ShotstackGetRenderCallbackInput,
|
|
18
18
|
output: z.object({
|
|
19
19
|
data: ShotstackGetRenderCallback_CallbackDataSchema.nullable(),
|
|
20
|
-
message: z.string().describe("Message describing the callback status."),
|
|
21
|
-
success: z.boolean().describe("Indicates if the request was successful.")
|
|
20
|
+
message: z.string().describe("Message describing the callback status.").nullable(),
|
|
21
|
+
success: z.boolean().describe("Indicates if the request was successful.").nullable()
|
|
22
22
|
}).describe("Response model for a render's callback settings.")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
@@ -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
|
|
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}).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}).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,SAAS,mDAAmD;AAO/D,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,SAAS,kDAOF;AACV,CAAC"}
|
|
@@ -15,12 +15,12 @@ const ShotstackGetRenderStatus_EditDataSchema = zod.z.object({
|
|
|
15
15
|
timeline: zod.z.record(zod.z.string(), zod.z.unknown()).describe("An edit defines the arrangement of a video on a timeline, an audio edit or an image design.")
|
|
16
16
|
}).describe("Timeline and output rendering data (Edit schema).");
|
|
17
17
|
const ShotstackGetRenderStatus_RenderResponseDataSchema = zod.z.object({
|
|
18
|
-
id: zod.z.string().describe("The unique identifier of the render task in UUID format."),
|
|
18
|
+
id: zod.z.string().describe("The unique identifier of the render task in UUID format.").nullable(),
|
|
19
19
|
url: zod.z.string().describe("The URL of the final asset (temporary, 24-hour validity).").nullable().optional(),
|
|
20
20
|
data: ShotstackGetRenderStatus_EditDataSchema.nullable().optional(),
|
|
21
21
|
plan: zod.z.string().describe("Customer subscription plan type.").nullable().optional(),
|
|
22
22
|
error: zod.z.string().describe("An error message, only displayed if an error occurred.").nullable().optional(),
|
|
23
|
-
owner: zod.z.string().describe("The owner ID of the render task."),
|
|
23
|
+
owner: zod.z.string().describe("The owner ID of the render task.").nullable(),
|
|
24
24
|
poster: zod.z.string().describe("The URL of the poster image if requested.").nullable().optional(),
|
|
25
25
|
status: zod.z.enum([
|
|
26
26
|
"queued",
|
|
@@ -30,7 +30,7 @@ const ShotstackGetRenderStatus_RenderResponseDataSchema = zod.z.object({
|
|
|
30
30
|
"saving",
|
|
31
31
|
"done",
|
|
32
32
|
"failed"
|
|
33
|
-
]).describe("The status of the render task."),
|
|
33
|
+
]).describe("The status of the render task.").nullable(),
|
|
34
34
|
created: zod.z.string().describe("The time the render task was initially queued.").nullable().optional(),
|
|
35
35
|
updated: zod.z.string().describe("The time the render status was last updated.").nullable().optional(),
|
|
36
36
|
duration: zod.z.number().describe("The output video or audio length in seconds.").nullable().optional(),
|
|
@@ -38,8 +38,8 @@ const ShotstackGetRenderStatus_RenderResponseDataSchema = zod.z.object({
|
|
|
38
38
|
renderTime: zod.z.number().describe("The time taken to render the asset in milliseconds.").nullable().optional()
|
|
39
39
|
}).describe("Render job details and status information.");
|
|
40
40
|
const ShotstackGetRenderStatusOutput = zod.z.object({
|
|
41
|
-
message: zod.z.string().describe("OK or an error message."),
|
|
42
|
-
success: zod.z.boolean().describe("true if status available, else false."),
|
|
41
|
+
message: zod.z.string().describe("OK or an error message.").nullable(),
|
|
42
|
+
success: zod.z.boolean().describe("true if status available, else false.").nullable(),
|
|
43
43
|
response: ShotstackGetRenderStatus_RenderResponseDataSchema.nullable()
|
|
44
44
|
}).describe("Response model containing render job status and details.");
|
|
45
45
|
const shotstackGetRenderStatus = require_action.action("SHOTSTACK_GET_RENDER_STATUS", {
|
|
@@ -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
|
|
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}).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}).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}).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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AC,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,SAAS,0DAA0D;AAEtE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-render-status.d.ts
|
|
4
|
-
declare const ShotstackGetRenderStatusInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShotstackGetRenderStatusInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
data: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
merged: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const ShotstackGetRenderStatusOutput: z.ZodObject<{
|
|
11
|
+
message: z.ZodNullable<z.ZodString>;
|
|
12
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
13
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
|
+
disk: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
18
|
+
local: "local";
|
|
19
|
+
mount: "mount";
|
|
20
|
+
}>>>;
|
|
21
|
+
merge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
22
|
+
output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
timeline: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
29
|
+
poster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
31
|
+
queued: "queued";
|
|
32
|
+
fetching: "fetching";
|
|
33
|
+
preprocessing: "preprocessing";
|
|
34
|
+
rendering: "rendering";
|
|
35
|
+
saving: "saving";
|
|
36
|
+
done: "done";
|
|
37
|
+
failed: "failed";
|
|
38
|
+
}>>;
|
|
39
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
renderTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { shotstackGetRenderStatus };
|
|
9
54
|
//# 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,
|
|
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,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-render-status.d.ts
|
|
4
|
-
declare const ShotstackGetRenderStatusInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShotstackGetRenderStatusInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
data: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
merged: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const ShotstackGetRenderStatusOutput: z.ZodObject<{
|
|
11
|
+
message: z.ZodNullable<z.ZodString>;
|
|
12
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
13
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
|
+
disk: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
18
|
+
local: "local";
|
|
19
|
+
mount: "mount";
|
|
20
|
+
}>>>;
|
|
21
|
+
merge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
22
|
+
output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
timeline: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
29
|
+
poster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
31
|
+
queued: "queued";
|
|
32
|
+
fetching: "fetching";
|
|
33
|
+
preprocessing: "preprocessing";
|
|
34
|
+
rendering: "rendering";
|
|
35
|
+
saving: "saving";
|
|
36
|
+
done: "done";
|
|
37
|
+
failed: "failed";
|
|
38
|
+
}>>;
|
|
39
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
renderTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { shotstackGetRenderStatus };
|
|
9
54
|
//# 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,
|
|
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"}
|
|
@@ -15,12 +15,12 @@ const ShotstackGetRenderStatus_EditDataSchema = z.object({
|
|
|
15
15
|
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.")
|
|
16
16
|
}).describe("Timeline and output rendering data (Edit schema).");
|
|
17
17
|
const ShotstackGetRenderStatus_RenderResponseDataSchema = z.object({
|
|
18
|
-
id: z.string().describe("The unique identifier of the render task in UUID format."),
|
|
18
|
+
id: z.string().describe("The unique identifier of the render task in UUID format.").nullable(),
|
|
19
19
|
url: z.string().describe("The URL of the final asset (temporary, 24-hour validity).").nullable().optional(),
|
|
20
20
|
data: ShotstackGetRenderStatus_EditDataSchema.nullable().optional(),
|
|
21
21
|
plan: z.string().describe("Customer subscription plan type.").nullable().optional(),
|
|
22
22
|
error: z.string().describe("An error message, only displayed if an error occurred.").nullable().optional(),
|
|
23
|
-
owner: z.string().describe("The owner ID of the render task."),
|
|
23
|
+
owner: z.string().describe("The owner ID of the render task.").nullable(),
|
|
24
24
|
poster: z.string().describe("The URL of the poster image if requested.").nullable().optional(),
|
|
25
25
|
status: z.enum([
|
|
26
26
|
"queued",
|
|
@@ -30,7 +30,7 @@ const ShotstackGetRenderStatus_RenderResponseDataSchema = z.object({
|
|
|
30
30
|
"saving",
|
|
31
31
|
"done",
|
|
32
32
|
"failed"
|
|
33
|
-
]).describe("The status of the render task."),
|
|
33
|
+
]).describe("The status of the render task.").nullable(),
|
|
34
34
|
created: z.string().describe("The time the render task was initially queued.").nullable().optional(),
|
|
35
35
|
updated: z.string().describe("The time the render status was last updated.").nullable().optional(),
|
|
36
36
|
duration: z.number().describe("The output video or audio length in seconds.").nullable().optional(),
|
|
@@ -43,8 +43,8 @@ const shotstackGetRenderStatus = action("SHOTSTACK_GET_RENDER_STATUS", {
|
|
|
43
43
|
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.",
|
|
44
44
|
input: ShotstackGetRenderStatusInput,
|
|
45
45
|
output: z.object({
|
|
46
|
-
message: z.string().describe("OK or an error message."),
|
|
47
|
-
success: z.boolean().describe("true if status available, else false."),
|
|
46
|
+
message: z.string().describe("OK or an error message.").nullable(),
|
|
47
|
+
success: z.boolean().describe("true if status available, else false.").nullable(),
|
|
48
48
|
response: ShotstackGetRenderStatus_RenderResponseDataSchema.nullable()
|
|
49
49
|
}).describe("Response model containing render job status and details.")
|
|
50
50
|
});
|
|
@@ -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
|
|
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}).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}).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}).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,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,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6FAA6F;AACpJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oDAAoD,EAAE,OAAO;C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,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,SAAS,0DAOF;AACV,CAAC"}
|
|
@@ -3,24 +3,24 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-source.ts
|
|
4
4
|
const ShotstackGetSourceInput = zod.z.object({ id: zod.z.string().describe("Unique identifier of the source asset to retrieve.") }).describe("Request model for retrieving a source asset by ID.");
|
|
5
5
|
const ShotstackGetSource_SourceAttributesSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("The unique identifier for the source asset."),
|
|
6
|
+
id: zod.z.string().describe("The unique identifier for the source asset.").nullable(),
|
|
7
7
|
fps: zod.z.number().describe("Frame rate of the video.").nullable().optional(),
|
|
8
8
|
error: zod.z.string().describe("Error message if ingestion failed.").nullable().optional(),
|
|
9
|
-
input: zod.z.string().describe("The original input URL that was ingested."),
|
|
10
|
-
owner: zod.z.string().describe("The owner identifier for the source asset."),
|
|
9
|
+
input: zod.z.string().describe("The original input URL that was ingested.").nullable(),
|
|
10
|
+
owner: zod.z.string().describe("The owner identifier for the source asset.").nullable(),
|
|
11
11
|
width: zod.z.number().int().describe("Width of the media in pixels (for video/image).").nullable().optional(),
|
|
12
12
|
height: zod.z.number().int().describe("Height of the media in pixels (for video/image).").nullable().optional(),
|
|
13
13
|
source: zod.z.string().describe("The URL of the ingested source file in Shotstack storage.").nullable().optional(),
|
|
14
|
-
status: zod.z.string().describe("The ingestion status of the source (e.g., pending, ready, failed)."),
|
|
15
|
-
created: zod.z.string().describe("ISO 8601 timestamp when the source was ingested."),
|
|
16
|
-
updated: zod.z.string().describe("ISO 8601 timestamp when the source status was last updated."),
|
|
14
|
+
status: zod.z.string().describe("The ingestion status of the source (e.g., pending, ready, failed).").nullable(),
|
|
15
|
+
created: zod.z.string().describe("ISO 8601 timestamp when the source was ingested.").nullable(),
|
|
16
|
+
updated: zod.z.string().describe("ISO 8601 timestamp when the source status was last updated.").nullable(),
|
|
17
17
|
duration: zod.z.number().describe("Duration of the media in seconds (for video/audio).").nullable().optional(),
|
|
18
18
|
filesize: zod.z.number().int().describe("The file size in bytes.").nullable().optional(),
|
|
19
19
|
extension: zod.z.string().describe("The file extension of the source.").nullable().optional()
|
|
20
20
|
}).passthrough().describe("Attributes of a source asset.");
|
|
21
21
|
const ShotstackGetSource_SourceDataSchema = zod.z.object({
|
|
22
|
-
id: zod.z.string().describe("The unique identifier for the source asset."),
|
|
23
|
-
type: zod.z.string().describe("The resource type (always 'source')."),
|
|
22
|
+
id: zod.z.string().describe("The unique identifier for the source asset.").nullable(),
|
|
23
|
+
type: zod.z.string().describe("The resource type (always 'source').").nullable(),
|
|
24
24
|
attributes: ShotstackGetSource_SourceAttributesSchema.nullable()
|
|
25
25
|
}).describe("JSON:API format source data wrapper.");
|
|
26
26
|
const ShotstackGetSourceOutput = zod.z.object({ data: ShotstackGetSource_SourceDataSchema.nullable() }).describe("Response model containing details of the requested source asset.");
|
|
@@ -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
|
|
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}).describe(\"JSON:API format source data wrapper.\");\nexport const ShotstackGetSourceOutput = z.object({\n data: ShotstackGetSource_SourceDataSchema.nullable(),\n}).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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AC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AACzD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,YAAY,0CAA0C,SAAS;AACjE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,oCAAoC,SAAS,EACrD,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-source.d.ts
|
|
4
|
-
declare const ShotstackGetSourceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShotstackGetSourceInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShotstackGetSourceOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
type: z.ZodNullable<z.ZodString>;
|
|
11
|
+
attributes: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
fps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
input: z.ZodNullable<z.ZodString>;
|
|
16
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
17
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
status: z.ZodNullable<z.ZodString>;
|
|
21
|
+
created: z.ZodNullable<z.ZodString>;
|
|
22
|
+
updated: z.ZodNullable<z.ZodString>;
|
|
23
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
filesize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const shotstackGetSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
id: string;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { shotstackGetSource };
|
|
9
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,
|
|
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,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-source.d.ts
|
|
4
|
-
declare const ShotstackGetSourceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShotstackGetSourceInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShotstackGetSourceOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
type: z.ZodNullable<z.ZodString>;
|
|
11
|
+
attributes: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
fps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
input: z.ZodNullable<z.ZodString>;
|
|
16
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
17
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
status: z.ZodNullable<z.ZodString>;
|
|
21
|
+
created: z.ZodNullable<z.ZodString>;
|
|
22
|
+
updated: z.ZodNullable<z.ZodString>;
|
|
23
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
filesize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const shotstackGetSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
id: string;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { shotstackGetSource };
|
|
9
34
|
//# sourceMappingURL=get-source.d.mts.map
|