@purpleschool/gptbot-tools 0.2.66-stage2 → 0.2.66

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 (177) 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/image-editor/enums/image-editor-strategy.enum.d.ts +1 -0
  4. package/build/image-editor/enums/image-editor-strategy.enum.js +1 -0
  5. package/build/image-generation/enums/image-generation-model-strategy.enum.d.ts +2 -1
  6. package/build/image-generation/enums/image-generation-model-strategy.enum.js +2 -0
  7. package/build/index.d.ts +0 -3
  8. package/build/index.js +0 -3
  9. package/build/tools/enums/tool-content-type.enum.d.ts +0 -1
  10. package/build/tools/enums/tool-content-type.enum.js +0 -1
  11. package/build/tools/enums/tool-group.enum.d.ts +1 -1
  12. package/build/tools/enums/tool-group.enum.js +1 -1
  13. package/build/tools/enums/tool-type.enum.d.ts +0 -1
  14. package/build/tools/enums/tool-type.enum.js +0 -1
  15. package/build/tools/events/tool-job-complete.event.d.ts +0 -1
  16. package/build/tools/events/tool-job-failed.event.d.ts +0 -1
  17. package/build/tools/models/global-tools-config.schema.d.ts +0 -76
  18. package/build/tools/models/global-tools-config.schema.js +0 -2
  19. package/build/tools/models/tool-group.schema.d.ts +1 -0
  20. package/build/tools/models/tool-group.schema.js +1 -0
  21. package/build/tools/models/tool-job.schema.d.ts +0 -1
  22. package/build/tools/models/tool-job.schema.js +0 -1
  23. package/build/tools/models/tools-with-configs.schema.d.ts +0 -22
  24. package/build/tools/queries/find-grouped-tools.query.d.ts +2 -0
  25. package/build/tools/queries/get-global-tools-config.query.d.ts +0 -152
  26. package/build/tools/queries/get-tools-with-configs.query.d.ts +0 -22
  27. package/build/tts/commands/index.d.ts +0 -7
  28. package/build/tts/commands/index.js +0 -7
  29. package/build/tts/commands/retry-tts-job.command.d.ts +2 -29
  30. package/build/tts/commands/retry-tts-job.command.js +0 -2
  31. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
  32. package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
  33. package/build/tts/commands/tts.command.d.ts +3 -35
  34. package/build/tts/commands/tts.command.js +1 -4
  35. package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
  36. package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
  37. package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
  38. package/build/tts/commands/update-tts-job-title.command.js +0 -2
  39. package/build/tts/enums/index.d.ts +0 -7
  40. package/build/tts/enums/index.js +0 -7
  41. package/build/tts/models/index.d.ts +0 -7
  42. package/build/tts/models/index.js +0 -7
  43. package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
  44. package/build/tts/models/tts-config.schema.d.ts +0 -11
  45. package/build/tts/models/tts-config.schema.js +0 -5
  46. package/build/tts/models/tts-job.schema.d.ts +2 -34
  47. package/build/tts/models/tts-job.schema.js +2 -22
  48. package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
  49. package/build/tts/models/tts-model.schema.d.ts +0 -1
  50. package/build/tts/models/tts-model.schema.js +0 -1
  51. package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
  52. package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
  53. package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
  54. package/build/tts/queries/find-tts-jobs.query.js +0 -1
  55. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
  56. package/build/tts/queries/get-tts-config.query.d.ts +0 -22
  57. package/build/tts/queries/index.d.ts +0 -2
  58. package/build/tts/queries/index.js +0 -2
  59. package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
  60. package/build/tts/routes/tts.amqp.routes.js +0 -9
  61. package/build/video/enums/video-strategy.enum.d.ts +2 -1
  62. package/build/video/enums/video-strategy.enum.js +1 -0
  63. package/package.json +1 -1
  64. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
  65. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
  66. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
  67. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
  68. package/build/photo-sessions/commands/admin/index.d.ts +0 -3
  69. package/build/photo-sessions/commands/admin/index.js +0 -19
  70. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -54
  71. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -18
  72. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +0 -17
  73. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -19
  74. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +0 -16
  75. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
  76. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -85
  77. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -29
  78. package/build/photo-sessions/commands/index.d.ts +0 -10
  79. package/build/photo-sessions/commands/index.js +0 -26
  80. package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -305
  81. package/build/photo-sessions/commands/photo-sessions.command.js +0 -38
  82. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -266
  83. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -20
  84. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -203
  85. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +0 -27
  86. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -201
  87. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
  88. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -239
  89. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
  90. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -206
  91. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
  92. package/build/photo-sessions/enums/index.d.ts +0 -3
  93. package/build/photo-sessions/enums/index.js +0 -19
  94. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +0 -7
  95. package/build/photo-sessions/enums/photo-session-group-status.enum.js +0 -11
  96. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
  97. package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
  98. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
  99. package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
  100. package/build/photo-sessions/index.d.ts +0 -5
  101. package/build/photo-sessions/index.js +0 -21
  102. package/build/photo-sessions/models/index.d.ts +0 -5
  103. package/build/photo-sessions/models/index.js +0 -21
  104. package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
  105. package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
  106. package/build/photo-sessions/models/photo-session-group.schema.d.ts +0 -116
  107. package/build/photo-sessions/models/photo-session-group.schema.js +0 -27
  108. package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -169
  109. package/build/photo-sessions/models/photo-session-job.schema.js +0 -51
  110. package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
  111. package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
  112. package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
  113. package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
  114. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
  115. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
  116. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
  117. package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
  118. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -238
  119. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -18
  120. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +0 -257
  121. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +0 -33
  122. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
  123. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
  124. package/build/photo-sessions/queries/index.d.ts +0 -5
  125. package/build/photo-sessions/queries/index.js +0 -21
  126. package/build/photo-sessions/routes/index.d.ts +0 -2
  127. package/build/photo-sessions/routes/index.js +0 -18
  128. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
  129. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
  130. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
  131. package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
  132. package/build/tts/commands/create-voice-clone.command.d.ts +0 -81
  133. package/build/tts/commands/create-voice-clone.command.js +0 -21
  134. package/build/tts/commands/create-voice-design.command.d.ts +0 -40
  135. package/build/tts/commands/create-voice-design.command.js +0 -20
  136. package/build/tts/commands/delete-voice.command.d.ts +0 -17
  137. package/build/tts/commands/delete-voice.command.js +0 -14
  138. package/build/tts/commands/download-tts-job.command.d.ts +0 -25
  139. package/build/tts/commands/download-tts-job.command.js +0 -19
  140. package/build/tts/commands/improve-tts-text.command.d.ts +0 -22
  141. package/build/tts/commands/improve-tts-text.command.js +0 -16
  142. package/build/tts/commands/select-voice-design.command.d.ts +0 -77
  143. package/build/tts/commands/select-voice-design.command.js +0 -17
  144. package/build/tts/commands/update-voice.command.d.ts +0 -78
  145. package/build/tts/commands/update-voice.command.js +0 -18
  146. package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
  147. package/build/tts/enums/tts-download-format.enum.js +0 -9
  148. package/build/tts/enums/voice-category.enum.d.ts +0 -19
  149. package/build/tts/enums/voice-category.enum.js +0 -23
  150. package/build/tts/enums/voice-gender.enum.d.ts +0 -4
  151. package/build/tts/enums/voice-gender.enum.js +0 -8
  152. package/build/tts/enums/voice-source.enum.d.ts +0 -5
  153. package/build/tts/enums/voice-source.enum.js +0 -9
  154. package/build/tts/enums/voice-status.enum.d.ts +0 -5
  155. package/build/tts/enums/voice-status.enum.js +0 -9
  156. package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
  157. package/build/tts/enums/voice-tag-group.enum.js +0 -9
  158. package/build/tts/enums/voice-tag.enum.d.ts +0 -20
  159. package/build/tts/enums/voice-tag.enum.js +0 -24
  160. package/build/tts/models/voice-category.schema.d.ts +0 -7
  161. package/build/tts/models/voice-category.schema.js +0 -9
  162. package/build/tts/models/voice-design-draft.schema.d.ts +0 -13
  163. package/build/tts/models/voice-design-draft.schema.js +0 -13
  164. package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
  165. package/build/tts/models/voice-design-sample.schema.js +0 -8
  166. package/build/tts/models/voice-gender.schema.d.ts +0 -7
  167. package/build/tts/models/voice-gender.schema.js +0 -9
  168. package/build/tts/models/voice-source.schema.d.ts +0 -7
  169. package/build/tts/models/voice-source.schema.js +0 -9
  170. package/build/tts/models/voice-tag.schema.d.ts +0 -9
  171. package/build/tts/models/voice-tag.schema.js +0 -11
  172. package/build/tts/models/voice.schema.d.ts +0 -34
  173. package/build/tts/models/voice.schema.js +0 -30
  174. package/build/tts/queries/find-voice-by-id.query.d.ts +0 -77
  175. package/build/tts/queries/find-voice-by-id.query.js +0 -17
  176. package/build/tts/queries/find-voices.query.d.ts +0 -122
  177. package/build/tts/queries/find-voices.query.js +0 -25
@@ -4,7 +4,6 @@ export declare namespace RetryTTSJobCommand {
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
  tokenReservationId: z.ZodString;
9
8
  precalculatedPrice: z.ZodNumber;
10
9
  }, z.core.$strip>;
@@ -21,22 +20,9 @@ export declare namespace RetryTTSJobCommand {
21
20
  status: import("../..").JOB_STATUS;
22
21
  error: string | null;
23
22
  modelId: string;
24
- voiceId: string | null;
25
- isDialog: boolean;
26
- speakers: {
27
- speaker: number;
28
- voiceId: string;
29
- }[];
30
- voices: {
31
- uuid: string;
32
- title: string;
33
- previewUrl: string;
34
- isDeleted: boolean;
35
- speaker: number | null;
36
- }[];
23
+ voiceId: string;
37
24
  price: number;
38
25
  duration: number;
39
- scope: import("../..").JOB_SCOPE;
40
26
  userId: string | null;
41
27
  unregisteredUserId: string | null;
42
28
  tokenReservationId?: string | null | undefined;
@@ -65,22 +51,9 @@ export declare namespace RetryTTSJobCommand {
65
51
  status: import("../..").JOB_STATUS;
66
52
  error: string | null;
67
53
  modelId: string;
68
- voiceId: string | null;
69
- isDialog: boolean;
70
- speakers: {
71
- speaker: number;
72
- voiceId: string;
73
- }[];
74
- voices: {
75
- uuid: string;
76
- title: string;
77
- previewUrl: string;
78
- isDeleted: boolean;
79
- speaker: number | null;
80
- }[];
54
+ voiceId: string;
81
55
  price: number;
82
56
  duration: number;
83
- scope: import("../..").JOB_SCOPE;
84
57
  userId: string | null;
85
58
  unregisteredUserId: string | null;
86
59
  tokenReservationId?: string | null | undefined;
@@ -4,14 +4,12 @@ exports.RetryTTSJobCommand = 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 RetryTTSJobCommand;
9
8
  (function (RetryTTSJobCommand) {
10
9
  RetryTTSJobCommand.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
  tokenReservationId: zod_1.z.string().uuid(),
16
14
  precalculatedPrice: zod_1.z.number(),
17
15
  });
@@ -4,7 +4,6 @@ export declare namespace SetReactionToTTSJobCommand {
4
4
  const RequestSchema: z.ZodObject<{
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
  uuid: z.ZodString;
9
8
  reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
10
9
  dislikeReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -22,22 +21,9 @@ export declare namespace SetReactionToTTSJobCommand {
22
21
  status: import("../..").JOB_STATUS;
23
22
  error: string | null;
24
23
  modelId: string;
25
- voiceId: string | null;
26
- isDialog: boolean;
27
- speakers: {
28
- speaker: number;
29
- voiceId: string;
30
- }[];
31
- voices: {
32
- uuid: string;
33
- title: string;
34
- previewUrl: string;
35
- isDeleted: boolean;
36
- speaker: number | null;
37
- }[];
24
+ voiceId: string;
38
25
  price: number;
39
26
  duration: number;
40
- scope: import("../..").JOB_SCOPE;
41
27
  userId: string | null;
42
28
  unregisteredUserId: string | null;
43
29
  tokenReservationId?: string | null | undefined;
@@ -66,22 +52,9 @@ export declare namespace SetReactionToTTSJobCommand {
66
52
  status: import("../..").JOB_STATUS;
67
53
  error: string | null;
68
54
  modelId: string;
69
- voiceId: string | null;
70
- isDialog: boolean;
71
- speakers: {
72
- speaker: number;
73
- voiceId: string;
74
- }[];
75
- voices: {
76
- uuid: string;
77
- title: string;
78
- previewUrl: string;
79
- isDeleted: boolean;
80
- speaker: number | null;
81
- }[];
55
+ voiceId: string;
82
56
  price: number;
83
57
  duration: number;
84
- scope: import("../..").JOB_SCOPE;
85
58
  userId: string | null;
86
59
  unregisteredUserId: string | null;
87
60
  tokenReservationId?: string | null | undefined;
@@ -11,7 +11,6 @@ var SetReactionToTTSJobCommand;
11
11
  .object({
12
12
  userId: zod_1.z.string().uuid().nullable().optional(),
13
13
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
- locale: common_1.LocaleSchema.optional(),
15
14
  uuid: zod_1.z.string().uuid(),
16
15
  reaction: zod_1.z.nativeEnum(common_1.USER_REACTION).nullable(),
17
16
  dislikeReason: zod_1.z.string().nullable().default(null),
@@ -5,15 +5,9 @@ export declare namespace TTSCommand {
5
5
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
8
- locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
9
8
  modelId: z.ZodString;
10
- voiceId: z.ZodOptional<z.ZodString>;
9
+ voiceId: z.ZodString;
11
10
  userInput: z.ZodString;
12
- isDialog: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
- speakers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
14
- speaker: z.ZodNumber;
15
- voiceId: z.ZodString;
16
- }, z.core.$strip>>>>;
17
11
  params: z.ZodOptional<z.ZodObject<{
18
12
  speed: z.ZodOptional<z.ZodNumber>;
19
13
  similarity: z.ZodOptional<z.ZodNumber>;
@@ -40,22 +34,9 @@ export declare namespace TTSCommand {
40
34
  status: import("../..").JOB_STATUS;
41
35
  error: string | null;
42
36
  modelId: string;
43
- voiceId: string | null;
44
- isDialog: boolean;
45
- speakers: {
46
- speaker: number;
47
- voiceId: string;
48
- }[];
49
- voices: {
50
- uuid: string;
51
- title: string;
52
- previewUrl: string;
53
- isDeleted: boolean;
54
- speaker: number | null;
55
- }[];
37
+ voiceId: string;
56
38
  price: number;
57
39
  duration: number;
58
- scope: JOB_SCOPE;
59
40
  userId: string | null;
60
41
  unregisteredUserId: string | null;
61
42
  tokenReservationId?: string | null | undefined;
@@ -84,22 +65,9 @@ export declare namespace TTSCommand {
84
65
  status: import("../..").JOB_STATUS;
85
66
  error: string | null;
86
67
  modelId: string;
87
- voiceId: string | null;
88
- isDialog: boolean;
89
- speakers: {
90
- speaker: number;
91
- voiceId: string;
92
- }[];
93
- voices: {
94
- uuid: string;
95
- title: string;
96
- previewUrl: string;
97
- isDeleted: boolean;
98
- speaker: number | null;
99
- }[];
68
+ voiceId: string;
100
69
  price: number;
101
70
  duration: number;
102
- scope: JOB_SCOPE;
103
71
  userId: string | null;
104
72
  unregisteredUserId: string | null;
105
73
  tokenReservationId?: string | null | undefined;
@@ -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,10 +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-source.schema';
8
- export * from './voice-gender.schema';
9
- export * from './voice-tag.schema';
10
- export * from './voice-category.schema';
11
- export * from './voice-design-sample.schema';
12
- export * from './voice-design-draft.schema';
@@ -19,10 +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-source.schema"), exports);
24
- __exportStar(require("./voice-gender.schema"), exports);
25
- __exportStar(require("./voice-tag.schema"), exports);
26
- __exportStar(require("./voice-category.schema"), exports);
27
- __exportStar(require("./voice-design-sample.schema"), exports);
28
- __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 = {}));