@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,110 @@
1
+ import { z } from 'zod';
2
+ import { TOOL_MODEL_STATUS } from '../../constants/tools/enums/tool-model-status.enum';
3
+ export declare const STTModelSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ siteId: z.ZodString;
6
+ title: z.ZodString;
7
+ description: z.ZodString;
8
+ aiModel: z.ZodString;
9
+ pricePerSecond: z.ZodNumber;
10
+ order: z.ZodNumber;
11
+ status: z.ZodNativeEnum<typeof TOOL_MODEL_STATUS>;
12
+ canUse: z.ZodOptional<z.ZodBoolean>;
13
+ icons: z.ZodObject<{
14
+ light: z.ZodObject<{
15
+ png: z.ZodOptional<z.ZodString>;
16
+ svg: z.ZodOptional<z.ZodString>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ png?: string | undefined;
19
+ svg?: string | undefined;
20
+ }, {
21
+ png?: string | undefined;
22
+ svg?: string | undefined;
23
+ }>;
24
+ dark: z.ZodObject<{
25
+ png: z.ZodOptional<z.ZodString>;
26
+ svg: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ png?: string | undefined;
29
+ svg?: string | undefined;
30
+ }, {
31
+ png?: string | undefined;
32
+ svg?: string | undefined;
33
+ }>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ light: {
36
+ png?: string | undefined;
37
+ svg?: string | undefined;
38
+ };
39
+ dark: {
40
+ png?: string | undefined;
41
+ svg?: string | undefined;
42
+ };
43
+ }, {
44
+ light: {
45
+ png?: string | undefined;
46
+ svg?: string | undefined;
47
+ };
48
+ dark: {
49
+ png?: string | undefined;
50
+ svg?: string | undefined;
51
+ };
52
+ }>;
53
+ strategy: z.ZodString;
54
+ maxDurationSeconds: z.ZodNumber;
55
+ maxSizeMB: z.ZodNumber;
56
+ createdAt: z.ZodDate;
57
+ updatedAt: z.ZodDate;
58
+ }, "strip", z.ZodTypeAny, {
59
+ uuid: string;
60
+ siteId: string;
61
+ status: TOOL_MODEL_STATUS;
62
+ description: string;
63
+ title: string;
64
+ strategy: string;
65
+ order: number;
66
+ createdAt: Date;
67
+ updatedAt: Date;
68
+ aiModel: string;
69
+ icons: {
70
+ light: {
71
+ png?: string | undefined;
72
+ svg?: string | undefined;
73
+ };
74
+ dark: {
75
+ png?: string | undefined;
76
+ svg?: string | undefined;
77
+ };
78
+ };
79
+ pricePerSecond: number;
80
+ maxDurationSeconds: number;
81
+ maxSizeMB: number;
82
+ canUse?: boolean | undefined;
83
+ }, {
84
+ uuid: string;
85
+ siteId: string;
86
+ status: TOOL_MODEL_STATUS;
87
+ description: string;
88
+ title: string;
89
+ strategy: string;
90
+ order: number;
91
+ createdAt: Date;
92
+ updatedAt: Date;
93
+ aiModel: string;
94
+ icons: {
95
+ light: {
96
+ png?: string | undefined;
97
+ svg?: string | undefined;
98
+ };
99
+ dark: {
100
+ png?: string | undefined;
101
+ svg?: string | undefined;
102
+ };
103
+ };
104
+ pricePerSecond: number;
105
+ maxDurationSeconds: number;
106
+ maxSizeMB: number;
107
+ canUse?: boolean | undefined;
108
+ }>;
109
+ export type STTModel = z.infer<typeof STTModelSchema>;
110
+ //# sourceMappingURL=stt-model.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stt-model.schema.d.ts","sourceRoot":"","sources":["../../../models/stt/stt-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;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.STTModelSchema = 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.STTModelSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string(),
9
+ siteId: zod_1.z.string(),
10
+ title: zod_1.z.string(),
11
+ description: zod_1.z.string(),
12
+ aiModel: zod_1.z.string(),
13
+ pricePerSecond: zod_1.z.number(),
14
+ order: zod_1.z.number(),
15
+ status: zod_1.z.nativeEnum(tool_model_status_enum_1.TOOL_MODEL_STATUS),
16
+ canUse: zod_1.z.boolean().optional(),
17
+ icons: common_1.IconVariantsSchema,
18
+ strategy: zod_1.z.string(),
19
+ maxDurationSeconds: zod_1.z.number(),
20
+ maxSizeMB: zod_1.z.number(),
21
+ createdAt: zod_1.z.date(),
22
+ updatedAt: zod_1.z.date(),
23
+ });
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ export declare const STTResponseSchema: z.ZodObject<{
3
+ raw: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
4
+ md: z.ZodString;
5
+ txtUrl: z.ZodOptional<z.ZodString>;
6
+ srtUrl: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ raw: Record<string, any>;
9
+ md: string;
10
+ txtUrl?: string | undefined;
11
+ srtUrl?: string | undefined;
12
+ }, {
13
+ md: string;
14
+ raw?: Record<string, any> | undefined;
15
+ txtUrl?: string | undefined;
16
+ srtUrl?: string | undefined;
17
+ }>;
18
+ export type STTResponse = z.infer<typeof STTResponseSchema>;
19
+ //# sourceMappingURL=stt-response.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stt-response.schema.d.ts","sourceRoot":"","sources":["../../../models/stt/stt-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.STTResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.STTResponseSchema = zod_1.z.object({
6
+ raw: zod_1.z.record(zod_1.z.any()).default({}),
7
+ md: zod_1.z.string(),
8
+ txtUrl: zod_1.z.string().optional(),
9
+ srtUrl: zod_1.z.string().optional(),
10
+ });
@@ -0,0 +1,6 @@
1
+ export * from './tts-config.schema';
2
+ export * from './tts-job.schema';
3
+ export * from './tts-model.schema';
4
+ export * from './tts-job-params.schema';
5
+ export * from './tts-job-attempt.schema';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/tts/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,21 @@
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("./tts-config.schema"), exports);
18
+ __exportStar(require("./tts-job.schema"), exports);
19
+ __exportStar(require("./tts-model.schema"), exports);
20
+ __exportStar(require("./tts-job-params.schema"), exports);
21
+ __exportStar(require("./tts-job-attempt.schema"), exports);