@purpleschool/multisite 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/api/controller/http/index.ts +2 -0
  2. package/api/controller/http/stt.ts +14 -0
  3. package/api/controller/http/subscription.ts +1 -0
  4. package/api/controller/http/tts.ts +14 -0
  5. package/api/routes.ts +66 -0
  6. package/build/api/controller/http/index.d.ts +2 -0
  7. package/build/api/controller/http/index.d.ts.map +1 -1
  8. package/build/api/controller/http/index.js +2 -0
  9. package/build/api/controller/http/stt.d.ts +14 -0
  10. package/build/api/controller/http/stt.d.ts.map +1 -0
  11. package/build/api/controller/http/stt.js +16 -0
  12. package/build/api/controller/http/subscription.d.ts +1 -0
  13. package/build/api/controller/http/subscription.d.ts.map +1 -1
  14. package/build/api/controller/http/subscription.js +1 -0
  15. package/build/api/controller/http/tts.d.ts +14 -0
  16. package/build/api/controller/http/tts.d.ts.map +1 -0
  17. package/build/api/controller/http/tts.js +16 -0
  18. package/build/api/routes.d.ts +45 -0
  19. package/build/api/routes.d.ts.map +1 -1
  20. package/build/api/routes.js +45 -0
  21. package/build/commands/index.d.ts +2 -0
  22. package/build/commands/index.d.ts.map +1 -1
  23. package/build/commands/index.js +2 -0
  24. package/build/commands/stt/delete-all-stt-jobs.command.d.ts +12 -0
  25. package/build/commands/stt/delete-all-stt-jobs.command.d.ts.map +1 -0
  26. package/build/commands/stt/delete-all-stt-jobs.command.js +10 -0
  27. package/build/commands/stt/delete-stt-job-by-uuid.command.d.ts +20 -0
  28. package/build/commands/stt/delete-stt-job-by-uuid.command.d.ts.map +1 -0
  29. package/build/commands/stt/delete-stt-job-by-uuid.command.js +13 -0
  30. package/build/commands/stt/execute-stt.command.d.ts +213 -0
  31. package/build/commands/stt/execute-stt.command.d.ts.map +1 -0
  32. package/build/commands/stt/execute-stt.command.js +15 -0
  33. package/build/commands/stt/index.d.ts +7 -0
  34. package/build/commands/stt/index.d.ts.map +1 -0
  35. package/build/commands/stt/index.js +22 -0
  36. package/build/commands/stt/retry-stt-job.command.d.ts +210 -0
  37. package/build/commands/stt/retry-stt-job.command.d.ts.map +1 -0
  38. package/build/commands/stt/retry-stt-job.command.js +14 -0
  39. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +222 -0
  40. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts.map +1 -0
  41. package/build/commands/stt/set-reaction-to-stt-job.command.js +19 -0
  42. package/build/commands/stt/update-stt-job-title.command.d.ts +218 -0
  43. package/build/commands/stt/update-stt-job-title.command.d.ts.map +1 -0
  44. package/build/commands/stt/update-stt-job-title.command.js +17 -0
  45. package/build/commands/subscription/fast-buy-subscription.command.d.ts +559 -0
  46. package/build/commands/subscription/fast-buy-subscription.command.d.ts.map +1 -0
  47. package/build/commands/subscription/fast-buy-subscription.command.js +21 -0
  48. package/build/commands/subscription/index.d.ts +1 -0
  49. package/build/commands/subscription/index.d.ts.map +1 -1
  50. package/build/commands/subscription/index.js +1 -0
  51. package/build/commands/tts/delete-all-tts-jobs.command.d.ts +12 -0
  52. package/build/commands/tts/delete-all-tts-jobs.command.d.ts.map +1 -0
  53. package/build/commands/tts/delete-all-tts-jobs.command.js +10 -0
  54. package/build/commands/tts/delete-tts-job-by-uuid.command.d.ts +20 -0
  55. package/build/commands/tts/delete-tts-job-by-uuid.command.d.ts.map +1 -0
  56. package/build/commands/tts/delete-tts-job-by-uuid.command.js +13 -0
  57. package/build/commands/tts/execute-tts.command.d.ts +256 -0
  58. package/build/commands/tts/execute-tts.command.d.ts.map +1 -0
  59. package/build/commands/tts/execute-tts.command.js +26 -0
  60. package/build/commands/tts/index.d.ts +7 -0
  61. package/build/commands/tts/index.d.ts.map +1 -0
  62. package/build/commands/tts/index.js +22 -0
  63. package/build/commands/tts/retry-tts-job.command.d.ts +217 -0
  64. package/build/commands/tts/retry-tts-job.command.d.ts.map +1 -0
  65. package/build/commands/tts/retry-tts-job.command.js +14 -0
  66. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +229 -0
  67. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts.map +1 -0
  68. package/build/commands/tts/set-reaction-to-tts-job.command.js +19 -0
  69. package/build/commands/tts/update-tts-job-title.command.d.ts +225 -0
  70. package/build/commands/tts/update-tts-job-title.command.d.ts.map +1 -0
  71. package/build/commands/tts/update-tts-job-title.command.js +17 -0
  72. package/build/constants/errors/errors.d.ts +90 -0
  73. package/build/constants/errors/errors.d.ts.map +1 -1
  74. package/build/constants/errors/errors.js +92 -0
  75. package/build/constants/files/enums/file-type.enum.d.ts +2 -1
  76. package/build/constants/files/enums/file-type.enum.d.ts.map +1 -1
  77. package/build/constants/files/enums/file-type.enum.js +1 -0
  78. package/build/constants/tools/enums/tool-type.enum.d.ts +3 -1
  79. package/build/constants/tools/enums/tool-type.enum.d.ts.map +1 -1
  80. package/build/constants/tools/enums/tool-type.enum.js +2 -0
  81. package/build/models/index.d.ts +2 -0
  82. package/build/models/index.d.ts.map +1 -1
  83. package/build/models/index.js +2 -0
  84. package/build/models/stt/index.d.ts +6 -0
  85. package/build/models/stt/index.d.ts.map +1 -0
  86. package/build/models/stt/index.js +21 -0
  87. package/build/models/stt/stt-config.schema.d.ts +165 -0
  88. package/build/models/stt/stt-config.schema.d.ts.map +1 -0
  89. package/build/models/stt/stt-config.schema.js +8 -0
  90. package/build/models/stt/stt-job-attempt.schema.d.ts +20 -0
  91. package/build/models/stt/stt-job-attempt.schema.d.ts.map +1 -0
  92. package/build/models/stt/stt-job-attempt.schema.js +11 -0
  93. package/build/models/stt/stt-job.schema.d.ts +127 -0
  94. package/build/models/stt/stt-job.schema.d.ts.map +1 -0
  95. package/build/models/stt/stt-job.schema.js +32 -0
  96. package/build/models/stt/stt-model.schema.d.ts +110 -0
  97. package/build/models/stt/stt-model.schema.d.ts.map +1 -0
  98. package/build/models/stt/stt-model.schema.js +23 -0
  99. package/build/models/stt/stt-response.schema.d.ts +19 -0
  100. package/build/models/stt/stt-response.schema.d.ts.map +1 -0
  101. package/build/models/stt/stt-response.schema.js +10 -0
  102. package/build/models/tts/index.d.ts +6 -0
  103. package/build/models/tts/index.d.ts.map +1 -0
  104. package/build/models/tts/index.js +21 -0
  105. package/build/models/tts/tts-config.schema.d.ts +1117 -0
  106. package/build/models/tts/tts-config.schema.d.ts.map +1 -0
  107. package/build/models/tts/tts-config.schema.js +8 -0
  108. package/build/models/tts/tts-job-attempt.schema.d.ts +20 -0
  109. package/build/models/tts/tts-job-attempt.schema.d.ts.map +1 -0
  110. package/build/models/tts/tts-job-attempt.schema.js +11 -0
  111. package/build/models/tts/tts-job-params.schema.d.ts +22 -0
  112. package/build/models/tts/tts-job-params.schema.d.ts.map +1 -0
  113. package/build/models/tts/tts-job-params.schema.js +11 -0
  114. package/build/models/tts/tts-job.schema.d.ts +132 -0
  115. package/build/models/tts/tts-job.schema.d.ts.map +1 -0
  116. package/build/models/tts/tts-job.schema.js +32 -0
  117. package/build/models/tts/tts-model.schema.d.ts +1530 -0
  118. package/build/models/tts/tts-model.schema.d.ts.map +1 -0
  119. package/build/models/tts/tts-model.schema.js +58 -0
  120. package/build/queries/index.d.ts +2 -0
  121. package/build/queries/index.d.ts.map +1 -1
  122. package/build/queries/index.js +2 -0
  123. package/build/queries/stt/find-stt-jobs.command.d.ts +236 -0
  124. package/build/queries/stt/find-stt-jobs.command.d.ts.map +1 -0
  125. package/build/queries/stt/find-stt-jobs.command.js +20 -0
  126. package/build/queries/stt/get-stt-config.command.d.ts +227 -0
  127. package/build/queries/stt/get-stt-config.command.d.ts.map +1 -0
  128. package/build/queries/stt/get-stt-config.command.js +11 -0
  129. package/build/queries/stt/get-stt-job.command.d.ts +210 -0
  130. package/build/queries/stt/get-stt-job.command.d.ts.map +1 -0
  131. package/build/queries/stt/get-stt-job.command.js +14 -0
  132. package/build/queries/stt/index.d.ts +4 -0
  133. package/build/queries/stt/index.d.ts.map +1 -0
  134. package/build/queries/stt/index.js +19 -0
  135. package/build/queries/tts/find-tts-jobs.command.d.ts +243 -0
  136. package/build/queries/tts/find-tts-jobs.command.d.ts.map +1 -0
  137. package/build/queries/tts/find-tts-jobs.command.js +20 -0
  138. package/build/queries/tts/get-tts-config.command.d.ts +1371 -0
  139. package/build/queries/tts/get-tts-config.command.d.ts.map +1 -0
  140. package/build/queries/tts/get-tts-config.command.js +11 -0
  141. package/build/queries/tts/get-tts-job.command.d.ts +217 -0
  142. package/build/queries/tts/get-tts-job.command.d.ts.map +1 -0
  143. package/build/queries/tts/get-tts-job.command.js +14 -0
  144. package/build/queries/tts/index.d.ts +4 -0
  145. package/build/queries/tts/index.d.ts.map +1 -0
  146. package/build/queries/tts/index.js +19 -0
  147. package/commands/index.ts +2 -0
  148. package/commands/stt/delete-all-stt-jobs.command.ts +8 -0
  149. package/commands/stt/delete-stt-job-by-uuid.command.ts +13 -0
  150. package/commands/stt/execute-stt.command.ts +15 -0
  151. package/commands/stt/index.ts +6 -0
  152. package/commands/stt/retry-stt-job.command.ts +14 -0
  153. package/commands/stt/set-reaction-to-stt-job.command.ts +21 -0
  154. package/commands/stt/update-stt-job-title.command.ts +19 -0
  155. package/commands/subscription/fast-buy-subscription.command.ts +23 -0
  156. package/commands/subscription/index.ts +1 -0
  157. package/commands/tts/delete-all-tts-jobs.command.ts +8 -0
  158. package/commands/tts/delete-tts-job-by-uuid.command.ts +13 -0
  159. package/commands/tts/execute-tts.command.ts +26 -0
  160. package/commands/tts/index.ts +6 -0
  161. package/commands/tts/retry-tts-job.command.ts +14 -0
  162. package/commands/tts/set-reaction-to-tts-job.command.ts +21 -0
  163. package/commands/tts/update-tts-job-title.command.ts +19 -0
  164. package/constants/errors/errors.ts +94 -0
  165. package/constants/files/enums/file-type.enum.ts +1 -0
  166. package/constants/tools/enums/tool-type.enum.ts +2 -0
  167. package/models/index.ts +2 -0
  168. package/models/stt/index.ts +5 -0
  169. package/models/stt/stt-config.schema.ts +8 -0
  170. package/models/stt/stt-job-attempt.schema.ts +11 -0
  171. package/models/stt/stt-job.schema.ts +32 -0
  172. package/models/stt/stt-model.schema.ts +23 -0
  173. package/models/stt/stt-response.schema.ts +10 -0
  174. package/models/tts/index.ts +5 -0
  175. package/models/tts/tts-config.schema.ts +8 -0
  176. package/models/tts/tts-job-attempt.schema.ts +11 -0
  177. package/models/tts/tts-job-params.schema.ts +11 -0
  178. package/models/tts/tts-job.schema.ts +32 -0
  179. package/models/tts/tts-model.schema.ts +66 -0
  180. package/package.json +1 -1
  181. package/queries/index.ts +2 -0
  182. package/queries/stt/find-stt-jobs.command.ts +20 -0
  183. package/queries/stt/get-stt-config.command.ts +9 -0
  184. package/queries/stt/get-stt-job.command.ts +14 -0
  185. package/queries/stt/index.ts +3 -0
  186. package/queries/tts/find-tts-jobs.command.ts +20 -0
  187. package/queries/tts/get-tts-config.command.ts +9 -0
  188. package/queries/tts/get-tts-job.command.ts +14 -0
  189. package/queries/tts/index.ts +3 -0
@@ -0,0 +1,210 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetSTTJobCommand {
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=get-stt-job.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stt-job.command.d.ts","sourceRoot":"","sources":["../../../queries/stt/get-stt-job.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,gBAAgB,CAAC;IACvB,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.GetSTTJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetSTTJobCommand;
7
+ (function (GetSTTJobCommand) {
8
+ GetSTTJobCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ GetSTTJobCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.STTJobSchema,
13
+ });
14
+ })(GetSTTJobCommand || (exports.GetSTTJobCommand = GetSTTJobCommand = {}));
@@ -0,0 +1,4 @@
1
+ export * from './get-stt-config.command';
2
+ export * from './get-stt-job.command';
3
+ export * from './find-stt-jobs.command';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../queries/stt/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,19 @@
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("./get-stt-config.command"), exports);
18
+ __exportStar(require("./get-stt-job.command"), exports);
19
+ __exportStar(require("./find-stt-jobs.command"), exports);
@@ -0,0 +1,243 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindTTSJobsCommand {
3
+ const RequestQuerySchema: z.ZodObject<{
4
+ limit: z.ZodDefault<z.ZodNumber>;
5
+ offset: z.ZodDefault<z.ZodNumber>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ limit: number;
8
+ offset: number;
9
+ }, {
10
+ limit?: number | undefined;
11
+ offset?: number | undefined;
12
+ }>;
13
+ type RequestQuery = z.infer<typeof RequestQuerySchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ data: z.ZodArray<z.ZodObject<{
16
+ uuid: z.ZodString;
17
+ siteId: z.ZodString;
18
+ userInput: z.ZodString;
19
+ aiResponse: z.ZodNullable<z.ZodString>;
20
+ reaction: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").USER_REACTION>>;
21
+ dislikeReason: z.ZodNullable<z.ZodString>;
22
+ title: z.ZodString;
23
+ status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
24
+ error: z.ZodNullable<z.ZodString>;
25
+ internalError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ modelId: z.ZodString;
27
+ voiceId: z.ZodString;
28
+ price: z.ZodNumber;
29
+ duration: z.ZodNumber;
30
+ userId: z.ZodNullable<z.ZodString>;
31
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
32
+ tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
34
+ order: z.ZodNumber;
35
+ status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
36
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ timestamp: z.ZodString;
38
+ }, "strip", z.ZodTypeAny, {
39
+ status: import("../..").JOB_STATUS;
40
+ order: number;
41
+ timestamp: string;
42
+ error?: string | null | undefined;
43
+ }, {
44
+ status: import("../..").JOB_STATUS;
45
+ order: number;
46
+ timestamp: string;
47
+ error?: string | null | undefined;
48
+ }>, "many">>;
49
+ params: z.ZodObject<{
50
+ speed: z.ZodOptional<z.ZodNumber>;
51
+ similarity: z.ZodOptional<z.ZodNumber>;
52
+ stability: z.ZodOptional<z.ZodNumber>;
53
+ style: z.ZodOptional<z.ZodNumber>;
54
+ language: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ speed?: number | undefined;
57
+ stability?: number | undefined;
58
+ similarity?: number | undefined;
59
+ style?: number | undefined;
60
+ language?: string | undefined;
61
+ }, {
62
+ speed?: number | undefined;
63
+ stability?: number | undefined;
64
+ similarity?: number | undefined;
65
+ style?: number | undefined;
66
+ language?: string | undefined;
67
+ }>;
68
+ isDeleted: z.ZodBoolean;
69
+ createdAt: z.ZodDate;
70
+ updatedAt: z.ZodDate;
71
+ completedAt: z.ZodNullable<z.ZodDate>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ price: number;
74
+ uuid: string;
75
+ siteId: string;
76
+ status: import("../..").JOB_STATUS;
77
+ params: {
78
+ speed?: number | undefined;
79
+ stability?: number | undefined;
80
+ similarity?: number | undefined;
81
+ style?: number | undefined;
82
+ language?: string | undefined;
83
+ };
84
+ duration: number;
85
+ title: string;
86
+ createdAt: Date;
87
+ updatedAt: Date;
88
+ error: string | null;
89
+ modelId: string;
90
+ reaction: import("../..").USER_REACTION | null;
91
+ dislikeReason: string | null;
92
+ attempts: {
93
+ status: import("../..").JOB_STATUS;
94
+ order: number;
95
+ timestamp: string;
96
+ error?: string | null | undefined;
97
+ }[];
98
+ userId: string | null;
99
+ unregisteredUserId: string | null;
100
+ isDeleted: boolean;
101
+ completedAt: Date | null;
102
+ aiResponse: string | null;
103
+ userInput: string;
104
+ voiceId: string;
105
+ internalError?: string | null | undefined;
106
+ tokenReservationId?: string | null | undefined;
107
+ }, {
108
+ price: number;
109
+ uuid: string;
110
+ siteId: string;
111
+ status: import("../..").JOB_STATUS;
112
+ params: {
113
+ speed?: number | undefined;
114
+ stability?: number | undefined;
115
+ similarity?: number | undefined;
116
+ style?: number | undefined;
117
+ language?: string | undefined;
118
+ };
119
+ duration: number;
120
+ title: string;
121
+ createdAt: Date;
122
+ updatedAt: Date;
123
+ error: string | null;
124
+ modelId: string;
125
+ reaction: import("../..").USER_REACTION | null;
126
+ dislikeReason: string | null;
127
+ userId: string | null;
128
+ unregisteredUserId: string | null;
129
+ isDeleted: boolean;
130
+ completedAt: Date | null;
131
+ aiResponse: string | null;
132
+ userInput: string;
133
+ voiceId: string;
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
+ }>, "many">;
143
+ meta: z.ZodObject<{
144
+ limit: z.ZodNumber;
145
+ offset: z.ZodNumber;
146
+ total: z.ZodNumber;
147
+ }, "strip", z.ZodTypeAny, {
148
+ limit: number;
149
+ offset: number;
150
+ total: number;
151
+ }, {
152
+ limit: number;
153
+ offset: number;
154
+ total: number;
155
+ }>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ data: {
158
+ price: number;
159
+ uuid: string;
160
+ siteId: string;
161
+ status: import("../..").JOB_STATUS;
162
+ params: {
163
+ speed?: number | undefined;
164
+ stability?: number | undefined;
165
+ similarity?: number | undefined;
166
+ style?: number | undefined;
167
+ language?: string | undefined;
168
+ };
169
+ duration: number;
170
+ title: string;
171
+ createdAt: Date;
172
+ updatedAt: Date;
173
+ error: string | null;
174
+ modelId: string;
175
+ reaction: import("../..").USER_REACTION | null;
176
+ dislikeReason: string | null;
177
+ attempts: {
178
+ status: import("../..").JOB_STATUS;
179
+ order: number;
180
+ timestamp: string;
181
+ error?: string | null | undefined;
182
+ }[];
183
+ userId: string | null;
184
+ unregisteredUserId: string | null;
185
+ isDeleted: boolean;
186
+ completedAt: Date | null;
187
+ aiResponse: string | null;
188
+ userInput: string;
189
+ voiceId: string;
190
+ internalError?: string | null | undefined;
191
+ tokenReservationId?: string | null | undefined;
192
+ }[];
193
+ meta: {
194
+ limit: number;
195
+ offset: number;
196
+ total: number;
197
+ };
198
+ }, {
199
+ data: {
200
+ price: number;
201
+ uuid: string;
202
+ siteId: string;
203
+ status: import("../..").JOB_STATUS;
204
+ params: {
205
+ speed?: number | undefined;
206
+ stability?: number | undefined;
207
+ similarity?: number | undefined;
208
+ style?: number | undefined;
209
+ language?: string | undefined;
210
+ };
211
+ duration: number;
212
+ title: string;
213
+ createdAt: Date;
214
+ updatedAt: Date;
215
+ error: string | null;
216
+ modelId: string;
217
+ reaction: import("../..").USER_REACTION | null;
218
+ dislikeReason: string | null;
219
+ userId: string | null;
220
+ unregisteredUserId: string | null;
221
+ isDeleted: boolean;
222
+ completedAt: Date | null;
223
+ aiResponse: string | null;
224
+ userInput: string;
225
+ voiceId: string;
226
+ attempts?: {
227
+ status: import("../..").JOB_STATUS;
228
+ order: number;
229
+ timestamp: string;
230
+ error?: string | null | undefined;
231
+ }[] | undefined;
232
+ internalError?: string | null | undefined;
233
+ tokenReservationId?: string | null | undefined;
234
+ }[];
235
+ meta: {
236
+ limit: number;
237
+ offset: number;
238
+ total: number;
239
+ };
240
+ }>;
241
+ type Response = z.infer<typeof ResponseSchema>;
242
+ }
243
+ //# sourceMappingURL=find-tts-jobs.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-tts-jobs.command.d.ts","sourceRoot":"","sources":["../../../queries/tts/find-tts-jobs.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,kBAAkB;;;;;;;;;MAG7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindTTSJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var FindTTSJobsCommand;
7
+ (function (FindTTSJobsCommand) {
8
+ FindTTSJobsCommand.RequestQuerySchema = zod_1.z.object({
9
+ limit: zod_1.z.coerce.number().int().min(1).max(100).default(20),
10
+ offset: zod_1.z.coerce.number().int().min(0).default(0),
11
+ });
12
+ FindTTSJobsCommand.ResponseSchema = zod_1.z.object({
13
+ data: zod_1.z.array(models_1.TTSJobSchema),
14
+ meta: zod_1.z.object({
15
+ limit: zod_1.z.number().int(),
16
+ offset: zod_1.z.number().int(),
17
+ total: zod_1.z.number().int(),
18
+ }),
19
+ });
20
+ })(FindTTSJobsCommand || (exports.FindTTSJobsCommand = FindTTSJobsCommand = {}));