@purpleschool/multisite 0.0.8 → 0.0.10

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 (184) 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/tts.ts +14 -0
  4. package/api/routes.ts +64 -0
  5. package/build/api/controller/http/index.d.ts +2 -0
  6. package/build/api/controller/http/index.d.ts.map +1 -1
  7. package/build/api/controller/http/index.js +2 -0
  8. package/build/api/controller/http/stt.d.ts +14 -0
  9. package/build/api/controller/http/stt.d.ts.map +1 -0
  10. package/build/api/controller/http/stt.js +16 -0
  11. package/build/api/controller/http/tts.d.ts +14 -0
  12. package/build/api/controller/http/tts.d.ts.map +1 -0
  13. package/build/api/controller/http/tts.js +16 -0
  14. package/build/api/routes.d.ts +44 -0
  15. package/build/api/routes.d.ts.map +1 -1
  16. package/build/api/routes.js +44 -0
  17. package/build/commands/index.d.ts +2 -0
  18. package/build/commands/index.d.ts.map +1 -1
  19. package/build/commands/index.js +2 -0
  20. package/build/commands/payment/cloud-payments.command.d.ts +10 -10
  21. package/build/commands/payment/cloud-payments.command.js +4 -4
  22. package/build/commands/stt/delete-all-stt-jobs.command.d.ts +12 -0
  23. package/build/commands/stt/delete-all-stt-jobs.command.d.ts.map +1 -0
  24. package/build/commands/stt/delete-all-stt-jobs.command.js +10 -0
  25. package/build/commands/stt/delete-stt-job-by-uuid.command.d.ts +20 -0
  26. package/build/commands/stt/delete-stt-job-by-uuid.command.d.ts.map +1 -0
  27. package/build/commands/stt/delete-stt-job-by-uuid.command.js +13 -0
  28. package/build/commands/stt/execute-stt.command.d.ts +213 -0
  29. package/build/commands/stt/execute-stt.command.d.ts.map +1 -0
  30. package/build/commands/stt/execute-stt.command.js +15 -0
  31. package/build/commands/stt/index.d.ts +7 -0
  32. package/build/commands/stt/index.d.ts.map +1 -0
  33. package/build/commands/stt/index.js +22 -0
  34. package/build/commands/stt/retry-stt-job.command.d.ts +210 -0
  35. package/build/commands/stt/retry-stt-job.command.d.ts.map +1 -0
  36. package/build/commands/stt/retry-stt-job.command.js +14 -0
  37. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +222 -0
  38. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts.map +1 -0
  39. package/build/commands/stt/set-reaction-to-stt-job.command.js +19 -0
  40. package/build/commands/stt/update-stt-job-title.command.d.ts +218 -0
  41. package/build/commands/stt/update-stt-job-title.command.d.ts.map +1 -0
  42. package/build/commands/stt/update-stt-job-title.command.js +17 -0
  43. package/build/commands/tts/delete-all-tts-jobs.command.d.ts +12 -0
  44. package/build/commands/tts/delete-all-tts-jobs.command.d.ts.map +1 -0
  45. package/build/commands/tts/delete-all-tts-jobs.command.js +10 -0
  46. package/build/commands/tts/delete-tts-job-by-uuid.command.d.ts +20 -0
  47. package/build/commands/tts/delete-tts-job-by-uuid.command.d.ts.map +1 -0
  48. package/build/commands/tts/delete-tts-job-by-uuid.command.js +13 -0
  49. package/build/commands/tts/execute-tts.command.d.ts +256 -0
  50. package/build/commands/tts/execute-tts.command.d.ts.map +1 -0
  51. package/build/commands/tts/execute-tts.command.js +26 -0
  52. package/build/commands/tts/index.d.ts +7 -0
  53. package/build/commands/tts/index.d.ts.map +1 -0
  54. package/build/commands/tts/index.js +22 -0
  55. package/build/commands/tts/retry-tts-job.command.d.ts +217 -0
  56. package/build/commands/tts/retry-tts-job.command.d.ts.map +1 -0
  57. package/build/commands/tts/retry-tts-job.command.js +14 -0
  58. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +229 -0
  59. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts.map +1 -0
  60. package/build/commands/tts/set-reaction-to-tts-job.command.js +19 -0
  61. package/build/commands/tts/update-tts-job-title.command.d.ts +225 -0
  62. package/build/commands/tts/update-tts-job-title.command.d.ts.map +1 -0
  63. package/build/commands/tts/update-tts-job-title.command.js +17 -0
  64. package/build/constants/errors/errors.d.ts +90 -0
  65. package/build/constants/errors/errors.d.ts.map +1 -1
  66. package/build/constants/errors/errors.js +92 -0
  67. package/build/constants/files/enums/file-type.enum.d.ts +2 -1
  68. package/build/constants/files/enums/file-type.enum.d.ts.map +1 -1
  69. package/build/constants/files/enums/file-type.enum.js +1 -0
  70. package/build/constants/tools/enums/tool-type.enum.d.ts +3 -1
  71. package/build/constants/tools/enums/tool-type.enum.d.ts.map +1 -1
  72. package/build/constants/tools/enums/tool-type.enum.js +2 -0
  73. package/build/constants/user-to-subscription/enums/user-to-subscription-status.enum.d.ts +2 -1
  74. package/build/constants/user-to-subscription/enums/user-to-subscription-status.enum.d.ts.map +1 -1
  75. package/build/constants/user-to-subscription/enums/user-to-subscription-status.enum.js +1 -0
  76. package/build/models/index.d.ts +2 -0
  77. package/build/models/index.d.ts.map +1 -1
  78. package/build/models/index.js +2 -0
  79. package/build/models/stt/index.d.ts +6 -0
  80. package/build/models/stt/index.d.ts.map +1 -0
  81. package/build/models/stt/index.js +21 -0
  82. package/build/models/stt/stt-config.schema.d.ts +165 -0
  83. package/build/models/stt/stt-config.schema.d.ts.map +1 -0
  84. package/build/models/stt/stt-config.schema.js +8 -0
  85. package/build/models/stt/stt-job-attempt.schema.d.ts +20 -0
  86. package/build/models/stt/stt-job-attempt.schema.d.ts.map +1 -0
  87. package/build/models/stt/stt-job-attempt.schema.js +11 -0
  88. package/build/models/stt/stt-job.schema.d.ts +127 -0
  89. package/build/models/stt/stt-job.schema.d.ts.map +1 -0
  90. package/build/models/stt/stt-job.schema.js +32 -0
  91. package/build/models/stt/stt-model.schema.d.ts +110 -0
  92. package/build/models/stt/stt-model.schema.d.ts.map +1 -0
  93. package/build/models/stt/stt-model.schema.js +23 -0
  94. package/build/models/stt/stt-response.schema.d.ts +19 -0
  95. package/build/models/stt/stt-response.schema.d.ts.map +1 -0
  96. package/build/models/stt/stt-response.schema.js +10 -0
  97. package/build/models/tts/index.d.ts +6 -0
  98. package/build/models/tts/index.d.ts.map +1 -0
  99. package/build/models/tts/index.js +21 -0
  100. package/build/models/tts/tts-config.schema.d.ts +1117 -0
  101. package/build/models/tts/tts-config.schema.d.ts.map +1 -0
  102. package/build/models/tts/tts-config.schema.js +8 -0
  103. package/build/models/tts/tts-job-attempt.schema.d.ts +20 -0
  104. package/build/models/tts/tts-job-attempt.schema.d.ts.map +1 -0
  105. package/build/models/tts/tts-job-attempt.schema.js +11 -0
  106. package/build/models/tts/tts-job-params.schema.d.ts +22 -0
  107. package/build/models/tts/tts-job-params.schema.d.ts.map +1 -0
  108. package/build/models/tts/tts-job-params.schema.js +11 -0
  109. package/build/models/tts/tts-job.schema.d.ts +132 -0
  110. package/build/models/tts/tts-job.schema.d.ts.map +1 -0
  111. package/build/models/tts/tts-job.schema.js +32 -0
  112. package/build/models/tts/tts-model.schema.d.ts +1530 -0
  113. package/build/models/tts/tts-model.schema.d.ts.map +1 -0
  114. package/build/models/tts/tts-model.schema.js +58 -0
  115. package/build/queries/index.d.ts +2 -0
  116. package/build/queries/index.d.ts.map +1 -1
  117. package/build/queries/index.js +2 -0
  118. package/build/queries/stt/find-stt-jobs.command.d.ts +236 -0
  119. package/build/queries/stt/find-stt-jobs.command.d.ts.map +1 -0
  120. package/build/queries/stt/find-stt-jobs.command.js +20 -0
  121. package/build/queries/stt/get-stt-config.command.d.ts +227 -0
  122. package/build/queries/stt/get-stt-config.command.d.ts.map +1 -0
  123. package/build/queries/stt/get-stt-config.command.js +11 -0
  124. package/build/queries/stt/get-stt-job.command.d.ts +210 -0
  125. package/build/queries/stt/get-stt-job.command.d.ts.map +1 -0
  126. package/build/queries/stt/get-stt-job.command.js +14 -0
  127. package/build/queries/stt/index.d.ts +4 -0
  128. package/build/queries/stt/index.d.ts.map +1 -0
  129. package/build/queries/stt/index.js +19 -0
  130. package/build/queries/tts/find-tts-jobs.command.d.ts +243 -0
  131. package/build/queries/tts/find-tts-jobs.command.d.ts.map +1 -0
  132. package/build/queries/tts/find-tts-jobs.command.js +20 -0
  133. package/build/queries/tts/get-tts-config.command.d.ts +1371 -0
  134. package/build/queries/tts/get-tts-config.command.d.ts.map +1 -0
  135. package/build/queries/tts/get-tts-config.command.js +11 -0
  136. package/build/queries/tts/get-tts-job.command.d.ts +217 -0
  137. package/build/queries/tts/get-tts-job.command.d.ts.map +1 -0
  138. package/build/queries/tts/get-tts-job.command.js +14 -0
  139. package/build/queries/tts/index.d.ts +4 -0
  140. package/build/queries/tts/index.d.ts.map +1 -0
  141. package/build/queries/tts/index.js +19 -0
  142. package/commands/index.ts +2 -0
  143. package/commands/payment/cloud-payments.command.ts +4 -4
  144. package/commands/stt/delete-all-stt-jobs.command.ts +8 -0
  145. package/commands/stt/delete-stt-job-by-uuid.command.ts +13 -0
  146. package/commands/stt/execute-stt.command.ts +15 -0
  147. package/commands/stt/index.ts +6 -0
  148. package/commands/stt/retry-stt-job.command.ts +14 -0
  149. package/commands/stt/set-reaction-to-stt-job.command.ts +21 -0
  150. package/commands/stt/update-stt-job-title.command.ts +19 -0
  151. package/commands/tts/delete-all-tts-jobs.command.ts +8 -0
  152. package/commands/tts/delete-tts-job-by-uuid.command.ts +13 -0
  153. package/commands/tts/execute-tts.command.ts +26 -0
  154. package/commands/tts/index.ts +6 -0
  155. package/commands/tts/retry-tts-job.command.ts +14 -0
  156. package/commands/tts/set-reaction-to-tts-job.command.ts +21 -0
  157. package/commands/tts/update-tts-job-title.command.ts +19 -0
  158. package/constants/errors/errors.ts +94 -0
  159. package/constants/files/enums/file-type.enum.ts +1 -0
  160. package/constants/tools/enums/tool-type.enum.ts +2 -0
  161. package/constants/user-to-subscription/enums/user-to-subscription-status.enum.ts +1 -0
  162. package/models/index.ts +2 -0
  163. package/models/stt/index.ts +5 -0
  164. package/models/stt/stt-config.schema.ts +8 -0
  165. package/models/stt/stt-job-attempt.schema.ts +11 -0
  166. package/models/stt/stt-job.schema.ts +32 -0
  167. package/models/stt/stt-model.schema.ts +23 -0
  168. package/models/stt/stt-response.schema.ts +10 -0
  169. package/models/tts/index.ts +5 -0
  170. package/models/tts/tts-config.schema.ts +8 -0
  171. package/models/tts/tts-job-attempt.schema.ts +11 -0
  172. package/models/tts/tts-job-params.schema.ts +11 -0
  173. package/models/tts/tts-job.schema.ts +32 -0
  174. package/models/tts/tts-model.schema.ts +66 -0
  175. package/package.json +1 -1
  176. package/queries/index.ts +2 -0
  177. package/queries/stt/find-stt-jobs.command.ts +20 -0
  178. package/queries/stt/get-stt-config.command.ts +9 -0
  179. package/queries/stt/get-stt-job.command.ts +14 -0
  180. package/queries/stt/index.ts +3 -0
  181. package/queries/tts/find-tts-jobs.command.ts +20 -0
  182. package/queries/tts/get-tts-config.command.ts +9 -0
  183. package/queries/tts/get-tts-job.command.ts +14 -0
  184. package/queries/tts/index.ts +3 -0
@@ -0,0 +1,229 @@
1
+ import { z } from 'zod';
2
+ import { USER_REACTION } from '../../constants';
3
+ export declare namespace SetReactionToTTSJobCommand {
4
+ const RequestParamsSchema: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ uuid: string;
8
+ }, {
9
+ uuid: string;
10
+ }>;
11
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
12
+ const RequestSchema: z.ZodObject<{
13
+ reaction: z.ZodNullable<z.ZodNativeEnum<typeof USER_REACTION>>;
14
+ dislikeReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ reaction: USER_REACTION | null;
17
+ dislikeReason?: string | null | undefined;
18
+ }, {
19
+ reaction: USER_REACTION | null;
20
+ dislikeReason?: string | null | undefined;
21
+ }>;
22
+ type Request = z.infer<typeof RequestSchema>;
23
+ const ResponseSchema: z.ZodObject<{
24
+ data: z.ZodObject<{
25
+ uuid: z.ZodString;
26
+ siteId: z.ZodString;
27
+ userInput: z.ZodString;
28
+ aiResponse: z.ZodNullable<z.ZodString>;
29
+ reaction: z.ZodNullable<z.ZodNativeEnum<typeof USER_REACTION>>;
30
+ dislikeReason: z.ZodNullable<z.ZodString>;
31
+ title: z.ZodString;
32
+ status: z.ZodNativeEnum<typeof import("../../constants").JOB_STATUS>;
33
+ error: z.ZodNullable<z.ZodString>;
34
+ internalError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ modelId: z.ZodString;
36
+ voiceId: z.ZodString;
37
+ price: z.ZodNumber;
38
+ duration: z.ZodNumber;
39
+ userId: z.ZodNullable<z.ZodString>;
40
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
41
+ tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
43
+ order: z.ZodNumber;
44
+ status: z.ZodNativeEnum<typeof import("../../constants").JOB_STATUS>;
45
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ timestamp: z.ZodString;
47
+ }, "strip", z.ZodTypeAny, {
48
+ status: import("../../constants").JOB_STATUS;
49
+ order: number;
50
+ timestamp: string;
51
+ error?: string | null | undefined;
52
+ }, {
53
+ status: import("../../constants").JOB_STATUS;
54
+ order: number;
55
+ timestamp: string;
56
+ error?: string | null | undefined;
57
+ }>, "many">>;
58
+ params: z.ZodObject<{
59
+ speed: z.ZodOptional<z.ZodNumber>;
60
+ similarity: z.ZodOptional<z.ZodNumber>;
61
+ stability: z.ZodOptional<z.ZodNumber>;
62
+ style: z.ZodOptional<z.ZodNumber>;
63
+ language: z.ZodOptional<z.ZodString>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ speed?: number | undefined;
66
+ stability?: number | undefined;
67
+ similarity?: number | undefined;
68
+ style?: number | undefined;
69
+ language?: string | undefined;
70
+ }, {
71
+ speed?: number | undefined;
72
+ stability?: number | undefined;
73
+ similarity?: number | undefined;
74
+ style?: number | undefined;
75
+ language?: string | undefined;
76
+ }>;
77
+ isDeleted: z.ZodBoolean;
78
+ createdAt: z.ZodDate;
79
+ updatedAt: z.ZodDate;
80
+ completedAt: z.ZodNullable<z.ZodDate>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ price: number;
83
+ uuid: string;
84
+ siteId: string;
85
+ status: import("../../constants").JOB_STATUS;
86
+ params: {
87
+ speed?: number | undefined;
88
+ stability?: number | undefined;
89
+ similarity?: number | undefined;
90
+ style?: number | undefined;
91
+ language?: string | undefined;
92
+ };
93
+ duration: number;
94
+ title: string;
95
+ createdAt: Date;
96
+ updatedAt: Date;
97
+ error: string | null;
98
+ modelId: string;
99
+ reaction: USER_REACTION | null;
100
+ dislikeReason: string | null;
101
+ attempts: {
102
+ status: import("../../constants").JOB_STATUS;
103
+ order: number;
104
+ timestamp: string;
105
+ error?: string | null | undefined;
106
+ }[];
107
+ userId: string | null;
108
+ unregisteredUserId: string | null;
109
+ isDeleted: boolean;
110
+ completedAt: Date | null;
111
+ aiResponse: string | null;
112
+ userInput: string;
113
+ voiceId: string;
114
+ internalError?: string | null | undefined;
115
+ tokenReservationId?: string | null | undefined;
116
+ }, {
117
+ price: number;
118
+ uuid: string;
119
+ siteId: string;
120
+ status: import("../../constants").JOB_STATUS;
121
+ params: {
122
+ speed?: number | undefined;
123
+ stability?: number | undefined;
124
+ similarity?: number | undefined;
125
+ style?: number | undefined;
126
+ language?: string | undefined;
127
+ };
128
+ duration: number;
129
+ title: string;
130
+ createdAt: Date;
131
+ updatedAt: Date;
132
+ error: string | null;
133
+ modelId: string;
134
+ reaction: USER_REACTION | null;
135
+ dislikeReason: string | null;
136
+ userId: string | null;
137
+ unregisteredUserId: string | null;
138
+ isDeleted: boolean;
139
+ completedAt: Date | null;
140
+ aiResponse: string | null;
141
+ userInput: string;
142
+ voiceId: string;
143
+ attempts?: {
144
+ status: import("../../constants").JOB_STATUS;
145
+ order: number;
146
+ timestamp: string;
147
+ error?: string | null | undefined;
148
+ }[] | undefined;
149
+ internalError?: string | null | undefined;
150
+ tokenReservationId?: string | null | undefined;
151
+ }>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ data: {
154
+ price: number;
155
+ uuid: string;
156
+ siteId: string;
157
+ status: import("../../constants").JOB_STATUS;
158
+ params: {
159
+ speed?: number | undefined;
160
+ stability?: number | undefined;
161
+ similarity?: number | undefined;
162
+ style?: number | undefined;
163
+ language?: string | undefined;
164
+ };
165
+ duration: number;
166
+ title: string;
167
+ createdAt: Date;
168
+ updatedAt: Date;
169
+ error: string | null;
170
+ modelId: string;
171
+ reaction: USER_REACTION | null;
172
+ dislikeReason: string | null;
173
+ attempts: {
174
+ status: import("../../constants").JOB_STATUS;
175
+ order: number;
176
+ timestamp: string;
177
+ error?: string | null | undefined;
178
+ }[];
179
+ userId: string | null;
180
+ unregisteredUserId: string | null;
181
+ isDeleted: boolean;
182
+ completedAt: Date | null;
183
+ aiResponse: string | null;
184
+ userInput: string;
185
+ voiceId: string;
186
+ internalError?: string | null | undefined;
187
+ tokenReservationId?: string | null | undefined;
188
+ };
189
+ }, {
190
+ data: {
191
+ price: number;
192
+ uuid: string;
193
+ siteId: string;
194
+ status: import("../../constants").JOB_STATUS;
195
+ params: {
196
+ speed?: number | undefined;
197
+ stability?: number | undefined;
198
+ similarity?: number | undefined;
199
+ style?: number | undefined;
200
+ language?: string | undefined;
201
+ };
202
+ duration: number;
203
+ title: string;
204
+ createdAt: Date;
205
+ updatedAt: Date;
206
+ error: string | null;
207
+ modelId: string;
208
+ reaction: USER_REACTION | null;
209
+ dislikeReason: string | null;
210
+ userId: string | null;
211
+ unregisteredUserId: string | null;
212
+ isDeleted: boolean;
213
+ completedAt: Date | null;
214
+ aiResponse: string | null;
215
+ userInput: string;
216
+ voiceId: string;
217
+ attempts?: {
218
+ status: import("../../constants").JOB_STATUS;
219
+ order: number;
220
+ timestamp: string;
221
+ error?: string | null | undefined;
222
+ }[] | undefined;
223
+ internalError?: string | null | undefined;
224
+ tokenReservationId?: string | null | undefined;
225
+ };
226
+ }>;
227
+ type Response = z.infer<typeof ResponseSchema>;
228
+ }
229
+ //# sourceMappingURL=set-reaction-to-tts-job.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-reaction-to-tts-job.command.d.ts","sourceRoot":"","sources":["../../../commands/tts/set-reaction-to-tts-job.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,mBAAmB;;;;;;MAE9B,CAAC;IACH,KAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAEzD,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetReactionToTTSJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const constants_1 = require("../../constants");
7
+ var SetReactionToTTSJobCommand;
8
+ (function (SetReactionToTTSJobCommand) {
9
+ SetReactionToTTSJobCommand.RequestParamsSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ });
12
+ SetReactionToTTSJobCommand.RequestSchema = zod_1.z.object({
13
+ reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
14
+ dislikeReason: zod_1.z.string().nullable().optional(),
15
+ });
16
+ SetReactionToTTSJobCommand.ResponseSchema = zod_1.z.object({
17
+ data: models_1.TTSJobSchema,
18
+ });
19
+ })(SetReactionToTTSJobCommand || (exports.SetReactionToTTSJobCommand = SetReactionToTTSJobCommand = {}));
@@ -0,0 +1,225 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateTTSJobTitleCommand {
3
+ const RequestParamsSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ uuid: string;
7
+ }, {
8
+ uuid: string;
9
+ }>;
10
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
11
+ const RequestSchema: z.ZodObject<{
12
+ title: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ title: string;
15
+ }, {
16
+ title: string;
17
+ }>;
18
+ type Request = z.infer<typeof RequestSchema>;
19
+ const ResponseSchema: z.ZodObject<{
20
+ data: z.ZodObject<{
21
+ uuid: z.ZodString;
22
+ siteId: z.ZodString;
23
+ userInput: z.ZodString;
24
+ aiResponse: z.ZodNullable<z.ZodString>;
25
+ reaction: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").USER_REACTION>>;
26
+ dislikeReason: z.ZodNullable<z.ZodString>;
27
+ title: z.ZodString;
28
+ status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
29
+ error: z.ZodNullable<z.ZodString>;
30
+ internalError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ modelId: z.ZodString;
32
+ voiceId: z.ZodString;
33
+ price: z.ZodNumber;
34
+ duration: z.ZodNumber;
35
+ userId: z.ZodNullable<z.ZodString>;
36
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
37
+ tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
39
+ order: z.ZodNumber;
40
+ status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
41
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ timestamp: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ status: import("../..").JOB_STATUS;
45
+ order: number;
46
+ timestamp: string;
47
+ error?: string | null | undefined;
48
+ }, {
49
+ status: import("../..").JOB_STATUS;
50
+ order: number;
51
+ timestamp: string;
52
+ error?: string | null | undefined;
53
+ }>, "many">>;
54
+ params: z.ZodObject<{
55
+ speed: z.ZodOptional<z.ZodNumber>;
56
+ similarity: z.ZodOptional<z.ZodNumber>;
57
+ stability: z.ZodOptional<z.ZodNumber>;
58
+ style: z.ZodOptional<z.ZodNumber>;
59
+ language: z.ZodOptional<z.ZodString>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ speed?: number | undefined;
62
+ stability?: number | undefined;
63
+ similarity?: number | undefined;
64
+ style?: number | undefined;
65
+ language?: string | undefined;
66
+ }, {
67
+ speed?: number | undefined;
68
+ stability?: number | undefined;
69
+ similarity?: number | undefined;
70
+ style?: number | undefined;
71
+ language?: string | undefined;
72
+ }>;
73
+ isDeleted: z.ZodBoolean;
74
+ createdAt: z.ZodDate;
75
+ updatedAt: z.ZodDate;
76
+ completedAt: z.ZodNullable<z.ZodDate>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ price: number;
79
+ uuid: string;
80
+ siteId: string;
81
+ status: import("../..").JOB_STATUS;
82
+ params: {
83
+ speed?: number | undefined;
84
+ stability?: number | undefined;
85
+ similarity?: number | undefined;
86
+ style?: number | undefined;
87
+ language?: string | undefined;
88
+ };
89
+ duration: number;
90
+ title: string;
91
+ createdAt: Date;
92
+ updatedAt: Date;
93
+ error: string | null;
94
+ modelId: string;
95
+ reaction: import("../..").USER_REACTION | null;
96
+ dislikeReason: string | null;
97
+ attempts: {
98
+ status: import("../..").JOB_STATUS;
99
+ order: number;
100
+ timestamp: string;
101
+ error?: string | null | undefined;
102
+ }[];
103
+ userId: string | null;
104
+ unregisteredUserId: string | null;
105
+ isDeleted: boolean;
106
+ completedAt: Date | null;
107
+ aiResponse: string | null;
108
+ userInput: string;
109
+ voiceId: string;
110
+ internalError?: string | null | undefined;
111
+ tokenReservationId?: string | null | undefined;
112
+ }, {
113
+ price: number;
114
+ uuid: string;
115
+ siteId: string;
116
+ status: import("../..").JOB_STATUS;
117
+ params: {
118
+ speed?: number | undefined;
119
+ stability?: number | undefined;
120
+ similarity?: number | undefined;
121
+ style?: number | undefined;
122
+ language?: string | undefined;
123
+ };
124
+ duration: number;
125
+ title: string;
126
+ createdAt: Date;
127
+ updatedAt: Date;
128
+ error: string | null;
129
+ modelId: string;
130
+ reaction: import("../..").USER_REACTION | null;
131
+ dislikeReason: string | null;
132
+ userId: string | null;
133
+ unregisteredUserId: string | null;
134
+ isDeleted: boolean;
135
+ completedAt: Date | null;
136
+ aiResponse: string | null;
137
+ userInput: string;
138
+ voiceId: string;
139
+ attempts?: {
140
+ status: import("../..").JOB_STATUS;
141
+ order: number;
142
+ timestamp: string;
143
+ error?: string | null | undefined;
144
+ }[] | undefined;
145
+ internalError?: string | null | undefined;
146
+ tokenReservationId?: string | null | undefined;
147
+ }>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ data: {
150
+ price: number;
151
+ uuid: string;
152
+ siteId: string;
153
+ status: import("../..").JOB_STATUS;
154
+ params: {
155
+ speed?: number | undefined;
156
+ stability?: number | undefined;
157
+ similarity?: number | undefined;
158
+ style?: number | undefined;
159
+ language?: string | undefined;
160
+ };
161
+ duration: number;
162
+ title: string;
163
+ createdAt: Date;
164
+ updatedAt: Date;
165
+ error: string | null;
166
+ modelId: string;
167
+ reaction: import("../..").USER_REACTION | null;
168
+ dislikeReason: string | null;
169
+ attempts: {
170
+ status: import("../..").JOB_STATUS;
171
+ order: number;
172
+ timestamp: string;
173
+ error?: string | null | undefined;
174
+ }[];
175
+ userId: string | null;
176
+ unregisteredUserId: string | null;
177
+ isDeleted: boolean;
178
+ completedAt: Date | null;
179
+ aiResponse: string | null;
180
+ userInput: string;
181
+ voiceId: string;
182
+ internalError?: string | null | undefined;
183
+ tokenReservationId?: string | null | undefined;
184
+ };
185
+ }, {
186
+ data: {
187
+ price: number;
188
+ uuid: string;
189
+ siteId: string;
190
+ status: import("../..").JOB_STATUS;
191
+ params: {
192
+ speed?: number | undefined;
193
+ stability?: number | undefined;
194
+ similarity?: number | undefined;
195
+ style?: number | undefined;
196
+ language?: string | undefined;
197
+ };
198
+ duration: number;
199
+ title: string;
200
+ createdAt: Date;
201
+ updatedAt: Date;
202
+ error: string | null;
203
+ modelId: string;
204
+ reaction: import("../..").USER_REACTION | null;
205
+ dislikeReason: string | null;
206
+ userId: string | null;
207
+ unregisteredUserId: string | null;
208
+ isDeleted: boolean;
209
+ completedAt: Date | null;
210
+ aiResponse: string | null;
211
+ userInput: string;
212
+ voiceId: string;
213
+ attempts?: {
214
+ status: import("../..").JOB_STATUS;
215
+ order: number;
216
+ timestamp: string;
217
+ error?: string | null | undefined;
218
+ }[] | undefined;
219
+ internalError?: string | null | undefined;
220
+ tokenReservationId?: string | null | undefined;
221
+ };
222
+ }>;
223
+ type Response = z.infer<typeof ResponseSchema>;
224
+ }
225
+ //# sourceMappingURL=update-tts-job-title.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-tts-job-title.command.d.ts","sourceRoot":"","sources":["../../../commands/tts/update-tts-job-title.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,mBAAmB;;;;;;MAE9B,CAAC;IACH,KAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAEzD,MAAM,aAAa;;;;;;MAExB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTTSJobTitleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var UpdateTTSJobTitleCommand;
7
+ (function (UpdateTTSJobTitleCommand) {
8
+ UpdateTTSJobTitleCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ UpdateTTSJobTitleCommand.RequestSchema = zod_1.z.object({
12
+ title: zod_1.z.string().min(1).max(200),
13
+ });
14
+ UpdateTTSJobTitleCommand.ResponseSchema = zod_1.z.object({
15
+ data: models_1.TTSJobSchema,
16
+ });
17
+ })(UpdateTTSJobTitleCommand || (exports.UpdateTTSJobTitleCommand = UpdateTTSJobTitleCommand = {}));
@@ -314,6 +314,96 @@ export declare const ERRORS: {
314
314
  readonly code: "IMAGE_GENERATION_013";
315
315
  readonly httpCode: 500;
316
316
  };
317
+ readonly STT_MODEL_NOT_FOUND: {
318
+ readonly message: "Модель не найдена";
319
+ readonly code: "STT_001";
320
+ readonly httpCode: 404;
321
+ };
322
+ readonly STT_MODEL_INACTIVE: {
323
+ readonly message: "Модель недоступна";
324
+ readonly code: "STT_002";
325
+ readonly httpCode: 400;
326
+ };
327
+ readonly STT_MODEL_NOT_AVAILABLE: {
328
+ readonly message: "Модель недоступна для пользователя";
329
+ readonly code: "STT_003";
330
+ readonly httpCode: 403;
331
+ };
332
+ readonly STT_AUDIO_DURATION_EXCEEDED: {
333
+ readonly message: "Превышена максимальная длительность аудио";
334
+ readonly code: "STT_004";
335
+ readonly httpCode: 400;
336
+ };
337
+ readonly STT_FILE_SIZE_EXCEEDED: {
338
+ readonly message: "Превышен максимальный размер файла";
339
+ readonly code: "STT_005";
340
+ readonly httpCode: 400;
341
+ };
342
+ readonly STT_JOB_NOT_FOUND: {
343
+ readonly message: "Запись не найдена";
344
+ readonly code: "STT_006";
345
+ readonly httpCode: 404;
346
+ };
347
+ readonly STT_JOB_NOT_OWNER: {
348
+ readonly message: "Недостаточно прав";
349
+ readonly code: "STT_007";
350
+ readonly httpCode: 403;
351
+ };
352
+ readonly STT_JOB_NOT_IN_FAILED_STATE_TO_RETRY: {
353
+ readonly message: "Невозможно повторить запрос";
354
+ readonly code: "STT_008";
355
+ readonly httpCode: 400;
356
+ };
357
+ readonly STT_NOT_ENOUGH_TOKENS: {
358
+ readonly message: "Недостаточно токенов";
359
+ readonly code: "STT_009";
360
+ readonly httpCode: 402;
361
+ };
362
+ readonly TTS_MODEL_NOT_FOUND: {
363
+ readonly message: "Модель не найдена";
364
+ readonly code: "TTS_001";
365
+ readonly httpCode: 404;
366
+ };
367
+ readonly TTS_MODEL_INACTIVE: {
368
+ readonly message: "Модель недоступна";
369
+ readonly code: "TTS_002";
370
+ readonly httpCode: 400;
371
+ };
372
+ readonly TTS_MODEL_NOT_AVAILABLE: {
373
+ readonly message: "Модель недоступна для пользователя";
374
+ readonly code: "TTS_003";
375
+ readonly httpCode: 403;
376
+ };
377
+ readonly TTS_VOICE_NOT_FOUND: {
378
+ readonly message: "Голос не найден";
379
+ readonly code: "TTS_004";
380
+ readonly httpCode: 404;
381
+ };
382
+ readonly TTS_INVALID_PARAMS: {
383
+ readonly message: "Некорректные параметры запроса";
384
+ readonly code: "TTS_005";
385
+ readonly httpCode: 400;
386
+ };
387
+ readonly TTS_JOB_NOT_FOUND: {
388
+ readonly message: "Запись не найдена";
389
+ readonly code: "TTS_006";
390
+ readonly httpCode: 404;
391
+ };
392
+ readonly TTS_JOB_NOT_OWNER: {
393
+ readonly message: "Недостаточно прав";
394
+ readonly code: "TTS_007";
395
+ readonly httpCode: 403;
396
+ };
397
+ readonly TTS_JOB_NOT_IN_FAILED_STATE_TO_RETRY: {
398
+ readonly message: "Невозможно повторить запрос";
399
+ readonly code: "TTS_008";
400
+ readonly httpCode: 400;
401
+ };
402
+ readonly TTS_NOT_ENOUGH_TOKENS: {
403
+ readonly message: "Недостаточно токенов";
404
+ readonly code: "TTS_009";
405
+ readonly httpCode: 402;
406
+ };
317
407
  readonly IMAGE_EDITOR_MODEL_NOT_FOUND: {
318
408
  readonly message: "Модель редактирования изображений не найдена";
319
409
  readonly code: "IMAGE_EDITOR_001";
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8qBT,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4wBT,CAAC"}