@purpleschool/gptbot-tools 0.2.60-stage2 → 0.2.61

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.
Files changed (191) hide show
  1. package/build/ai-proxy/routes/ai-proxy.routes.d.ts +0 -1
  2. package/build/ai-proxy/routes/ai-proxy.routes.js +0 -1
  3. package/build/index.d.ts +3 -3
  4. package/build/index.js +3 -3
  5. package/build/{photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts → sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts} +1 -1
  6. package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +14 -0
  7. package/build/{photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts → sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts} +2 -2
  8. package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +14 -0
  9. package/build/{tts/commands/improve-tts-text.command.d.ts → sound-generation/commands/get-sound-generation-price.command.d.ts} +8 -6
  10. package/build/sound-generation/commands/get-sound-generation-price.command.js +17 -0
  11. package/build/sound-generation/commands/index.d.ts +8 -0
  12. package/build/sound-generation/commands/index.js +24 -0
  13. package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +84 -0
  14. package/build/sound-generation/commands/retry-sound-generation-job.command.js +17 -0
  15. package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +85 -0
  16. package/build/{photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js → sound-generation/commands/set-reaction-to-sound-generation-job.command.js} +7 -7
  17. package/build/sound-generation/commands/sound-generation.command.d.ts +94 -0
  18. package/build/sound-generation/commands/sound-generation.command.js +27 -0
  19. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +83 -0
  20. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +16 -0
  21. package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +83 -0
  22. package/build/sound-generation/commands/update-sound-generation-job-title.command.js +16 -0
  23. package/build/sound-generation/enums/index.d.ts +1 -0
  24. package/build/{photo-sessions/routes → sound-generation/enums}/index.js +1 -2
  25. package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +3 -0
  26. package/build/sound-generation/enums/sound-generation-strategy.enum.js +7 -0
  27. package/build/sound-generation/models/index.d.ts +5 -0
  28. package/build/{photo-sessions → sound-generation}/models/index.js +5 -4
  29. package/build/sound-generation/models/sound-generation-config.schema.d.ts +34 -0
  30. package/build/sound-generation/models/sound-generation-config.schema.js +8 -0
  31. package/build/sound-generation/models/sound-generation-job.schema.d.ts +38 -0
  32. package/build/sound-generation/models/sound-generation-job.schema.js +34 -0
  33. package/build/sound-generation/models/sound-generation-model.schema.d.ts +42 -0
  34. package/build/sound-generation/models/sound-generation-model.schema.js +28 -0
  35. package/build/sound-generation/models/sound-generation-params.schema.d.ts +8 -0
  36. package/build/sound-generation/models/sound-generation-params.schema.js +10 -0
  37. package/build/sound-generation/models/sound-generation-result.schema.d.ts +6 -0
  38. package/build/sound-generation/models/sound-generation-result.schema.js +8 -0
  39. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +82 -0
  40. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +15 -0
  41. package/build/{photo-sessions/queries/find-photo-sessions-jobs.query.d.ts → sound-generation/queries/find-sound-generation-jobs.query.d.ts} +33 -63
  42. package/build/{photo-sessions/queries/find-photo-sessions-jobs.query.js → sound-generation/queries/find-sound-generation-jobs.query.js} +17 -10
  43. package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +76 -0
  44. package/build/sound-generation/queries/get-sound-generation-config.query.js +10 -0
  45. package/build/sound-generation/queries/index.d.ts +3 -0
  46. package/build/{photo-sessions/commands/admin → sound-generation/queries}/index.js +3 -3
  47. package/build/sound-generation/routes/index.d.ts +1 -0
  48. package/build/{photo-sessions/enums → sound-generation/routes}/index.js +1 -2
  49. package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +13 -0
  50. package/build/sound-generation/routes/sound-generation.amqp.routes.js +16 -0
  51. package/build/tools/enums/tool-content-type.enum.d.ts +2 -2
  52. package/build/tools/enums/tool-content-type.enum.js +1 -1
  53. package/build/tools/enums/tool-type.enum.d.ts +2 -2
  54. package/build/tools/enums/tool-type.enum.js +1 -1
  55. package/build/tools/models/global-tools-config.schema.d.ts +25 -69
  56. package/build/tools/models/global-tools-config.schema.js +2 -2
  57. package/build/tools/models/tools-with-configs.schema.d.ts +88 -22
  58. package/build/tools/models/tools-with-configs.schema.js +5 -0
  59. package/build/tools/queries/get-global-tools-config.query.d.ts +46 -134
  60. package/build/tools/queries/get-tools-with-configs.query.d.ts +88 -22
  61. package/build/tts/commands/index.d.ts +0 -7
  62. package/build/tts/commands/index.js +0 -7
  63. package/build/tts/commands/retry-tts-job.command.d.ts +2 -29
  64. package/build/tts/commands/retry-tts-job.command.js +0 -2
  65. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
  66. package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
  67. package/build/tts/commands/tts.command.d.ts +3 -35
  68. package/build/tts/commands/tts.command.js +1 -4
  69. package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
  70. package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
  71. package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
  72. package/build/tts/commands/update-tts-job-title.command.js +0 -2
  73. package/build/tts/enums/index.d.ts +0 -7
  74. package/build/tts/enums/index.js +0 -7
  75. package/build/tts/models/index.d.ts +0 -5
  76. package/build/tts/models/index.js +0 -5
  77. package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
  78. package/build/tts/models/tts-config.schema.d.ts +0 -11
  79. package/build/tts/models/tts-config.schema.js +0 -5
  80. package/build/tts/models/tts-job.schema.d.ts +2 -34
  81. package/build/tts/models/tts-job.schema.js +2 -22
  82. package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
  83. package/build/tts/models/tts-model.schema.d.ts +0 -1
  84. package/build/tts/models/tts-model.schema.js +0 -1
  85. package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
  86. package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
  87. package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
  88. package/build/tts/queries/find-tts-jobs.query.js +0 -1
  89. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
  90. package/build/tts/queries/get-tts-config.query.d.ts +0 -22
  91. package/build/tts/queries/index.d.ts +0 -2
  92. package/build/tts/queries/index.js +0 -2
  93. package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
  94. package/build/tts/routes/tts.amqp.routes.js +0 -9
  95. package/package.json +1 -1
  96. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
  97. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
  98. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
  99. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
  100. package/build/photo-sessions/commands/admin/index.d.ts +0 -3
  101. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -55
  102. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -28
  103. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -15
  104. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
  105. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -46
  106. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -30
  107. package/build/photo-sessions/commands/index.d.ts +0 -10
  108. package/build/photo-sessions/commands/index.js +0 -26
  109. package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -147
  110. package/build/photo-sessions/commands/photo-sessions.command.js +0 -41
  111. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -142
  112. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -23
  113. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -115
  114. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -113
  115. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
  116. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -113
  117. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
  118. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -118
  119. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
  120. package/build/photo-sessions/enums/index.d.ts +0 -2
  121. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
  122. package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
  123. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
  124. package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
  125. package/build/photo-sessions/models/index.d.ts +0 -4
  126. package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
  127. package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
  128. package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -78
  129. package/build/photo-sessions/models/photo-session-job.schema.js +0 -46
  130. package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
  131. package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
  132. package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
  133. package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
  134. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
  135. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
  136. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
  137. package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
  138. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -110
  139. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -10
  140. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
  141. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
  142. package/build/photo-sessions/queries/index.d.ts +0 -5
  143. package/build/photo-sessions/queries/index.js +0 -21
  144. package/build/photo-sessions/routes/index.d.ts +0 -2
  145. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
  146. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
  147. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
  148. package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
  149. package/build/tts/commands/create-voice-clone.command.d.ts +0 -60
  150. package/build/tts/commands/create-voice-clone.command.js +0 -20
  151. package/build/tts/commands/create-voice-design.command.d.ts +0 -37
  152. package/build/tts/commands/create-voice-design.command.js +0 -19
  153. package/build/tts/commands/delete-voice.command.d.ts +0 -17
  154. package/build/tts/commands/delete-voice.command.js +0 -14
  155. package/build/tts/commands/download-tts-job.command.d.ts +0 -25
  156. package/build/tts/commands/download-tts-job.command.js +0 -19
  157. package/build/tts/commands/improve-tts-text.command.js +0 -16
  158. package/build/tts/commands/select-voice-design.command.d.ts +0 -57
  159. package/build/tts/commands/select-voice-design.command.js +0 -17
  160. package/build/tts/commands/update-voice.command.d.ts +0 -57
  161. package/build/tts/commands/update-voice.command.js +0 -17
  162. package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
  163. package/build/tts/enums/tts-download-format.enum.js +0 -9
  164. package/build/tts/enums/voice-category.enum.d.ts +0 -19
  165. package/build/tts/enums/voice-category.enum.js +0 -23
  166. package/build/tts/enums/voice-gender.enum.d.ts +0 -4
  167. package/build/tts/enums/voice-gender.enum.js +0 -8
  168. package/build/tts/enums/voice-source.enum.d.ts +0 -5
  169. package/build/tts/enums/voice-source.enum.js +0 -9
  170. package/build/tts/enums/voice-status.enum.d.ts +0 -5
  171. package/build/tts/enums/voice-status.enum.js +0 -9
  172. package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
  173. package/build/tts/enums/voice-tag-group.enum.js +0 -9
  174. package/build/tts/enums/voice-tag.enum.d.ts +0 -20
  175. package/build/tts/enums/voice-tag.enum.js +0 -24
  176. package/build/tts/models/voice-category.schema.d.ts +0 -7
  177. package/build/tts/models/voice-category.schema.js +0 -9
  178. package/build/tts/models/voice-design-draft.schema.d.ts +0 -12
  179. package/build/tts/models/voice-design-draft.schema.js +0 -12
  180. package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
  181. package/build/tts/models/voice-design-sample.schema.js +0 -8
  182. package/build/tts/models/voice-tag.schema.d.ts +0 -9
  183. package/build/tts/models/voice-tag.schema.js +0 -11
  184. package/build/tts/models/voice.schema.d.ts +0 -27
  185. package/build/tts/models/voice.schema.js +0 -29
  186. package/build/tts/queries/find-voice-by-id.query.d.ts +0 -57
  187. package/build/tts/queries/find-voice-by-id.query.js +0 -17
  188. package/build/tts/queries/find-voices.query.d.ts +0 -92
  189. package/build/tts/queries/find-voices.query.js +0 -25
  190. /package/build/{photo-sessions → sound-generation}/index.d.ts +0 -0
  191. /package/build/{photo-sessions → sound-generation}/index.js +0 -0
@@ -11,12 +11,9 @@ var TTSCommand;
11
11
  userId: zod_1.z.string().uuid().nullable().optional(),
12
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
13
  scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
14
- locale: common_1.LocaleSchema.optional(),
15
14
  modelId: zod_1.z.string(),
16
- voiceId: zod_1.z.string().uuid().optional(),
15
+ voiceId: zod_1.z.string(),
17
16
  userInput: zod_1.z.string(),
18
- isDialog: zod_1.z.boolean().optional().default(false),
19
- speakers: zod_1.z.array(tts_job_schema_1.TTSJobSpeakerSchema).optional().default([]),
20
17
  params: zod_1.z
21
18
  .object({
22
19
  speed: zod_1.z.number().optional(),
@@ -4,7 +4,6 @@ export declare namespace UpdateTTSJobFavoriteCommand {
4
4
  uuid: z.ZodString;
5
5
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
8
7
  isFavorite: z.ZodBoolean;
9
8
  }, z.core.$strip>;
10
9
  type Request = z.infer<typeof RequestSchema>;
@@ -20,22 +19,9 @@ export declare namespace UpdateTTSJobFavoriteCommand {
20
19
  status: import("../..").JOB_STATUS;
21
20
  error: string | null;
22
21
  modelId: string;
23
- voiceId: string | null;
24
- isDialog: boolean;
25
- speakers: {
26
- speaker: number;
27
- voiceId: string;
28
- }[];
29
- voices: {
30
- uuid: string;
31
- title: string;
32
- previewUrl: string;
33
- isDeleted: boolean;
34
- speaker: number | null;
35
- }[];
22
+ voiceId: string;
36
23
  price: number;
37
24
  duration: number;
38
- scope: import("../..").JOB_SCOPE;
39
25
  userId: string | null;
40
26
  unregisteredUserId: string | null;
41
27
  tokenReservationId?: string | null | undefined;
@@ -64,22 +50,9 @@ export declare namespace UpdateTTSJobFavoriteCommand {
64
50
  status: import("../..").JOB_STATUS;
65
51
  error: string | null;
66
52
  modelId: string;
67
- voiceId: string | null;
68
- isDialog: boolean;
69
- speakers: {
70
- speaker: number;
71
- voiceId: string;
72
- }[];
73
- voices: {
74
- uuid: string;
75
- title: string;
76
- previewUrl: string;
77
- isDeleted: boolean;
78
- speaker: number | null;
79
- }[];
53
+ voiceId: string;
80
54
  price: number;
81
55
  duration: number;
82
- scope: import("../..").JOB_SCOPE;
83
56
  userId: string | null;
84
57
  unregisteredUserId: string | null;
85
58
  tokenReservationId?: string | null | undefined;
@@ -4,14 +4,12 @@ exports.UpdateTTSJobFavoriteCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
6
  const tts_job_schema_1 = require("../models/tts-job.schema");
7
- const common_1 = require("../../common");
8
7
  var UpdateTTSJobFavoriteCommand;
9
8
  (function (UpdateTTSJobFavoriteCommand) {
10
9
  UpdateTTSJobFavoriteCommand.RequestSchema = zod_1.z.object({
11
10
  uuid: zod_1.z.string().uuid(),
12
11
  userId: zod_1.z.string().uuid().nullable().optional(),
13
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
- locale: common_1.LocaleSchema.optional(),
15
13
  isFavorite: zod_1.z.boolean(),
16
14
  });
17
15
  UpdateTTSJobFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(tts_job_schema_1.TTSJobSchema);
@@ -4,7 +4,6 @@ export declare namespace UpdateTTSJobTitleCommand {
4
4
  uuid: z.ZodString;
5
5
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
8
7
  title: z.ZodString;
9
8
  }, z.core.$strip>;
10
9
  type Request = z.infer<typeof RequestSchema>;
@@ -20,22 +19,9 @@ export declare namespace UpdateTTSJobTitleCommand {
20
19
  status: import("../..").JOB_STATUS;
21
20
  error: string | null;
22
21
  modelId: string;
23
- voiceId: string | null;
24
- isDialog: boolean;
25
- speakers: {
26
- speaker: number;
27
- voiceId: string;
28
- }[];
29
- voices: {
30
- uuid: string;
31
- title: string;
32
- previewUrl: string;
33
- isDeleted: boolean;
34
- speaker: number | null;
35
- }[];
22
+ voiceId: string;
36
23
  price: number;
37
24
  duration: number;
38
- scope: import("../..").JOB_SCOPE;
39
25
  userId: string | null;
40
26
  unregisteredUserId: string | null;
41
27
  tokenReservationId?: string | null | undefined;
@@ -64,22 +50,9 @@ export declare namespace UpdateTTSJobTitleCommand {
64
50
  status: import("../..").JOB_STATUS;
65
51
  error: string | null;
66
52
  modelId: string;
67
- voiceId: string | null;
68
- isDialog: boolean;
69
- speakers: {
70
- speaker: number;
71
- voiceId: string;
72
- }[];
73
- voices: {
74
- uuid: string;
75
- title: string;
76
- previewUrl: string;
77
- isDeleted: boolean;
78
- speaker: number | null;
79
- }[];
53
+ voiceId: string;
80
54
  price: number;
81
55
  duration: number;
82
- scope: import("../..").JOB_SCOPE;
83
56
  userId: string | null;
84
57
  unregisteredUserId: string | null;
85
58
  tokenReservationId?: string | null | undefined;
@@ -4,14 +4,12 @@ exports.UpdateTTSJobTitleCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
6
  const tts_job_schema_1 = require("../models/tts-job.schema");
7
- const common_1 = require("../../common");
8
7
  var UpdateTTSJobTitleCommand;
9
8
  (function (UpdateTTSJobTitleCommand) {
10
9
  UpdateTTSJobTitleCommand.RequestSchema = zod_1.z.object({
11
10
  uuid: zod_1.z.string().uuid(),
12
11
  userId: zod_1.z.string().uuid().nullable().optional(),
13
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
- locale: common_1.LocaleSchema.optional(),
15
13
  title: zod_1.z.string().min(1).max(40),
16
14
  });
17
15
  UpdateTTSJobTitleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(tts_job_schema_1.TTSJobSchema);
@@ -1,9 +1,2 @@
1
1
  export * from './tts-model-type.enum';
2
2
  export * from './tts-strategy.enum';
3
- export * from './voice-source.enum';
4
- export * from './voice-status.enum';
5
- export * from './voice-gender.enum';
6
- export * from './voice-category.enum';
7
- export * from './voice-tag.enum';
8
- export * from './voice-tag-group.enum';
9
- export * from './tts-download-format.enum';
@@ -16,10 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./tts-model-type.enum"), exports);
18
18
  __exportStar(require("./tts-strategy.enum"), exports);
19
- __exportStar(require("./voice-source.enum"), exports);
20
- __exportStar(require("./voice-status.enum"), exports);
21
- __exportStar(require("./voice-gender.enum"), exports);
22
- __exportStar(require("./voice-category.enum"), exports);
23
- __exportStar(require("./voice-tag.enum"), exports);
24
- __exportStar(require("./voice-tag-group.enum"), exports);
25
- __exportStar(require("./tts-download-format.enum"), exports);
@@ -3,8 +3,3 @@ export * from './tts-config-with-vendors.schema';
3
3
  export * from './tts-job.schema';
4
4
  export * from './tts-model.schema';
5
5
  export * from './tts-model-with-vendor.schema';
6
- export * from './voice.schema';
7
- export * from './voice-tag.schema';
8
- export * from './voice-category.schema';
9
- export * from './voice-design-sample.schema';
10
- export * from './voice-design-draft.schema';
@@ -19,8 +19,3 @@ __exportStar(require("./tts-config-with-vendors.schema"), exports);
19
19
  __exportStar(require("./tts-job.schema"), exports);
20
20
  __exportStar(require("./tts-model.schema"), exports);
21
21
  __exportStar(require("./tts-model-with-vendor.schema"), exports);
22
- __exportStar(require("./voice.schema"), exports);
23
- __exportStar(require("./voice-tag.schema"), exports);
24
- __exportStar(require("./voice-category.schema"), exports);
25
- __exportStar(require("./voice-design-sample.schema"), exports);
26
- __exportStar(require("./voice-design-draft.schema"), exports);
@@ -38,7 +38,6 @@ export declare const TTSConfigWithVendorsSchema: z.ZodObject<{
38
38
  }, z.core.$strip>;
39
39
  strategy: z.ZodOptional<z.ZodString>;
40
40
  maxInputLength: z.ZodNumber;
41
- maxSpeakers: z.ZodNumber;
42
41
  voices: z.ZodArray<z.ZodObject<{
43
42
  id: z.ZodString;
44
43
  externalId: z.ZodString;
@@ -21,7 +21,6 @@ export declare const TTSConfigSchema: z.ZodObject<{
21
21
  }, z.core.$strip>;
22
22
  strategy: z.ZodOptional<z.ZodString>;
23
23
  maxInputLength: z.ZodNumber;
24
- maxSpeakers: z.ZodNumber;
25
24
  voices: z.ZodArray<z.ZodObject<{
26
25
  id: z.ZodString;
27
26
  externalId: z.ZodString;
@@ -122,15 +121,5 @@ export declare const TTSConfigSchema: z.ZodObject<{
122
121
  createdAt: z.ZodDate;
123
122
  updatedAt: z.ZodDate;
124
123
  }, z.core.$strip>>;
125
- tags: z.ZodArray<z.ZodObject<{
126
- id: z.ZodEnum<typeof import("..").VOICE_TAG>;
127
- group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
128
- label: z.ZodString;
129
- }, z.core.$strip>>;
130
- categories: z.ZodArray<z.ZodObject<{
131
- id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
132
- label: z.ZodString;
133
- }, z.core.$strip>>;
134
- speakerMarkerLabel: z.ZodString;
135
124
  }, z.core.$strip>;
136
125
  export type TTSConfig = z.infer<typeof TTSConfigSchema>;
@@ -3,11 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TTSConfigSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const tts_model_schema_1 = require("./tts-model.schema");
6
- const voice_tag_schema_1 = require("./voice-tag.schema");
7
- const voice_category_schema_1 = require("./voice-category.schema");
8
6
  exports.TTSConfigSchema = zod_1.z.object({
9
7
  models: zod_1.z.array(tts_model_schema_1.TTSModelSchema),
10
- tags: zod_1.z.array(voice_tag_schema_1.VoiceTagSchema),
11
- categories: zod_1.z.array(voice_category_schema_1.VoiceCategorySchema),
12
- speakerMarkerLabel: zod_1.z.string(),
13
8
  });
@@ -1,7 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { JOB_STATUS } from '../../tools';
3
- import { JOB_SCOPE, USER_REACTION } from '../../common';
4
- import { TTS_DOWNLOAD_FORMAT } from '../enums/tts-download-format.enum';
3
+ import { USER_REACTION } from '../../common';
5
4
  export declare const TTSJobParamsSchema: z.ZodObject<{
6
5
  speed: z.ZodOptional<z.ZodNumber>;
7
6
  similarity: z.ZodOptional<z.ZodNumber>;
@@ -14,24 +13,6 @@ export declare const TTSReferenceSchema: z.ZodObject<{
14
13
  text: z.ZodString;
15
14
  }, z.core.$strip>;
16
15
  export type TTSReference = z.infer<typeof TTSReferenceSchema>;
17
- export declare const TTSJobSpeakerSchema: z.ZodObject<{
18
- speaker: z.ZodNumber;
19
- voiceId: z.ZodString;
20
- }, z.core.$strip>;
21
- export type TTSJobSpeaker = z.infer<typeof TTSJobSpeakerSchema>;
22
- export declare const TTSJobVoiceSchema: z.ZodObject<{
23
- uuid: z.ZodString;
24
- title: z.ZodString;
25
- previewUrl: z.ZodString;
26
- isDeleted: z.ZodBoolean;
27
- speaker: z.ZodNullable<z.ZodNumber>;
28
- }, z.core.$strip>;
29
- export type TTSJobVoice = z.infer<typeof TTSJobVoiceSchema>;
30
- export declare const TTSJobDownloadSchema: z.ZodObject<{
31
- format: z.ZodEnum<typeof TTS_DOWNLOAD_FORMAT>;
32
- url: z.ZodString;
33
- }, z.core.$strip>;
34
- export type TTSJobDownload = z.infer<typeof TTSJobDownloadSchema>;
35
16
  export declare const TTSJobSchema: z.ZodObject<{
36
17
  uuid: z.ZodString;
37
18
  userInput: z.ZodString;
@@ -42,22 +23,9 @@ export declare const TTSJobSchema: z.ZodObject<{
42
23
  status: z.ZodEnum<typeof JOB_STATUS>;
43
24
  error: z.ZodNullable<z.ZodString>;
44
25
  modelId: z.ZodString;
45
- voiceId: z.ZodNullable<z.ZodString>;
46
- isDialog: z.ZodBoolean;
47
- speakers: z.ZodArray<z.ZodObject<{
48
- speaker: z.ZodNumber;
49
- voiceId: z.ZodString;
50
- }, z.core.$strip>>;
51
- voices: z.ZodArray<z.ZodObject<{
52
- uuid: z.ZodString;
53
- title: z.ZodString;
54
- previewUrl: z.ZodString;
55
- isDeleted: z.ZodBoolean;
56
- speaker: z.ZodNullable<z.ZodNumber>;
57
- }, z.core.$strip>>;
26
+ voiceId: z.ZodString;
58
27
  price: z.ZodNumber;
59
28
  duration: z.ZodNumber;
60
- scope: z.ZodEnum<typeof JOB_SCOPE>;
61
29
  userId: z.ZodNullable<z.ZodString>;
62
30
  unregisteredUserId: z.ZodNullable<z.ZodString>;
63
31
  tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TTSJobSchema = exports.TTSJobDownloadSchema = exports.TTSJobVoiceSchema = exports.TTSJobSpeakerSchema = exports.TTSReferenceSchema = exports.TTSJobParamsSchema = void 0;
3
+ exports.TTSJobSchema = exports.TTSReferenceSchema = exports.TTSJobParamsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const tools_1 = require("../../tools");
6
6
  const common_1 = require("../../common");
7
- const tts_download_format_enum_1 = require("../enums/tts-download-format.enum");
8
7
  exports.TTSJobParamsSchema = zod_1.z.object({
9
8
  speed: zod_1.z.number().optional(),
10
9
  similarity: zod_1.z.number().optional(),
@@ -15,21 +14,6 @@ exports.TTSReferenceSchema = zod_1.z.object({
15
14
  audioUrl: zod_1.z.string().url(),
16
15
  text: zod_1.z.string(),
17
16
  });
18
- exports.TTSJobSpeakerSchema = zod_1.z.object({
19
- speaker: zod_1.z.number().int().positive(),
20
- voiceId: zod_1.z.string().uuid(),
21
- });
22
- exports.TTSJobVoiceSchema = zod_1.z.object({
23
- uuid: zod_1.z.string().uuid(),
24
- title: zod_1.z.string(),
25
- previewUrl: zod_1.z.string(),
26
- isDeleted: zod_1.z.boolean(),
27
- speaker: zod_1.z.number().int().positive().nullable(),
28
- });
29
- exports.TTSJobDownloadSchema = zod_1.z.object({
30
- format: zod_1.z.nativeEnum(tts_download_format_enum_1.TTS_DOWNLOAD_FORMAT),
31
- url: zod_1.z.string(),
32
- });
33
17
  exports.TTSJobSchema = zod_1.z.object({
34
18
  uuid: zod_1.z.string(),
35
19
  userInput: zod_1.z.string(),
@@ -40,13 +24,9 @@ exports.TTSJobSchema = zod_1.z.object({
40
24
  status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
41
25
  error: zod_1.z.string().nullable(),
42
26
  modelId: zod_1.z.string(),
43
- voiceId: zod_1.z.string().nullable(),
44
- isDialog: zod_1.z.boolean(),
45
- speakers: zod_1.z.array(exports.TTSJobSpeakerSchema),
46
- voices: zod_1.z.array(exports.TTSJobVoiceSchema),
27
+ voiceId: zod_1.z.string(),
47
28
  price: zod_1.z.number(),
48
29
  duration: zod_1.z.number(),
49
- scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE),
50
30
  userId: zod_1.z.string().nullable(),
51
31
  unregisteredUserId: zod_1.z.string().nullable(),
52
32
  tokenReservationId: zod_1.z.string().nullable().optional(),
@@ -20,7 +20,6 @@ export declare const TTSModelWithVendorSchema: z.ZodObject<{
20
20
  }, z.core.$strip>;
21
21
  strategy: z.ZodOptional<z.ZodString>;
22
22
  maxInputLength: z.ZodNumber;
23
- maxSpeakers: z.ZodNumber;
24
23
  voices: z.ZodArray<z.ZodObject<{
25
24
  id: z.ZodString;
26
25
  externalId: z.ZodString;
@@ -141,7 +141,6 @@ export declare const TTSModelSchema: z.ZodObject<{
141
141
  }, z.core.$strip>;
142
142
  strategy: z.ZodOptional<z.ZodString>;
143
143
  maxInputLength: z.ZodNumber;
144
- maxSpeakers: z.ZodNumber;
145
144
  voices: z.ZodArray<z.ZodObject<{
146
145
  id: z.ZodString;
147
146
  externalId: z.ZodString;
@@ -49,7 +49,6 @@ exports.TTSModelSchema = zod_1.z.object({
49
49
  icons: common_1.IconVariantsSchema,
50
50
  strategy: zod_1.z.string().optional(),
51
51
  maxInputLength: zod_1.z.number(),
52
- maxSpeakers: zod_1.z.number(),
53
52
  voices: zod_1.z.array(exports.TTSVoiceSchema),
54
53
  params: exports.TTSModelParams,
55
54
  createdAt: zod_1.z.date(),
@@ -4,7 +4,6 @@ export declare namespace FindTTSJobByIdQuery {
4
4
  uuid: z.ZodString;
5
5
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
8
7
  }, z.core.$strip>;
9
8
  type Request = z.infer<typeof RequestSchema>;
10
9
  const ResponseSchema: z.ZodObject<{
@@ -19,22 +18,9 @@ export declare namespace FindTTSJobByIdQuery {
19
18
  status: import("../..").JOB_STATUS;
20
19
  error: string | null;
21
20
  modelId: string;
22
- voiceId: string | null;
23
- isDialog: boolean;
24
- speakers: {
25
- speaker: number;
26
- voiceId: string;
27
- }[];
28
- voices: {
29
- uuid: string;
30
- title: string;
31
- previewUrl: string;
32
- isDeleted: boolean;
33
- speaker: number | null;
34
- }[];
21
+ voiceId: string;
35
22
  price: number;
36
23
  duration: number;
37
- scope: import("../..").JOB_SCOPE;
38
24
  userId: string | null;
39
25
  unregisteredUserId: string | null;
40
26
  tokenReservationId?: string | null | undefined;
@@ -63,22 +49,9 @@ export declare namespace FindTTSJobByIdQuery {
63
49
  status: import("../..").JOB_STATUS;
64
50
  error: string | null;
65
51
  modelId: string;
66
- voiceId: string | null;
67
- isDialog: boolean;
68
- speakers: {
69
- speaker: number;
70
- voiceId: string;
71
- }[];
72
- voices: {
73
- uuid: string;
74
- title: string;
75
- previewUrl: string;
76
- isDeleted: boolean;
77
- speaker: number | null;
78
- }[];
52
+ voiceId: string;
79
53
  price: number;
80
54
  duration: number;
81
- scope: import("../..").JOB_SCOPE;
82
55
  userId: string | null;
83
56
  unregisteredUserId: string | null;
84
57
  tokenReservationId?: string | null | undefined;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FindTTSJobByIdQuery = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
- const common_1 = require("../../common");
7
6
  const tts_job_schema_1 = require("../models/tts-job.schema");
8
7
  var FindTTSJobByIdQuery;
9
8
  (function (FindTTSJobByIdQuery) {
@@ -11,7 +10,6 @@ var FindTTSJobByIdQuery;
11
10
  uuid: zod_1.z.string().uuid(),
12
11
  userId: zod_1.z.string().uuid().nullable().optional(),
13
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
- locale: common_1.LocaleSchema.optional(),
15
13
  });
16
14
  FindTTSJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(tts_job_schema_1.TTSJobSchema);
17
15
  })(FindTTSJobByIdQuery || (exports.FindTTSJobByIdQuery = FindTTSJobByIdQuery = {}));
@@ -6,7 +6,6 @@ export declare namespace FindTTSJobsQuery {
6
6
  userId: z.ZodOptional<z.ZodString>;
7
7
  unregisteredUserId: z.ZodOptional<z.ZodString>;
8
8
  scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
9
- locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
10
9
  title: z.ZodOptional<z.ZodString>;
11
10
  isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
12
11
  createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
@@ -28,22 +27,9 @@ export declare namespace FindTTSJobsQuery {
28
27
  status: JOB_STATUS;
29
28
  error: string | null;
30
29
  modelId: string;
31
- voiceId: string | null;
32
- isDialog: boolean;
33
- speakers: {
34
- speaker: number;
35
- voiceId: string;
36
- }[];
37
- voices: {
38
- uuid: string;
39
- title: string;
40
- previewUrl: string;
41
- isDeleted: boolean;
42
- speaker: number | null;
43
- }[];
30
+ voiceId: string;
44
31
  price: number;
45
32
  duration: number;
46
- scope: JOB_SCOPE;
47
33
  userId: string | null;
48
34
  unregisteredUserId: string | null;
49
35
  tokenReservationId?: string | null | undefined;
@@ -77,22 +63,9 @@ export declare namespace FindTTSJobsQuery {
77
63
  status: JOB_STATUS;
78
64
  error: string | null;
79
65
  modelId: string;
80
- voiceId: string | null;
81
- isDialog: boolean;
82
- speakers: {
83
- speaker: number;
84
- voiceId: string;
85
- }[];
86
- voices: {
87
- uuid: string;
88
- title: string;
89
- previewUrl: string;
90
- isDeleted: boolean;
91
- speaker: number | null;
92
- }[];
66
+ voiceId: string;
93
67
  price: number;
94
68
  duration: number;
95
- scope: JOB_SCOPE;
96
69
  userId: string | null;
97
70
  unregisteredUserId: string | null;
98
71
  tokenReservationId?: string | null | undefined;
@@ -13,7 +13,6 @@ var FindTTSJobsQuery;
13
13
  userId: zod_1.z.string().uuid().optional(),
14
14
  unregisteredUserId: zod_1.z.string().uuid().optional(),
15
15
  scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
16
- locale: common_1.LocaleSchema.optional(),
17
16
  title: zod_1.z.string().optional(),
18
17
  isFavorite: zod_1.z.coerce.boolean().optional(),
19
18
  createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
@@ -45,7 +45,6 @@ export declare namespace GetTTSConfigWithVendorsQuery {
45
45
  };
46
46
  strategy?: string | undefined;
47
47
  maxInputLength: number;
48
- maxSpeakers: number;
49
48
  voices: {
50
49
  id: string;
51
50
  externalId: string;
@@ -186,7 +185,6 @@ export declare namespace GetTTSConfigWithVendorsQuery {
186
185
  };
187
186
  strategy?: string | undefined;
188
187
  maxInputLength: number;
189
- maxSpeakers: number;
190
188
  voices: {
191
189
  id: string;
192
190
  externalId: string;
@@ -29,7 +29,6 @@ export declare namespace GetTTSConfigQuery {
29
29
  };
30
30
  strategy?: string | undefined;
31
31
  maxInputLength: number;
32
- maxSpeakers: number;
33
32
  voices: {
34
33
  id: string;
35
34
  externalId: string;
@@ -130,16 +129,6 @@ export declare namespace GetTTSConfigQuery {
130
129
  createdAt: Date;
131
130
  updatedAt: Date;
132
131
  }[];
133
- tags: {
134
- id: import("..").VOICE_TAG;
135
- group: import("..").VOICE_TAG_GROUP;
136
- label: string;
137
- }[];
138
- categories: {
139
- id: import("..").VOICE_CATEGORY;
140
- label: string;
141
- }[];
142
- speakerMarkerLabel: string;
143
132
  }, unknown, z.core.$ZodTypeInternals<{
144
133
  models: {
145
134
  uuid: string;
@@ -162,7 +151,6 @@ export declare namespace GetTTSConfigQuery {
162
151
  };
163
152
  strategy?: string | undefined;
164
153
  maxInputLength: number;
165
- maxSpeakers: number;
166
154
  voices: {
167
155
  id: string;
168
156
  externalId: string;
@@ -263,16 +251,6 @@ export declare namespace GetTTSConfigQuery {
263
251
  createdAt: Date;
264
252
  updatedAt: Date;
265
253
  }[];
266
- tags: {
267
- id: import("..").VOICE_TAG;
268
- group: import("..").VOICE_TAG_GROUP;
269
- label: string;
270
- }[];
271
- categories: {
272
- id: import("..").VOICE_CATEGORY;
273
- label: string;
274
- }[];
275
- speakerMarkerLabel: string;
276
254
  }, unknown>>>;
277
255
  code: z.ZodOptional<z.ZodString>;
278
256
  message: z.ZodOptional<z.ZodString>;
@@ -2,5 +2,3 @@ export * from './find-tts-job-by-id.query';
2
2
  export * from './find-tts-jobs.query';
3
3
  export * from './get-tts-config.query';
4
4
  export * from './get-tts-config-with-vendors.query';
5
- export * from './find-voices.query';
6
- export * from './find-voice-by-id.query';
@@ -18,5 +18,3 @@ __exportStar(require("./find-tts-job-by-id.query"), exports);
18
18
  __exportStar(require("./find-tts-jobs.query"), exports);
19
19
  __exportStar(require("./get-tts-config.query"), exports);
20
20
  __exportStar(require("./get-tts-config-with-vendors.query"), exports);
21
- __exportStar(require("./find-voices.query"), exports);
22
- __exportStar(require("./find-voice-by-id.query"), exports);
@@ -11,13 +11,4 @@ export declare const TTS_AMQP_ROUTES: {
11
11
  readonly SOFT_DELETE: 'tools.tts.jobs.soft-delete.rpc';
12
12
  readonly SOFT_DELETE_ALL: 'tools.tts.jobs.soft-delete-all.rpc';
13
13
  readonly RETRY: 'tools.tts.jobs.retry.rpc';
14
- readonly IMPROVE_TEXT: 'tools.tts.improve-text.rpc';
15
- readonly LIST_VOICES: 'tools.tts.voices.list.rpc';
16
- readonly GET_VOICE: 'tools.tts.voices.get.rpc';
17
- readonly CREATE_CLONE: 'tools.tts.voices.clone.rpc';
18
- readonly CREATE_DESIGN: 'tools.tts.voices.design.rpc';
19
- readonly SELECT_DESIGN: 'tools.tts.voices.design-select.rpc';
20
- readonly UPDATE_VOICE: 'tools.tts.voices.update.rpc';
21
- readonly DELETE_VOICE: 'tools.tts.voices.delete.rpc';
22
- readonly DOWNLOAD: 'tools.tts.jobs.download.rpc';
23
14
  };
@@ -14,13 +14,4 @@ exports.TTS_AMQP_ROUTES = {
14
14
  SOFT_DELETE: 'tools.tts.jobs.soft-delete.rpc',
15
15
  SOFT_DELETE_ALL: 'tools.tts.jobs.soft-delete-all.rpc',
16
16
  RETRY: 'tools.tts.jobs.retry.rpc',
17
- IMPROVE_TEXT: 'tools.tts.improve-text.rpc',
18
- LIST_VOICES: 'tools.tts.voices.list.rpc',
19
- GET_VOICE: 'tools.tts.voices.get.rpc',
20
- CREATE_CLONE: 'tools.tts.voices.clone.rpc',
21
- CREATE_DESIGN: 'tools.tts.voices.design.rpc',
22
- SELECT_DESIGN: 'tools.tts.voices.design-select.rpc',
23
- UPDATE_VOICE: 'tools.tts.voices.update.rpc',
24
- DELETE_VOICE: 'tools.tts.voices.delete.rpc',
25
- DOWNLOAD: 'tools.tts.jobs.download.rpc',
26
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.60-stage2",
3
+ "version": "0.2.61",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [