@purpleschool/multisite 0.0.9 → 0.0.11

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 (189) hide show
  1. package/api/controller/http/index.ts +2 -0
  2. package/api/controller/http/stt.ts +14 -0
  3. package/api/controller/http/subscription.ts +1 -0
  4. package/api/controller/http/tts.ts +14 -0
  5. package/api/routes.ts +66 -0
  6. package/build/api/controller/http/index.d.ts +2 -0
  7. package/build/api/controller/http/index.d.ts.map +1 -1
  8. package/build/api/controller/http/index.js +2 -0
  9. package/build/api/controller/http/stt.d.ts +14 -0
  10. package/build/api/controller/http/stt.d.ts.map +1 -0
  11. package/build/api/controller/http/stt.js +16 -0
  12. package/build/api/controller/http/subscription.d.ts +1 -0
  13. package/build/api/controller/http/subscription.d.ts.map +1 -1
  14. package/build/api/controller/http/subscription.js +1 -0
  15. package/build/api/controller/http/tts.d.ts +14 -0
  16. package/build/api/controller/http/tts.d.ts.map +1 -0
  17. package/build/api/controller/http/tts.js +16 -0
  18. package/build/api/routes.d.ts +45 -0
  19. package/build/api/routes.d.ts.map +1 -1
  20. package/build/api/routes.js +45 -0
  21. package/build/commands/index.d.ts +2 -0
  22. package/build/commands/index.d.ts.map +1 -1
  23. package/build/commands/index.js +2 -0
  24. package/build/commands/stt/delete-all-stt-jobs.command.d.ts +12 -0
  25. package/build/commands/stt/delete-all-stt-jobs.command.d.ts.map +1 -0
  26. package/build/commands/stt/delete-all-stt-jobs.command.js +10 -0
  27. package/build/commands/stt/delete-stt-job-by-uuid.command.d.ts +20 -0
  28. package/build/commands/stt/delete-stt-job-by-uuid.command.d.ts.map +1 -0
  29. package/build/commands/stt/delete-stt-job-by-uuid.command.js +13 -0
  30. package/build/commands/stt/execute-stt.command.d.ts +213 -0
  31. package/build/commands/stt/execute-stt.command.d.ts.map +1 -0
  32. package/build/commands/stt/execute-stt.command.js +15 -0
  33. package/build/commands/stt/index.d.ts +7 -0
  34. package/build/commands/stt/index.d.ts.map +1 -0
  35. package/build/commands/stt/index.js +22 -0
  36. package/build/commands/stt/retry-stt-job.command.d.ts +210 -0
  37. package/build/commands/stt/retry-stt-job.command.d.ts.map +1 -0
  38. package/build/commands/stt/retry-stt-job.command.js +14 -0
  39. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +222 -0
  40. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts.map +1 -0
  41. package/build/commands/stt/set-reaction-to-stt-job.command.js +19 -0
  42. package/build/commands/stt/update-stt-job-title.command.d.ts +218 -0
  43. package/build/commands/stt/update-stt-job-title.command.d.ts.map +1 -0
  44. package/build/commands/stt/update-stt-job-title.command.js +17 -0
  45. package/build/commands/subscription/fast-buy-subscription.command.d.ts +559 -0
  46. package/build/commands/subscription/fast-buy-subscription.command.d.ts.map +1 -0
  47. package/build/commands/subscription/fast-buy-subscription.command.js +21 -0
  48. package/build/commands/subscription/index.d.ts +1 -0
  49. package/build/commands/subscription/index.d.ts.map +1 -1
  50. package/build/commands/subscription/index.js +1 -0
  51. package/build/commands/tts/delete-all-tts-jobs.command.d.ts +12 -0
  52. package/build/commands/tts/delete-all-tts-jobs.command.d.ts.map +1 -0
  53. package/build/commands/tts/delete-all-tts-jobs.command.js +10 -0
  54. package/build/commands/tts/delete-tts-job-by-uuid.command.d.ts +20 -0
  55. package/build/commands/tts/delete-tts-job-by-uuid.command.d.ts.map +1 -0
  56. package/build/commands/tts/delete-tts-job-by-uuid.command.js +13 -0
  57. package/build/commands/tts/execute-tts.command.d.ts +256 -0
  58. package/build/commands/tts/execute-tts.command.d.ts.map +1 -0
  59. package/build/commands/tts/execute-tts.command.js +26 -0
  60. package/build/commands/tts/index.d.ts +7 -0
  61. package/build/commands/tts/index.d.ts.map +1 -0
  62. package/build/commands/tts/index.js +22 -0
  63. package/build/commands/tts/retry-tts-job.command.d.ts +217 -0
  64. package/build/commands/tts/retry-tts-job.command.d.ts.map +1 -0
  65. package/build/commands/tts/retry-tts-job.command.js +14 -0
  66. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +229 -0
  67. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts.map +1 -0
  68. package/build/commands/tts/set-reaction-to-tts-job.command.js +19 -0
  69. package/build/commands/tts/update-tts-job-title.command.d.ts +225 -0
  70. package/build/commands/tts/update-tts-job-title.command.d.ts.map +1 -0
  71. package/build/commands/tts/update-tts-job-title.command.js +17 -0
  72. package/build/constants/errors/errors.d.ts +90 -0
  73. package/build/constants/errors/errors.d.ts.map +1 -1
  74. package/build/constants/errors/errors.js +92 -0
  75. package/build/constants/files/enums/file-type.enum.d.ts +2 -1
  76. package/build/constants/files/enums/file-type.enum.d.ts.map +1 -1
  77. package/build/constants/files/enums/file-type.enum.js +1 -0
  78. package/build/constants/tools/enums/tool-type.enum.d.ts +3 -1
  79. package/build/constants/tools/enums/tool-type.enum.d.ts.map +1 -1
  80. package/build/constants/tools/enums/tool-type.enum.js +2 -0
  81. package/build/models/index.d.ts +2 -0
  82. package/build/models/index.d.ts.map +1 -1
  83. package/build/models/index.js +2 -0
  84. package/build/models/stt/index.d.ts +6 -0
  85. package/build/models/stt/index.d.ts.map +1 -0
  86. package/build/models/stt/index.js +21 -0
  87. package/build/models/stt/stt-config.schema.d.ts +165 -0
  88. package/build/models/stt/stt-config.schema.d.ts.map +1 -0
  89. package/build/models/stt/stt-config.schema.js +8 -0
  90. package/build/models/stt/stt-job-attempt.schema.d.ts +20 -0
  91. package/build/models/stt/stt-job-attempt.schema.d.ts.map +1 -0
  92. package/build/models/stt/stt-job-attempt.schema.js +11 -0
  93. package/build/models/stt/stt-job.schema.d.ts +127 -0
  94. package/build/models/stt/stt-job.schema.d.ts.map +1 -0
  95. package/build/models/stt/stt-job.schema.js +32 -0
  96. package/build/models/stt/stt-model.schema.d.ts +110 -0
  97. package/build/models/stt/stt-model.schema.d.ts.map +1 -0
  98. package/build/models/stt/stt-model.schema.js +23 -0
  99. package/build/models/stt/stt-response.schema.d.ts +19 -0
  100. package/build/models/stt/stt-response.schema.d.ts.map +1 -0
  101. package/build/models/stt/stt-response.schema.js +10 -0
  102. package/build/models/tts/index.d.ts +6 -0
  103. package/build/models/tts/index.d.ts.map +1 -0
  104. package/build/models/tts/index.js +21 -0
  105. package/build/models/tts/tts-config.schema.d.ts +1117 -0
  106. package/build/models/tts/tts-config.schema.d.ts.map +1 -0
  107. package/build/models/tts/tts-config.schema.js +8 -0
  108. package/build/models/tts/tts-job-attempt.schema.d.ts +20 -0
  109. package/build/models/tts/tts-job-attempt.schema.d.ts.map +1 -0
  110. package/build/models/tts/tts-job-attempt.schema.js +11 -0
  111. package/build/models/tts/tts-job-params.schema.d.ts +22 -0
  112. package/build/models/tts/tts-job-params.schema.d.ts.map +1 -0
  113. package/build/models/tts/tts-job-params.schema.js +11 -0
  114. package/build/models/tts/tts-job.schema.d.ts +132 -0
  115. package/build/models/tts/tts-job.schema.d.ts.map +1 -0
  116. package/build/models/tts/tts-job.schema.js +32 -0
  117. package/build/models/tts/tts-model.schema.d.ts +1530 -0
  118. package/build/models/tts/tts-model.schema.d.ts.map +1 -0
  119. package/build/models/tts/tts-model.schema.js +58 -0
  120. package/build/queries/index.d.ts +2 -0
  121. package/build/queries/index.d.ts.map +1 -1
  122. package/build/queries/index.js +2 -0
  123. package/build/queries/stt/find-stt-jobs.command.d.ts +236 -0
  124. package/build/queries/stt/find-stt-jobs.command.d.ts.map +1 -0
  125. package/build/queries/stt/find-stt-jobs.command.js +20 -0
  126. package/build/queries/stt/get-stt-config.command.d.ts +227 -0
  127. package/build/queries/stt/get-stt-config.command.d.ts.map +1 -0
  128. package/build/queries/stt/get-stt-config.command.js +11 -0
  129. package/build/queries/stt/get-stt-job.command.d.ts +210 -0
  130. package/build/queries/stt/get-stt-job.command.d.ts.map +1 -0
  131. package/build/queries/stt/get-stt-job.command.js +14 -0
  132. package/build/queries/stt/index.d.ts +4 -0
  133. package/build/queries/stt/index.d.ts.map +1 -0
  134. package/build/queries/stt/index.js +19 -0
  135. package/build/queries/tts/find-tts-jobs.command.d.ts +243 -0
  136. package/build/queries/tts/find-tts-jobs.command.d.ts.map +1 -0
  137. package/build/queries/tts/find-tts-jobs.command.js +20 -0
  138. package/build/queries/tts/get-tts-config.command.d.ts +1371 -0
  139. package/build/queries/tts/get-tts-config.command.d.ts.map +1 -0
  140. package/build/queries/tts/get-tts-config.command.js +11 -0
  141. package/build/queries/tts/get-tts-job.command.d.ts +217 -0
  142. package/build/queries/tts/get-tts-job.command.d.ts.map +1 -0
  143. package/build/queries/tts/get-tts-job.command.js +14 -0
  144. package/build/queries/tts/index.d.ts +4 -0
  145. package/build/queries/tts/index.d.ts.map +1 -0
  146. package/build/queries/tts/index.js +19 -0
  147. package/commands/index.ts +2 -0
  148. package/commands/stt/delete-all-stt-jobs.command.ts +8 -0
  149. package/commands/stt/delete-stt-job-by-uuid.command.ts +13 -0
  150. package/commands/stt/execute-stt.command.ts +15 -0
  151. package/commands/stt/index.ts +6 -0
  152. package/commands/stt/retry-stt-job.command.ts +14 -0
  153. package/commands/stt/set-reaction-to-stt-job.command.ts +21 -0
  154. package/commands/stt/update-stt-job-title.command.ts +19 -0
  155. package/commands/subscription/fast-buy-subscription.command.ts +23 -0
  156. package/commands/subscription/index.ts +1 -0
  157. package/commands/tts/delete-all-tts-jobs.command.ts +8 -0
  158. package/commands/tts/delete-tts-job-by-uuid.command.ts +13 -0
  159. package/commands/tts/execute-tts.command.ts +26 -0
  160. package/commands/tts/index.ts +6 -0
  161. package/commands/tts/retry-tts-job.command.ts +14 -0
  162. package/commands/tts/set-reaction-to-tts-job.command.ts +21 -0
  163. package/commands/tts/update-tts-job-title.command.ts +19 -0
  164. package/constants/errors/errors.ts +94 -0
  165. package/constants/files/enums/file-type.enum.ts +1 -0
  166. package/constants/tools/enums/tool-type.enum.ts +2 -0
  167. package/models/index.ts +2 -0
  168. package/models/stt/index.ts +5 -0
  169. package/models/stt/stt-config.schema.ts +8 -0
  170. package/models/stt/stt-job-attempt.schema.ts +11 -0
  171. package/models/stt/stt-job.schema.ts +32 -0
  172. package/models/stt/stt-model.schema.ts +23 -0
  173. package/models/stt/stt-response.schema.ts +10 -0
  174. package/models/tts/index.ts +5 -0
  175. package/models/tts/tts-config.schema.ts +8 -0
  176. package/models/tts/tts-job-attempt.schema.ts +11 -0
  177. package/models/tts/tts-job-params.schema.ts +11 -0
  178. package/models/tts/tts-job.schema.ts +32 -0
  179. package/models/tts/tts-model.schema.ts +66 -0
  180. package/package.json +1 -1
  181. package/queries/index.ts +2 -0
  182. package/queries/stt/find-stt-jobs.command.ts +20 -0
  183. package/queries/stt/get-stt-config.command.ts +9 -0
  184. package/queries/stt/get-stt-job.command.ts +14 -0
  185. package/queries/stt/index.ts +3 -0
  186. package/queries/tts/find-tts-jobs.command.ts +20 -0
  187. package/queries/tts/get-tts-config.command.ts +9 -0
  188. package/queries/tts/get-tts-job.command.ts +14 -0
  189. package/queries/tts/index.ts +3 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tts-config.schema.d.ts","sourceRoot":"","sources":["../../../models/tts/tts-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TTSConfigSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const tts_model_schema_1 = require("./tts-model.schema");
6
+ exports.TTSConfigSchema = zod_1.z.object({
7
+ models: zod_1.z.array(tts_model_schema_1.TTSModelSchema),
8
+ });
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { JOB_STATUS } from '../../constants';
3
+ export declare const TTSJobAttemptSchema: z.ZodObject<{
4
+ order: z.ZodNumber;
5
+ status: z.ZodNativeEnum<typeof JOB_STATUS>;
6
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ timestamp: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ status: JOB_STATUS;
10
+ order: number;
11
+ timestamp: string;
12
+ error?: string | null | undefined;
13
+ }, {
14
+ status: JOB_STATUS;
15
+ order: number;
16
+ timestamp: string;
17
+ error?: string | null | undefined;
18
+ }>;
19
+ export type TTSJobAttempt = z.infer<typeof TTSJobAttemptSchema>;
20
+ //# sourceMappingURL=tts-job-attempt.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tts-job-attempt.schema.d.ts","sourceRoot":"","sources":["../../../models/tts/tts-job-attempt.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TTSJobAttemptSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ exports.TTSJobAttemptSchema = zod_1.z.object({
7
+ order: zod_1.z.number(),
8
+ status: zod_1.z.nativeEnum(constants_1.JOB_STATUS),
9
+ error: zod_1.z.string().nullable().optional(),
10
+ timestamp: zod_1.z.string(),
11
+ });
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ export declare const TTSJobParamsSchema: z.ZodObject<{
3
+ speed: z.ZodOptional<z.ZodNumber>;
4
+ similarity: z.ZodOptional<z.ZodNumber>;
5
+ stability: z.ZodOptional<z.ZodNumber>;
6
+ style: z.ZodOptional<z.ZodNumber>;
7
+ language: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ speed?: number | undefined;
10
+ stability?: number | undefined;
11
+ similarity?: number | undefined;
12
+ style?: number | undefined;
13
+ language?: string | undefined;
14
+ }, {
15
+ speed?: number | undefined;
16
+ stability?: number | undefined;
17
+ similarity?: number | undefined;
18
+ style?: number | undefined;
19
+ language?: string | undefined;
20
+ }>;
21
+ export type TTSJobParams = z.infer<typeof TTSJobParamsSchema>;
22
+ //# sourceMappingURL=tts-job-params.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tts-job-params.schema.d.ts","sourceRoot":"","sources":["../../../models/tts/tts-job-params.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TTSJobParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TTSJobParamsSchema = zod_1.z.object({
6
+ speed: zod_1.z.number().optional(),
7
+ similarity: zod_1.z.number().optional(),
8
+ stability: zod_1.z.number().optional(),
9
+ style: zod_1.z.number().optional(),
10
+ language: zod_1.z.string().optional(),
11
+ });
@@ -0,0 +1,132 @@
1
+ import { z } from 'zod';
2
+ import { JOB_STATUS, USER_REACTION } from '../../constants';
3
+ export declare const TTSJobSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ siteId: z.ZodString;
6
+ userInput: z.ZodString;
7
+ aiResponse: z.ZodNullable<z.ZodString>;
8
+ reaction: z.ZodNullable<z.ZodNativeEnum<typeof USER_REACTION>>;
9
+ dislikeReason: z.ZodNullable<z.ZodString>;
10
+ title: z.ZodString;
11
+ status: z.ZodNativeEnum<typeof JOB_STATUS>;
12
+ error: z.ZodNullable<z.ZodString>;
13
+ internalError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ modelId: z.ZodString;
15
+ voiceId: z.ZodString;
16
+ price: z.ZodNumber;
17
+ duration: z.ZodNumber;
18
+ userId: z.ZodNullable<z.ZodString>;
19
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
20
+ tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
22
+ order: z.ZodNumber;
23
+ status: z.ZodNativeEnum<typeof JOB_STATUS>;
24
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ timestamp: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ status: JOB_STATUS;
28
+ order: number;
29
+ timestamp: string;
30
+ error?: string | null | undefined;
31
+ }, {
32
+ status: JOB_STATUS;
33
+ order: number;
34
+ timestamp: string;
35
+ error?: string | null | undefined;
36
+ }>, "many">>;
37
+ params: z.ZodObject<{
38
+ speed: z.ZodOptional<z.ZodNumber>;
39
+ similarity: z.ZodOptional<z.ZodNumber>;
40
+ stability: z.ZodOptional<z.ZodNumber>;
41
+ style: z.ZodOptional<z.ZodNumber>;
42
+ language: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ speed?: number | undefined;
45
+ stability?: number | undefined;
46
+ similarity?: number | undefined;
47
+ style?: number | undefined;
48
+ language?: string | undefined;
49
+ }, {
50
+ speed?: number | undefined;
51
+ stability?: number | undefined;
52
+ similarity?: number | undefined;
53
+ style?: number | undefined;
54
+ language?: string | undefined;
55
+ }>;
56
+ isDeleted: z.ZodBoolean;
57
+ createdAt: z.ZodDate;
58
+ updatedAt: z.ZodDate;
59
+ completedAt: z.ZodNullable<z.ZodDate>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ price: number;
62
+ uuid: string;
63
+ siteId: string;
64
+ status: JOB_STATUS;
65
+ params: {
66
+ speed?: number | undefined;
67
+ stability?: number | undefined;
68
+ similarity?: number | undefined;
69
+ style?: number | undefined;
70
+ language?: string | undefined;
71
+ };
72
+ duration: number;
73
+ title: string;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ error: string | null;
77
+ modelId: string;
78
+ reaction: USER_REACTION | null;
79
+ dislikeReason: string | null;
80
+ attempts: {
81
+ status: JOB_STATUS;
82
+ order: number;
83
+ timestamp: string;
84
+ error?: string | null | undefined;
85
+ }[];
86
+ userId: string | null;
87
+ unregisteredUserId: string | null;
88
+ isDeleted: boolean;
89
+ completedAt: Date | null;
90
+ aiResponse: string | null;
91
+ userInput: string;
92
+ voiceId: string;
93
+ internalError?: string | null | undefined;
94
+ tokenReservationId?: string | null | undefined;
95
+ }, {
96
+ price: number;
97
+ uuid: string;
98
+ siteId: string;
99
+ status: JOB_STATUS;
100
+ params: {
101
+ speed?: number | undefined;
102
+ stability?: number | undefined;
103
+ similarity?: number | undefined;
104
+ style?: number | undefined;
105
+ language?: string | undefined;
106
+ };
107
+ duration: number;
108
+ title: string;
109
+ createdAt: Date;
110
+ updatedAt: Date;
111
+ error: string | null;
112
+ modelId: string;
113
+ reaction: USER_REACTION | null;
114
+ dislikeReason: string | null;
115
+ userId: string | null;
116
+ unregisteredUserId: string | null;
117
+ isDeleted: boolean;
118
+ completedAt: Date | null;
119
+ aiResponse: string | null;
120
+ userInput: string;
121
+ voiceId: string;
122
+ attempts?: {
123
+ status: JOB_STATUS;
124
+ order: number;
125
+ timestamp: string;
126
+ error?: string | null | undefined;
127
+ }[] | undefined;
128
+ internalError?: string | null | undefined;
129
+ tokenReservationId?: string | null | undefined;
130
+ }>;
131
+ export type TTSJob = z.infer<typeof TTSJobSchema>;
132
+ //# sourceMappingURL=tts-job.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tts-job.schema.d.ts","sourceRoot":"","sources":["../../../models/tts/tts-job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAI5D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBvB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TTSJobSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ const tts_job_attempt_schema_1 = require("./tts-job-attempt.schema");
7
+ const tts_job_params_schema_1 = require("./tts-job-params.schema");
8
+ exports.TTSJobSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string(),
10
+ siteId: zod_1.z.string(),
11
+ userInput: zod_1.z.string(),
12
+ aiResponse: zod_1.z.string().nullable(),
13
+ reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
14
+ dislikeReason: zod_1.z.string().nullable(),
15
+ title: zod_1.z.string(),
16
+ status: zod_1.z.nativeEnum(constants_1.JOB_STATUS),
17
+ error: zod_1.z.string().nullable(),
18
+ internalError: zod_1.z.string().nullable().optional(),
19
+ modelId: zod_1.z.string(),
20
+ voiceId: zod_1.z.string(),
21
+ price: zod_1.z.number(),
22
+ duration: zod_1.z.number(),
23
+ userId: zod_1.z.string().nullable(),
24
+ unregisteredUserId: zod_1.z.string().nullable(),
25
+ tokenReservationId: zod_1.z.string().nullable().optional(),
26
+ attempts: zod_1.z.array(tts_job_attempt_schema_1.TTSJobAttemptSchema).default([]),
27
+ params: tts_job_params_schema_1.TTSJobParamsSchema,
28
+ isDeleted: zod_1.z.boolean(),
29
+ createdAt: zod_1.z.date(),
30
+ updatedAt: zod_1.z.date(),
31
+ completedAt: zod_1.z.date().nullable(),
32
+ });