@keystrokehq/shotstack 0.1.2 → 0.1.3
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/actions/create-template.cjs +2 -2
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +2 -2
- package/dist/actions/create-template.d.mts +2 -2
- package/dist/actions/create-template.mjs +2 -2
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-template2.cjs +3 -3
- package/dist/actions/create-template2.cjs.map +1 -1
- package/dist/actions/create-template2.d.cts +4 -3
- package/dist/actions/create-template2.d.mts +4 -3
- package/dist/actions/create-template2.mjs +3 -3
- package/dist/actions/create-template2.mjs.map +1 -1
- package/dist/actions/delete-ingested-media.cjs +1 -1
- package/dist/actions/delete-ingested-media.cjs.map +1 -1
- package/dist/actions/delete-ingested-media.d.cts +1 -1
- package/dist/actions/delete-ingested-media.d.mts +1 -1
- package/dist/actions/delete-ingested-media.mjs +1 -1
- package/dist/actions/delete-ingested-media.mjs.map +1 -1
- package/dist/actions/delete-template2.cjs +1 -1
- package/dist/actions/delete-template2.cjs.map +1 -1
- package/dist/actions/delete-template2.d.cts +1 -1
- package/dist/actions/delete-template2.d.mts +1 -1
- package/dist/actions/delete-template2.mjs +1 -1
- package/dist/actions/delete-template2.mjs.map +1 -1
- package/dist/actions/delete-workflow.cjs +1 -1
- package/dist/actions/delete-workflow.cjs.map +1 -1
- package/dist/actions/delete-workflow.d.cts +1 -1
- package/dist/actions/delete-workflow.d.mts +1 -1
- package/dist/actions/delete-workflow.mjs +1 -1
- 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 +2 -2
- package/dist/actions/fetch-source.d.mts +2 -2
- package/dist/actions/fetch-source.mjs +2 -2
- package/dist/actions/fetch-source.mjs.map +1 -1
- package/dist/actions/get-assets-render.cjs +3 -3
- package/dist/actions/get-assets-render.cjs.map +1 -1
- package/dist/actions/get-assets-render.d.cts +3 -3
- package/dist/actions/get-assets-render.d.mts +3 -3
- package/dist/actions/get-assets-render.mjs +3 -3
- package/dist/actions/get-assets-render.mjs.map +1 -1
- package/dist/actions/get-assets.cjs +3 -3
- package/dist/actions/get-assets.cjs.map +1 -1
- package/dist/actions/get-assets.d.cts +5 -5
- package/dist/actions/get-assets.d.mts +5 -5
- package/dist/actions/get-assets.mjs +3 -3
- package/dist/actions/get-assets.mjs.map +1 -1
- package/dist/actions/get-render-callback.cjs +2 -2
- package/dist/actions/get-render-callback.cjs.map +1 -1
- package/dist/actions/get-render-callback.d.cts +2 -2
- package/dist/actions/get-render-callback.d.mts +2 -2
- package/dist/actions/get-render-callback.mjs +2 -2
- package/dist/actions/get-render-callback.mjs.map +1 -1
- package/dist/actions/get-render-status.cjs +3 -3
- package/dist/actions/get-render-status.cjs.map +1 -1
- package/dist/actions/get-render-status.d.cts +3 -3
- package/dist/actions/get-render-status.d.mts +3 -3
- package/dist/actions/get-render-status.mjs +3 -3
- package/dist/actions/get-render-status.mjs.map +1 -1
- package/dist/actions/get-source.cjs +2 -2
- package/dist/actions/get-source.cjs.map +1 -1
- package/dist/actions/get-source.d.cts +2 -2
- package/dist/actions/get-source.d.mts +2 -2
- package/dist/actions/get-source.mjs +2 -2
- package/dist/actions/get-source.mjs.map +1 -1
- package/dist/actions/get-template-by-version.cjs +3 -3
- package/dist/actions/get-template-by-version.cjs.map +1 -1
- package/dist/actions/get-template-by-version.d.cts +3 -3
- package/dist/actions/get-template-by-version.d.mts +3 -3
- package/dist/actions/get-template-by-version.mjs +3 -3
- package/dist/actions/get-template-by-version.mjs.map +1 -1
- package/dist/actions/get-template.cjs +3 -3
- package/dist/actions/get-template.cjs.map +1 -1
- package/dist/actions/get-template.d.cts +3 -3
- package/dist/actions/get-template.d.mts +3 -3
- package/dist/actions/get-template.mjs +3 -3
- package/dist/actions/get-template.mjs.map +1 -1
- package/dist/actions/get-upload-url.cjs +3 -3
- package/dist/actions/get-upload-url.cjs.map +1 -1
- package/dist/actions/get-upload-url.d.cts +3 -3
- package/dist/actions/get-upload-url.d.mts +3 -3
- package/dist/actions/get-upload-url.mjs +3 -3
- package/dist/actions/get-upload-url.mjs.map +1 -1
- package/dist/actions/inspect-media.cjs +1 -1
- package/dist/actions/inspect-media.cjs.map +1 -1
- package/dist/actions/inspect-media.d.cts +1 -1
- package/dist/actions/inspect-media.d.mts +1 -1
- package/dist/actions/inspect-media.mjs +1 -1
- package/dist/actions/inspect-media.mjs.map +1 -1
- package/dist/actions/list-sources.cjs +5 -5
- package/dist/actions/list-sources.cjs.map +1 -1
- package/dist/actions/list-sources.d.cts +5 -5
- package/dist/actions/list-sources.d.mts +5 -5
- package/dist/actions/list-sources.mjs +5 -5
- package/dist/actions/list-sources.mjs.map +1 -1
- package/dist/actions/list-sources2.cjs +5 -5
- package/dist/actions/list-sources2.cjs.map +1 -1
- package/dist/actions/list-sources2.d.cts +5 -5
- package/dist/actions/list-sources2.d.mts +5 -5
- package/dist/actions/list-sources2.mjs +5 -5
- package/dist/actions/list-sources2.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +3 -3
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +3 -3
- package/dist/actions/list-templates.d.mts +3 -3
- package/dist/actions/list-templates.mjs +3 -3
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/list-templates2.cjs +3 -3
- package/dist/actions/list-templates2.cjs.map +1 -1
- package/dist/actions/list-templates2.d.cts +3 -3
- package/dist/actions/list-templates2.d.mts +3 -3
- package/dist/actions/list-templates2.mjs +3 -3
- package/dist/actions/list-templates2.mjs.map +1 -1
- package/dist/actions/post-upload.cjs +3 -3
- package/dist/actions/post-upload.cjs.map +1 -1
- package/dist/actions/post-upload.d.cts +3 -3
- package/dist/actions/post-upload.d.mts +3 -3
- package/dist/actions/post-upload.mjs +3 -3
- package/dist/actions/post-upload.mjs.map +1 -1
- package/dist/actions/render-video.cjs +2 -2
- package/dist/actions/render-video.cjs.map +1 -1
- package/dist/actions/render-video.d.cts +2 -2
- package/dist/actions/render-video.d.mts +2 -2
- package/dist/actions/render-video.mjs +2 -2
- package/dist/actions/render-video.mjs.map +1 -1
- package/dist/actions/transfer-asset.cjs +4 -4
- package/dist/actions/transfer-asset.cjs.map +1 -1
- package/dist/actions/transfer-asset.d.cts +5 -4
- package/dist/actions/transfer-asset.d.cts.map +1 -1
- package/dist/actions/transfer-asset.d.mts +5 -4
- package/dist/actions/transfer-asset.d.mts.map +1 -1
- package/dist/actions/transfer-asset.mjs +4 -4
- package/dist/actions/transfer-asset.mjs.map +1 -1
- package/dist/actions/update-template.cjs +2 -2
- package/dist/actions/update-template.cjs.map +1 -1
- package/dist/actions/update-template.d.cts +2 -2
- package/dist/actions/update-template.d.mts +2 -2
- package/dist/actions/update-template.mjs +2 -2
- package/dist/actions/update-template.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-sources.cjs","names":["z","action"],"sources":["../../src/actions/list-sources.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListSourcesInput = z.object({\n index: z.string().describe(\"Filter sources by a specific index name\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return per page (default: 20)\").optional(),\n offset: z.number().int().describe(\"Number of results to skip for pagination (default: 0)\").optional(),\n}).describe(\"Parameters to paginate and filter list of sources. Omit to use API defaults.\");\nconst ShotstackListSources_SourceAttributesSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n fps: z.number().describe(\"Frames per second (for video)\").nullable().optional(),\n error: z.string().describe(\"Error message if the ingestion failed\").nullable().optional(),\n input: z.string().describe(\"Original input URL of the source file\").nullable(),\n owner: z.string().describe(\"Owner identifier for the source\").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(\"Hosted source URL after ingestion (present when status is ready)\").nullable().optional(),\n status: z.string().describe(\"Current status of the source (e.g., pending, ready, failed)\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was created\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source 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(\"File size in bytes\").nullable().optional(),\n extension: z.string().describe(\"File extension of the source\").nullable().optional(),\n}).describe(\"Attributes of a source asset.\");\nconst ShotstackListSources_SourceItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n type: z.string().describe(\"Resource type, always 'source'\").nullable(),\n attributes: ShotstackListSources_SourceAttributesSchema.nullable(),\n}).describe(\"Represents a single source asset in the list.\");\nconst ShotstackListSources_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page of results, null if no more pages\").nullable().optional(),\n}).describe(\"Pagination metadata for the list response.\");\nconst ShotstackListSources_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n}).describe(\"Pagination links for the list response.\");\nexport const ShotstackListSourcesOutput = z.object({\n data: z.array(ShotstackListSources_SourceItemSchema).describe(\"List of source objects\"),\n meta: ShotstackListSources_PaginationMetaSchema.nullable(),\n links: ShotstackListSources_PaginationLinksSchema.nullable().optional(),\n}).describe(\"Response schema for listing source assets.\");\n\nexport const shotstackListSources = action(\"SHOTSTACK_LIST_SOURCES\", {\n slug: \"shotstack-list-sources\",\n name: \"List Sources\",\n description: \"Tool to list all source assets. Use when you need to retrieve source entries with optional pagination.\",\n input: ShotstackListSourcesInput,\n output: ShotstackListSourcesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS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AC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,+BAA+B;
|
|
1
|
+
{"version":3,"file":"list-sources.cjs","names":["z","action"],"sources":["../../src/actions/list-sources.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListSourcesInput = z.object({\n index: z.string().describe(\"Filter sources by a specific index name\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return per page (default: 20)\").optional(),\n offset: z.number().int().describe(\"Number of results to skip for pagination (default: 0)\").optional(),\n}).describe(\"Parameters to paginate and filter list of sources. Omit to use API defaults.\");\nconst ShotstackListSources_SourceAttributesSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n fps: z.number().describe(\"Frames per second (for video)\").nullable().optional(),\n error: z.string().describe(\"Error message if the ingestion failed\").nullable().optional(),\n input: z.string().describe(\"Original input URL of the source file\").nullable(),\n owner: z.string().describe(\"Owner identifier for the source\").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(\"Hosted source URL after ingestion (present when status is ready)\").nullable().optional(),\n status: z.string().describe(\"Current status of the source (e.g., pending, ready, failed)\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was created\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source 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(\"File size in bytes\").nullable().optional(),\n extension: z.string().describe(\"File extension of the source\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a source asset.\");\nconst ShotstackListSources_SourceItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n type: z.string().describe(\"Resource type, always 'source'\").nullable(),\n attributes: ShotstackListSources_SourceAttributesSchema.nullable(),\n}).passthrough().describe(\"Represents a single source asset in the list.\");\nconst ShotstackListSources_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page of results, null if no more pages\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for the list response.\");\nconst ShotstackListSources_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n}).passthrough().describe(\"Pagination links for the list response.\");\nexport const ShotstackListSourcesOutput = z.object({\n data: z.array(ShotstackListSources_SourceItemSchema).describe(\"List of source objects\"),\n meta: ShotstackListSources_PaginationMetaSchema.nullable(),\n links: ShotstackListSources_PaginationLinksSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing source assets.\");\n\nexport const shotstackListSources = action(\"SHOTSTACK_LIST_SOURCES\", {\n slug: \"shotstack-list-sources\",\n name: \"List Sources\",\n description: \"Tool to list all source assets. Use when you need to retrieve source entries with optional pagination.\",\n input: ShotstackListSourcesInput,\n output: ShotstackListSourcesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,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ional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
filesize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
meta: z.ZodNullable<z.ZodObject<{
|
|
31
31
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
33
|
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
34
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
}, z.core.$
|
|
36
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
37
|
declare const shotstackListSources: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
38
|
index?: string | undefined;
|
|
39
39
|
limit?: number | undefined;
|
|
@@ -25,15 +25,15 @@ declare const ShotstackListSourcesOutput: z.ZodObject<{
|
|
|
25
25
|
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
filesize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
meta: z.ZodNullable<z.ZodObject<{
|
|
31
31
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
33
|
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
34
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
}, z.core.$
|
|
36
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
37
|
declare const shotstackListSources: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
38
|
index?: string | undefined;
|
|
39
39
|
limit?: number | undefined;
|
|
@@ -21,14 +21,14 @@ const ShotstackListSources_SourceAttributesSchema = z.object({
|
|
|
21
21
|
duration: z.number().describe("Duration of the media in seconds (for video/audio)").nullable().optional(),
|
|
22
22
|
filesize: z.number().int().describe("File size in bytes").nullable().optional(),
|
|
23
23
|
extension: z.string().describe("File extension of the source").nullable().optional()
|
|
24
|
-
}).describe("Attributes of a source asset.");
|
|
24
|
+
}).passthrough().describe("Attributes of a source asset.");
|
|
25
25
|
const ShotstackListSources_SourceItemSchema = z.object({
|
|
26
26
|
id: z.string().describe("Unique identifier for the source").nullable(),
|
|
27
27
|
type: z.string().describe("Resource type, always 'source'").nullable(),
|
|
28
28
|
attributes: ShotstackListSources_SourceAttributesSchema.nullable()
|
|
29
|
-
}).describe("Represents a single source asset in the list.");
|
|
30
|
-
const ShotstackListSources_PaginationMetaSchema = z.object({ next: z.string().describe("Cursor for the next page of results, null if no more pages").nullable().optional() }).describe("Pagination metadata for the list response.");
|
|
31
|
-
const ShotstackListSources_PaginationLinksSchema = z.object({ next: z.string().describe("URL for the next page of results").nullable().optional() }).describe("Pagination links for the list response.");
|
|
29
|
+
}).passthrough().describe("Represents a single source asset in the list.");
|
|
30
|
+
const ShotstackListSources_PaginationMetaSchema = z.object({ next: z.string().describe("Cursor for the next page of results, null if no more pages").nullable().optional() }).passthrough().describe("Pagination metadata for the list response.");
|
|
31
|
+
const ShotstackListSources_PaginationLinksSchema = z.object({ next: z.string().describe("URL for the next page of results").nullable().optional() }).passthrough().describe("Pagination links for the list response.");
|
|
32
32
|
const shotstackListSources = action("SHOTSTACK_LIST_SOURCES", {
|
|
33
33
|
slug: "shotstack-list-sources",
|
|
34
34
|
name: "List Sources",
|
|
@@ -38,7 +38,7 @@ const shotstackListSources = action("SHOTSTACK_LIST_SOURCES", {
|
|
|
38
38
|
data: z.array(ShotstackListSources_SourceItemSchema).describe("List of source objects"),
|
|
39
39
|
meta: ShotstackListSources_PaginationMetaSchema.nullable(),
|
|
40
40
|
links: ShotstackListSources_PaginationLinksSchema.nullable().optional()
|
|
41
|
-
}).describe("Response schema for listing source assets.")
|
|
41
|
+
}).passthrough().describe("Response schema for listing source assets.")
|
|
42
42
|
});
|
|
43
43
|
//#endregion
|
|
44
44
|
export { shotstackListSources };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-sources.mjs","names":[],"sources":["../../src/actions/list-sources.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListSourcesInput = z.object({\n index: z.string().describe(\"Filter sources by a specific index name\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return per page (default: 20)\").optional(),\n offset: z.number().int().describe(\"Number of results to skip for pagination (default: 0)\").optional(),\n}).describe(\"Parameters to paginate and filter list of sources. Omit to use API defaults.\");\nconst ShotstackListSources_SourceAttributesSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n fps: z.number().describe(\"Frames per second (for video)\").nullable().optional(),\n error: z.string().describe(\"Error message if the ingestion failed\").nullable().optional(),\n input: z.string().describe(\"Original input URL of the source file\").nullable(),\n owner: z.string().describe(\"Owner identifier for the source\").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(\"Hosted source URL after ingestion (present when status is ready)\").nullable().optional(),\n status: z.string().describe(\"Current status of the source (e.g., pending, ready, failed)\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was created\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source 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(\"File size in bytes\").nullable().optional(),\n extension: z.string().describe(\"File extension of the source\").nullable().optional(),\n}).describe(\"Attributes of a source asset.\");\nconst ShotstackListSources_SourceItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n type: z.string().describe(\"Resource type, always 'source'\").nullable(),\n attributes: ShotstackListSources_SourceAttributesSchema.nullable(),\n}).describe(\"Represents a single source asset in the list.\");\nconst ShotstackListSources_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page of results, null if no more pages\").nullable().optional(),\n}).describe(\"Pagination metadata for the list response.\");\nconst ShotstackListSources_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n}).describe(\"Pagination links for the list response.\");\nexport const ShotstackListSourcesOutput = z.object({\n data: z.array(ShotstackListSources_SourceItemSchema).describe(\"List of source objects\"),\n meta: ShotstackListSources_PaginationMetaSchema.nullable(),\n links: ShotstackListSources_PaginationLinksSchema.nullable().optional(),\n}).describe(\"Response schema for listing source assets.\");\n\nexport const shotstackListSources = action(\"SHOTSTACK_LIST_SOURCES\", {\n slug: \"shotstack-list-sources\",\n name: \"List Sources\",\n description: \"Tool to list all source assets. Use when you need to retrieve source entries with optional pagination.\",\n input: ShotstackListSourcesInput,\n output: ShotstackListSourcesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAk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":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListSourcesInput = z.object({\n index: z.string().describe(\"Filter sources by a specific index name\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return per page (default: 20)\").optional(),\n offset: z.number().int().describe(\"Number of results to skip for pagination (default: 0)\").optional(),\n}).describe(\"Parameters to paginate and filter list of sources. Omit to use API defaults.\");\nconst ShotstackListSources_SourceAttributesSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n fps: z.number().describe(\"Frames per second (for video)\").nullable().optional(),\n error: z.string().describe(\"Error message if the ingestion failed\").nullable().optional(),\n input: z.string().describe(\"Original input URL of the source file\").nullable(),\n owner: z.string().describe(\"Owner identifier for the source\").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(\"Hosted source URL after ingestion (present when status is ready)\").nullable().optional(),\n status: z.string().describe(\"Current status of the source (e.g., pending, ready, failed)\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was created\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source 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(\"File size in bytes\").nullable().optional(),\n extension: z.string().describe(\"File extension of the source\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a source asset.\");\nconst ShotstackListSources_SourceItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n type: z.string().describe(\"Resource type, always 'source'\").nullable(),\n attributes: ShotstackListSources_SourceAttributesSchema.nullable(),\n}).passthrough().describe(\"Represents a single source asset in the list.\");\nconst ShotstackListSources_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page of results, null if no more pages\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for the list response.\");\nconst ShotstackListSources_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n}).passthrough().describe(\"Pagination links for the list response.\");\nexport const ShotstackListSourcesOutput = z.object({\n data: z.array(ShotstackListSources_SourceItemSchema).describe(\"List of source objects\"),\n meta: ShotstackListSources_PaginationMetaSchema.nullable(),\n links: ShotstackListSources_PaginationLinksSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing source assets.\");\n\nexport const shotstackListSources = action(\"SHOTSTACK_LIST_SOURCES\", {\n slug: \"shotstack-list-sources\",\n name: \"List Sources\",\n description: \"Tool to list all source assets. Use when you need to retrieve source entries with optional pagination.\",\n input: ShotstackListSourcesInput,\n output: ShotstackListSourcesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,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AO,EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,wBAAwB;EACtF,MAAM,0CAA0C,SAAS;EACzD,OAAO,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
|
|
@@ -22,19 +22,19 @@ const ShotstackListSources2_SourceAttributesSchema = zod.z.object({
|
|
|
22
22
|
duration: zod.z.number().describe("Duration of the media in seconds (for video/audio)").nullable().optional(),
|
|
23
23
|
filesize: zod.z.number().int().describe("File size in bytes").nullable().optional(),
|
|
24
24
|
extension: zod.z.string().describe("File extension of the source").nullable().optional()
|
|
25
|
-
}).describe("Attributes of a source asset.");
|
|
25
|
+
}).passthrough().describe("Attributes of a source asset.");
|
|
26
26
|
const ShotstackListSources2_SourceItemSchema = zod.z.object({
|
|
27
27
|
id: zod.z.string().describe("Unique identifier for the source").nullable(),
|
|
28
28
|
type: zod.z.string().describe("Resource type, always 'source'").nullable(),
|
|
29
29
|
attributes: ShotstackListSources2_SourceAttributesSchema.nullable()
|
|
30
|
-
}).describe("Represents a single source asset in the list.");
|
|
31
|
-
const ShotstackListSources2_PaginationMetaSchema = zod.z.object({ next: zod.z.string().describe("Cursor for the next page of results, null if no more pages").nullable().optional() }).describe("Pagination metadata for the list response.");
|
|
32
|
-
const ShotstackListSources2_PaginationLinksSchema = zod.z.object({ next: zod.z.string().describe("URL for the next page of results").nullable().optional() }).describe("Pagination links for the list response.");
|
|
30
|
+
}).passthrough().describe("Represents a single source asset in the list.");
|
|
31
|
+
const ShotstackListSources2_PaginationMetaSchema = zod.z.object({ next: zod.z.string().describe("Cursor for the next page of results, null if no more pages").nullable().optional() }).passthrough().describe("Pagination metadata for the list response.");
|
|
32
|
+
const ShotstackListSources2_PaginationLinksSchema = zod.z.object({ next: zod.z.string().describe("URL for the next page of results").nullable().optional() }).passthrough().describe("Pagination links for the list response.");
|
|
33
33
|
const ShotstackListSources2Output = zod.z.object({
|
|
34
34
|
data: zod.z.array(ShotstackListSources2_SourceItemSchema).describe("List of source objects"),
|
|
35
35
|
meta: ShotstackListSources2_PaginationMetaSchema.nullable().optional(),
|
|
36
36
|
links: ShotstackListSources2_PaginationLinksSchema.nullable().optional()
|
|
37
|
-
}).describe("Response schema for listing source assets.");
|
|
37
|
+
}).passthrough().describe("Response schema for listing source assets.");
|
|
38
38
|
const shotstackListSources2 = require_action.action("SHOTSTACK_LIST_SOURCES2", {
|
|
39
39
|
slug: "shotstack-list-sources2",
|
|
40
40
|
name: "List Sources (with Environment)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-sources2.cjs","names":["z","action"],"sources":["../../src/actions/list-sources2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListSources2Input = z.object({\n env: z.enum([\"stage\", \"v1\"]).describe(\"Environment: 'stage' for sandbox testing or 'v1' for production\"),\n index: z.string().describe(\"Filter sources by a specific index name\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return per page (default: 20)\").optional(),\n offset: z.number().int().describe(\"Number of results to skip for pagination (default: 0)\").optional(),\n}).describe(\"Request parameters for listing source assets with environment selection.\");\nconst ShotstackListSources2_SourceAttributesSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n fps: z.number().describe(\"Frames per second (for video)\").nullable().optional(),\n error: z.string().describe(\"Error message if the ingestion failed\").nullable().optional(),\n input: z.string().describe(\"Original input URL of the source file\").nullable().optional(),\n owner: z.string().describe(\"Owner identifier for the source\").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(\"Hosted source URL after ingestion (present when status is ready)\").nullable().optional(),\n status: z.string().describe(\"Current status of the source (e.g., pending, ready, failed)\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was created\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source was last updated\").nullable().optional(),\n duration: z.number().describe(\"Duration of the media in seconds (for video/audio)\").nullable().optional(),\n filesize: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n extension: z.string().describe(\"File extension of the source\").nullable().optional(),\n}).describe(\"Attributes of a source asset.\");\nconst ShotstackListSources2_SourceItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n type: z.string().describe(\"Resource type, always 'source'\").nullable(),\n attributes: ShotstackListSources2_SourceAttributesSchema.nullable(),\n}).describe(\"Represents a single source asset in the list.\");\nconst ShotstackListSources2_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page of results, null if no more pages\").nullable().optional(),\n}).describe(\"Pagination metadata for the list response.\");\nconst ShotstackListSources2_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n}).describe(\"Pagination links for the list response.\");\nexport const ShotstackListSources2Output = z.object({\n data: z.array(ShotstackListSources2_SourceItemSchema).describe(\"List of source objects\"),\n meta: ShotstackListSources2_PaginationMetaSchema.nullable().optional(),\n links: ShotstackListSources2_PaginationLinksSchema.nullable().optional(),\n}).describe(\"Response schema for listing source assets.\");\n\nexport const shotstackListSources2 = action(\"SHOTSTACK_LIST_SOURCES2\", {\n slug: \"shotstack-list-sources2\",\n name: \"List Sources (with Environment)\",\n description: \"Tool to list all ingested source files with environment selection. Use when you need to retrieve sources from stage (sandbox) or v1 (production) environment with optional pagination.\",\n input: ShotstackListSources2Input,\n output: ShotstackListSources2Output,\n});\n"],"mappings":";;;AAIA,M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,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,+BAA+B;
|
|
1
|
+
{"version":3,"file":"list-sources2.cjs","names":["z","action"],"sources":["../../src/actions/list-sources2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListSources2Input = z.object({\n env: z.enum([\"stage\", \"v1\"]).describe(\"Environment: 'stage' for sandbox testing or 'v1' for production\"),\n index: z.string().describe(\"Filter sources by a specific index name\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return per page (default: 20)\").optional(),\n offset: z.number().int().describe(\"Number of results to skip for pagination (default: 0)\").optional(),\n}).describe(\"Request parameters for listing source assets with environment selection.\");\nconst ShotstackListSources2_SourceAttributesSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n fps: z.number().describe(\"Frames per second (for video)\").nullable().optional(),\n error: z.string().describe(\"Error message if the ingestion failed\").nullable().optional(),\n input: z.string().describe(\"Original input URL of the source file\").nullable().optional(),\n owner: z.string().describe(\"Owner identifier for the source\").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(\"Hosted source URL after ingestion (present when status is ready)\").nullable().optional(),\n status: z.string().describe(\"Current status of the source (e.g., pending, ready, failed)\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was created\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source was last updated\").nullable().optional(),\n duration: z.number().describe(\"Duration of the media in seconds (for video/audio)\").nullable().optional(),\n filesize: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n extension: z.string().describe(\"File extension of the source\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a source asset.\");\nconst ShotstackListSources2_SourceItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n type: z.string().describe(\"Resource type, always 'source'\").nullable(),\n attributes: ShotstackListSources2_SourceAttributesSchema.nullable(),\n}).passthrough().describe(\"Represents a single source asset in the list.\");\nconst ShotstackListSources2_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page of results, null if no more pages\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for the list response.\");\nconst ShotstackListSources2_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n}).passthrough().describe(\"Pagination links for the list response.\");\nexport const ShotstackListSources2Output = z.object({\n data: z.array(ShotstackListSources2_SourceItemSchema).describe(\"List of source objects\"),\n meta: ShotstackListSources2_PaginationMetaSchema.nullable().optional(),\n links: ShotstackListSources2_PaginationLinksSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing source assets.\");\n\nexport const shotstackListSources2 = action(\"SHOTSTACK_LIST_SOURCES2\", {\n slug: \"shotstack-list-sources2\",\n name: \"List Sources (with Environment)\",\n description: \"Tool to list all ingested source files with environment selection. Use when you need to retrieve sources from stage (sandbox) or v1 (production) environment with optional pagination.\",\n input: ShotstackListSources2Input,\n output: ShotstackListSources2Output,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IA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CAAC,SAAS,yCAAyC;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,wBAAwB;CACvF,MAAM,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACrE,OAAO,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -29,15 +29,15 @@ declare const ShotstackListSources2Output: z.ZodObject<{
|
|
|
29
29
|
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
filesize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
31
|
extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, z.core.$
|
|
33
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
37
|
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
38
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
-
}, z.core.$
|
|
40
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>>>;
|
|
40
|
+
}, z.core.$loose>;
|
|
41
41
|
declare const shotstackListSources2: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
env: "stage" | "v1";
|
|
43
43
|
index?: string | undefined;
|
|
@@ -29,15 +29,15 @@ declare const ShotstackListSources2Output: z.ZodObject<{
|
|
|
29
29
|
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
filesize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
31
|
extension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, z.core.$
|
|
33
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
37
|
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
38
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
-
}, z.core.$
|
|
40
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>>>;
|
|
40
|
+
}, z.core.$loose>;
|
|
41
41
|
declare const shotstackListSources2: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
env: "stage" | "v1";
|
|
43
43
|
index?: string | undefined;
|
|
@@ -22,14 +22,14 @@ const ShotstackListSources2_SourceAttributesSchema = z.object({
|
|
|
22
22
|
duration: z.number().describe("Duration of the media in seconds (for video/audio)").nullable().optional(),
|
|
23
23
|
filesize: z.number().int().describe("File size in bytes").nullable().optional(),
|
|
24
24
|
extension: z.string().describe("File extension of the source").nullable().optional()
|
|
25
|
-
}).describe("Attributes of a source asset.");
|
|
25
|
+
}).passthrough().describe("Attributes of a source asset.");
|
|
26
26
|
const ShotstackListSources2_SourceItemSchema = z.object({
|
|
27
27
|
id: z.string().describe("Unique identifier for the source").nullable(),
|
|
28
28
|
type: z.string().describe("Resource type, always 'source'").nullable(),
|
|
29
29
|
attributes: ShotstackListSources2_SourceAttributesSchema.nullable()
|
|
30
|
-
}).describe("Represents a single source asset in the list.");
|
|
31
|
-
const ShotstackListSources2_PaginationMetaSchema = z.object({ next: z.string().describe("Cursor for the next page of results, null if no more pages").nullable().optional() }).describe("Pagination metadata for the list response.");
|
|
32
|
-
const ShotstackListSources2_PaginationLinksSchema = z.object({ next: z.string().describe("URL for the next page of results").nullable().optional() }).describe("Pagination links for the list response.");
|
|
30
|
+
}).passthrough().describe("Represents a single source asset in the list.");
|
|
31
|
+
const ShotstackListSources2_PaginationMetaSchema = z.object({ next: z.string().describe("Cursor for the next page of results, null if no more pages").nullable().optional() }).passthrough().describe("Pagination metadata for the list response.");
|
|
32
|
+
const ShotstackListSources2_PaginationLinksSchema = z.object({ next: z.string().describe("URL for the next page of results").nullable().optional() }).passthrough().describe("Pagination links for the list response.");
|
|
33
33
|
const shotstackListSources2 = action("SHOTSTACK_LIST_SOURCES2", {
|
|
34
34
|
slug: "shotstack-list-sources2",
|
|
35
35
|
name: "List Sources (with Environment)",
|
|
@@ -39,7 +39,7 @@ const shotstackListSources2 = action("SHOTSTACK_LIST_SOURCES2", {
|
|
|
39
39
|
data: z.array(ShotstackListSources2_SourceItemSchema).describe("List of source objects"),
|
|
40
40
|
meta: ShotstackListSources2_PaginationMetaSchema.nullable().optional(),
|
|
41
41
|
links: ShotstackListSources2_PaginationLinksSchema.nullable().optional()
|
|
42
|
-
}).describe("Response schema for listing source assets.")
|
|
42
|
+
}).passthrough().describe("Response schema for listing source assets.")
|
|
43
43
|
});
|
|
44
44
|
//#endregion
|
|
45
45
|
export { shotstackListSources2 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-sources2.mjs","names":[],"sources":["../../src/actions/list-sources2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListSources2Input = z.object({\n env: z.enum([\"stage\", \"v1\"]).describe(\"Environment: 'stage' for sandbox testing or 'v1' for production\"),\n index: z.string().describe(\"Filter sources by a specific index name\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return per page (default: 20)\").optional(),\n offset: z.number().int().describe(\"Number of results to skip for pagination (default: 0)\").optional(),\n}).describe(\"Request parameters for listing source assets with environment selection.\");\nconst ShotstackListSources2_SourceAttributesSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n fps: z.number().describe(\"Frames per second (for video)\").nullable().optional(),\n error: z.string().describe(\"Error message if the ingestion failed\").nullable().optional(),\n input: z.string().describe(\"Original input URL of the source file\").nullable().optional(),\n owner: z.string().describe(\"Owner identifier for the source\").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(\"Hosted source URL after ingestion (present when status is ready)\").nullable().optional(),\n status: z.string().describe(\"Current status of the source (e.g., pending, ready, failed)\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was created\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source was last updated\").nullable().optional(),\n duration: z.number().describe(\"Duration of the media in seconds (for video/audio)\").nullable().optional(),\n filesize: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n extension: z.string().describe(\"File extension of the source\").nullable().optional(),\n}).describe(\"Attributes of a source asset.\");\nconst ShotstackListSources2_SourceItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n type: z.string().describe(\"Resource type, always 'source'\").nullable(),\n attributes: ShotstackListSources2_SourceAttributesSchema.nullable(),\n}).describe(\"Represents a single source asset in the list.\");\nconst ShotstackListSources2_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page of results, null if no more pages\").nullable().optional(),\n}).describe(\"Pagination metadata for the list response.\");\nconst ShotstackListSources2_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n}).describe(\"Pagination links for the list response.\");\nexport const ShotstackListSources2Output = z.object({\n data: z.array(ShotstackListSources2_SourceItemSchema).describe(\"List of source objects\"),\n meta: ShotstackListSources2_PaginationMetaSchema.nullable().optional(),\n links: ShotstackListSources2_PaginationLinksSchema.nullable().optional(),\n}).describe(\"Response schema for listing source assets.\");\n\nexport const shotstackListSources2 = action(\"SHOTSTACK_LIST_SOURCES2\", {\n slug: \"shotstack-list-sources2\",\n name: \"List Sources (with Environment)\",\n description: \"Tool to list all ingested source files with environment selection. Use when you need to retrieve sources from stage (sandbox) or v1 (production) environment with optional pagination.\",\n input: ShotstackListSources2Input,\n output: ShotstackListSources2Output,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,KAAK,EAAE,KAAK,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,SAAS,iEAAiE;CACvG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACxF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,+BAA+B;
|
|
1
|
+
{"version":3,"file":"list-sources2.mjs","names":[],"sources":["../../src/actions/list-sources2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListSources2Input = z.object({\n env: z.enum([\"stage\", \"v1\"]).describe(\"Environment: 'stage' for sandbox testing or 'v1' for production\"),\n index: z.string().describe(\"Filter sources by a specific index name\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return per page (default: 20)\").optional(),\n offset: z.number().int().describe(\"Number of results to skip for pagination (default: 0)\").optional(),\n}).describe(\"Request parameters for listing source assets with environment selection.\");\nconst ShotstackListSources2_SourceAttributesSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n fps: z.number().describe(\"Frames per second (for video)\").nullable().optional(),\n error: z.string().describe(\"Error message if the ingestion failed\").nullable().optional(),\n input: z.string().describe(\"Original input URL of the source file\").nullable().optional(),\n owner: z.string().describe(\"Owner identifier for the source\").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(\"Hosted source URL after ingestion (present when status is ready)\").nullable().optional(),\n status: z.string().describe(\"Current status of the source (e.g., pending, ready, failed)\").nullable(),\n created: z.string().describe(\"ISO 8601 timestamp when the source was created\").nullable(),\n updated: z.string().describe(\"ISO 8601 timestamp when the source was last updated\").nullable().optional(),\n duration: z.number().describe(\"Duration of the media in seconds (for video/audio)\").nullable().optional(),\n filesize: z.number().int().describe(\"File size in bytes\").nullable().optional(),\n extension: z.string().describe(\"File extension of the source\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a source asset.\");\nconst ShotstackListSources2_SourceItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the source\").nullable(),\n type: z.string().describe(\"Resource type, always 'source'\").nullable(),\n attributes: ShotstackListSources2_SourceAttributesSchema.nullable(),\n}).passthrough().describe(\"Represents a single source asset in the list.\");\nconst ShotstackListSources2_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page of results, null if no more pages\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for the list response.\");\nconst ShotstackListSources2_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n}).passthrough().describe(\"Pagination links for the list response.\");\nexport const ShotstackListSources2Output = z.object({\n data: z.array(ShotstackListSources2_SourceItemSchema).describe(\"List of source objects\"),\n meta: ShotstackListSources2_PaginationMetaSchema.nullable().optional(),\n links: ShotstackListSources2_PaginationLinksSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing source assets.\");\n\nexport const shotstackListSources2 = action(\"SHOTSTACK_LIST_SOURCES2\", {\n slug: \"shotstack-list-sources2\",\n name: \"List Sources (with Environment)\",\n description: \"Tool to list all ingested source files with environment selection. Use when you need to retrieve sources from stage (sandbox) or v1 (production) environment with optional pagination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,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,wBAAwB;EACvF,MAAM,2CAA2C,SAAS,CAAC,CAAC,SAAS;EACrE,OAAO,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
|
|
@@ -7,16 +7,16 @@ const ShotstackListTemplates_TemplateSchema = zod.z.object({
|
|
|
7
7
|
name: zod.z.string().describe("Name of the template.").nullable(),
|
|
8
8
|
created: zod.z.string().describe("ISO8601 timestamp when the template was created.").nullable(),
|
|
9
9
|
updated: zod.z.string().describe("ISO8601 timestamp when the template was last updated.").nullable()
|
|
10
|
-
}).describe("Metadata for a single template.");
|
|
10
|
+
}).passthrough().describe("Metadata for a single template.");
|
|
11
11
|
const ShotstackListTemplates_ListTemplatesResponseDataSchema = zod.z.object({
|
|
12
12
|
owner: zod.z.string().describe("The owner's Shotstack account ID.").nullable(),
|
|
13
13
|
templates: zod.z.array(ShotstackListTemplates_TemplateSchema).describe("Array of template metadata objects.")
|
|
14
|
-
}).describe("Response payload for listing templates.");
|
|
14
|
+
}).passthrough().describe("Response payload for listing templates.");
|
|
15
15
|
const ShotstackListTemplatesOutput = zod.z.object({
|
|
16
16
|
message: zod.z.string().describe("Informational message from the API.").nullable().optional(),
|
|
17
17
|
success: zod.z.boolean().describe("True if the request was successful.").nullable(),
|
|
18
18
|
response: ShotstackListTemplates_ListTemplatesResponseDataSchema.nullable()
|
|
19
|
-
}).describe("Response schema for listing templates.");
|
|
19
|
+
}).passthrough().describe("Response schema for listing templates.");
|
|
20
20
|
const shotstackListTemplates = require_action.action("SHOTSTACK_LIST_TEMPLATES", {
|
|
21
21
|
slug: "shotstack-list-templates",
|
|
22
22
|
name: "List Templates",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListTemplatesInput = z.object({}).describe(\"Request parameters for listing templates. The Shotstack API returns all templates for the account;\\nno pagination parameters are supported.\");\nconst ShotstackListTemplates_TemplateSchema = z.object({\n id: z.string().describe(\"The template UUID.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n created: z.string().describe(\"ISO8601 timestamp when the template was created.\").nullable(),\n updated: z.string().describe(\"ISO8601 timestamp when the template was last updated.\").nullable(),\n}).describe(\"Metadata for a single template.\");\nconst ShotstackListTemplates_ListTemplatesResponseDataSchema = z.object({\n owner: z.string().describe(\"The owner's Shotstack account ID.\").nullable(),\n templates: z.array(ShotstackListTemplates_TemplateSchema).describe(\"Array of template metadata objects.\"),\n}).describe(\"Response payload for listing templates.\");\nexport const ShotstackListTemplatesOutput = z.object({\n message: z.string().describe(\"Informational message from the API.\").nullable().optional(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable(),\n response: ShotstackListTemplates_ListTemplatesResponseDataSchema.nullable(),\n}).describe(\"Response schema for listing templates.\");\n\nexport const shotstackListTemplates = action(\"SHOTSTACK_LIST_TEMPLATES\", {\n slug: \"shotstack-list-templates\",\n name: \"List Templates\",\n description: \"Tool to list all Shotstack templates for the account. Use after creating or updating templates to view your available templates.\",\n input: ShotstackListTemplatesInput,\n output: ShotstackListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6IAA6I;AAC9M,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,iCAAiC;
|
|
1
|
+
{"version":3,"file":"list-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListTemplatesInput = z.object({}).describe(\"Request parameters for listing templates. The Shotstack API returns all templates for the account;\\nno pagination parameters are supported.\");\nconst ShotstackListTemplates_TemplateSchema = z.object({\n id: z.string().describe(\"The template UUID.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n created: z.string().describe(\"ISO8601 timestamp when the template was created.\").nullable(),\n updated: z.string().describe(\"ISO8601 timestamp when the template was last updated.\").nullable(),\n}).passthrough().describe(\"Metadata for a single template.\");\nconst ShotstackListTemplates_ListTemplatesResponseDataSchema = z.object({\n owner: z.string().describe(\"The owner's Shotstack account ID.\").nullable(),\n templates: z.array(ShotstackListTemplates_TemplateSchema).describe(\"Array of template metadata objects.\"),\n}).passthrough().describe(\"Response payload for listing templates.\");\nexport const ShotstackListTemplatesOutput = z.object({\n message: z.string().describe(\"Informational message from the API.\").nullable().optional(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable(),\n response: ShotstackListTemplates_ListTemplatesResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing templates.\");\n\nexport const shotstackListTemplates = action(\"SHOTSTACK_LIST_TEMPLATES\", {\n slug: \"shotstack-list-templates\",\n name: \"List Templates\",\n description: \"Tool to list all Shotstack templates for the account. Use after creating or updating templates to view your available templates.\",\n input: ShotstackListTemplatesInput,\n output: ShotstackListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6IAA6I;AAC9M,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,qCAAqC;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,UAAU,uDAAuD,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,9 +12,9 @@ declare const ShotstackListTemplatesOutput: z.ZodObject<{
|
|
|
12
12
|
name: z.ZodNullable<z.ZodString>;
|
|
13
13
|
created: z.ZodNullable<z.ZodString>;
|
|
14
14
|
updated: z.ZodNullable<z.ZodString>;
|
|
15
|
-
}, z.core.$
|
|
16
|
-
}, z.core.$
|
|
17
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const shotstackListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { shotstackListTemplates };
|
|
@@ -12,9 +12,9 @@ declare const ShotstackListTemplatesOutput: z.ZodObject<{
|
|
|
12
12
|
name: z.ZodNullable<z.ZodString>;
|
|
13
13
|
created: z.ZodNullable<z.ZodString>;
|
|
14
14
|
updated: z.ZodNullable<z.ZodString>;
|
|
15
|
-
}, z.core.$
|
|
16
|
-
}, z.core.$
|
|
17
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const shotstackListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { shotstackListTemplates };
|
|
@@ -7,11 +7,11 @@ const ShotstackListTemplates_TemplateSchema = z.object({
|
|
|
7
7
|
name: z.string().describe("Name of the template.").nullable(),
|
|
8
8
|
created: z.string().describe("ISO8601 timestamp when the template was created.").nullable(),
|
|
9
9
|
updated: z.string().describe("ISO8601 timestamp when the template was last updated.").nullable()
|
|
10
|
-
}).describe("Metadata for a single template.");
|
|
10
|
+
}).passthrough().describe("Metadata for a single template.");
|
|
11
11
|
const ShotstackListTemplates_ListTemplatesResponseDataSchema = z.object({
|
|
12
12
|
owner: z.string().describe("The owner's Shotstack account ID.").nullable(),
|
|
13
13
|
templates: z.array(ShotstackListTemplates_TemplateSchema).describe("Array of template metadata objects.")
|
|
14
|
-
}).describe("Response payload for listing templates.");
|
|
14
|
+
}).passthrough().describe("Response payload for listing templates.");
|
|
15
15
|
const shotstackListTemplates = action("SHOTSTACK_LIST_TEMPLATES", {
|
|
16
16
|
slug: "shotstack-list-templates",
|
|
17
17
|
name: "List Templates",
|
|
@@ -21,7 +21,7 @@ const shotstackListTemplates = action("SHOTSTACK_LIST_TEMPLATES", {
|
|
|
21
21
|
message: z.string().describe("Informational message from the API.").nullable().optional(),
|
|
22
22
|
success: z.boolean().describe("True if the request was successful.").nullable(),
|
|
23
23
|
response: ShotstackListTemplates_ListTemplatesResponseDataSchema.nullable()
|
|
24
|
-
}).describe("Response schema for listing templates.")
|
|
24
|
+
}).passthrough().describe("Response schema for listing templates.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { shotstackListTemplates };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-templates.mjs","names":[],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListTemplatesInput = z.object({}).describe(\"Request parameters for listing templates. The Shotstack API returns all templates for the account;\\nno pagination parameters are supported.\");\nconst ShotstackListTemplates_TemplateSchema = z.object({\n id: z.string().describe(\"The template UUID.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n created: z.string().describe(\"ISO8601 timestamp when the template was created.\").nullable(),\n updated: z.string().describe(\"ISO8601 timestamp when the template was last updated.\").nullable(),\n}).describe(\"Metadata for a single template.\");\nconst ShotstackListTemplates_ListTemplatesResponseDataSchema = z.object({\n owner: z.string().describe(\"The owner's Shotstack account ID.\").nullable(),\n templates: z.array(ShotstackListTemplates_TemplateSchema).describe(\"Array of template metadata objects.\"),\n}).describe(\"Response payload for listing templates.\");\nexport const ShotstackListTemplatesOutput = z.object({\n message: z.string().describe(\"Informational message from the API.\").nullable().optional(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable(),\n response: ShotstackListTemplates_ListTemplatesResponseDataSchema.nullable(),\n}).describe(\"Response schema for listing templates.\");\n\nexport const shotstackListTemplates = action(\"SHOTSTACK_LIST_TEMPLATES\", {\n slug: \"shotstack-list-templates\",\n name: \"List Templates\",\n description: \"Tool to list all Shotstack templates for the account. Use after creating or updating templates to view your available templates.\",\n input: ShotstackListTemplatesInput,\n output: ShotstackListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6IAA6I;AAC9M,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,iCAAiC;
|
|
1
|
+
{"version":3,"file":"list-templates.mjs","names":[],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListTemplatesInput = z.object({}).describe(\"Request parameters for listing templates. The Shotstack API returns all templates for the account;\\nno pagination parameters are supported.\");\nconst ShotstackListTemplates_TemplateSchema = z.object({\n id: z.string().describe(\"The template UUID.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n created: z.string().describe(\"ISO8601 timestamp when the template was created.\").nullable(),\n updated: z.string().describe(\"ISO8601 timestamp when the template was last updated.\").nullable(),\n}).passthrough().describe(\"Metadata for a single template.\");\nconst ShotstackListTemplates_ListTemplatesResponseDataSchema = z.object({\n owner: z.string().describe(\"The owner's Shotstack account ID.\").nullable(),\n templates: z.array(ShotstackListTemplates_TemplateSchema).describe(\"Array of template metadata objects.\"),\n}).passthrough().describe(\"Response payload for listing templates.\");\nexport const ShotstackListTemplatesOutput = z.object({\n message: z.string().describe(\"Informational message from the API.\").nullable().optional(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable(),\n response: ShotstackListTemplates_ListTemplatesResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing templates.\");\n\nexport const shotstackListTemplates = action(\"SHOTSTACK_LIST_TEMPLATES\", {\n slug: \"shotstack-list-templates\",\n name: \"List Templates\",\n description: \"Tool to list all Shotstack templates for the account. Use after creating or updating templates to view your available templates.\",\n input: ShotstackListTemplatesInput,\n output: ShotstackListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6IAA6I;AAC9M,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAM,yDAAyD,EAAE,OAAO;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,qCAAqC;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0C,EAAE,OAAO;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC9E,UAAU,uDAAuD,SAAS;CAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -7,16 +7,16 @@ const ShotstackListTemplates2_TemplateSchema = zod.z.object({
|
|
|
7
7
|
name: zod.z.string().describe("Name of the template.").nullable(),
|
|
8
8
|
created: zod.z.string().describe("ISO8601 timestamp when the template was created.").nullable(),
|
|
9
9
|
updated: zod.z.string().describe("ISO8601 timestamp when the template was last updated.").nullable()
|
|
10
|
-
}).describe("Metadata for a single template.");
|
|
10
|
+
}).passthrough().describe("Metadata for a single template.");
|
|
11
11
|
const ShotstackListTemplates2_ListTemplates2ResponseDataSchema = zod.z.object({
|
|
12
12
|
owner: zod.z.string().describe("The owner's Shotstack account ID.").nullable(),
|
|
13
13
|
templates: zod.z.array(ShotstackListTemplates2_TemplateSchema).describe("Array of template metadata objects.")
|
|
14
|
-
}).describe("Response payload for listing templates.");
|
|
14
|
+
}).passthrough().describe("Response payload for listing templates.");
|
|
15
15
|
const ShotstackListTemplates2Output = zod.z.object({
|
|
16
16
|
message: zod.z.string().describe("Informational message from the API.").nullable(),
|
|
17
17
|
success: zod.z.boolean().describe("True if the request was successful.").nullable(),
|
|
18
18
|
response: ShotstackListTemplates2_ListTemplates2ResponseDataSchema.nullable()
|
|
19
|
-
}).describe("Response schema for listing templates.");
|
|
19
|
+
}).passthrough().describe("Response schema for listing templates.");
|
|
20
20
|
const shotstackListTemplates2 = require_action.action("SHOTSTACK_LIST_TEMPLATES2", {
|
|
21
21
|
slug: "shotstack-list-templates2",
|
|
22
22
|
name: "List Templates with Environment",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-templates2.cjs","names":["z","action"],"sources":["../../src/actions/list-templates2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListTemplates2Input = z.object({\n env: z.enum([\"stage\", \"v1\"]).default(\"stage\").describe(\"Environment to use: 'stage' for sandbox testing or 'v1' for production. Defaults to stage.\").optional(),\n}).describe(\"Request parameters for listing templates with environment selection.\");\nconst ShotstackListTemplates2_TemplateSchema = z.object({\n id: z.string().describe(\"The template UUID.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n created: z.string().describe(\"ISO8601 timestamp when the template was created.\").nullable(),\n updated: z.string().describe(\"ISO8601 timestamp when the template was last updated.\").nullable(),\n}).describe(\"Metadata for a single template.\");\nconst ShotstackListTemplates2_ListTemplates2ResponseDataSchema = z.object({\n owner: z.string().describe(\"The owner's Shotstack account ID.\").nullable(),\n templates: z.array(ShotstackListTemplates2_TemplateSchema).describe(\"Array of template metadata objects.\"),\n}).describe(\"Response payload for listing templates.\");\nexport const ShotstackListTemplates2Output = z.object({\n message: z.string().describe(\"Informational message from the API.\").nullable(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable(),\n response: ShotstackListTemplates2_ListTemplates2ResponseDataSchema.nullable(),\n}).describe(\"Response schema for listing templates.\");\n\nexport const shotstackListTemplates2 = action(\"SHOTSTACK_LIST_TEMPLATES2\", {\n slug: \"shotstack-list-templates2\",\n name: \"List Templates with Environment\",\n description: \"Tool to list all Shotstack templates for the specified environment. Use when you need to retrieve templates from a specific environment (stage or production).\",\n input: ShotstackListTemplates2Input,\n output: ShotstackListTemplates2Output,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,KAAKA,IAAAA,EAAE,KAAK,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,EAChK,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,iCAAiC;
|
|
1
|
+
{"version":3,"file":"list-templates2.cjs","names":["z","action"],"sources":["../../src/actions/list-templates2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListTemplates2Input = z.object({\n env: z.enum([\"stage\", \"v1\"]).default(\"stage\").describe(\"Environment to use: 'stage' for sandbox testing or 'v1' for production. Defaults to stage.\").optional(),\n}).describe(\"Request parameters for listing templates with environment selection.\");\nconst ShotstackListTemplates2_TemplateSchema = z.object({\n id: z.string().describe(\"The template UUID.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n created: z.string().describe(\"ISO8601 timestamp when the template was created.\").nullable(),\n updated: z.string().describe(\"ISO8601 timestamp when the template was last updated.\").nullable(),\n}).passthrough().describe(\"Metadata for a single template.\");\nconst ShotstackListTemplates2_ListTemplates2ResponseDataSchema = z.object({\n owner: z.string().describe(\"The owner's Shotstack account ID.\").nullable(),\n templates: z.array(ShotstackListTemplates2_TemplateSchema).describe(\"Array of template metadata objects.\"),\n}).passthrough().describe(\"Response payload for listing templates.\");\nexport const ShotstackListTemplates2Output = z.object({\n message: z.string().describe(\"Informational message from the API.\").nullable(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable(),\n response: ShotstackListTemplates2_ListTemplates2ResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing templates.\");\n\nexport const shotstackListTemplates2 = action(\"SHOTSTACK_LIST_TEMPLATES2\", {\n slug: \"shotstack-list-templates2\",\n name: \"List Templates with Environment\",\n description: \"Tool to list all Shotstack templates for the specified environment. Use when you need to retrieve templates from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C,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -17,9 +17,9 @@ declare const ShotstackListTemplates2Output: z.ZodObject<{
|
|
|
17
17
|
name: z.ZodNullable<z.ZodString>;
|
|
18
18
|
created: z.ZodNullable<z.ZodString>;
|
|
19
19
|
updated: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
21
|
-
}, z.core.$
|
|
22
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const shotstackListTemplates2: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
env?: "stage" | "v1" | undefined;
|
|
25
25
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -17,9 +17,9 @@ declare const ShotstackListTemplates2Output: z.ZodObject<{
|
|
|
17
17
|
name: z.ZodNullable<z.ZodString>;
|
|
18
18
|
created: z.ZodNullable<z.ZodString>;
|
|
19
19
|
updated: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
21
|
-
}, z.core.$
|
|
22
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const shotstackListTemplates2: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
env?: "stage" | "v1" | undefined;
|
|
25
25
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,11 +7,11 @@ const ShotstackListTemplates2_TemplateSchema = z.object({
|
|
|
7
7
|
name: z.string().describe("Name of the template.").nullable(),
|
|
8
8
|
created: z.string().describe("ISO8601 timestamp when the template was created.").nullable(),
|
|
9
9
|
updated: z.string().describe("ISO8601 timestamp when the template was last updated.").nullable()
|
|
10
|
-
}).describe("Metadata for a single template.");
|
|
10
|
+
}).passthrough().describe("Metadata for a single template.");
|
|
11
11
|
const ShotstackListTemplates2_ListTemplates2ResponseDataSchema = z.object({
|
|
12
12
|
owner: z.string().describe("The owner's Shotstack account ID.").nullable(),
|
|
13
13
|
templates: z.array(ShotstackListTemplates2_TemplateSchema).describe("Array of template metadata objects.")
|
|
14
|
-
}).describe("Response payload for listing templates.");
|
|
14
|
+
}).passthrough().describe("Response payload for listing templates.");
|
|
15
15
|
const shotstackListTemplates2 = action("SHOTSTACK_LIST_TEMPLATES2", {
|
|
16
16
|
slug: "shotstack-list-templates2",
|
|
17
17
|
name: "List Templates with Environment",
|
|
@@ -21,7 +21,7 @@ const shotstackListTemplates2 = action("SHOTSTACK_LIST_TEMPLATES2", {
|
|
|
21
21
|
message: z.string().describe("Informational message from the API.").nullable(),
|
|
22
22
|
success: z.boolean().describe("True if the request was successful.").nullable(),
|
|
23
23
|
response: ShotstackListTemplates2_ListTemplates2ResponseDataSchema.nullable()
|
|
24
|
-
}).describe("Response schema for listing templates.")
|
|
24
|
+
}).passthrough().describe("Response schema for listing templates.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { shotstackListTemplates2 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-templates2.mjs","names":[],"sources":["../../src/actions/list-templates2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListTemplates2Input = z.object({\n env: z.enum([\"stage\", \"v1\"]).default(\"stage\").describe(\"Environment to use: 'stage' for sandbox testing or 'v1' for production. Defaults to stage.\").optional(),\n}).describe(\"Request parameters for listing templates with environment selection.\");\nconst ShotstackListTemplates2_TemplateSchema = z.object({\n id: z.string().describe(\"The template UUID.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n created: z.string().describe(\"ISO8601 timestamp when the template was created.\").nullable(),\n updated: z.string().describe(\"ISO8601 timestamp when the template was last updated.\").nullable(),\n}).describe(\"Metadata for a single template.\");\nconst ShotstackListTemplates2_ListTemplates2ResponseDataSchema = z.object({\n owner: z.string().describe(\"The owner's Shotstack account ID.\").nullable(),\n templates: z.array(ShotstackListTemplates2_TemplateSchema).describe(\"Array of template metadata objects.\"),\n}).describe(\"Response payload for listing templates.\");\nexport const ShotstackListTemplates2Output = z.object({\n message: z.string().describe(\"Informational message from the API.\").nullable(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable(),\n response: ShotstackListTemplates2_ListTemplates2ResponseDataSchema.nullable(),\n}).describe(\"Response schema for listing templates.\");\n\nexport const shotstackListTemplates2 = action(\"SHOTSTACK_LIST_TEMPLATES2\", {\n slug: \"shotstack-list-templates2\",\n name: \"List Templates with Environment\",\n description: \"Tool to list all Shotstack templates for the specified environment. Use when you need to retrieve templates from a specific environment (stage or production).\",\n input: ShotstackListTemplates2Input,\n output: ShotstackListTemplates2Output,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,KAAK,EAAE,KAAK,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,EAChK,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,iCAAiC;
|
|
1
|
+
{"version":3,"file":"list-templates2.mjs","names":[],"sources":["../../src/actions/list-templates2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackListTemplates2Input = z.object({\n env: z.enum([\"stage\", \"v1\"]).default(\"stage\").describe(\"Environment to use: 'stage' for sandbox testing or 'v1' for production. Defaults to stage.\").optional(),\n}).describe(\"Request parameters for listing templates with environment selection.\");\nconst ShotstackListTemplates2_TemplateSchema = z.object({\n id: z.string().describe(\"The template UUID.\").nullable(),\n name: z.string().describe(\"Name of the template.\").nullable(),\n created: z.string().describe(\"ISO8601 timestamp when the template was created.\").nullable(),\n updated: z.string().describe(\"ISO8601 timestamp when the template was last updated.\").nullable(),\n}).passthrough().describe(\"Metadata for a single template.\");\nconst ShotstackListTemplates2_ListTemplates2ResponseDataSchema = z.object({\n owner: z.string().describe(\"The owner's Shotstack account ID.\").nullable(),\n templates: z.array(ShotstackListTemplates2_TemplateSchema).describe(\"Array of template metadata objects.\"),\n}).passthrough().describe(\"Response payload for listing templates.\");\nexport const ShotstackListTemplates2Output = z.object({\n message: z.string().describe(\"Informational message from the API.\").nullable(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable(),\n response: ShotstackListTemplates2_ListTemplates2ResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing templates.\");\n\nexport const shotstackListTemplates2 = action(\"SHOTSTACK_LIST_TEMPLATES2\", {\n slug: \"shotstack-list-templates2\",\n name: \"List Templates with Environment\",\n description: \"Tool to list all Shotstack templates for the specified environment. Use when you need to retrieve templates from a specific environment (stage or production).\",\n input: ShotstackListTemplates2Input,\n output: ShotstackListTemplates2Output,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,KAAK,EAAE,KAAK,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,EAChK,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC1F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAM,2DAA2D,EAAE,OAAO;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,qCAAqC;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX2C,EAAE,OAAO;EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC9E,UAAU,yDAAyD,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -6,13 +6,13 @@ const ShotstackPostUpload_UploadAttributesSchema = zod.z.object({
|
|
|
6
6
|
id: zod.z.string().describe("The source id (same as data.id)").nullable(),
|
|
7
7
|
url: zod.z.string().describe("The signed AWS S3 URL to use in a PUT request to send the binary file data").nullable(),
|
|
8
8
|
expires: zod.z.string().describe("ISO 8601 timestamp when the upload request expires (one hour from creation)").nullable()
|
|
9
|
-
}).describe("Attributes containing the signed URL and upload details.");
|
|
9
|
+
}).passthrough().describe("Attributes containing the signed URL and upload details.");
|
|
10
10
|
const ShotstackPostUpload_UploadDataSchema = zod.z.object({
|
|
11
11
|
id: zod.z.string().describe("The upload file id (UUID format)").nullable(),
|
|
12
12
|
type: zod.z.string().describe("The type of resource, always 'upload'").nullable(),
|
|
13
13
|
attributes: ShotstackPostUpload_UploadAttributesSchema.nullable()
|
|
14
|
-
}).describe("Upload resource data containing the signed URL.");
|
|
15
|
-
const ShotstackPostUploadOutput = zod.z.object({ data: ShotstackPostUpload_UploadDataSchema.nullable() }).describe("Response model containing the signed URL for direct file upload.");
|
|
14
|
+
}).passthrough().describe("Upload resource data containing the signed URL.");
|
|
15
|
+
const ShotstackPostUploadOutput = zod.z.object({ data: ShotstackPostUpload_UploadDataSchema.nullable() }).passthrough().describe("Response model containing the signed URL for direct file upload.");
|
|
16
16
|
const shotstackPostUpload = require_action.action("SHOTSTACK_POST_UPLOAD", {
|
|
17
17
|
slug: "shotstack-post-upload",
|
|
18
18
|
name: "Request Upload URL",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-upload.cjs","names":["z","action"],"sources":["../../src/actions/post-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackPostUploadInput = z.object({}).describe(\"Request model for requesting a signed URL for direct file upload.\\nNo parameters are required for basic usage.\");\nconst ShotstackPostUpload_UploadAttributesSchema = z.object({\n id: z.string().describe(\"The source id (same as data.id)\").nullable(),\n url: z.string().describe(\"The signed AWS S3 URL to use in a PUT request to send the binary file data\").nullable(),\n expires: z.string().describe(\"ISO 8601 timestamp when the upload request expires (one hour from creation)\").nullable(),\n}).describe(\"Attributes containing the signed URL and upload details.\");\nconst ShotstackPostUpload_UploadDataSchema = z.object({\n id: z.string().describe(\"The upload file id (UUID format)\").nullable(),\n type: z.string().describe(\"The type of resource, always 'upload'\").nullable(),\n attributes: ShotstackPostUpload_UploadAttributesSchema.nullable(),\n}).describe(\"Upload resource data containing the signed URL.\");\nexport const ShotstackPostUploadOutput = z.object({\n data: ShotstackPostUpload_UploadDataSchema.nullable(),\n}).describe(\"Response model containing the signed URL for direct file upload.\");\n\nexport const shotstackPostUpload = action(\"SHOTSTACK_POST_UPLOAD\", {\n slug: \"shotstack-post-upload\",\n name: \"Request Upload URL\",\n description: \"Tool to request a signed URL for direct file upload. Use when you need to upload a file to Shotstack storage. The response returns a signed URL that expires in one hour.\",\n input: ShotstackPostUploadInput,\n output: ShotstackPostUploadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gHAAgH;AAC9K,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,0DAA0D;
|
|
1
|
+
{"version":3,"file":"post-upload.cjs","names":["z","action"],"sources":["../../src/actions/post-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShotstackPostUploadInput = z.object({}).describe(\"Request model for requesting a signed URL for direct file upload.\\nNo parameters are required for basic usage.\");\nconst ShotstackPostUpload_UploadAttributesSchema = z.object({\n id: z.string().describe(\"The source id (same as data.id)\").nullable(),\n url: z.string().describe(\"The signed AWS S3 URL to use in a PUT request to send the binary file data\").nullable(),\n expires: z.string().describe(\"ISO 8601 timestamp when the upload request expires (one hour from creation)\").nullable(),\n}).passthrough().describe(\"Attributes containing the signed URL and upload details.\");\nconst ShotstackPostUpload_UploadDataSchema = z.object({\n id: z.string().describe(\"The upload file id (UUID format)\").nullable(),\n type: z.string().describe(\"The type of resource, always 'upload'\").nullable(),\n attributes: ShotstackPostUpload_UploadAttributesSchema.nullable(),\n}).passthrough().describe(\"Upload resource data containing the signed URL.\");\nexport const ShotstackPostUploadOutput = z.object({\n data: ShotstackPostUpload_UploadDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the signed URL for direct file upload.\");\n\nexport const shotstackPostUpload = action(\"SHOTSTACK_POST_UPLOAD\", {\n slug: \"shotstack-post-upload\",\n name: \"Request Upload URL\",\n description: \"Tool to request a signed URL for direct file upload. Use when you need to upload a file to Shotstack storage. The response returns a signed URL that expires in one hour.\",\n input: ShotstackPostUploadInput,\n output: ShotstackPostUploadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gHAAgH;AAC9K,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,YAAY,2CAA2C,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,qCAAqC,SAAS,EACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,9 +10,9 @@ declare const ShotstackPostUploadOutput: z.ZodObject<{
|
|
|
10
10
|
id: z.ZodNullable<z.ZodString>;
|
|
11
11
|
url: z.ZodNullable<z.ZodString>;
|
|
12
12
|
expires: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
14
|
-
}, z.core.$
|
|
15
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const shotstackPostUpload: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { shotstackPostUpload };
|
|
@@ -10,9 +10,9 @@ declare const ShotstackPostUploadOutput: z.ZodObject<{
|
|
|
10
10
|
id: z.ZodNullable<z.ZodString>;
|
|
11
11
|
url: z.ZodNullable<z.ZodString>;
|
|
12
12
|
expires: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
14
|
-
}, z.core.$
|
|
15
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const shotstackPostUpload: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { shotstackPostUpload };
|