@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 @@
1
+ {"version":3,"file":"tts-model.schema.d.ts","sourceRoot":"","sources":["../../../models/tts/tts-model.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAGvF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnB,CAAC;AACf,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TTSModelSchema = exports.TTSModelParamsSchema = exports.TTSSliderSchema = exports.TTSVoiceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const tool_model_status_enum_1 = require("../../constants/tools/enums/tool-model-status.enum");
6
+ const common_1 = require("../common");
7
+ exports.TTSVoiceSchema = zod_1.z.object({
8
+ id: zod_1.z.string(),
9
+ externalId: zod_1.z.string(),
10
+ icon: zod_1.z.string(),
11
+ title: zod_1.z.string(),
12
+ previewUrl: zod_1.z.string(),
13
+ description: zod_1.z.string(),
14
+ languages: zod_1.z.array(zod_1.z.object({
15
+ code: zod_1.z.string(),
16
+ title: zod_1.z.string(),
17
+ icon: zod_1.z.string(),
18
+ order: zod_1.z.number(),
19
+ })),
20
+ order: zod_1.z.number(),
21
+ });
22
+ exports.TTSSliderSchema = zod_1.z.object({
23
+ title: zod_1.z.string(),
24
+ description: zod_1.z.string(),
25
+ icons: common_1.IconVariantsSchema,
26
+ min: zod_1.z.number(),
27
+ minLabel: zod_1.z.string(),
28
+ max: zod_1.z.number(),
29
+ maxLabel: zod_1.z.string(),
30
+ step: zod_1.z.number(),
31
+ default: zod_1.z.number(),
32
+ });
33
+ exports.TTSModelParamsSchema = zod_1.z
34
+ .object({
35
+ speed: exports.TTSSliderSchema,
36
+ stability: exports.TTSSliderSchema,
37
+ similarity: exports.TTSSliderSchema,
38
+ style: exports.TTSSliderSchema,
39
+ })
40
+ .partial();
41
+ exports.TTSModelSchema = zod_1.z.object({
42
+ uuid: zod_1.z.string(),
43
+ siteId: zod_1.z.string(),
44
+ title: zod_1.z.string(),
45
+ description: zod_1.z.string(),
46
+ aiModel: zod_1.z.string(),
47
+ pricePerSymbol: zod_1.z.number(),
48
+ order: zod_1.z.number(),
49
+ status: zod_1.z.nativeEnum(tool_model_status_enum_1.TOOL_MODEL_STATUS),
50
+ canUse: zod_1.z.boolean().optional(),
51
+ icons: common_1.IconVariantsSchema,
52
+ strategy: zod_1.z.string(),
53
+ maxInputLength: zod_1.z.number(),
54
+ voices: zod_1.z.array(exports.TTSVoiceSchema),
55
+ params: exports.TTSModelParamsSchema,
56
+ createdAt: zod_1.z.date(),
57
+ updatedAt: zod_1.z.date(),
58
+ });
@@ -8,4 +8,6 @@ export * from './image-generation';
8
8
  export * from './image-editor';
9
9
  export * from './page';
10
10
  export * from './marketplace-card';
11
+ export * from './stt';
12
+ export * from './tts';
11
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC"}
@@ -24,3 +24,5 @@ __exportStar(require("./image-generation"), exports);
24
24
  __exportStar(require("./image-editor"), exports);
25
25
  __exportStar(require("./page"), exports);
26
26
  __exportStar(require("./marketplace-card"), exports);
27
+ __exportStar(require("./stt"), exports);
28
+ __exportStar(require("./tts"), exports);
@@ -0,0 +1,236 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindSTTJobsCommand {
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
+ 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
+ }>, "many">;
138
+ meta: z.ZodObject<{
139
+ limit: z.ZodNumber;
140
+ offset: z.ZodNumber;
141
+ total: z.ZodNumber;
142
+ }, "strip", z.ZodTypeAny, {
143
+ limit: number;
144
+ offset: number;
145
+ total: number;
146
+ }, {
147
+ limit: number;
148
+ offset: number;
149
+ total: number;
150
+ }>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ data: {
153
+ price: number;
154
+ uuid: string;
155
+ siteId: string;
156
+ status: import("../..").JOB_STATUS;
157
+ duration: number;
158
+ title: string;
159
+ createdAt: Date;
160
+ updatedAt: Date;
161
+ error: string | null;
162
+ modelId: string;
163
+ reaction: import("../..").USER_REACTION | null;
164
+ dislikeReason: string | null;
165
+ attempts: {
166
+ status: import("../..").JOB_STATUS;
167
+ order: number;
168
+ timestamp: string;
169
+ error?: string | null | undefined;
170
+ }[];
171
+ userId: string | null;
172
+ unregisteredUserId: string | null;
173
+ isDeleted: boolean;
174
+ completedAt: Date | null;
175
+ fileId: string;
176
+ fileKey: string;
177
+ fileUrl: string;
178
+ aiResponse: {
179
+ raw: Record<string, any>;
180
+ md: string;
181
+ txtUrl?: string | undefined;
182
+ srtUrl?: string | undefined;
183
+ } | null;
184
+ internalError?: string | null | undefined;
185
+ tokenReservationId?: string | null | undefined;
186
+ }[];
187
+ meta: {
188
+ limit: number;
189
+ offset: number;
190
+ total: number;
191
+ };
192
+ }, {
193
+ data: {
194
+ price: number;
195
+ uuid: string;
196
+ siteId: string;
197
+ status: import("../..").JOB_STATUS;
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
+ fileId: string;
211
+ fileKey: string;
212
+ fileUrl: string;
213
+ aiResponse: {
214
+ md: string;
215
+ raw?: Record<string, any> | undefined;
216
+ txtUrl?: string | undefined;
217
+ srtUrl?: string | undefined;
218
+ } | null;
219
+ attempts?: {
220
+ status: import("../..").JOB_STATUS;
221
+ order: number;
222
+ timestamp: string;
223
+ error?: string | null | undefined;
224
+ }[] | undefined;
225
+ internalError?: string | null | undefined;
226
+ tokenReservationId?: string | null | undefined;
227
+ }[];
228
+ meta: {
229
+ limit: number;
230
+ offset: number;
231
+ total: number;
232
+ };
233
+ }>;
234
+ type Response = z.infer<typeof ResponseSchema>;
235
+ }
236
+ //# sourceMappingURL=find-stt-jobs.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-stt-jobs.command.d.ts","sourceRoot":"","sources":["../../../queries/stt/find-stt-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.FindSTTJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var FindSTTJobsCommand;
7
+ (function (FindSTTJobsCommand) {
8
+ FindSTTJobsCommand.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
+ FindSTTJobsCommand.ResponseSchema = zod_1.z.object({
13
+ data: zod_1.z.array(models_1.STTJobSchema),
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
+ })(FindSTTJobsCommand || (exports.FindSTTJobsCommand = FindSTTJobsCommand = {}));
@@ -0,0 +1,227 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetSTTConfigCommand {
3
+ const ResponseSchema: z.ZodObject<{
4
+ data: z.ZodObject<{
5
+ models: z.ZodArray<z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ siteId: z.ZodString;
8
+ title: z.ZodString;
9
+ description: z.ZodString;
10
+ aiModel: z.ZodString;
11
+ pricePerSecond: z.ZodNumber;
12
+ order: z.ZodNumber;
13
+ status: z.ZodNativeEnum<typeof import("../..").TOOL_MODEL_STATUS>;
14
+ canUse: z.ZodOptional<z.ZodBoolean>;
15
+ icons: z.ZodObject<{
16
+ light: z.ZodObject<{
17
+ png: z.ZodOptional<z.ZodString>;
18
+ svg: z.ZodOptional<z.ZodString>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ png?: string | undefined;
21
+ svg?: string | undefined;
22
+ }, {
23
+ png?: string | undefined;
24
+ svg?: string | undefined;
25
+ }>;
26
+ dark: z.ZodObject<{
27
+ png: z.ZodOptional<z.ZodString>;
28
+ svg: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ png?: string | undefined;
31
+ svg?: string | undefined;
32
+ }, {
33
+ png?: string | undefined;
34
+ svg?: string | undefined;
35
+ }>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ light: {
38
+ png?: string | undefined;
39
+ svg?: string | undefined;
40
+ };
41
+ dark: {
42
+ png?: string | undefined;
43
+ svg?: string | undefined;
44
+ };
45
+ }, {
46
+ light: {
47
+ png?: string | undefined;
48
+ svg?: string | undefined;
49
+ };
50
+ dark: {
51
+ png?: string | undefined;
52
+ svg?: string | undefined;
53
+ };
54
+ }>;
55
+ strategy: z.ZodString;
56
+ maxDurationSeconds: z.ZodNumber;
57
+ maxSizeMB: z.ZodNumber;
58
+ createdAt: z.ZodDate;
59
+ updatedAt: z.ZodDate;
60
+ }, "strip", z.ZodTypeAny, {
61
+ uuid: string;
62
+ siteId: string;
63
+ status: import("../..").TOOL_MODEL_STATUS;
64
+ description: string;
65
+ title: string;
66
+ strategy: string;
67
+ order: number;
68
+ createdAt: Date;
69
+ updatedAt: Date;
70
+ aiModel: string;
71
+ icons: {
72
+ light: {
73
+ png?: string | undefined;
74
+ svg?: string | undefined;
75
+ };
76
+ dark: {
77
+ png?: string | undefined;
78
+ svg?: string | undefined;
79
+ };
80
+ };
81
+ pricePerSecond: number;
82
+ maxDurationSeconds: number;
83
+ maxSizeMB: number;
84
+ canUse?: boolean | undefined;
85
+ }, {
86
+ uuid: string;
87
+ siteId: string;
88
+ status: import("../..").TOOL_MODEL_STATUS;
89
+ description: string;
90
+ title: string;
91
+ strategy: string;
92
+ order: number;
93
+ createdAt: Date;
94
+ updatedAt: Date;
95
+ aiModel: string;
96
+ icons: {
97
+ light: {
98
+ png?: string | undefined;
99
+ svg?: string | undefined;
100
+ };
101
+ dark: {
102
+ png?: string | undefined;
103
+ svg?: string | undefined;
104
+ };
105
+ };
106
+ pricePerSecond: number;
107
+ maxDurationSeconds: number;
108
+ maxSizeMB: number;
109
+ canUse?: boolean | undefined;
110
+ }>, "many">;
111
+ }, "strip", z.ZodTypeAny, {
112
+ models: {
113
+ uuid: string;
114
+ siteId: string;
115
+ status: import("../..").TOOL_MODEL_STATUS;
116
+ description: string;
117
+ title: string;
118
+ strategy: string;
119
+ order: number;
120
+ createdAt: Date;
121
+ updatedAt: Date;
122
+ aiModel: string;
123
+ icons: {
124
+ light: {
125
+ png?: string | undefined;
126
+ svg?: string | undefined;
127
+ };
128
+ dark: {
129
+ png?: string | undefined;
130
+ svg?: string | undefined;
131
+ };
132
+ };
133
+ pricePerSecond: number;
134
+ maxDurationSeconds: number;
135
+ maxSizeMB: number;
136
+ canUse?: boolean | undefined;
137
+ }[];
138
+ }, {
139
+ models: {
140
+ uuid: string;
141
+ siteId: string;
142
+ status: import("../..").TOOL_MODEL_STATUS;
143
+ description: string;
144
+ title: string;
145
+ strategy: string;
146
+ order: number;
147
+ createdAt: Date;
148
+ updatedAt: Date;
149
+ aiModel: string;
150
+ icons: {
151
+ light: {
152
+ png?: string | undefined;
153
+ svg?: string | undefined;
154
+ };
155
+ dark: {
156
+ png?: string | undefined;
157
+ svg?: string | undefined;
158
+ };
159
+ };
160
+ pricePerSecond: number;
161
+ maxDurationSeconds: number;
162
+ maxSizeMB: number;
163
+ canUse?: boolean | undefined;
164
+ }[];
165
+ }>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ data: {
168
+ models: {
169
+ uuid: string;
170
+ siteId: string;
171
+ status: import("../..").TOOL_MODEL_STATUS;
172
+ description: string;
173
+ title: string;
174
+ strategy: string;
175
+ order: number;
176
+ createdAt: Date;
177
+ updatedAt: Date;
178
+ aiModel: string;
179
+ icons: {
180
+ light: {
181
+ png?: string | undefined;
182
+ svg?: string | undefined;
183
+ };
184
+ dark: {
185
+ png?: string | undefined;
186
+ svg?: string | undefined;
187
+ };
188
+ };
189
+ pricePerSecond: number;
190
+ maxDurationSeconds: number;
191
+ maxSizeMB: number;
192
+ canUse?: boolean | undefined;
193
+ }[];
194
+ };
195
+ }, {
196
+ data: {
197
+ models: {
198
+ uuid: string;
199
+ siteId: string;
200
+ status: import("../..").TOOL_MODEL_STATUS;
201
+ description: string;
202
+ title: string;
203
+ strategy: string;
204
+ order: number;
205
+ createdAt: Date;
206
+ updatedAt: Date;
207
+ aiModel: string;
208
+ icons: {
209
+ light: {
210
+ png?: string | undefined;
211
+ svg?: string | undefined;
212
+ };
213
+ dark: {
214
+ png?: string | undefined;
215
+ svg?: string | undefined;
216
+ };
217
+ };
218
+ pricePerSecond: number;
219
+ maxDurationSeconds: number;
220
+ maxSizeMB: number;
221
+ canUse?: boolean | undefined;
222
+ }[];
223
+ };
224
+ }>;
225
+ type Response = z.infer<typeof ResponseSchema>;
226
+ }
227
+ //# sourceMappingURL=get-stt-config.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stt-config.command.d.ts","sourceRoot":"","sources":["../../../queries/stt/get-stt-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,mBAAmB,CAAC;IAC1B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSTTConfigCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetSTTConfigCommand;
7
+ (function (GetSTTConfigCommand) {
8
+ GetSTTConfigCommand.ResponseSchema = zod_1.z.object({
9
+ data: models_1.STTConfigSchema,
10
+ });
11
+ })(GetSTTConfigCommand || (exports.GetSTTConfigCommand = GetSTTConfigCommand = {}));