@keystrokehq/gamma 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-from-template.cjs +8 -8
  4. package/dist/actions/create-from-template.cjs.map +1 -1
  5. package/dist/actions/create-from-template.d.cts +65 -3
  6. package/dist/actions/create-from-template.d.cts.map +1 -1
  7. package/dist/actions/create-from-template.d.mts +65 -3
  8. package/dist/actions/create-from-template.d.mts.map +1 -1
  9. package/dist/actions/create-from-template.mjs +8 -8
  10. package/dist/actions/create-from-template.mjs.map +1 -1
  11. package/dist/actions/generate-gamma.cjs +8 -8
  12. package/dist/actions/generate-gamma.cjs.map +1 -1
  13. package/dist/actions/generate-gamma.d.cts +350 -3
  14. package/dist/actions/generate-gamma.d.cts.map +1 -1
  15. package/dist/actions/generate-gamma.d.mts +350 -3
  16. package/dist/actions/generate-gamma.d.mts.map +1 -1
  17. package/dist/actions/generate-gamma.mjs +8 -8
  18. package/dist/actions/generate-gamma.mjs.map +1 -1
  19. package/dist/actions/get-gamma-file-urls.cjs +7 -7
  20. package/dist/actions/get-gamma-file-urls.cjs.map +1 -1
  21. package/dist/actions/get-gamma-file-urls.d.cts +27 -3
  22. package/dist/actions/get-gamma-file-urls.d.cts.map +1 -1
  23. package/dist/actions/get-gamma-file-urls.d.mts +27 -3
  24. package/dist/actions/get-gamma-file-urls.d.mts.map +1 -1
  25. package/dist/actions/get-gamma-file-urls.mjs +7 -7
  26. package/dist/actions/get-gamma-file-urls.mjs.map +1 -1
  27. package/dist/actions/list-folders.cjs +4 -4
  28. package/dist/actions/list-folders.cjs.map +1 -1
  29. package/dist/actions/list-folders.d.cts +27 -3
  30. package/dist/actions/list-folders.d.cts.map +1 -1
  31. package/dist/actions/list-folders.d.mts +27 -3
  32. package/dist/actions/list-folders.d.mts.map +1 -1
  33. package/dist/actions/list-folders.mjs +4 -4
  34. package/dist/actions/list-folders.mjs.map +1 -1
  35. package/dist/actions/list-themes.cjs +8 -8
  36. package/dist/actions/list-themes.cjs.map +1 -1
  37. package/dist/actions/list-themes.d.cts +34 -3
  38. package/dist/actions/list-themes.d.cts.map +1 -1
  39. package/dist/actions/list-themes.d.mts +34 -3
  40. package/dist/actions/list-themes.d.mts.map +1 -1
  41. package/dist/actions/list-themes.mjs +8 -8
  42. package/dist/actions/list-themes.mjs.map +1 -1
  43. package/dist/catalog.cjs +7 -1
  44. package/dist/catalog.cjs.map +1 -1
  45. package/dist/catalog.d.cts +8 -0
  46. package/dist/catalog.d.mts +8 -0
  47. package/dist/catalog.mjs +7 -1
  48. package/dist/catalog.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,9 +1,356 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/generate-gamma.d.ts
4
- declare const GammaGenerateGammaInput: z.ZodTypeAny;
5
- declare const GammaGenerateGammaOutput: z.ZodTypeAny;
6
- declare const gammaGenerateGamma: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GammaGenerateGammaInput: z.ZodObject<{
5
+ format: z.ZodOptional<z.ZodString>;
6
+ themeId: z.ZodOptional<z.ZodString>;
7
+ exportAs: z.ZodOptional<z.ZodString>;
8
+ numCards: z.ZodOptional<z.ZodNumber>;
9
+ textMode: z.ZodString;
10
+ cardSplit: z.ZodOptional<z.ZodString>;
11
+ folderIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ inputText: z.ZodString;
13
+ cardOptions: z.ZodOptional<z.ZodObject<{
14
+ dimensions: z.ZodOptional<z.ZodString>;
15
+ headerFooter: z.ZodOptional<z.ZodObject<{
16
+ topLeft: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
17
+ type: z.ZodString;
18
+ value: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ src: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
22
+ sm: "sm";
23
+ md: "md";
24
+ lg: "lg";
25
+ xl: "xl";
26
+ }>>>;
27
+ type: z.ZodString;
28
+ source: z.ZodEnum<{
29
+ custom: "custom";
30
+ themeLogo: "themeLogo";
31
+ }>;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ type: z.ZodString;
34
+ }, z.core.$strip>]>>;
35
+ topRight: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
36
+ type: z.ZodString;
37
+ value: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ src: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
41
+ sm: "sm";
42
+ md: "md";
43
+ lg: "lg";
44
+ xl: "xl";
45
+ }>>>;
46
+ type: z.ZodString;
47
+ source: z.ZodEnum<{
48
+ custom: "custom";
49
+ themeLogo: "themeLogo";
50
+ }>;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ type: z.ZodString;
53
+ }, z.core.$strip>]>>;
54
+ topCenter: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
55
+ type: z.ZodString;
56
+ value: z.ZodString;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ src: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
60
+ sm: "sm";
61
+ md: "md";
62
+ lg: "lg";
63
+ xl: "xl";
64
+ }>>>;
65
+ type: z.ZodString;
66
+ source: z.ZodEnum<{
67
+ custom: "custom";
68
+ themeLogo: "themeLogo";
69
+ }>;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ type: z.ZodString;
72
+ }, z.core.$strip>]>>;
73
+ bottomLeft: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
74
+ type: z.ZodString;
75
+ value: z.ZodString;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ src: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
79
+ sm: "sm";
80
+ md: "md";
81
+ lg: "lg";
82
+ xl: "xl";
83
+ }>>>;
84
+ type: z.ZodString;
85
+ source: z.ZodEnum<{
86
+ custom: "custom";
87
+ themeLogo: "themeLogo";
88
+ }>;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ type: z.ZodString;
91
+ }, z.core.$strip>]>>;
92
+ bottomRight: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
93
+ type: z.ZodString;
94
+ value: z.ZodString;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ src: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
98
+ sm: "sm";
99
+ md: "md";
100
+ lg: "lg";
101
+ xl: "xl";
102
+ }>>>;
103
+ type: z.ZodString;
104
+ source: z.ZodEnum<{
105
+ custom: "custom";
106
+ themeLogo: "themeLogo";
107
+ }>;
108
+ }, z.core.$strip>, z.ZodObject<{
109
+ type: z.ZodString;
110
+ }, z.core.$strip>]>>;
111
+ bottomCenter: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
112
+ type: z.ZodString;
113
+ value: z.ZodString;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ src: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
117
+ sm: "sm";
118
+ md: "md";
119
+ lg: "lg";
120
+ xl: "xl";
121
+ }>>>;
122
+ type: z.ZodString;
123
+ source: z.ZodEnum<{
124
+ custom: "custom";
125
+ themeLogo: "themeLogo";
126
+ }>;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ type: z.ZodString;
129
+ }, z.core.$strip>]>>;
130
+ hideFromLastCard: z.ZodOptional<z.ZodBoolean>;
131
+ hideFromFirstCard: z.ZodOptional<z.ZodBoolean>;
132
+ }, z.core.$strip>>;
133
+ }, z.core.$strip>>;
134
+ textOptions: z.ZodOptional<z.ZodObject<{
135
+ tone: z.ZodOptional<z.ZodString>;
136
+ amount: z.ZodOptional<z.ZodEnum<{
137
+ brief: "brief";
138
+ medium: "medium";
139
+ detailed: "detailed";
140
+ extensive: "extensive";
141
+ }>>;
142
+ audience: z.ZodOptional<z.ZodString>;
143
+ language: z.ZodOptional<z.ZodEnum<{
144
+ id: "id";
145
+ af: "af";
146
+ sq: "sq";
147
+ ar: "ar";
148
+ "ar-sa": "ar-sa";
149
+ bn: "bn";
150
+ bs: "bs";
151
+ bg: "bg";
152
+ ca: "ca";
153
+ hr: "hr";
154
+ cs: "cs";
155
+ da: "da";
156
+ nl: "nl";
157
+ en: "en";
158
+ "en-in": "en-in";
159
+ "en-gb": "en-gb";
160
+ et: "et";
161
+ fi: "fi";
162
+ fr: "fr";
163
+ de: "de";
164
+ el: "el";
165
+ gu: "gu";
166
+ ha: "ha";
167
+ he: "he";
168
+ hi: "hi";
169
+ hu: "hu";
170
+ is: "is";
171
+ it: "it";
172
+ ja: "ja";
173
+ "ja-da": "ja-da";
174
+ kn: "kn";
175
+ kk: "kk";
176
+ ko: "ko";
177
+ lv: "lv";
178
+ lt: "lt";
179
+ mk: "mk";
180
+ ms: "ms";
181
+ ml: "ml";
182
+ mr: "mr";
183
+ nb: "nb";
184
+ fa: "fa";
185
+ pl: "pl";
186
+ "pt-br": "pt-br";
187
+ "pt-pt": "pt-pt";
188
+ ro: "ro";
189
+ ru: "ru";
190
+ sr: "sr";
191
+ "zh-cn": "zh-cn";
192
+ sl: "sl";
193
+ es: "es";
194
+ "es-419": "es-419";
195
+ "es-mx": "es-mx";
196
+ "es-es": "es-es";
197
+ sw: "sw";
198
+ sv: "sv";
199
+ tl: "tl";
200
+ ta: "ta";
201
+ te: "te";
202
+ th: "th";
203
+ "zh-tw": "zh-tw";
204
+ tr: "tr";
205
+ uk: "uk";
206
+ ur: "ur";
207
+ uz: "uz";
208
+ vi: "vi";
209
+ cy: "cy";
210
+ yo: "yo";
211
+ }>>;
212
+ }, z.core.$strip>>;
213
+ imageOptions: z.ZodOptional<z.ZodObject<{
214
+ model: z.ZodOptional<z.ZodString>;
215
+ style: z.ZodOptional<z.ZodString>;
216
+ source: z.ZodOptional<z.ZodString>;
217
+ }, z.core.$strip>>;
218
+ sharingOptions: z.ZodOptional<z.ZodObject<{
219
+ emailOptions: z.ZodOptional<z.ZodObject<{
220
+ access: z.ZodOptional<z.ZodString>;
221
+ recipients: z.ZodOptional<z.ZodArray<z.ZodString>>;
222
+ }, z.core.$strip>>;
223
+ externalAccess: z.ZodOptional<z.ZodString>;
224
+ workspaceAccess: z.ZodOptional<z.ZodString>;
225
+ }, z.core.$strip>>;
226
+ additionalInstructions: z.ZodOptional<z.ZodString>;
227
+ }, z.core.$strip>;
228
+ declare const GammaGenerateGammaOutput: z.ZodObject<{
229
+ status: z.ZodNullable<z.ZodString>;
230
+ credits: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
231
+ deducted: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
232
+ remaining: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
233
+ }, z.core.$loose>>>;
234
+ gammaUrl: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
235
+ exportUrl: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
236
+ timed_out: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
237
+ generationId: z.ZodNullable<z.ZodString>;
238
+ }, z.core.$loose>;
239
+ declare const gammaGenerateGamma: import("@keystrokehq/action").WorkflowActionDefinition<{
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
+ }, {
342
+ [x: string]: unknown;
343
+ status: string | null;
344
+ generationId: string | null;
345
+ credits?: {
346
+ [x: string]: unknown;
347
+ deducted?: number | undefined;
348
+ remaining?: number | undefined;
349
+ } | undefined;
350
+ gammaUrl?: string | undefined;
351
+ exportUrl?: string | undefined;
352
+ timed_out?: boolean | undefined;
353
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
354
  //#endregion
8
355
  export { gammaGenerateGamma };
9
356
  //# sourceMappingURL=generate-gamma.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-gamma.d.mts","names":[],"sources":["../../src/actions/generate-gamma.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAsG8G;AAAA,cAKzI,wBAAA,EAA0B,CAAA,CAAE,UAOsK;AAAA,cAElM,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"generate-gamma.d.mts","names":[],"sources":["../../src/actions/generate-gamma.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2GvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cASxB,kBAAA,gCAAkB,wBAAA"}
@@ -220,8 +220,8 @@ const GammaGenerateGammaInput = z.object({
220
220
  additionalInstructions: z.string().describe("Extra specifications for content, layouts, etc. Character limits: 1-2000.").optional()
221
221
  }).describe("Request schema for POST /v1.0/generations.\nComplete documentation: https://developers.gamma.app/docs/generate-api-parameters-explained");
222
222
  const GammaGenerateGamma_CreditsSchema = z.object({
223
- deducted: z.number().int().describe("Number of credits deducted for this generation.").nullable().optional(),
224
- remaining: z.number().int().describe("Number of credits remaining after this generation.").nullable().optional()
223
+ deducted: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of credits deducted for this generation.").optional()),
224
+ remaining: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of credits remaining after this generation.").optional())
225
225
  }).passthrough().describe("Credit usage information from Gamma API.");
226
226
  const gammaGenerateGamma = action("GAMMA_GENERATE_GAMMA", {
227
227
  slug: "gamma-generate-gamma",
@@ -229,12 +229,12 @@ const gammaGenerateGamma = action("GAMMA_GENERATE_GAMMA", {
229
229
  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.",
230
230
  input: GammaGenerateGammaInput,
231
231
  output: z.object({
232
- status: z.string().describe("Generation status (e.g., 'pending', 'completed', 'failed', 'timeout')."),
233
- credits: GammaGenerateGamma_CreditsSchema.nullable().optional(),
234
- gammaUrl: z.string().describe("URL to the generated Gamma document (editable in Gamma app). Available when status='completed'.").nullable().optional(),
235
- 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(),
236
- timed_out: z.boolean().describe("True if the 2-minute polling timeout was reached without completion.").nullable().optional(),
237
- generationId: z.string().describe("Unique identifier for the generation.")
232
+ status: z.string().describe("Generation status (e.g., 'pending', 'completed', 'failed', 'timeout').").nullable(),
233
+ credits: z.preprocess((value) => value === null ? void 0 : value, GammaGenerateGamma_CreditsSchema.optional()),
234
+ gammaUrl: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL to the generated Gamma document (editable in Gamma app). Available when status='completed'.").optional()),
235
+ exportUrl: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL to the exported file (PDF or PPTX), if exportAs was specified. Available when status='completed'. Download promptly as links expire.").optional()),
236
+ timed_out: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("True if the 2-minute polling timeout was reached without completion.").optional()),
237
+ generationId: z.string().describe("Unique identifier for the generation.").nullable()
238
238
  }).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.")
239
239
  });
240
240
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"generate-gamma.mjs","names":[],"sources":["../../src/actions/generate-gamma.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GammaGenerateGammaInput: z.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = z.object({\n status: z.string().describe(\"Generation status (e.g., 'pending', 'completed', 'failed', 'timeout').\"),\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.\"),\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,0BAAwC,EAAE,OAAO;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACjN,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,imBAAimB,CAAC,CAAC,SAAS;CACzoB,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CACvN,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACnJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;CACvN,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CACnN,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CACnM,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6OAA6O;CAC5Q,aAAa,EAAE,OAAO;EACtB,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uSAAuS,CAAC,CAAC,SAAS;EAClV,cAAc,EAAE,OAAO;GACvB,SAAS,EAAE,MAAM;IAAC,EAAE,OAAO;KAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;KAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;IAC/E,CAAC,CAAC,CAAC,SAAS,+CAA+C;IAAG,EAAE,OAAO;KACrE,KAAK,EAAE,OAAO,CAAC,CAA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AUpE,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;EACpG,SAAS,iCAAiC,SAAS,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/L,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oLAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"generate-gamma.mjs","names":[],"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.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of credits deducted for this generation.\").optional()),\n remaining: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of credits remaining after this generation.\").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: z.preprocess((value) => (value === null ? undefined : value), GammaGenerateGamma_CreditsSchema.optional()),\n gammaUrl: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL to the generated Gamma document (editable in Gamma app). Available when status='completed'.\").optional()),\n exportUrl: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL to the exported file (PDF or PPTX), if exportAs was specified. Available when status='completed'. Download promptly as links expire.\").optional()),\n timed_out: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"True if the 2-minute polling timeout was reached without completion.\").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,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,SAAS,CAAC;EAClH,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC;EACzM,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC;EACnP,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC;EAChL,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oLAOhB;AACV,CAAC"}
@@ -3,15 +3,15 @@ let zod = require("zod");
3
3
  //#region src/actions/get-gamma-file-urls.ts
4
4
  const GammaGetGammaFileUrlsInput = zod.z.object({ generation_id: zod.z.string().describe("The generationId obtained from the POST generations endpoint. Must contain only letters and numbers (alphanumeric characters).") }).describe("Request path parameter for GET /v1.0/generations/{generationId}.\nRefer to: https://developers.gamma.app/reference/get-generation-status");
5
5
  const GammaGetGammaFileUrls_CreditsSchema = zod.z.object({
6
- deducted: zod.z.number().int().describe("Number of credits deducted for this generation.").nullable().optional(),
7
- remaining: zod.z.number().int().describe("Number of credits remaining after this generation.").nullable().optional()
6
+ deducted: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of credits deducted for this generation.").optional()),
7
+ remaining: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Number of credits remaining after this generation.").optional())
8
8
  }).passthrough().describe("Credit usage information returned by Gamma API.");
9
9
  const GammaGetGammaFileUrlsOutput = zod.z.object({
10
- status: zod.z.string().describe("Generation status (pending, completed, or failed)."),
11
- credits: GammaGetGammaFileUrls_CreditsSchema.nullable().optional(),
12
- gammaUrl: zod.z.string().describe("URL to the generated Gamma document (editable in Gamma app). Available when status is 'completed'.").nullable().optional(),
13
- exportUrl: zod.z.string().describe("URL to the exported file (PDF or PPTX), if exportAs was specified during generation. Available when status is 'completed'.").nullable().optional(),
14
- generationId: zod.z.string().describe("The unique identifier for this generation request.")
10
+ status: zod.z.string().describe("Generation status (pending, completed, or failed).").nullable(),
11
+ credits: zod.z.preprocess((value) => value === null ? void 0 : value, GammaGetGammaFileUrls_CreditsSchema.optional()),
12
+ gammaUrl: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("URL to the generated Gamma document (editable in Gamma app). Available when status is 'completed'.").optional()),
13
+ exportUrl: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("URL to the exported file (PDF or PPTX), if exportAs was specified during generation. Available when status is 'completed'.").optional()),
14
+ generationId: zod.z.string().describe("The unique identifier for this generation request.").nullable()
15
15
  }).passthrough().describe("Response model for GET /v1.0/generations/{generationId} endpoint.\nReturns generation status, file URLs, and credit usage information.");
16
16
  const gammaGetGammaFileUrls = require_action.action("GAMMA_GET_GAMMA_FILE_URLS", {
17
17
  slug: "gamma-get-gamma-file-urls",
@@ -1 +1 @@
1
- {"version":3,"file":"get-gamma-file-urls.cjs","names":["z","action"],"sources":["../../src/actions/get-gamma-file-urls.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GammaGetGammaFileUrlsInput: z.ZodTypeAny = z.object({\n generation_id: z.string().describe(\"The generationId obtained from the POST generations endpoint. Must contain only letters and numbers (alphanumeric characters).\"),\n}).describe(\"Request path parameter for GET /v1.0/generations/{generationId}.\\nRefer to: https://developers.gamma.app/reference/get-generation-status\");\nconst GammaGetGammaFileUrls_CreditsSchema: z.ZodTypeAny = 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 returned by Gamma API.\");\nexport const GammaGetGammaFileUrlsOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Generation status (pending, completed, or failed).\"),\n credits: GammaGetGammaFileUrls_CreditsSchema.nullable().optional(),\n gammaUrl: z.string().describe(\"URL to the generated Gamma document (editable in Gamma app). Available when status is 'completed'.\").nullable().optional(),\n exportUrl: z.string().describe(\"URL to the exported file (PDF or PPTX), if exportAs was specified during generation. Available when status is 'completed'.\").nullable().optional(),\n generationId: z.string().describe(\"The unique identifier for this generation request.\"),\n}).passthrough().describe(\"Response model for GET /v1.0/generations/{generationId} endpoint.\\nReturns generation status, file URLs, and credit usage information.\");\n\nexport const gammaGetGammaFileUrls = action(\"GAMMA_GET_GAMMA_FILE_URLS\", {\n slug: \"gamma-get-gamma-file-urls\",\n name: \"Get Gamma File URLs\",\n description: \"Retrieve generation status and file URLs. Poll this endpoint every ~5 seconds until status is 'completed'. Docs: https://developers.gamma.app/reference/get-generation-status\",\n input: GammaGetGammaFileUrlsInput,\n output: GammaGetGammaFileUrlsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EACrK,CAAC,CAAC,CAAC,SAAS,0IAA0I;AACtJ,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAChF,SAAS,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAElK,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-gamma-file-urls.cjs","names":["z","action"],"sources":["../../src/actions/get-gamma-file-urls.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GammaGetGammaFileUrlsInput = z.object({\n generation_id: z.string().describe(\"The generationId obtained from the POST generations endpoint. Must contain only letters and numbers (alphanumeric characters).\"),\n}).describe(\"Request path parameter for GET /v1.0/generations/{generationId}.\\nRefer to: https://developers.gamma.app/reference/get-generation-status\");\nconst GammaGetGammaFileUrls_CreditsSchema = z.object({\n deducted: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of credits deducted for this generation.\").optional()),\n remaining: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Number of credits remaining after this generation.\").optional()),\n}).passthrough().describe(\"Credit usage information returned by Gamma API.\");\nexport const GammaGetGammaFileUrlsOutput = z.object({\n status: z.string().describe(\"Generation status (pending, completed, or failed).\").nullable(),\n credits: z.preprocess((value) => (value === null ? undefined : value), GammaGetGammaFileUrls_CreditsSchema.optional()),\n gammaUrl: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL to the generated Gamma document (editable in Gamma app). Available when status is 'completed'.\").optional()),\n exportUrl: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL to the exported file (PDF or PPTX), if exportAs was specified during generation. Available when status is 'completed'.\").optional()),\n generationId: z.string().describe(\"The unique identifier for this generation request.\").nullable(),\n}).passthrough().describe(\"Response model for GET /v1.0/generations/{generationId} endpoint.\\nReturns generation status, file URLs, and credit usage information.\");\n\nexport const gammaGetGammaFileUrls = action(\"GAMMA_GET_GAMMA_FILE_URLS\", {\n slug: \"gamma-get-gamma-file-urls\",\n name: \"Get Gamma File URLs\",\n description: \"Retrieve generation status and file URLs. Poll this endpoint every ~5 seconds until status is 'completed'. Docs: https://developers.gamma.app/reference/get-generation-status\",\n input: GammaGetGammaFileUrlsInput,\n output: GammaGetGammaFileUrlsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EACrK,CAAC,CAAC,CAAC,SAAS,0IAA0I;AACtJ,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC;CAC/J,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC;AACrK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,oCAAoC,SAAS,CAAC;CACrH,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC;CAC5M,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS,CAAC;CACrO,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAElK,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-gamma-file-urls.d.ts
4
- declare const GammaGetGammaFileUrlsInput: z.ZodTypeAny;
5
- declare const GammaGetGammaFileUrlsOutput: z.ZodTypeAny;
6
- declare const gammaGetGammaFileUrls: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GammaGetGammaFileUrlsInput: z.ZodObject<{
5
+ generation_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const GammaGetGammaFileUrlsOutput: z.ZodObject<{
8
+ status: z.ZodNullable<z.ZodString>;
9
+ credits: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
10
+ deducted: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
11
+ remaining: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
12
+ }, z.core.$loose>>>;
13
+ gammaUrl: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ exportUrl: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ generationId: z.ZodNullable<z.ZodString>;
16
+ }, z.core.$loose>;
17
+ declare const gammaGetGammaFileUrls: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ generation_id: string;
19
+ }, {
20
+ [x: string]: unknown;
21
+ status: string | null;
22
+ generationId: string | null;
23
+ credits?: {
24
+ [x: string]: unknown;
25
+ deducted?: number | undefined;
26
+ remaining?: number | undefined;
27
+ } | undefined;
28
+ gammaUrl?: string | undefined;
29
+ exportUrl?: string | undefined;
30
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { gammaGetGammaFileUrls };
9
33
  //# sourceMappingURL=get-gamma-file-urls.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-gamma-file-urls.d.cts","names":[],"sources":["../../src/actions/get-gamma-file-urls.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAE4G;AAAA,cAK1I,2BAAA,EAA6B,CAAA,CAAE,UAMuH;AAAA,cAEtJ,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-gamma-file-urls.d.cts","names":[],"sources":["../../src/actions/get-gamma-file-urls.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-gamma-file-urls.d.ts
4
- declare const GammaGetGammaFileUrlsInput: z.ZodTypeAny;
5
- declare const GammaGetGammaFileUrlsOutput: z.ZodTypeAny;
6
- declare const gammaGetGammaFileUrls: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GammaGetGammaFileUrlsInput: z.ZodObject<{
5
+ generation_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const GammaGetGammaFileUrlsOutput: z.ZodObject<{
8
+ status: z.ZodNullable<z.ZodString>;
9
+ credits: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
10
+ deducted: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
11
+ remaining: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
12
+ }, z.core.$loose>>>;
13
+ gammaUrl: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ exportUrl: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ generationId: z.ZodNullable<z.ZodString>;
16
+ }, z.core.$loose>;
17
+ declare const gammaGetGammaFileUrls: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ generation_id: string;
19
+ }, {
20
+ [x: string]: unknown;
21
+ status: string | null;
22
+ generationId: string | null;
23
+ credits?: {
24
+ [x: string]: unknown;
25
+ deducted?: number | undefined;
26
+ remaining?: number | undefined;
27
+ } | undefined;
28
+ gammaUrl?: string | undefined;
29
+ exportUrl?: string | undefined;
30
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { gammaGetGammaFileUrls };
9
33
  //# sourceMappingURL=get-gamma-file-urls.d.mts.map