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