@purpleschool/multisite 0.0.15 → 0.0.17
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/constants/user-to-subscription/enums/index.d.ts +1 -0
- package/build/constants/user-to-subscription/enums/index.d.ts.map +1 -1
- package/build/constants/user-to-subscription/enums/index.js +1 -0
- package/build/constants/user-to-subscription/enums/user-to-subscription-type.enum.d.ts +5 -0
- package/build/constants/user-to-subscription/enums/user-to-subscription-type.enum.d.ts.map +1 -0
- package/build/constants/user-to-subscription/enums/user-to-subscription-type.enum.js +8 -0
- 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/build/models/subscription.schema.d.ts +2 -2
- package/build/queries/subscription/find-subscriptions.command.d.ts +4 -4
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts +6 -6
- package/build/queries/user/get-my-subscriptions.command.d.ts +6 -6
- package/commands/file/index.ts +1 -0
- package/commands/file/upload-file-by-url.command.ts +14 -0
- package/constants/user-to-subscription/enums/index.ts +1 -0
- package/constants/user-to-subscription/enums/user-to-subscription-type.enum.ts +4 -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;
|