@purpleschool/gptbot-tools 0.2.61 → 0.2.62

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.
@@ -6,6 +6,14 @@ export declare namespace RetrySoundGenerationJobCommand {
6
6
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  tokenReservationId: z.ZodString;
8
8
  precalculatedPrice: z.ZodNumber;
9
+ prompt: z.ZodOptional<z.ZodString>;
10
+ modelId: z.ZodOptional<z.ZodString>;
11
+ params: z.ZodOptional<z.ZodObject<{
12
+ durationInSeconds: z.ZodOptional<z.ZodNumber>;
13
+ variations: z.ZodDefault<z.ZodNumber>;
14
+ loop: z.ZodDefault<z.ZodBoolean>;
15
+ promptInfluence: z.ZodDefault<z.ZodNumber>;
16
+ }, z.core.$strip>>;
9
17
  }, z.core.$strip>;
10
18
  type Request = z.infer<typeof RequestSchema>;
11
19
  const ResponseSchema: z.ZodObject<{
@@ -26,6 +34,7 @@ export declare namespace RetrySoundGenerationJobCommand {
26
34
  promptInfluence: number;
27
35
  };
28
36
  results: {
37
+ uuid: string;
29
38
  audioUrl: string;
30
39
  duration: number;
31
40
  }[];
@@ -59,6 +68,7 @@ export declare namespace RetrySoundGenerationJobCommand {
59
68
  promptInfluence: number;
60
69
  };
61
70
  results: {
71
+ uuid: string;
62
72
  audioUrl: string;
63
73
  duration: number;
64
74
  }[];
@@ -12,6 +12,9 @@ var RetrySoundGenerationJobCommand;
12
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
13
  tokenReservationId: zod_1.z.string().uuid(),
14
14
  precalculatedPrice: zod_1.z.number().positive(),
15
+ prompt: zod_1.z.string().optional(),
16
+ modelId: zod_1.z.string().uuid().optional(),
17
+ params: models_1.SoundGenerationParamsSchema.optional(),
15
18
  });
16
19
  RetrySoundGenerationJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.SoundGenerationJobSchema);
17
20
  })(RetrySoundGenerationJobCommand || (exports.RetrySoundGenerationJobCommand = RetrySoundGenerationJobCommand = {}));
@@ -27,6 +27,7 @@ export declare namespace SetReactionToSoundGenerationJobCommand {
27
27
  promptInfluence: number;
28
28
  };
29
29
  results: {
30
+ uuid: string;
30
31
  audioUrl: string;
31
32
  duration: number;
32
33
  }[];
@@ -60,6 +61,7 @@ export declare namespace SetReactionToSoundGenerationJobCommand {
60
61
  promptInfluence: number;
61
62
  };
62
63
  results: {
64
+ uuid: string;
63
65
  audioUrl: string;
64
66
  duration: number;
65
67
  }[];
@@ -36,6 +36,7 @@ export declare namespace SoundGenerationCommand {
36
36
  promptInfluence: number;
37
37
  };
38
38
  results: {
39
+ uuid: string;
39
40
  audioUrl: string;
40
41
  duration: number;
41
42
  }[];
@@ -69,6 +70,7 @@ export declare namespace SoundGenerationCommand {
69
70
  promptInfluence: number;
70
71
  };
71
72
  results: {
73
+ uuid: string;
72
74
  audioUrl: string;
73
75
  duration: number;
74
76
  }[];
@@ -25,6 +25,7 @@ export declare namespace UpdateSoundGenerationJobFavoriteCommand {
25
25
  promptInfluence: number;
26
26
  };
27
27
  results: {
28
+ uuid: string;
28
29
  audioUrl: string;
29
30
  duration: number;
30
31
  }[];
@@ -58,6 +59,7 @@ export declare namespace UpdateSoundGenerationJobFavoriteCommand {
58
59
  promptInfluence: number;
59
60
  };
60
61
  results: {
62
+ uuid: string;
61
63
  audioUrl: string;
62
64
  duration: number;
63
65
  }[];
@@ -25,6 +25,7 @@ export declare namespace UpdateSoundGenerationJobTitleCommand {
25
25
  promptInfluence: number;
26
26
  };
27
27
  results: {
28
+ uuid: string;
28
29
  audioUrl: string;
29
30
  duration: number;
30
31
  }[];
@@ -58,6 +59,7 @@ export declare namespace UpdateSoundGenerationJobTitleCommand {
58
59
  promptInfluence: number;
59
60
  };
60
61
  results: {
62
+ uuid: string;
61
63
  audioUrl: string;
62
64
  duration: number;
63
65
  }[];
@@ -17,6 +17,7 @@ export declare const SoundGenerationJobSchema: z.ZodObject<{
17
17
  promptInfluence: z.ZodDefault<z.ZodNumber>;
18
18
  }, z.core.$strip>;
19
19
  results: z.ZodArray<z.ZodObject<{
20
+ uuid: z.ZodString;
20
21
  audioUrl: z.ZodString;
21
22
  duration: z.ZodNumber;
22
23
  }, z.core.$strip>>;
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const SoundGenerationResultSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
3
4
  audioUrl: z.ZodString;
4
5
  duration: z.ZodNumber;
5
6
  }, z.core.$strip>;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SoundGenerationResultSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.SoundGenerationResultSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string().uuid(),
6
7
  audioUrl: zod_1.z.string().url(),
7
8
  duration: zod_1.z.number().nonnegative(),
8
9
  });
@@ -24,6 +24,7 @@ export declare namespace FindSoundGenerationJobByIdQuery {
24
24
  promptInfluence: number;
25
25
  };
26
26
  results: {
27
+ uuid: string;
27
28
  audioUrl: string;
28
29
  duration: number;
29
30
  }[];
@@ -57,6 +58,7 @@ export declare namespace FindSoundGenerationJobByIdQuery {
57
58
  promptInfluence: number;
58
59
  };
59
60
  results: {
61
+ uuid: string;
60
62
  audioUrl: string;
61
63
  duration: number;
62
64
  }[];
@@ -10,7 +10,7 @@ export declare namespace FindSoundGenerationJobsQuery {
10
10
  isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
11
11
  createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
12
12
  status: z.ZodOptional<z.ZodEnum<typeof JOB_STATUS>>;
13
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
13
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
14
14
  offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
15
15
  }, z.core.$strip>;
16
16
  type Request = z.infer<typeof RequestSchema>;
@@ -33,6 +33,7 @@ export declare namespace FindSoundGenerationJobsQuery {
33
33
  promptInfluence: number;
34
34
  };
35
35
  results: {
36
+ uuid: string;
36
37
  audioUrl: string;
37
38
  duration: number;
38
39
  }[];
@@ -71,6 +72,7 @@ export declare namespace FindSoundGenerationJobsQuery {
71
72
  promptInfluence: number;
72
73
  };
73
74
  results: {
75
+ uuid: string;
74
76
  audioUrl: string;
75
77
  duration: number;
76
78
  }[];
@@ -17,7 +17,7 @@ var FindSoundGenerationJobsQuery;
17
17
  isFavorite: zod_1.z.coerce.boolean().optional(),
18
18
  createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
19
19
  status: zod_1.z.nativeEnum(tools_1.JOB_STATUS).optional(),
20
- limit: zod_1.z.coerce.number().int().min(1).optional(),
20
+ limit: zod_1.z.coerce.number().int().min(1).max(100).default(20),
21
21
  offset: zod_1.z.coerce.number().int().min(0).default(0).optional(),
22
22
  })
23
23
  .refine((data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.61",
3
+ "version": "0.2.62",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [