@purpleschool/gptbot 0.14.32 → 0.14.34
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/api/controllers/http/user.ts +1 -0
- package/build/api/controllers/http/user.js +1 -0
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-image.command.js +3 -2
- package/build/commands/user/get-me.command.js +1 -0
- package/build/commands/user/index.js +1 -0
- package/build/commands/user/patch-digital-processing-consent.command.js +15 -0
- package/commands/avatar-studio/generation-job/generate-avatar-studio-image.command.ts +3 -2
- package/commands/user/get-me.command.ts +1 -0
- package/commands/user/index.ts +1 -0
- package/commands/user/patch-digital-processing-consent.command.ts +17 -0
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const models_1 = require("../../../models");
|
|
6
6
|
const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
|
|
7
7
|
/**
|
|
8
|
-
* Генерация изображения в медиатеку пользователя.
|
|
9
|
-
*
|
|
8
|
+
* Генерация изображения в медиатеку пользователя. Медиатека принадлежит пользователю,
|
|
9
|
+
* и картинка доступна из любого его клипа — поэтому роут плоский, а clipId опционален.
|
|
10
10
|
*/
|
|
11
11
|
var GenerateAvatarStudioImageCommand;
|
|
12
12
|
(function (GenerateAvatarStudioImageCommand) {
|
|
@@ -15,6 +15,7 @@ var GenerateAvatarStudioImageCommand;
|
|
|
15
15
|
prompt: zod_1.z.string().trim().min(1),
|
|
16
16
|
referenceMediaIds: avatar_studio_common_schema_1.AvatarStudioUuidListSchema.optional(),
|
|
17
17
|
aspectRatio: models_1.AvatarStudioAspectRatioSchema.default('9:16'),
|
|
18
|
+
clipId: zod_1.z.string().uuid().optional(),
|
|
18
19
|
})
|
|
19
20
|
.strict();
|
|
20
21
|
GenerateAvatarStudioImageCommand.ResponseSchema = zod_1.z.object({
|
|
@@ -19,6 +19,7 @@ var GetMeCommand;
|
|
|
19
19
|
telegramUserName: zod_1.z.string().nullable(),
|
|
20
20
|
webmasterId: zod_1.z.string().uuid().nullable(),
|
|
21
21
|
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
22
|
+
digitalProcessingConsent: zod_1.z.boolean(),
|
|
22
23
|
profile: models_1.UserProfileResponseSchema,
|
|
23
24
|
}),
|
|
24
25
|
});
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./find-user-by-uuid.command"), exports);
|
|
|
19
19
|
__exportStar(require("./get-client-country-code.command"), exports);
|
|
20
20
|
__exportStar(require("./get-me.command"), exports);
|
|
21
21
|
__exportStar(require("./patch-locale.command"), exports);
|
|
22
|
+
__exportStar(require("./patch-digital-processing-consent.command"), exports);
|
|
22
23
|
__exportStar(require("./up-token-bonus-balance.command"), exports);
|
|
23
24
|
__exportStar(require("./find-users-by-criteria.command"), exports);
|
|
24
25
|
__exportStar(require("./get-user-balance.command"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PatchDigitalProcessingConsentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var PatchDigitalProcessingConsentCommand;
|
|
6
|
+
(function (PatchDigitalProcessingConsentCommand) {
|
|
7
|
+
PatchDigitalProcessingConsentCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
digitalProcessingConsent: zod_1.z.boolean(),
|
|
9
|
+
});
|
|
10
|
+
PatchDigitalProcessingConsentCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.object({
|
|
12
|
+
digitalProcessingConsent: zod_1.z.boolean(),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
})(PatchDigitalProcessingConsentCommand || (exports.PatchDigitalProcessingConsentCommand = PatchDigitalProcessingConsentCommand = {}));
|
|
@@ -3,8 +3,8 @@ import { AvatarStudioAspectRatioSchema, AvatarStudioGenerationJobSchema } from '
|
|
|
3
3
|
import { AvatarStudioUuidListSchema } from '../shared/avatar-studio-common.schema';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Генерация изображения в медиатеку пользователя.
|
|
7
|
-
*
|
|
6
|
+
* Генерация изображения в медиатеку пользователя. Медиатека принадлежит пользователю,
|
|
7
|
+
* и картинка доступна из любого его клипа — поэтому роут плоский, а clipId опционален.
|
|
8
8
|
*/
|
|
9
9
|
export namespace GenerateAvatarStudioImageCommand {
|
|
10
10
|
export const RequestSchema = z
|
|
@@ -12,6 +12,7 @@ export namespace GenerateAvatarStudioImageCommand {
|
|
|
12
12
|
prompt: z.string().trim().min(1),
|
|
13
13
|
referenceMediaIds: AvatarStudioUuidListSchema.optional(),
|
|
14
14
|
aspectRatio: AvatarStudioAspectRatioSchema.default('9:16'),
|
|
15
|
+
clipId: z.string().uuid().optional(),
|
|
15
16
|
})
|
|
16
17
|
.strict();
|
|
17
18
|
export type Request = z.infer<typeof RequestSchema>;
|
package/commands/user/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './find-user-by-uuid.command';
|
|
|
3
3
|
export * from './get-client-country-code.command';
|
|
4
4
|
export * from './get-me.command';
|
|
5
5
|
export * from './patch-locale.command';
|
|
6
|
+
export * from './patch-digital-processing-consent.command';
|
|
6
7
|
export * from './up-token-bonus-balance.command';
|
|
7
8
|
export * from './find-users-by-criteria.command';
|
|
8
9
|
export * from './get-user-balance.command';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export namespace PatchDigitalProcessingConsentCommand {
|
|
4
|
+
export const RequestSchema = z.object({
|
|
5
|
+
digitalProcessingConsent: z.boolean(),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
|
|
10
|
+
export const ResponseSchema = z.object({
|
|
11
|
+
data: z.object({
|
|
12
|
+
digitalProcessingConsent: z.boolean(),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
17
|
+
}
|