@ai-grator/api 0.3.71 → 0.3.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/errors/errors.d.ts +35 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +35 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts +12 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map +1 -1
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts +12 -0
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts.map +1 -1
- package/build/generation-model/models/generation-model-response.schema.d.ts +18 -0
- package/build/generation-model/models/generation-model-response.schema.d.ts.map +1 -1
- package/build/generation-model/models/generation-model-response.schema.js +6 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts +12 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts.map +1 -1
- package/errors/errors.ts +36 -0
- package/generation-model/models/generation-model-response.schema.ts +6 -0
- package/package.json +1 -1
package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts
CHANGED
|
@@ -25,6 +25,12 @@ export declare const GetVideoGenerationChainConfigResponse: z.ZodObject<{
|
|
|
25
25
|
maxSize: z.ZodInt;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
28
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
31
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
32
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
28
34
|
}, z.core.$strip>>;
|
|
29
35
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
30
36
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -79,6 +85,12 @@ export declare const GetVideoGenerationChainConfigQuery: {
|
|
|
79
85
|
maxSize: z.ZodInt;
|
|
80
86
|
}, z.core.$strip>;
|
|
81
87
|
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
88
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
91
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
92
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
82
94
|
}, z.core.$strip>>;
|
|
83
95
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
84
96
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-video-generation-chain-config.query.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,qCAAqC
|
|
1
|
+
{"version":3,"file":"get-video-generation-chain-config.query.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIhD,CAAC;AAEH,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAE9G,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS7C,CAAC"}
|
package/errors/errors.ts
CHANGED
|
@@ -363,6 +363,37 @@ export const ERRORS = {
|
|
|
363
363
|
code: 'GENERATION_JOB.ATTACHMENT_SLOT_REQUIRES_COMPANION',
|
|
364
364
|
message: 'Это вложение нельзя использовать без другого обязательного вложения',
|
|
365
365
|
},
|
|
366
|
+
ATTACHMENT_DURATION_OUT_OF_RANGE: {
|
|
367
|
+
httpCode: 400,
|
|
368
|
+
code: 'GENERATION_JOB.ATTACHMENT_DURATION_OUT_OF_RANGE',
|
|
369
|
+
message:
|
|
370
|
+
'Длительность одного или нескольких прикреплённых файлов выходит за допустимые для этой модели пределы',
|
|
371
|
+
},
|
|
372
|
+
ATTACHMENT_DIMENSIONS_OUT_OF_RANGE: {
|
|
373
|
+
httpCode: 400,
|
|
374
|
+
code: 'GENERATION_JOB.ATTACHMENT_DIMENSIONS_OUT_OF_RANGE',
|
|
375
|
+
message: 'Размеры одного или нескольких прикреплённых файлов не подходят для этой модели',
|
|
376
|
+
},
|
|
377
|
+
ATTACHMENT_SLOT_NOT_ALLOWED_FOR_MODE: {
|
|
378
|
+
httpCode: 400,
|
|
379
|
+
code: 'GENERATION_JOB.ATTACHMENT_SLOT_NOT_ALLOWED_FOR_MODE',
|
|
380
|
+
message: 'Это вложение нельзя использовать в выбранном режиме генерации',
|
|
381
|
+
},
|
|
382
|
+
INVALID_ELEMENT_REFERENCES: {
|
|
383
|
+
httpCode: 400,
|
|
384
|
+
code: 'GENERATION_JOB.INVALID_ELEMENT_REFERENCES',
|
|
385
|
+
message: 'Субъекты или голоса заданы некорректно',
|
|
386
|
+
},
|
|
387
|
+
TOO_MANY_REFERENCES: {
|
|
388
|
+
httpCode: 400,
|
|
389
|
+
code: 'GENERATION_JOB.TOO_MANY_REFERENCES',
|
|
390
|
+
message: 'Слишком много референсов для одной генерации',
|
|
391
|
+
},
|
|
392
|
+
TOO_MANY_FRAMES_FOR_DURATION: {
|
|
393
|
+
httpCode: 400,
|
|
394
|
+
code: 'GENERATION_JOB.TOO_MANY_FRAMES_FOR_DURATION',
|
|
395
|
+
message: 'Слишком много кадров для выбранной длительности видео',
|
|
396
|
+
},
|
|
366
397
|
CHAT_MODEL_MISMATCH: {
|
|
367
398
|
httpCode: 400,
|
|
368
399
|
code: 'GENERATION_JOB.CHAT_MODEL_MISMATCH',
|
|
@@ -599,6 +630,11 @@ export const ERRORS = {
|
|
|
599
630
|
message:
|
|
600
631
|
'Не удалось извлечь текст из документа (файл может быть повреждён, зашифрован или не поддерживается)',
|
|
601
632
|
},
|
|
633
|
+
SCANNED_PDF: {
|
|
634
|
+
httpCode: 422,
|
|
635
|
+
code: 'FILE.SCANNED_PDF',
|
|
636
|
+
message: 'PDF состоит из сканов страниц без текста. Загрузите версию документа с текстовым слоем',
|
|
637
|
+
},
|
|
602
638
|
REQUIRED: {
|
|
603
639
|
httpCode: 400,
|
|
604
640
|
code: 'FILE.REQUIRED',
|
|
@@ -14,6 +14,12 @@ export const AttachmentSlotSchema = z.object({
|
|
|
14
14
|
maxCount: z.int().positive(),
|
|
15
15
|
allowedFormats: FileFormatListSchema,
|
|
16
16
|
maxSizeBytes: z.int().positive().optional(),
|
|
17
|
+
minDurationSec: z.number().positive().optional(),
|
|
18
|
+
maxDurationSec: z.number().positive().optional(),
|
|
19
|
+
minSidePx: z.int().positive().optional(),
|
|
20
|
+
maxSidePx: z.int().positive().optional(),
|
|
21
|
+
minAspectRatio: z.number().positive().optional(),
|
|
22
|
+
maxAspectRatio: z.number().positive().optional(),
|
|
17
23
|
});
|
|
18
24
|
|
|
19
25
|
export const AttachmentPolicySchema = z.record(z.string(), AttachmentSlotSchema);
|