@purpleschool/gptbot-tools 0.2.40 → 0.2.42

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.
@@ -5,4 +5,5 @@ var JOB_SCOPE;
5
5
  (function (JOB_SCOPE) {
6
6
  JOB_SCOPE["TOOL"] = "tool";
7
7
  JOB_SCOPE["CANVAS"] = "canvas";
8
+ JOB_SCOPE["AVATAR_STUDIO"] = "avatar_studio";
8
9
  })(JOB_SCOPE || (exports.JOB_SCOPE = JOB_SCOPE = {}));
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FindImageEditorJobsQuery = void 0;
4
4
  const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
5
6
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
7
  const models_1 = require("../models");
7
8
  const tools_1 = require("../../tools");
@@ -10,6 +11,7 @@ var FindImageEditorJobsQuery;
10
11
  FindImageEditorJobsQuery.RequestSchema = zod_1.z.object({
11
12
  userId: zod_1.z.string().uuid().optional(),
12
13
  unregisteredUserId: zod_1.z.string().uuid().optional(),
14
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
13
15
  title: zod_1.z.string().optional(),
14
16
  isFavorite: zod_1.z.coerce.boolean().optional(),
15
17
  createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
@@ -102,6 +102,7 @@ exports.VideoModelSchema = zod_1.z.object({
102
102
  pricePerSecond: zod_1.z.number(),
103
103
  order: zod_1.z.number(),
104
104
  isNew: zod_1.z.boolean(),
105
+ isHidden: zod_1.z.boolean(),
105
106
  status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
106
107
  icons: common_1.IconVariantsSchema,
107
108
  strategy: zod_1.z.nativeEnum(enums_1.VIDEO_GENERATION_STRATEGY),
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetVideoConfigQuery = void 0;
4
+ const zod_1 = require("zod");
4
5
  const common_1 = require("../../common");
5
6
  const models_1 = require("../models");
6
7
  var GetVideoConfigQuery;
7
8
  (function (GetVideoConfigQuery) {
8
- GetVideoConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetVideoConfigQuery.RequestSchema = common_1.LocaleRequestSchema.extend({
10
+ includeHidden: zod_1.z.boolean().optional(),
11
+ });
9
12
  GetVideoConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VideoConfigSchema);
10
13
  })(GetVideoConfigQuery || (exports.GetVideoConfigQuery = GetVideoConfigQuery = {}));
@@ -1,4 +1,5 @@
1
1
  export enum JOB_SCOPE {
2
2
  TOOL = 'tool',
3
3
  CANVAS = 'canvas',
4
+ AVATAR_STUDIO = 'avatar_studio',
4
5
  }
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
2
3
  import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
4
  import { ImageEditorJobSchema } from '../models';
4
5
  import { JOB_SORT, JOB_STATUS } from '../../tools';
@@ -7,6 +8,7 @@ export namespace FindImageEditorJobsQuery {
7
8
  export const RequestSchema = z.object({
8
9
  userId: z.string().uuid().optional(),
9
10
  unregisteredUserId: z.string().uuid().optional(),
11
+ scope: z.nativeEnum(JOB_SCOPE).optional().default(JOB_SCOPE.TOOL),
10
12
  title: z.string().optional(),
11
13
  isFavorite: z.coerce.boolean().optional(),
12
14
  createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.40",
3
+ "version": "0.2.42",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -120,6 +120,7 @@ export const VideoModelSchema = z.object({
120
120
  pricePerSecond: z.number(),
121
121
  order: z.number(),
122
122
  isNew: z.boolean(),
123
+ isHidden: z.boolean(),
123
124
  status: z.nativeEnum(TOOL_MODEL_STATUS),
124
125
  icons: IconVariantsSchema,
125
126
  strategy: z.nativeEnum(VIDEO_GENERATION_STRATEGY),
@@ -3,7 +3,9 @@ import { ICommandResponseSchema, LocaleRequestSchema } from '../../common';
3
3
  import { VideoConfigSchema } from '../models';
4
4
 
5
5
  export namespace GetVideoConfigQuery {
6
- export const RequestSchema = LocaleRequestSchema;
6
+ export const RequestSchema = LocaleRequestSchema.extend({
7
+ includeHidden: z.boolean().optional(),
8
+ });
7
9
  export type Request = z.infer<typeof RequestSchema>;
8
10
 
9
11
  export const ResponseSchema = ICommandResponseSchema(VideoConfigSchema);