@purpleschool/gptbot-tools 0.2.60-stage2 → 0.2.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/build/ai-proxy/routes/ai-proxy.routes.d.ts +0 -1
  2. package/build/ai-proxy/routes/ai-proxy.routes.js +0 -1
  3. package/build/index.d.ts +3 -3
  4. package/build/index.js +3 -3
  5. package/build/{photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts → sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts} +1 -1
  6. package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +14 -0
  7. package/build/{photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts → sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts} +2 -2
  8. package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +14 -0
  9. package/build/{tts/commands/improve-tts-text.command.d.ts → sound-generation/commands/get-sound-generation-price.command.d.ts} +8 -6
  10. package/build/sound-generation/commands/get-sound-generation-price.command.js +17 -0
  11. package/build/sound-generation/commands/index.d.ts +8 -0
  12. package/build/sound-generation/commands/index.js +24 -0
  13. package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +84 -0
  14. package/build/sound-generation/commands/retry-sound-generation-job.command.js +17 -0
  15. package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +85 -0
  16. package/build/{photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js → sound-generation/commands/set-reaction-to-sound-generation-job.command.js} +7 -7
  17. package/build/sound-generation/commands/sound-generation.command.d.ts +94 -0
  18. package/build/sound-generation/commands/sound-generation.command.js +27 -0
  19. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +83 -0
  20. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +16 -0
  21. package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +83 -0
  22. package/build/sound-generation/commands/update-sound-generation-job-title.command.js +16 -0
  23. package/build/sound-generation/enums/index.d.ts +1 -0
  24. package/build/{photo-sessions/routes → sound-generation/enums}/index.js +1 -2
  25. package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +3 -0
  26. package/build/sound-generation/enums/sound-generation-strategy.enum.js +7 -0
  27. package/build/sound-generation/models/index.d.ts +5 -0
  28. package/build/{photo-sessions → sound-generation}/models/index.js +5 -4
  29. package/build/sound-generation/models/sound-generation-config.schema.d.ts +34 -0
  30. package/build/sound-generation/models/sound-generation-config.schema.js +8 -0
  31. package/build/sound-generation/models/sound-generation-job.schema.d.ts +38 -0
  32. package/build/sound-generation/models/sound-generation-job.schema.js +34 -0
  33. package/build/sound-generation/models/sound-generation-model.schema.d.ts +42 -0
  34. package/build/sound-generation/models/sound-generation-model.schema.js +28 -0
  35. package/build/sound-generation/models/sound-generation-params.schema.d.ts +8 -0
  36. package/build/sound-generation/models/sound-generation-params.schema.js +10 -0
  37. package/build/sound-generation/models/sound-generation-result.schema.d.ts +6 -0
  38. package/build/sound-generation/models/sound-generation-result.schema.js +8 -0
  39. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +82 -0
  40. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +15 -0
  41. package/build/{photo-sessions/queries/find-photo-sessions-jobs.query.d.ts → sound-generation/queries/find-sound-generation-jobs.query.d.ts} +33 -63
  42. package/build/{photo-sessions/queries/find-photo-sessions-jobs.query.js → sound-generation/queries/find-sound-generation-jobs.query.js} +17 -10
  43. package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +76 -0
  44. package/build/sound-generation/queries/get-sound-generation-config.query.js +10 -0
  45. package/build/sound-generation/queries/index.d.ts +3 -0
  46. package/build/{photo-sessions/commands/admin → sound-generation/queries}/index.js +3 -3
  47. package/build/sound-generation/routes/index.d.ts +1 -0
  48. package/build/{photo-sessions/enums → sound-generation/routes}/index.js +1 -2
  49. package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +13 -0
  50. package/build/sound-generation/routes/sound-generation.amqp.routes.js +16 -0
  51. package/build/tools/enums/tool-content-type.enum.d.ts +2 -2
  52. package/build/tools/enums/tool-content-type.enum.js +1 -1
  53. package/build/tools/enums/tool-type.enum.d.ts +2 -2
  54. package/build/tools/enums/tool-type.enum.js +1 -1
  55. package/build/tools/models/global-tools-config.schema.d.ts +25 -69
  56. package/build/tools/models/global-tools-config.schema.js +2 -2
  57. package/build/tools/models/tools-with-configs.schema.d.ts +88 -22
  58. package/build/tools/models/tools-with-configs.schema.js +5 -0
  59. package/build/tools/queries/get-global-tools-config.query.d.ts +46 -134
  60. package/build/tools/queries/get-tools-with-configs.query.d.ts +88 -22
  61. package/build/tts/commands/index.d.ts +0 -7
  62. package/build/tts/commands/index.js +0 -7
  63. package/build/tts/commands/retry-tts-job.command.d.ts +2 -29
  64. package/build/tts/commands/retry-tts-job.command.js +0 -2
  65. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
  66. package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
  67. package/build/tts/commands/tts.command.d.ts +3 -35
  68. package/build/tts/commands/tts.command.js +1 -4
  69. package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
  70. package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
  71. package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
  72. package/build/tts/commands/update-tts-job-title.command.js +0 -2
  73. package/build/tts/enums/index.d.ts +0 -7
  74. package/build/tts/enums/index.js +0 -7
  75. package/build/tts/models/index.d.ts +0 -5
  76. package/build/tts/models/index.js +0 -5
  77. package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
  78. package/build/tts/models/tts-config.schema.d.ts +0 -11
  79. package/build/tts/models/tts-config.schema.js +0 -5
  80. package/build/tts/models/tts-job.schema.d.ts +2 -34
  81. package/build/tts/models/tts-job.schema.js +2 -22
  82. package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
  83. package/build/tts/models/tts-model.schema.d.ts +0 -1
  84. package/build/tts/models/tts-model.schema.js +0 -1
  85. package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
  86. package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
  87. package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
  88. package/build/tts/queries/find-tts-jobs.query.js +0 -1
  89. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
  90. package/build/tts/queries/get-tts-config.query.d.ts +0 -22
  91. package/build/tts/queries/index.d.ts +0 -2
  92. package/build/tts/queries/index.js +0 -2
  93. package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
  94. package/build/tts/routes/tts.amqp.routes.js +0 -9
  95. package/package.json +1 -1
  96. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
  97. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
  98. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
  99. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
  100. package/build/photo-sessions/commands/admin/index.d.ts +0 -3
  101. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -55
  102. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -28
  103. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -15
  104. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
  105. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -46
  106. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -30
  107. package/build/photo-sessions/commands/index.d.ts +0 -10
  108. package/build/photo-sessions/commands/index.js +0 -26
  109. package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -147
  110. package/build/photo-sessions/commands/photo-sessions.command.js +0 -41
  111. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -142
  112. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -23
  113. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -115
  114. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -113
  115. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
  116. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -113
  117. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
  118. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -118
  119. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
  120. package/build/photo-sessions/enums/index.d.ts +0 -2
  121. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
  122. package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
  123. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
  124. package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
  125. package/build/photo-sessions/models/index.d.ts +0 -4
  126. package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
  127. package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
  128. package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -78
  129. package/build/photo-sessions/models/photo-session-job.schema.js +0 -46
  130. package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
  131. package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
  132. package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
  133. package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
  134. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
  135. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
  136. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
  137. package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
  138. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -110
  139. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -10
  140. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
  141. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
  142. package/build/photo-sessions/queries/index.d.ts +0 -5
  143. package/build/photo-sessions/queries/index.js +0 -21
  144. package/build/photo-sessions/routes/index.d.ts +0 -2
  145. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
  146. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
  147. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
  148. package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
  149. package/build/tts/commands/create-voice-clone.command.d.ts +0 -60
  150. package/build/tts/commands/create-voice-clone.command.js +0 -20
  151. package/build/tts/commands/create-voice-design.command.d.ts +0 -37
  152. package/build/tts/commands/create-voice-design.command.js +0 -19
  153. package/build/tts/commands/delete-voice.command.d.ts +0 -17
  154. package/build/tts/commands/delete-voice.command.js +0 -14
  155. package/build/tts/commands/download-tts-job.command.d.ts +0 -25
  156. package/build/tts/commands/download-tts-job.command.js +0 -19
  157. package/build/tts/commands/improve-tts-text.command.js +0 -16
  158. package/build/tts/commands/select-voice-design.command.d.ts +0 -57
  159. package/build/tts/commands/select-voice-design.command.js +0 -17
  160. package/build/tts/commands/update-voice.command.d.ts +0 -57
  161. package/build/tts/commands/update-voice.command.js +0 -17
  162. package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
  163. package/build/tts/enums/tts-download-format.enum.js +0 -9
  164. package/build/tts/enums/voice-category.enum.d.ts +0 -19
  165. package/build/tts/enums/voice-category.enum.js +0 -23
  166. package/build/tts/enums/voice-gender.enum.d.ts +0 -4
  167. package/build/tts/enums/voice-gender.enum.js +0 -8
  168. package/build/tts/enums/voice-source.enum.d.ts +0 -5
  169. package/build/tts/enums/voice-source.enum.js +0 -9
  170. package/build/tts/enums/voice-status.enum.d.ts +0 -5
  171. package/build/tts/enums/voice-status.enum.js +0 -9
  172. package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
  173. package/build/tts/enums/voice-tag-group.enum.js +0 -9
  174. package/build/tts/enums/voice-tag.enum.d.ts +0 -20
  175. package/build/tts/enums/voice-tag.enum.js +0 -24
  176. package/build/tts/models/voice-category.schema.d.ts +0 -7
  177. package/build/tts/models/voice-category.schema.js +0 -9
  178. package/build/tts/models/voice-design-draft.schema.d.ts +0 -12
  179. package/build/tts/models/voice-design-draft.schema.js +0 -12
  180. package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
  181. package/build/tts/models/voice-design-sample.schema.js +0 -8
  182. package/build/tts/models/voice-tag.schema.d.ts +0 -9
  183. package/build/tts/models/voice-tag.schema.js +0 -11
  184. package/build/tts/models/voice.schema.d.ts +0 -27
  185. package/build/tts/models/voice.schema.js +0 -29
  186. package/build/tts/queries/find-voice-by-id.query.d.ts +0 -57
  187. package/build/tts/queries/find-voice-by-id.query.js +0 -17
  188. package/build/tts/queries/find-voices.query.d.ts +0 -92
  189. package/build/tts/queries/find-voices.query.js +0 -25
  190. /package/build/{photo-sessions → sound-generation}/index.d.ts +0 -0
  191. /package/build/{photo-sessions → sound-generation}/index.js +0 -0
@@ -7,5 +7,4 @@ export declare const AI_PROXY_ROUTES: {
7
7
  IMAGE_EDITOR_CALLBACK: string;
8
8
  MARKETPLACE_CARD_CALLBACK: string;
9
9
  INTERIOR_DESIGN_CALLBACK: string;
10
- PHOTO_SESSION_CALLBACK: string;
11
10
  };
@@ -10,5 +10,4 @@ exports.AI_PROXY_ROUTES = {
10
10
  IMAGE_EDITOR_CALLBACK: 'image-editor/callback',
11
11
  MARKETPLACE_CARD_CALLBACK: 'marketplace-card/callback',
12
12
  INTERIOR_DESIGN_CALLBACK: 'interior-design/callback',
13
- PHOTO_SESSION_CALLBACK: 'photo-session/callback',
14
13
  };
package/build/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export * from './html-page-builder';
22
22
  export * from './tool-workspace';
23
23
  export * from './diagrams';
24
24
  export * from './image-recognition';
25
- export * from './photo-sessions';
25
+ export * from './sound-generation';
26
26
  import * as common from './common';
27
27
  import * as paraphrase from './paraphrase';
28
28
  import * as tools from './tools';
@@ -47,7 +47,7 @@ import * as accountMerge from './account-merge';
47
47
  import * as toolWorkspace from './tool-workspace';
48
48
  import * as diagrams from './diagrams';
49
49
  import * as imageRecognition from './image-recognition';
50
- import * as photoSessions from './photo-sessions';
50
+ import * as soundGeneration from './sound-generation';
51
51
  export declare namespace ToolService {
52
52
  export import Common = common;
53
53
  export import Paraphrase = paraphrase;
@@ -73,5 +73,5 @@ export declare namespace ToolService {
73
73
  export import ToolWorkspace = toolWorkspace;
74
74
  export import Diagrams = diagrams;
75
75
  export import ImageRecognition = imageRecognition;
76
- export import PhotoSessions = photoSessions;
76
+ export import SoundGeneration = soundGeneration;
77
77
  }
package/build/index.js CHANGED
@@ -61,7 +61,7 @@ __exportStar(require("./html-page-builder"), exports);
61
61
  __exportStar(require("./tool-workspace"), exports);
62
62
  __exportStar(require("./diagrams"), exports);
63
63
  __exportStar(require("./image-recognition"), exports);
64
- __exportStar(require("./photo-sessions"), exports);
64
+ __exportStar(require("./sound-generation"), exports);
65
65
  const common = __importStar(require("./common"));
66
66
  const paraphrase = __importStar(require("./paraphrase"));
67
67
  const tools = __importStar(require("./tools"));
@@ -86,7 +86,7 @@ const accountMerge = __importStar(require("./account-merge"));
86
86
  const toolWorkspace = __importStar(require("./tool-workspace"));
87
87
  const diagrams = __importStar(require("./diagrams"));
88
88
  const imageRecognition = __importStar(require("./image-recognition"));
89
- const photoSessions = __importStar(require("./photo-sessions"));
89
+ const soundGeneration = __importStar(require("./sound-generation"));
90
90
  var ToolService;
91
91
  (function (ToolService) {
92
92
  ToolService.Common = common;
@@ -113,5 +113,5 @@ var ToolService;
113
113
  ToolService.ToolWorkspace = toolWorkspace;
114
114
  ToolService.Diagrams = diagrams;
115
115
  ToolService.ImageRecognition = imageRecognition;
116
- ToolService.PhotoSessions = photoSessions;
116
+ ToolService.SoundGeneration = soundGeneration;
117
117
  })(ToolService || (exports.ToolService = ToolService = {}));
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { JOB_SCOPE } from '../../common';
3
- export declare namespace DeleteAllPhotoSessionsJobsCommand {
3
+ export declare namespace DeleteAllSoundGenerationJobsCommand {
4
4
  const RequestSchema: z.ZodObject<{
5
5
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAllSoundGenerationJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ var DeleteAllSoundGenerationJobsCommand;
7
+ (function (DeleteAllSoundGenerationJobsCommand) {
8
+ DeleteAllSoundGenerationJobsCommand.RequestSchema = zod_1.z.object({
9
+ userId: zod_1.z.string().uuid().nullable().optional(),
10
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
11
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
12
+ });
13
+ DeleteAllSoundGenerationJobsCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.boolean());
14
+ })(DeleteAllSoundGenerationJobsCommand || (exports.DeleteAllSoundGenerationJobsCommand = DeleteAllSoundGenerationJobsCommand = {}));
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- export declare namespace DeletePhotoSessionsJobByUuidCommand {
2
+ export declare namespace DeleteSoundGenerationJobByUuidCommand {
3
3
  const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
4
5
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
6
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- uuid: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  type Request = z.infer<typeof RequestSchema>;
9
9
  const ResponseSchema: z.ZodObject<{
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteSoundGenerationJobByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ var DeleteSoundGenerationJobByUuidCommand;
7
+ (function (DeleteSoundGenerationJobByUuidCommand) {
8
+ DeleteSoundGenerationJobByUuidCommand.RequestSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ userId: zod_1.z.string().uuid().nullable().optional(),
11
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
12
+ });
13
+ DeleteSoundGenerationJobByUuidCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
14
+ })(DeleteSoundGenerationJobByUuidCommand || (exports.DeleteSoundGenerationJobByUuidCommand = DeleteSoundGenerationJobByUuidCommand = {}));
@@ -1,19 +1,21 @@
1
1
  import { z } from 'zod';
2
- export declare namespace ImproveTTSTextCommand {
2
+ export declare namespace GetSoundGenerationPriceCommand {
3
3
  const RequestSchema: z.ZodObject<{
4
- userInput: z.ZodString;
5
- locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
4
+ modelId: z.ZodString;
5
+ durationInSeconds: z.ZodOptional<z.ZodNumber>;
6
+ variations: z.ZodDefault<z.ZodNumber>;
6
7
  }, z.core.$strip>;
7
8
  type Request = z.infer<typeof RequestSchema>;
8
9
  const ResponseDataSchema: z.ZodObject<{
9
- text: z.ZodString;
10
+ price: z.ZodNumber;
10
11
  }, z.core.$strip>;
12
+ type ResponseData = z.infer<typeof ResponseDataSchema>;
11
13
  const ResponseSchema: z.ZodObject<{
12
14
  isSuccess: z.ZodBoolean;
13
15
  data: z.ZodOptional<z.ZodType<{
14
- text: string;
16
+ price: number;
15
17
  }, unknown, z.core.$ZodTypeInternals<{
16
- text: string;
18
+ price: number;
17
19
  }, unknown>>>;
18
20
  code: z.ZodOptional<z.ZodString>;
19
21
  message: z.ZodOptional<z.ZodString>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSoundGenerationPriceCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ var GetSoundGenerationPriceCommand;
7
+ (function (GetSoundGenerationPriceCommand) {
8
+ GetSoundGenerationPriceCommand.RequestSchema = zod_1.z.object({
9
+ modelId: zod_1.z.string().uuid(),
10
+ durationInSeconds: zod_1.z.number().min(0.5).max(30).multipleOf(0.5).optional(),
11
+ variations: zod_1.z.number().int().min(1).max(4).default(1),
12
+ });
13
+ GetSoundGenerationPriceCommand.ResponseDataSchema = zod_1.z.object({
14
+ price: zod_1.z.number(),
15
+ });
16
+ GetSoundGenerationPriceCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(GetSoundGenerationPriceCommand.ResponseDataSchema);
17
+ })(GetSoundGenerationPriceCommand || (exports.GetSoundGenerationPriceCommand = GetSoundGenerationPriceCommand = {}));
@@ -0,0 +1,8 @@
1
+ export * from './delete-all-sound-generation-jobs.command';
2
+ export * from './delete-sound-generation-job-by-uuid.command';
3
+ export * from './get-sound-generation-price.command';
4
+ export * from './retry-sound-generation-job.command';
5
+ export * from './set-reaction-to-sound-generation-job.command';
6
+ export * from './sound-generation.command';
7
+ export * from './update-sound-generation-job-favorite.command';
8
+ export * from './update-sound-generation-job-title.command';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./delete-all-sound-generation-jobs.command"), exports);
18
+ __exportStar(require("./delete-sound-generation-job-by-uuid.command"), exports);
19
+ __exportStar(require("./get-sound-generation-price.command"), exports);
20
+ __exportStar(require("./retry-sound-generation-job.command"), exports);
21
+ __exportStar(require("./set-reaction-to-sound-generation-job.command"), exports);
22
+ __exportStar(require("./sound-generation.command"), exports);
23
+ __exportStar(require("./update-sound-generation-job-favorite.command"), exports);
24
+ __exportStar(require("./update-sound-generation-job-title.command"), exports);
@@ -0,0 +1,84 @@
1
+ import { z } from 'zod';
2
+ export declare namespace RetrySoundGenerationJobCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ tokenReservationId: z.ZodString;
8
+ precalculatedPrice: z.ZodNumber;
9
+ }, z.core.$strip>;
10
+ type Request = z.infer<typeof RequestSchema>;
11
+ const ResponseSchema: z.ZodObject<{
12
+ isSuccess: z.ZodBoolean;
13
+ data: z.ZodOptional<z.ZodType<{
14
+ uuid: string;
15
+ prompt: string;
16
+ title: string;
17
+ status: import("../..").JOB_STATUS;
18
+ error: string | null;
19
+ internalError?: string | null | undefined;
20
+ modelId: string;
21
+ price: number;
22
+ params: {
23
+ durationInSeconds?: number | undefined;
24
+ variations: number;
25
+ loop: boolean;
26
+ promptInfluence: number;
27
+ };
28
+ results: {
29
+ audioUrl: string;
30
+ duration: number;
31
+ }[];
32
+ attempts: unknown[];
33
+ reaction: import("../..").USER_REACTION | null;
34
+ dislikeReason: string | null;
35
+ scope: import("../..").JOB_SCOPE;
36
+ locale: string;
37
+ processingAttemptId?: string | null | undefined;
38
+ userId?: string | null | undefined;
39
+ unregisteredUserId?: string | null | undefined;
40
+ tokenReservationId?: string | null | undefined;
41
+ isDeleted: boolean;
42
+ isFavorite: boolean;
43
+ createdAt: Date;
44
+ completedAt?: Date | null | undefined;
45
+ updatedAt: Date;
46
+ }, unknown, z.core.$ZodTypeInternals<{
47
+ uuid: string;
48
+ prompt: string;
49
+ title: string;
50
+ status: import("../..").JOB_STATUS;
51
+ error: string | null;
52
+ internalError?: string | null | undefined;
53
+ modelId: string;
54
+ price: number;
55
+ params: {
56
+ durationInSeconds?: number | undefined;
57
+ variations: number;
58
+ loop: boolean;
59
+ promptInfluence: number;
60
+ };
61
+ results: {
62
+ audioUrl: string;
63
+ duration: number;
64
+ }[];
65
+ attempts: unknown[];
66
+ reaction: import("../..").USER_REACTION | null;
67
+ dislikeReason: string | null;
68
+ scope: import("../..").JOB_SCOPE;
69
+ locale: string;
70
+ processingAttemptId?: string | null | undefined;
71
+ userId?: string | null | undefined;
72
+ unregisteredUserId?: string | null | undefined;
73
+ tokenReservationId?: string | null | undefined;
74
+ isDeleted: boolean;
75
+ isFavorite: boolean;
76
+ createdAt: Date;
77
+ completedAt?: Date | null | undefined;
78
+ updatedAt: Date;
79
+ }, unknown>>>;
80
+ code: z.ZodOptional<z.ZodString>;
81
+ message: z.ZodOptional<z.ZodString>;
82
+ }, z.core.$strip>;
83
+ type Response = z.infer<typeof ResponseSchema>;
84
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RetrySoundGenerationJobCommand = 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
+ var RetrySoundGenerationJobCommand;
8
+ (function (RetrySoundGenerationJobCommand) {
9
+ RetrySoundGenerationJobCommand.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
+ tokenReservationId: zod_1.z.string().uuid(),
14
+ precalculatedPrice: zod_1.z.number().positive(),
15
+ });
16
+ RetrySoundGenerationJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.SoundGenerationJobSchema);
17
+ })(RetrySoundGenerationJobCommand || (exports.RetrySoundGenerationJobCommand = RetrySoundGenerationJobCommand = {}));
@@ -0,0 +1,85 @@
1
+ import { z } from 'zod';
2
+ import { USER_REACTION } from '../../common';
3
+ export declare namespace SetReactionToSoundGenerationJobCommand {
4
+ const RequestSchema: z.ZodObject<{
5
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ uuid: z.ZodString;
8
+ reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
9
+ dislikeReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
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
+ prompt: string;
17
+ title: string;
18
+ status: import("../..").JOB_STATUS;
19
+ error: string | null;
20
+ internalError?: string | null | undefined;
21
+ modelId: string;
22
+ price: number;
23
+ params: {
24
+ durationInSeconds?: number | undefined;
25
+ variations: number;
26
+ loop: boolean;
27
+ promptInfluence: number;
28
+ };
29
+ results: {
30
+ audioUrl: string;
31
+ duration: number;
32
+ }[];
33
+ attempts: unknown[];
34
+ reaction: USER_REACTION | null;
35
+ dislikeReason: string | null;
36
+ scope: import("../..").JOB_SCOPE;
37
+ locale: string;
38
+ processingAttemptId?: string | null | undefined;
39
+ userId?: string | null | undefined;
40
+ unregisteredUserId?: string | null | undefined;
41
+ tokenReservationId?: string | null | undefined;
42
+ isDeleted: boolean;
43
+ isFavorite: boolean;
44
+ createdAt: Date;
45
+ completedAt?: Date | null | undefined;
46
+ updatedAt: Date;
47
+ }, unknown, z.core.$ZodTypeInternals<{
48
+ uuid: string;
49
+ prompt: string;
50
+ title: string;
51
+ status: import("../..").JOB_STATUS;
52
+ error: string | null;
53
+ internalError?: string | null | undefined;
54
+ modelId: string;
55
+ price: number;
56
+ params: {
57
+ durationInSeconds?: number | undefined;
58
+ variations: number;
59
+ loop: boolean;
60
+ promptInfluence: number;
61
+ };
62
+ results: {
63
+ audioUrl: string;
64
+ duration: number;
65
+ }[];
66
+ attempts: unknown[];
67
+ reaction: USER_REACTION | null;
68
+ dislikeReason: string | null;
69
+ scope: import("../..").JOB_SCOPE;
70
+ locale: string;
71
+ processingAttemptId?: string | null | undefined;
72
+ userId?: string | null | undefined;
73
+ unregisteredUserId?: string | null | undefined;
74
+ tokenReservationId?: string | null | undefined;
75
+ isDeleted: boolean;
76
+ isFavorite: boolean;
77
+ createdAt: Date;
78
+ completedAt?: Date | null | undefined;
79
+ updatedAt: Date;
80
+ }, unknown>>>;
81
+ code: z.ZodOptional<z.ZodString>;
82
+ message: z.ZodOptional<z.ZodString>;
83
+ }, z.core.$strip>;
84
+ type Response = z.infer<typeof ResponseSchema>;
85
+ }
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetReactionToPhotoSessionsJobCommand = void 0;
3
+ exports.SetReactionToSoundGenerationJobCommand = void 0;
4
4
  const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
5
6
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
7
  const models_1 = require("../models");
7
- const common_1 = require("../../common");
8
- var SetReactionToPhotoSessionsJobCommand;
9
- (function (SetReactionToPhotoSessionsJobCommand) {
10
- SetReactionToPhotoSessionsJobCommand.RequestSchema = zod_1.z
8
+ var SetReactionToSoundGenerationJobCommand;
9
+ (function (SetReactionToSoundGenerationJobCommand) {
10
+ SetReactionToSoundGenerationJobCommand.RequestSchema = zod_1.z
11
11
  .object({
12
12
  userId: zod_1.z.string().uuid().nullable().optional(),
13
13
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
@@ -23,5 +23,5 @@ var SetReactionToPhotoSessionsJobCommand;
23
23
  }, {
24
24
  message: 'Dislike reason is not allowed when reaction is not disliked',
25
25
  });
26
- SetReactionToPhotoSessionsJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
27
- })(SetReactionToPhotoSessionsJobCommand || (exports.SetReactionToPhotoSessionsJobCommand = SetReactionToPhotoSessionsJobCommand = {}));
26
+ SetReactionToSoundGenerationJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.SoundGenerationJobSchema);
27
+ })(SetReactionToSoundGenerationJobCommand || (exports.SetReactionToSoundGenerationJobCommand = SetReactionToSoundGenerationJobCommand = {}));
@@ -0,0 +1,94 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ export declare namespace SoundGenerationCommand {
4
+ const RequestSchema: z.ZodObject<{
5
+ locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
6
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
9
+ prompt: z.ZodString;
10
+ modelId: z.ZodString;
11
+ params: z.ZodObject<{
12
+ durationInSeconds: z.ZodOptional<z.ZodNumber>;
13
+ variations: z.ZodDefault<z.ZodNumber>;
14
+ loop: z.ZodDefault<z.ZodBoolean>;
15
+ promptInfluence: z.ZodDefault<z.ZodNumber>;
16
+ }, z.core.$strip>;
17
+ tokenReservationId: z.ZodString;
18
+ precalculatedPrice: z.ZodNumber;
19
+ }, z.core.$strip>;
20
+ type Request = z.infer<typeof RequestSchema>;
21
+ const ResponseSchema: z.ZodObject<{
22
+ isSuccess: z.ZodBoolean;
23
+ data: z.ZodOptional<z.ZodType<{
24
+ uuid: string;
25
+ prompt: string;
26
+ title: string;
27
+ status: import("../..").JOB_STATUS;
28
+ error: string | null;
29
+ internalError?: string | null | undefined;
30
+ modelId: string;
31
+ price: number;
32
+ params: {
33
+ durationInSeconds?: number | undefined;
34
+ variations: number;
35
+ loop: boolean;
36
+ promptInfluence: number;
37
+ };
38
+ results: {
39
+ audioUrl: string;
40
+ duration: number;
41
+ }[];
42
+ attempts: unknown[];
43
+ reaction: import("../..").USER_REACTION | null;
44
+ dislikeReason: string | null;
45
+ scope: JOB_SCOPE;
46
+ locale: string;
47
+ processingAttemptId?: string | null | undefined;
48
+ userId?: string | null | undefined;
49
+ unregisteredUserId?: string | null | undefined;
50
+ tokenReservationId?: string | null | undefined;
51
+ isDeleted: boolean;
52
+ isFavorite: boolean;
53
+ createdAt: Date;
54
+ completedAt?: Date | null | undefined;
55
+ updatedAt: Date;
56
+ }, unknown, z.core.$ZodTypeInternals<{
57
+ uuid: string;
58
+ prompt: string;
59
+ title: string;
60
+ status: import("../..").JOB_STATUS;
61
+ error: string | null;
62
+ internalError?: string | null | undefined;
63
+ modelId: string;
64
+ price: number;
65
+ params: {
66
+ durationInSeconds?: number | undefined;
67
+ variations: number;
68
+ loop: boolean;
69
+ promptInfluence: number;
70
+ };
71
+ results: {
72
+ audioUrl: string;
73
+ duration: number;
74
+ }[];
75
+ attempts: unknown[];
76
+ reaction: import("../..").USER_REACTION | null;
77
+ dislikeReason: string | null;
78
+ scope: JOB_SCOPE;
79
+ locale: string;
80
+ processingAttemptId?: string | null | undefined;
81
+ userId?: string | null | undefined;
82
+ unregisteredUserId?: string | null | undefined;
83
+ tokenReservationId?: string | null | undefined;
84
+ isDeleted: boolean;
85
+ isFavorite: boolean;
86
+ createdAt: Date;
87
+ completedAt?: Date | null | undefined;
88
+ updatedAt: Date;
89
+ }, unknown>>>;
90
+ code: z.ZodOptional<z.ZodString>;
91
+ message: z.ZodOptional<z.ZodString>;
92
+ }, z.core.$strip>;
93
+ type Response = z.infer<typeof ResponseSchema>;
94
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SoundGenerationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const models_1 = require("../models");
7
+ const sound_generation_params_schema_1 = require("../models/sound-generation-params.schema");
8
+ var SoundGenerationCommand;
9
+ (function (SoundGenerationCommand) {
10
+ SoundGenerationCommand.RequestSchema = zod_1.z
11
+ .object({
12
+ locale: common_1.LocaleSchema,
13
+ userId: zod_1.z.string().uuid().nullable().optional(),
14
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
15
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
16
+ prompt: zod_1.z.string().min(1),
17
+ modelId: zod_1.z.string().uuid(),
18
+ params: sound_generation_params_schema_1.SoundGenerationParamsSchema,
19
+ tokenReservationId: zod_1.z.string().uuid(),
20
+ precalculatedPrice: zod_1.z.number().positive(),
21
+ })
22
+ .refine((data) => Boolean(data.userId) !== Boolean(data.unregisteredUserId), {
23
+ message: 'Exactly one of userId or unregisteredUserId is required',
24
+ path: ['userId', 'unregisteredUserId'],
25
+ });
26
+ SoundGenerationCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.SoundGenerationJobSchema);
27
+ })(SoundGenerationCommand || (exports.SoundGenerationCommand = SoundGenerationCommand = {}));
@@ -0,0 +1,83 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateSoundGenerationJobFavoriteCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ isFavorite: z.ZodBoolean;
8
+ }, z.core.$strip>;
9
+ type Request = z.infer<typeof RequestSchema>;
10
+ const ResponseSchema: z.ZodObject<{
11
+ isSuccess: z.ZodBoolean;
12
+ data: z.ZodOptional<z.ZodType<{
13
+ uuid: string;
14
+ prompt: string;
15
+ title: string;
16
+ status: import("../..").JOB_STATUS;
17
+ error: string | null;
18
+ internalError?: string | null | undefined;
19
+ modelId: string;
20
+ price: number;
21
+ params: {
22
+ durationInSeconds?: number | undefined;
23
+ variations: number;
24
+ loop: boolean;
25
+ promptInfluence: number;
26
+ };
27
+ results: {
28
+ audioUrl: string;
29
+ duration: number;
30
+ }[];
31
+ attempts: unknown[];
32
+ reaction: import("../..").USER_REACTION | null;
33
+ dislikeReason: string | null;
34
+ scope: import("../..").JOB_SCOPE;
35
+ locale: string;
36
+ processingAttemptId?: string | null | undefined;
37
+ userId?: string | null | undefined;
38
+ unregisteredUserId?: string | null | undefined;
39
+ tokenReservationId?: string | null | undefined;
40
+ isDeleted: boolean;
41
+ isFavorite: boolean;
42
+ createdAt: Date;
43
+ completedAt?: Date | null | undefined;
44
+ updatedAt: Date;
45
+ }, unknown, z.core.$ZodTypeInternals<{
46
+ uuid: string;
47
+ prompt: string;
48
+ title: string;
49
+ status: import("../..").JOB_STATUS;
50
+ error: string | null;
51
+ internalError?: string | null | undefined;
52
+ modelId: string;
53
+ price: number;
54
+ params: {
55
+ durationInSeconds?: number | undefined;
56
+ variations: number;
57
+ loop: boolean;
58
+ promptInfluence: number;
59
+ };
60
+ results: {
61
+ audioUrl: string;
62
+ duration: number;
63
+ }[];
64
+ attempts: unknown[];
65
+ reaction: import("../..").USER_REACTION | null;
66
+ dislikeReason: string | null;
67
+ scope: import("../..").JOB_SCOPE;
68
+ locale: string;
69
+ processingAttemptId?: string | null | undefined;
70
+ userId?: string | null | undefined;
71
+ unregisteredUserId?: string | null | undefined;
72
+ tokenReservationId?: string | null | undefined;
73
+ isDeleted: boolean;
74
+ isFavorite: boolean;
75
+ createdAt: Date;
76
+ completedAt?: Date | null | undefined;
77
+ updatedAt: Date;
78
+ }, unknown>>>;
79
+ code: z.ZodOptional<z.ZodString>;
80
+ message: z.ZodOptional<z.ZodString>;
81
+ }, z.core.$strip>;
82
+ type Response = z.infer<typeof ResponseSchema>;
83
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSoundGenerationJobFavoriteCommand = 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
+ var UpdateSoundGenerationJobFavoriteCommand;
8
+ (function (UpdateSoundGenerationJobFavoriteCommand) {
9
+ UpdateSoundGenerationJobFavoriteCommand.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
+ isFavorite: zod_1.z.boolean(),
14
+ });
15
+ UpdateSoundGenerationJobFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.SoundGenerationJobSchema);
16
+ })(UpdateSoundGenerationJobFavoriteCommand || (exports.UpdateSoundGenerationJobFavoriteCommand = UpdateSoundGenerationJobFavoriteCommand = {}));