@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/admin/endpoints/admin.ts
CHANGED
|
@@ -33,6 +33,7 @@ export const ADMIN_ROUTES = {
|
|
|
33
33
|
GET_USER_TRANSACTIONS: (userId: string) => `users/${userId}/transactions`,
|
|
34
34
|
BAN_USER: (userId: string) => `users/${userId}/ban`,
|
|
35
35
|
BAN_USERS: 'users/ban',
|
|
36
|
+
UNBAN_USER: (userId: string) => `users/${userId}/unban`,
|
|
36
37
|
|
|
37
38
|
// LINKED ACCOUNTS
|
|
38
39
|
GET_LINKED_ACCOUNT_CLUSTERS: 'linked-accounts/clusters',
|
|
@@ -13,6 +13,7 @@ export * from './update-admin-model-family.command';
|
|
|
13
13
|
export * from './delete-admin-model-family.command';
|
|
14
14
|
export * from './update-admin-organization.command';
|
|
15
15
|
export * from './ban-admin-users.command';
|
|
16
|
+
export * from './unban-admin-user.command';
|
|
16
17
|
export * from './create-admin-trend.command';
|
|
17
18
|
export * from './update-admin-trend.command';
|
|
18
19
|
export * from './update-admin-trend-status.command';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { AdminUserResponseSchema } from '../../models';
|
|
4
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
5
|
+
|
|
6
|
+
export const UnbanAdminUserCommandParams = z.object({
|
|
7
|
+
userId: z.uuid(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const UnbanAdminUserCommandResponse = AdminUserResponseSchema;
|
|
11
|
+
|
|
12
|
+
export const UnbanAdminUserCommand = defineContract({
|
|
13
|
+
method: HTTP_METHODS.PATCH,
|
|
14
|
+
path: ADMIN_ROUTES.UNBAN_USER(':userId'),
|
|
15
|
+
summary: 'Unban a user',
|
|
16
|
+
request: {
|
|
17
|
+
params: UnbanAdminUserCommandParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: UnbanAdminUserCommandResponse,
|
|
21
|
+
400: HttpErrorResponseSchema,
|
|
22
|
+
401: HttpErrorResponseSchema,
|
|
23
|
+
403: HttpErrorResponseSchema,
|
|
24
|
+
404: HttpErrorResponseSchema,
|
|
25
|
+
500: HttpErrorResponseSchema,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export type UnbanAdminUserCommandParamsType = z.infer<typeof UnbanAdminUserCommandParams>;
|
|
30
|
+
export type UnbanAdminUserCommandResponseType = z.infer<typeof UnbanAdminUserCommandResponse>;
|
|
@@ -22,6 +22,7 @@ export declare const ADMIN_ROUTES: {
|
|
|
22
22
|
readonly GET_USER_TRANSACTIONS: (userId: string) => string;
|
|
23
23
|
readonly BAN_USER: (userId: string) => string;
|
|
24
24
|
readonly BAN_USERS: "users/ban";
|
|
25
|
+
readonly UNBAN_USER: (userId: string) => string;
|
|
25
26
|
readonly GET_LINKED_ACCOUNT_CLUSTERS: "linked-accounts/clusters";
|
|
26
27
|
readonly GET_SUPPORT_CHATS: "support/chats";
|
|
27
28
|
readonly GET_SUPPORT_CHAT_MESSAGES: (userId: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;kDACb,MAAM;+DACO,MAAM;wDACb,MAAM,aAAa,MAAM;uDAE1B,MAAM;yDACJ,MAAM;;;;;;;;gCAgB/B,MAAM;6CACO,MAAM;gCACnB,MAAM
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;kDACb,MAAM;+DACO,MAAM;wDACb,MAAM,aAAa,MAAM;uDAE1B,MAAM;yDACJ,MAAM;;;;;;;;gCAgB/B,MAAM;6CACO,MAAM;gCACnB,MAAM;;kCAEJ,MAAM;;;iDAOS,MAAM;0CACb,MAAM;8CACF,MAAM;;;gCAKpB,MAAM;mCACH,MAAM;mCACN,MAAM;0CACC,MAAM;;;6CAKH,MAAM;6CACN,MAAM;;;;;kCAOjB,MAAM;qCACH,MAAM;qCACN,MAAM;4CACC,MAAM;;;iDAKD,MAAM;iDACN,MAAM;;;CAKpC,CAAC"}
|
|
@@ -30,6 +30,7 @@ exports.ADMIN_ROUTES = {
|
|
|
30
30
|
GET_USER_TRANSACTIONS: (userId) => `users/${userId}/transactions`,
|
|
31
31
|
BAN_USER: (userId) => `users/${userId}/ban`,
|
|
32
32
|
BAN_USERS: 'users/ban',
|
|
33
|
+
UNBAN_USER: (userId) => `users/${userId}/unban`,
|
|
33
34
|
// LINKED ACCOUNTS
|
|
34
35
|
GET_LINKED_ACCOUNT_CLUSTERS: 'linked-accounts/clusters',
|
|
35
36
|
// SUPPORT
|
|
@@ -13,6 +13,7 @@ export * from './update-admin-model-family.command';
|
|
|
13
13
|
export * from './delete-admin-model-family.command';
|
|
14
14
|
export * from './update-admin-organization.command';
|
|
15
15
|
export * from './ban-admin-users.command';
|
|
16
|
+
export * from './unban-admin-user.command';
|
|
16
17
|
export * from './create-admin-trend.command';
|
|
17
18
|
export * from './update-admin-trend.command';
|
|
18
19
|
export * from './update-admin-trend-status.command';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC"}
|
|
@@ -29,6 +29,7 @@ __exportStar(require("./update-admin-model-family.command"), exports);
|
|
|
29
29
|
__exportStar(require("./delete-admin-model-family.command"), exports);
|
|
30
30
|
__exportStar(require("./update-admin-organization.command"), exports);
|
|
31
31
|
__exportStar(require("./ban-admin-users.command"), exports);
|
|
32
|
+
__exportStar(require("./unban-admin-user.command"), exports);
|
|
32
33
|
__exportStar(require("./create-admin-trend.command"), exports);
|
|
33
34
|
__exportStar(require("./update-admin-trend.command"), exports);
|
|
34
35
|
__exportStar(require("./update-admin-trend-status.command"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const UnbanAdminUserCommandParams: z.ZodObject<{
|
|
4
|
+
userId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const UnbanAdminUserCommandResponse: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
email: z.ZodEmail;
|
|
9
|
+
status: z.ZodEnum<typeof import("../../..").USER_STATUS>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const UnbanAdminUserCommand: {
|
|
12
|
+
method: HTTP_METHODS.PATCH;
|
|
13
|
+
path: string;
|
|
14
|
+
summary: string;
|
|
15
|
+
request: {
|
|
16
|
+
params: z.ZodObject<{
|
|
17
|
+
userId: z.ZodUUID;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
};
|
|
20
|
+
responses: {
|
|
21
|
+
200: z.ZodObject<{
|
|
22
|
+
uuid: z.ZodUUID;
|
|
23
|
+
email: z.ZodEmail;
|
|
24
|
+
status: z.ZodEnum<typeof import("../../..").USER_STATUS>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
27
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
28
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
29
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
30
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type UnbanAdminUserCommandParamsType = z.infer<typeof UnbanAdminUserCommandParams>;
|
|
34
|
+
export type UnbanAdminUserCommandResponseType = z.infer<typeof UnbanAdminUserCommandResponse>;
|
|
35
|
+
//# sourceMappingURL=unban-admin-user.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unban-admin-user.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/unban-admin-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;iBAA0B,CAAC;AAErE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;CAehC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC1F,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnbanAdminUserCommand = exports.UnbanAdminUserCommandResponse = exports.UnbanAdminUserCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const admin_1 = require("../admin");
|
|
8
|
+
exports.UnbanAdminUserCommandParams = zod_1.z.object({
|
|
9
|
+
userId: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
exports.UnbanAdminUserCommandResponse = models_1.AdminUserResponseSchema;
|
|
12
|
+
exports.UnbanAdminUserCommand = (0, _common_1.defineContract)({
|
|
13
|
+
method: _common_1.HTTP_METHODS.PATCH,
|
|
14
|
+
path: admin_1.ADMIN_ROUTES.UNBAN_USER(':userId'),
|
|
15
|
+
summary: 'Unban a user',
|
|
16
|
+
request: {
|
|
17
|
+
params: exports.UnbanAdminUserCommandParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: exports.UnbanAdminUserCommandResponse,
|
|
21
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
},
|
|
27
|
+
});
|
package/build/errors/errors.d.ts
CHANGED
|
@@ -363,6 +363,36 @@ export declare const ERRORS: {
|
|
|
363
363
|
readonly code: "GENERATION_JOB.ATTACHMENT_SLOT_REQUIRES_COMPANION";
|
|
364
364
|
readonly message: "Это вложение нельзя использовать без другого обязательного вложения";
|
|
365
365
|
};
|
|
366
|
+
readonly ATTACHMENT_DURATION_OUT_OF_RANGE: {
|
|
367
|
+
readonly httpCode: 400;
|
|
368
|
+
readonly code: "GENERATION_JOB.ATTACHMENT_DURATION_OUT_OF_RANGE";
|
|
369
|
+
readonly message: "Длительность одного или нескольких прикреплённых файлов выходит за допустимые для этой модели пределы";
|
|
370
|
+
};
|
|
371
|
+
readonly ATTACHMENT_DIMENSIONS_OUT_OF_RANGE: {
|
|
372
|
+
readonly httpCode: 400;
|
|
373
|
+
readonly code: "GENERATION_JOB.ATTACHMENT_DIMENSIONS_OUT_OF_RANGE";
|
|
374
|
+
readonly message: "Размеры одного или нескольких прикреплённых файлов не подходят для этой модели";
|
|
375
|
+
};
|
|
376
|
+
readonly ATTACHMENT_SLOT_NOT_ALLOWED_FOR_MODE: {
|
|
377
|
+
readonly httpCode: 400;
|
|
378
|
+
readonly code: "GENERATION_JOB.ATTACHMENT_SLOT_NOT_ALLOWED_FOR_MODE";
|
|
379
|
+
readonly message: "Это вложение нельзя использовать в выбранном режиме генерации";
|
|
380
|
+
};
|
|
381
|
+
readonly INVALID_ELEMENT_REFERENCES: {
|
|
382
|
+
readonly httpCode: 400;
|
|
383
|
+
readonly code: "GENERATION_JOB.INVALID_ELEMENT_REFERENCES";
|
|
384
|
+
readonly message: "Субъекты или голоса заданы некорректно";
|
|
385
|
+
};
|
|
386
|
+
readonly TOO_MANY_REFERENCES: {
|
|
387
|
+
readonly httpCode: 400;
|
|
388
|
+
readonly code: "GENERATION_JOB.TOO_MANY_REFERENCES";
|
|
389
|
+
readonly message: "Слишком много референсов для одной генерации";
|
|
390
|
+
};
|
|
391
|
+
readonly TOO_MANY_FRAMES_FOR_DURATION: {
|
|
392
|
+
readonly httpCode: 400;
|
|
393
|
+
readonly code: "GENERATION_JOB.TOO_MANY_FRAMES_FOR_DURATION";
|
|
394
|
+
readonly message: "Слишком много кадров для выбранной длительности видео";
|
|
395
|
+
};
|
|
366
396
|
readonly CHAT_MODEL_MISMATCH: {
|
|
367
397
|
readonly httpCode: 400;
|
|
368
398
|
readonly code: "GENERATION_JOB.CHAT_MODEL_MISMATCH";
|
|
@@ -640,6 +670,11 @@ export declare const ERRORS: {
|
|
|
640
670
|
readonly code: "USER.BAN_ERROR";
|
|
641
671
|
readonly message: "Не удалось заблокировать пользователя";
|
|
642
672
|
};
|
|
673
|
+
readonly UNBAN_ERROR: {
|
|
674
|
+
readonly httpCode: 500;
|
|
675
|
+
readonly code: "USER.UNBAN_ERROR";
|
|
676
|
+
readonly message: "Не удалось разблокировать пользователя";
|
|
677
|
+
};
|
|
643
678
|
readonly FIND_ERROR: {
|
|
644
679
|
readonly httpCode: 500;
|
|
645
680
|
readonly code: "USER.FIND_ERROR";
|
|
@@ -786,6 +821,11 @@ export declare const ERRORS: {
|
|
|
786
821
|
readonly code: "ADMIN.CANNOT_BAN_ADMIN";
|
|
787
822
|
readonly message: "Невозможно заблокировать администратора";
|
|
788
823
|
};
|
|
824
|
+
readonly USER_NOT_BANNED: {
|
|
825
|
+
readonly httpCode: 400;
|
|
826
|
+
readonly code: "ADMIN.USER_NOT_BANNED";
|
|
827
|
+
readonly message: "Пользователь не заблокирован";
|
|
828
|
+
};
|
|
789
829
|
readonly STATS_ERROR: {
|
|
790
830
|
readonly httpCode: 500;
|
|
791
831
|
readonly code: "ADMIN.STATS_ERROR";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAq3CT,CAAC"}
|
package/build/errors/errors.js
CHANGED
|
@@ -366,6 +366,36 @@ exports.ERRORS = {
|
|
|
366
366
|
code: 'GENERATION_JOB.ATTACHMENT_SLOT_REQUIRES_COMPANION',
|
|
367
367
|
message: 'Это вложение нельзя использовать без другого обязательного вложения',
|
|
368
368
|
},
|
|
369
|
+
ATTACHMENT_DURATION_OUT_OF_RANGE: {
|
|
370
|
+
httpCode: 400,
|
|
371
|
+
code: 'GENERATION_JOB.ATTACHMENT_DURATION_OUT_OF_RANGE',
|
|
372
|
+
message: 'Длительность одного или нескольких прикреплённых файлов выходит за допустимые для этой модели пределы',
|
|
373
|
+
},
|
|
374
|
+
ATTACHMENT_DIMENSIONS_OUT_OF_RANGE: {
|
|
375
|
+
httpCode: 400,
|
|
376
|
+
code: 'GENERATION_JOB.ATTACHMENT_DIMENSIONS_OUT_OF_RANGE',
|
|
377
|
+
message: 'Размеры одного или нескольких прикреплённых файлов не подходят для этой модели',
|
|
378
|
+
},
|
|
379
|
+
ATTACHMENT_SLOT_NOT_ALLOWED_FOR_MODE: {
|
|
380
|
+
httpCode: 400,
|
|
381
|
+
code: 'GENERATION_JOB.ATTACHMENT_SLOT_NOT_ALLOWED_FOR_MODE',
|
|
382
|
+
message: 'Это вложение нельзя использовать в выбранном режиме генерации',
|
|
383
|
+
},
|
|
384
|
+
INVALID_ELEMENT_REFERENCES: {
|
|
385
|
+
httpCode: 400,
|
|
386
|
+
code: 'GENERATION_JOB.INVALID_ELEMENT_REFERENCES',
|
|
387
|
+
message: 'Субъекты или голоса заданы некорректно',
|
|
388
|
+
},
|
|
389
|
+
TOO_MANY_REFERENCES: {
|
|
390
|
+
httpCode: 400,
|
|
391
|
+
code: 'GENERATION_JOB.TOO_MANY_REFERENCES',
|
|
392
|
+
message: 'Слишком много референсов для одной генерации',
|
|
393
|
+
},
|
|
394
|
+
TOO_MANY_FRAMES_FOR_DURATION: {
|
|
395
|
+
httpCode: 400,
|
|
396
|
+
code: 'GENERATION_JOB.TOO_MANY_FRAMES_FOR_DURATION',
|
|
397
|
+
message: 'Слишком много кадров для выбранной длительности видео',
|
|
398
|
+
},
|
|
369
399
|
CHAT_MODEL_MISMATCH: {
|
|
370
400
|
httpCode: 400,
|
|
371
401
|
code: 'GENERATION_JOB.CHAT_MODEL_MISMATCH',
|
|
@@ -643,6 +673,11 @@ exports.ERRORS = {
|
|
|
643
673
|
code: 'USER.BAN_ERROR',
|
|
644
674
|
message: 'Не удалось заблокировать пользователя',
|
|
645
675
|
},
|
|
676
|
+
UNBAN_ERROR: {
|
|
677
|
+
httpCode: 500,
|
|
678
|
+
code: 'USER.UNBAN_ERROR',
|
|
679
|
+
message: 'Не удалось разблокировать пользователя',
|
|
680
|
+
},
|
|
646
681
|
FIND_ERROR: {
|
|
647
682
|
httpCode: 500,
|
|
648
683
|
code: 'USER.FIND_ERROR',
|
|
@@ -789,6 +824,11 @@ exports.ERRORS = {
|
|
|
789
824
|
code: 'ADMIN.CANNOT_BAN_ADMIN',
|
|
790
825
|
message: 'Невозможно заблокировать администратора',
|
|
791
826
|
},
|
|
827
|
+
USER_NOT_BANNED: {
|
|
828
|
+
httpCode: 400,
|
|
829
|
+
code: 'ADMIN.USER_NOT_BANNED',
|
|
830
|
+
message: 'Пользователь не заблокирован',
|
|
831
|
+
},
|
|
792
832
|
STATS_ERROR: {
|
|
793
833
|
httpCode: 500,
|
|
794
834
|
code: 'ADMIN.STATS_ERROR',
|
|
@@ -28,6 +28,12 @@ export declare const GetGenerationModelsByTypeQueryResponse: z.ZodObject<{
|
|
|
28
28
|
maxSize: z.ZodInt;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
31
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
34
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
35
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
31
37
|
}, z.core.$strip>>;
|
|
32
38
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
33
39
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -84,6 +90,12 @@ export declare const GetGenerationModelsByTypeQuery: {
|
|
|
84
90
|
maxSize: z.ZodInt;
|
|
85
91
|
}, z.core.$strip>;
|
|
86
92
|
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
93
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
96
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
97
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
87
99
|
}, z.core.$strip>>;
|
|
88
100
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
89
101
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generation-models-by-type.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models-by-type.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"get-generation-models-by-type.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models-by-type.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjD,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWzC,CAAC"}
|
|
@@ -25,6 +25,12 @@ export declare const GetGenerationModelsQueryResponse: 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>>;
|
|
@@ -76,6 +82,12 @@ export declare const GetGenerationModelsQuery: {
|
|
|
76
82
|
maxSize: z.ZodInt;
|
|
77
83
|
}, z.core.$strip>;
|
|
78
84
|
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
85
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
88
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
89
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
79
91
|
}, z.core.$strip>>;
|
|
80
92
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
81
93
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generation-models.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"get-generation-models.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE3C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnC,CAAC"}
|
|
@@ -12,6 +12,12 @@ export declare const AttachmentSlotSchema: z.ZodObject<{
|
|
|
12
12
|
maxSize: z.ZodInt;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
15
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
18
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
19
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
15
21
|
}, z.core.$strip>;
|
|
16
22
|
export declare const AttachmentPolicySchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
17
23
|
fileType: z.ZodEnum<typeof FILE_TYPE>;
|
|
@@ -23,6 +29,12 @@ export declare const AttachmentPolicySchema: z.ZodRecord<z.ZodString, z.ZodObjec
|
|
|
23
29
|
maxSize: z.ZodInt;
|
|
24
30
|
}, z.core.$strip>;
|
|
25
31
|
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
32
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
35
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
36
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
26
38
|
}, z.core.$strip>>;
|
|
27
39
|
export declare const AttachmentSlotConflictSchema: z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>;
|
|
28
40
|
export declare const DependentAttachmentSlotsSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -50,6 +62,12 @@ export declare const GenerationModelResponseSchema: z.ZodObject<{
|
|
|
50
62
|
maxSize: z.ZodInt;
|
|
51
63
|
}, z.core.$strip>;
|
|
52
64
|
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
65
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
68
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
69
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
53
71
|
}, z.core.$strip>>;
|
|
54
72
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
55
73
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation-model-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-model/models/generation-model-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAwB,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK3C,eAAO,MAAM,oBAAoB,mCAA0B,CAAC;AAE5D,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"generation-model-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-model/models/generation-model-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAwB,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK3C,eAAO,MAAM,oBAAoB,mCAA0B,CAAC;AAE5D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;iBAY/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;kBAA6C,CAAC;AAEjF,eAAO,MAAM,4BAA4B,sEAAsD,CAAC;AAEhG,eAAO,MAAM,8BAA8B,mDAA4C,CAAC;AAExF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBxC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -14,6 +14,12 @@ exports.AttachmentSlotSchema = zod_1.z.object({
|
|
|
14
14
|
maxCount: zod_1.z.int().positive(),
|
|
15
15
|
allowedFormats: file_1.FileFormatListSchema,
|
|
16
16
|
maxSizeBytes: zod_1.z.int().positive().optional(),
|
|
17
|
+
minDurationSec: zod_1.z.number().positive().optional(),
|
|
18
|
+
maxDurationSec: zod_1.z.number().positive().optional(),
|
|
19
|
+
minSidePx: zod_1.z.int().positive().optional(),
|
|
20
|
+
maxSidePx: zod_1.z.int().positive().optional(),
|
|
21
|
+
minAspectRatio: zod_1.z.number().positive().optional(),
|
|
22
|
+
maxAspectRatio: zod_1.z.number().positive().optional(),
|
|
17
23
|
});
|
|
18
24
|
exports.AttachmentPolicySchema = zod_1.z.record(zod_1.z.string(), exports.AttachmentSlotSchema);
|
|
19
25
|
exports.AttachmentSlotConflictSchema = zod_1.z.tuple([zod_1.z.array(zod_1.z.string()), zod_1.z.array(zod_1.z.string())]);
|