@purpleschool/gptbot-tools 0.2.57-stage2 → 0.2.58

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 (179) 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/commands/get-image-editor-price.command.d.ts +2 -0
  4. package/build/image-editor/commands/get-image-editor-price.command.js +2 -0
  5. package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.d.ts +6 -0
  6. package/build/image-editor/commands/image-editor.command.d.ts +3 -0
  7. package/build/image-editor/commands/image-editor.command.js +1 -0
  8. package/build/image-editor/commands/retry-image-editor-job.command.d.ts +3 -0
  9. package/build/image-editor/commands/set-reaction-to-image-editor-job.command.d.ts +2 -0
  10. package/build/image-editor/commands/update-image-editor-job-favorite.command.d.ts +2 -0
  11. package/build/image-editor/commands/update-image-editor-job-title.command.d.ts +2 -0
  12. package/build/image-editor/commands/update-published-status-image-editor-jobs.command.d.ts +2 -0
  13. package/build/image-editor/enums/image-editor-strategy.enum.d.ts +1 -0
  14. package/build/image-editor/enums/image-editor-strategy.enum.js +1 -0
  15. package/build/image-editor/models/image-editor-config.schema.d.ts +3 -0
  16. package/build/image-editor/models/image-editor-job.schema.d.ts +2 -0
  17. package/build/image-editor/models/image-editor-job.schema.js +1 -0
  18. package/build/image-editor/models/image-editor-model.schema.d.ts +6 -0
  19. package/build/image-editor/models/image-editor-model.schema.js +5 -0
  20. package/build/image-editor/queries/find-image-editor-job-by-id.query.d.ts +2 -0
  21. package/build/image-editor/queries/find-image-editor-jobs.query.d.ts +2 -0
  22. package/build/image-editor/queries/find-image-jobs.query.d.ts +2 -0
  23. package/build/image-editor/queries/get-image-editor-config.query.d.ts +6 -0
  24. package/build/index.d.ts +0 -3
  25. package/build/index.js +0 -3
  26. package/build/tool-workspace/models/tool-workspace-contents.schema.d.ts +1 -0
  27. package/build/tool-workspace/models/tool-workspace-item.schema.d.ts +1 -0
  28. package/build/tool-workspace/models/tool-workspace-job.schema.d.ts +1 -0
  29. package/build/tool-workspace/queries/find-tool-workspace-by-uuid.query.d.ts +2 -0
  30. package/build/tools/enums/tool-content-type.enum.d.ts +0 -1
  31. package/build/tools/enums/tool-content-type.enum.js +0 -1
  32. package/build/tools/enums/tool-type.enum.d.ts +0 -1
  33. package/build/tools/enums/tool-type.enum.js +0 -1
  34. package/build/tools/models/global-tools-config.schema.d.ts +3 -76
  35. package/build/tools/models/global-tools-config.schema.js +0 -2
  36. package/build/tools/models/tools-with-configs.schema.d.ts +6 -22
  37. package/build/tools/queries/get-global-tools-config.query.d.ts +6 -152
  38. package/build/tools/queries/get-tools-with-configs.query.d.ts +6 -22
  39. package/build/tts/commands/index.d.ts +0 -7
  40. package/build/tts/commands/index.js +0 -7
  41. package/build/tts/commands/retry-tts-job.command.d.ts +2 -29
  42. package/build/tts/commands/retry-tts-job.command.js +0 -2
  43. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
  44. package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
  45. package/build/tts/commands/tts.command.d.ts +3 -35
  46. package/build/tts/commands/tts.command.js +1 -4
  47. package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
  48. package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
  49. package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
  50. package/build/tts/commands/update-tts-job-title.command.js +0 -2
  51. package/build/tts/enums/index.d.ts +0 -7
  52. package/build/tts/enums/index.js +0 -7
  53. package/build/tts/models/index.d.ts +0 -5
  54. package/build/tts/models/index.js +0 -5
  55. package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
  56. package/build/tts/models/tts-config.schema.d.ts +0 -11
  57. package/build/tts/models/tts-config.schema.js +0 -5
  58. package/build/tts/models/tts-job.schema.d.ts +2 -34
  59. package/build/tts/models/tts-job.schema.js +2 -22
  60. package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
  61. package/build/tts/models/tts-model.schema.d.ts +0 -1
  62. package/build/tts/models/tts-model.schema.js +0 -1
  63. package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
  64. package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
  65. package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
  66. package/build/tts/queries/find-tts-jobs.query.js +0 -1
  67. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
  68. package/build/tts/queries/get-tts-config.query.d.ts +0 -22
  69. package/build/tts/queries/index.d.ts +0 -2
  70. package/build/tts/queries/index.js +0 -2
  71. package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
  72. package/build/tts/routes/tts.amqp.routes.js +0 -9
  73. package/package.json +1 -1
  74. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
  75. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
  76. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
  77. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
  78. package/build/photo-sessions/commands/admin/index.d.ts +0 -3
  79. package/build/photo-sessions/commands/admin/index.js +0 -19
  80. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -55
  81. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -28
  82. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +0 -17
  83. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -15
  84. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +0 -16
  85. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
  86. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -46
  87. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -30
  88. package/build/photo-sessions/commands/index.d.ts +0 -10
  89. package/build/photo-sessions/commands/index.js +0 -26
  90. package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -147
  91. package/build/photo-sessions/commands/photo-sessions.command.js +0 -41
  92. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -142
  93. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -23
  94. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -115
  95. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +0 -27
  96. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -113
  97. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
  98. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -113
  99. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
  100. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -118
  101. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
  102. package/build/photo-sessions/enums/index.d.ts +0 -2
  103. package/build/photo-sessions/enums/index.js +0 -18
  104. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
  105. package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
  106. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
  107. package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
  108. package/build/photo-sessions/index.d.ts +0 -5
  109. package/build/photo-sessions/index.js +0 -21
  110. package/build/photo-sessions/models/index.d.ts +0 -4
  111. package/build/photo-sessions/models/index.js +0 -20
  112. package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
  113. package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
  114. package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -78
  115. package/build/photo-sessions/models/photo-session-job.schema.js +0 -46
  116. package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
  117. package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
  118. package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
  119. package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
  120. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
  121. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
  122. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
  123. package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
  124. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -110
  125. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -10
  126. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +0 -130
  127. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +0 -28
  128. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
  129. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
  130. package/build/photo-sessions/queries/index.d.ts +0 -5
  131. package/build/photo-sessions/queries/index.js +0 -21
  132. package/build/photo-sessions/routes/index.d.ts +0 -2
  133. package/build/photo-sessions/routes/index.js +0 -18
  134. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
  135. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
  136. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
  137. package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
  138. package/build/tts/commands/create-voice-clone.command.d.ts +0 -56
  139. package/build/tts/commands/create-voice-clone.command.js +0 -19
  140. package/build/tts/commands/create-voice-design.command.d.ts +0 -35
  141. package/build/tts/commands/create-voice-design.command.js +0 -18
  142. package/build/tts/commands/delete-voice.command.d.ts +0 -15
  143. package/build/tts/commands/delete-voice.command.js +0 -13
  144. package/build/tts/commands/download-tts-job.command.d.ts +0 -25
  145. package/build/tts/commands/download-tts-job.command.js +0 -19
  146. package/build/tts/commands/improve-tts-text.command.d.ts +0 -22
  147. package/build/tts/commands/improve-tts-text.command.js +0 -16
  148. package/build/tts/commands/select-voice-design.command.d.ts +0 -53
  149. package/build/tts/commands/select-voice-design.command.js +0 -16
  150. package/build/tts/commands/update-voice.command.d.ts +0 -53
  151. package/build/tts/commands/update-voice.command.js +0 -16
  152. package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
  153. package/build/tts/enums/tts-download-format.enum.js +0 -9
  154. package/build/tts/enums/voice-category.enum.d.ts +0 -14
  155. package/build/tts/enums/voice-category.enum.js +0 -18
  156. package/build/tts/enums/voice-gender.enum.d.ts +0 -4
  157. package/build/tts/enums/voice-gender.enum.js +0 -8
  158. package/build/tts/enums/voice-source.enum.d.ts +0 -5
  159. package/build/tts/enums/voice-source.enum.js +0 -9
  160. package/build/tts/enums/voice-status.enum.d.ts +0 -5
  161. package/build/tts/enums/voice-status.enum.js +0 -9
  162. package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
  163. package/build/tts/enums/voice-tag-group.enum.js +0 -9
  164. package/build/tts/enums/voice-tag.enum.d.ts +0 -20
  165. package/build/tts/enums/voice-tag.enum.js +0 -24
  166. package/build/tts/models/voice-category.schema.d.ts +0 -7
  167. package/build/tts/models/voice-category.schema.js +0 -9
  168. package/build/tts/models/voice-design-draft.schema.d.ts +0 -12
  169. package/build/tts/models/voice-design-draft.schema.js +0 -12
  170. package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
  171. package/build/tts/models/voice-design-sample.schema.js +0 -8
  172. package/build/tts/models/voice-tag.schema.d.ts +0 -9
  173. package/build/tts/models/voice-tag.schema.js +0 -11
  174. package/build/tts/models/voice.schema.d.ts +0 -25
  175. package/build/tts/models/voice.schema.js +0 -27
  176. package/build/tts/queries/find-voice-by-id.query.d.ts +0 -53
  177. package/build/tts/queries/find-voice-by-id.query.js +0 -16
  178. package/build/tts/queries/find-voices.query.d.ts +0 -87
  179. package/build/tts/queries/find-voices.query.js +0 -24
@@ -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.57-stage2",
3
+ "version": "0.2.58",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [
@@ -1,58 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const CreatePhotoSessionStyleReferenceSchema: z.ZodObject<{
3
- photoUrl: z.ZodString;
4
- description: z.ZodOptional<z.ZodString>;
5
- order: z.ZodNumber;
6
- }, z.core.$strip>;
7
- export declare namespace CreatePhotoSessionStyleCommand {
8
- const RequestSchema: z.ZodObject<{
9
- code: z.ZodString;
10
- title: z.ZodString;
11
- description: z.ZodOptional<z.ZodString>;
12
- references: z.ZodArray<z.ZodObject<{
13
- photoUrl: z.ZodString;
14
- description: z.ZodOptional<z.ZodString>;
15
- order: z.ZodNumber;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>;
18
- type Request = z.infer<typeof RequestSchema>;
19
- const ResponseSchema: z.ZodObject<{
20
- isSuccess: z.ZodBoolean;
21
- data: z.ZodOptional<z.ZodType<{
22
- uuid: string;
23
- code: string;
24
- title: string;
25
- description?: string | null | undefined;
26
- references: {
27
- uuid: string;
28
- styleId: string;
29
- photoUrl: string;
30
- description?: string | null | undefined;
31
- order: number;
32
- createdAt: Date;
33
- updatedAt: Date;
34
- }[];
35
- createdAt: Date;
36
- updatedAt: Date;
37
- }, unknown, z.core.$ZodTypeInternals<{
38
- uuid: string;
39
- code: string;
40
- title: string;
41
- description?: string | null | undefined;
42
- references: {
43
- uuid: string;
44
- styleId: string;
45
- photoUrl: string;
46
- description?: string | null | undefined;
47
- order: number;
48
- createdAt: Date;
49
- updatedAt: Date;
50
- }[];
51
- createdAt: Date;
52
- updatedAt: Date;
53
- }, unknown>>>;
54
- code: z.ZodOptional<z.ZodString>;
55
- message: z.ZodOptional<z.ZodString>;
56
- }, z.core.$strip>;
57
- type Response = z.infer<typeof ResponseSchema>;
58
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreatePhotoSessionStyleCommand = exports.CreatePhotoSessionStyleReferenceSchema = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../../common/models/command-response.schema");
6
- const models_1 = require("../../models");
7
- exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
8
- photoUrl: zod_1.z.string(),
9
- description: zod_1.z.string().optional(),
10
- order: zod_1.z.number().int().min(0).max(5),
11
- });
12
- var CreatePhotoSessionStyleCommand;
13
- (function (CreatePhotoSessionStyleCommand) {
14
- CreatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
15
- code: zod_1.z.string(),
16
- title: zod_1.z.string(),
17
- description: zod_1.z.string().optional(),
18
- references: zod_1.z.array(exports.CreatePhotoSessionStyleReferenceSchema).max(6),
19
- });
20
- CreatePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
21
- })(CreatePhotoSessionStyleCommand || (exports.CreatePhotoSessionStyleCommand = CreatePhotoSessionStyleCommand = {}));
@@ -1,14 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace DeletePhotoSessionStyleCommand {
3
- const RequestSchema: z.ZodObject<{
4
- uuid: z.ZodString;
5
- }, z.core.$strip>;
6
- type Request = z.infer<typeof RequestSchema>;
7
- const ResponseSchema: z.ZodObject<{
8
- isSuccess: z.ZodBoolean;
9
- data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
10
- code: z.ZodOptional<z.ZodString>;
11
- message: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>;
13
- type Response = z.infer<typeof ResponseSchema>;
14
- }