@ai-grator/api 0.3.70 → 0.3.72
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/admin/endpoints/admin.ts +1 -0
- package/admin/endpoints/commands/index.ts +1 -0
- package/admin/endpoints/commands/unban-admin-user.command.ts +30 -0
- package/build/admin/endpoints/admin.d.ts +1 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +1 -0
- package/build/admin/endpoints/commands/index.d.ts +1 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +1 -0
- package/build/admin/endpoints/commands/unban-admin-user.command.d.ts +35 -0
- package/build/admin/endpoints/commands/unban-admin-user.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/unban-admin-user.command.js +27 -0
- package/build/errors/errors.d.ts +40 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +40 -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 +41 -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',
|
|
@@ -641,6 +672,11 @@ export const ERRORS = {
|
|
|
641
672
|
code: 'USER.BAN_ERROR',
|
|
642
673
|
message: 'Не удалось заблокировать пользователя',
|
|
643
674
|
},
|
|
675
|
+
UNBAN_ERROR: {
|
|
676
|
+
httpCode: 500,
|
|
677
|
+
code: 'USER.UNBAN_ERROR',
|
|
678
|
+
message: 'Не удалось разблокировать пользователя',
|
|
679
|
+
},
|
|
644
680
|
FIND_ERROR: {
|
|
645
681
|
httpCode: 500,
|
|
646
682
|
code: 'USER.FIND_ERROR',
|
|
@@ -787,6 +823,11 @@ export const ERRORS = {
|
|
|
787
823
|
code: 'ADMIN.CANNOT_BAN_ADMIN',
|
|
788
824
|
message: 'Невозможно заблокировать администратора',
|
|
789
825
|
},
|
|
826
|
+
USER_NOT_BANNED: {
|
|
827
|
+
httpCode: 400,
|
|
828
|
+
code: 'ADMIN.USER_NOT_BANNED',
|
|
829
|
+
message: 'Пользователь не заблокирован',
|
|
830
|
+
},
|
|
790
831
|
STATS_ERROR: {
|
|
791
832
|
httpCode: 500,
|
|
792
833
|
code: 'ADMIN.STATS_ERROR',
|
|
@@ -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);
|