@keystrokehq/gamma 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-from-template.cjs +1 -0
- package/dist/actions/create-from-template.cjs.map +1 -1
- package/dist/actions/create-from-template.d.cts +3 -35
- package/dist/actions/create-from-template.d.cts.map +1 -1
- package/dist/actions/create-from-template.d.mts +3 -35
- package/dist/actions/create-from-template.d.mts.map +1 -1
- package/dist/actions/create-from-template.mjs +1 -0
- package/dist/actions/create-from-template.mjs.map +1 -1
- package/dist/actions/generate-gamma.cjs +1 -0
- package/dist/actions/generate-gamma.cjs.map +1 -1
- package/dist/actions/generate-gamma.d.cts +3 -115
- package/dist/actions/generate-gamma.d.cts.map +1 -1
- package/dist/actions/generate-gamma.d.mts +3 -115
- package/dist/actions/generate-gamma.d.mts.map +1 -1
- package/dist/actions/generate-gamma.mjs +1 -0
- package/dist/actions/generate-gamma.mjs.map +1 -1
- package/dist/actions/get-gamma-file-urls.cjs +1 -0
- package/dist/actions/get-gamma-file-urls.cjs.map +1 -1
- package/dist/actions/get-gamma-file-urls.d.cts +3 -15
- package/dist/actions/get-gamma-file-urls.d.cts.map +1 -1
- package/dist/actions/get-gamma-file-urls.d.mts +3 -15
- package/dist/actions/get-gamma-file-urls.d.mts.map +1 -1
- package/dist/actions/get-gamma-file-urls.mjs +1 -0
- package/dist/actions/get-gamma-file-urls.mjs.map +1 -1
- package/dist/actions/list-folders.cjs +1 -0
- package/dist/actions/list-folders.cjs.map +1 -1
- package/dist/actions/list-folders.d.cts +3 -17
- package/dist/actions/list-folders.d.cts.map +1 -1
- package/dist/actions/list-folders.d.mts +3 -17
- package/dist/actions/list-folders.d.mts.map +1 -1
- package/dist/actions/list-folders.mjs +1 -0
- package/dist/actions/list-folders.mjs.map +1 -1
- package/dist/actions/list-themes.cjs +1 -0
- package/dist/actions/list-themes.cjs.map +1 -1
- package/dist/actions/list-themes.d.cts +3 -18
- package/dist/actions/list-themes.d.cts.map +1 -1
- package/dist/actions/list-themes.d.mts +3 -18
- package/dist/actions/list-themes.d.mts.map +1 -1
- package/dist/actions/list-themes.mjs +1 -0
- package/dist/actions/list-themes.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["gamma","executeGammaTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gamma } from \"./app\";\nimport { executeGammaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["gamma","executeGammaTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { gamma } from \"./app\";\nimport { executeGammaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof gamma.credential> {\n return gamma.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeGammaTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gamma } from \"./app\";\nimport { executeGammaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { gamma } from \"./app\";\nimport { executeGammaTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof gamma.credential> {\n return gamma.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeGammaTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-from-template.cjs","names":["z","action"],"sources":["../../src/actions/create-from-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GammaCreateFromTemplateInput = z.object({\n prompt: z.string().describe(\"Text instructions, image URLs, and guidance for adapting the template. Supports 1-100,000 tokens. Can include content to fill into the template and specific customization instructions.\"),\n gammaId: z.string().describe(\"Unique identifier of the gamma template to use as the base for content generation. This determines the structure and layout of the generated content.\"),\n themeId: z.string().describe(\"Theme identifier obtained from the List Themes API. Use the 'id' field (e.g., 'chisel', 'alien', 'aurora'), NOT the 'name' field which contains human-readable theme names. If not specified, uses the template's default theme.\").optional(),\n exportAs: z.string().describe(\"Additional export format for the generated content. Options: 'pdf' (static document) or 'pptx' (editable PowerPoint). Download links expire after a period—download promptly.\").optional(),\n folderIds: z.array(z.string()).describe(\"Array of folder IDs where the generated gamma should be stored. Use List Folders API to get available folder IDs.\").optional(),\n imageOptions: z.object({\n model: z.string().describe(\"AI image model to use for generating images. Options: 'flux-1-pro' (high-quality), 'imagen-4-pro' (photorealistic), 'dall-e-3' (creative), 'flux-1-quick' (quick drafts). Auto-selected if not specified. See: https://developers.gamma.app/docs/image-models\").optional(),\n style: z.string().describe(\"Artistic style/direction for AI-generated images. Defines visual consistency across images. Examples: 'photorealistic', 'claymation', 'pixel art', 'minimal, black and white, line art'. Maximum 500 characters.\").optional(),\n}).passthrough().describe(\"Image generation options for template content.\\nDocs: https://developers.gamma.app/docs/image-models\").optional(),\n sharingOptions: z.object({\n emailOptions: z.object({\n access: z.string().describe(\"Access level granted to email recipients. Options: 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share).\"),\n recipients: z.array(z.string()).describe(\"Array of email addresses to notify about the generated content.\"),\n}).passthrough().describe(\"Email notification options for sharing the generated content.\").optional(),\n externalAccess: z.string().describe(\"Access level for external users (outside workspace). Options: 'noAccess' (team-only), 'view' (public read-only), 'comment' (public feedback), 'edit' (public modifications).\").optional(),\n workspaceAccess: z.string().describe(\"Access level for workspace members. Options: 'noAccess' (private), 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share).\").optional(),\n}).passthrough().describe(\"Access control options for the generated content.\\nDocs: https://developers.gamma.app/docs/how-does-the-generations-api-work#sharingoptions\").optional(),\n}).passthrough().describe(\"Request schema for POST /v1.0/generations/from-template.\\nDocs: https://developers.gamma.app/reference/create-from-template\");\nconst GammaCreateFromTemplate_CreditsSchema = z.object({\n deducted: z.number().int().describe(\"Number of credits deducted for this generation.\").nullable().optional(),\n remaining: z.number().int().describe(\"Number of credits remaining after this generation.\").nullable().optional(),\n}).passthrough().describe(\"Credit usage information from Gamma API.\");\nexport const GammaCreateFromTemplateOutput = z.object({\n status: z.string().describe(\"Generation status (e.g., 'pending', 'completed', 'failed', 'timeout').\").nullable(),\n credits: GammaCreateFromTemplate_CreditsSchema.nullable().optional(),\n gammaUrl: z.string().describe(\"URL to the generated Gamma document (editable in Gamma app). Available when status='completed'.\").nullable().optional(),\n exportUrl: z.string().describe(\"URL to the exported file (PDF or PPTX), if exportAs was specified. Available when status='completed'. Download promptly as links expire.\").nullable().optional(),\n timed_out: z.boolean().describe(\"True if the 2-minute polling timeout was reached without completion.\").nullable().optional(),\n generationId: z.string().describe(\"Unique identifier for the generation job.\").nullable(),\n}).passthrough().describe(\"Response schema for POST /v1.0/generations/from-template with polling.\\nOn success within 2 minutes: Returns gammaUrl directly.\\nOn timeout after 2 minutes: Returns generationId for manual checking.\");\n\nexport const gammaCreateFromTemplate = action(\"GAMMA_CREATE_FROM_TEMPLATE\", {\n slug: \"gamma-create-from-template\",\n name: \"Create from Template\",\n description: \"Tool to create new Gamma content based on an existing template. Use when you need to generate content with a predefined structure/layout by providing custom instructions and prompt. The API creates content asynchronously. This action polls the generation status and returns the gammaUrl when complete, or a generationId if the 2-minute timeout is reached.\",\n input: GammaCreateFromTemplateInput,\n output: GammaCreateFromTemplateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-from-template.cjs","names":["z","action"],"sources":["../../src/actions/create-from-template.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gamma } from \"../app\";\n\nexport const GammaCreateFromTemplateInput = z.object({\n prompt: z.string().describe(\"Text instructions, image URLs, and guidance for adapting the template. Supports 1-100,000 tokens. Can include content to fill into the template and specific customization instructions.\"),\n gammaId: z.string().describe(\"Unique identifier of the gamma template to use as the base for content generation. This determines the structure and layout of the generated content.\"),\n themeId: z.string().describe(\"Theme identifier obtained from the List Themes API. Use the 'id' field (e.g., 'chisel', 'alien', 'aurora'), NOT the 'name' field which contains human-readable theme names. If not specified, uses the template's default theme.\").optional(),\n exportAs: z.string().describe(\"Additional export format for the generated content. Options: 'pdf' (static document) or 'pptx' (editable PowerPoint). Download links expire after a period—download promptly.\").optional(),\n folderIds: z.array(z.string()).describe(\"Array of folder IDs where the generated gamma should be stored. Use List Folders API to get available folder IDs.\").optional(),\n imageOptions: z.object({\n model: z.string().describe(\"AI image model to use for generating images. Options: 'flux-1-pro' (high-quality), 'imagen-4-pro' (photorealistic), 'dall-e-3' (creative), 'flux-1-quick' (quick drafts). Auto-selected if not specified. See: https://developers.gamma.app/docs/image-models\").optional(),\n style: z.string().describe(\"Artistic style/direction for AI-generated images. Defines visual consistency across images. Examples: 'photorealistic', 'claymation', 'pixel art', 'minimal, black and white, line art'. Maximum 500 characters.\").optional(),\n}).passthrough().describe(\"Image generation options for template content.\\nDocs: https://developers.gamma.app/docs/image-models\").optional(),\n sharingOptions: z.object({\n emailOptions: z.object({\n access: z.string().describe(\"Access level granted to email recipients. Options: 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share).\"),\n recipients: z.array(z.string()).describe(\"Array of email addresses to notify about the generated content.\"),\n}).passthrough().describe(\"Email notification options for sharing the generated content.\").optional(),\n externalAccess: z.string().describe(\"Access level for external users (outside workspace). Options: 'noAccess' (team-only), 'view' (public read-only), 'comment' (public feedback), 'edit' (public modifications).\").optional(),\n workspaceAccess: z.string().describe(\"Access level for workspace members. Options: 'noAccess' (private), 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share).\").optional(),\n}).passthrough().describe(\"Access control options for the generated content.\\nDocs: https://developers.gamma.app/docs/how-does-the-generations-api-work#sharingoptions\").optional(),\n}).passthrough().describe(\"Request schema for POST /v1.0/generations/from-template.\\nDocs: https://developers.gamma.app/reference/create-from-template\");\nconst GammaCreateFromTemplate_CreditsSchema = z.object({\n deducted: z.number().int().describe(\"Number of credits deducted for this generation.\").nullable().optional(),\n remaining: z.number().int().describe(\"Number of credits remaining after this generation.\").nullable().optional(),\n}).passthrough().describe(\"Credit usage information from Gamma API.\");\nexport const GammaCreateFromTemplateOutput = z.object({\n status: z.string().describe(\"Generation status (e.g., 'pending', 'completed', 'failed', 'timeout').\").nullable(),\n credits: GammaCreateFromTemplate_CreditsSchema.nullable().optional(),\n gammaUrl: z.string().describe(\"URL to the generated Gamma document (editable in Gamma app). Available when status='completed'.\").nullable().optional(),\n exportUrl: z.string().describe(\"URL to the exported file (PDF or PPTX), if exportAs was specified. Available when status='completed'. Download promptly as links expire.\").nullable().optional(),\n timed_out: z.boolean().describe(\"True if the 2-minute polling timeout was reached without completion.\").nullable().optional(),\n generationId: z.string().describe(\"Unique identifier for the generation job.\").nullable(),\n}).passthrough().describe(\"Response schema for POST /v1.0/generations/from-template with polling.\\nOn success within 2 minutes: Returns gammaUrl directly.\\nOn timeout after 2 minutes: Returns generationId for manual checking.\");\n\nexport const gammaCreateFromTemplate: AppAction<\n typeof GammaCreateFromTemplateInput,\n typeof GammaCreateFromTemplateOutput,\n typeof gamma.credential\n> = action(\"GAMMA_CREATE_FROM_TEMPLATE\", {\n slug: \"gamma-create-from-template\",\n name: \"Create from Template\",\n description: \"Tool to create new Gamma content based on an existing template. Use when you need to generate content with a predefined structure/layout by providing custom instructions and prompt. The API creates content asynchronously. This action polls the generation status and returns the gammaUrl when complete, or a generationId if the 2-minute timeout is reached.\",\n input: GammaCreateFromTemplateInput,\n output: GammaCreateFromTemplateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;CACtN,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ;CACpL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kOAAkO,CAAC,CAAC,SAAS;CAC1Q,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CACxN,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACtK,cAAcA,IAAAA,EAAE,OAAO;EACvB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+PAA+P,CAAC,CAAC,SAAS;EACrS,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kNAAkN,CAAC,CAAC,SAAS;CAC1P,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACzI,gBAAgBA,IAAAA,EAAE,OAAO;EACzB,cAAcA,IAAAA,EAAE,OAAO;GACvB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;GAC/L,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iEAAiE;EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAClG,gBAAgBA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CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { gamma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-from-template.d.ts
|
|
@@ -31,41 +33,7 @@ declare const GammaCreateFromTemplateOutput: z.ZodObject<{
|
|
|
31
33
|
timed_out: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
32
34
|
generationId: z.ZodNullable<z.ZodString>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const gammaCreateFromTemplate:
|
|
35
|
-
[x: string]: unknown;
|
|
36
|
-
prompt: string;
|
|
37
|
-
gammaId: string;
|
|
38
|
-
themeId?: string | undefined;
|
|
39
|
-
exportAs?: string | undefined;
|
|
40
|
-
folderIds?: string[] | undefined;
|
|
41
|
-
imageOptions?: {
|
|
42
|
-
[x: string]: unknown;
|
|
43
|
-
model?: string | undefined;
|
|
44
|
-
style?: string | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
sharingOptions?: {
|
|
47
|
-
[x: string]: unknown;
|
|
48
|
-
emailOptions?: {
|
|
49
|
-
[x: string]: unknown;
|
|
50
|
-
access: string;
|
|
51
|
-
recipients: string[];
|
|
52
|
-
} | undefined;
|
|
53
|
-
externalAccess?: string | undefined;
|
|
54
|
-
workspaceAccess?: string | undefined;
|
|
55
|
-
} | undefined;
|
|
56
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"gamma", z.ZodObject<{
|
|
57
|
-
connectionId: z.ZodString;
|
|
58
|
-
entityId: z.ZodString;
|
|
59
|
-
instanceId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
generic_api_key: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gamma", z.ZodObject<{
|
|
63
|
-
connectionId: z.ZodString;
|
|
64
|
-
entityId: z.ZodString;
|
|
65
|
-
instanceId: z.ZodString;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
generic_api_key: z.ZodString;
|
|
68
|
-
}, z.core.$strip>>]>;
|
|
36
|
+
declare const gammaCreateFromTemplate: AppAction<typeof GammaCreateFromTemplateInput, typeof GammaCreateFromTemplateOutput, typeof gamma.credential>;
|
|
69
37
|
//#endregion
|
|
70
38
|
export { gammaCreateFromTemplate };
|
|
71
39
|
//# sourceMappingURL=create-from-template.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-from-template.d.cts","names":[],"sources":["../../src/actions/create-from-template.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-from-template.d.cts","names":[],"sources":["../../src/actions/create-from-template.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAuB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAS7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { gamma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-from-template.d.ts
|
|
@@ -31,41 +33,7 @@ declare const GammaCreateFromTemplateOutput: z.ZodObject<{
|
|
|
31
33
|
timed_out: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
32
34
|
generationId: z.ZodNullable<z.ZodString>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const gammaCreateFromTemplate:
|
|
35
|
-
[x: string]: unknown;
|
|
36
|
-
prompt: string;
|
|
37
|
-
gammaId: string;
|
|
38
|
-
themeId?: string | undefined;
|
|
39
|
-
exportAs?: string | undefined;
|
|
40
|
-
folderIds?: string[] | undefined;
|
|
41
|
-
imageOptions?: {
|
|
42
|
-
[x: string]: unknown;
|
|
43
|
-
model?: string | undefined;
|
|
44
|
-
style?: string | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
sharingOptions?: {
|
|
47
|
-
[x: string]: unknown;
|
|
48
|
-
emailOptions?: {
|
|
49
|
-
[x: string]: unknown;
|
|
50
|
-
access: string;
|
|
51
|
-
recipients: string[];
|
|
52
|
-
} | undefined;
|
|
53
|
-
externalAccess?: string | undefined;
|
|
54
|
-
workspaceAccess?: string | undefined;
|
|
55
|
-
} | undefined;
|
|
56
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"gamma", z.ZodObject<{
|
|
57
|
-
connectionId: z.ZodString;
|
|
58
|
-
entityId: z.ZodString;
|
|
59
|
-
instanceId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
generic_api_key: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gamma", z.ZodObject<{
|
|
63
|
-
connectionId: z.ZodString;
|
|
64
|
-
entityId: z.ZodString;
|
|
65
|
-
instanceId: z.ZodString;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
generic_api_key: z.ZodString;
|
|
68
|
-
}, z.core.$strip>>]>;
|
|
36
|
+
declare const gammaCreateFromTemplate: AppAction<typeof GammaCreateFromTemplateInput, typeof GammaCreateFromTemplateOutput, typeof gamma.credential>;
|
|
69
37
|
//#endregion
|
|
70
38
|
export { gammaCreateFromTemplate };
|
|
71
39
|
//# sourceMappingURL=create-from-template.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-from-template.d.mts","names":[],"sources":["../../src/actions/create-from-template.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-from-template.d.mts","names":[],"sources":["../../src/actions/create-from-template.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAuB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAS7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-from-template.mjs","names":[],"sources":["../../src/actions/create-from-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GammaCreateFromTemplateInput = z.object({\n prompt: z.string().describe(\"Text instructions, image URLs, and guidance for adapting the template. Supports 1-100,000 tokens. Can include content to fill into the template and specific customization instructions.\"),\n gammaId: z.string().describe(\"Unique identifier of the gamma template to use as the base for content generation. This determines the structure and layout of the generated content.\"),\n themeId: z.string().describe(\"Theme identifier obtained from the List Themes API. Use the 'id' field (e.g., 'chisel', 'alien', 'aurora'), NOT the 'name' field which contains human-readable theme names. If not specified, uses the template's default theme.\").optional(),\n exportAs: z.string().describe(\"Additional export format for the generated content. Options: 'pdf' (static document) or 'pptx' (editable PowerPoint). Download links expire after a period—download promptly.\").optional(),\n folderIds: z.array(z.string()).describe(\"Array of folder IDs where the generated gamma should be stored. Use List Folders API to get available folder IDs.\").optional(),\n imageOptions: z.object({\n model: z.string().describe(\"AI image model to use for generating images. Options: 'flux-1-pro' (high-quality), 'imagen-4-pro' (photorealistic), 'dall-e-3' (creative), 'flux-1-quick' (quick drafts). Auto-selected if not specified. See: https://developers.gamma.app/docs/image-models\").optional(),\n style: z.string().describe(\"Artistic style/direction for AI-generated images. Defines visual consistency across images. Examples: 'photorealistic', 'claymation', 'pixel art', 'minimal, black and white, line art'. Maximum 500 characters.\").optional(),\n}).passthrough().describe(\"Image generation options for template content.\\nDocs: https://developers.gamma.app/docs/image-models\").optional(),\n sharingOptions: z.object({\n emailOptions: z.object({\n access: z.string().describe(\"Access level granted to email recipients. Options: 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share).\"),\n recipients: z.array(z.string()).describe(\"Array of email addresses to notify about the generated content.\"),\n}).passthrough().describe(\"Email notification options for sharing the generated content.\").optional(),\n externalAccess: z.string().describe(\"Access level for external users (outside workspace). Options: 'noAccess' (team-only), 'view' (public read-only), 'comment' (public feedback), 'edit' (public modifications).\").optional(),\n workspaceAccess: z.string().describe(\"Access level for workspace members. Options: 'noAccess' (private), 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share).\").optional(),\n}).passthrough().describe(\"Access control options for the generated content.\\nDocs: https://developers.gamma.app/docs/how-does-the-generations-api-work#sharingoptions\").optional(),\n}).passthrough().describe(\"Request schema for POST /v1.0/generations/from-template.\\nDocs: https://developers.gamma.app/reference/create-from-template\");\nconst GammaCreateFromTemplate_CreditsSchema = z.object({\n deducted: z.number().int().describe(\"Number of credits deducted for this generation.\").nullable().optional(),\n remaining: z.number().int().describe(\"Number of credits remaining after this generation.\").nullable().optional(),\n}).passthrough().describe(\"Credit usage information from Gamma API.\");\nexport const GammaCreateFromTemplateOutput = z.object({\n status: z.string().describe(\"Generation status (e.g., 'pending', 'completed', 'failed', 'timeout').\").nullable(),\n credits: GammaCreateFromTemplate_CreditsSchema.nullable().optional(),\n gammaUrl: z.string().describe(\"URL to the generated Gamma document (editable in Gamma app). Available when status='completed'.\").nullable().optional(),\n exportUrl: z.string().describe(\"URL to the exported file (PDF or PPTX), if exportAs was specified. Available when status='completed'. Download promptly as links expire.\").nullable().optional(),\n timed_out: z.boolean().describe(\"True if the 2-minute polling timeout was reached without completion.\").nullable().optional(),\n generationId: z.string().describe(\"Unique identifier for the generation job.\").nullable(),\n}).passthrough().describe(\"Response schema for POST /v1.0/generations/from-template with polling.\\nOn success within 2 minutes: Returns gammaUrl directly.\\nOn timeout after 2 minutes: Returns generationId for manual checking.\");\n\nexport const gammaCreateFromTemplate = action(\"GAMMA_CREATE_FROM_TEMPLATE\", {\n slug: \"gamma-create-from-template\",\n name: \"Create from Template\",\n description: \"Tool to create new Gamma content based on an existing template. Use when you need to generate content with a predefined structure/layout by providing custom instructions and prompt. The API creates content asynchronously. This action polls the generation status and returns the gammaUrl when complete, or a generationId if the 2-minute timeout is reached.\",\n input: GammaCreateFromTemplateInput,\n output: GammaCreateFromTemplateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-from-template.mjs","names":[],"sources":["../../src/actions/create-from-template.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gamma } from \"../app\";\n\nexport const GammaCreateFromTemplateInput = z.object({\n prompt: z.string().describe(\"Text instructions, image URLs, and guidance for adapting the template. Supports 1-100,000 tokens. Can include content to fill into the template and specific customization instructions.\"),\n gammaId: z.string().describe(\"Unique identifier of the gamma template to use as the base for content generation. This determines the structure and layout of the generated content.\"),\n themeId: z.string().describe(\"Theme identifier obtained from the List Themes API. Use the 'id' field (e.g., 'chisel', 'alien', 'aurora'), NOT the 'name' field which contains human-readable theme names. If not specified, uses the template's default theme.\").optional(),\n exportAs: z.string().describe(\"Additional export format for the generated content. Options: 'pdf' (static document) or 'pptx' (editable PowerPoint). Download links expire after a period—download promptly.\").optional(),\n folderIds: z.array(z.string()).describe(\"Array of folder IDs where the generated gamma should be stored. Use List Folders API to get available folder IDs.\").optional(),\n imageOptions: z.object({\n model: z.string().describe(\"AI image model to use for generating images. Options: 'flux-1-pro' (high-quality), 'imagen-4-pro' (photorealistic), 'dall-e-3' (creative), 'flux-1-quick' (quick drafts). Auto-selected if not specified. See: https://developers.gamma.app/docs/image-models\").optional(),\n style: z.string().describe(\"Artistic style/direction for AI-generated images. Defines visual consistency across images. Examples: 'photorealistic', 'claymation', 'pixel art', 'minimal, black and white, line art'. Maximum 500 characters.\").optional(),\n}).passthrough().describe(\"Image generation options for template content.\\nDocs: https://developers.gamma.app/docs/image-models\").optional(),\n sharingOptions: z.object({\n emailOptions: z.object({\n access: z.string().describe(\"Access level granted to email recipients. Options: 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share).\"),\n recipients: z.array(z.string()).describe(\"Array of email addresses to notify about the generated content.\"),\n}).passthrough().describe(\"Email notification options for sharing the generated content.\").optional(),\n externalAccess: z.string().describe(\"Access level for external users (outside workspace). Options: 'noAccess' (team-only), 'view' (public read-only), 'comment' (public feedback), 'edit' (public modifications).\").optional(),\n workspaceAccess: z.string().describe(\"Access level for workspace members. Options: 'noAccess' (private), 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share).\").optional(),\n}).passthrough().describe(\"Access control options for the generated content.\\nDocs: https://developers.gamma.app/docs/how-does-the-generations-api-work#sharingoptions\").optional(),\n}).passthrough().describe(\"Request schema for POST /v1.0/generations/from-template.\\nDocs: https://developers.gamma.app/reference/create-from-template\");\nconst GammaCreateFromTemplate_CreditsSchema = z.object({\n deducted: z.number().int().describe(\"Number of credits deducted for this generation.\").nullable().optional(),\n remaining: z.number().int().describe(\"Number of credits remaining after this generation.\").nullable().optional(),\n}).passthrough().describe(\"Credit usage information from Gamma API.\");\nexport const GammaCreateFromTemplateOutput = z.object({\n status: z.string().describe(\"Generation status (e.g., 'pending', 'completed', 'failed', 'timeout').\").nullable(),\n credits: GammaCreateFromTemplate_CreditsSchema.nullable().optional(),\n gammaUrl: z.string().describe(\"URL to the generated Gamma document (editable in Gamma app). Available when status='completed'.\").nullable().optional(),\n exportUrl: z.string().describe(\"URL to the exported file (PDF or PPTX), if exportAs was specified. Available when status='completed'. Download promptly as links expire.\").nullable().optional(),\n timed_out: z.boolean().describe(\"True if the 2-minute polling timeout was reached without completion.\").nullable().optional(),\n generationId: z.string().describe(\"Unique identifier for the generation job.\").nullable(),\n}).passthrough().describe(\"Response schema for POST /v1.0/generations/from-template with polling.\\nOn success within 2 minutes: Returns gammaUrl directly.\\nOn timeout after 2 minutes: Returns generationId for manual checking.\");\n\nexport const gammaCreateFromTemplate: AppAction<\n typeof GammaCreateFromTemplateInput,\n typeof GammaCreateFromTemplateOutput,\n typeof gamma.credential\n> = action(\"GAMMA_CREATE_FROM_TEMPLATE\", {\n slug: \"gamma-create-from-template\",\n name: \"Create from Template\",\n description: \"Tool to create new Gamma content based on an existing template. Use when you need to generate content with a predefined structure/layout by providing custom instructions and prompt. The API creates content asynchronously. This action polls the generation status and returns the gammaUrl when complete, or a generationId if the 2-minute timeout is reached.\",\n input: GammaCreateFromTemplateInput,\n output: GammaCreateFromTemplateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0LAA0L;CACtN,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ;CACpL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kOAAkO,CAAC,CAAC,SAAS;CAC1Q,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CACxN,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACtK,cAAc,EAAE,OAAO;EACvB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+PAA+P,CAAC,CAAC,SAAS;EACrS,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kNAAkN,CAAC,CAAC,SAAS;CAC1P,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACzI,gBAAgB,EAAE,OAAO;EACzB,cAAc,EAAE,OAAO;GACvB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK;GAC/L,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iEAAiE;EAC5G,CAAC,CAAC,CA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wMAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-gamma.cjs","names":["z","action"],"sources":["../../src/actions/generate-gamma.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GammaGenerateGammaInput = z.object({\n format: z.string().describe(\"Output type. 'presentation' (slide deck), 'document' (continuous page/report), 'webpage' (web page), 'social' (Instagram/TikTok/LinkedIn posts). Default: 'presentation'\").optional(),\n themeId: z.string().describe(\"Visual theme identifier defining color palette and typography. To use the default theme, omit this field entirely — do NOT pass 'default' as a value. IMPORTANT: Theme IDs cannot be guessed - you MUST retrieve them using the List Themes API first. Standard themes use lowercase words ('alien', 'aurora'), hyphens ('default-dark', 'blue-steel'), or alphanumeric IDs ('ag4mc9ggtxi8iyi'). Custom workspace themes use 'theme_' prefix ('theme_abc123xyz'). DO NOT use underscore-separated words like 'corporate_blue' - these are invalid. Both standard (global) and custom (workspace-specific) themes are supported.\").optional(),\n exportAs: z.string().describe(\"Additional download format alongside Gamma URL. 'pdf' (static document) or 'pptx' (editable PowerPoint). Links provided in GET response expire after time—download promptly.\").optional(),\n numCards: z.number().int().describe(\"Number of cards to create (when cardSplit='auto'). Pro users: 1-60, Ultra users: 1-75. Default: 10\").optional(),\n textMode: z.string().describe(\"Content transformation mode. 'generate' (AI expands brief inputs into full content), 'condense' (summarizes long text to fit slides), 'preserve' (keeps exact wording, adds structure).\"),\n cardSplit: z.string().describe(\"Card division logic. 'auto' (AI splits into numCards slides, ignores \\\\n---\\\\n), 'inputTextBreaks' (splits at each \\\\n---\\\\n marker, ignores numCards). Default: 'auto'\").optional(),\n folderIds: z.array(z.string()).describe(\"Target folder(s) for storing the generated gamma. Retrieve available folder IDs using the List Folders API. Multiple folders can be specified.\").optional(),\n inputText: z.string().describe(\"Text and image URLs to generate gamma from. Can be brief (few words) or extensive (pages). Token limits: 100,000 tokens (~400,000 characters). Image URLs can be included where they should appear. Use '\\\\n---\\\\n' to control card splits.\"),\n cardOptions: z.object({\n dimensions: z.string().describe(\"Card aspect ratio. Presentation: 'fluid' (expands with content, default), '16x9' (widescreen), '4x3' (classic). Document: 'fluid' (default), 'pageless' (web), 'letter' (US 8.5x11), 'a4' (international). Social: '1x1' (square), '4x5' (Instagram/LinkedIn, default), '9x16' (Stories/Reels/TikTok)\").optional(),\n headerFooter: z.object({\n topLeft: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n topRight: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n topCenter: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n bottomLeft: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n bottomRight: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n bottomCenter: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n hideFromLastCard: z.boolean().describe(\"Hide header/footer from the last card. Default: false.\").optional(),\n hideFromFirstCard: z.boolean().describe(\"Hide header/footer from the first card. Default: false.\").optional(),\n}).describe(\"Header and footer configuration for cards.\\nNot applicable for 'webpage' format.\\nDocs: https://developers.gamma.app/docs/generate-api-parameters-explained\").optional(),\n}).describe(\"Card layout options.\\nDocs: https://developers.gamma.app/docs/how-does-the-generations-api-work#cardoptions\").optional(),\n textOptions: z.object({\n tone: z.string().describe(\"Writing voice/mood (only for textMode='generate'). Shapes language formality and energy. Single word ('professional', 'casual') or combined ('professional, upbeat, inspiring'). 1-500 chars.\").optional(),\n amount: z.enum([\"brief\", \"medium\", \"detailed\", \"extensive\"]).describe(\"Valid values for textOptions.amount field.\").optional(),\n audience: z.string().describe(\"Target readers (only for textMode='generate'). Tailors complexity and terminology. Examples: 'executives', 'seven year olds', 'technical developers'. 1-500 chars.\").optional(),\n language: z.enum([\"af\", \"sq\", \"ar\", \"ar-sa\", \"bn\", \"bs\", \"bg\", \"ca\", \"hr\", \"cs\", \"da\", \"nl\", \"en\", \"en-in\", \"en-gb\", \"et\", \"fi\", \"fr\", \"de\", \"el\", \"gu\", \"ha\", \"he\", \"hi\", \"hu\", \"is\", \"id\", \"it\", \"ja\", \"ja-da\", \"kn\", \"kk\", \"ko\", \"lv\", \"lt\", \"mk\", \"ms\", \"ml\", \"mr\", \"nb\", \"fa\", \"pl\", \"pt-br\", \"pt-pt\", \"ro\", \"ru\", \"sr\", \"zh-cn\", \"sl\", \"es\", \"es-419\", \"es-mx\", \"es-es\", \"sw\", \"sv\", \"tl\", \"ta\", \"te\", \"th\", \"zh-tw\", \"tr\", \"uk\", \"ur\", \"uz\", \"vi\", \"cy\", \"yo\"]).describe(\"Output language code (overrides inputText language). For languages with regional variants, use the specific code: Portuguese requires 'pt-br' (Brazilian) or 'pt-pt' (European), Spanish supports 'es' (Spain), 'es-mx' (Mexico), 'es-es' (Spain), 'es-419' (Latin America), English supports 'en' (US), 'en-gb' (UK), 'en-in' (India), Chinese supports 'zh-cn' (Simplified), 'zh-tw' (Traditional), Arabic supports 'ar' (generic), 'ar-sa' (Saudi Arabia). Default: 'en'\").optional(),\n}).describe(\"Text generation options.\\nDocs: https://developers.gamma.app/docs/how-does-the-generations-api-work#textoptions\").optional(),\n imageOptions: z.object({\n model: z.string().describe(\"AI model (only when source='aiGenerated'). Fast: 'flux-1-quick', 'flux-kontext-fast', 'imagen-3-flash', 'luma-photon-flash-1'. Standard: 'flux-1-pro', 'imagen-3-pro', 'imagen-4-pro', 'ideogram-v3-turbo', 'luma-photon-1'. Premium: 'dall-e-3', 'flux-kontext-pro', 'ideogram-v3', 'recraft-v3', 'gpt-image-1-medium'. Ultra: 'flux-1-ultra', 'imagen-4-ultra', 'flux-kontext-max', 'recraft-v3-svg', 'gpt-image-1-high'. Auto-selected if omitted. See: https://developers.gamma.app/docs/image-models\").optional(),\n style: z.string().describe(\"Visual style (only when source='aiGenerated'). Define artistic direction for consistency. Examples: 'photorealistic', 'claymation' (stop-motion look), 'pixel art' (retro 8-bit), 'minimal, black and white, line art'. Highly recommended for cohesive visuals. 1-500 chars.\").optional(),\n source: z.string().describe(\"Image source. Official documented options: 'aiGenerated' (custom AI images, requires model+style), 'pictographic' (hand-drawn illustrations/icons), 'pexels' (Pexels photography), 'giphy' (animated GIFs), 'webAllImages' (any web image, licensing unknown), 'webFreeToUse' (personal use only), 'webFreeToUseCommercially' (business/sales use), 'placeholder' (blank slots for manual upload), 'noImages' (text-only). Default: 'aiGenerated'.\").optional(),\n}).describe(\"Image options for gamma generation.\\nDocs: https://developers.gamma.app/docs/how-does-the-generations-api-work#imageoptions\").optional(),\n sharingOptions: z.object({\n emailOptions: z.object({\n access: z.string().describe(\"Access level for email recipients. 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share).\").optional(),\n recipients: z.array(z.string()).describe(\"Email addresses to share the generated gamma with.\").optional(),\n}).describe(\"Email sharing options for generated gamma.\").optional(),\n externalAccess: z.string().describe(\"External user permissions (outside workspace). 'noAccess' (team-only), 'view' (public read-only), 'comment' (public feedback), 'edit' (public modifications). Default: workspace settings\").optional(),\n workspaceAccess: z.string().describe(\"Workspace member permissions. 'noAccess' (private), 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share). Default: workspace settings\").optional(),\n}).describe(\"Sharing and access control options.\\nDocs: https://developers.gamma.app/docs/generate-api-parameters-explained\").optional(),\n additionalInstructions: z.string().describe(\"Extra specifications for content, layouts, etc. Character limits: 1-2000.\").optional(),\n}).describe(\"Request schema for POST /v1.0/generations.\\nComplete documentation: https://developers.gamma.app/docs/generate-api-parameters-explained\");\nconst GammaGenerateGamma_CreditsSchema = z.object({\n deducted: z.number().int().describe(\"Number of credits deducted for this generation.\").nullable().optional(),\n remaining: z.number().int().describe(\"Number of credits remaining after this generation.\").nullable().optional(),\n}).passthrough().describe(\"Credit usage information from Gamma API.\");\nexport const GammaGenerateGammaOutput = z.object({\n status: z.string().describe(\"Generation status (e.g., 'pending', 'completed', 'failed', 'timeout').\").nullable(),\n credits: GammaGenerateGamma_CreditsSchema.nullable().optional(),\n gammaUrl: z.string().describe(\"URL to the generated Gamma document (editable in Gamma app). Available when status='completed'.\").nullable().optional(),\n exportUrl: z.string().describe(\"URL to the exported file (PDF or PPTX), if exportAs was specified. Available when status='completed'. Download promptly as links expire.\").nullable().optional(),\n timed_out: z.boolean().describe(\"True if the 2-minute polling timeout was reached without completion.\").nullable().optional(),\n generationId: z.string().describe(\"Unique identifier for the generation.\").nullable(),\n}).passthrough().describe(\"Response for POST /v1.0/generations with polling.\\nOn success within 2 minutes: Returns file URLs directly.\\nOn timeout after 2 minutes: Returns generationId for manual checking.\");\n\nexport const gammaGenerateGamma = action(\"GAMMA_GENERATE_GAMMA\", {\n slug: \"gamma-generate-gamma\",\n name: \"Generate a Gamma\",\n description: \"Generate a Gamma presentation, document, webpage, or social media content using AI. Documentation: https://developers.gamma.app/docs/generate-api-parameters-explained The API creates content asynchronously. Poll the returned generationId to check status.\",\n input: GammaGenerateGammaInput,\n output: GammaGenerateGammaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACjN,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,imBAAimB,CAAC,CAAC,SAAS;CACzoB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CACvN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACnJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;CACvN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CACnN,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CACnM,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6OAA6O;CAC5Q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C,SAAS,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/L,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oLAAoL;AAE9M,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"generate-gamma.cjs","names":["z","action"],"sources":["../../src/actions/generate-gamma.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gamma } from \"../app\";\n\nexport const GammaGenerateGammaInput = z.object({\n format: z.string().describe(\"Output type. 'presentation' (slide deck), 'document' (continuous page/report), 'webpage' (web page), 'social' (Instagram/TikTok/LinkedIn posts). Default: 'presentation'\").optional(),\n themeId: z.string().describe(\"Visual theme identifier defining color palette and typography. To use the default theme, omit this field entirely — do NOT pass 'default' as a value. IMPORTANT: Theme IDs cannot be guessed - you MUST retrieve them using the List Themes API first. Standard themes use lowercase words ('alien', 'aurora'), hyphens ('default-dark', 'blue-steel'), or alphanumeric IDs ('ag4mc9ggtxi8iyi'). Custom workspace themes use 'theme_' prefix ('theme_abc123xyz'). DO NOT use underscore-separated words like 'corporate_blue' - these are invalid. Both standard (global) and custom (workspace-specific) themes are supported.\").optional(),\n exportAs: z.string().describe(\"Additional download format alongside Gamma URL. 'pdf' (static document) or 'pptx' (editable PowerPoint). Links provided in GET response expire after time—download promptly.\").optional(),\n numCards: z.number().int().describe(\"Number of cards to create (when cardSplit='auto'). Pro users: 1-60, Ultra users: 1-75. Default: 10\").optional(),\n textMode: z.string().describe(\"Content transformation mode. 'generate' (AI expands brief inputs into full content), 'condense' (summarizes long text to fit slides), 'preserve' (keeps exact wording, adds structure).\"),\n cardSplit: z.string().describe(\"Card division logic. 'auto' (AI splits into numCards slides, ignores \\\\n---\\\\n), 'inputTextBreaks' (splits at each \\\\n---\\\\n marker, ignores numCards). Default: 'auto'\").optional(),\n folderIds: z.array(z.string()).describe(\"Target folder(s) for storing the generated gamma. Retrieve available folder IDs using the List Folders API. Multiple folders can be specified.\").optional(),\n inputText: z.string().describe(\"Text and image URLs to generate gamma from. Can be brief (few words) or extensive (pages). Token limits: 100,000 tokens (~400,000 characters). Image URLs can be included where they should appear. Use '\\\\n---\\\\n' to control card splits.\"),\n cardOptions: z.object({\n dimensions: z.string().describe(\"Card aspect ratio. Presentation: 'fluid' (expands with content, default), '16x9' (widescreen), '4x3' (classic). Document: 'fluid' (default), 'pageless' (web), 'letter' (US 8.5x11), 'a4' (international). Social: '1x1' (square), '4x5' (Instagram/LinkedIn, default), '9x16' (Stories/Reels/TikTok)\").optional(),\n headerFooter: z.object({\n topLeft: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n topRight: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n topCenter: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n bottomLeft: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n bottomRight: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n bottomCenter: z.union([z.object({\n type: z.string().describe(\"Content type must be 'text' for text elements.\"),\n value: z.string().describe(\"Text content to display in the header or footer.\"),\n}).describe(\"Text content configuration for header/footer.\"), z.object({\n src: z.string().nullable().optional(),\n size: z.enum([\"sm\", \"md\", \"lg\", \"xl\"]).describe(\"Valid image sizes for header/footer images.\").nullable().optional(),\n type: z.string().describe(\"Content type must be 'image' for image elements.\"),\n source: z.enum([\"themeLogo\", \"custom\"]).describe(\"Image source: 'themeLogo' (use theme's logo) or 'custom' (custom URL).\"),\n}).describe(\"Image content configuration for header/footer.\"), z.object({\n type: z.string().describe(\"Content type must be 'cardNumber' to display card numbers.\"),\n}).describe(\"Card number content configuration for header/footer.\")]).optional(),\n hideFromLastCard: z.boolean().describe(\"Hide header/footer from the last card. Default: false.\").optional(),\n hideFromFirstCard: z.boolean().describe(\"Hide header/footer from the first card. Default: false.\").optional(),\n}).describe(\"Header and footer configuration for cards.\\nNot applicable for 'webpage' format.\\nDocs: https://developers.gamma.app/docs/generate-api-parameters-explained\").optional(),\n}).describe(\"Card layout options.\\nDocs: https://developers.gamma.app/docs/how-does-the-generations-api-work#cardoptions\").optional(),\n textOptions: z.object({\n tone: z.string().describe(\"Writing voice/mood (only for textMode='generate'). Shapes language formality and energy. Single word ('professional', 'casual') or combined ('professional, upbeat, inspiring'). 1-500 chars.\").optional(),\n amount: z.enum([\"brief\", \"medium\", \"detailed\", \"extensive\"]).describe(\"Valid values for textOptions.amount field.\").optional(),\n audience: z.string().describe(\"Target readers (only for textMode='generate'). Tailors complexity and terminology. Examples: 'executives', 'seven year olds', 'technical developers'. 1-500 chars.\").optional(),\n language: z.enum([\"af\", \"sq\", \"ar\", \"ar-sa\", \"bn\", \"bs\", \"bg\", \"ca\", \"hr\", \"cs\", \"da\", \"nl\", \"en\", \"en-in\", \"en-gb\", \"et\", \"fi\", \"fr\", \"de\", \"el\", \"gu\", \"ha\", \"he\", \"hi\", \"hu\", \"is\", \"id\", \"it\", \"ja\", \"ja-da\", \"kn\", \"kk\", \"ko\", \"lv\", \"lt\", \"mk\", \"ms\", \"ml\", \"mr\", \"nb\", \"fa\", \"pl\", \"pt-br\", \"pt-pt\", \"ro\", \"ru\", \"sr\", \"zh-cn\", \"sl\", \"es\", \"es-419\", \"es-mx\", \"es-es\", \"sw\", \"sv\", \"tl\", \"ta\", \"te\", \"th\", \"zh-tw\", \"tr\", \"uk\", \"ur\", \"uz\", \"vi\", \"cy\", \"yo\"]).describe(\"Output language code (overrides inputText language). For languages with regional variants, use the specific code: Portuguese requires 'pt-br' (Brazilian) or 'pt-pt' (European), Spanish supports 'es' (Spain), 'es-mx' (Mexico), 'es-es' (Spain), 'es-419' (Latin America), English supports 'en' (US), 'en-gb' (UK), 'en-in' (India), Chinese supports 'zh-cn' (Simplified), 'zh-tw' (Traditional), Arabic supports 'ar' (generic), 'ar-sa' (Saudi Arabia). Default: 'en'\").optional(),\n}).describe(\"Text generation options.\\nDocs: https://developers.gamma.app/docs/how-does-the-generations-api-work#textoptions\").optional(),\n imageOptions: z.object({\n model: z.string().describe(\"AI model (only when source='aiGenerated'). Fast: 'flux-1-quick', 'flux-kontext-fast', 'imagen-3-flash', 'luma-photon-flash-1'. Standard: 'flux-1-pro', 'imagen-3-pro', 'imagen-4-pro', 'ideogram-v3-turbo', 'luma-photon-1'. Premium: 'dall-e-3', 'flux-kontext-pro', 'ideogram-v3', 'recraft-v3', 'gpt-image-1-medium'. Ultra: 'flux-1-ultra', 'imagen-4-ultra', 'flux-kontext-max', 'recraft-v3-svg', 'gpt-image-1-high'. Auto-selected if omitted. See: https://developers.gamma.app/docs/image-models\").optional(),\n style: z.string().describe(\"Visual style (only when source='aiGenerated'). Define artistic direction for consistency. Examples: 'photorealistic', 'claymation' (stop-motion look), 'pixel art' (retro 8-bit), 'minimal, black and white, line art'. Highly recommended for cohesive visuals. 1-500 chars.\").optional(),\n source: z.string().describe(\"Image source. Official documented options: 'aiGenerated' (custom AI images, requires model+style), 'pictographic' (hand-drawn illustrations/icons), 'pexels' (Pexels photography), 'giphy' (animated GIFs), 'webAllImages' (any web image, licensing unknown), 'webFreeToUse' (personal use only), 'webFreeToUseCommercially' (business/sales use), 'placeholder' (blank slots for manual upload), 'noImages' (text-only). Default: 'aiGenerated'.\").optional(),\n}).describe(\"Image options for gamma generation.\\nDocs: https://developers.gamma.app/docs/how-does-the-generations-api-work#imageoptions\").optional(),\n sharingOptions: z.object({\n emailOptions: z.object({\n access: z.string().describe(\"Access level for email recipients. 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share).\").optional(),\n recipients: z.array(z.string()).describe(\"Email addresses to share the generated gamma with.\").optional(),\n}).describe(\"Email sharing options for generated gamma.\").optional(),\n externalAccess: z.string().describe(\"External user permissions (outside workspace). 'noAccess' (team-only), 'view' (public read-only), 'comment' (public feedback), 'edit' (public modifications). Default: workspace settings\").optional(),\n workspaceAccess: z.string().describe(\"Workspace member permissions. 'noAccess' (private), 'view' (read-only), 'comment' (add feedback), 'edit' (modify content), 'fullAccess' (view+comment+edit+share). Default: workspace settings\").optional(),\n}).describe(\"Sharing and access control options.\\nDocs: https://developers.gamma.app/docs/generate-api-parameters-explained\").optional(),\n additionalInstructions: z.string().describe(\"Extra specifications for content, layouts, etc. Character limits: 1-2000.\").optional(),\n}).describe(\"Request schema for POST /v1.0/generations.\\nComplete documentation: https://developers.gamma.app/docs/generate-api-parameters-explained\");\nconst GammaGenerateGamma_CreditsSchema = z.object({\n deducted: z.number().int().describe(\"Number of credits deducted for this generation.\").nullable().optional(),\n remaining: z.number().int().describe(\"Number of credits remaining after this generation.\").nullable().optional(),\n}).passthrough().describe(\"Credit usage information from Gamma API.\");\nexport const GammaGenerateGammaOutput = z.object({\n status: z.string().describe(\"Generation status (e.g., 'pending', 'completed', 'failed', 'timeout').\").nullable(),\n credits: GammaGenerateGamma_CreditsSchema.nullable().optional(),\n gammaUrl: z.string().describe(\"URL to the generated Gamma document (editable in Gamma app). Available when status='completed'.\").nullable().optional(),\n exportUrl: z.string().describe(\"URL to the exported file (PDF or PPTX), if exportAs was specified. Available when status='completed'. Download promptly as links expire.\").nullable().optional(),\n timed_out: z.boolean().describe(\"True if the 2-minute polling timeout was reached without completion.\").nullable().optional(),\n generationId: z.string().describe(\"Unique identifier for the generation.\").nullable(),\n}).passthrough().describe(\"Response for POST /v1.0/generations with polling.\\nOn success within 2 minutes: Returns file URLs directly.\\nOn timeout after 2 minutes: Returns generationId for manual checking.\");\n\nexport const gammaGenerateGamma: AppAction<\n typeof GammaGenerateGammaInput,\n typeof GammaGenerateGammaOutput,\n typeof gamma.credential\n> = action(\"GAMMA_GENERATE_GAMMA\", {\n slug: \"gamma-generate-gamma\",\n name: \"Generate a Gamma\",\n description: \"Generate a Gamma presentation, document, webpage, or social media content using AI. Documentation: https://developers.gamma.app/docs/generate-api-parameters-explained The API creates content asynchronously. Poll the returned generationId to check status.\",\n input: GammaGenerateGammaInput,\n output: GammaGenerateGammaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA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@@
|
|
|
1
|
+
import { gamma } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/generate-gamma.d.ts
|
|
@@ -236,121 +238,7 @@ declare const GammaGenerateGammaOutput: z.ZodObject<{
|
|
|
236
238
|
timed_out: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
237
239
|
generationId: z.ZodNullable<z.ZodString>;
|
|
238
240
|
}, z.core.$loose>;
|
|
239
|
-
declare const gammaGenerateGamma:
|
|
240
|
-
textMode: string;
|
|
241
|
-
inputText: string;
|
|
242
|
-
format?: string | undefined;
|
|
243
|
-
themeId?: string | undefined;
|
|
244
|
-
exportAs?: string | undefined;
|
|
245
|
-
numCards?: number | undefined;
|
|
246
|
-
cardSplit?: string | undefined;
|
|
247
|
-
folderIds?: string[] | undefined;
|
|
248
|
-
cardOptions?: {
|
|
249
|
-
dimensions?: string | undefined;
|
|
250
|
-
headerFooter?: {
|
|
251
|
-
topLeft?: {
|
|
252
|
-
type: string;
|
|
253
|
-
value: string;
|
|
254
|
-
} | {
|
|
255
|
-
type: string;
|
|
256
|
-
source: "custom" | "themeLogo";
|
|
257
|
-
src?: string | null | undefined;
|
|
258
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
259
|
-
} | {
|
|
260
|
-
type: string;
|
|
261
|
-
} | undefined;
|
|
262
|
-
topRight?: {
|
|
263
|
-
type: string;
|
|
264
|
-
value: string;
|
|
265
|
-
} | {
|
|
266
|
-
type: string;
|
|
267
|
-
source: "custom" | "themeLogo";
|
|
268
|
-
src?: string | null | undefined;
|
|
269
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
270
|
-
} | {
|
|
271
|
-
type: string;
|
|
272
|
-
} | undefined;
|
|
273
|
-
topCenter?: {
|
|
274
|
-
type: string;
|
|
275
|
-
value: string;
|
|
276
|
-
} | {
|
|
277
|
-
type: string;
|
|
278
|
-
source: "custom" | "themeLogo";
|
|
279
|
-
src?: string | null | undefined;
|
|
280
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
281
|
-
} | {
|
|
282
|
-
type: string;
|
|
283
|
-
} | undefined;
|
|
284
|
-
bottomLeft?: {
|
|
285
|
-
type: string;
|
|
286
|
-
value: string;
|
|
287
|
-
} | {
|
|
288
|
-
type: string;
|
|
289
|
-
source: "custom" | "themeLogo";
|
|
290
|
-
src?: string | null | undefined;
|
|
291
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
292
|
-
} | {
|
|
293
|
-
type: string;
|
|
294
|
-
} | undefined;
|
|
295
|
-
bottomRight?: {
|
|
296
|
-
type: string;
|
|
297
|
-
value: string;
|
|
298
|
-
} | {
|
|
299
|
-
type: string;
|
|
300
|
-
source: "custom" | "themeLogo";
|
|
301
|
-
src?: string | null | undefined;
|
|
302
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
303
|
-
} | {
|
|
304
|
-
type: string;
|
|
305
|
-
} | undefined;
|
|
306
|
-
bottomCenter?: {
|
|
307
|
-
type: string;
|
|
308
|
-
value: string;
|
|
309
|
-
} | {
|
|
310
|
-
type: string;
|
|
311
|
-
source: "custom" | "themeLogo";
|
|
312
|
-
src?: string | null | undefined;
|
|
313
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
314
|
-
} | {
|
|
315
|
-
type: string;
|
|
316
|
-
} | undefined;
|
|
317
|
-
hideFromLastCard?: boolean | undefined;
|
|
318
|
-
hideFromFirstCard?: boolean | undefined;
|
|
319
|
-
} | undefined;
|
|
320
|
-
} | undefined;
|
|
321
|
-
textOptions?: {
|
|
322
|
-
tone?: string | undefined;
|
|
323
|
-
amount?: "brief" | "medium" | "detailed" | "extensive" | undefined;
|
|
324
|
-
audience?: string | undefined;
|
|
325
|
-
language?: "id" | "af" | "sq" | "ar" | "ar-sa" | "bn" | "bs" | "bg" | "ca" | "hr" | "cs" | "da" | "nl" | "en" | "en-in" | "en-gb" | "et" | "fi" | "fr" | "de" | "el" | "gu" | "ha" | "he" | "hi" | "hu" | "is" | "it" | "ja" | "ja-da" | "kn" | "kk" | "ko" | "lv" | "lt" | "mk" | "ms" | "ml" | "mr" | "nb" | "fa" | "pl" | "pt-br" | "pt-pt" | "ro" | "ru" | "sr" | "zh-cn" | "sl" | "es" | "es-419" | "es-mx" | "es-es" | "sw" | "sv" | "tl" | "ta" | "te" | "th" | "zh-tw" | "tr" | "uk" | "ur" | "uz" | "vi" | "cy" | "yo" | undefined;
|
|
326
|
-
} | undefined;
|
|
327
|
-
imageOptions?: {
|
|
328
|
-
model?: string | undefined;
|
|
329
|
-
style?: string | undefined;
|
|
330
|
-
source?: string | undefined;
|
|
331
|
-
} | undefined;
|
|
332
|
-
sharingOptions?: {
|
|
333
|
-
emailOptions?: {
|
|
334
|
-
access?: string | undefined;
|
|
335
|
-
recipients?: string[] | undefined;
|
|
336
|
-
} | undefined;
|
|
337
|
-
externalAccess?: string | undefined;
|
|
338
|
-
workspaceAccess?: string | undefined;
|
|
339
|
-
} | undefined;
|
|
340
|
-
additionalInstructions?: string | undefined;
|
|
341
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"gamma", z.ZodObject<{
|
|
342
|
-
connectionId: z.ZodString;
|
|
343
|
-
entityId: z.ZodString;
|
|
344
|
-
instanceId: z.ZodString;
|
|
345
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
346
|
-
generic_api_key: z.ZodString;
|
|
347
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gamma", z.ZodObject<{
|
|
348
|
-
connectionId: z.ZodString;
|
|
349
|
-
entityId: z.ZodString;
|
|
350
|
-
instanceId: z.ZodString;
|
|
351
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
352
|
-
generic_api_key: z.ZodString;
|
|
353
|
-
}, z.core.$strip>>]>;
|
|
241
|
+
declare const gammaGenerateGamma: AppAction<typeof GammaGenerateGammaInput, typeof GammaGenerateGammaOutput, typeof gamma.credential>;
|
|
354
242
|
//#endregion
|
|
355
243
|
export { gammaGenerateGamma };
|
|
356
244
|
//# sourceMappingURL=generate-gamma.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-gamma.d.cts","names":[],"sources":["../../src/actions/generate-gamma.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate-gamma.d.cts","names":[],"sources":["../../src/actions/generate-gamma.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2GvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cASxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { gamma } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/generate-gamma.d.ts
|
|
@@ -236,121 +238,7 @@ declare const GammaGenerateGammaOutput: z.ZodObject<{
|
|
|
236
238
|
timed_out: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
237
239
|
generationId: z.ZodNullable<z.ZodString>;
|
|
238
240
|
}, z.core.$loose>;
|
|
239
|
-
declare const gammaGenerateGamma:
|
|
240
|
-
textMode: string;
|
|
241
|
-
inputText: string;
|
|
242
|
-
format?: string | undefined;
|
|
243
|
-
themeId?: string | undefined;
|
|
244
|
-
exportAs?: string | undefined;
|
|
245
|
-
numCards?: number | undefined;
|
|
246
|
-
cardSplit?: string | undefined;
|
|
247
|
-
folderIds?: string[] | undefined;
|
|
248
|
-
cardOptions?: {
|
|
249
|
-
dimensions?: string | undefined;
|
|
250
|
-
headerFooter?: {
|
|
251
|
-
topLeft?: {
|
|
252
|
-
type: string;
|
|
253
|
-
value: string;
|
|
254
|
-
} | {
|
|
255
|
-
type: string;
|
|
256
|
-
source: "custom" | "themeLogo";
|
|
257
|
-
src?: string | null | undefined;
|
|
258
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
259
|
-
} | {
|
|
260
|
-
type: string;
|
|
261
|
-
} | undefined;
|
|
262
|
-
topRight?: {
|
|
263
|
-
type: string;
|
|
264
|
-
value: string;
|
|
265
|
-
} | {
|
|
266
|
-
type: string;
|
|
267
|
-
source: "custom" | "themeLogo";
|
|
268
|
-
src?: string | null | undefined;
|
|
269
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
270
|
-
} | {
|
|
271
|
-
type: string;
|
|
272
|
-
} | undefined;
|
|
273
|
-
topCenter?: {
|
|
274
|
-
type: string;
|
|
275
|
-
value: string;
|
|
276
|
-
} | {
|
|
277
|
-
type: string;
|
|
278
|
-
source: "custom" | "themeLogo";
|
|
279
|
-
src?: string | null | undefined;
|
|
280
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
281
|
-
} | {
|
|
282
|
-
type: string;
|
|
283
|
-
} | undefined;
|
|
284
|
-
bottomLeft?: {
|
|
285
|
-
type: string;
|
|
286
|
-
value: string;
|
|
287
|
-
} | {
|
|
288
|
-
type: string;
|
|
289
|
-
source: "custom" | "themeLogo";
|
|
290
|
-
src?: string | null | undefined;
|
|
291
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
292
|
-
} | {
|
|
293
|
-
type: string;
|
|
294
|
-
} | undefined;
|
|
295
|
-
bottomRight?: {
|
|
296
|
-
type: string;
|
|
297
|
-
value: string;
|
|
298
|
-
} | {
|
|
299
|
-
type: string;
|
|
300
|
-
source: "custom" | "themeLogo";
|
|
301
|
-
src?: string | null | undefined;
|
|
302
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
303
|
-
} | {
|
|
304
|
-
type: string;
|
|
305
|
-
} | undefined;
|
|
306
|
-
bottomCenter?: {
|
|
307
|
-
type: string;
|
|
308
|
-
value: string;
|
|
309
|
-
} | {
|
|
310
|
-
type: string;
|
|
311
|
-
source: "custom" | "themeLogo";
|
|
312
|
-
src?: string | null | undefined;
|
|
313
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
314
|
-
} | {
|
|
315
|
-
type: string;
|
|
316
|
-
} | undefined;
|
|
317
|
-
hideFromLastCard?: boolean | undefined;
|
|
318
|
-
hideFromFirstCard?: boolean | undefined;
|
|
319
|
-
} | undefined;
|
|
320
|
-
} | undefined;
|
|
321
|
-
textOptions?: {
|
|
322
|
-
tone?: string | undefined;
|
|
323
|
-
amount?: "brief" | "medium" | "detailed" | "extensive" | undefined;
|
|
324
|
-
audience?: string | undefined;
|
|
325
|
-
language?: "id" | "af" | "sq" | "ar" | "ar-sa" | "bn" | "bs" | "bg" | "ca" | "hr" | "cs" | "da" | "nl" | "en" | "en-in" | "en-gb" | "et" | "fi" | "fr" | "de" | "el" | "gu" | "ha" | "he" | "hi" | "hu" | "is" | "it" | "ja" | "ja-da" | "kn" | "kk" | "ko" | "lv" | "lt" | "mk" | "ms" | "ml" | "mr" | "nb" | "fa" | "pl" | "pt-br" | "pt-pt" | "ro" | "ru" | "sr" | "zh-cn" | "sl" | "es" | "es-419" | "es-mx" | "es-es" | "sw" | "sv" | "tl" | "ta" | "te" | "th" | "zh-tw" | "tr" | "uk" | "ur" | "uz" | "vi" | "cy" | "yo" | undefined;
|
|
326
|
-
} | undefined;
|
|
327
|
-
imageOptions?: {
|
|
328
|
-
model?: string | undefined;
|
|
329
|
-
style?: string | undefined;
|
|
330
|
-
source?: string | undefined;
|
|
331
|
-
} | undefined;
|
|
332
|
-
sharingOptions?: {
|
|
333
|
-
emailOptions?: {
|
|
334
|
-
access?: string | undefined;
|
|
335
|
-
recipients?: string[] | undefined;
|
|
336
|
-
} | undefined;
|
|
337
|
-
externalAccess?: string | undefined;
|
|
338
|
-
workspaceAccess?: string | undefined;
|
|
339
|
-
} | undefined;
|
|
340
|
-
additionalInstructions?: string | undefined;
|
|
341
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"gamma", z.ZodObject<{
|
|
342
|
-
connectionId: z.ZodString;
|
|
343
|
-
entityId: z.ZodString;
|
|
344
|
-
instanceId: z.ZodString;
|
|
345
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
346
|
-
generic_api_key: z.ZodString;
|
|
347
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"gamma", z.ZodObject<{
|
|
348
|
-
connectionId: z.ZodString;
|
|
349
|
-
entityId: z.ZodString;
|
|
350
|
-
instanceId: z.ZodString;
|
|
351
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
352
|
-
generic_api_key: z.ZodString;
|
|
353
|
-
}, z.core.$strip>>]>;
|
|
241
|
+
declare const gammaGenerateGamma: AppAction<typeof GammaGenerateGammaInput, typeof GammaGenerateGammaOutput, typeof gamma.credential>;
|
|
354
242
|
//#endregion
|
|
355
243
|
export { gammaGenerateGamma };
|
|
356
244
|
//# sourceMappingURL=generate-gamma.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-gamma.d.mts","names":[],"sources":["../../src/actions/generate-gamma.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate-gamma.d.mts","names":[],"sources":["../../src/actions/generate-gamma.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2GvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cASxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
|