@purpleschool/gptbot-tools 0.4.14-stage-2 → 0.4.15-stage-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,6 +89,7 @@ export declare const GreetingJobSchema: z.ZodObject<{
89
89
  kind: z.ZodLiteral<GREETING_KIND.VIDEO>;
90
90
  video: z.ZodObject<{
91
91
  url: z.ZodURL;
92
+ previewUrl: z.ZodOptional<z.ZodURL>;
92
93
  }, z.core.$strip>;
93
94
  }, z.core.$strip>, z.ZodObject<{
94
95
  kind: z.ZodLiteral<GREETING_KIND.IMAGE>;
@@ -25,6 +25,7 @@ export declare const GreetingResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
25
25
  kind: z.ZodLiteral<GREETING_KIND.VIDEO>;
26
26
  video: z.ZodObject<{
27
27
  url: z.ZodURL;
28
+ previewUrl: z.ZodOptional<z.ZodURL>;
28
29
  }, z.core.$strip>;
29
30
  }, z.core.$strip>, z.ZodObject<{
30
31
  kind: z.ZodLiteral<GREETING_KIND.IMAGE>;
@@ -14,6 +14,9 @@ exports.GreetingTrackSchema = zod_1.z.object({
14
14
  exports.GreetingResultSchema = zod_1.z.discriminatedUnion('kind', [
15
15
  zod_1.z.object({ kind: zod_1.z.literal(enums_1.GREETING_KIND.TEXT), text: zod_1.z.string().min(1) }),
16
16
  zod_1.z.object({ kind: zod_1.z.literal(enums_1.GREETING_KIND.SONG), tracks: zod_1.z.array(exports.GreetingTrackSchema).min(1) }),
17
- zod_1.z.object({ kind: zod_1.z.literal(enums_1.GREETING_KIND.VIDEO), video: zod_1.z.object({ url: zod_1.z.url() }) }),
17
+ zod_1.z.object({
18
+ kind: zod_1.z.literal(enums_1.GREETING_KIND.VIDEO),
19
+ video: zod_1.z.object({ url: zod_1.z.url(), previewUrl: zod_1.z.url().optional() }),
20
+ }),
18
21
  zod_1.z.object({ kind: zod_1.z.literal(enums_1.GREETING_KIND.IMAGE), image: zod_1.z.object({ url: zod_1.z.url() }) }),
19
22
  ]);
@@ -70,6 +70,7 @@ export declare const GreetingJobResponseSchema: z.ZodObject<{
70
70
  kind: import("..").GREETING_KIND.VIDEO;
71
71
  video: {
72
72
  url: string;
73
+ previewUrl?: string | undefined;
73
74
  };
74
75
  } | {
75
76
  kind: import("..").GREETING_KIND.IMAGE;
@@ -149,6 +150,7 @@ export declare const GreetingJobResponseSchema: z.ZodObject<{
149
150
  kind: import("..").GREETING_KIND.VIDEO;
150
151
  video: {
151
152
  url: string;
153
+ previewUrl?: string | undefined;
152
154
  };
153
155
  } | {
154
156
  kind: import("..").GREETING_KIND.IMAGE;
@@ -357,6 +359,7 @@ export declare const GreetingListResponseSchema: z.ZodObject<{
357
359
  kind: import("..").GREETING_KIND.VIDEO;
358
360
  video: {
359
361
  url: string;
362
+ previewUrl?: string | undefined;
360
363
  };
361
364
  } | {
362
365
  kind: import("..").GREETING_KIND.IMAGE;
@@ -439,6 +442,7 @@ export declare const GreetingListResponseSchema: z.ZodObject<{
439
442
  kind: import("..").GREETING_KIND.VIDEO;
440
443
  video: {
441
444
  url: string;
445
+ previewUrl?: string | undefined;
442
446
  };
443
447
  } | {
444
448
  kind: import("..").GREETING_KIND.IMAGE;
@@ -526,6 +530,7 @@ export declare const GreetingOperationResponseSchema: z.ZodObject<{
526
530
  kind: import("..").GREETING_KIND.VIDEO;
527
531
  video: {
528
532
  url: string;
533
+ previewUrl?: string | undefined;
529
534
  };
530
535
  } | {
531
536
  kind: import("..").GREETING_KIND.IMAGE;
@@ -605,6 +610,7 @@ export declare const GreetingOperationResponseSchema: z.ZodObject<{
605
610
  kind: import("..").GREETING_KIND.VIDEO;
606
611
  video: {
607
612
  url: string;
613
+ previewUrl?: string | undefined;
608
614
  };
609
615
  } | {
610
616
  kind: import("..").GREETING_KIND.IMAGE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.4.14-stage-2",
3
+ "version": "0.4.15-stage-2",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [