@purpleschool/gptbot-tools 0.2.4-stage → 0.2.5-stage

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MarketplaceCardJobSchema = exports.MarketplaceCardJobAttachmentsSchema = void 0;
3
+ exports.MarketplaceCardJobSchema = exports.MarketplaceCardJobResultSchema = exports.MarketplaceCardJobResultItemSchema = exports.MarketplaceCardJobAttachmentsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const common_1 = require("../../common");
6
6
  const tools_1 = require("../../tools");
@@ -8,6 +8,11 @@ exports.MarketplaceCardJobAttachmentsSchema = zod_1.z.object({
8
8
  ownStyleImage: common_1.AttachedFileSchema.optional().nullable(),
9
9
  inputImages: zod_1.z.array(common_1.AttachedFileSchema).optional(),
10
10
  });
11
+ exports.MarketplaceCardJobResultItemSchema = zod_1.z.object({
12
+ uuid: zod_1.z.string().uuid(),
13
+ url: zod_1.z.string().url(),
14
+ });
15
+ exports.MarketplaceCardJobResultSchema = zod_1.z.array(exports.MarketplaceCardJobResultItemSchema);
11
16
  exports.MarketplaceCardJobSchema = zod_1.z.object({
12
17
  uuid: zod_1.z.string().uuid(),
13
18
  status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
@@ -24,6 +29,7 @@ exports.MarketplaceCardJobSchema = zod_1.z.object({
24
29
  stylePresetId: zod_1.z.string().uuid().nullable(),
25
30
  customStylePrompt: zod_1.z.string().nullable(),
26
31
  resultImages: zod_1.z.array(zod_1.z.string()),
32
+ result: exports.MarketplaceCardJobResultSchema,
27
33
  backgroundDescription: zod_1.z.string().nullable(),
28
34
  price: zod_1.z.number(),
29
35
  workspaceId: zod_1.z.string().uuid().nullable(),
@@ -9,6 +9,16 @@ export const MarketplaceCardJobAttachmentsSchema = z.object({
9
9
 
10
10
  export type MarketplaceCardJobAttachments = z.infer<typeof MarketplaceCardJobAttachmentsSchema>;
11
11
 
12
+ export const MarketplaceCardJobResultItemSchema = z.object({
13
+ uuid: z.string().uuid(),
14
+ url: z.string().url(),
15
+ });
16
+
17
+ export const MarketplaceCardJobResultSchema = z.array(MarketplaceCardJobResultItemSchema);
18
+
19
+ export type MarketplaceCardJobResultItem = z.infer<typeof MarketplaceCardJobResultItemSchema>;
20
+ export type MarketplaceCardJobResult = z.infer<typeof MarketplaceCardJobResultSchema>;
21
+
12
22
  export const MarketplaceCardJobSchema = z.object({
13
23
  uuid: z.string().uuid(),
14
24
  status: z.nativeEnum(JOB_STATUS),
@@ -25,6 +35,7 @@ export const MarketplaceCardJobSchema = z.object({
25
35
  stylePresetId: z.string().uuid().nullable(),
26
36
  customStylePrompt: z.string().nullable(),
27
37
  resultImages: z.array(z.string()),
38
+ result: MarketplaceCardJobResultSchema,
28
39
  backgroundDescription: z.string().nullable(),
29
40
  price: z.number(),
30
41
  workspaceId: z.string().uuid().nullable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.4-stage",
3
+ "version": "0.2.5-stage",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {