@purpleschool/gptbot-tools 0.2.65 → 0.2.66-stage2

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 (175) hide show
  1. package/build/ai-proxy/routes/ai-proxy.routes.d.ts +1 -0
  2. package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
  3. package/build/image-generation/enums/image-generation-model-strategy.enum.d.ts +1 -2
  4. package/build/image-generation/enums/image-generation-model-strategy.enum.js +0 -2
  5. package/build/index.d.ts +3 -0
  6. package/build/index.js +3 -0
  7. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
  8. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
  9. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
  10. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
  11. package/build/photo-sessions/commands/admin/index.d.ts +3 -0
  12. package/build/photo-sessions/commands/admin/index.js +19 -0
  13. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
  14. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
  15. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
  16. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
  17. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
  18. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
  19. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +85 -0
  20. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +29 -0
  21. package/build/photo-sessions/commands/index.d.ts +10 -0
  22. package/build/photo-sessions/commands/index.js +26 -0
  23. package/build/photo-sessions/commands/photo-sessions.command.d.ts +305 -0
  24. package/build/photo-sessions/commands/photo-sessions.command.js +38 -0
  25. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +266 -0
  26. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +20 -0
  27. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +203 -0
  28. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
  29. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +201 -0
  30. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
  31. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +239 -0
  32. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
  33. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +206 -0
  34. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
  35. package/build/photo-sessions/enums/index.d.ts +3 -0
  36. package/build/photo-sessions/enums/index.js +19 -0
  37. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +7 -0
  38. package/build/photo-sessions/enums/photo-session-group-status.enum.js +11 -0
  39. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  40. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  41. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  42. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  43. package/build/photo-sessions/index.d.ts +5 -0
  44. package/build/photo-sessions/index.js +21 -0
  45. package/build/photo-sessions/models/index.d.ts +5 -0
  46. package/build/photo-sessions/models/index.js +21 -0
  47. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  48. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  49. package/build/photo-sessions/models/photo-session-group.schema.d.ts +116 -0
  50. package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
  51. package/build/photo-sessions/models/photo-session-job.schema.d.ts +169 -0
  52. package/build/photo-sessions/models/photo-session-job.schema.js +51 -0
  53. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  54. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  55. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  56. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  57. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  58. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  59. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  60. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  61. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +238 -0
  62. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
  63. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +257 -0
  64. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
  65. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  66. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  67. package/build/photo-sessions/queries/index.d.ts +5 -0
  68. package/build/photo-sessions/queries/index.js +21 -0
  69. package/build/photo-sessions/routes/index.d.ts +2 -0
  70. package/build/photo-sessions/routes/index.js +18 -0
  71. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  72. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  73. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  74. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  75. package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
  76. package/build/tools/enums/tool-content-type.enum.js +1 -0
  77. package/build/tools/enums/tool-group.enum.d.ts +1 -1
  78. package/build/tools/enums/tool-group.enum.js +1 -1
  79. package/build/tools/enums/tool-type.enum.d.ts +1 -0
  80. package/build/tools/enums/tool-type.enum.js +1 -0
  81. package/build/tools/events/tool-job-complete.event.d.ts +1 -0
  82. package/build/tools/events/tool-job-failed.event.d.ts +1 -0
  83. package/build/tools/models/global-tools-config.schema.d.ts +76 -0
  84. package/build/tools/models/global-tools-config.schema.js +2 -0
  85. package/build/tools/models/tool-group.schema.d.ts +0 -1
  86. package/build/tools/models/tool-group.schema.js +0 -1
  87. package/build/tools/models/tool-job.schema.d.ts +1 -0
  88. package/build/tools/models/tool-job.schema.js +1 -0
  89. package/build/tools/models/tools-with-configs.schema.d.ts +22 -0
  90. package/build/tools/queries/find-grouped-tools.query.d.ts +0 -2
  91. package/build/tools/queries/get-global-tools-config.query.d.ts +152 -0
  92. package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -0
  93. package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
  94. package/build/tts/commands/create-voice-clone.command.js +21 -0
  95. package/build/tts/commands/create-voice-design.command.d.ts +40 -0
  96. package/build/tts/commands/create-voice-design.command.js +20 -0
  97. package/build/tts/commands/delete-voice.command.d.ts +17 -0
  98. package/build/tts/commands/delete-voice.command.js +14 -0
  99. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  100. package/build/tts/commands/download-tts-job.command.js +19 -0
  101. package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
  102. package/build/tts/commands/improve-tts-text.command.js +16 -0
  103. package/build/tts/commands/index.d.ts +7 -0
  104. package/build/tts/commands/index.js +7 -0
  105. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  106. package/build/tts/commands/retry-tts-job.command.js +2 -0
  107. package/build/tts/commands/select-voice-design.command.d.ts +77 -0
  108. package/build/tts/commands/select-voice-design.command.js +17 -0
  109. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  110. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  111. package/build/tts/commands/tts.command.d.ts +35 -3
  112. package/build/tts/commands/tts.command.js +4 -1
  113. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  114. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  115. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  116. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  117. package/build/tts/commands/update-voice.command.d.ts +78 -0
  118. package/build/tts/commands/update-voice.command.js +18 -0
  119. package/build/tts/enums/index.d.ts +7 -0
  120. package/build/tts/enums/index.js +7 -0
  121. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  122. package/build/tts/enums/tts-download-format.enum.js +9 -0
  123. package/build/tts/enums/voice-category.enum.d.ts +19 -0
  124. package/build/tts/enums/voice-category.enum.js +23 -0
  125. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  126. package/build/tts/enums/voice-gender.enum.js +8 -0
  127. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  128. package/build/tts/enums/voice-source.enum.js +9 -0
  129. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  130. package/build/tts/enums/voice-status.enum.js +9 -0
  131. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  132. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  133. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  134. package/build/tts/enums/voice-tag.enum.js +24 -0
  135. package/build/tts/models/index.d.ts +7 -0
  136. package/build/tts/models/index.js +7 -0
  137. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  138. package/build/tts/models/tts-config.schema.d.ts +11 -0
  139. package/build/tts/models/tts-config.schema.js +5 -0
  140. package/build/tts/models/tts-job.schema.d.ts +34 -2
  141. package/build/tts/models/tts-job.schema.js +22 -2
  142. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  143. package/build/tts/models/tts-model.schema.d.ts +1 -0
  144. package/build/tts/models/tts-model.schema.js +1 -0
  145. package/build/tts/models/voice-category.schema.d.ts +7 -0
  146. package/build/tts/models/voice-category.schema.js +9 -0
  147. package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
  148. package/build/tts/models/voice-design-draft.schema.js +13 -0
  149. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  150. package/build/tts/models/voice-design-sample.schema.js +8 -0
  151. package/build/tts/models/voice-gender.schema.d.ts +7 -0
  152. package/build/tts/models/voice-gender.schema.js +9 -0
  153. package/build/tts/models/voice-source.schema.d.ts +7 -0
  154. package/build/tts/models/voice-source.schema.js +9 -0
  155. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  156. package/build/tts/models/voice-tag.schema.js +11 -0
  157. package/build/tts/models/voice.schema.d.ts +34 -0
  158. package/build/tts/models/voice.schema.js +30 -0
  159. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  160. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  161. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  162. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  163. package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
  164. package/build/tts/queries/find-voice-by-id.query.js +17 -0
  165. package/build/tts/queries/find-voices.query.d.ts +122 -0
  166. package/build/tts/queries/find-voices.query.js +25 -0
  167. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  168. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  169. package/build/tts/queries/index.d.ts +2 -0
  170. package/build/tts/queries/index.js +2 -0
  171. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  172. package/build/tts/routes/tts.amqp.routes.js +9 -0
  173. package/build/video/enums/video-strategy.enum.d.ts +1 -2
  174. package/build/video/enums/video-strategy.enum.js +0 -1
  175. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoiceCategorySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const voice_category_enum_1 = require("../enums/voice-category.enum");
6
+ exports.VoiceCategorySchema = zod_1.z.object({
7
+ id: zod_1.z.nativeEnum(voice_category_enum_1.VOICE_CATEGORY),
8
+ label: zod_1.z.string(),
9
+ });
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { VOICE_GENDER } from '../enums/voice-gender.enum';
3
+ export declare const VoiceDesignDraftSchema: z.ZodObject<{
4
+ designId: z.ZodString;
5
+ title: z.ZodString;
6
+ gender: z.ZodEnum<typeof VOICE_GENDER>;
7
+ imageUrl: z.ZodNullable<z.ZodString>;
8
+ samples: z.ZodArray<z.ZodObject<{
9
+ sampleId: z.ZodString;
10
+ previewUrl: z.ZodString;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ export type VoiceDesignDraft = z.infer<typeof VoiceDesignDraftSchema>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoiceDesignDraftSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const voice_gender_enum_1 = require("../enums/voice-gender.enum");
6
+ const voice_design_sample_schema_1 = require("./voice-design-sample.schema");
7
+ exports.VoiceDesignDraftSchema = zod_1.z.object({
8
+ designId: zod_1.z.string().uuid(),
9
+ title: zod_1.z.string(),
10
+ gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER),
11
+ imageUrl: zod_1.z.string().nullable(),
12
+ samples: zod_1.z.array(voice_design_sample_schema_1.VoiceDesignSampleSchema),
13
+ });
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ export declare const VoiceDesignSampleSchema: z.ZodObject<{
3
+ sampleId: z.ZodString;
4
+ previewUrl: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type VoiceDesignSample = z.infer<typeof VoiceDesignSampleSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoiceDesignSampleSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.VoiceDesignSampleSchema = zod_1.z.object({
6
+ sampleId: zod_1.z.string().uuid(),
7
+ previewUrl: zod_1.z.string(),
8
+ });
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ import { VOICE_GENDER } from '../enums/voice-gender.enum';
3
+ export declare const VoiceGenderSchema: z.ZodObject<{
4
+ id: z.ZodEnum<typeof VOICE_GENDER>;
5
+ label: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export type VoiceGender = z.infer<typeof VoiceGenderSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoiceGenderSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const voice_gender_enum_1 = require("../enums/voice-gender.enum");
6
+ exports.VoiceGenderSchema = zod_1.z.object({
7
+ id: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER),
8
+ label: zod_1.z.string(),
9
+ });
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ import { VOICE_SOURCE } from '../enums/voice-source.enum';
3
+ export declare const VoiceSourceSchema: z.ZodObject<{
4
+ id: z.ZodEnum<typeof VOICE_SOURCE>;
5
+ label: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export type VoiceSource = z.infer<typeof VoiceSourceSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoiceSourceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const voice_source_enum_1 = require("../enums/voice-source.enum");
6
+ exports.VoiceSourceSchema = zod_1.z.object({
7
+ id: zod_1.z.nativeEnum(voice_source_enum_1.VOICE_SOURCE),
8
+ label: zod_1.z.string(),
9
+ });
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ import { VOICE_TAG } from '../enums/voice-tag.enum';
3
+ import { VOICE_TAG_GROUP } from '../enums/voice-tag-group.enum';
4
+ export declare const VoiceTagSchema: z.ZodObject<{
5
+ id: z.ZodEnum<typeof VOICE_TAG>;
6
+ group: z.ZodEnum<typeof VOICE_TAG_GROUP>;
7
+ label: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export type VoiceTag = z.infer<typeof VoiceTagSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoiceTagSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const voice_tag_enum_1 = require("../enums/voice-tag.enum");
6
+ const voice_tag_group_enum_1 = require("../enums/voice-tag-group.enum");
7
+ exports.VoiceTagSchema = zod_1.z.object({
8
+ id: zod_1.z.nativeEnum(voice_tag_enum_1.VOICE_TAG),
9
+ group: zod_1.z.nativeEnum(voice_tag_group_enum_1.VOICE_TAG_GROUP),
10
+ label: zod_1.z.string(),
11
+ });
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ import { VOICE_STATUS } from '../enums/voice-status.enum';
4
+ export declare const VoiceSchema: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ scope: z.ZodEnum<typeof JOB_SCOPE>;
7
+ source: z.ZodObject<{
8
+ id: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
9
+ label: z.ZodString;
10
+ }, z.core.$strip>;
11
+ title: z.ZodString;
12
+ description: z.ZodString;
13
+ gender: z.ZodNullable<z.ZodObject<{
14
+ id: z.ZodEnum<typeof import("..").VOICE_GENDER>;
15
+ label: z.ZodString;
16
+ }, z.core.$strip>>;
17
+ trait: z.ZodNullable<z.ZodString>;
18
+ ageRange: z.ZodNullable<z.ZodString>;
19
+ categories: z.ZodArray<z.ZodObject<{
20
+ id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
21
+ label: z.ZodString;
22
+ }, z.core.$strip>>;
23
+ previewUrl: z.ZodString;
24
+ imageUrl: z.ZodNullable<z.ZodString>;
25
+ status: z.ZodEnum<typeof VOICE_STATUS>;
26
+ error: z.ZodNullable<z.ZodString>;
27
+ order: z.ZodNumber;
28
+ isDeleted: z.ZodBoolean;
29
+ userId: z.ZodNullable<z.ZodString>;
30
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
31
+ createdAt: z.ZodDate;
32
+ updatedAt: z.ZodDate;
33
+ }, z.core.$strip>;
34
+ export type Voice = z.infer<typeof VoiceSchema>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoiceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const voice_status_enum_1 = require("../enums/voice-status.enum");
7
+ const voice_source_schema_1 = require("./voice-source.schema");
8
+ const voice_gender_schema_1 = require("./voice-gender.schema");
9
+ const voice_category_schema_1 = require("./voice-category.schema");
10
+ exports.VoiceSchema = zod_1.z.object({
11
+ uuid: zod_1.z.string().uuid(),
12
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE),
13
+ source: voice_source_schema_1.VoiceSourceSchema,
14
+ title: zod_1.z.string(),
15
+ description: zod_1.z.string(),
16
+ gender: voice_gender_schema_1.VoiceGenderSchema.nullable(),
17
+ trait: zod_1.z.string().nullable(),
18
+ ageRange: zod_1.z.string().nullable(),
19
+ categories: zod_1.z.array(voice_category_schema_1.VoiceCategorySchema),
20
+ previewUrl: zod_1.z.string(),
21
+ imageUrl: zod_1.z.string().nullable(),
22
+ status: zod_1.z.nativeEnum(voice_status_enum_1.VOICE_STATUS),
23
+ error: zod_1.z.string().nullable(),
24
+ order: zod_1.z.number(),
25
+ isDeleted: zod_1.z.boolean(),
26
+ userId: zod_1.z.string().uuid().nullable(),
27
+ unregisteredUserId: zod_1.z.string().uuid().nullable(),
28
+ createdAt: zod_1.z.date(),
29
+ updatedAt: zod_1.z.date(),
30
+ });
@@ -4,6 +4,7 @@ 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>>;
7
8
  }, z.core.$strip>;
8
9
  type Request = z.infer<typeof RequestSchema>;
9
10
  const ResponseSchema: z.ZodObject<{
@@ -18,9 +19,22 @@ export declare namespace FindTTSJobByIdQuery {
18
19
  status: import("../..").JOB_STATUS;
19
20
  error: string | null;
20
21
  modelId: string;
21
- voiceId: 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
+ }[];
22
35
  price: number;
23
36
  duration: number;
37
+ scope: import("../..").JOB_SCOPE;
24
38
  userId: string | null;
25
39
  unregisteredUserId: string | null;
26
40
  tokenReservationId?: string | null | undefined;
@@ -49,9 +63,22 @@ export declare namespace FindTTSJobByIdQuery {
49
63
  status: import("../..").JOB_STATUS;
50
64
  error: string | null;
51
65
  modelId: string;
52
- voiceId: 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
+ }[];
53
79
  price: number;
54
80
  duration: number;
81
+ scope: import("../..").JOB_SCOPE;
55
82
  userId: string | null;
56
83
  unregisteredUserId: string | null;
57
84
  tokenReservationId?: string | null | undefined;
@@ -3,6 +3,7 @@ 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");
6
7
  const tts_job_schema_1 = require("../models/tts-job.schema");
7
8
  var FindTTSJobByIdQuery;
8
9
  (function (FindTTSJobByIdQuery) {
@@ -10,6 +11,7 @@ var FindTTSJobByIdQuery;
10
11
  uuid: zod_1.z.string().uuid(),
11
12
  userId: zod_1.z.string().uuid().nullable().optional(),
12
13
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
+ locale: common_1.LocaleSchema.optional(),
13
15
  });
14
16
  FindTTSJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(tts_job_schema_1.TTSJobSchema);
15
17
  })(FindTTSJobByIdQuery || (exports.FindTTSJobByIdQuery = FindTTSJobByIdQuery = {}));
@@ -6,6 +6,7 @@ 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>>;
9
10
  title: z.ZodOptional<z.ZodString>;
10
11
  isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
11
12
  createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
@@ -27,9 +28,22 @@ export declare namespace FindTTSJobsQuery {
27
28
  status: JOB_STATUS;
28
29
  error: string | null;
29
30
  modelId: string;
30
- voiceId: 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
+ }[];
31
44
  price: number;
32
45
  duration: number;
46
+ scope: JOB_SCOPE;
33
47
  userId: string | null;
34
48
  unregisteredUserId: string | null;
35
49
  tokenReservationId?: string | null | undefined;
@@ -63,9 +77,22 @@ export declare namespace FindTTSJobsQuery {
63
77
  status: JOB_STATUS;
64
78
  error: string | null;
65
79
  modelId: string;
66
- voiceId: 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
+ }[];
67
93
  price: number;
68
94
  duration: number;
95
+ scope: JOB_SCOPE;
69
96
  userId: string | null;
70
97
  unregisteredUserId: string | null;
71
98
  tokenReservationId?: string | null | undefined;
@@ -13,6 +13,7 @@ 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(),
16
17
  title: zod_1.z.string().optional(),
17
18
  isFavorite: zod_1.z.coerce.boolean().optional(),
18
19
  createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
@@ -0,0 +1,77 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ export declare namespace FindVoiceByIdQuery {
4
+ const RequestSchema: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
9
+ scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
10
+ }, z.core.$strip>;
11
+ type Request = z.infer<typeof RequestSchema>;
12
+ const ResponseSchema: z.ZodObject<{
13
+ isSuccess: z.ZodBoolean;
14
+ data: z.ZodOptional<z.ZodType<{
15
+ uuid: string;
16
+ scope: JOB_SCOPE;
17
+ source: {
18
+ id: import("..").VOICE_SOURCE;
19
+ label: string;
20
+ };
21
+ title: string;
22
+ description: string;
23
+ gender: {
24
+ id: import("..").VOICE_GENDER;
25
+ label: string;
26
+ } | null;
27
+ trait: string | null;
28
+ ageRange: string | null;
29
+ categories: {
30
+ id: import("..").VOICE_CATEGORY;
31
+ label: string;
32
+ }[];
33
+ previewUrl: string;
34
+ imageUrl: string | null;
35
+ status: import("..").VOICE_STATUS;
36
+ error: string | null;
37
+ order: number;
38
+ isDeleted: boolean;
39
+ userId: string | null;
40
+ unregisteredUserId: string | null;
41
+ createdAt: Date;
42
+ updatedAt: Date;
43
+ }, unknown, z.core.$ZodTypeInternals<{
44
+ uuid: string;
45
+ scope: JOB_SCOPE;
46
+ source: {
47
+ id: import("..").VOICE_SOURCE;
48
+ label: string;
49
+ };
50
+ title: string;
51
+ description: string;
52
+ gender: {
53
+ id: import("..").VOICE_GENDER;
54
+ label: string;
55
+ } | null;
56
+ trait: string | null;
57
+ ageRange: string | null;
58
+ categories: {
59
+ id: import("..").VOICE_CATEGORY;
60
+ label: string;
61
+ }[];
62
+ previewUrl: string;
63
+ imageUrl: string | null;
64
+ status: import("..").VOICE_STATUS;
65
+ error: string | null;
66
+ order: number;
67
+ isDeleted: boolean;
68
+ userId: string | null;
69
+ unregisteredUserId: string | null;
70
+ createdAt: Date;
71
+ updatedAt: Date;
72
+ }, unknown>>>;
73
+ code: z.ZodOptional<z.ZodString>;
74
+ message: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strip>;
76
+ type Response = z.infer<typeof ResponseSchema>;
77
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindVoiceByIdQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const models_1 = require("../models");
7
+ var FindVoiceByIdQuery;
8
+ (function (FindVoiceByIdQuery) {
9
+ FindVoiceByIdQuery.RequestSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ userId: zod_1.z.string().uuid().nullable().optional(),
12
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
+ locale: common_1.LocaleSchema.optional(),
14
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
15
+ });
16
+ FindVoiceByIdQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
17
+ })(FindVoiceByIdQuery || (exports.FindVoiceByIdQuery = FindVoiceByIdQuery = {}));
@@ -0,0 +1,122 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ import { VOICE_CATEGORY } from '../enums/voice-category.enum';
4
+ import { VOICE_GENDER } from '../enums/voice-gender.enum';
5
+ export declare namespace FindVoicesQuery {
6
+ const RequestSchema: z.ZodObject<{
7
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
10
+ scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
11
+ ownership: z.ZodDefault<z.ZodEnum<{
12
+ all: "all";
13
+ library: "library";
14
+ mine: "mine";
15
+ }>>;
16
+ category: z.ZodOptional<z.ZodEnum<typeof VOICE_CATEGORY>>;
17
+ gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
18
+ query: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ type Request = z.infer<typeof RequestSchema>;
21
+ const ResponseDataSchema: z.ZodObject<{
22
+ items: z.ZodArray<z.ZodObject<{
23
+ uuid: z.ZodString;
24
+ scope: z.ZodEnum<typeof JOB_SCOPE>;
25
+ source: z.ZodObject<{
26
+ id: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
27
+ label: z.ZodString;
28
+ }, z.core.$strip>;
29
+ title: z.ZodString;
30
+ description: z.ZodString;
31
+ gender: z.ZodNullable<z.ZodObject<{
32
+ id: z.ZodEnum<typeof VOICE_GENDER>;
33
+ label: z.ZodString;
34
+ }, z.core.$strip>>;
35
+ trait: z.ZodNullable<z.ZodString>;
36
+ ageRange: z.ZodNullable<z.ZodString>;
37
+ categories: z.ZodArray<z.ZodObject<{
38
+ id: z.ZodEnum<typeof VOICE_CATEGORY>;
39
+ label: z.ZodString;
40
+ }, z.core.$strip>>;
41
+ previewUrl: z.ZodString;
42
+ imageUrl: z.ZodNullable<z.ZodString>;
43
+ status: z.ZodEnum<typeof import("..").VOICE_STATUS>;
44
+ error: z.ZodNullable<z.ZodString>;
45
+ order: z.ZodNumber;
46
+ isDeleted: z.ZodBoolean;
47
+ userId: z.ZodNullable<z.ZodString>;
48
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
49
+ createdAt: z.ZodDate;
50
+ updatedAt: z.ZodDate;
51
+ }, z.core.$strip>>;
52
+ }, z.core.$strip>;
53
+ const ResponseSchema: z.ZodObject<{
54
+ isSuccess: z.ZodBoolean;
55
+ data: z.ZodOptional<z.ZodType<{
56
+ items: {
57
+ uuid: string;
58
+ scope: JOB_SCOPE;
59
+ source: {
60
+ id: import("..").VOICE_SOURCE;
61
+ label: string;
62
+ };
63
+ title: string;
64
+ description: string;
65
+ gender: {
66
+ id: VOICE_GENDER;
67
+ label: string;
68
+ } | null;
69
+ trait: string | null;
70
+ ageRange: string | null;
71
+ categories: {
72
+ id: VOICE_CATEGORY;
73
+ label: string;
74
+ }[];
75
+ previewUrl: string;
76
+ imageUrl: string | null;
77
+ status: import("..").VOICE_STATUS;
78
+ error: string | null;
79
+ order: number;
80
+ isDeleted: boolean;
81
+ userId: string | null;
82
+ unregisteredUserId: string | null;
83
+ createdAt: Date;
84
+ updatedAt: Date;
85
+ }[];
86
+ }, unknown, z.core.$ZodTypeInternals<{
87
+ items: {
88
+ uuid: string;
89
+ scope: JOB_SCOPE;
90
+ source: {
91
+ id: import("..").VOICE_SOURCE;
92
+ label: string;
93
+ };
94
+ title: string;
95
+ description: string;
96
+ gender: {
97
+ id: VOICE_GENDER;
98
+ label: string;
99
+ } | null;
100
+ trait: string | null;
101
+ ageRange: string | null;
102
+ categories: {
103
+ id: VOICE_CATEGORY;
104
+ label: string;
105
+ }[];
106
+ previewUrl: string;
107
+ imageUrl: string | null;
108
+ status: import("..").VOICE_STATUS;
109
+ error: string | null;
110
+ order: number;
111
+ isDeleted: boolean;
112
+ userId: string | null;
113
+ unregisteredUserId: string | null;
114
+ createdAt: Date;
115
+ updatedAt: Date;
116
+ }[];
117
+ }, unknown>>>;
118
+ code: z.ZodOptional<z.ZodString>;
119
+ message: z.ZodOptional<z.ZodString>;
120
+ }, z.core.$strip>;
121
+ type Response = z.infer<typeof ResponseSchema>;
122
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindVoicesQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const voice_category_enum_1 = require("../enums/voice-category.enum");
7
+ const voice_gender_enum_1 = require("../enums/voice-gender.enum");
8
+ const models_1 = require("../models");
9
+ var FindVoicesQuery;
10
+ (function (FindVoicesQuery) {
11
+ FindVoicesQuery.RequestSchema = zod_1.z.object({
12
+ userId: zod_1.z.string().uuid().nullable().optional(),
13
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
+ locale: common_1.LocaleSchema.optional(),
15
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
16
+ ownership: zod_1.z.enum(['all', 'library', 'mine']).default('all'),
17
+ category: zod_1.z.nativeEnum(voice_category_enum_1.VOICE_CATEGORY).optional(),
18
+ gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER).optional(),
19
+ query: zod_1.z.string().optional(),
20
+ });
21
+ FindVoicesQuery.ResponseDataSchema = zod_1.z.object({
22
+ items: zod_1.z.array(models_1.VoiceSchema),
23
+ });
24
+ FindVoicesQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(FindVoicesQuery.ResponseDataSchema);
25
+ })(FindVoicesQuery || (exports.FindVoicesQuery = FindVoicesQuery = {}));
@@ -45,6 +45,7 @@ export declare namespace GetTTSConfigWithVendorsQuery {
45
45
  };
46
46
  strategy?: string | undefined;
47
47
  maxInputLength: number;
48
+ maxSpeakers: number;
48
49
  voices: {
49
50
  id: string;
50
51
  externalId: string;
@@ -185,6 +186,7 @@ export declare namespace GetTTSConfigWithVendorsQuery {
185
186
  };
186
187
  strategy?: string | undefined;
187
188
  maxInputLength: number;
189
+ maxSpeakers: number;
188
190
  voices: {
189
191
  id: string;
190
192
  externalId: string;
@@ -29,6 +29,7 @@ export declare namespace GetTTSConfigQuery {
29
29
  };
30
30
  strategy?: string | undefined;
31
31
  maxInputLength: number;
32
+ maxSpeakers: number;
32
33
  voices: {
33
34
  id: string;
34
35
  externalId: string;
@@ -129,6 +130,16 @@ export declare namespace GetTTSConfigQuery {
129
130
  createdAt: Date;
130
131
  updatedAt: Date;
131
132
  }[];
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;
132
143
  }, unknown, z.core.$ZodTypeInternals<{
133
144
  models: {
134
145
  uuid: string;
@@ -151,6 +162,7 @@ export declare namespace GetTTSConfigQuery {
151
162
  };
152
163
  strategy?: string | undefined;
153
164
  maxInputLength: number;
165
+ maxSpeakers: number;
154
166
  voices: {
155
167
  id: string;
156
168
  externalId: string;
@@ -251,6 +263,16 @@ export declare namespace GetTTSConfigQuery {
251
263
  createdAt: Date;
252
264
  updatedAt: Date;
253
265
  }[];
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;
254
276
  }, unknown>>>;
255
277
  code: z.ZodOptional<z.ZodString>;
256
278
  message: z.ZodOptional<z.ZodString>;
@@ -2,3 +2,5 @@ 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,3 +18,5 @@ __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,4 +11,13 @@ 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';
14
23
  };