@purpleschool/gptbot-tools 0.0.137 → 0.0.138

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.
@@ -15,6 +15,7 @@ var ImageEditorCommand;
15
15
  params: zod_1.z.object({
16
16
  attachedFiles: zod_1.z.array(common_1.AttachedFileSchema),
17
17
  systemPromptId: zod_1.z.string().optional(),
18
+ aspectRatio: zod_1.z.string().optional(),
18
19
  }),
19
20
  userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
20
21
  tokenReservationId: zod_1.z.string().uuid(),
@@ -8,6 +8,7 @@ exports.ImageEditorJobParamsSchema = zod_1.z.object({
8
8
  attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).optional(),
9
9
  imageUrls: zod_1.z.array(zod_1.z.string()).optional(),
10
10
  systemPromptId: zod_1.z.string().optional(),
11
+ aspectRatio: zod_1.z.string().optional(),
11
12
  });
12
13
  exports.ImageEditorJobSchema = zod_1.z.object({
13
14
  uuid: zod_1.z.string(),
@@ -10,6 +10,10 @@ exports.ImageEditorModelParamsSchema = zod_1.z.object({
10
10
  maxImages: zod_1.z.number(),
11
11
  acceptedTypes: zod_1.z.array(zod_1.z.string()),
12
12
  }),
13
+ aspectRatio: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
14
+ width: zod_1.z.number(),
15
+ height: zod_1.z.number(),
16
+ })),
13
17
  });
14
18
  exports.ImageEditorModelPricingRuleConditionSchema = zod_1.z.object({
15
19
  withoutSub: zod_1.z.boolean().optional(),
@@ -12,6 +12,7 @@ export namespace ImageEditorCommand {
12
12
  params: z.object({
13
13
  attachedFiles: z.array(AttachedFileSchema),
14
14
  systemPromptId: z.string().optional(),
15
+ aspectRatio: z.string().optional(),
15
16
  }),
16
17
  userHasActiveSubscriptionOrProduct: z.boolean(),
17
18
  tokenReservationId: z.string().uuid(),
@@ -6,6 +6,7 @@ export const ImageEditorJobParamsSchema = z.object({
6
6
  attachedFiles: z.array(AttachedFileSchema).optional(),
7
7
  imageUrls: z.array(z.string()).optional(),
8
8
  systemPromptId: z.string().optional(),
9
+ aspectRatio: z.string().optional(),
9
10
  });
10
11
 
11
12
  export type ImageEditorJobParams = z.infer<typeof ImageEditorJobParamsSchema>;
@@ -8,6 +8,13 @@ export const ImageEditorModelParamsSchema = z.object({
8
8
  maxImages: z.number(),
9
9
  acceptedTypes: z.array(z.string()),
10
10
  }),
11
+ aspectRatio: z.record(
12
+ z.string(),
13
+ z.object({
14
+ width: z.number(),
15
+ height: z.number(),
16
+ }),
17
+ ),
11
18
  });
12
19
 
13
20
  export type ImageEditorModelParams = z.infer<typeof ImageEditorModelParamsSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.0.137",
3
+ "version": "0.0.138",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {