@purpleschool/gptbot-tools 0.4.13 → 0.4.15-stage-2
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/greetings/commands/greeting-settlement.command.d.ts +28 -0
- package/build/greetings/commands/greeting-settlement.command.js +18 -0
- package/build/greetings/commands/index.d.ts +1 -0
- package/build/greetings/commands/index.js +17 -0
- package/build/greetings/enums/greeting-kind.enum.d.ts +6 -0
- package/build/greetings/enums/greeting-kind.enum.js +10 -0
- package/build/greetings/enums/greeting-status.enum.d.ts +6 -0
- package/build/greetings/enums/greeting-status.enum.js +10 -0
- package/build/greetings/enums/index.d.ts +2 -0
- package/build/greetings/enums/index.js +18 -0
- package/build/greetings/index.d.ts +6 -0
- package/build/greetings/index.js +22 -0
- package/build/greetings/models/greeting-config.schema.d.ts +80 -0
- package/build/greetings/models/greeting-config.schema.js +35 -0
- package/build/greetings/models/greeting-input.schema.d.ts +64 -0
- package/build/greetings/models/greeting-input.schema.js +26 -0
- package/build/greetings/models/greeting-job.schema.d.ts +104 -0
- package/build/greetings/models/greeting-job.schema.js +24 -0
- package/build/greetings/models/greeting-owner.schema.d.ts +6 -0
- package/build/greetings/models/greeting-owner.schema.js +12 -0
- package/build/greetings/models/greeting-price-data.schema.d.ts +20 -0
- package/build/greetings/models/greeting-price-data.schema.js +21 -0
- package/build/greetings/models/greeting-result.schema.d.ts +36 -0
- package/build/greetings/models/greeting-result.schema.js +22 -0
- package/build/greetings/models/index.d.ts +6 -0
- package/build/greetings/models/index.js +22 -0
- package/build/greetings/requests/greeting-execute.schema.d.ts +67 -0
- package/build/greetings/requests/greeting-execute.schema.js +11 -0
- package/build/greetings/requests/greeting-favorite-request.schema.d.ts +9 -0
- package/build/greetings/requests/greeting-favorite-request.schema.js +8 -0
- package/build/greetings/requests/greeting-identity-request.schema.d.ts +13 -0
- package/build/greetings/requests/greeting-identity-request.schema.js +10 -0
- package/build/greetings/requests/greeting-internal-execute.schema.d.ts +151 -0
- package/build/greetings/requests/greeting-internal-execute.schema.js +9 -0
- package/build/greetings/requests/greeting-internal-price-request.schema.d.ts +69 -0
- package/build/greetings/requests/greeting-internal-price-request.schema.js +10 -0
- package/build/greetings/requests/greeting-job-request.schema.d.ts +8 -0
- package/build/greetings/requests/greeting-job-request.schema.js +9 -0
- package/build/greetings/requests/greeting-list-request.schema.d.ts +16 -0
- package/build/greetings/requests/greeting-list-request.schema.js +13 -0
- package/build/greetings/requests/greeting-operation-request.schema.d.ts +8 -0
- package/build/greetings/requests/greeting-operation-request.schema.js +9 -0
- package/build/greetings/requests/greeting-price-request.schema.d.ts +64 -0
- package/build/greetings/requests/greeting-price-request.schema.js +6 -0
- package/build/greetings/requests/greeting-reaction-request.schema.d.ts +10 -0
- package/build/greetings/requests/greeting-reaction-request.schema.js +9 -0
- package/build/greetings/requests/greeting-retry.schema.d.ts +7 -0
- package/build/greetings/requests/greeting-retry.schema.js +10 -0
- package/build/greetings/requests/greeting-title-request.schema.d.ts +9 -0
- package/build/greetings/requests/greeting-title-request.schema.js +8 -0
- package/build/greetings/requests/index.d.ts +12 -0
- package/build/greetings/requests/index.js +28 -0
- package/build/greetings/responses/greeting.responses.d.ts +633 -0
- package/build/greetings/responses/greeting.responses.js +15 -0
- package/build/greetings/responses/index.d.ts +1 -0
- package/build/greetings/responses/index.js +17 -0
- package/build/greetings/routes/greetings.amqp.routes.d.ts +14 -0
- package/build/greetings/routes/greetings.amqp.routes.js +17 -0
- package/build/greetings/routes/index.d.ts +1 -0
- package/build/greetings/routes/index.js +17 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-content-type.enum.js +1 -0
- package/build/tools/enums/tool-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-type.enum.js +1 -0
- package/build/tools/models/global-tools-config.schema.d.ts +49 -0
- package/build/tools/models/global-tools-config.schema.js +2 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +122 -0
- package/build/tools/models/tools-with-configs.schema.js +5 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +88 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +112 -0
- package/package.json +1 -1
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GreetingJobResponseSchema: z.ZodObject<{
|
|
3
|
+
isSuccess: z.ZodBoolean;
|
|
4
|
+
data: z.ZodOptional<z.ZodType<{
|
|
5
|
+
uuid: string;
|
|
6
|
+
isFavorite: boolean;
|
|
7
|
+
title?: string | null | undefined;
|
|
8
|
+
reaction?: import("../..").USER_REACTION | null | undefined;
|
|
9
|
+
kind: import("..").GREETING_KIND;
|
|
10
|
+
modelId: string;
|
|
11
|
+
input: {
|
|
12
|
+
modelId: string;
|
|
13
|
+
prompt: string;
|
|
14
|
+
locale: "en" | "es" | "ru";
|
|
15
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
16
|
+
settings: {
|
|
17
|
+
lengthId: string;
|
|
18
|
+
formatId: string;
|
|
19
|
+
};
|
|
20
|
+
} | {
|
|
21
|
+
modelId: string;
|
|
22
|
+
prompt: string;
|
|
23
|
+
locale: "en" | "es" | "ru";
|
|
24
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
25
|
+
settings: {
|
|
26
|
+
styleId?: string | undefined;
|
|
27
|
+
customStyle?: string | undefined;
|
|
28
|
+
voice: "f" | "m";
|
|
29
|
+
};
|
|
30
|
+
} | {
|
|
31
|
+
modelId: string;
|
|
32
|
+
prompt: string;
|
|
33
|
+
locale: "en" | "es" | "ru";
|
|
34
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
35
|
+
settings: {
|
|
36
|
+
styleId?: string | undefined;
|
|
37
|
+
customStyle?: string | undefined;
|
|
38
|
+
imageUrls?: string[] | undefined;
|
|
39
|
+
duration: number;
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
42
|
+
modelId: string;
|
|
43
|
+
prompt: string;
|
|
44
|
+
locale: "en" | "es" | "ru";
|
|
45
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
46
|
+
settings: {
|
|
47
|
+
styleId?: string | undefined;
|
|
48
|
+
customStyle?: string | undefined;
|
|
49
|
+
imageUrls?: string[] | undefined;
|
|
50
|
+
aspectRatio: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
status: import("..").GREETING_STATUS;
|
|
54
|
+
currentAttemptId: string;
|
|
55
|
+
price: number;
|
|
56
|
+
result: {
|
|
57
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
58
|
+
text: string;
|
|
59
|
+
} | {
|
|
60
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
61
|
+
tracks: {
|
|
62
|
+
id: string;
|
|
63
|
+
title: string;
|
|
64
|
+
audioUrl: string;
|
|
65
|
+
imageUrl?: string | undefined;
|
|
66
|
+
duration?: number | undefined;
|
|
67
|
+
lyrics?: string | undefined;
|
|
68
|
+
}[];
|
|
69
|
+
} | {
|
|
70
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
71
|
+
video: {
|
|
72
|
+
url: string;
|
|
73
|
+
previewUrl?: string | undefined;
|
|
74
|
+
};
|
|
75
|
+
} | {
|
|
76
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
77
|
+
image: {
|
|
78
|
+
url: string;
|
|
79
|
+
};
|
|
80
|
+
} | null;
|
|
81
|
+
error: string | null;
|
|
82
|
+
createdAt: string;
|
|
83
|
+
updatedAt: string;
|
|
84
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
85
|
+
uuid: string;
|
|
86
|
+
isFavorite: boolean;
|
|
87
|
+
title?: string | null | undefined;
|
|
88
|
+
reaction?: import("../..").USER_REACTION | null | undefined;
|
|
89
|
+
kind: import("..").GREETING_KIND;
|
|
90
|
+
modelId: string;
|
|
91
|
+
input: {
|
|
92
|
+
modelId: string;
|
|
93
|
+
prompt: string;
|
|
94
|
+
locale: "en" | "es" | "ru";
|
|
95
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
96
|
+
settings: {
|
|
97
|
+
lengthId: string;
|
|
98
|
+
formatId: string;
|
|
99
|
+
};
|
|
100
|
+
} | {
|
|
101
|
+
modelId: string;
|
|
102
|
+
prompt: string;
|
|
103
|
+
locale: "en" | "es" | "ru";
|
|
104
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
105
|
+
settings: {
|
|
106
|
+
styleId?: string | undefined;
|
|
107
|
+
customStyle?: string | undefined;
|
|
108
|
+
voice: "f" | "m";
|
|
109
|
+
};
|
|
110
|
+
} | {
|
|
111
|
+
modelId: string;
|
|
112
|
+
prompt: string;
|
|
113
|
+
locale: "en" | "es" | "ru";
|
|
114
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
115
|
+
settings: {
|
|
116
|
+
styleId?: string | undefined;
|
|
117
|
+
customStyle?: string | undefined;
|
|
118
|
+
imageUrls?: string[] | undefined;
|
|
119
|
+
duration: number;
|
|
120
|
+
};
|
|
121
|
+
} | {
|
|
122
|
+
modelId: string;
|
|
123
|
+
prompt: string;
|
|
124
|
+
locale: "en" | "es" | "ru";
|
|
125
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
126
|
+
settings: {
|
|
127
|
+
styleId?: string | undefined;
|
|
128
|
+
customStyle?: string | undefined;
|
|
129
|
+
imageUrls?: string[] | undefined;
|
|
130
|
+
aspectRatio: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
status: import("..").GREETING_STATUS;
|
|
134
|
+
currentAttemptId: string;
|
|
135
|
+
price: number;
|
|
136
|
+
result: {
|
|
137
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
138
|
+
text: string;
|
|
139
|
+
} | {
|
|
140
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
141
|
+
tracks: {
|
|
142
|
+
id: string;
|
|
143
|
+
title: string;
|
|
144
|
+
audioUrl: string;
|
|
145
|
+
imageUrl?: string | undefined;
|
|
146
|
+
duration?: number | undefined;
|
|
147
|
+
lyrics?: string | undefined;
|
|
148
|
+
}[];
|
|
149
|
+
} | {
|
|
150
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
151
|
+
video: {
|
|
152
|
+
url: string;
|
|
153
|
+
previewUrl?: string | undefined;
|
|
154
|
+
};
|
|
155
|
+
} | {
|
|
156
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
157
|
+
image: {
|
|
158
|
+
url: string;
|
|
159
|
+
};
|
|
160
|
+
} | null;
|
|
161
|
+
error: string | null;
|
|
162
|
+
createdAt: string;
|
|
163
|
+
updatedAt: string;
|
|
164
|
+
}, unknown>>>;
|
|
165
|
+
code: z.ZodOptional<z.ZodString>;
|
|
166
|
+
message: z.ZodOptional<z.ZodString>;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
export declare const GreetingConfigResponseSchema: z.ZodObject<{
|
|
169
|
+
isSuccess: z.ZodBoolean;
|
|
170
|
+
data: z.ZodOptional<z.ZodType<{
|
|
171
|
+
models: {
|
|
172
|
+
uuid: string;
|
|
173
|
+
title: string;
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
kind: import("..").GREETING_KIND;
|
|
176
|
+
order: number;
|
|
177
|
+
sourceModelId: string;
|
|
178
|
+
sourceModelType: "IMAGE" | "SONG" | "TEXT" | "VIDEO";
|
|
179
|
+
durations: number[];
|
|
180
|
+
aspectRatios: string[];
|
|
181
|
+
defaultDuration: number | null;
|
|
182
|
+
defaultAspectRatio: string | null;
|
|
183
|
+
supportsReference: boolean;
|
|
184
|
+
maxAttachedImages: number;
|
|
185
|
+
maxPromptLength: number;
|
|
186
|
+
maxProviderPromptLength?: number | undefined;
|
|
187
|
+
}[];
|
|
188
|
+
textLengths: {
|
|
189
|
+
uuid: string;
|
|
190
|
+
title: string;
|
|
191
|
+
order: number;
|
|
192
|
+
}[];
|
|
193
|
+
textFormats: {
|
|
194
|
+
uuid: string;
|
|
195
|
+
title: string;
|
|
196
|
+
order: number;
|
|
197
|
+
}[];
|
|
198
|
+
musicStyles: {
|
|
199
|
+
uuid: string;
|
|
200
|
+
title: string;
|
|
201
|
+
order: number;
|
|
202
|
+
}[];
|
|
203
|
+
videoStyles: {
|
|
204
|
+
uuid: string;
|
|
205
|
+
title: string;
|
|
206
|
+
order: number;
|
|
207
|
+
}[];
|
|
208
|
+
imageStyles: {
|
|
209
|
+
uuid: string;
|
|
210
|
+
title: string;
|
|
211
|
+
order: number;
|
|
212
|
+
}[];
|
|
213
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
214
|
+
models: {
|
|
215
|
+
uuid: string;
|
|
216
|
+
title: string;
|
|
217
|
+
description?: string | undefined;
|
|
218
|
+
kind: import("..").GREETING_KIND;
|
|
219
|
+
order: number;
|
|
220
|
+
sourceModelId: string;
|
|
221
|
+
sourceModelType: "IMAGE" | "SONG" | "TEXT" | "VIDEO";
|
|
222
|
+
durations: number[];
|
|
223
|
+
aspectRatios: string[];
|
|
224
|
+
defaultDuration: number | null;
|
|
225
|
+
defaultAspectRatio: string | null;
|
|
226
|
+
supportsReference: boolean;
|
|
227
|
+
maxAttachedImages: number;
|
|
228
|
+
maxPromptLength: number;
|
|
229
|
+
maxProviderPromptLength?: number | undefined;
|
|
230
|
+
}[];
|
|
231
|
+
textLengths: {
|
|
232
|
+
uuid: string;
|
|
233
|
+
title: string;
|
|
234
|
+
order: number;
|
|
235
|
+
}[];
|
|
236
|
+
textFormats: {
|
|
237
|
+
uuid: string;
|
|
238
|
+
title: string;
|
|
239
|
+
order: number;
|
|
240
|
+
}[];
|
|
241
|
+
musicStyles: {
|
|
242
|
+
uuid: string;
|
|
243
|
+
title: string;
|
|
244
|
+
order: number;
|
|
245
|
+
}[];
|
|
246
|
+
videoStyles: {
|
|
247
|
+
uuid: string;
|
|
248
|
+
title: string;
|
|
249
|
+
order: number;
|
|
250
|
+
}[];
|
|
251
|
+
imageStyles: {
|
|
252
|
+
uuid: string;
|
|
253
|
+
title: string;
|
|
254
|
+
order: number;
|
|
255
|
+
}[];
|
|
256
|
+
}, unknown>>>;
|
|
257
|
+
code: z.ZodOptional<z.ZodString>;
|
|
258
|
+
message: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
export declare const GreetingPriceDataResponseSchema: z.ZodObject<{
|
|
261
|
+
isSuccess: z.ZodBoolean;
|
|
262
|
+
data: z.ZodOptional<z.ZodType<{
|
|
263
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
264
|
+
modelPricing: {
|
|
265
|
+
inputPrice: number;
|
|
266
|
+
outputPrice: number;
|
|
267
|
+
};
|
|
268
|
+
effectivePromptLength: number;
|
|
269
|
+
calculationSnapshot: string;
|
|
270
|
+
} | {
|
|
271
|
+
kind: import("..").GREETING_KIND.SONG | import("..").GREETING_KIND.VIDEO | import("..").GREETING_KIND.IMAGE;
|
|
272
|
+
price: number;
|
|
273
|
+
calculationSnapshot: string;
|
|
274
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
275
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
276
|
+
modelPricing: {
|
|
277
|
+
inputPrice: number;
|
|
278
|
+
outputPrice: number;
|
|
279
|
+
};
|
|
280
|
+
effectivePromptLength: number;
|
|
281
|
+
calculationSnapshot: string;
|
|
282
|
+
} | {
|
|
283
|
+
kind: import("..").GREETING_KIND.SONG | import("..").GREETING_KIND.VIDEO | import("..").GREETING_KIND.IMAGE;
|
|
284
|
+
price: number;
|
|
285
|
+
calculationSnapshot: string;
|
|
286
|
+
}, unknown>>>;
|
|
287
|
+
code: z.ZodOptional<z.ZodString>;
|
|
288
|
+
message: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, z.core.$strip>;
|
|
290
|
+
export declare const GreetingListResponseSchema: z.ZodObject<{
|
|
291
|
+
isSuccess: z.ZodBoolean;
|
|
292
|
+
data: z.ZodOptional<z.ZodType<{
|
|
293
|
+
items: {
|
|
294
|
+
uuid: string;
|
|
295
|
+
isFavorite: boolean;
|
|
296
|
+
title?: string | null | undefined;
|
|
297
|
+
reaction?: import("../..").USER_REACTION | null | undefined;
|
|
298
|
+
kind: import("..").GREETING_KIND;
|
|
299
|
+
modelId: string;
|
|
300
|
+
input: {
|
|
301
|
+
modelId: string;
|
|
302
|
+
prompt: string;
|
|
303
|
+
locale: "en" | "es" | "ru";
|
|
304
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
305
|
+
settings: {
|
|
306
|
+
lengthId: string;
|
|
307
|
+
formatId: string;
|
|
308
|
+
};
|
|
309
|
+
} | {
|
|
310
|
+
modelId: string;
|
|
311
|
+
prompt: string;
|
|
312
|
+
locale: "en" | "es" | "ru";
|
|
313
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
314
|
+
settings: {
|
|
315
|
+
styleId?: string | undefined;
|
|
316
|
+
customStyle?: string | undefined;
|
|
317
|
+
voice: "f" | "m";
|
|
318
|
+
};
|
|
319
|
+
} | {
|
|
320
|
+
modelId: string;
|
|
321
|
+
prompt: string;
|
|
322
|
+
locale: "en" | "es" | "ru";
|
|
323
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
324
|
+
settings: {
|
|
325
|
+
styleId?: string | undefined;
|
|
326
|
+
customStyle?: string | undefined;
|
|
327
|
+
imageUrls?: string[] | undefined;
|
|
328
|
+
duration: number;
|
|
329
|
+
};
|
|
330
|
+
} | {
|
|
331
|
+
modelId: string;
|
|
332
|
+
prompt: string;
|
|
333
|
+
locale: "en" | "es" | "ru";
|
|
334
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
335
|
+
settings: {
|
|
336
|
+
styleId?: string | undefined;
|
|
337
|
+
customStyle?: string | undefined;
|
|
338
|
+
imageUrls?: string[] | undefined;
|
|
339
|
+
aspectRatio: string;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
status: import("..").GREETING_STATUS;
|
|
343
|
+
currentAttemptId: string;
|
|
344
|
+
price: number;
|
|
345
|
+
result: {
|
|
346
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
347
|
+
text: string;
|
|
348
|
+
} | {
|
|
349
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
350
|
+
tracks: {
|
|
351
|
+
id: string;
|
|
352
|
+
title: string;
|
|
353
|
+
audioUrl: string;
|
|
354
|
+
imageUrl?: string | undefined;
|
|
355
|
+
duration?: number | undefined;
|
|
356
|
+
lyrics?: string | undefined;
|
|
357
|
+
}[];
|
|
358
|
+
} | {
|
|
359
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
360
|
+
video: {
|
|
361
|
+
url: string;
|
|
362
|
+
previewUrl?: string | undefined;
|
|
363
|
+
};
|
|
364
|
+
} | {
|
|
365
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
366
|
+
image: {
|
|
367
|
+
url: string;
|
|
368
|
+
};
|
|
369
|
+
} | null;
|
|
370
|
+
error: string | null;
|
|
371
|
+
createdAt: string;
|
|
372
|
+
updatedAt: string;
|
|
373
|
+
}[];
|
|
374
|
+
nextCursor: string | null;
|
|
375
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
376
|
+
items: {
|
|
377
|
+
uuid: string;
|
|
378
|
+
isFavorite: boolean;
|
|
379
|
+
title?: string | null | undefined;
|
|
380
|
+
reaction?: import("../..").USER_REACTION | null | undefined;
|
|
381
|
+
kind: import("..").GREETING_KIND;
|
|
382
|
+
modelId: string;
|
|
383
|
+
input: {
|
|
384
|
+
modelId: string;
|
|
385
|
+
prompt: string;
|
|
386
|
+
locale: "en" | "es" | "ru";
|
|
387
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
388
|
+
settings: {
|
|
389
|
+
lengthId: string;
|
|
390
|
+
formatId: string;
|
|
391
|
+
};
|
|
392
|
+
} | {
|
|
393
|
+
modelId: string;
|
|
394
|
+
prompt: string;
|
|
395
|
+
locale: "en" | "es" | "ru";
|
|
396
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
397
|
+
settings: {
|
|
398
|
+
styleId?: string | undefined;
|
|
399
|
+
customStyle?: string | undefined;
|
|
400
|
+
voice: "f" | "m";
|
|
401
|
+
};
|
|
402
|
+
} | {
|
|
403
|
+
modelId: string;
|
|
404
|
+
prompt: string;
|
|
405
|
+
locale: "en" | "es" | "ru";
|
|
406
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
407
|
+
settings: {
|
|
408
|
+
styleId?: string | undefined;
|
|
409
|
+
customStyle?: string | undefined;
|
|
410
|
+
imageUrls?: string[] | undefined;
|
|
411
|
+
duration: number;
|
|
412
|
+
};
|
|
413
|
+
} | {
|
|
414
|
+
modelId: string;
|
|
415
|
+
prompt: string;
|
|
416
|
+
locale: "en" | "es" | "ru";
|
|
417
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
418
|
+
settings: {
|
|
419
|
+
styleId?: string | undefined;
|
|
420
|
+
customStyle?: string | undefined;
|
|
421
|
+
imageUrls?: string[] | undefined;
|
|
422
|
+
aspectRatio: string;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
status: import("..").GREETING_STATUS;
|
|
426
|
+
currentAttemptId: string;
|
|
427
|
+
price: number;
|
|
428
|
+
result: {
|
|
429
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
430
|
+
text: string;
|
|
431
|
+
} | {
|
|
432
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
433
|
+
tracks: {
|
|
434
|
+
id: string;
|
|
435
|
+
title: string;
|
|
436
|
+
audioUrl: string;
|
|
437
|
+
imageUrl?: string | undefined;
|
|
438
|
+
duration?: number | undefined;
|
|
439
|
+
lyrics?: string | undefined;
|
|
440
|
+
}[];
|
|
441
|
+
} | {
|
|
442
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
443
|
+
video: {
|
|
444
|
+
url: string;
|
|
445
|
+
previewUrl?: string | undefined;
|
|
446
|
+
};
|
|
447
|
+
} | {
|
|
448
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
449
|
+
image: {
|
|
450
|
+
url: string;
|
|
451
|
+
};
|
|
452
|
+
} | null;
|
|
453
|
+
error: string | null;
|
|
454
|
+
createdAt: string;
|
|
455
|
+
updatedAt: string;
|
|
456
|
+
}[];
|
|
457
|
+
nextCursor: string | null;
|
|
458
|
+
}, unknown>>>;
|
|
459
|
+
code: z.ZodOptional<z.ZodString>;
|
|
460
|
+
message: z.ZodOptional<z.ZodString>;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
export declare const GreetingOperationResponseSchema: z.ZodObject<{
|
|
463
|
+
isSuccess: z.ZodBoolean;
|
|
464
|
+
data: z.ZodOptional<z.ZodType<{
|
|
465
|
+
uuid: string;
|
|
466
|
+
isFavorite: boolean;
|
|
467
|
+
title?: string | null | undefined;
|
|
468
|
+
reaction?: import("../..").USER_REACTION | null | undefined;
|
|
469
|
+
kind: import("..").GREETING_KIND;
|
|
470
|
+
modelId: string;
|
|
471
|
+
input: {
|
|
472
|
+
modelId: string;
|
|
473
|
+
prompt: string;
|
|
474
|
+
locale: "en" | "es" | "ru";
|
|
475
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
476
|
+
settings: {
|
|
477
|
+
lengthId: string;
|
|
478
|
+
formatId: string;
|
|
479
|
+
};
|
|
480
|
+
} | {
|
|
481
|
+
modelId: string;
|
|
482
|
+
prompt: string;
|
|
483
|
+
locale: "en" | "es" | "ru";
|
|
484
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
485
|
+
settings: {
|
|
486
|
+
styleId?: string | undefined;
|
|
487
|
+
customStyle?: string | undefined;
|
|
488
|
+
voice: "f" | "m";
|
|
489
|
+
};
|
|
490
|
+
} | {
|
|
491
|
+
modelId: string;
|
|
492
|
+
prompt: string;
|
|
493
|
+
locale: "en" | "es" | "ru";
|
|
494
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
495
|
+
settings: {
|
|
496
|
+
styleId?: string | undefined;
|
|
497
|
+
customStyle?: string | undefined;
|
|
498
|
+
imageUrls?: string[] | undefined;
|
|
499
|
+
duration: number;
|
|
500
|
+
};
|
|
501
|
+
} | {
|
|
502
|
+
modelId: string;
|
|
503
|
+
prompt: string;
|
|
504
|
+
locale: "en" | "es" | "ru";
|
|
505
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
506
|
+
settings: {
|
|
507
|
+
styleId?: string | undefined;
|
|
508
|
+
customStyle?: string | undefined;
|
|
509
|
+
imageUrls?: string[] | undefined;
|
|
510
|
+
aspectRatio: string;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
status: import("..").GREETING_STATUS;
|
|
514
|
+
currentAttemptId: string;
|
|
515
|
+
price: number;
|
|
516
|
+
result: {
|
|
517
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
518
|
+
text: string;
|
|
519
|
+
} | {
|
|
520
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
521
|
+
tracks: {
|
|
522
|
+
id: string;
|
|
523
|
+
title: string;
|
|
524
|
+
audioUrl: string;
|
|
525
|
+
imageUrl?: string | undefined;
|
|
526
|
+
duration?: number | undefined;
|
|
527
|
+
lyrics?: string | undefined;
|
|
528
|
+
}[];
|
|
529
|
+
} | {
|
|
530
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
531
|
+
video: {
|
|
532
|
+
url: string;
|
|
533
|
+
previewUrl?: string | undefined;
|
|
534
|
+
};
|
|
535
|
+
} | {
|
|
536
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
537
|
+
image: {
|
|
538
|
+
url: string;
|
|
539
|
+
};
|
|
540
|
+
} | null;
|
|
541
|
+
error: string | null;
|
|
542
|
+
createdAt: string;
|
|
543
|
+
updatedAt: string;
|
|
544
|
+
} | null, unknown, z.core.$ZodTypeInternals<{
|
|
545
|
+
uuid: string;
|
|
546
|
+
isFavorite: boolean;
|
|
547
|
+
title?: string | null | undefined;
|
|
548
|
+
reaction?: import("../..").USER_REACTION | null | undefined;
|
|
549
|
+
kind: import("..").GREETING_KIND;
|
|
550
|
+
modelId: string;
|
|
551
|
+
input: {
|
|
552
|
+
modelId: string;
|
|
553
|
+
prompt: string;
|
|
554
|
+
locale: "en" | "es" | "ru";
|
|
555
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
556
|
+
settings: {
|
|
557
|
+
lengthId: string;
|
|
558
|
+
formatId: string;
|
|
559
|
+
};
|
|
560
|
+
} | {
|
|
561
|
+
modelId: string;
|
|
562
|
+
prompt: string;
|
|
563
|
+
locale: "en" | "es" | "ru";
|
|
564
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
565
|
+
settings: {
|
|
566
|
+
styleId?: string | undefined;
|
|
567
|
+
customStyle?: string | undefined;
|
|
568
|
+
voice: "f" | "m";
|
|
569
|
+
};
|
|
570
|
+
} | {
|
|
571
|
+
modelId: string;
|
|
572
|
+
prompt: string;
|
|
573
|
+
locale: "en" | "es" | "ru";
|
|
574
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
575
|
+
settings: {
|
|
576
|
+
styleId?: string | undefined;
|
|
577
|
+
customStyle?: string | undefined;
|
|
578
|
+
imageUrls?: string[] | undefined;
|
|
579
|
+
duration: number;
|
|
580
|
+
};
|
|
581
|
+
} | {
|
|
582
|
+
modelId: string;
|
|
583
|
+
prompt: string;
|
|
584
|
+
locale: "en" | "es" | "ru";
|
|
585
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
586
|
+
settings: {
|
|
587
|
+
styleId?: string | undefined;
|
|
588
|
+
customStyle?: string | undefined;
|
|
589
|
+
imageUrls?: string[] | undefined;
|
|
590
|
+
aspectRatio: string;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
status: import("..").GREETING_STATUS;
|
|
594
|
+
currentAttemptId: string;
|
|
595
|
+
price: number;
|
|
596
|
+
result: {
|
|
597
|
+
kind: import("..").GREETING_KIND.TEXT;
|
|
598
|
+
text: string;
|
|
599
|
+
} | {
|
|
600
|
+
kind: import("..").GREETING_KIND.SONG;
|
|
601
|
+
tracks: {
|
|
602
|
+
id: string;
|
|
603
|
+
title: string;
|
|
604
|
+
audioUrl: string;
|
|
605
|
+
imageUrl?: string | undefined;
|
|
606
|
+
duration?: number | undefined;
|
|
607
|
+
lyrics?: string | undefined;
|
|
608
|
+
}[];
|
|
609
|
+
} | {
|
|
610
|
+
kind: import("..").GREETING_KIND.VIDEO;
|
|
611
|
+
video: {
|
|
612
|
+
url: string;
|
|
613
|
+
previewUrl?: string | undefined;
|
|
614
|
+
};
|
|
615
|
+
} | {
|
|
616
|
+
kind: import("..").GREETING_KIND.IMAGE;
|
|
617
|
+
image: {
|
|
618
|
+
url: string;
|
|
619
|
+
};
|
|
620
|
+
} | null;
|
|
621
|
+
error: string | null;
|
|
622
|
+
createdAt: string;
|
|
623
|
+
updatedAt: string;
|
|
624
|
+
} | null, unknown>>>;
|
|
625
|
+
code: z.ZodOptional<z.ZodString>;
|
|
626
|
+
message: z.ZodOptional<z.ZodString>;
|
|
627
|
+
}, z.core.$strip>;
|
|
628
|
+
export declare const GreetingDeleteResponseSchema: z.ZodObject<{
|
|
629
|
+
isSuccess: z.ZodBoolean;
|
|
630
|
+
data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
|
|
631
|
+
code: z.ZodOptional<z.ZodString>;
|
|
632
|
+
message: z.ZodOptional<z.ZodString>;
|
|
633
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingDeleteResponseSchema = exports.GreetingOperationResponseSchema = exports.GreetingListResponseSchema = exports.GreetingPriceDataResponseSchema = exports.GreetingConfigResponseSchema = exports.GreetingJobResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const models_1 = require("../models");
|
|
7
|
+
exports.GreetingJobResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.GreetingJobSchema);
|
|
8
|
+
exports.GreetingConfigResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.GreetingConfigSchema);
|
|
9
|
+
exports.GreetingPriceDataResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.GreetingPriceDataSchema);
|
|
10
|
+
exports.GreetingListResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.object({
|
|
11
|
+
items: zod_1.z.array(models_1.GreetingJobSchema),
|
|
12
|
+
nextCursor: zod_1.z.string().nullable(),
|
|
13
|
+
}));
|
|
14
|
+
exports.GreetingOperationResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.GreetingJobSchema.nullable());
|
|
15
|
+
exports.GreetingDeleteResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.boolean());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './greeting.responses';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./greeting.responses"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const GREETINGS_AMQP_ROUTES: {
|
|
2
|
+
readonly CONFIG: 'tools.greetings.config.rpc';
|
|
3
|
+
readonly GET_PRICE: 'tools.greetings.get-price-calculation-data.rpc';
|
|
4
|
+
readonly EXECUTE: 'tools.greetings.execute.rpc';
|
|
5
|
+
readonly GET_JOB: 'tools.greetings.jobs.get.rpc';
|
|
6
|
+
readonly LIST_JOBS: 'tools.greetings.jobs.list.rpc';
|
|
7
|
+
readonly RETRY: 'tools.greetings.jobs.retry.rpc';
|
|
8
|
+
readonly SOFT_DELETE: 'tools.greetings.jobs.soft-delete.rpc';
|
|
9
|
+
readonly SET_FAVORITE: 'tools.greetings.jobs.set-favorite.rpc';
|
|
10
|
+
readonly SET_TITLE: 'tools.greetings.jobs.set-title.rpc';
|
|
11
|
+
readonly SET_REACTION: 'tools.greetings.jobs.set-reaction.rpc';
|
|
12
|
+
readonly GET_OPERATION: 'tools.greetings.operations.get.rpc';
|
|
13
|
+
readonly SETTLE_ATTEMPT: 'tools.greetings.attempts.settle.rpc';
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GREETINGS_AMQP_ROUTES = void 0;
|
|
4
|
+
exports.GREETINGS_AMQP_ROUTES = {
|
|
5
|
+
CONFIG: 'tools.greetings.config.rpc',
|
|
6
|
+
GET_PRICE: 'tools.greetings.get-price-calculation-data.rpc',
|
|
7
|
+
EXECUTE: 'tools.greetings.execute.rpc',
|
|
8
|
+
GET_JOB: 'tools.greetings.jobs.get.rpc',
|
|
9
|
+
LIST_JOBS: 'tools.greetings.jobs.list.rpc',
|
|
10
|
+
RETRY: 'tools.greetings.jobs.retry.rpc',
|
|
11
|
+
SOFT_DELETE: 'tools.greetings.jobs.soft-delete.rpc',
|
|
12
|
+
SET_FAVORITE: 'tools.greetings.jobs.set-favorite.rpc',
|
|
13
|
+
SET_TITLE: 'tools.greetings.jobs.set-title.rpc',
|
|
14
|
+
SET_REACTION: 'tools.greetings.jobs.set-reaction.rpc',
|
|
15
|
+
GET_OPERATION: 'tools.greetings.operations.get.rpc',
|
|
16
|
+
SETTLE_ATTEMPT: 'tools.greetings.attempts.settle.rpc',
|
|
17
|
+
};
|