@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,222 @@
1
+ import { z } from 'zod';
2
+ import { USER_REACTION } from '../../constants';
3
+ export declare namespace SetReactionToSTTJobCommand {
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
+ modelId: z.ZodString;
28
+ title: z.ZodString;
29
+ fileId: z.ZodString;
30
+ fileKey: z.ZodString;
31
+ fileUrl: z.ZodString;
32
+ aiResponse: z.ZodNullable<z.ZodObject<{
33
+ raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
34
+ md: z.ZodString;
35
+ txtUrl: z.ZodOptional<z.ZodString>;
36
+ srtUrl: z.ZodOptional<z.ZodString>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ raw: Record<string, any>;
39
+ md: string;
40
+ txtUrl?: string | undefined;
41
+ srtUrl?: string | undefined;
42
+ }, {
43
+ md: string;
44
+ raw?: Record<string, any> | undefined;
45
+ txtUrl?: string | undefined;
46
+ srtUrl?: string | undefined;
47
+ }>>;
48
+ reaction: z.ZodNullable<z.ZodNativeEnum<typeof USER_REACTION>>;
49
+ dislikeReason: z.ZodNullable<z.ZodString>;
50
+ status: z.ZodNativeEnum<typeof import("../../constants").JOB_STATUS>;
51
+ duration: z.ZodNumber;
52
+ error: z.ZodNullable<z.ZodString>;
53
+ internalError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ userId: z.ZodNullable<z.ZodString>;
55
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
56
+ price: z.ZodNumber;
57
+ tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
59
+ order: z.ZodNumber;
60
+ status: z.ZodNativeEnum<typeof import("../../constants").JOB_STATUS>;
61
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ timestamp: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ status: import("../../constants").JOB_STATUS;
65
+ order: number;
66
+ timestamp: string;
67
+ error?: string | null | undefined;
68
+ }, {
69
+ status: import("../../constants").JOB_STATUS;
70
+ order: number;
71
+ timestamp: string;
72
+ error?: string | null | undefined;
73
+ }>, "many">>;
74
+ isDeleted: z.ZodBoolean;
75
+ createdAt: z.ZodDate;
76
+ completedAt: z.ZodNullable<z.ZodDate>;
77
+ updatedAt: z.ZodDate;
78
+ }, "strip", z.ZodTypeAny, {
79
+ price: number;
80
+ uuid: string;
81
+ siteId: string;
82
+ status: import("../../constants").JOB_STATUS;
83
+ duration: number;
84
+ title: string;
85
+ createdAt: Date;
86
+ updatedAt: Date;
87
+ error: string | null;
88
+ modelId: string;
89
+ reaction: USER_REACTION | null;
90
+ dislikeReason: string | null;
91
+ attempts: {
92
+ status: import("../../constants").JOB_STATUS;
93
+ order: number;
94
+ timestamp: string;
95
+ error?: string | null | undefined;
96
+ }[];
97
+ userId: string | null;
98
+ unregisteredUserId: string | null;
99
+ isDeleted: boolean;
100
+ completedAt: Date | null;
101
+ fileId: string;
102
+ fileKey: string;
103
+ fileUrl: string;
104
+ aiResponse: {
105
+ raw: Record<string, any>;
106
+ md: string;
107
+ txtUrl?: string | undefined;
108
+ srtUrl?: string | undefined;
109
+ } | null;
110
+ internalError?: string | null | undefined;
111
+ tokenReservationId?: string | null | undefined;
112
+ }, {
113
+ price: number;
114
+ uuid: string;
115
+ siteId: string;
116
+ status: import("../../constants").JOB_STATUS;
117
+ duration: number;
118
+ title: string;
119
+ createdAt: Date;
120
+ updatedAt: Date;
121
+ error: string | null;
122
+ modelId: string;
123
+ reaction: USER_REACTION | null;
124
+ dislikeReason: string | null;
125
+ userId: string | null;
126
+ unregisteredUserId: string | null;
127
+ isDeleted: boolean;
128
+ completedAt: Date | null;
129
+ fileId: string;
130
+ fileKey: string;
131
+ fileUrl: string;
132
+ aiResponse: {
133
+ md: string;
134
+ raw?: Record<string, any> | undefined;
135
+ txtUrl?: string | undefined;
136
+ srtUrl?: string | undefined;
137
+ } | null;
138
+ attempts?: {
139
+ status: import("../../constants").JOB_STATUS;
140
+ order: number;
141
+ timestamp: string;
142
+ error?: string | null | undefined;
143
+ }[] | undefined;
144
+ internalError?: string | null | undefined;
145
+ tokenReservationId?: string | null | undefined;
146
+ }>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ data: {
149
+ price: number;
150
+ uuid: string;
151
+ siteId: string;
152
+ status: import("../../constants").JOB_STATUS;
153
+ duration: number;
154
+ title: string;
155
+ createdAt: Date;
156
+ updatedAt: Date;
157
+ error: string | null;
158
+ modelId: string;
159
+ reaction: USER_REACTION | null;
160
+ dislikeReason: string | null;
161
+ attempts: {
162
+ status: import("../../constants").JOB_STATUS;
163
+ order: number;
164
+ timestamp: string;
165
+ error?: string | null | undefined;
166
+ }[];
167
+ userId: string | null;
168
+ unregisteredUserId: string | null;
169
+ isDeleted: boolean;
170
+ completedAt: Date | null;
171
+ fileId: string;
172
+ fileKey: string;
173
+ fileUrl: string;
174
+ aiResponse: {
175
+ raw: Record<string, any>;
176
+ md: string;
177
+ txtUrl?: string | undefined;
178
+ srtUrl?: string | undefined;
179
+ } | null;
180
+ internalError?: string | null | undefined;
181
+ tokenReservationId?: string | null | undefined;
182
+ };
183
+ }, {
184
+ data: {
185
+ price: number;
186
+ uuid: string;
187
+ siteId: string;
188
+ status: import("../../constants").JOB_STATUS;
189
+ duration: number;
190
+ title: string;
191
+ createdAt: Date;
192
+ updatedAt: Date;
193
+ error: string | null;
194
+ modelId: string;
195
+ reaction: USER_REACTION | null;
196
+ dislikeReason: string | null;
197
+ userId: string | null;
198
+ unregisteredUserId: string | null;
199
+ isDeleted: boolean;
200
+ completedAt: Date | null;
201
+ fileId: string;
202
+ fileKey: string;
203
+ fileUrl: string;
204
+ aiResponse: {
205
+ md: string;
206
+ raw?: Record<string, any> | undefined;
207
+ txtUrl?: string | undefined;
208
+ srtUrl?: string | undefined;
209
+ } | null;
210
+ attempts?: {
211
+ status: import("../../constants").JOB_STATUS;
212
+ order: number;
213
+ timestamp: string;
214
+ error?: string | null | undefined;
215
+ }[] | undefined;
216
+ internalError?: string | null | undefined;
217
+ tokenReservationId?: string | null | undefined;
218
+ };
219
+ }>;
220
+ type Response = z.infer<typeof ResponseSchema>;
221
+ }
222
+ //# sourceMappingURL=set-reaction-to-stt-job.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-reaction-to-stt-job.command.d.ts","sourceRoot":"","sources":["../../../commands/stt/set-reaction-to-stt-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.SetReactionToSTTJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const constants_1 = require("../../constants");
7
+ var SetReactionToSTTJobCommand;
8
+ (function (SetReactionToSTTJobCommand) {
9
+ SetReactionToSTTJobCommand.RequestParamsSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ });
12
+ SetReactionToSTTJobCommand.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
+ SetReactionToSTTJobCommand.ResponseSchema = zod_1.z.object({
17
+ data: models_1.STTJobSchema,
18
+ });
19
+ })(SetReactionToSTTJobCommand || (exports.SetReactionToSTTJobCommand = SetReactionToSTTJobCommand = {}));
@@ -0,0 +1,218 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateSTTJobTitleCommand {
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
+ modelId: z.ZodString;
24
+ title: z.ZodString;
25
+ fileId: z.ZodString;
26
+ fileKey: z.ZodString;
27
+ fileUrl: z.ZodString;
28
+ aiResponse: z.ZodNullable<z.ZodObject<{
29
+ raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
30
+ md: z.ZodString;
31
+ txtUrl: z.ZodOptional<z.ZodString>;
32
+ srtUrl: z.ZodOptional<z.ZodString>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ raw: Record<string, any>;
35
+ md: string;
36
+ txtUrl?: string | undefined;
37
+ srtUrl?: string | undefined;
38
+ }, {
39
+ md: string;
40
+ raw?: Record<string, any> | undefined;
41
+ txtUrl?: string | undefined;
42
+ srtUrl?: string | undefined;
43
+ }>>;
44
+ reaction: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").USER_REACTION>>;
45
+ dislikeReason: z.ZodNullable<z.ZodString>;
46
+ status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
47
+ duration: z.ZodNumber;
48
+ error: z.ZodNullable<z.ZodString>;
49
+ internalError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ userId: z.ZodNullable<z.ZodString>;
51
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
52
+ price: z.ZodNumber;
53
+ tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
55
+ order: z.ZodNumber;
56
+ status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
57
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ timestamp: z.ZodString;
59
+ }, "strip", z.ZodTypeAny, {
60
+ status: import("../..").JOB_STATUS;
61
+ order: number;
62
+ timestamp: string;
63
+ error?: string | null | undefined;
64
+ }, {
65
+ status: import("../..").JOB_STATUS;
66
+ order: number;
67
+ timestamp: string;
68
+ error?: string | null | undefined;
69
+ }>, "many">>;
70
+ isDeleted: z.ZodBoolean;
71
+ createdAt: z.ZodDate;
72
+ completedAt: z.ZodNullable<z.ZodDate>;
73
+ updatedAt: z.ZodDate;
74
+ }, "strip", z.ZodTypeAny, {
75
+ price: number;
76
+ uuid: string;
77
+ siteId: string;
78
+ status: import("../..").JOB_STATUS;
79
+ duration: number;
80
+ title: string;
81
+ createdAt: Date;
82
+ updatedAt: Date;
83
+ error: string | null;
84
+ modelId: string;
85
+ reaction: import("../..").USER_REACTION | null;
86
+ dislikeReason: string | null;
87
+ attempts: {
88
+ status: import("../..").JOB_STATUS;
89
+ order: number;
90
+ timestamp: string;
91
+ error?: string | null | undefined;
92
+ }[];
93
+ userId: string | null;
94
+ unregisteredUserId: string | null;
95
+ isDeleted: boolean;
96
+ completedAt: Date | null;
97
+ fileId: string;
98
+ fileKey: string;
99
+ fileUrl: string;
100
+ aiResponse: {
101
+ raw: Record<string, any>;
102
+ md: string;
103
+ txtUrl?: string | undefined;
104
+ srtUrl?: string | undefined;
105
+ } | null;
106
+ internalError?: string | null | undefined;
107
+ tokenReservationId?: string | null | undefined;
108
+ }, {
109
+ price: number;
110
+ uuid: string;
111
+ siteId: string;
112
+ status: import("../..").JOB_STATUS;
113
+ duration: number;
114
+ title: string;
115
+ createdAt: Date;
116
+ updatedAt: Date;
117
+ error: string | null;
118
+ modelId: string;
119
+ reaction: import("../..").USER_REACTION | null;
120
+ dislikeReason: string | null;
121
+ userId: string | null;
122
+ unregisteredUserId: string | null;
123
+ isDeleted: boolean;
124
+ completedAt: Date | null;
125
+ fileId: string;
126
+ fileKey: string;
127
+ fileUrl: string;
128
+ aiResponse: {
129
+ md: string;
130
+ raw?: Record<string, any> | undefined;
131
+ txtUrl?: string | undefined;
132
+ srtUrl?: string | undefined;
133
+ } | null;
134
+ attempts?: {
135
+ status: import("../..").JOB_STATUS;
136
+ order: number;
137
+ timestamp: string;
138
+ error?: string | null | undefined;
139
+ }[] | undefined;
140
+ internalError?: string | null | undefined;
141
+ tokenReservationId?: string | null | undefined;
142
+ }>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ data: {
145
+ price: number;
146
+ uuid: string;
147
+ siteId: string;
148
+ status: import("../..").JOB_STATUS;
149
+ duration: number;
150
+ title: string;
151
+ createdAt: Date;
152
+ updatedAt: Date;
153
+ error: string | null;
154
+ modelId: string;
155
+ reaction: import("../..").USER_REACTION | null;
156
+ dislikeReason: string | null;
157
+ attempts: {
158
+ status: import("../..").JOB_STATUS;
159
+ order: number;
160
+ timestamp: string;
161
+ error?: string | null | undefined;
162
+ }[];
163
+ userId: string | null;
164
+ unregisteredUserId: string | null;
165
+ isDeleted: boolean;
166
+ completedAt: Date | null;
167
+ fileId: string;
168
+ fileKey: string;
169
+ fileUrl: string;
170
+ aiResponse: {
171
+ raw: Record<string, any>;
172
+ md: string;
173
+ txtUrl?: string | undefined;
174
+ srtUrl?: string | undefined;
175
+ } | null;
176
+ internalError?: string | null | undefined;
177
+ tokenReservationId?: string | null | undefined;
178
+ };
179
+ }, {
180
+ data: {
181
+ price: number;
182
+ uuid: string;
183
+ siteId: string;
184
+ status: import("../..").JOB_STATUS;
185
+ duration: number;
186
+ title: string;
187
+ createdAt: Date;
188
+ updatedAt: Date;
189
+ error: string | null;
190
+ modelId: string;
191
+ reaction: import("../..").USER_REACTION | null;
192
+ dislikeReason: string | null;
193
+ userId: string | null;
194
+ unregisteredUserId: string | null;
195
+ isDeleted: boolean;
196
+ completedAt: Date | null;
197
+ fileId: string;
198
+ fileKey: string;
199
+ fileUrl: string;
200
+ aiResponse: {
201
+ md: string;
202
+ raw?: Record<string, any> | undefined;
203
+ txtUrl?: string | undefined;
204
+ srtUrl?: string | undefined;
205
+ } | null;
206
+ attempts?: {
207
+ status: import("../..").JOB_STATUS;
208
+ order: number;
209
+ timestamp: string;
210
+ error?: string | null | undefined;
211
+ }[] | undefined;
212
+ internalError?: string | null | undefined;
213
+ tokenReservationId?: string | null | undefined;
214
+ };
215
+ }>;
216
+ type Response = z.infer<typeof ResponseSchema>;
217
+ }
218
+ //# sourceMappingURL=update-stt-job-title.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-stt-job-title.command.d.ts","sourceRoot":"","sources":["../../../commands/stt/update-stt-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.UpdateSTTJobTitleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var UpdateSTTJobTitleCommand;
7
+ (function (UpdateSTTJobTitleCommand) {
8
+ UpdateSTTJobTitleCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ UpdateSTTJobTitleCommand.RequestSchema = zod_1.z.object({
12
+ title: zod_1.z.string().min(1).max(200),
13
+ });
14
+ UpdateSTTJobTitleCommand.ResponseSchema = zod_1.z.object({
15
+ data: models_1.STTJobSchema,
16
+ });
17
+ })(UpdateSTTJobTitleCommand || (exports.UpdateSTTJobTitleCommand = UpdateSTTJobTitleCommand = {}));
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteAllTTSJobsCommand {
3
+ const ResponseSchema: z.ZodObject<{
4
+ data: z.ZodBoolean;
5
+ }, "strip", z.ZodTypeAny, {
6
+ data: boolean;
7
+ }, {
8
+ data: boolean;
9
+ }>;
10
+ type Response = z.infer<typeof ResponseSchema>;
11
+ }
12
+ //# sourceMappingURL=delete-all-tts-jobs.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-all-tts-jobs.command.d.ts","sourceRoot":"","sources":["../../../commands/tts/delete-all-tts-jobs.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,cAAc;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAllTTSJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteAllTTSJobsCommand;
6
+ (function (DeleteAllTTSJobsCommand) {
7
+ DeleteAllTTSJobsCommand.ResponseSchema = zod_1.z.object({
8
+ data: zod_1.z.boolean(),
9
+ });
10
+ })(DeleteAllTTSJobsCommand || (exports.DeleteAllTTSJobsCommand = DeleteAllTTSJobsCommand = {}));
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteTTSJobByUuidCommand {
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 ResponseSchema: z.ZodObject<{
12
+ data: z.ZodBoolean;
13
+ }, "strip", z.ZodTypeAny, {
14
+ data: boolean;
15
+ }, {
16
+ data: boolean;
17
+ }>;
18
+ type Response = z.infer<typeof ResponseSchema>;
19
+ }
20
+ //# sourceMappingURL=delete-tts-job-by-uuid.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-tts-job-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../commands/tts/delete-tts-job-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,mBAAmB;;;;;;MAE9B,CAAC;IACH,KAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAEzD,MAAM,cAAc;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteTTSJobByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteTTSJobByUuidCommand;
6
+ (function (DeleteTTSJobByUuidCommand) {
7
+ DeleteTTSJobByUuidCommand.RequestParamsSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ DeleteTTSJobByUuidCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.boolean(),
12
+ });
13
+ })(DeleteTTSJobByUuidCommand || (exports.DeleteTTSJobByUuidCommand = DeleteTTSJobByUuidCommand = {}));