@purpleschool/gptbot 0.5.80 → 0.5.82

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.
@@ -4,6 +4,5 @@ exports.AI_MODEL_CONFIG_PARAM = void 0;
4
4
  var AI_MODEL_CONFIG_PARAM;
5
5
  (function (AI_MODEL_CONFIG_PARAM) {
6
6
  AI_MODEL_CONFIG_PARAM["IMAGE_SIZE"] = "image-size";
7
- AI_MODEL_CONFIG_PARAM["VOICE_TYPE"] = "voice-type";
8
7
  AI_MODEL_CONFIG_PARAM["WEB_SEARCH"] = "web-search";
9
8
  })(AI_MODEL_CONFIG_PARAM || (exports.AI_MODEL_CONFIG_PARAM = AI_MODEL_CONFIG_PARAM = {}));
@@ -14,7 +14,16 @@ exports.FREE_SUBSCRIPTION_DATA = {
14
14
  maxDiscountPercent: 0,
15
15
  period: 1,
16
16
  plan: enums_1.SUBSCRIPTION_PLAN.mock,
17
- icon: 'https://rugpt.hb.bizmrg.com/images/images/ac095d48-a66b-4862-82c7-eb120b5bd467.svg',
17
+ icons: {
18
+ light: {
19
+ svg: 'https://rugpt.hb.bizmrg.com/images/images/81b60ce5-b687-43ff-85dd-e4e47c8e81e9.svg',
20
+ png: 'https://rugpt.hb.bizmrg.com/images/images/e1bb1acd-a387-4596-8fd5-0159f692ff11.png',
21
+ },
22
+ dark: {
23
+ svg: 'https://rugpt.hb.bizmrg.com/images/images/ac095d48-a66b-4862-82c7-eb120b5bd467.svg',
24
+ png: 'https://rugpt.hb.bizmrg.com/images/images/e2208949-a73a-4137-b5bd-760599a70691.png',
25
+ },
26
+ },
18
27
  interval: '',
19
28
  createdAt: new Date(),
20
29
  updatedAt: new Date(),
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AiModelConfigSchema = exports.AiModelVoiceTypeParameter = exports.AiModelVoiceTypeOptionSchema = exports.AiModelImageSizeParameter = exports.AiModelImageSizeOptionSchema = exports.AiModelConfigParameterSchema = void 0;
3
+ exports.AiModelConfigSchema = exports.AiModelImageSizeParameter = exports.AiModelImageSizeOptionSchema = exports.AiModelConfigParameterSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const constants_1 = require("../constants");
6
6
  exports.AiModelConfigParameterSchema = zod_1.z.object({
7
7
  id: zod_1.z.string(),
8
8
  title: zod_1.z.string(),
9
9
  order: zod_1.z.number(),
10
- icon: zod_1.z.string().optional(),
11
10
  });
12
11
  // IMAGE SIZE
13
12
  exports.AiModelImageSizeOptionSchema = exports.AiModelConfigParameterSchema.extend({
13
+ icon: zod_1.z.string(),
14
14
  dimensions: zod_1.z.object({
15
15
  w: zod_1.z.number(),
16
16
  h: zod_1.z.number(),
@@ -20,29 +20,11 @@ exports.AiModelImageSizeParameter = zod_1.z.object({
20
20
  title: zod_1.z.string(),
21
21
  options: zod_1.z.array(exports.AiModelImageSizeOptionSchema),
22
22
  });
23
- // VOICE TYPE
24
- exports.AiModelVoiceTypeOptionSchema = exports.AiModelConfigParameterSchema.extend({
25
- title: zod_1.z.string(),
26
- previewUrl: zod_1.z.string(),
27
- languages: zod_1.z.array(zod_1.z.object({
28
- title: zod_1.z.string(),
29
- icon: zod_1.z.string(),
30
- })),
31
- description: zod_1.z.string(),
32
- tags: zod_1.z.array(zod_1.z.string()),
33
- order: zod_1.z.number(),
34
- voice_id: zod_1.z.string(),
35
- });
36
- exports.AiModelVoiceTypeParameter = zod_1.z.object({
37
- title: zod_1.z.string(),
38
- options: zod_1.z.array(exports.AiModelVoiceTypeOptionSchema),
39
- });
40
23
  // CONFIG
41
24
  exports.AiModelConfigSchema = zod_1.z.object({
42
25
  parameters: zod_1.z
43
26
  .object({
44
27
  [constants_1.AI_MODEL_CONFIG_PARAM.IMAGE_SIZE]: exports.AiModelImageSizeParameter.optional(),
45
- [constants_1.AI_MODEL_CONFIG_PARAM.VOICE_TYPE]: exports.AiModelVoiceTypeParameter.optional(),
46
28
  })
47
29
  .strict(),
48
30
  });
@@ -1,5 +1,4 @@
1
1
  export enum AI_MODEL_CONFIG_PARAM {
2
2
  IMAGE_SIZE = 'image-size',
3
- VOICE_TYPE = 'voice-type',
4
3
  WEB_SEARCH = 'web-search',
5
4
  }
@@ -17,7 +17,16 @@ export const FREE_SUBSCRIPTION_DATA = {
17
17
  maxDiscountPercent: 0,
18
18
  period: 1,
19
19
  plan: SUBSCRIPTION_PLAN.mock,
20
- icon: 'https://rugpt.hb.bizmrg.com/images/images/ac095d48-a66b-4862-82c7-eb120b5bd467.svg',
20
+ icons: {
21
+ light: {
22
+ svg: 'https://rugpt.hb.bizmrg.com/images/images/81b60ce5-b687-43ff-85dd-e4e47c8e81e9.svg',
23
+ png: 'https://rugpt.hb.bizmrg.com/images/images/e1bb1acd-a387-4596-8fd5-0159f692ff11.png',
24
+ },
25
+ dark: {
26
+ svg: 'https://rugpt.hb.bizmrg.com/images/images/ac095d48-a66b-4862-82c7-eb120b5bd467.svg',
27
+ png: 'https://rugpt.hb.bizmrg.com/images/images/e2208949-a73a-4137-b5bd-760599a70691.png',
28
+ },
29
+ },
21
30
  interval: '',
22
31
  createdAt: new Date(),
23
32
  updatedAt: new Date(),
@@ -5,12 +5,12 @@ export const AiModelConfigParameterSchema = z.object({
5
5
  id: z.string(),
6
6
  title: z.string(),
7
7
  order: z.number(),
8
- icon: z.string().optional(),
9
8
  });
10
9
 
11
10
  // IMAGE SIZE
12
11
 
13
12
  export const AiModelImageSizeOptionSchema = AiModelConfigParameterSchema.extend({
13
+ icon: z.string(),
14
14
  dimensions: z.object({
15
15
  w: z.number(),
16
16
  h: z.number(),
@@ -22,35 +22,12 @@ export const AiModelImageSizeParameter = z.object({
22
22
  options: z.array(AiModelImageSizeOptionSchema),
23
23
  });
24
24
 
25
- // VOICE TYPE
26
-
27
- export const AiModelVoiceTypeOptionSchema = AiModelConfigParameterSchema.extend({
28
- title: z.string(),
29
- previewUrl: z.string(),
30
- languages: z.array(
31
- z.object({
32
- title: z.string(),
33
- icon: z.string(),
34
- }),
35
- ),
36
- description: z.string(),
37
- tags: z.array(z.string()),
38
- order: z.number(),
39
- voice_id: z.string(),
40
- });
41
-
42
- export const AiModelVoiceTypeParameter = z.object({
43
- title: z.string(),
44
- options: z.array(AiModelVoiceTypeOptionSchema),
45
- });
46
-
47
25
  // CONFIG
48
26
 
49
27
  export const AiModelConfigSchema = z.object({
50
28
  parameters: z
51
29
  .object({
52
30
  [AI_MODEL_CONFIG_PARAM.IMAGE_SIZE]: AiModelImageSizeParameter.optional(),
53
- [AI_MODEL_CONFIG_PARAM.VOICE_TYPE]: AiModelVoiceTypeParameter.optional(),
54
31
  })
55
32
  .strict(),
56
33
  });
@@ -59,5 +36,3 @@ export type AiModelConfigParameter = z.infer<typeof AiModelConfigParameterSchema
59
36
  export type AiModelImageSizeOption = z.infer<typeof AiModelImageSizeOptionSchema>;
60
37
  export type AiModelImageSizeParameter = z.infer<typeof AiModelImageSizeParameter>;
61
38
  export type AiModelConfig = z.infer<typeof AiModelConfigSchema>;
62
- export type AiModelVoiceTypeOption = z.infer<typeof AiModelVoiceTypeOptionSchema>;
63
- export type AiModelVoiceTypeParameter = z.infer<typeof AiModelVoiceTypeParameter>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.5.80",
3
+ "version": "0.5.82",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",