@purpleschool/multisite 0.0.15 → 0.0.16
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.
- package/api/controller/http/file.ts +2 -0
- package/api/routes.ts +2 -0
- package/build/api/controller/http/file.d.ts +2 -0
- package/build/api/controller/http/file.d.ts.map +1 -1
- package/build/api/controller/http/file.js +2 -0
- package/build/api/routes.d.ts +2 -0
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +2 -0
- package/build/commands/file/index.d.ts +1 -0
- package/build/commands/file/index.d.ts.map +1 -1
- package/build/commands/file/index.js +1 -0
- package/build/commands/file/upload-file-by-url.command.d.ts +23 -0
- package/build/commands/file/upload-file-by-url.command.d.ts.map +1 -0
- package/build/commands/file/upload-file-by-url.command.js +14 -0
- package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +14 -14
- package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +33 -33
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts +5 -5
- package/build/commands/payment/cloud-payments.command.d.ts +3 -3
- package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +12 -12
- package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +12 -12
- package/build/models/image-editor/image-editor-job.schema.d.ts +7 -7
- package/build/models/image-generation/image-generation-job-params.schema.d.ts +5 -5
- package/build/models/image-generation/image-generation-job.schema.d.ts +12 -12
- package/build/models/image-generation/image-generation-model.schema.d.ts +14 -14
- package/commands/file/index.ts +1 -0
- package/commands/file/upload-file-by-url.command.ts +14 -0
- package/package.json +1 -1
package/api/routes.ts
CHANGED
|
@@ -227,6 +227,8 @@ export const REST_API = {
|
|
|
227
227
|
},
|
|
228
228
|
FILES_PRIVATE: {
|
|
229
229
|
UPLOAD: `${ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD}`,
|
|
230
|
+
UPLOAD_FILE: `${ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD_FILE}`,
|
|
231
|
+
UPLOAD_FILE_BY_URL: `${ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD_FILE_BY_URL}`,
|
|
230
232
|
LIST: `${ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}`,
|
|
231
233
|
GET: (uuid: string) => `${ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${uuid}`,
|
|
232
234
|
},
|
|
@@ -2,5 +2,7 @@ export declare const FILE_PRIVATE_CONTROLLER: "files/private";
|
|
|
2
2
|
export declare const FILE_PUBLIC_CONTROLLER: "files/public";
|
|
3
3
|
export declare const FILE_ROUTES: {
|
|
4
4
|
readonly UPLOAD: "upload";
|
|
5
|
+
readonly UPLOAD_FILE: "upload-file";
|
|
6
|
+
readonly UPLOAD_FILE_BY_URL: "upload-file-by-url";
|
|
5
7
|
};
|
|
6
8
|
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../api/controller/http/file.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,eAAwB,CAAC;AAChE,eAAO,MAAM,sBAAsB,EAAG,cAAuB,CAAC;AAE9D,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../api/controller/http/file.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,eAAwB,CAAC;AAChE,eAAO,MAAM,sBAAsB,EAAG,cAAuB,CAAC;AAE9D,eAAO,MAAM,WAAW;;;;CAId,CAAC"}
|
package/build/api/routes.d.ts
CHANGED
|
@@ -168,6 +168,8 @@ export declare const REST_API: {
|
|
|
168
168
|
};
|
|
169
169
|
readonly FILES_PRIVATE: {
|
|
170
170
|
readonly UPLOAD: "/api/files/private/upload";
|
|
171
|
+
readonly UPLOAD_FILE: "/api/files/private/upload-file";
|
|
172
|
+
readonly UPLOAD_FILE_BY_URL: "/api/files/private/upload-file-by-url";
|
|
171
173
|
readonly LIST: "/api/files/private";
|
|
172
174
|
readonly GET: (uuid: string) => string;
|
|
173
175
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA2BI,MAAM;;;;6BAKX,MAAM;;;;;kCAMD,MAAM;;;;6BAKX,MAAM;;;gCAIH,MAAM;;;;;;kCAOJ,MAAM;;;;;;iCAOP,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;;iCAQJ,MAAM;+BAER,MAAM;sCAEC,MAAM;gCAEZ,MAAM;gCAEN,MAAM;;;;;;;;iCASL,MAAM;+BAER,MAAM;sCAEC,MAAM;gCAEZ,MAAM;gCAEN,MAAM;;;;;;;;;;;iCAYL,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA2BI,MAAM;;;;6BAKX,MAAM;;;;;kCAMD,MAAM;;;;6BAKX,MAAM;;;gCAIH,MAAM;;;;;;kCAOJ,MAAM;;;;;;iCAOP,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;;iCAQJ,MAAM;+BAER,MAAM;sCAEC,MAAM;gCAEZ,MAAM;gCAEN,MAAM;;;;;;;;iCASL,MAAM;+BAER,MAAM;sCAEC,MAAM;gCAEZ,MAAM;gCAEN,MAAM;;;;;;;;;;;iCAYL,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;iCAOJ,MAAM;gCAEP,MAAM;sCAEA,MAAM;gCAEZ,MAAM;;+BAGP,MAAM;;;;;;;6BAQR,MAAM;;;;;6BAKN,MAAM;;;;;;;;sCAQG,MAAM;wCAEJ,MAAM;;gCAGd,MAAM;gCAEN,MAAM;iDAEW,MAAM;;;;sCAKjB,MAAM;;gCAGZ,MAAM;gCAEN,MAAM;;CAGnB,CAAC"}
|
package/build/api/routes.js
CHANGED
|
@@ -205,6 +205,8 @@ exports.REST_API = {
|
|
|
205
205
|
},
|
|
206
206
|
FILES_PRIVATE: {
|
|
207
207
|
UPLOAD: `${exports.ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD}`,
|
|
208
|
+
UPLOAD_FILE: `${exports.ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD_FILE}`,
|
|
209
|
+
UPLOAD_FILE_BY_URL: `${exports.ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD_FILE_BY_URL}`,
|
|
208
210
|
LIST: `${exports.ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}`,
|
|
209
211
|
GET: (uuid) => `${exports.ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${uuid}`,
|
|
210
212
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/file/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/file/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC"}
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./upload-file.command"), exports);
|
|
18
|
+
__exportStar(require("./upload-file-by-url.command"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UploadFileByUrlCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
url: string;
|
|
8
|
+
contentType?: string | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
url: string;
|
|
11
|
+
contentType?: string | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
url: z.ZodString;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
url: string;
|
|
18
|
+
}, {
|
|
19
|
+
url: string;
|
|
20
|
+
}>;
|
|
21
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=upload-file-by-url.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-file-by-url.command.d.ts","sourceRoot":"","sources":["../../../commands/file/upload-file-by-url.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,sBAAsB,CAAC;IAC7B,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,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadFileByUrlCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var UploadFileByUrlCommand;
|
|
6
|
+
(function (UploadFileByUrlCommand) {
|
|
7
|
+
UploadFileByUrlCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
url: zod_1.z.string().url(),
|
|
9
|
+
contentType: zod_1.z.string().min(1).optional(),
|
|
10
|
+
});
|
|
11
|
+
UploadFileByUrlCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
url: zod_1.z.string().url(),
|
|
13
|
+
});
|
|
14
|
+
})(UploadFileByUrlCommand || (exports.UploadFileByUrlCommand = UploadFileByUrlCommand = {}));
|
|
@@ -20,7 +20,7 @@ export declare namespace SetReactionToImageEditorJobCommand {
|
|
|
20
20
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
21
21
|
externalId: z.ZodNullable<z.ZodString>;
|
|
22
22
|
title: z.ZodString;
|
|
23
|
-
status: z.ZodNativeEnum<typeof import("
|
|
23
|
+
status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
|
|
24
24
|
error: z.ZodNullable<z.ZodString>;
|
|
25
25
|
internalError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
modelId: z.ZodString;
|
|
@@ -31,12 +31,12 @@ export declare namespace SetReactionToImageEditorJobCommand {
|
|
|
31
31
|
url: z.ZodString;
|
|
32
32
|
name: z.ZodString;
|
|
33
33
|
mimeType: z.ZodString;
|
|
34
|
-
type: z.ZodNativeEnum<typeof import("
|
|
34
|
+
type: z.ZodNativeEnum<typeof import("../..").FILE_TYPE>;
|
|
35
35
|
size: z.ZodNumber;
|
|
36
36
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
uuid: string;
|
|
39
|
-
type: import("
|
|
39
|
+
type: import("../..").FILE_TYPE;
|
|
40
40
|
name: string;
|
|
41
41
|
url: string;
|
|
42
42
|
mimeType: string;
|
|
@@ -44,7 +44,7 @@ export declare namespace SetReactionToImageEditorJobCommand {
|
|
|
44
44
|
duration?: number | null | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
uuid: string;
|
|
47
|
-
type: import("
|
|
47
|
+
type: import("../..").FILE_TYPE;
|
|
48
48
|
name: string;
|
|
49
49
|
url: string;
|
|
50
50
|
mimeType: string;
|
|
@@ -59,7 +59,7 @@ export declare namespace SetReactionToImageEditorJobCommand {
|
|
|
59
59
|
aspectRatio?: string | undefined;
|
|
60
60
|
attachedFiles?: {
|
|
61
61
|
uuid: string;
|
|
62
|
-
type: import("
|
|
62
|
+
type: import("../..").FILE_TYPE;
|
|
63
63
|
name: string;
|
|
64
64
|
url: string;
|
|
65
65
|
mimeType: string;
|
|
@@ -73,7 +73,7 @@ export declare namespace SetReactionToImageEditorJobCommand {
|
|
|
73
73
|
aspectRatio?: string | undefined;
|
|
74
74
|
attachedFiles?: {
|
|
75
75
|
uuid: string;
|
|
76
|
-
type: import("
|
|
76
|
+
type: import("../..").FILE_TYPE;
|
|
77
77
|
name: string;
|
|
78
78
|
url: string;
|
|
79
79
|
mimeType: string;
|
|
@@ -97,12 +97,12 @@ export declare namespace SetReactionToImageEditorJobCommand {
|
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
98
|
price: number;
|
|
99
99
|
uuid: string;
|
|
100
|
-
status: import("
|
|
100
|
+
status: import("../..").JOB_STATUS;
|
|
101
101
|
params: {
|
|
102
102
|
aspectRatio?: string | undefined;
|
|
103
103
|
attachedFiles?: {
|
|
104
104
|
uuid: string;
|
|
105
|
-
type: import("
|
|
105
|
+
type: import("../..").FILE_TYPE;
|
|
106
106
|
name: string;
|
|
107
107
|
url: string;
|
|
108
108
|
mimeType: string;
|
|
@@ -134,12 +134,12 @@ export declare namespace SetReactionToImageEditorJobCommand {
|
|
|
134
134
|
}, {
|
|
135
135
|
price: number;
|
|
136
136
|
uuid: string;
|
|
137
|
-
status: import("
|
|
137
|
+
status: import("../..").JOB_STATUS;
|
|
138
138
|
params: {
|
|
139
139
|
aspectRatio?: string | undefined;
|
|
140
140
|
attachedFiles?: {
|
|
141
141
|
uuid: string;
|
|
142
|
-
type: import("
|
|
142
|
+
type: import("../..").FILE_TYPE;
|
|
143
143
|
name: string;
|
|
144
144
|
url: string;
|
|
145
145
|
mimeType: string;
|
|
@@ -173,12 +173,12 @@ export declare namespace SetReactionToImageEditorJobCommand {
|
|
|
173
173
|
data: {
|
|
174
174
|
price: number;
|
|
175
175
|
uuid: string;
|
|
176
|
-
status: import("
|
|
176
|
+
status: import("../..").JOB_STATUS;
|
|
177
177
|
params: {
|
|
178
178
|
aspectRatio?: string | undefined;
|
|
179
179
|
attachedFiles?: {
|
|
180
180
|
uuid: string;
|
|
181
|
-
type: import("
|
|
181
|
+
type: import("../..").FILE_TYPE;
|
|
182
182
|
name: string;
|
|
183
183
|
url: string;
|
|
184
184
|
mimeType: string;
|
|
@@ -212,12 +212,12 @@ export declare namespace SetReactionToImageEditorJobCommand {
|
|
|
212
212
|
data: {
|
|
213
213
|
price: number;
|
|
214
214
|
uuid: string;
|
|
215
|
-
status: import("
|
|
215
|
+
status: import("../..").JOB_STATUS;
|
|
216
216
|
params: {
|
|
217
217
|
aspectRatio?: string | undefined;
|
|
218
218
|
attachedFiles?: {
|
|
219
219
|
uuid: string;
|
|
220
|
-
type: import("
|
|
220
|
+
type: import("../..").FILE_TYPE;
|
|
221
221
|
name: string;
|
|
222
222
|
url: string;
|
|
223
223
|
mimeType: string;
|
|
@@ -31,12 +31,12 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
31
31
|
url: z.ZodString;
|
|
32
32
|
name: z.ZodString;
|
|
33
33
|
mimeType: z.ZodString;
|
|
34
|
-
type: z.ZodNativeEnum<typeof import("
|
|
34
|
+
type: z.ZodNativeEnum<typeof import("../..").FILE_TYPE>;
|
|
35
35
|
size: z.ZodNumber;
|
|
36
36
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
uuid: string;
|
|
39
|
-
type: import("
|
|
39
|
+
type: import("../..").FILE_TYPE;
|
|
40
40
|
name: string;
|
|
41
41
|
url: string;
|
|
42
42
|
mimeType: string;
|
|
@@ -44,7 +44,7 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
44
44
|
duration?: number | null | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
uuid: string;
|
|
47
|
-
type: import("
|
|
47
|
+
type: import("../..").FILE_TYPE;
|
|
48
48
|
name: string;
|
|
49
49
|
url: string;
|
|
50
50
|
mimeType: string;
|
|
@@ -52,12 +52,12 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
52
52
|
duration?: number | null | undefined;
|
|
53
53
|
}>, "many">>>;
|
|
54
54
|
enhancePrompt: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
55
|
-
resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("
|
|
55
|
+
resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
aspectRatio: string;
|
|
58
58
|
attachedFiles: {
|
|
59
59
|
uuid: string;
|
|
60
|
-
type: import("
|
|
60
|
+
type: import("../..").FILE_TYPE;
|
|
61
61
|
name: string;
|
|
62
62
|
url: string;
|
|
63
63
|
mimeType: string;
|
|
@@ -65,13 +65,13 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
65
65
|
duration?: number | null | undefined;
|
|
66
66
|
}[];
|
|
67
67
|
enhancePrompt: boolean;
|
|
68
|
-
resolution?: import("
|
|
68
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
aspectRatio: string;
|
|
71
|
-
resolution?: import("
|
|
71
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
72
72
|
attachedFiles?: {
|
|
73
73
|
uuid: string;
|
|
74
|
-
type: import("
|
|
74
|
+
type: import("../..").FILE_TYPE;
|
|
75
75
|
name: string;
|
|
76
76
|
url: string;
|
|
77
77
|
mimeType: string;
|
|
@@ -81,7 +81,7 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
81
81
|
enhancePrompt?: boolean | undefined;
|
|
82
82
|
}>;
|
|
83
83
|
price: z.ZodNumber;
|
|
84
|
-
status: z.ZodNativeEnum<typeof import("
|
|
84
|
+
status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
|
|
85
85
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
86
|
reaction: z.ZodNullable<z.ZodNativeEnum<typeof USER_REACTION>>;
|
|
87
87
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
@@ -90,23 +90,23 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
90
90
|
presetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
91
|
attempts: z.ZodArray<z.ZodObject<{
|
|
92
92
|
order: z.ZodNumber;
|
|
93
|
-
status: z.ZodNativeEnum<typeof import("
|
|
93
|
+
status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
|
|
94
94
|
error: z.ZodNullable<z.ZodString>;
|
|
95
95
|
timestamp: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
status: import("
|
|
97
|
+
status: import("../..").JOB_STATUS;
|
|
98
98
|
order: number;
|
|
99
99
|
error: string | null;
|
|
100
100
|
timestamp: string | Date;
|
|
101
101
|
}, {
|
|
102
|
-
status: import("
|
|
102
|
+
status: import("../..").JOB_STATUS;
|
|
103
103
|
order: number;
|
|
104
104
|
error: string | null;
|
|
105
105
|
timestamp: string | Date;
|
|
106
106
|
}>, "many">;
|
|
107
107
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
108
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
-
origin: z.ZodNativeEnum<typeof import("
|
|
109
|
+
origin: z.ZodNativeEnum<typeof import("../..").JOB_REQUEST_ORIGIN>;
|
|
110
110
|
isDeleted: z.ZodBoolean;
|
|
111
111
|
internalError: z.ZodNullable<z.ZodString>;
|
|
112
112
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -116,12 +116,12 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
116
116
|
}, "strip", z.ZodTypeAny, {
|
|
117
117
|
price: number;
|
|
118
118
|
uuid: string;
|
|
119
|
-
status: import("
|
|
119
|
+
status: import("../..").JOB_STATUS;
|
|
120
120
|
params: {
|
|
121
121
|
aspectRatio: string;
|
|
122
122
|
attachedFiles: {
|
|
123
123
|
uuid: string;
|
|
124
|
-
type: import("
|
|
124
|
+
type: import("../..").FILE_TYPE;
|
|
125
125
|
name: string;
|
|
126
126
|
url: string;
|
|
127
127
|
mimeType: string;
|
|
@@ -129,7 +129,7 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
129
129
|
duration?: number | null | undefined;
|
|
130
130
|
}[];
|
|
131
131
|
enhancePrompt: boolean;
|
|
132
|
-
resolution?: import("
|
|
132
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
133
133
|
};
|
|
134
134
|
title: string;
|
|
135
135
|
modelId: string;
|
|
@@ -139,12 +139,12 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
139
139
|
externalId: string | null;
|
|
140
140
|
output: string[];
|
|
141
141
|
attempts: {
|
|
142
|
-
status: import("
|
|
142
|
+
status: import("../..").JOB_STATUS;
|
|
143
143
|
order: number;
|
|
144
144
|
error: string | null;
|
|
145
145
|
timestamp: string | Date;
|
|
146
146
|
}[];
|
|
147
|
-
origin: import("
|
|
147
|
+
origin: import("../..").JOB_REQUEST_ORIGIN;
|
|
148
148
|
isDeleted: boolean;
|
|
149
149
|
internalError: string | null;
|
|
150
150
|
createdAt?: string | Date | undefined;
|
|
@@ -158,13 +158,13 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
158
158
|
}, {
|
|
159
159
|
price: number;
|
|
160
160
|
uuid: string;
|
|
161
|
-
status: import("
|
|
161
|
+
status: import("../..").JOB_STATUS;
|
|
162
162
|
params: {
|
|
163
163
|
aspectRatio: string;
|
|
164
|
-
resolution?: import("
|
|
164
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
165
165
|
attachedFiles?: {
|
|
166
166
|
uuid: string;
|
|
167
|
-
type: import("
|
|
167
|
+
type: import("../..").FILE_TYPE;
|
|
168
168
|
name: string;
|
|
169
169
|
url: string;
|
|
170
170
|
mimeType: string;
|
|
@@ -181,12 +181,12 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
181
181
|
externalId: string | null;
|
|
182
182
|
output: string[];
|
|
183
183
|
attempts: {
|
|
184
|
-
status: import("
|
|
184
|
+
status: import("../..").JOB_STATUS;
|
|
185
185
|
order: number;
|
|
186
186
|
error: string | null;
|
|
187
187
|
timestamp: string | Date;
|
|
188
188
|
}[];
|
|
189
|
-
origin: import("
|
|
189
|
+
origin: import("../..").JOB_REQUEST_ORIGIN;
|
|
190
190
|
isDeleted: boolean;
|
|
191
191
|
internalError: string | null;
|
|
192
192
|
createdAt?: string | Date | undefined;
|
|
@@ -202,12 +202,12 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
202
202
|
data: {
|
|
203
203
|
price: number;
|
|
204
204
|
uuid: string;
|
|
205
|
-
status: import("
|
|
205
|
+
status: import("../..").JOB_STATUS;
|
|
206
206
|
params: {
|
|
207
207
|
aspectRatio: string;
|
|
208
208
|
attachedFiles: {
|
|
209
209
|
uuid: string;
|
|
210
|
-
type: import("
|
|
210
|
+
type: import("../..").FILE_TYPE;
|
|
211
211
|
name: string;
|
|
212
212
|
url: string;
|
|
213
213
|
mimeType: string;
|
|
@@ -215,7 +215,7 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
215
215
|
duration?: number | null | undefined;
|
|
216
216
|
}[];
|
|
217
217
|
enhancePrompt: boolean;
|
|
218
|
-
resolution?: import("
|
|
218
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
219
219
|
};
|
|
220
220
|
title: string;
|
|
221
221
|
modelId: string;
|
|
@@ -225,12 +225,12 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
225
225
|
externalId: string | null;
|
|
226
226
|
output: string[];
|
|
227
227
|
attempts: {
|
|
228
|
-
status: import("
|
|
228
|
+
status: import("../..").JOB_STATUS;
|
|
229
229
|
order: number;
|
|
230
230
|
error: string | null;
|
|
231
231
|
timestamp: string | Date;
|
|
232
232
|
}[];
|
|
233
|
-
origin: import("
|
|
233
|
+
origin: import("../..").JOB_REQUEST_ORIGIN;
|
|
234
234
|
isDeleted: boolean;
|
|
235
235
|
internalError: string | null;
|
|
236
236
|
createdAt?: string | Date | undefined;
|
|
@@ -246,13 +246,13 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
246
246
|
data: {
|
|
247
247
|
price: number;
|
|
248
248
|
uuid: string;
|
|
249
|
-
status: import("
|
|
249
|
+
status: import("../..").JOB_STATUS;
|
|
250
250
|
params: {
|
|
251
251
|
aspectRatio: string;
|
|
252
|
-
resolution?: import("
|
|
252
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
253
253
|
attachedFiles?: {
|
|
254
254
|
uuid: string;
|
|
255
|
-
type: import("
|
|
255
|
+
type: import("../..").FILE_TYPE;
|
|
256
256
|
name: string;
|
|
257
257
|
url: string;
|
|
258
258
|
mimeType: string;
|
|
@@ -269,12 +269,12 @@ export declare namespace SetReactionToImageGenerationJobCommand {
|
|
|
269
269
|
externalId: string | null;
|
|
270
270
|
output: string[];
|
|
271
271
|
attempts: {
|
|
272
|
-
status: import("
|
|
272
|
+
status: import("../..").JOB_STATUS;
|
|
273
273
|
order: number;
|
|
274
274
|
error: string | null;
|
|
275
275
|
timestamp: string | Date;
|
|
276
276
|
}[];
|
|
277
|
-
origin: import("
|
|
277
|
+
origin: import("../..").JOB_REQUEST_ORIGIN;
|
|
278
278
|
isDeleted: boolean;
|
|
279
279
|
internalError: string | null;
|
|
280
280
|
createdAt?: string | Date | undefined;
|
|
@@ -23,7 +23,7 @@ export declare namespace SetReactionToMarketplaceCardJobCommand {
|
|
|
23
23
|
const ResponseSchema: z.ZodObject<{
|
|
24
24
|
data: z.ZodObject<{
|
|
25
25
|
uuid: z.ZodString;
|
|
26
|
-
status: z.ZodNativeEnum<typeof import("
|
|
26
|
+
status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
|
|
27
27
|
error: z.ZodNullable<z.ZodString>;
|
|
28
28
|
title: z.ZodString;
|
|
29
29
|
subtitle: z.ZodNullable<z.ZodString>;
|
|
@@ -51,7 +51,7 @@ export declare namespace SetReactionToMarketplaceCardJobCommand {
|
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
price: number;
|
|
53
53
|
uuid: string;
|
|
54
|
-
status: import("
|
|
54
|
+
status: import("../..").JOB_STATUS;
|
|
55
55
|
title: string;
|
|
56
56
|
error: string | null;
|
|
57
57
|
reaction: USER_REACTION | null;
|
|
@@ -72,7 +72,7 @@ export declare namespace SetReactionToMarketplaceCardJobCommand {
|
|
|
72
72
|
}, {
|
|
73
73
|
price: number;
|
|
74
74
|
uuid: string;
|
|
75
|
-
status: import("
|
|
75
|
+
status: import("../..").JOB_STATUS;
|
|
76
76
|
title: string;
|
|
77
77
|
error: string | null;
|
|
78
78
|
reaction: USER_REACTION | null;
|
|
@@ -95,7 +95,7 @@ export declare namespace SetReactionToMarketplaceCardJobCommand {
|
|
|
95
95
|
data: {
|
|
96
96
|
price: number;
|
|
97
97
|
uuid: string;
|
|
98
|
-
status: import("
|
|
98
|
+
status: import("../..").JOB_STATUS;
|
|
99
99
|
title: string;
|
|
100
100
|
error: string | null;
|
|
101
101
|
reaction: USER_REACTION | null;
|
|
@@ -118,7 +118,7 @@ export declare namespace SetReactionToMarketplaceCardJobCommand {
|
|
|
118
118
|
data: {
|
|
119
119
|
price: number;
|
|
120
120
|
uuid: string;
|
|
121
|
-
status: import("
|
|
121
|
+
status: import("../..").JOB_STATUS;
|
|
122
122
|
title: string;
|
|
123
123
|
error: string | null;
|
|
124
124
|
reaction: USER_REACTION | null;
|
|
@@ -48,13 +48,13 @@ export declare namespace CloudPaymentsPayCommand {
|
|
|
48
48
|
invoiceId: z.ZodOptional<z.ZodString>;
|
|
49
49
|
accountId: z.ZodString;
|
|
50
50
|
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
51
|
-
data: z.ZodOptional<z.ZodUnion<[z.ZodType<import("
|
|
51
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodType<import("../..").JsonValue, z.ZodTypeDef, import("../..").JsonValue>, z.ZodString]>>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
amount: string | number;
|
|
54
54
|
currency: string;
|
|
55
55
|
accountId: string;
|
|
56
56
|
invoiceId?: string | undefined;
|
|
57
|
-
data?: import("
|
|
57
|
+
data?: import("../..").JsonValue | undefined;
|
|
58
58
|
transactionId?: string | number | undefined;
|
|
59
59
|
paymentAmount?: string | number | undefined;
|
|
60
60
|
paymentCurrency?: string | undefined;
|
|
@@ -64,7 +64,7 @@ export declare namespace CloudPaymentsPayCommand {
|
|
|
64
64
|
accountId: string;
|
|
65
65
|
currency?: string | undefined;
|
|
66
66
|
invoiceId?: string | undefined;
|
|
67
|
-
data?: import("
|
|
67
|
+
data?: import("../..").JsonValue | undefined;
|
|
68
68
|
transactionId?: string | number | undefined;
|
|
69
69
|
paymentAmount?: string | number | undefined;
|
|
70
70
|
paymentCurrency?: string | undefined;
|
|
@@ -47,7 +47,7 @@ export declare namespace SetReactionToSTTJobCommand {
|
|
|
47
47
|
}>>;
|
|
48
48
|
reaction: z.ZodNullable<z.ZodNativeEnum<typeof USER_REACTION>>;
|
|
49
49
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
50
|
-
status: z.ZodNativeEnum<typeof import("
|
|
50
|
+
status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
|
|
51
51
|
duration: z.ZodNumber;
|
|
52
52
|
error: z.ZodNullable<z.ZodString>;
|
|
53
53
|
internalError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -57,16 +57,16 @@ export declare namespace SetReactionToSTTJobCommand {
|
|
|
57
57
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
59
59
|
order: z.ZodNumber;
|
|
60
|
-
status: z.ZodNativeEnum<typeof import("
|
|
60
|
+
status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
|
|
61
61
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
62
|
timestamp: z.ZodString;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
status: import("
|
|
64
|
+
status: import("../..").JOB_STATUS;
|
|
65
65
|
order: number;
|
|
66
66
|
timestamp: string;
|
|
67
67
|
error?: string | null | undefined;
|
|
68
68
|
}, {
|
|
69
|
-
status: import("
|
|
69
|
+
status: import("../..").JOB_STATUS;
|
|
70
70
|
order: number;
|
|
71
71
|
timestamp: string;
|
|
72
72
|
error?: string | null | undefined;
|
|
@@ -79,7 +79,7 @@ export declare namespace SetReactionToSTTJobCommand {
|
|
|
79
79
|
price: number;
|
|
80
80
|
uuid: string;
|
|
81
81
|
siteId: string;
|
|
82
|
-
status: import("
|
|
82
|
+
status: import("../..").JOB_STATUS;
|
|
83
83
|
duration: number;
|
|
84
84
|
title: string;
|
|
85
85
|
createdAt: Date;
|
|
@@ -89,7 +89,7 @@ export declare namespace SetReactionToSTTJobCommand {
|
|
|
89
89
|
reaction: USER_REACTION | null;
|
|
90
90
|
dislikeReason: string | null;
|
|
91
91
|
attempts: {
|
|
92
|
-
status: import("
|
|
92
|
+
status: import("../..").JOB_STATUS;
|
|
93
93
|
order: number;
|
|
94
94
|
timestamp: string;
|
|
95
95
|
error?: string | null | undefined;
|
|
@@ -113,7 +113,7 @@ export declare namespace SetReactionToSTTJobCommand {
|
|
|
113
113
|
price: number;
|
|
114
114
|
uuid: string;
|
|
115
115
|
siteId: string;
|
|
116
|
-
status: import("
|
|
116
|
+
status: import("../..").JOB_STATUS;
|
|
117
117
|
duration: number;
|
|
118
118
|
title: string;
|
|
119
119
|
createdAt: Date;
|
|
@@ -136,7 +136,7 @@ export declare namespace SetReactionToSTTJobCommand {
|
|
|
136
136
|
srtUrl?: string | undefined;
|
|
137
137
|
} | null;
|
|
138
138
|
attempts?: {
|
|
139
|
-
status: import("
|
|
139
|
+
status: import("../..").JOB_STATUS;
|
|
140
140
|
order: number;
|
|
141
141
|
timestamp: string;
|
|
142
142
|
error?: string | null | undefined;
|
|
@@ -149,7 +149,7 @@ export declare namespace SetReactionToSTTJobCommand {
|
|
|
149
149
|
price: number;
|
|
150
150
|
uuid: string;
|
|
151
151
|
siteId: string;
|
|
152
|
-
status: import("
|
|
152
|
+
status: import("../..").JOB_STATUS;
|
|
153
153
|
duration: number;
|
|
154
154
|
title: string;
|
|
155
155
|
createdAt: Date;
|
|
@@ -159,7 +159,7 @@ export declare namespace SetReactionToSTTJobCommand {
|
|
|
159
159
|
reaction: USER_REACTION | null;
|
|
160
160
|
dislikeReason: string | null;
|
|
161
161
|
attempts: {
|
|
162
|
-
status: import("
|
|
162
|
+
status: import("../..").JOB_STATUS;
|
|
163
163
|
order: number;
|
|
164
164
|
timestamp: string;
|
|
165
165
|
error?: string | null | undefined;
|
|
@@ -185,7 +185,7 @@ export declare namespace SetReactionToSTTJobCommand {
|
|
|
185
185
|
price: number;
|
|
186
186
|
uuid: string;
|
|
187
187
|
siteId: string;
|
|
188
|
-
status: import("
|
|
188
|
+
status: import("../..").JOB_STATUS;
|
|
189
189
|
duration: number;
|
|
190
190
|
title: string;
|
|
191
191
|
createdAt: Date;
|
|
@@ -208,7 +208,7 @@ export declare namespace SetReactionToSTTJobCommand {
|
|
|
208
208
|
srtUrl?: string | undefined;
|
|
209
209
|
} | null;
|
|
210
210
|
attempts?: {
|
|
211
|
-
status: import("
|
|
211
|
+
status: import("../..").JOB_STATUS;
|
|
212
212
|
order: number;
|
|
213
213
|
timestamp: string;
|
|
214
214
|
error?: string | null | undefined;
|
|
@@ -29,7 +29,7 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
29
29
|
reaction: z.ZodNullable<z.ZodNativeEnum<typeof USER_REACTION>>;
|
|
30
30
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
31
31
|
title: z.ZodString;
|
|
32
|
-
status: z.ZodNativeEnum<typeof import("
|
|
32
|
+
status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
|
|
33
33
|
error: z.ZodNullable<z.ZodString>;
|
|
34
34
|
internalError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
modelId: z.ZodString;
|
|
@@ -41,16 +41,16 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
41
41
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
43
43
|
order: z.ZodNumber;
|
|
44
|
-
status: z.ZodNativeEnum<typeof import("
|
|
44
|
+
status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
|
|
45
45
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
timestamp: z.ZodString;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
status: import("
|
|
48
|
+
status: import("../..").JOB_STATUS;
|
|
49
49
|
order: number;
|
|
50
50
|
timestamp: string;
|
|
51
51
|
error?: string | null | undefined;
|
|
52
52
|
}, {
|
|
53
|
-
status: import("
|
|
53
|
+
status: import("../..").JOB_STATUS;
|
|
54
54
|
order: number;
|
|
55
55
|
timestamp: string;
|
|
56
56
|
error?: string | null | undefined;
|
|
@@ -82,7 +82,7 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
82
82
|
price: number;
|
|
83
83
|
uuid: string;
|
|
84
84
|
siteId: string;
|
|
85
|
-
status: import("
|
|
85
|
+
status: import("../..").JOB_STATUS;
|
|
86
86
|
params: {
|
|
87
87
|
speed?: number | undefined;
|
|
88
88
|
stability?: number | undefined;
|
|
@@ -99,7 +99,7 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
99
99
|
reaction: USER_REACTION | null;
|
|
100
100
|
dislikeReason: string | null;
|
|
101
101
|
attempts: {
|
|
102
|
-
status: import("
|
|
102
|
+
status: import("../..").JOB_STATUS;
|
|
103
103
|
order: number;
|
|
104
104
|
timestamp: string;
|
|
105
105
|
error?: string | null | undefined;
|
|
@@ -117,7 +117,7 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
117
117
|
price: number;
|
|
118
118
|
uuid: string;
|
|
119
119
|
siteId: string;
|
|
120
|
-
status: import("
|
|
120
|
+
status: import("../..").JOB_STATUS;
|
|
121
121
|
params: {
|
|
122
122
|
speed?: number | undefined;
|
|
123
123
|
stability?: number | undefined;
|
|
@@ -141,7 +141,7 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
141
141
|
userInput: string;
|
|
142
142
|
voiceId: string;
|
|
143
143
|
attempts?: {
|
|
144
|
-
status: import("
|
|
144
|
+
status: import("../..").JOB_STATUS;
|
|
145
145
|
order: number;
|
|
146
146
|
timestamp: string;
|
|
147
147
|
error?: string | null | undefined;
|
|
@@ -154,7 +154,7 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
154
154
|
price: number;
|
|
155
155
|
uuid: string;
|
|
156
156
|
siteId: string;
|
|
157
|
-
status: import("
|
|
157
|
+
status: import("../..").JOB_STATUS;
|
|
158
158
|
params: {
|
|
159
159
|
speed?: number | undefined;
|
|
160
160
|
stability?: number | undefined;
|
|
@@ -171,7 +171,7 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
171
171
|
reaction: USER_REACTION | null;
|
|
172
172
|
dislikeReason: string | null;
|
|
173
173
|
attempts: {
|
|
174
|
-
status: import("
|
|
174
|
+
status: import("../..").JOB_STATUS;
|
|
175
175
|
order: number;
|
|
176
176
|
timestamp: string;
|
|
177
177
|
error?: string | null | undefined;
|
|
@@ -191,7 +191,7 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
191
191
|
price: number;
|
|
192
192
|
uuid: string;
|
|
193
193
|
siteId: string;
|
|
194
|
-
status: import("
|
|
194
|
+
status: import("../..").JOB_STATUS;
|
|
195
195
|
params: {
|
|
196
196
|
speed?: number | undefined;
|
|
197
197
|
stability?: number | undefined;
|
|
@@ -215,7 +215,7 @@ export declare namespace SetReactionToTTSJobCommand {
|
|
|
215
215
|
userInput: string;
|
|
216
216
|
voiceId: string;
|
|
217
217
|
attempts?: {
|
|
218
|
-
status: import("
|
|
218
|
+
status: import("../..").JOB_STATUS;
|
|
219
219
|
order: number;
|
|
220
220
|
timestamp: string;
|
|
221
221
|
error?: string | null | undefined;
|
|
@@ -18,12 +18,12 @@ export declare const ImageEditorJobSchema: z.ZodObject<{
|
|
|
18
18
|
url: z.ZodString;
|
|
19
19
|
name: z.ZodString;
|
|
20
20
|
mimeType: z.ZodString;
|
|
21
|
-
type: z.ZodNativeEnum<typeof import("
|
|
21
|
+
type: z.ZodNativeEnum<typeof import("../..").FILE_TYPE>;
|
|
22
22
|
size: z.ZodNumber;
|
|
23
23
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
uuid: string;
|
|
26
|
-
type: import("
|
|
26
|
+
type: import("../..").FILE_TYPE;
|
|
27
27
|
name: string;
|
|
28
28
|
url: string;
|
|
29
29
|
mimeType: string;
|
|
@@ -31,7 +31,7 @@ export declare const ImageEditorJobSchema: z.ZodObject<{
|
|
|
31
31
|
duration?: number | null | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
uuid: string;
|
|
34
|
-
type: import("
|
|
34
|
+
type: import("../..").FILE_TYPE;
|
|
35
35
|
name: string;
|
|
36
36
|
url: string;
|
|
37
37
|
mimeType: string;
|
|
@@ -46,7 +46,7 @@ export declare const ImageEditorJobSchema: z.ZodObject<{
|
|
|
46
46
|
aspectRatio?: string | undefined;
|
|
47
47
|
attachedFiles?: {
|
|
48
48
|
uuid: string;
|
|
49
|
-
type: import("
|
|
49
|
+
type: import("../..").FILE_TYPE;
|
|
50
50
|
name: string;
|
|
51
51
|
url: string;
|
|
52
52
|
mimeType: string;
|
|
@@ -60,7 +60,7 @@ export declare const ImageEditorJobSchema: z.ZodObject<{
|
|
|
60
60
|
aspectRatio?: string | undefined;
|
|
61
61
|
attachedFiles?: {
|
|
62
62
|
uuid: string;
|
|
63
|
-
type: import("
|
|
63
|
+
type: import("../..").FILE_TYPE;
|
|
64
64
|
name: string;
|
|
65
65
|
url: string;
|
|
66
66
|
mimeType: string;
|
|
@@ -89,7 +89,7 @@ export declare const ImageEditorJobSchema: z.ZodObject<{
|
|
|
89
89
|
aspectRatio?: string | undefined;
|
|
90
90
|
attachedFiles?: {
|
|
91
91
|
uuid: string;
|
|
92
|
-
type: import("
|
|
92
|
+
type: import("../..").FILE_TYPE;
|
|
93
93
|
name: string;
|
|
94
94
|
url: string;
|
|
95
95
|
mimeType: string;
|
|
@@ -126,7 +126,7 @@ export declare const ImageEditorJobSchema: z.ZodObject<{
|
|
|
126
126
|
aspectRatio?: string | undefined;
|
|
127
127
|
attachedFiles?: {
|
|
128
128
|
uuid: string;
|
|
129
|
-
type: import("
|
|
129
|
+
type: import("../..").FILE_TYPE;
|
|
130
130
|
name: string;
|
|
131
131
|
url: string;
|
|
132
132
|
mimeType: string;
|
|
@@ -7,12 +7,12 @@ export declare const ImageGenerationJobParamsSchema: z.ZodObject<{
|
|
|
7
7
|
url: z.ZodString;
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
mimeType: z.ZodString;
|
|
10
|
-
type: z.ZodNativeEnum<typeof import("
|
|
10
|
+
type: z.ZodNativeEnum<typeof import("../..").FILE_TYPE>;
|
|
11
11
|
size: z.ZodNumber;
|
|
12
12
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
uuid: string;
|
|
15
|
-
type: import("
|
|
15
|
+
type: import("../..").FILE_TYPE;
|
|
16
16
|
name: string;
|
|
17
17
|
url: string;
|
|
18
18
|
mimeType: string;
|
|
@@ -20,7 +20,7 @@ export declare const ImageGenerationJobParamsSchema: z.ZodObject<{
|
|
|
20
20
|
duration?: number | null | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
uuid: string;
|
|
23
|
-
type: import("
|
|
23
|
+
type: import("../..").FILE_TYPE;
|
|
24
24
|
name: string;
|
|
25
25
|
url: string;
|
|
26
26
|
mimeType: string;
|
|
@@ -33,7 +33,7 @@ export declare const ImageGenerationJobParamsSchema: z.ZodObject<{
|
|
|
33
33
|
aspectRatio: string;
|
|
34
34
|
attachedFiles: {
|
|
35
35
|
uuid: string;
|
|
36
|
-
type: import("
|
|
36
|
+
type: import("../..").FILE_TYPE;
|
|
37
37
|
name: string;
|
|
38
38
|
url: string;
|
|
39
39
|
mimeType: string;
|
|
@@ -47,7 +47,7 @@ export declare const ImageGenerationJobParamsSchema: z.ZodObject<{
|
|
|
47
47
|
resolution?: IMAGE_GENERATION_RESOLUTION | undefined;
|
|
48
48
|
attachedFiles?: {
|
|
49
49
|
uuid: string;
|
|
50
|
-
type: import("
|
|
50
|
+
type: import("../..").FILE_TYPE;
|
|
51
51
|
name: string;
|
|
52
52
|
url: string;
|
|
53
53
|
mimeType: string;
|
|
@@ -12,12 +12,12 @@ export declare const ImageGenerationJobSchema: z.ZodObject<{
|
|
|
12
12
|
url: z.ZodString;
|
|
13
13
|
name: z.ZodString;
|
|
14
14
|
mimeType: z.ZodString;
|
|
15
|
-
type: z.ZodNativeEnum<typeof import("
|
|
15
|
+
type: z.ZodNativeEnum<typeof import("../..").FILE_TYPE>;
|
|
16
16
|
size: z.ZodNumber;
|
|
17
17
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
uuid: string;
|
|
20
|
-
type: import("
|
|
20
|
+
type: import("../..").FILE_TYPE;
|
|
21
21
|
name: string;
|
|
22
22
|
url: string;
|
|
23
23
|
mimeType: string;
|
|
@@ -25,7 +25,7 @@ export declare const ImageGenerationJobSchema: z.ZodObject<{
|
|
|
25
25
|
duration?: number | null | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
uuid: string;
|
|
28
|
-
type: import("
|
|
28
|
+
type: import("../..").FILE_TYPE;
|
|
29
29
|
name: string;
|
|
30
30
|
url: string;
|
|
31
31
|
mimeType: string;
|
|
@@ -33,12 +33,12 @@ export declare const ImageGenerationJobSchema: z.ZodObject<{
|
|
|
33
33
|
duration?: number | null | undefined;
|
|
34
34
|
}>, "many">>>;
|
|
35
35
|
enhancePrompt: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
36
|
-
resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("
|
|
36
|
+
resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
aspectRatio: string;
|
|
39
39
|
attachedFiles: {
|
|
40
40
|
uuid: string;
|
|
41
|
-
type: import("
|
|
41
|
+
type: import("../..").FILE_TYPE;
|
|
42
42
|
name: string;
|
|
43
43
|
url: string;
|
|
44
44
|
mimeType: string;
|
|
@@ -46,13 +46,13 @@ export declare const ImageGenerationJobSchema: z.ZodObject<{
|
|
|
46
46
|
duration?: number | null | undefined;
|
|
47
47
|
}[];
|
|
48
48
|
enhancePrompt: boolean;
|
|
49
|
-
resolution?: import("
|
|
49
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
aspectRatio: string;
|
|
52
|
-
resolution?: import("
|
|
52
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
53
53
|
attachedFiles?: {
|
|
54
54
|
uuid: string;
|
|
55
|
-
type: import("
|
|
55
|
+
type: import("../..").FILE_TYPE;
|
|
56
56
|
name: string;
|
|
57
57
|
url: string;
|
|
58
58
|
mimeType: string;
|
|
@@ -102,7 +102,7 @@ export declare const ImageGenerationJobSchema: z.ZodObject<{
|
|
|
102
102
|
aspectRatio: string;
|
|
103
103
|
attachedFiles: {
|
|
104
104
|
uuid: string;
|
|
105
|
-
type: import("
|
|
105
|
+
type: import("../..").FILE_TYPE;
|
|
106
106
|
name: string;
|
|
107
107
|
url: string;
|
|
108
108
|
mimeType: string;
|
|
@@ -110,7 +110,7 @@ export declare const ImageGenerationJobSchema: z.ZodObject<{
|
|
|
110
110
|
duration?: number | null | undefined;
|
|
111
111
|
}[];
|
|
112
112
|
enhancePrompt: boolean;
|
|
113
|
-
resolution?: import("
|
|
113
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
114
114
|
};
|
|
115
115
|
title: string;
|
|
116
116
|
modelId: string;
|
|
@@ -142,10 +142,10 @@ export declare const ImageGenerationJobSchema: z.ZodObject<{
|
|
|
142
142
|
status: JOB_STATUS;
|
|
143
143
|
params: {
|
|
144
144
|
aspectRatio: string;
|
|
145
|
-
resolution?: import("
|
|
145
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
146
146
|
attachedFiles?: {
|
|
147
147
|
uuid: string;
|
|
148
|
-
type: import("
|
|
148
|
+
type: import("../..").FILE_TYPE;
|
|
149
149
|
name: string;
|
|
150
150
|
url: string;
|
|
151
151
|
mimeType: string;
|
|
@@ -9,26 +9,26 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
9
9
|
canUse: z.ZodBoolean;
|
|
10
10
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
11
11
|
condition: z.ZodObject<{
|
|
12
|
-
resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("
|
|
12
|
+
resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>>;
|
|
13
13
|
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
resolution?: import("
|
|
15
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
16
16
|
withoutSub?: boolean | undefined;
|
|
17
17
|
}, {
|
|
18
|
-
resolution?: import("
|
|
18
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
19
19
|
withoutSub?: boolean | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
value: z.ZodNumber;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
value: number;
|
|
24
24
|
condition: {
|
|
25
|
-
resolution?: import("
|
|
25
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
26
26
|
withoutSub?: boolean | undefined;
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
29
29
|
value: number;
|
|
30
30
|
condition: {
|
|
31
|
-
resolution?: import("
|
|
31
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
32
32
|
withoutSub?: boolean | undefined;
|
|
33
33
|
};
|
|
34
34
|
}>, "many">;
|
|
@@ -45,11 +45,11 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
45
45
|
}>, z.ZodLiteral<"auto">]>>;
|
|
46
46
|
quality: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
47
47
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
48
|
-
options: z.ZodArray<z.ZodNativeEnum<typeof import("
|
|
48
|
+
options: z.ZodArray<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>, "many">;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
options: import("
|
|
50
|
+
options: import("../..").IMAGE_GENERATION_RESOLUTION[];
|
|
51
51
|
}, {
|
|
52
|
-
options: import("
|
|
52
|
+
options: import("../..").IMAGE_GENERATION_RESOLUTION[];
|
|
53
53
|
}>>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
55
|
aspectRatio: Record<string, {
|
|
@@ -58,7 +58,7 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
58
58
|
} | "auto">;
|
|
59
59
|
quality?: string | Record<string, string> | undefined;
|
|
60
60
|
resolution?: {
|
|
61
|
-
options: import("
|
|
61
|
+
options: import("../..").IMAGE_GENERATION_RESOLUTION[];
|
|
62
62
|
} | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
aspectRatio: Record<string, {
|
|
@@ -67,7 +67,7 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
67
67
|
} | "auto">;
|
|
68
68
|
quality?: string | Record<string, string> | undefined;
|
|
69
69
|
resolution?: {
|
|
70
|
-
options: import("
|
|
70
|
+
options: import("../..").IMAGE_GENERATION_RESOLUTION[];
|
|
71
71
|
} | undefined;
|
|
72
72
|
}>;
|
|
73
73
|
strategy: z.ZodNativeEnum<typeof IMAGE_GENERATION_MODEL_STRATEGY>;
|
|
@@ -132,7 +132,7 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
132
132
|
} | "auto">;
|
|
133
133
|
quality?: string | Record<string, string> | undefined;
|
|
134
134
|
resolution?: {
|
|
135
|
-
options: import("
|
|
135
|
+
options: import("../..").IMAGE_GENERATION_RESOLUTION[];
|
|
136
136
|
} | undefined;
|
|
137
137
|
};
|
|
138
138
|
description: string;
|
|
@@ -142,7 +142,7 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
142
142
|
pricingRules: {
|
|
143
143
|
value: number;
|
|
144
144
|
condition: {
|
|
145
|
-
resolution?: import("
|
|
145
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
146
146
|
withoutSub?: boolean | undefined;
|
|
147
147
|
};
|
|
148
148
|
}[];
|
|
@@ -177,7 +177,7 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
177
177
|
} | "auto">;
|
|
178
178
|
quality?: string | Record<string, string> | undefined;
|
|
179
179
|
resolution?: {
|
|
180
|
-
options: import("
|
|
180
|
+
options: import("../..").IMAGE_GENERATION_RESOLUTION[];
|
|
181
181
|
} | undefined;
|
|
182
182
|
};
|
|
183
183
|
description: string;
|
|
@@ -187,7 +187,7 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
187
187
|
pricingRules: {
|
|
188
188
|
value: number;
|
|
189
189
|
condition: {
|
|
190
|
-
resolution?: import("
|
|
190
|
+
resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
191
191
|
withoutSub?: boolean | undefined;
|
|
192
192
|
};
|
|
193
193
|
}[];
|
package/commands/file/index.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export namespace UploadFileByUrlCommand {
|
|
4
|
+
export const RequestSchema = z.object({
|
|
5
|
+
url: z.string().url(),
|
|
6
|
+
contentType: z.string().min(1).optional(),
|
|
7
|
+
});
|
|
8
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
|
|
10
|
+
export const ResponseSchema = z.object({
|
|
11
|
+
url: z.string().url(),
|
|
12
|
+
});
|
|
13
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
14
|
+
}
|