@purpleschool/gptbot 0.15.71 → 0.15.73
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/commands/ai-studio/canvas/execute-graph-by-node.command.d.ts +6 -4
- package/build/commands/ai-studio/canvas/find-canvas-by-uuid-with-relations.query.d.ts +6 -4
- package/build/commands/ai-studio/canvas/run-canvas.command.d.ts +6 -4
- package/build/commands/ai-studio/canvas/save-canvas.command.d.ts +6 -4
- package/build/commands/ai-studio/canvas-node/create-canvas-node.command.d.ts +6 -4
- package/build/commands/ai-studio/canvas-node/find-canvas-node-by-uuid.query.d.ts +6 -4
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +30 -0
- package/build/commands/ai-studio/canvas-node/find-canvas-nodes-by-canvas.query.d.ts +6 -4
- package/build/commands/ai-studio/canvas-node/update-canvas-node.command.d.ts +6 -4
- package/build/commands/ai-studio/canvas-template/create-canvas-from-generated-template.command.d.ts +6 -4
- package/build/commands/ai-studio/canvas-template/create-canvas-from-template.command.d.ts +6 -4
- package/build/commands/ai-studio/canvas-template/generate-canvas-template-by-prompt.command.d.ts +6 -4
- package/build/commands/avatar-studio/voice/clone-avatar-studio-voice.command.d.ts +2 -2
- package/build/commands/avatar-studio/voice/design-avatar-studio-voice.command.d.ts +2 -2
- package/build/commands/avatar-studio/voice/find-avatar-studio-voices.query.d.ts +2 -2
- package/build/commands/daily-streak/collect-daily-reward.command.d.ts +5 -0
- package/build/commands/daily-streak/get-daily-streak.command.d.ts +5 -0
- package/build/commands/model-page/base/find-model-page-admin.command.d.ts +1 -0
- package/build/commands/model-page/public/find-model-page-answer-detail.command.d.ts +1 -0
- package/build/commands/model-page/public/find-model-page-detail.command.d.ts +1 -0
- package/build/commands/model-page/public/find-model-page-hub.command.d.ts +1 -0
- package/build/commands/tools/tts/create-voice-clone.command.d.ts +2 -2
- package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +2 -2
- package/build/commands/tools/tts/find-voices.query.d.ts +2 -2
- package/build/commands/tools/tts/retry-tts-job.command.d.ts +21 -0
- package/build/commands/tools/tts/retry-tts-job.command.js +17 -0
- package/build/commands/tools/tts/select-voice-design.command.d.ts +2 -2
- package/build/commands/tools/tts/tts.command.d.ts +8 -0
- package/build/commands/tools/tts/tts.command.js +5 -5
- package/build/commands/tools/tts/update-voice.command.d.ts +2 -2
- package/build/constants/daily-streak/enums/daily-streak-chest-type.enum.d.ts +5 -0
- package/build/constants/daily-streak/enums/daily-streak-chest-type.enum.js +9 -0
- package/build/constants/daily-streak/enums/index.d.ts +1 -0
- package/build/constants/daily-streak/enums/index.js +1 -0
- package/build/models/canvas-node-definition.schema.d.ts +254 -0
- package/build/models/canvas-node-definition.schema.js +5 -2
- package/build/models/canvas-node.schema.d.ts +15 -10
- package/build/models/canvas-node.schema.js +5 -2
- package/build/models/daily-streak.d.ts +12 -1
- package/build/models/daily-streak.js +5 -0
- package/build/models/model-page/model-page-public.schema.d.ts +3 -0
- package/build/models/model-page/model-page-technical-model.schema.d.ts +3 -0
- package/build/models/model-page/model-page-technical-model.schema.js +1 -0
- package/build/models/tools/tts/voice.schema.d.ts +2 -2
- package/build/models/tools/tts/voice.schema.js +2 -2
- package/package.json +1 -1
|
@@ -250,8 +250,9 @@ export declare namespace ExecuteGraphByNodeCommand {
|
|
|
250
250
|
modelId: z.ZodString;
|
|
251
251
|
modelName: z.ZodString;
|
|
252
252
|
voice: z.ZodString;
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
255
256
|
}, z.core.$strict>, z.ZodObject<{
|
|
256
257
|
mode: z.ZodLiteral<"stt">;
|
|
257
258
|
prompt: z.ZodString;
|
|
@@ -299,8 +300,9 @@ export declare namespace ExecuteGraphByNodeCommand {
|
|
|
299
300
|
modelId: z.ZodString;
|
|
300
301
|
modelName: z.ZodString;
|
|
301
302
|
voice: z.ZodString;
|
|
302
|
-
|
|
303
|
-
|
|
303
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
304
306
|
}, z.core.$strict>, z.ZodObject<{
|
|
305
307
|
mode: z.ZodLiteral<"stt">;
|
|
306
308
|
prompt: z.ZodString;
|
|
@@ -253,8 +253,9 @@ export declare namespace FindCanvasByUuidWithRelationsQuery {
|
|
|
253
253
|
modelId: z.ZodString;
|
|
254
254
|
modelName: z.ZodString;
|
|
255
255
|
voice: z.ZodString;
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
258
259
|
}, z.core.$strict>, z.ZodObject<{
|
|
259
260
|
mode: z.ZodLiteral<"stt">;
|
|
260
261
|
prompt: z.ZodString;
|
|
@@ -302,8 +303,9 @@ export declare namespace FindCanvasByUuidWithRelationsQuery {
|
|
|
302
303
|
modelId: z.ZodString;
|
|
303
304
|
modelName: z.ZodString;
|
|
304
305
|
voice: z.ZodString;
|
|
305
|
-
|
|
306
|
-
|
|
306
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
307
309
|
}, z.core.$strict>, z.ZodObject<{
|
|
308
310
|
mode: z.ZodLiteral<"stt">;
|
|
309
311
|
prompt: z.ZodString;
|
|
@@ -253,8 +253,9 @@ export declare namespace RunCanvasCommand {
|
|
|
253
253
|
modelId: z.ZodString;
|
|
254
254
|
modelName: z.ZodString;
|
|
255
255
|
voice: z.ZodString;
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
258
259
|
}, z.core.$strict>, z.ZodObject<{
|
|
259
260
|
mode: z.ZodLiteral<"stt">;
|
|
260
261
|
prompt: z.ZodString;
|
|
@@ -302,8 +303,9 @@ export declare namespace RunCanvasCommand {
|
|
|
302
303
|
modelId: z.ZodString;
|
|
303
304
|
modelName: z.ZodString;
|
|
304
305
|
voice: z.ZodString;
|
|
305
|
-
|
|
306
|
-
|
|
306
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
307
309
|
}, z.core.$strict>, z.ZodObject<{
|
|
308
310
|
mode: z.ZodLiteral<"stt">;
|
|
309
311
|
prompt: z.ZodString;
|
|
@@ -300,8 +300,9 @@ export declare namespace SaveCanvasCommand {
|
|
|
300
300
|
modelId: z.ZodString;
|
|
301
301
|
modelName: z.ZodString;
|
|
302
302
|
voice: z.ZodString;
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
305
306
|
}, z.core.$strict>, z.ZodObject<{
|
|
306
307
|
mode: z.ZodLiteral<"stt">;
|
|
307
308
|
prompt: z.ZodString;
|
|
@@ -349,8 +350,9 @@ export declare namespace SaveCanvasCommand {
|
|
|
349
350
|
modelId: z.ZodString;
|
|
350
351
|
modelName: z.ZodString;
|
|
351
352
|
voice: z.ZodString;
|
|
352
|
-
|
|
353
|
-
|
|
353
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
355
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
354
356
|
}, z.core.$strict>, z.ZodObject<{
|
|
355
357
|
mode: z.ZodLiteral<"stt">;
|
|
356
358
|
prompt: z.ZodString;
|
|
@@ -263,8 +263,9 @@ export declare namespace CreateCanvasNodeCommand {
|
|
|
263
263
|
modelId: z.ZodString;
|
|
264
264
|
modelName: z.ZodString;
|
|
265
265
|
voice: z.ZodString;
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
268
269
|
}, z.core.$strict>, z.ZodObject<{
|
|
269
270
|
mode: z.ZodLiteral<"stt">;
|
|
270
271
|
prompt: z.ZodString;
|
|
@@ -312,8 +313,9 @@ export declare namespace CreateCanvasNodeCommand {
|
|
|
312
313
|
modelId: z.ZodString;
|
|
313
314
|
modelName: z.ZodString;
|
|
314
315
|
voice: z.ZodString;
|
|
315
|
-
|
|
316
|
-
|
|
316
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
317
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
317
319
|
}, z.core.$strict>, z.ZodObject<{
|
|
318
320
|
mode: z.ZodLiteral<"stt">;
|
|
319
321
|
prompt: z.ZodString;
|
|
@@ -248,8 +248,9 @@ export declare namespace FindCanvasNodeByUuidQuery {
|
|
|
248
248
|
modelId: z.ZodString;
|
|
249
249
|
modelName: z.ZodString;
|
|
250
250
|
voice: z.ZodString;
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
253
254
|
}, z.core.$strict>, z.ZodObject<{
|
|
254
255
|
mode: z.ZodLiteral<"stt">;
|
|
255
256
|
prompt: z.ZodString;
|
|
@@ -297,8 +298,9 @@ export declare namespace FindCanvasNodeByUuidQuery {
|
|
|
297
298
|
modelId: z.ZodString;
|
|
298
299
|
modelName: z.ZodString;
|
|
299
300
|
voice: z.ZodString;
|
|
300
|
-
|
|
301
|
-
|
|
301
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
302
304
|
}, z.core.$strict>, z.ZodObject<{
|
|
303
305
|
mode: z.ZodLiteral<"stt">;
|
|
304
306
|
prompt: z.ZodString;
|
package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts
CHANGED
|
@@ -415,6 +415,36 @@ export declare namespace FindCanvasNodeDefinitionsWithConfigsQuery {
|
|
|
415
415
|
label: z.ZodString;
|
|
416
416
|
}, z.core.$strip>>;
|
|
417
417
|
speakerMarkerLabel: z.ZodString;
|
|
418
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
419
|
+
uuid: z.ZodString;
|
|
420
|
+
scope: z.ZodEnum<typeof import("../../..").JOB_SCOPE>;
|
|
421
|
+
source: z.ZodObject<{
|
|
422
|
+
id: z.ZodEnum<typeof import("../../..").VOICE_SOURCE>;
|
|
423
|
+
label: z.ZodString;
|
|
424
|
+
}, z.core.$strip>;
|
|
425
|
+
title: z.ZodString;
|
|
426
|
+
description: z.ZodString;
|
|
427
|
+
gender: z.ZodNullable<z.ZodObject<{
|
|
428
|
+
id: z.ZodEnum<typeof import("../../..").VOICE_GENDER>;
|
|
429
|
+
label: z.ZodString;
|
|
430
|
+
}, z.core.$strip>>;
|
|
431
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
432
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
433
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
434
|
+
id: z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>;
|
|
435
|
+
label: z.ZodString;
|
|
436
|
+
}, z.core.$strip>>;
|
|
437
|
+
previewUrl: z.ZodString;
|
|
438
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
439
|
+
status: z.ZodEnum<typeof import("../../..").VOICE_STATUS>;
|
|
440
|
+
error: z.ZodNullable<z.ZodString>;
|
|
441
|
+
order: z.ZodNumber;
|
|
442
|
+
isDeleted: z.ZodBoolean;
|
|
443
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
444
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
445
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
446
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
447
|
+
}, z.core.$strip>>;
|
|
418
448
|
}, z.core.$strip>;
|
|
419
449
|
}, z.core.$strip>, z.ZodObject<{
|
|
420
450
|
nodeType: z.ZodLiteral<import("../../..").CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -247,8 +247,9 @@ export declare namespace FindCanvasNodesByCanvasQuery {
|
|
|
247
247
|
modelId: z.ZodString;
|
|
248
248
|
modelName: z.ZodString;
|
|
249
249
|
voice: z.ZodString;
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
252
253
|
}, z.core.$strict>, z.ZodObject<{
|
|
253
254
|
mode: z.ZodLiteral<"stt">;
|
|
254
255
|
prompt: z.ZodString;
|
|
@@ -296,8 +297,9 @@ export declare namespace FindCanvasNodesByCanvasQuery {
|
|
|
296
297
|
modelId: z.ZodString;
|
|
297
298
|
modelName: z.ZodString;
|
|
298
299
|
voice: z.ZodString;
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
301
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
301
303
|
}, z.core.$strict>, z.ZodObject<{
|
|
302
304
|
mode: z.ZodLiteral<"stt">;
|
|
303
305
|
prompt: z.ZodString;
|
|
@@ -265,8 +265,9 @@ export declare namespace UpdateCanvasNodeCommand {
|
|
|
265
265
|
modelId: z.ZodString;
|
|
266
266
|
modelName: z.ZodString;
|
|
267
267
|
voice: z.ZodString;
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
269
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
270
271
|
}, z.core.$strict>, z.ZodObject<{
|
|
271
272
|
mode: z.ZodLiteral<"stt">;
|
|
272
273
|
prompt: z.ZodString;
|
|
@@ -314,8 +315,9 @@ export declare namespace UpdateCanvasNodeCommand {
|
|
|
314
315
|
modelId: z.ZodString;
|
|
315
316
|
modelName: z.ZodString;
|
|
316
317
|
voice: z.ZodString;
|
|
317
|
-
|
|
318
|
-
|
|
318
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
319
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
319
321
|
}, z.core.$strict>, z.ZodObject<{
|
|
320
322
|
mode: z.ZodLiteral<"stt">;
|
|
321
323
|
prompt: z.ZodString;
|
package/build/commands/ai-studio/canvas-template/create-canvas-from-generated-template.command.d.ts
CHANGED
|
@@ -293,8 +293,9 @@ export declare namespace CreateCanvasFromGeneratedTemplateCommand {
|
|
|
293
293
|
modelId: z.ZodString;
|
|
294
294
|
modelName: z.ZodString;
|
|
295
295
|
voice: z.ZodString;
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
298
299
|
}, z.core.$strict>, z.ZodObject<{
|
|
299
300
|
mode: z.ZodLiteral<"stt">;
|
|
300
301
|
prompt: z.ZodString;
|
|
@@ -342,8 +343,9 @@ export declare namespace CreateCanvasFromGeneratedTemplateCommand {
|
|
|
342
343
|
modelId: z.ZodString;
|
|
343
344
|
modelName: z.ZodString;
|
|
344
345
|
voice: z.ZodString;
|
|
345
|
-
|
|
346
|
-
|
|
346
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
347
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
348
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
347
349
|
}, z.core.$strict>, z.ZodObject<{
|
|
348
350
|
mode: z.ZodLiteral<"stt">;
|
|
349
351
|
prompt: z.ZodString;
|
|
@@ -253,8 +253,9 @@ export declare namespace CreateCanvasFromTemplateCommand {
|
|
|
253
253
|
modelId: z.ZodString;
|
|
254
254
|
modelName: z.ZodString;
|
|
255
255
|
voice: z.ZodString;
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
258
259
|
}, z.core.$strict>, z.ZodObject<{
|
|
259
260
|
mode: z.ZodLiteral<"stt">;
|
|
260
261
|
prompt: z.ZodString;
|
|
@@ -302,8 +303,9 @@ export declare namespace CreateCanvasFromTemplateCommand {
|
|
|
302
303
|
modelId: z.ZodString;
|
|
303
304
|
modelName: z.ZodString;
|
|
304
305
|
voice: z.ZodString;
|
|
305
|
-
|
|
306
|
-
|
|
306
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
307
309
|
}, z.core.$strict>, z.ZodObject<{
|
|
308
310
|
mode: z.ZodLiteral<"stt">;
|
|
309
311
|
prompt: z.ZodString;
|
package/build/commands/ai-studio/canvas-template/generate-canvas-template-by-prompt.command.d.ts
CHANGED
|
@@ -254,8 +254,9 @@ export declare namespace GenerateCanvasTemplateByPromptCommand {
|
|
|
254
254
|
modelId: z.ZodString;
|
|
255
255
|
modelName: z.ZodString;
|
|
256
256
|
voice: z.ZodString;
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
259
260
|
}, z.core.$strict>, z.ZodObject<{
|
|
260
261
|
mode: z.ZodLiteral<"stt">;
|
|
261
262
|
prompt: z.ZodString;
|
|
@@ -303,8 +304,9 @@ export declare namespace GenerateCanvasTemplateByPromptCommand {
|
|
|
303
304
|
modelId: z.ZodString;
|
|
304
305
|
modelName: z.ZodString;
|
|
305
306
|
voice: z.ZodString;
|
|
306
|
-
|
|
307
|
-
|
|
307
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
309
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
308
310
|
}, z.core.$strict>, z.ZodObject<{
|
|
309
311
|
mode: z.ZodLiteral<"stt">;
|
|
310
312
|
prompt: z.ZodString;
|
|
@@ -35,8 +35,8 @@ export declare namespace CloneAvatarStudioVoiceCommand {
|
|
|
35
35
|
isDeleted: z.ZodBoolean;
|
|
36
36
|
userId: z.ZodNullable<z.ZodString>;
|
|
37
37
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
38
|
-
createdAt: z.
|
|
39
|
-
updatedAt: z.
|
|
38
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
39
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -35,8 +35,8 @@ export declare namespace DesignAvatarStudioVoiceCommand {
|
|
|
35
35
|
isDeleted: z.ZodBoolean;
|
|
36
36
|
userId: z.ZodNullable<z.ZodString>;
|
|
37
37
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
38
|
-
createdAt: z.
|
|
39
|
-
updatedAt: z.
|
|
38
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
39
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -28,8 +28,8 @@ export declare namespace FindAvatarStudioVoicesQuery {
|
|
|
28
28
|
isDeleted: z.ZodBoolean;
|
|
29
29
|
userId: z.ZodNullable<z.ZodString>;
|
|
30
30
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
31
|
-
createdAt: z.
|
|
32
|
-
updatedAt: z.
|
|
31
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
32
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
33
33
|
}, z.core.$strip>>;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -6,13 +6,18 @@ export declare namespace CollectDailyRewardCommand {
|
|
|
6
6
|
uuid: z.ZodString;
|
|
7
7
|
userId: z.ZodString;
|
|
8
8
|
lastDailyCollectionAt: z.ZodNullable<z.ZodDate>;
|
|
9
|
+
lastDailyReward: z.ZodNullable<z.ZodNumber>;
|
|
9
10
|
currentDayStreak: z.ZodNumber;
|
|
10
11
|
createdAt: z.ZodDate;
|
|
11
12
|
updatedAt: z.ZodDate;
|
|
13
|
+
bronzePromocodeClaimed: z.ZodBoolean;
|
|
14
|
+
silverPromocodeClaimed: z.ZodBoolean;
|
|
15
|
+
goldPromocodeClaimed: z.ZodBoolean;
|
|
12
16
|
days: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
13
17
|
dayNumber: z.ZodNumber;
|
|
14
18
|
status: z.ZodEnum<typeof import("../..").DAILY_STREAK_STATUS>;
|
|
15
19
|
award: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
chestType: z.ZodEnum<typeof import("../..").DAILY_STREAK_CHEST_TYPE>;
|
|
16
21
|
isCurrentDay: z.ZodBoolean;
|
|
17
22
|
awardType: z.ZodEnum<typeof import("../..").DAY_IN_DAILY_STREAK_AWARD_TYPE>;
|
|
18
23
|
}, z.core.$strip>>>;
|
|
@@ -6,13 +6,18 @@ export declare namespace GetDailyStreakCommand {
|
|
|
6
6
|
uuid: z.ZodString;
|
|
7
7
|
userId: z.ZodString;
|
|
8
8
|
lastDailyCollectionAt: z.ZodNullable<z.ZodDate>;
|
|
9
|
+
lastDailyReward: z.ZodNullable<z.ZodNumber>;
|
|
9
10
|
currentDayStreak: z.ZodNumber;
|
|
10
11
|
createdAt: z.ZodDate;
|
|
11
12
|
updatedAt: z.ZodDate;
|
|
13
|
+
bronzePromocodeClaimed: z.ZodBoolean;
|
|
14
|
+
silverPromocodeClaimed: z.ZodBoolean;
|
|
15
|
+
goldPromocodeClaimed: z.ZodBoolean;
|
|
12
16
|
days: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
13
17
|
dayNumber: z.ZodNumber;
|
|
14
18
|
status: z.ZodEnum<typeof import("../..").DAILY_STREAK_STATUS>;
|
|
15
19
|
award: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
chestType: z.ZodEnum<typeof import("../..").DAILY_STREAK_CHEST_TYPE>;
|
|
16
21
|
isCurrentDay: z.ZodBoolean;
|
|
17
22
|
awardType: z.ZodEnum<typeof import("../..").DAY_IN_DAILY_STREAK_AWARD_TYPE>;
|
|
18
23
|
}, z.core.$strip>>>;
|
|
@@ -347,6 +347,7 @@ export declare namespace FindModelPageAdminCommand {
|
|
|
347
347
|
}, z.core.$strip>>;
|
|
348
348
|
order: z.ZodNumber;
|
|
349
349
|
}, z.core.$strip>>;
|
|
350
|
+
voicesCount: z.ZodNumber;
|
|
350
351
|
}, z.core.$strip>], "type">;
|
|
351
352
|
similarModels: z.ZodArray<z.ZodObject<{
|
|
352
353
|
uuid: z.ZodString;
|
|
@@ -348,6 +348,7 @@ export declare namespace FindModelPageAnswerDetailCommand {
|
|
|
348
348
|
}, z.core.$strip>>;
|
|
349
349
|
order: z.ZodNumber;
|
|
350
350
|
}, z.core.$strip>>;
|
|
351
|
+
voicesCount: z.ZodNumber;
|
|
351
352
|
}, z.core.$strip>], "type">;
|
|
352
353
|
similarModels: z.ZodArray<z.ZodObject<{
|
|
353
354
|
uuid: z.ZodString;
|
|
@@ -347,6 +347,7 @@ export declare namespace FindModelPageDetailCommand {
|
|
|
347
347
|
}, z.core.$strip>>;
|
|
348
348
|
order: z.ZodNumber;
|
|
349
349
|
}, z.core.$strip>>;
|
|
350
|
+
voicesCount: z.ZodNumber;
|
|
350
351
|
}, z.core.$strip>], "type">;
|
|
351
352
|
similarModels: z.ZodArray<z.ZodObject<{
|
|
352
353
|
uuid: z.ZodString;
|
|
@@ -36,8 +36,8 @@ export declare namespace CreateVoiceCloneCommand {
|
|
|
36
36
|
isDeleted: z.ZodBoolean;
|
|
37
37
|
userId: z.ZodNullable<z.ZodString>;
|
|
38
38
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
39
|
-
createdAt: z.
|
|
40
|
-
updatedAt: z.
|
|
39
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
40
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -32,8 +32,8 @@ export declare namespace FindVoiceByUuidQuery {
|
|
|
32
32
|
isDeleted: z.ZodBoolean;
|
|
33
33
|
userId: z.ZodNullable<z.ZodString>;
|
|
34
34
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
35
|
-
createdAt: z.
|
|
36
|
-
updatedAt: z.
|
|
35
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
36
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -40,8 +40,8 @@ export declare namespace FindVoicesQuery {
|
|
|
40
40
|
isDeleted: z.ZodBoolean;
|
|
41
41
|
userId: z.ZodNullable<z.ZodString>;
|
|
42
42
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
43
|
-
createdAt: z.
|
|
44
|
-
updatedAt: z.
|
|
43
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
44
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
45
45
|
}, z.core.$strip>>;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -4,6 +4,27 @@ export declare namespace RetryTTSJobCommand {
|
|
|
4
4
|
uuid: z.ZodString;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const RequestBodySchema: z.ZodObject<{
|
|
8
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
voiceId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
text: z.ZodOptional<z.ZodString>;
|
|
11
|
+
isDialog: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
speakers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
|
+
speaker: z.ZodNumber;
|
|
14
|
+
voiceId: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>>;
|
|
16
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
similarity: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
style: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
+
audioUrl: z.ZodString;
|
|
24
|
+
text: z.ZodString;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
7
28
|
const ResponseSchema: z.ZodObject<{
|
|
8
29
|
data: z.ZodObject<{
|
|
9
30
|
uuid: z.ZodString;
|
|
@@ -3,11 +3,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RetryTTSJobCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const models_1 = require("../../../models");
|
|
6
|
+
const tts_command_1 = require("./tts.command");
|
|
6
7
|
var RetryTTSJobCommand;
|
|
7
8
|
(function (RetryTTSJobCommand) {
|
|
8
9
|
RetryTTSJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
10
|
uuid: zod_1.z.string().uuid(),
|
|
10
11
|
});
|
|
12
|
+
RetryTTSJobCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
+
modelId: zod_1.z.string().uuid().optional(),
|
|
14
|
+
voiceId: zod_1.z.string().uuid().optional(),
|
|
15
|
+
text: zod_1.z.string().optional(),
|
|
16
|
+
isDialog: zod_1.z.boolean().optional(),
|
|
17
|
+
speakers: zod_1.z.array(tts_command_1.TTSSpeakerSchema).optional(),
|
|
18
|
+
params: zod_1.z
|
|
19
|
+
.object({
|
|
20
|
+
speed: zod_1.z.number().optional(),
|
|
21
|
+
similarity: zod_1.z.number().optional(),
|
|
22
|
+
stability: zod_1.z.number().optional(),
|
|
23
|
+
style: zod_1.z.number().optional(),
|
|
24
|
+
})
|
|
25
|
+
.optional(),
|
|
26
|
+
references: zod_1.z.array(tts_command_1.TTSReferenceSchema).optional(),
|
|
27
|
+
});
|
|
11
28
|
RetryTTSJobCommand.ResponseSchema = zod_1.z.object({
|
|
12
29
|
data: models_1.TTSJobSchema,
|
|
13
30
|
});
|
|
@@ -36,8 +36,8 @@ export declare namespace SelectVoiceDesignCommand {
|
|
|
36
36
|
isDeleted: z.ZodBoolean;
|
|
37
37
|
userId: z.ZodNullable<z.ZodString>;
|
|
38
38
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
39
|
-
createdAt: z.
|
|
40
|
-
updatedAt: z.
|
|
39
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
40
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const TTSReferenceSchema: z.ZodObject<{
|
|
3
|
+
audioUrl: z.ZodString;
|
|
4
|
+
text: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const TTSSpeakerSchema: z.ZodObject<{
|
|
7
|
+
speaker: z.ZodNumber;
|
|
8
|
+
voiceId: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
2
10
|
export declare namespace TTSCommand {
|
|
3
11
|
const RequestSchema: z.ZodObject<{
|
|
4
12
|
modelId: z.ZodString;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSCommand = void 0;
|
|
3
|
+
exports.TTSCommand = exports.TTSSpeakerSchema = exports.TTSReferenceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const models_1 = require("../../../models");
|
|
6
|
-
|
|
6
|
+
exports.TTSReferenceSchema = zod_1.z.object({
|
|
7
7
|
audioUrl: zod_1.z.string().url(),
|
|
8
8
|
text: zod_1.z.string(),
|
|
9
9
|
});
|
|
10
|
-
|
|
10
|
+
exports.TTSSpeakerSchema = zod_1.z.object({
|
|
11
11
|
speaker: zod_1.z.number().int().positive(),
|
|
12
12
|
voiceId: zod_1.z.string().uuid(),
|
|
13
13
|
});
|
|
@@ -18,7 +18,7 @@ var TTSCommand;
|
|
|
18
18
|
voiceId: zod_1.z.string().uuid().optional(),
|
|
19
19
|
text: zod_1.z.string(),
|
|
20
20
|
isDialog: zod_1.z.boolean().optional().default(false),
|
|
21
|
-
speakers: zod_1.z.array(TTSSpeakerSchema).optional().default([]),
|
|
21
|
+
speakers: zod_1.z.array(exports.TTSSpeakerSchema).optional().default([]),
|
|
22
22
|
params: zod_1.z
|
|
23
23
|
.object({
|
|
24
24
|
speed: zod_1.z.number().optional(),
|
|
@@ -29,7 +29,7 @@ var TTSCommand;
|
|
|
29
29
|
})
|
|
30
30
|
.optional()
|
|
31
31
|
.default({}),
|
|
32
|
-
references: zod_1.z.array(TTSReferenceSchema).optional().default([]),
|
|
32
|
+
references: zod_1.z.array(exports.TTSReferenceSchema).optional().default([]),
|
|
33
33
|
});
|
|
34
34
|
TTSCommand.ResponseSchema = zod_1.z.object({
|
|
35
35
|
data: models_1.ToolJobSchema,
|
|
@@ -37,8 +37,8 @@ export declare namespace UpdateVoiceCommand {
|
|
|
37
37
|
isDeleted: z.ZodBoolean;
|
|
38
38
|
userId: z.ZodNullable<z.ZodString>;
|
|
39
39
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
40
|
-
createdAt: z.
|
|
41
|
-
updatedAt: z.
|
|
40
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
41
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DAILY_STREAK_CHEST_TYPE = void 0;
|
|
4
|
+
var DAILY_STREAK_CHEST_TYPE;
|
|
5
|
+
(function (DAILY_STREAK_CHEST_TYPE) {
|
|
6
|
+
DAILY_STREAK_CHEST_TYPE["BRONZE"] = "BRONZE";
|
|
7
|
+
DAILY_STREAK_CHEST_TYPE["SILVER"] = "SILVER";
|
|
8
|
+
DAILY_STREAK_CHEST_TYPE["GOLD"] = "GOLD";
|
|
9
|
+
})(DAILY_STREAK_CHEST_TYPE || (exports.DAILY_STREAK_CHEST_TYPE = DAILY_STREAK_CHEST_TYPE = {}));
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./daily-streak-status.enum"), exports);
|
|
18
18
|
__exportStar(require("./day-in-daily-streak-reward-type.enum"), exports);
|
|
19
|
+
__exportStar(require("./daily-streak-chest-type.enum"), exports);
|
|
@@ -89,6 +89,170 @@ export declare const CanvasTextGenerationConfigSchema: z.ZodArray<z.ZodObject<{
|
|
|
89
89
|
}, z.core.$strip>>;
|
|
90
90
|
}, z.core.$strip>>;
|
|
91
91
|
export type CanvasTextGenerationConfig = z.infer<typeof CanvasTextGenerationConfigSchema>;
|
|
92
|
+
export declare const CanvasTTSConfigSchema: z.ZodObject<{
|
|
93
|
+
models: z.ZodArray<z.ZodObject<{
|
|
94
|
+
uuid: z.ZodString;
|
|
95
|
+
title: z.ZodString;
|
|
96
|
+
description: z.ZodString;
|
|
97
|
+
pricePerSymbol: z.ZodNumber;
|
|
98
|
+
order: z.ZodNumber;
|
|
99
|
+
icons: z.ZodObject<{
|
|
100
|
+
light: z.ZodObject<{
|
|
101
|
+
svg: z.ZodString;
|
|
102
|
+
png: z.ZodString;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
dark: z.ZodObject<{
|
|
105
|
+
svg: z.ZodString;
|
|
106
|
+
png: z.ZodString;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
maxInputLength: z.ZodNumber;
|
|
110
|
+
maxSpeakers: z.ZodNumber;
|
|
111
|
+
params: z.ZodObject<{
|
|
112
|
+
speed: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
title: z.ZodString;
|
|
114
|
+
description: z.ZodString;
|
|
115
|
+
icons: z.ZodObject<{
|
|
116
|
+
light: z.ZodObject<{
|
|
117
|
+
svg: z.ZodString;
|
|
118
|
+
png: z.ZodString;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
dark: z.ZodObject<{
|
|
121
|
+
svg: z.ZodString;
|
|
122
|
+
png: z.ZodString;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
min: z.ZodNumber;
|
|
126
|
+
minLabel: z.ZodString;
|
|
127
|
+
max: z.ZodNumber;
|
|
128
|
+
maxLabel: z.ZodString;
|
|
129
|
+
step: z.ZodNumber;
|
|
130
|
+
default: z.ZodNumber;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
stability: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
title: z.ZodString;
|
|
134
|
+
description: z.ZodString;
|
|
135
|
+
icons: z.ZodObject<{
|
|
136
|
+
light: z.ZodObject<{
|
|
137
|
+
svg: z.ZodString;
|
|
138
|
+
png: z.ZodString;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
dark: z.ZodObject<{
|
|
141
|
+
svg: z.ZodString;
|
|
142
|
+
png: z.ZodString;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
min: z.ZodNumber;
|
|
146
|
+
minLabel: z.ZodString;
|
|
147
|
+
max: z.ZodNumber;
|
|
148
|
+
maxLabel: z.ZodString;
|
|
149
|
+
step: z.ZodNumber;
|
|
150
|
+
default: z.ZodNumber;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
similarity: z.ZodOptional<z.ZodObject<{
|
|
153
|
+
title: z.ZodString;
|
|
154
|
+
description: z.ZodString;
|
|
155
|
+
icons: z.ZodObject<{
|
|
156
|
+
light: z.ZodObject<{
|
|
157
|
+
svg: z.ZodString;
|
|
158
|
+
png: z.ZodString;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
dark: z.ZodObject<{
|
|
161
|
+
svg: z.ZodString;
|
|
162
|
+
png: z.ZodString;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
min: z.ZodNumber;
|
|
166
|
+
minLabel: z.ZodString;
|
|
167
|
+
max: z.ZodNumber;
|
|
168
|
+
maxLabel: z.ZodString;
|
|
169
|
+
step: z.ZodNumber;
|
|
170
|
+
default: z.ZodNumber;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
style: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
title: z.ZodString;
|
|
174
|
+
description: z.ZodString;
|
|
175
|
+
icons: z.ZodObject<{
|
|
176
|
+
light: z.ZodObject<{
|
|
177
|
+
svg: z.ZodString;
|
|
178
|
+
png: z.ZodString;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
dark: z.ZodObject<{
|
|
181
|
+
svg: z.ZodString;
|
|
182
|
+
png: z.ZodString;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
min: z.ZodNumber;
|
|
186
|
+
minLabel: z.ZodString;
|
|
187
|
+
max: z.ZodNumber;
|
|
188
|
+
maxLabel: z.ZodString;
|
|
189
|
+
step: z.ZodNumber;
|
|
190
|
+
default: z.ZodNumber;
|
|
191
|
+
}, z.core.$strip>>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
icon: z.ZodString;
|
|
196
|
+
title: z.ZodString;
|
|
197
|
+
previewUrl: z.ZodString;
|
|
198
|
+
description: z.ZodString;
|
|
199
|
+
languages: z.ZodArray<z.ZodObject<{
|
|
200
|
+
code: z.ZodString;
|
|
201
|
+
title: z.ZodString;
|
|
202
|
+
icon: z.ZodString;
|
|
203
|
+
order: z.ZodNumber;
|
|
204
|
+
}, z.core.$strip>>;
|
|
205
|
+
order: z.ZodNumber;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
208
|
+
uuid: z.ZodString;
|
|
209
|
+
name: z.ZodString;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
canUse: z.ZodBoolean;
|
|
212
|
+
status: z.ZodString;
|
|
213
|
+
}, z.core.$strip>>;
|
|
214
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
215
|
+
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
216
|
+
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
217
|
+
label: z.ZodString;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
220
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
221
|
+
label: z.ZodString;
|
|
222
|
+
}, z.core.$strip>>;
|
|
223
|
+
speakerMarkerLabel: z.ZodString;
|
|
224
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
225
|
+
uuid: z.ZodString;
|
|
226
|
+
scope: z.ZodEnum<typeof import("..").JOB_SCOPE>;
|
|
227
|
+
source: z.ZodObject<{
|
|
228
|
+
id: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
|
|
229
|
+
label: z.ZodString;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
title: z.ZodString;
|
|
232
|
+
description: z.ZodString;
|
|
233
|
+
gender: z.ZodNullable<z.ZodObject<{
|
|
234
|
+
id: z.ZodEnum<typeof import("..").VOICE_GENDER>;
|
|
235
|
+
label: z.ZodString;
|
|
236
|
+
}, z.core.$strip>>;
|
|
237
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
238
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
239
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
240
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
241
|
+
label: z.ZodString;
|
|
242
|
+
}, z.core.$strip>>;
|
|
243
|
+
previewUrl: z.ZodString;
|
|
244
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
245
|
+
status: z.ZodEnum<typeof import("..").VOICE_STATUS>;
|
|
246
|
+
error: z.ZodNullable<z.ZodString>;
|
|
247
|
+
order: z.ZodNumber;
|
|
248
|
+
isDeleted: z.ZodBoolean;
|
|
249
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
250
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
251
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
252
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
253
|
+
}, z.core.$strip>>;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
export type CanvasTTSConfig = z.infer<typeof CanvasTTSConfigSchema>;
|
|
92
256
|
export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
257
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.textGen>;
|
|
94
258
|
toolType: z.ZodNull;
|
|
@@ -465,6 +629,36 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
465
629
|
label: z.ZodString;
|
|
466
630
|
}, z.core.$strip>>;
|
|
467
631
|
speakerMarkerLabel: z.ZodString;
|
|
632
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
633
|
+
uuid: z.ZodString;
|
|
634
|
+
scope: z.ZodEnum<typeof import("..").JOB_SCOPE>;
|
|
635
|
+
source: z.ZodObject<{
|
|
636
|
+
id: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
|
|
637
|
+
label: z.ZodString;
|
|
638
|
+
}, z.core.$strip>;
|
|
639
|
+
title: z.ZodString;
|
|
640
|
+
description: z.ZodString;
|
|
641
|
+
gender: z.ZodNullable<z.ZodObject<{
|
|
642
|
+
id: z.ZodEnum<typeof import("..").VOICE_GENDER>;
|
|
643
|
+
label: z.ZodString;
|
|
644
|
+
}, z.core.$strip>>;
|
|
645
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
646
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
647
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
648
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
649
|
+
label: z.ZodString;
|
|
650
|
+
}, z.core.$strip>>;
|
|
651
|
+
previewUrl: z.ZodString;
|
|
652
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
653
|
+
status: z.ZodEnum<typeof import("..").VOICE_STATUS>;
|
|
654
|
+
error: z.ZodNullable<z.ZodString>;
|
|
655
|
+
order: z.ZodNumber;
|
|
656
|
+
isDeleted: z.ZodBoolean;
|
|
657
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
658
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
659
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
660
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
661
|
+
}, z.core.$strip>>;
|
|
468
662
|
}, z.core.$strip>;
|
|
469
663
|
}, z.core.$strip>, z.ZodObject<{
|
|
470
664
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -1208,6 +1402,36 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1208
1402
|
label: z.ZodString;
|
|
1209
1403
|
}, z.core.$strip>>;
|
|
1210
1404
|
speakerMarkerLabel: z.ZodString;
|
|
1405
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
1406
|
+
uuid: z.ZodString;
|
|
1407
|
+
scope: z.ZodEnum<typeof import("..").JOB_SCOPE>;
|
|
1408
|
+
source: z.ZodObject<{
|
|
1409
|
+
id: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
|
|
1410
|
+
label: z.ZodString;
|
|
1411
|
+
}, z.core.$strip>;
|
|
1412
|
+
title: z.ZodString;
|
|
1413
|
+
description: z.ZodString;
|
|
1414
|
+
gender: z.ZodNullable<z.ZodObject<{
|
|
1415
|
+
id: z.ZodEnum<typeof import("..").VOICE_GENDER>;
|
|
1416
|
+
label: z.ZodString;
|
|
1417
|
+
}, z.core.$strip>>;
|
|
1418
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
1419
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
1420
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
1421
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
1422
|
+
label: z.ZodString;
|
|
1423
|
+
}, z.core.$strip>>;
|
|
1424
|
+
previewUrl: z.ZodString;
|
|
1425
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
1426
|
+
status: z.ZodEnum<typeof import("..").VOICE_STATUS>;
|
|
1427
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1428
|
+
order: z.ZodNumber;
|
|
1429
|
+
isDeleted: z.ZodBoolean;
|
|
1430
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1431
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
1432
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
1433
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1434
|
+
}, z.core.$strip>>;
|
|
1211
1435
|
}, z.core.$strip>;
|
|
1212
1436
|
}, z.core.$strip>, z.ZodObject<{
|
|
1213
1437
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -1909,6 +2133,36 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1909
2133
|
label: z.ZodString;
|
|
1910
2134
|
}, z.core.$strip>>;
|
|
1911
2135
|
speakerMarkerLabel: z.ZodString;
|
|
2136
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
2137
|
+
uuid: z.ZodString;
|
|
2138
|
+
scope: z.ZodEnum<typeof import("..").JOB_SCOPE>;
|
|
2139
|
+
source: z.ZodObject<{
|
|
2140
|
+
id: z.ZodEnum<typeof import("..").VOICE_SOURCE>;
|
|
2141
|
+
label: z.ZodString;
|
|
2142
|
+
}, z.core.$strip>;
|
|
2143
|
+
title: z.ZodString;
|
|
2144
|
+
description: z.ZodString;
|
|
2145
|
+
gender: z.ZodNullable<z.ZodObject<{
|
|
2146
|
+
id: z.ZodEnum<typeof import("..").VOICE_GENDER>;
|
|
2147
|
+
label: z.ZodString;
|
|
2148
|
+
}, z.core.$strip>>;
|
|
2149
|
+
trait: z.ZodNullable<z.ZodString>;
|
|
2150
|
+
ageRange: z.ZodNullable<z.ZodString>;
|
|
2151
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
2152
|
+
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
2153
|
+
label: z.ZodString;
|
|
2154
|
+
}, z.core.$strip>>;
|
|
2155
|
+
previewUrl: z.ZodString;
|
|
2156
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
2157
|
+
status: z.ZodEnum<typeof import("..").VOICE_STATUS>;
|
|
2158
|
+
error: z.ZodNullable<z.ZodString>;
|
|
2159
|
+
order: z.ZodNumber;
|
|
2160
|
+
isDeleted: z.ZodBoolean;
|
|
2161
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
2162
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
2163
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
2164
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
2165
|
+
}, z.core.$strip>>;
|
|
1912
2166
|
}, z.core.$strip>;
|
|
1913
2167
|
}, z.core.$strip>, z.ZodObject<{
|
|
1914
2168
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CanvasNodeDefinitionsWithConfigsSchema = exports.CanvasNodeDefinitionWithConfigSchema = exports.CanvasNodeDefinitionSchema = exports.PortDescriptions = exports.CanvasNodeDefinitionToolConfigSchema = exports.CanvasTextGenerationConfigSchema = void 0;
|
|
3
|
+
exports.CanvasNodeDefinitionsWithConfigsSchema = exports.CanvasNodeDefinitionWithConfigSchema = exports.CanvasNodeDefinitionSchema = exports.PortDescriptions = exports.CanvasNodeDefinitionToolConfigSchema = exports.CanvasTTSConfigSchema = exports.CanvasTextGenerationConfigSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const icon_variants_schema_1 = require("./icon-variants.schema");
|
|
@@ -15,6 +15,9 @@ const createCanvasNodeDefinitionNoConfigSchema = (nodeType) => zod_1.z.object({
|
|
|
15
15
|
exports.CanvasTextGenerationConfigSchema = zod_1.z.array(ai_vendor_schema_1.AiVendorSchema.extend({
|
|
16
16
|
models: zod_1.z.array(ai_model_schema_1.AiModelWithUnlockedBySchema),
|
|
17
17
|
}));
|
|
18
|
+
exports.CanvasTTSConfigSchema = tools_1.TTSConfigSchema.extend({
|
|
19
|
+
voices: zod_1.z.array(tools_1.VoiceSchema),
|
|
20
|
+
});
|
|
18
21
|
exports.CanvasNodeDefinitionToolConfigSchema = zod_1.z.discriminatedUnion('nodeType', [
|
|
19
22
|
zod_1.z.object({
|
|
20
23
|
nodeType: zod_1.z.literal(constants_1.CANVAS_NODE_TYPE.textGen),
|
|
@@ -34,7 +37,7 @@ exports.CanvasNodeDefinitionToolConfigSchema = zod_1.z.discriminatedUnion('nodeT
|
|
|
34
37
|
zod_1.z.object({
|
|
35
38
|
nodeType: zod_1.z.literal(constants_1.CANVAS_NODE_TYPE.ttsGen),
|
|
36
39
|
toolType: zod_1.z.literal(constants_1.TOOL_CONTENT_TYPE.TEXT_TO_SPEECH),
|
|
37
|
-
config:
|
|
40
|
+
config: exports.CanvasTTSConfigSchema,
|
|
38
41
|
}),
|
|
39
42
|
zod_1.z.object({
|
|
40
43
|
nodeType: zod_1.z.literal(constants_1.CANVAS_NODE_TYPE.sttGen),
|
|
@@ -47,8 +47,9 @@ export declare const AudioGenParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
47
47
|
modelId: z.ZodString;
|
|
48
48
|
modelName: z.ZodString;
|
|
49
49
|
voice: z.ZodString;
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
52
53
|
}, z.core.$strict>, z.ZodObject<{
|
|
53
54
|
mode: z.ZodLiteral<"stt">;
|
|
54
55
|
prompt: z.ZodString;
|
|
@@ -220,8 +221,9 @@ export declare const CanvasNodeParamsSchemaByType: {
|
|
|
220
221
|
modelId: z.ZodString;
|
|
221
222
|
modelName: z.ZodString;
|
|
222
223
|
voice: z.ZodString;
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
226
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
225
227
|
}, z.core.$strict>, z.ZodObject<{
|
|
226
228
|
mode: z.ZodLiteral<"stt">;
|
|
227
229
|
prompt: z.ZodString;
|
|
@@ -234,8 +236,9 @@ export declare const CanvasNodeParamsSchemaByType: {
|
|
|
234
236
|
modelId: z.ZodString;
|
|
235
237
|
modelName: z.ZodString;
|
|
236
238
|
voice: z.ZodString;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
239
242
|
}, z.core.$strict>, z.ZodObject<{
|
|
240
243
|
mode: z.ZodLiteral<"stt">;
|
|
241
244
|
prompt: z.ZodString;
|
|
@@ -695,8 +698,9 @@ export declare const CanvasNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
695
698
|
modelId: z.ZodString;
|
|
696
699
|
modelName: z.ZodString;
|
|
697
700
|
voice: z.ZodString;
|
|
698
|
-
|
|
699
|
-
|
|
701
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
702
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
703
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
700
704
|
}, z.core.$strict>, z.ZodObject<{
|
|
701
705
|
mode: z.ZodLiteral<"stt">;
|
|
702
706
|
prompt: z.ZodString;
|
|
@@ -744,8 +748,9 @@ export declare const CanvasNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
744
748
|
modelId: z.ZodString;
|
|
745
749
|
modelName: z.ZodString;
|
|
746
750
|
voice: z.ZodString;
|
|
747
|
-
|
|
748
|
-
|
|
751
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
752
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
753
|
+
similarityBoost: z.ZodOptional<z.ZodNumber>;
|
|
749
754
|
}, z.core.$strict>, z.ZodObject<{
|
|
750
755
|
mode: z.ZodLiteral<"stt">;
|
|
751
756
|
prompt: z.ZodString;
|
|
@@ -48,8 +48,11 @@ exports.AudioGenParamsSchema = zod_1.z.discriminatedUnion('mode', [
|
|
|
48
48
|
modelId: zod_1.z.string(),
|
|
49
49
|
modelName: zod_1.z.string(),
|
|
50
50
|
voice: zod_1.z.string(),
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
speed: zod_1.z.number().optional(),
|
|
52
|
+
// legacy ElevenLabs, читается только для уже сохранённых узлов, в запрос не уходит
|
|
53
|
+
stability: zod_1.z.number().optional(),
|
|
54
|
+
// legacy ElevenLabs, читается только для уже сохранённых узлов, в запрос не уходит
|
|
55
|
+
similarityBoost: zod_1.z.number().optional(),
|
|
53
56
|
}),
|
|
54
57
|
strictObject({
|
|
55
58
|
mode: zod_1.z.literal('stt'),
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import { DAILY_STREAK_STATUS, DAY_IN_DAILY_STREAK_AWARD_TYPE } from '../constants';
|
|
2
|
+
import { DAILY_STREAK_CHEST_TYPE, DAILY_STREAK_STATUS, DAY_IN_DAILY_STREAK_AWARD_TYPE } from '../constants';
|
|
3
3
|
export declare const DayInDailyStreakSchema: z.ZodObject<{
|
|
4
4
|
dayNumber: z.ZodNumber;
|
|
5
5
|
status: z.ZodEnum<typeof DAILY_STREAK_STATUS>;
|
|
6
6
|
award: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
chestType: z.ZodEnum<typeof DAILY_STREAK_CHEST_TYPE>;
|
|
7
8
|
isCurrentDay: z.ZodBoolean;
|
|
8
9
|
awardType: z.ZodEnum<typeof DAY_IN_DAILY_STREAK_AWARD_TYPE>;
|
|
9
10
|
}, z.core.$strip>;
|
|
@@ -12,13 +13,18 @@ export declare const DailyStreakSchema: z.ZodObject<{
|
|
|
12
13
|
userId: z.ZodString;
|
|
13
14
|
promocodeId: z.ZodNullable<z.ZodString>;
|
|
14
15
|
lastDailyCollectionAt: z.ZodNullable<z.ZodDate>;
|
|
16
|
+
lastDailyReward: z.ZodNullable<z.ZodNumber>;
|
|
15
17
|
currentDayStreak: z.ZodNumber;
|
|
16
18
|
createdAt: z.ZodDate;
|
|
17
19
|
updatedAt: z.ZodDate;
|
|
20
|
+
bronzePromocodeClaimed: z.ZodBoolean;
|
|
21
|
+
silverPromocodeClaimed: z.ZodBoolean;
|
|
22
|
+
goldPromocodeClaimed: z.ZodBoolean;
|
|
18
23
|
days: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
19
24
|
dayNumber: z.ZodNumber;
|
|
20
25
|
status: z.ZodEnum<typeof DAILY_STREAK_STATUS>;
|
|
21
26
|
award: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
chestType: z.ZodEnum<typeof DAILY_STREAK_CHEST_TYPE>;
|
|
22
28
|
isCurrentDay: z.ZodBoolean;
|
|
23
29
|
awardType: z.ZodEnum<typeof DAY_IN_DAILY_STREAK_AWARD_TYPE>;
|
|
24
30
|
}, z.core.$strip>>>;
|
|
@@ -27,13 +33,18 @@ export declare const DailyStreakWithPromocodeSchema: z.ZodObject<{
|
|
|
27
33
|
uuid: z.ZodString;
|
|
28
34
|
userId: z.ZodString;
|
|
29
35
|
lastDailyCollectionAt: z.ZodNullable<z.ZodDate>;
|
|
36
|
+
lastDailyReward: z.ZodNullable<z.ZodNumber>;
|
|
30
37
|
currentDayStreak: z.ZodNumber;
|
|
31
38
|
createdAt: z.ZodDate;
|
|
32
39
|
updatedAt: z.ZodDate;
|
|
40
|
+
bronzePromocodeClaimed: z.ZodBoolean;
|
|
41
|
+
silverPromocodeClaimed: z.ZodBoolean;
|
|
42
|
+
goldPromocodeClaimed: z.ZodBoolean;
|
|
33
43
|
days: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
34
44
|
dayNumber: z.ZodNumber;
|
|
35
45
|
status: z.ZodEnum<typeof DAILY_STREAK_STATUS>;
|
|
36
46
|
award: z.ZodNullable<z.ZodNumber>;
|
|
47
|
+
chestType: z.ZodEnum<typeof DAILY_STREAK_CHEST_TYPE>;
|
|
37
48
|
isCurrentDay: z.ZodBoolean;
|
|
38
49
|
awardType: z.ZodEnum<typeof DAY_IN_DAILY_STREAK_AWARD_TYPE>;
|
|
39
50
|
}, z.core.$strip>>>;
|
|
@@ -11,6 +11,7 @@ exports.DayInDailyStreakSchema = zod_1.default.object({
|
|
|
11
11
|
dayNumber: zod_1.default.number().int().nonnegative(),
|
|
12
12
|
status: zod_1.default.nativeEnum(constants_1.DAILY_STREAK_STATUS),
|
|
13
13
|
award: zod_1.default.number().int().nonnegative().nullable(), // null on PROMOCODE days
|
|
14
|
+
chestType: zod_1.default.nativeEnum(constants_1.DAILY_STREAK_CHEST_TYPE),
|
|
14
15
|
isCurrentDay: zod_1.default.boolean(),
|
|
15
16
|
awardType: zod_1.default.nativeEnum(constants_1.DAY_IN_DAILY_STREAK_AWARD_TYPE),
|
|
16
17
|
});
|
|
@@ -19,9 +20,13 @@ exports.DailyStreakSchema = zod_1.default.object({
|
|
|
19
20
|
userId: zod_1.default.string().uuid(),
|
|
20
21
|
promocodeId: zod_1.default.string().uuid().nullable(),
|
|
21
22
|
lastDailyCollectionAt: zod_1.default.date().nullable(),
|
|
23
|
+
lastDailyReward: zod_1.default.number().int().nonnegative().nullable(),
|
|
22
24
|
currentDayStreak: zod_1.default.number().int().min(0),
|
|
23
25
|
createdAt: zod_1.default.date(),
|
|
24
26
|
updatedAt: zod_1.default.date(),
|
|
27
|
+
bronzePromocodeClaimed: zod_1.default.boolean(),
|
|
28
|
+
silverPromocodeClaimed: zod_1.default.boolean(),
|
|
29
|
+
goldPromocodeClaimed: zod_1.default.boolean(),
|
|
25
30
|
days: zod_1.default.array(exports.DayInDailyStreakSchema).default([]),
|
|
26
31
|
});
|
|
27
32
|
exports.DailyStreakWithPromocodeSchema = exports.DailyStreakSchema.extend({
|
|
@@ -382,6 +382,7 @@ export declare const ModelPageHubSchema: z.ZodObject<{
|
|
|
382
382
|
}, z.core.$strip>>;
|
|
383
383
|
order: z.ZodNumber;
|
|
384
384
|
}, z.core.$strip>>;
|
|
385
|
+
voicesCount: z.ZodNumber;
|
|
385
386
|
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
386
387
|
slug: z.ZodString;
|
|
387
388
|
}, z.core.$strip>>>;
|
|
@@ -742,6 +743,7 @@ export declare const ModelPageDetailSchema: z.ZodObject<{
|
|
|
742
743
|
}, z.core.$strip>>;
|
|
743
744
|
order: z.ZodNumber;
|
|
744
745
|
}, z.core.$strip>>;
|
|
746
|
+
voicesCount: z.ZodNumber;
|
|
745
747
|
}, z.core.$strip>], "type">;
|
|
746
748
|
similarModels: z.ZodArray<z.ZodObject<{
|
|
747
749
|
uuid: z.ZodString;
|
|
@@ -1113,6 +1115,7 @@ export declare const ModelPageAnswerDetailSchema: z.ZodObject<{
|
|
|
1113
1115
|
}, z.core.$strip>>;
|
|
1114
1116
|
order: z.ZodNumber;
|
|
1115
1117
|
}, z.core.$strip>>;
|
|
1118
|
+
voicesCount: z.ZodNumber;
|
|
1116
1119
|
}, z.core.$strip>], "type">;
|
|
1117
1120
|
similarModels: z.ZodArray<z.ZodObject<{
|
|
1118
1121
|
uuid: z.ZodString;
|
|
@@ -338,6 +338,7 @@ export declare const ModelPageTtsTechnicalModelSchema: z.ZodObject<{
|
|
|
338
338
|
}, z.core.$strip>>;
|
|
339
339
|
order: z.ZodNumber;
|
|
340
340
|
}, z.core.$strip>>;
|
|
341
|
+
voicesCount: z.ZodNumber;
|
|
341
342
|
}, z.core.$strip>;
|
|
342
343
|
export declare const ModelPageTechnicalModelSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
343
344
|
uuid: z.ZodString;
|
|
@@ -667,6 +668,7 @@ export declare const ModelPageTechnicalModelSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
667
668
|
}, z.core.$strip>>;
|
|
668
669
|
order: z.ZodNumber;
|
|
669
670
|
}, z.core.$strip>>;
|
|
671
|
+
voicesCount: z.ZodNumber;
|
|
670
672
|
}, z.core.$strip>], "type">;
|
|
671
673
|
export type ModelPageTechnicalModel = z.infer<typeof ModelPageTechnicalModelSchema>;
|
|
672
674
|
export declare const ModelPageCardSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -997,6 +999,7 @@ export declare const ModelPageCardSchema: z.ZodIntersection<z.ZodDiscriminatedUn
|
|
|
997
999
|
}, z.core.$strip>>;
|
|
998
1000
|
order: z.ZodNumber;
|
|
999
1001
|
}, z.core.$strip>>;
|
|
1002
|
+
voicesCount: z.ZodNumber;
|
|
1000
1003
|
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
1001
1004
|
slug: z.ZodString;
|
|
1002
1005
|
}, z.core.$strip>>;
|
|
@@ -67,6 +67,7 @@ exports.ModelPageTtsTechnicalModelSchema = ModelPageTechnicalModelBaseSchema.ext
|
|
|
67
67
|
maxInputLength: zod_1.z.number(),
|
|
68
68
|
params: tools_1.TTSModelParams,
|
|
69
69
|
voices: zod_1.z.array(tools_1.TTSVoiceSchema),
|
|
70
|
+
voicesCount: zod_1.z.number(),
|
|
70
71
|
});
|
|
71
72
|
exports.ModelPageTechnicalModelSchema = zod_1.z.discriminatedUnion('type', [
|
|
72
73
|
exports.ModelPageTextTechnicalModelSchema,
|
|
@@ -27,7 +27,7 @@ export declare const VoiceSchema: z.ZodObject<{
|
|
|
27
27
|
isDeleted: z.ZodBoolean;
|
|
28
28
|
userId: z.ZodNullable<z.ZodString>;
|
|
29
29
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
30
|
-
createdAt: z.
|
|
31
|
-
updatedAt: z.
|
|
30
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
31
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type Voice = z.infer<typeof VoiceSchema>;
|
|
@@ -32,6 +32,6 @@ exports.VoiceSchema = zod_1.z.object({
|
|
|
32
32
|
isDeleted: zod_1.z.boolean(),
|
|
33
33
|
userId: zod_1.z.string().uuid().nullable(),
|
|
34
34
|
unregisteredUserId: zod_1.z.string().uuid().nullable(),
|
|
35
|
-
createdAt: zod_1.z.date(),
|
|
36
|
-
updatedAt: zod_1.z.date(),
|
|
35
|
+
createdAt: zod_1.z.coerce.date(),
|
|
36
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
37
37
|
});
|