@purpleschool/gptbot-tools 0.2.57 → 0.2.59
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/build/ai-proxy/routes/ai-proxy.routes.d.ts +0 -1
- package/build/ai-proxy/routes/ai-proxy.routes.js +0 -1
- package/build/image-editor/commands/get-image-editor-price.command.d.ts +2 -0
- package/build/image-editor/commands/get-image-editor-price.command.js +2 -0
- package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.d.ts +6 -0
- package/build/image-editor/commands/image-editor.command.d.ts +3 -0
- package/build/image-editor/commands/image-editor.command.js +1 -0
- package/build/image-editor/commands/retry-image-editor-job.command.d.ts +3 -0
- package/build/image-editor/commands/set-reaction-to-image-editor-job.command.d.ts +2 -0
- package/build/image-editor/commands/update-image-editor-job-favorite.command.d.ts +2 -0
- package/build/image-editor/commands/update-image-editor-job-title.command.d.ts +2 -0
- package/build/image-editor/commands/update-published-status-image-editor-jobs.command.d.ts +2 -0
- package/build/image-editor/enums/image-editor-strategy.enum.d.ts +1 -0
- package/build/image-editor/enums/image-editor-strategy.enum.js +1 -0
- package/build/image-editor/models/image-editor-config.schema.d.ts +3 -0
- package/build/image-editor/models/image-editor-job.schema.d.ts +2 -0
- package/build/image-editor/models/image-editor-job.schema.js +1 -0
- package/build/image-editor/models/image-editor-model.schema.d.ts +6 -0
- package/build/image-editor/models/image-editor-model.schema.js +5 -0
- package/build/image-editor/queries/find-image-editor-job-by-id.query.d.ts +2 -0
- package/build/image-editor/queries/find-image-editor-jobs.query.d.ts +2 -0
- package/build/image-editor/queries/find-image-jobs.query.d.ts +2 -0
- package/build/image-editor/queries/get-image-editor-config.query.d.ts +6 -0
- package/build/index.d.ts +0 -3
- package/build/index.js +0 -3
- package/build/tool-workspace/models/tool-workspace-contents.schema.d.ts +1 -0
- package/build/tool-workspace/models/tool-workspace-item.schema.d.ts +1 -0
- package/build/tool-workspace/models/tool-workspace-job.schema.d.ts +1 -0
- package/build/tool-workspace/queries/find-tool-workspace-by-uuid.query.d.ts +2 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +1 -2
- package/build/tools/enums/tool-content-type.enum.js +1 -2
- package/build/tools/enums/tool-type.enum.d.ts +0 -1
- package/build/tools/enums/tool-type.enum.js +0 -1
- package/build/tools/models/global-tools-config.schema.d.ts +3 -76
- package/build/tools/models/global-tools-config.schema.js +0 -2
- package/build/tools/models/tools-with-configs.schema.d.ts +6 -22
- package/build/tools/queries/get-global-tools-config.query.d.ts +6 -152
- package/build/tools/queries/get-tools-with-configs.query.d.ts +6 -22
- package/build/tts/commands/index.d.ts +0 -7
- package/build/tts/commands/index.js +0 -7
- package/build/tts/commands/retry-tts-job.command.d.ts +2 -29
- package/build/tts/commands/retry-tts-job.command.js +0 -2
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
- package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
- package/build/tts/commands/tts.command.d.ts +3 -35
- package/build/tts/commands/tts.command.js +1 -4
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
- package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
- package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
- package/build/tts/commands/update-tts-job-title.command.js +0 -2
- package/build/tts/enums/index.d.ts +0 -7
- package/build/tts/enums/index.js +0 -7
- package/build/tts/models/index.d.ts +0 -5
- package/build/tts/models/index.js +0 -5
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
- package/build/tts/models/tts-config.schema.d.ts +0 -11
- package/build/tts/models/tts-config.schema.js +0 -5
- package/build/tts/models/tts-job.schema.d.ts +2 -34
- package/build/tts/models/tts-job.schema.js +2 -22
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
- package/build/tts/models/tts-model.schema.d.ts +0 -1
- package/build/tts/models/tts-model.schema.js +0 -1
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
- package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
- package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
- package/build/tts/queries/find-tts-jobs.query.js +0 -1
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
- package/build/tts/queries/get-tts-config.query.d.ts +0 -22
- package/build/tts/queries/index.d.ts +0 -2
- package/build/tts/queries/index.js +0 -2
- package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
- package/build/tts/routes/tts.amqp.routes.js +0 -9
- package/package.json +1 -1
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
- package/build/photo-sessions/commands/admin/index.d.ts +0 -3
- package/build/photo-sessions/commands/admin/index.js +0 -19
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -55
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -28
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +0 -17
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -15
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +0 -16
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -46
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -30
- package/build/photo-sessions/commands/index.d.ts +0 -10
- package/build/photo-sessions/commands/index.js +0 -26
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -147
- package/build/photo-sessions/commands/photo-sessions.command.js +0 -41
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -142
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -23
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -115
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +0 -27
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -113
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -113
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -118
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
- package/build/photo-sessions/enums/index.d.ts +0 -2
- package/build/photo-sessions/enums/index.js +0 -18
- package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
- package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
- package/build/photo-sessions/index.d.ts +0 -5
- package/build/photo-sessions/index.js +0 -21
- package/build/photo-sessions/models/index.d.ts +0 -4
- package/build/photo-sessions/models/index.js +0 -20
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
- package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -78
- package/build/photo-sessions/models/photo-session-job.schema.js +0 -46
- package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
- package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
- package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -110
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -10
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +0 -130
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +0 -28
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
- package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
- package/build/photo-sessions/queries/index.d.ts +0 -5
- package/build/photo-sessions/queries/index.js +0 -21
- package/build/photo-sessions/routes/index.d.ts +0 -2
- package/build/photo-sessions/routes/index.js +0 -18
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
- package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
- package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
- package/build/tts/commands/create-voice-clone.command.d.ts +0 -56
- package/build/tts/commands/create-voice-clone.command.js +0 -19
- package/build/tts/commands/create-voice-design.command.d.ts +0 -35
- package/build/tts/commands/create-voice-design.command.js +0 -18
- package/build/tts/commands/delete-voice.command.d.ts +0 -15
- package/build/tts/commands/delete-voice.command.js +0 -13
- package/build/tts/commands/download-tts-job.command.d.ts +0 -25
- package/build/tts/commands/download-tts-job.command.js +0 -19
- package/build/tts/commands/improve-tts-text.command.d.ts +0 -22
- package/build/tts/commands/improve-tts-text.command.js +0 -16
- package/build/tts/commands/select-voice-design.command.d.ts +0 -53
- package/build/tts/commands/select-voice-design.command.js +0 -16
- package/build/tts/commands/update-voice.command.d.ts +0 -53
- package/build/tts/commands/update-voice.command.js +0 -16
- package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
- package/build/tts/enums/tts-download-format.enum.js +0 -9
- package/build/tts/enums/voice-category.enum.d.ts +0 -14
- package/build/tts/enums/voice-category.enum.js +0 -18
- package/build/tts/enums/voice-gender.enum.d.ts +0 -4
- package/build/tts/enums/voice-gender.enum.js +0 -8
- package/build/tts/enums/voice-source.enum.d.ts +0 -5
- package/build/tts/enums/voice-source.enum.js +0 -9
- package/build/tts/enums/voice-status.enum.d.ts +0 -5
- package/build/tts/enums/voice-status.enum.js +0 -9
- package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
- package/build/tts/enums/voice-tag-group.enum.js +0 -9
- package/build/tts/enums/voice-tag.enum.d.ts +0 -20
- package/build/tts/enums/voice-tag.enum.js +0 -24
- package/build/tts/models/voice-category.schema.d.ts +0 -7
- package/build/tts/models/voice-category.schema.js +0 -9
- package/build/tts/models/voice-design-draft.schema.d.ts +0 -12
- package/build/tts/models/voice-design-draft.schema.js +0 -12
- package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
- package/build/tts/models/voice-design-sample.schema.js +0 -8
- package/build/tts/models/voice-tag.schema.d.ts +0 -9
- package/build/tts/models/voice-tag.schema.js +0 -11
- package/build/tts/models/voice.schema.d.ts +0 -25
- package/build/tts/models/voice.schema.js +0 -27
- package/build/tts/queries/find-voice-by-id.query.d.ts +0 -53
- package/build/tts/queries/find-voice-by-id.query.js +0 -16
- package/build/tts/queries/find-voices.query.d.ts +0 -87
- package/build/tts/queries/find-voices.query.js +0 -24
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_SCOPE } from '../../common';
|
|
3
|
-
import { JOB_SORT, JOB_STATUS } from '../../tools';
|
|
4
|
-
export declare namespace FindPhotoSessionsJobsQuery {
|
|
5
|
-
const RequestSchema: z.ZodObject<{
|
|
6
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
-
unregisteredUserId: z.ZodOptional<z.ZodString>;
|
|
8
|
-
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
9
|
-
title: z.ZodOptional<z.ZodString>;
|
|
10
|
-
isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
11
|
-
createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
|
|
12
|
-
status: z.ZodOptional<z.ZodEnum<typeof JOB_STATUS>>;
|
|
13
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
14
|
-
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
17
|
-
const ResponseSchema: z.ZodObject<{
|
|
18
|
-
isSuccess: z.ZodBoolean;
|
|
19
|
-
data: z.ZodOptional<z.ZodType<{
|
|
20
|
-
data: {
|
|
21
|
-
uuid: string;
|
|
22
|
-
prompt: string;
|
|
23
|
-
reaction: import("../..").USER_REACTION | null;
|
|
24
|
-
dislikeReason: string | null;
|
|
25
|
-
externalId: string | null;
|
|
26
|
-
title: string;
|
|
27
|
-
status: JOB_STATUS;
|
|
28
|
-
error: string | null;
|
|
29
|
-
modelId: string;
|
|
30
|
-
price: number;
|
|
31
|
-
previewUrl: string | null;
|
|
32
|
-
params: {
|
|
33
|
-
attachedFiles?: {
|
|
34
|
-
uuid: string;
|
|
35
|
-
url: string;
|
|
36
|
-
name: string;
|
|
37
|
-
mimeType: string;
|
|
38
|
-
type: string;
|
|
39
|
-
size: number;
|
|
40
|
-
duration?: number | null | undefined;
|
|
41
|
-
content?: string | null | undefined;
|
|
42
|
-
contentLength?: number | null | undefined;
|
|
43
|
-
}[] | undefined;
|
|
44
|
-
imageUrls?: string[] | undefined;
|
|
45
|
-
styleId?: string | null | undefined;
|
|
46
|
-
referenceId?: string | null | undefined;
|
|
47
|
-
referenceIds?: string[] | undefined;
|
|
48
|
-
customStylePrompt?: string | null | undefined;
|
|
49
|
-
customStylePhotos?: string[] | undefined;
|
|
50
|
-
clothingPhotos?: string[] | undefined;
|
|
51
|
-
hairstylePhotos?: string[] | undefined;
|
|
52
|
-
accessoriesPhotos?: string[] | undefined;
|
|
53
|
-
aspectRatio?: string | undefined;
|
|
54
|
-
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
55
|
-
};
|
|
56
|
-
imageUrls: string[] | null;
|
|
57
|
-
attempts: any[];
|
|
58
|
-
userId?: string | null | undefined;
|
|
59
|
-
unregisteredUserId?: string | null | undefined;
|
|
60
|
-
isPublished: boolean;
|
|
61
|
-
postId: string | null;
|
|
62
|
-
isDeleted: boolean;
|
|
63
|
-
isFavorite: boolean;
|
|
64
|
-
tokenReservationId?: string | null | undefined;
|
|
65
|
-
createdAt: Date;
|
|
66
|
-
completedAt?: Date | null | undefined;
|
|
67
|
-
updatedAt: Date;
|
|
68
|
-
}[];
|
|
69
|
-
page: number;
|
|
70
|
-
totalPages: number;
|
|
71
|
-
total: number;
|
|
72
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
73
|
-
data: {
|
|
74
|
-
uuid: string;
|
|
75
|
-
prompt: string;
|
|
76
|
-
reaction: import("../..").USER_REACTION | null;
|
|
77
|
-
dislikeReason: string | null;
|
|
78
|
-
externalId: string | null;
|
|
79
|
-
title: string;
|
|
80
|
-
status: JOB_STATUS;
|
|
81
|
-
error: string | null;
|
|
82
|
-
modelId: string;
|
|
83
|
-
price: number;
|
|
84
|
-
previewUrl: string | null;
|
|
85
|
-
params: {
|
|
86
|
-
attachedFiles?: {
|
|
87
|
-
uuid: string;
|
|
88
|
-
url: string;
|
|
89
|
-
name: string;
|
|
90
|
-
mimeType: string;
|
|
91
|
-
type: string;
|
|
92
|
-
size: number;
|
|
93
|
-
duration?: number | null | undefined;
|
|
94
|
-
content?: string | null | undefined;
|
|
95
|
-
contentLength?: number | null | undefined;
|
|
96
|
-
}[] | undefined;
|
|
97
|
-
imageUrls?: string[] | undefined;
|
|
98
|
-
styleId?: string | null | undefined;
|
|
99
|
-
referenceId?: string | null | undefined;
|
|
100
|
-
referenceIds?: string[] | undefined;
|
|
101
|
-
customStylePrompt?: string | null | undefined;
|
|
102
|
-
customStylePhotos?: string[] | undefined;
|
|
103
|
-
clothingPhotos?: string[] | undefined;
|
|
104
|
-
hairstylePhotos?: string[] | undefined;
|
|
105
|
-
accessoriesPhotos?: string[] | undefined;
|
|
106
|
-
aspectRatio?: string | undefined;
|
|
107
|
-
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
108
|
-
};
|
|
109
|
-
imageUrls: string[] | null;
|
|
110
|
-
attempts: any[];
|
|
111
|
-
userId?: string | null | undefined;
|
|
112
|
-
unregisteredUserId?: string | null | undefined;
|
|
113
|
-
isPublished: boolean;
|
|
114
|
-
postId: string | null;
|
|
115
|
-
isDeleted: boolean;
|
|
116
|
-
isFavorite: boolean;
|
|
117
|
-
tokenReservationId?: string | null | undefined;
|
|
118
|
-
createdAt: Date;
|
|
119
|
-
completedAt?: Date | null | undefined;
|
|
120
|
-
updatedAt: Date;
|
|
121
|
-
}[];
|
|
122
|
-
page: number;
|
|
123
|
-
totalPages: number;
|
|
124
|
-
total: number;
|
|
125
|
-
}, unknown>>>;
|
|
126
|
-
code: z.ZodOptional<z.ZodString>;
|
|
127
|
-
message: z.ZodOptional<z.ZodString>;
|
|
128
|
-
}, z.core.$strip>;
|
|
129
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
130
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoSessionsJobsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
|
-
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
7
|
-
const models_1 = require("../models");
|
|
8
|
-
const tools_1 = require("../../tools");
|
|
9
|
-
var FindPhotoSessionsJobsQuery;
|
|
10
|
-
(function (FindPhotoSessionsJobsQuery) {
|
|
11
|
-
FindPhotoSessionsJobsQuery.RequestSchema = zod_1.z.object({
|
|
12
|
-
userId: zod_1.z.string().uuid().optional(),
|
|
13
|
-
unregisteredUserId: zod_1.z.string().uuid().optional(),
|
|
14
|
-
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
15
|
-
title: zod_1.z.string().optional(),
|
|
16
|
-
isFavorite: zod_1.z.coerce.boolean().optional(),
|
|
17
|
-
createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
|
|
18
|
-
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS).optional(),
|
|
19
|
-
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
20
|
-
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
21
|
-
});
|
|
22
|
-
FindPhotoSessionsJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
23
|
-
data: zod_1.z.array(models_1.PhotoSessionJobSchema),
|
|
24
|
-
page: zod_1.z.number(),
|
|
25
|
-
totalPages: zod_1.z.number(),
|
|
26
|
-
total: zod_1.z.number(),
|
|
27
|
-
}));
|
|
28
|
-
})(FindPhotoSessionsJobsQuery || (exports.FindPhotoSessionsJobsQuery = FindPhotoSessionsJobsQuery = {}));
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace GetPhotoSessionsConfigQuery {
|
|
3
|
-
const RequestSchema: z.ZodObject<{
|
|
4
|
-
locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
7
|
-
const ResponseSchema: z.ZodObject<{
|
|
8
|
-
isSuccess: z.ZodBoolean;
|
|
9
|
-
data: z.ZodOptional<z.ZodType<{
|
|
10
|
-
models: {
|
|
11
|
-
uuid: string;
|
|
12
|
-
title: string;
|
|
13
|
-
description: string;
|
|
14
|
-
aiModel: string;
|
|
15
|
-
isNew: boolean;
|
|
16
|
-
tierLabel: string;
|
|
17
|
-
pricePerImage: number;
|
|
18
|
-
order: number;
|
|
19
|
-
status: import("../..").TOOL_MODEL_STATUS;
|
|
20
|
-
icons: {
|
|
21
|
-
light: {
|
|
22
|
-
svg: string;
|
|
23
|
-
png: string;
|
|
24
|
-
};
|
|
25
|
-
dark: {
|
|
26
|
-
svg: string;
|
|
27
|
-
png: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
strategy: import("..").PHOTO_SESSION_STRATEGY;
|
|
31
|
-
maxInputLength: number;
|
|
32
|
-
params: {
|
|
33
|
-
imageAttachment: {
|
|
34
|
-
supported: boolean;
|
|
35
|
-
maxImages: number;
|
|
36
|
-
acceptedTypes: string[];
|
|
37
|
-
};
|
|
38
|
-
aspectRatio: Record<string, {
|
|
39
|
-
width: number;
|
|
40
|
-
height: number;
|
|
41
|
-
}>;
|
|
42
|
-
};
|
|
43
|
-
pricingRules: {
|
|
44
|
-
condition: {
|
|
45
|
-
withoutSub?: boolean | undefined;
|
|
46
|
-
};
|
|
47
|
-
value: number;
|
|
48
|
-
}[];
|
|
49
|
-
createdAt: Date;
|
|
50
|
-
updatedAt: Date;
|
|
51
|
-
}[];
|
|
52
|
-
styles: {
|
|
53
|
-
uuid: string;
|
|
54
|
-
code: string;
|
|
55
|
-
title: string;
|
|
56
|
-
description?: string | null | undefined;
|
|
57
|
-
references: {
|
|
58
|
-
uuid: string;
|
|
59
|
-
styleId: string;
|
|
60
|
-
photoUrl: string;
|
|
61
|
-
description?: string | null | undefined;
|
|
62
|
-
order: number;
|
|
63
|
-
createdAt: Date;
|
|
64
|
-
updatedAt: Date;
|
|
65
|
-
}[];
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
updatedAt: Date;
|
|
68
|
-
}[];
|
|
69
|
-
looks: {
|
|
70
|
-
type: import("..").PHOTO_SESSION_LOOK_TYPE;
|
|
71
|
-
maxPhotos: number;
|
|
72
|
-
}[];
|
|
73
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
74
|
-
models: {
|
|
75
|
-
uuid: string;
|
|
76
|
-
title: string;
|
|
77
|
-
description: string;
|
|
78
|
-
aiModel: string;
|
|
79
|
-
isNew: boolean;
|
|
80
|
-
tierLabel: string;
|
|
81
|
-
pricePerImage: number;
|
|
82
|
-
order: number;
|
|
83
|
-
status: import("../..").TOOL_MODEL_STATUS;
|
|
84
|
-
icons: {
|
|
85
|
-
light: {
|
|
86
|
-
svg: string;
|
|
87
|
-
png: string;
|
|
88
|
-
};
|
|
89
|
-
dark: {
|
|
90
|
-
svg: string;
|
|
91
|
-
png: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
strategy: import("..").PHOTO_SESSION_STRATEGY;
|
|
95
|
-
maxInputLength: number;
|
|
96
|
-
params: {
|
|
97
|
-
imageAttachment: {
|
|
98
|
-
supported: boolean;
|
|
99
|
-
maxImages: number;
|
|
100
|
-
acceptedTypes: string[];
|
|
101
|
-
};
|
|
102
|
-
aspectRatio: Record<string, {
|
|
103
|
-
width: number;
|
|
104
|
-
height: number;
|
|
105
|
-
}>;
|
|
106
|
-
};
|
|
107
|
-
pricingRules: {
|
|
108
|
-
condition: {
|
|
109
|
-
withoutSub?: boolean | undefined;
|
|
110
|
-
};
|
|
111
|
-
value: number;
|
|
112
|
-
}[];
|
|
113
|
-
createdAt: Date;
|
|
114
|
-
updatedAt: Date;
|
|
115
|
-
}[];
|
|
116
|
-
styles: {
|
|
117
|
-
uuid: string;
|
|
118
|
-
code: string;
|
|
119
|
-
title: string;
|
|
120
|
-
description?: string | null | undefined;
|
|
121
|
-
references: {
|
|
122
|
-
uuid: string;
|
|
123
|
-
styleId: string;
|
|
124
|
-
photoUrl: string;
|
|
125
|
-
description?: string | null | undefined;
|
|
126
|
-
order: number;
|
|
127
|
-
createdAt: Date;
|
|
128
|
-
updatedAt: Date;
|
|
129
|
-
}[];
|
|
130
|
-
createdAt: Date;
|
|
131
|
-
updatedAt: Date;
|
|
132
|
-
}[];
|
|
133
|
-
looks: {
|
|
134
|
-
type: import("..").PHOTO_SESSION_LOOK_TYPE;
|
|
135
|
-
maxPhotos: number;
|
|
136
|
-
}[];
|
|
137
|
-
}, unknown>>>;
|
|
138
|
-
code: z.ZodOptional<z.ZodString>;
|
|
139
|
-
message: z.ZodOptional<z.ZodString>;
|
|
140
|
-
}, z.core.$strip>;
|
|
141
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
142
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetPhotoSessionsConfigQuery = void 0;
|
|
4
|
-
const common_1 = require("../../common");
|
|
5
|
-
const models_1 = require("../models");
|
|
6
|
-
var GetPhotoSessionsConfigQuery;
|
|
7
|
-
(function (GetPhotoSessionsConfigQuery) {
|
|
8
|
-
GetPhotoSessionsConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
9
|
-
GetPhotoSessionsConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.PhotoSessionConfigSchema);
|
|
10
|
-
})(GetPhotoSessionsConfigQuery || (exports.GetPhotoSessionsConfigQuery = GetPhotoSessionsConfigQuery = {}));
|
|
@@ -1,21 +0,0 @@
|
|
|
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("./find-photo-sessions-job-by-id.query"), exports);
|
|
18
|
-
__exportStar(require("./find-photo-sessions-jobs.query"), exports);
|
|
19
|
-
__exportStar(require("./get-photo-sessions-config.query"), exports);
|
|
20
|
-
__exportStar(require("./find-photo-session-styles.query"), exports);
|
|
21
|
-
__exportStar(require("./find-photo-session-style-by-id.query"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
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("./photo-sessions.amqp.routes"), exports);
|
|
18
|
-
__exportStar(require("./photo-sessions.http.routes"), exports);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const PHOTO_SESSIONS_AMQP_ROUTES: {
|
|
2
|
-
readonly EXECUTE: 'tools.photo-sessions.execute.rpc';
|
|
3
|
-
readonly GET_PRICE: 'tools.photo-sessions.get-price.rpc';
|
|
4
|
-
readonly CONFIG: 'tools.photo-sessions.config.rpc';
|
|
5
|
-
readonly GET_JOB: 'tools.photo-sessions.jobs.get.rpc';
|
|
6
|
-
readonly LIST_JOBS: 'tools.photo-sessions.jobs.list.rpc';
|
|
7
|
-
readonly SET_REACTION: 'tools.photo-sessions.jobs.set-reaction.rpc';
|
|
8
|
-
readonly UPDATE_TITLE: 'tools.photo-sessions.jobs.update-title.rpc';
|
|
9
|
-
readonly UPDATE_FAVORITE: 'tools.photo-sessions.jobs.update-favorite.rpc';
|
|
10
|
-
readonly SOFT_DELETE: 'tools.photo-sessions.jobs.soft-delete.rpc';
|
|
11
|
-
readonly SOFT_DELETE_ALL: 'tools.photo-sessions.jobs.soft-delete-all.rpc';
|
|
12
|
-
readonly RETRY: 'tools.photo-sessions.jobs.retry.rpc';
|
|
13
|
-
readonly UPDATE_JOB: 'tools.photo-sessions.jobs.update.rpc';
|
|
14
|
-
readonly LIST_STYLES: 'tools.photo-sessions.styles.list.rpc';
|
|
15
|
-
readonly GET_STYLE: 'tools.photo-sessions.styles.get.rpc';
|
|
16
|
-
readonly CREATE_STYLE: 'tools.photo-sessions.styles.create.rpc';
|
|
17
|
-
readonly UPDATE_STYLE: 'tools.photo-sessions.styles.update.rpc';
|
|
18
|
-
readonly DELETE_STYLE: 'tools.photo-sessions.styles.delete.rpc';
|
|
19
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PHOTO_SESSIONS_AMQP_ROUTES = void 0;
|
|
4
|
-
exports.PHOTO_SESSIONS_AMQP_ROUTES = {
|
|
5
|
-
EXECUTE: 'tools.photo-sessions.execute.rpc',
|
|
6
|
-
GET_PRICE: 'tools.photo-sessions.get-price.rpc',
|
|
7
|
-
CONFIG: 'tools.photo-sessions.config.rpc',
|
|
8
|
-
GET_JOB: 'tools.photo-sessions.jobs.get.rpc',
|
|
9
|
-
LIST_JOBS: 'tools.photo-sessions.jobs.list.rpc',
|
|
10
|
-
SET_REACTION: 'tools.photo-sessions.jobs.set-reaction.rpc',
|
|
11
|
-
UPDATE_TITLE: 'tools.photo-sessions.jobs.update-title.rpc',
|
|
12
|
-
UPDATE_FAVORITE: 'tools.photo-sessions.jobs.update-favorite.rpc',
|
|
13
|
-
SOFT_DELETE: 'tools.photo-sessions.jobs.soft-delete.rpc',
|
|
14
|
-
SOFT_DELETE_ALL: 'tools.photo-sessions.jobs.soft-delete-all.rpc',
|
|
15
|
-
RETRY: 'tools.photo-sessions.jobs.retry.rpc',
|
|
16
|
-
UPDATE_JOB: 'tools.photo-sessions.jobs.update.rpc',
|
|
17
|
-
LIST_STYLES: 'tools.photo-sessions.styles.list.rpc',
|
|
18
|
-
GET_STYLE: 'tools.photo-sessions.styles.get.rpc',
|
|
19
|
-
CREATE_STYLE: 'tools.photo-sessions.styles.create.rpc',
|
|
20
|
-
UPDATE_STYLE: 'tools.photo-sessions.styles.update.rpc',
|
|
21
|
-
DELETE_STYLE: 'tools.photo-sessions.styles.delete.rpc',
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PHOTO_SESSIONS_CONTROLLER = "photo-sessions";
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
3
|
-
export declare namespace CreateVoiceCloneCommand {
|
|
4
|
-
const RequestSchema: z.ZodObject<{
|
|
5
|
-
userId: z.ZodString;
|
|
6
|
-
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
7
|
-
title: z.ZodString;
|
|
8
|
-
gender: z.ZodOptional<z.ZodEnum<typeof VOICE_GENDER>>;
|
|
9
|
-
fileUrl: z.ZodString;
|
|
10
|
-
fileKey: z.ZodString;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
13
|
-
const ResponseSchema: z.ZodObject<{
|
|
14
|
-
isSuccess: z.ZodBoolean;
|
|
15
|
-
data: z.ZodOptional<z.ZodType<{
|
|
16
|
-
uuid: string;
|
|
17
|
-
source: import("..").VOICE_SOURCE;
|
|
18
|
-
title: string;
|
|
19
|
-
description: string;
|
|
20
|
-
gender: VOICE_GENDER | null;
|
|
21
|
-
trait: string | null;
|
|
22
|
-
ageRange: string | null;
|
|
23
|
-
categories: import("..").VOICE_CATEGORY[];
|
|
24
|
-
previewUrl: string;
|
|
25
|
-
status: import("..").VOICE_STATUS;
|
|
26
|
-
error: string | null;
|
|
27
|
-
order: number;
|
|
28
|
-
isDeleted: boolean;
|
|
29
|
-
userId: string | null;
|
|
30
|
-
unregisteredUserId: string | null;
|
|
31
|
-
createdAt: Date;
|
|
32
|
-
updatedAt: Date;
|
|
33
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
34
|
-
uuid: string;
|
|
35
|
-
source: import("..").VOICE_SOURCE;
|
|
36
|
-
title: string;
|
|
37
|
-
description: string;
|
|
38
|
-
gender: VOICE_GENDER | null;
|
|
39
|
-
trait: string | null;
|
|
40
|
-
ageRange: string | null;
|
|
41
|
-
categories: import("..").VOICE_CATEGORY[];
|
|
42
|
-
previewUrl: string;
|
|
43
|
-
status: import("..").VOICE_STATUS;
|
|
44
|
-
error: string | null;
|
|
45
|
-
order: number;
|
|
46
|
-
isDeleted: boolean;
|
|
47
|
-
userId: string | null;
|
|
48
|
-
unregisteredUserId: string | null;
|
|
49
|
-
createdAt: Date;
|
|
50
|
-
updatedAt: Date;
|
|
51
|
-
}, unknown>>>;
|
|
52
|
-
code: z.ZodOptional<z.ZodString>;
|
|
53
|
-
message: z.ZodOptional<z.ZodString>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
56
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateVoiceCloneCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
|
-
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
7
|
-
const models_1 = require("../models");
|
|
8
|
-
var CreateVoiceCloneCommand;
|
|
9
|
-
(function (CreateVoiceCloneCommand) {
|
|
10
|
-
CreateVoiceCloneCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
userId: zod_1.z.string().uuid(),
|
|
12
|
-
locale: common_1.LocaleSchema.optional(),
|
|
13
|
-
title: zod_1.z.string(),
|
|
14
|
-
gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER).optional(),
|
|
15
|
-
fileUrl: zod_1.z.string().url(),
|
|
16
|
-
fileKey: zod_1.z.string(),
|
|
17
|
-
});
|
|
18
|
-
CreateVoiceCloneCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceSchema);
|
|
19
|
-
})(CreateVoiceCloneCommand || (exports.CreateVoiceCloneCommand = CreateVoiceCloneCommand = {}));
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { VOICE_GENDER } from '../enums/voice-gender.enum';
|
|
3
|
-
export declare namespace CreateVoiceDesignCommand {
|
|
4
|
-
const RequestSchema: z.ZodObject<{
|
|
5
|
-
userId: z.ZodString;
|
|
6
|
-
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
7
|
-
title: z.ZodString;
|
|
8
|
-
gender: z.ZodEnum<typeof VOICE_GENDER>;
|
|
9
|
-
instruction: z.ZodString;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
12
|
-
const ResponseSchema: z.ZodObject<{
|
|
13
|
-
isSuccess: z.ZodBoolean;
|
|
14
|
-
data: z.ZodOptional<z.ZodType<{
|
|
15
|
-
designId: string;
|
|
16
|
-
title: string;
|
|
17
|
-
gender: VOICE_GENDER;
|
|
18
|
-
samples: {
|
|
19
|
-
sampleId: string;
|
|
20
|
-
previewUrl: string;
|
|
21
|
-
}[];
|
|
22
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
23
|
-
designId: string;
|
|
24
|
-
title: string;
|
|
25
|
-
gender: VOICE_GENDER;
|
|
26
|
-
samples: {
|
|
27
|
-
sampleId: string;
|
|
28
|
-
previewUrl: string;
|
|
29
|
-
}[];
|
|
30
|
-
}, unknown>>>;
|
|
31
|
-
code: z.ZodOptional<z.ZodString>;
|
|
32
|
-
message: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
35
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateVoiceDesignCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
|
-
const voice_gender_enum_1 = require("../enums/voice-gender.enum");
|
|
7
|
-
const models_1 = require("../models");
|
|
8
|
-
var CreateVoiceDesignCommand;
|
|
9
|
-
(function (CreateVoiceDesignCommand) {
|
|
10
|
-
CreateVoiceDesignCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
userId: zod_1.z.string().uuid(),
|
|
12
|
-
locale: common_1.LocaleSchema.optional(),
|
|
13
|
-
title: zod_1.z.string(),
|
|
14
|
-
gender: zod_1.z.nativeEnum(voice_gender_enum_1.VOICE_GENDER),
|
|
15
|
-
instruction: zod_1.z.string().min(1),
|
|
16
|
-
});
|
|
17
|
-
CreateVoiceDesignCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VoiceDesignDraftSchema);
|
|
18
|
-
})(CreateVoiceDesignCommand || (exports.CreateVoiceDesignCommand = CreateVoiceDesignCommand = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace DeleteVoiceCommand {
|
|
3
|
-
const RequestSchema: z.ZodObject<{
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
userId: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
8
|
-
const ResponseSchema: z.ZodObject<{
|
|
9
|
-
isSuccess: z.ZodBoolean;
|
|
10
|
-
data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
|
|
11
|
-
code: z.ZodOptional<z.ZodString>;
|
|
12
|
-
message: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteVoiceCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
|
-
var DeleteVoiceCommand;
|
|
7
|
-
(function (DeleteVoiceCommand) {
|
|
8
|
-
DeleteVoiceCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
userId: zod_1.z.string().uuid(),
|
|
11
|
-
});
|
|
12
|
-
DeleteVoiceCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.boolean());
|
|
13
|
-
})(DeleteVoiceCommand || (exports.DeleteVoiceCommand = DeleteVoiceCommand = {}));
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TTS_DOWNLOAD_FORMAT } from '../enums/tts-download-format.enum';
|
|
3
|
-
export declare namespace DownloadTTSJobCommand {
|
|
4
|
-
const RequestSchema: z.ZodObject<{
|
|
5
|
-
uuid: z.ZodString;
|
|
6
|
-
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
-
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
format: z.ZodEnum<typeof TTS_DOWNLOAD_FORMAT>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
11
|
-
const ResponseDataSchema: z.ZodObject<{
|
|
12
|
-
url: z.ZodString;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
const ResponseSchema: z.ZodObject<{
|
|
15
|
-
isSuccess: z.ZodBoolean;
|
|
16
|
-
data: z.ZodOptional<z.ZodType<{
|
|
17
|
-
url: string;
|
|
18
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
19
|
-
url: string;
|
|
20
|
-
}, unknown>>>;
|
|
21
|
-
code: z.ZodOptional<z.ZodString>;
|
|
22
|
-
message: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
25
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DownloadTTSJobCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
|
-
const tts_download_format_enum_1 = require("../enums/tts-download-format.enum");
|
|
7
|
-
var DownloadTTSJobCommand;
|
|
8
|
-
(function (DownloadTTSJobCommand) {
|
|
9
|
-
DownloadTTSJobCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
uuid: zod_1.z.string().uuid(),
|
|
11
|
-
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
|
-
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
|
-
format: zod_1.z.nativeEnum(tts_download_format_enum_1.TTS_DOWNLOAD_FORMAT),
|
|
14
|
-
});
|
|
15
|
-
DownloadTTSJobCommand.ResponseDataSchema = zod_1.z.object({
|
|
16
|
-
url: zod_1.z.string(),
|
|
17
|
-
});
|
|
18
|
-
DownloadTTSJobCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(DownloadTTSJobCommand.ResponseDataSchema);
|
|
19
|
-
})(DownloadTTSJobCommand || (exports.DownloadTTSJobCommand = DownloadTTSJobCommand = {}));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace ImproveTTSTextCommand {
|
|
3
|
-
const RequestSchema: z.ZodObject<{
|
|
4
|
-
userInput: z.ZodString;
|
|
5
|
-
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
8
|
-
const ResponseDataSchema: z.ZodObject<{
|
|
9
|
-
text: z.ZodString;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
const ResponseSchema: z.ZodObject<{
|
|
12
|
-
isSuccess: z.ZodBoolean;
|
|
13
|
-
data: z.ZodOptional<z.ZodType<{
|
|
14
|
-
text: string;
|
|
15
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
16
|
-
text: string;
|
|
17
|
-
}, unknown>>>;
|
|
18
|
-
code: z.ZodOptional<z.ZodString>;
|
|
19
|
-
message: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
22
|
-
}
|