@purpleschool/gptbot 0.15.75 → 0.15.77-stage-2
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/api/controllers/http/avatar-studio.d.ts +12 -0
- package/build/api/controllers/http/avatar-studio.js +13 -0
- package/build/api/controllers/http/paraphrase.d.ts +1 -0
- package/build/api/controllers/http/paraphrase.js +1 -0
- package/build/api/routes.d.ts +2 -0
- package/build/api/routes.js +2 -0
- package/build/commands/ai-model/create-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/find-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/find-ai-models-available-to-user.comand.d.ts +0 -5
- package/build/commands/ai-model/find-formatted-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/update-ai-model.command.d.ts +0 -10
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +0 -5
- package/build/commands/ai-studio/canvas-tool/text-gen/get-text-generation-config.command.d.ts +0 -5
- package/build/commands/ai-studio/canvas-tool/var-gen/get-var-gen-config.command.d.ts +0 -5
- package/build/commands/avatar-studio/character/create-avatar-studio-character.command.d.ts +32 -0
- package/build/commands/avatar-studio/character/create-avatar-studio-character.command.js +23 -0
- package/build/commands/avatar-studio/character/delete-avatar-studio-character.command.d.ts +13 -0
- package/build/commands/avatar-studio/character/delete-avatar-studio-character.command.js +12 -0
- package/build/commands/avatar-studio/character/find-avatar-studio-characters.query.d.ts +28 -0
- package/build/commands/avatar-studio/character/find-avatar-studio-characters.query.js +10 -0
- package/build/commands/avatar-studio/character/generate-avatar-studio-character-reference.command.d.ts +76 -0
- package/build/commands/avatar-studio/character/generate-avatar-studio-character-reference.command.js +24 -0
- package/build/commands/avatar-studio/character/get-avatar-studio-character.query.d.ts +25 -0
- package/build/commands/avatar-studio/character/get-avatar-studio-character.query.js +13 -0
- package/build/commands/avatar-studio/character/index.d.ts +6 -0
- package/build/{helpers/ai-model → commands/avatar-studio/character}/index.js +6 -1
- package/build/commands/avatar-studio/character/update-avatar-studio-character.command.d.ts +32 -0
- package/build/commands/avatar-studio/character/update-avatar-studio-character.command.js +24 -0
- package/build/commands/avatar-studio/clip/create-avatar-studio-clip.command.d.ts +2 -0
- package/build/commands/avatar-studio/clip/find-avatar-studio-clips.query.d.ts +2 -0
- package/build/commands/avatar-studio/clip/get-avatar-studio-clip.query.d.ts +2 -0
- package/build/commands/avatar-studio/clip/update-avatar-studio-clip.command.d.ts +2 -0
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-frame.command.d.ts +3 -1
- package/build/commands/avatar-studio/generation-job/generate-avatar-studio-frame.command.js +5 -1
- package/build/commands/avatar-studio/index.d.ts +2 -0
- package/build/commands/avatar-studio/index.js +2 -0
- package/build/commands/avatar-studio/location/create-avatar-studio-location.command.d.ts +30 -0
- package/build/commands/avatar-studio/location/create-avatar-studio-location.command.js +22 -0
- package/build/commands/avatar-studio/location/delete-avatar-studio-location.command.d.ts +13 -0
- package/build/commands/avatar-studio/location/delete-avatar-studio-location.command.js +12 -0
- package/build/commands/avatar-studio/location/find-avatar-studio-locations.query.d.ts +27 -0
- package/build/commands/avatar-studio/location/find-avatar-studio-locations.query.js +10 -0
- package/build/commands/avatar-studio/location/generate-avatar-studio-location-reference.command.d.ts +76 -0
- package/build/commands/avatar-studio/location/generate-avatar-studio-location-reference.command.js +24 -0
- package/build/commands/avatar-studio/location/get-avatar-studio-location.query.d.ts +24 -0
- package/build/commands/avatar-studio/location/get-avatar-studio-location.query.js +13 -0
- package/build/commands/avatar-studio/location/index.d.ts +6 -0
- package/build/commands/avatar-studio/location/index.js +22 -0
- package/build/commands/avatar-studio/location/update-avatar-studio-location.command.d.ts +30 -0
- package/build/commands/avatar-studio/location/update-avatar-studio-location.command.js +23 -0
- package/build/commands/avatar-studio/scene/apply-avatar-studio-voice-to-all-scenes.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/create-avatar-studio-scene.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/reorder-avatar-studio-scenes.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/set-avatar-studio-scene-slot.command.d.ts +2 -0
- package/build/commands/avatar-studio/scene/update-avatar-studio-scene.command.d.ts +4 -0
- package/build/commands/avatar-studio/scriptwriter/apply-avatar-studio-scriptwriter-message.command.d.ts +2 -0
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.d.ts +8 -0
- package/build/commands/avatar-studio/shared/avatar-studio-common.schema.js +8 -1
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.d.ts +42 -0
- package/build/commands/avatar-studio/shared/get-avatar-studio-config.query.js +22 -0
- package/build/commands/b2b/get-b2b-documentation.command.d.ts +0 -10
- package/build/commands/page/find-page-by-alias.command.d.ts +0 -10
- package/build/commands/page/find-page.command.d.ts +0 -5
- package/build/commands/page/find-pages-by-criteria.command.d.ts +0 -10
- package/build/commands/tools/paraphrase/find-paraphrase-job-by-uuid.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/get-paraphrase-price.command.d.ts +31 -0
- package/build/commands/tools/paraphrase/get-paraphrase-price.command.js +30 -0
- package/build/commands/tools/paraphrase/get-paraphrase-tool-config.command.d.ts +3 -0
- package/build/commands/tools/paraphrase/index.d.ts +1 -0
- package/build/commands/tools/paraphrase/index.js +1 -0
- package/build/commands/tools/paraphrase/paraphrase.command.d.ts +36 -1
- package/build/commands/tools/paraphrase/paraphrase.command.js +16 -3
- package/build/commands/tools/paraphrase/retry-paraphrase-job.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/update-paraphrase-job-favorite.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.d.ts +20 -0
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.d.ts +0 -1
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.js +0 -1
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.d.ts +5 -1
- package/build/constants/avatar-studio/enums/avatar-studio-job-type.enum.js +4 -0
- package/build/constants/avatar-studio/enums/avatar-studio-reference-card-status.enum.d.ts +6 -0
- package/build/constants/avatar-studio/enums/avatar-studio-reference-card-status.enum.js +10 -0
- package/build/constants/avatar-studio/enums/index.d.ts +1 -0
- package/build/constants/avatar-studio/enums/index.js +1 -0
- package/build/constants/tool-paraphrase/enums/index.d.ts +1 -0
- package/build/constants/tool-paraphrase/enums/index.js +1 -0
- package/build/constants/tool-paraphrase/enums/paraphrase-input-kind.enum.d.ts +4 -0
- package/build/constants/tool-paraphrase/enums/paraphrase-input-kind.enum.js +8 -0
- package/build/helpers/index.d.ts +0 -1
- package/build/helpers/index.js +0 -1
- package/build/models/ai-model-config.schema.d.ts +0 -11
- package/build/models/ai-model-config.schema.js +1 -8
- package/build/models/ai-model-formatted.schema.d.ts +0 -5
- package/build/models/ai-model.schema.d.ts +0 -15
- package/build/models/avatar-studio/avatar-studio.schema.d.ts +59 -1
- package/build/models/avatar-studio/avatar-studio.schema.js +31 -1
- package/build/models/canvas-node-definition.schema.d.ts +0 -20
- package/build/models/tools/paraphrase/index.d.ts +1 -0
- package/build/models/tools/paraphrase/index.js +1 -0
- package/build/models/tools/paraphrase/paraphrase-config.schema.d.ts +3 -0
- package/build/models/tools/paraphrase/paraphrase-config.schema.js +1 -0
- package/build/models/tools/paraphrase/paraphrase-document.schema.d.ts +10 -0
- package/build/models/tools/paraphrase/paraphrase-document.schema.js +13 -0
- package/build/models/tools/paraphrase/paraphrase-job.schema.d.ts +21 -1
- package/build/models/tools/paraphrase/paraphrase-job.schema.js +5 -0
- package/build/models/tools/paraphrase/paraphrase-model.schema.d.ts +2 -0
- package/build/models/tools/paraphrase/paraphrase-model.schema.js +2 -0
- package/package.json +1 -1
- package/build/helpers/ai-model/calc-base-text-generation-price.helper.d.ts +0 -8
- package/build/helpers/ai-model/calc-base-text-generation-price.helper.js +0 -15
- package/build/helpers/ai-model/index.d.ts +0 -1
|
@@ -42,4 +42,16 @@ export declare const AVATAR_STUDIO_ROUTES: {
|
|
|
42
42
|
readonly GET_EXPORT_JOB: (jobId: string) => string;
|
|
43
43
|
readonly GET_CLIP_EXPORT_JOBS: (clipId: string) => string;
|
|
44
44
|
readonly START_EXPORT: (clipId: string) => string;
|
|
45
|
+
readonly CREATE_CHARACTER: 'characters';
|
|
46
|
+
readonly GET_CHARACTERS: 'characters';
|
|
47
|
+
readonly GET_CHARACTER: (characterId: string) => string;
|
|
48
|
+
readonly UPDATE_CHARACTER: (characterId: string) => string;
|
|
49
|
+
readonly DELETE_CHARACTER: (characterId: string) => string;
|
|
50
|
+
readonly GENERATE_CHARACTER_REFERENCE: (characterId: string) => string;
|
|
51
|
+
readonly CREATE_LOCATION: 'locations';
|
|
52
|
+
readonly GET_LOCATIONS: 'locations';
|
|
53
|
+
readonly GET_LOCATION: (locationId: string) => string;
|
|
54
|
+
readonly UPDATE_LOCATION: (locationId: string) => string;
|
|
55
|
+
readonly DELETE_LOCATION: (locationId: string) => string;
|
|
56
|
+
readonly GENERATE_LOCATION_REFERENCE: (locationId: string) => string;
|
|
45
57
|
};
|
|
@@ -48,4 +48,17 @@ exports.AVATAR_STUDIO_ROUTES = {
|
|
|
48
48
|
GET_EXPORT_JOB: (jobId) => `export-jobs/${jobId}`,
|
|
49
49
|
GET_CLIP_EXPORT_JOBS: (clipId) => `clips/${clipId}/export-jobs`,
|
|
50
50
|
START_EXPORT: (clipId) => `clips/${clipId}/export`,
|
|
51
|
+
// Персонажи и локации принадлежат пользователю, а не клипу — роуты плоские.
|
|
52
|
+
CREATE_CHARACTER: 'characters',
|
|
53
|
+
GET_CHARACTERS: 'characters',
|
|
54
|
+
GET_CHARACTER: (characterId) => `characters/${characterId}`,
|
|
55
|
+
UPDATE_CHARACTER: (characterId) => `characters/${characterId}`,
|
|
56
|
+
DELETE_CHARACTER: (characterId) => `characters/${characterId}`,
|
|
57
|
+
GENERATE_CHARACTER_REFERENCE: (characterId) => `characters/${characterId}/reference/generate`,
|
|
58
|
+
CREATE_LOCATION: 'locations',
|
|
59
|
+
GET_LOCATIONS: 'locations',
|
|
60
|
+
GET_LOCATION: (locationId) => `locations/${locationId}`,
|
|
61
|
+
UPDATE_LOCATION: (locationId) => `locations/${locationId}`,
|
|
62
|
+
DELETE_LOCATION: (locationId) => `locations/${locationId}`,
|
|
63
|
+
GENERATE_LOCATION_REFERENCE: (locationId) => `locations/${locationId}/reference/generate`,
|
|
51
64
|
};
|
|
@@ -2,6 +2,7 @@ export declare const PARAPHRASE_CONTROLLER_PRIVATE: 'private/tools/paraphrase';
|
|
|
2
2
|
export declare const PARAPHRASE_CONTROLLER_PUBLIC: 'public/tools/paraphrase';
|
|
3
3
|
export declare const PARAPHRASE_ROUTES: {
|
|
4
4
|
readonly CONFIG: 'config';
|
|
5
|
+
readonly PRICE: 'price';
|
|
5
6
|
readonly EXECUTE: 'execute';
|
|
6
7
|
readonly GET_JOBS: 'jobs';
|
|
7
8
|
readonly GET_JOB: (uuid: string) => string;
|
|
@@ -5,6 +5,7 @@ exports.PARAPHRASE_CONTROLLER_PRIVATE = 'private/tools/paraphrase';
|
|
|
5
5
|
exports.PARAPHRASE_CONTROLLER_PUBLIC = 'public/tools/paraphrase';
|
|
6
6
|
exports.PARAPHRASE_ROUTES = {
|
|
7
7
|
CONFIG: 'config',
|
|
8
|
+
PRICE: 'price',
|
|
8
9
|
EXECUTE: 'execute',
|
|
9
10
|
GET_JOBS: 'jobs',
|
|
10
11
|
GET_JOB: (uuid) => `jobs/${uuid}`,
|
package/build/api/routes.d.ts
CHANGED
|
@@ -687,6 +687,7 @@ export declare const REST_API: {
|
|
|
687
687
|
};
|
|
688
688
|
readonly PARAPHRASE_PUBLIC: {
|
|
689
689
|
readonly CONFIG: "/api/public/tools/paraphrase/config";
|
|
690
|
+
readonly PRICE: "/api/public/tools/paraphrase/price";
|
|
690
691
|
readonly EXECUTE: "/api/public/tools/paraphrase/execute";
|
|
691
692
|
readonly GET_JOBS: "/api/public/tools/paraphrase/jobs";
|
|
692
693
|
readonly GET_JOB: (uuid: string) => string;
|
|
@@ -699,6 +700,7 @@ export declare const REST_API: {
|
|
|
699
700
|
};
|
|
700
701
|
readonly PARAPHRASE_PRIVATE: {
|
|
701
702
|
readonly CONFIG: "/api/private/tools/paraphrase/config";
|
|
703
|
+
readonly PRICE: "/api/private/tools/paraphrase/price";
|
|
702
704
|
readonly EXECUTE: "/api/private/tools/paraphrase/execute";
|
|
703
705
|
readonly GET_JOBS: "/api/private/tools/paraphrase/jobs";
|
|
704
706
|
readonly GET_JOB: (uuid: string) => string;
|
package/build/api/routes.js
CHANGED
|
@@ -725,6 +725,7 @@ exports.REST_API = {
|
|
|
725
725
|
},
|
|
726
726
|
PARAPHRASE_PUBLIC: {
|
|
727
727
|
CONFIG: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.CONFIG}`,
|
|
728
|
+
PRICE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.PRICE}`,
|
|
728
729
|
EXECUTE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.EXECUTE}`,
|
|
729
730
|
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOBS}`,
|
|
730
731
|
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOB(uuid)}`,
|
|
@@ -737,6 +738,7 @@ exports.REST_API = {
|
|
|
737
738
|
},
|
|
738
739
|
PARAPHRASE_PRIVATE: {
|
|
739
740
|
CONFIG: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.CONFIG}`,
|
|
741
|
+
PRICE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.PRICE}`,
|
|
740
742
|
EXECUTE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.EXECUTE}`,
|
|
741
743
|
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOBS}`,
|
|
742
744
|
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOB(uuid)}`,
|
|
@@ -50,11 +50,6 @@ export declare namespace CreateAIModelCommand {
|
|
|
50
50
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
51
51
|
webSearchPrice: z.ZodNumber;
|
|
52
52
|
}, z.core.$strip>>;
|
|
53
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
54
|
-
stepSize: z.ZodNumber;
|
|
55
|
-
stepPrice: z.ZodNumber;
|
|
56
|
-
isActive: z.ZodBoolean;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
53
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
59
54
|
multiplier: z.ZodNumber;
|
|
60
55
|
}, z.core.$strip>>;
|
|
@@ -120,11 +115,6 @@ export declare namespace CreateAIModelCommand {
|
|
|
120
115
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
121
116
|
webSearchPrice: z.ZodNumber;
|
|
122
117
|
}, z.core.$strip>>;
|
|
123
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
124
|
-
stepSize: z.ZodNumber;
|
|
125
|
-
stepPrice: z.ZodNumber;
|
|
126
|
-
isActive: z.ZodBoolean;
|
|
127
|
-
}, z.core.$strip>>;
|
|
128
118
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
129
119
|
multiplier: z.ZodNumber;
|
|
130
120
|
}, z.core.$strip>>;
|
|
@@ -75,11 +75,6 @@ export declare namespace FindAIModelCommand {
|
|
|
75
75
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
76
76
|
webSearchPrice: z.ZodNumber;
|
|
77
77
|
}, z.core.$strip>>;
|
|
78
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
79
|
-
stepSize: z.ZodNumber;
|
|
80
|
-
stepPrice: z.ZodNumber;
|
|
81
|
-
isActive: z.ZodBoolean;
|
|
82
|
-
}, z.core.$strip>>;
|
|
83
78
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
84
79
|
multiplier: z.ZodNumber;
|
|
85
80
|
}, z.core.$strip>>;
|
|
@@ -149,11 +144,6 @@ export declare namespace FindAIModelCommand {
|
|
|
149
144
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
150
145
|
webSearchPrice: z.ZodNumber;
|
|
151
146
|
}, z.core.$strip>>;
|
|
152
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
153
|
-
stepSize: z.ZodNumber;
|
|
154
|
-
stepPrice: z.ZodNumber;
|
|
155
|
-
isActive: z.ZodBoolean;
|
|
156
|
-
}, z.core.$strip>>;
|
|
157
147
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
158
148
|
multiplier: z.ZodNumber;
|
|
159
149
|
}, z.core.$strip>>;
|
|
@@ -56,11 +56,6 @@ export declare namespace FindAiModelsAvailableToUserCommand {
|
|
|
56
56
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
57
57
|
webSearchPrice: z.ZodNumber;
|
|
58
58
|
}, z.core.$strip>>;
|
|
59
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
60
|
-
stepSize: z.ZodNumber;
|
|
61
|
-
stepPrice: z.ZodNumber;
|
|
62
|
-
isActive: z.ZodBoolean;
|
|
63
|
-
}, z.core.$strip>>;
|
|
64
59
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
65
60
|
multiplier: z.ZodNumber;
|
|
66
61
|
}, z.core.$strip>>;
|
|
@@ -58,11 +58,6 @@ export declare namespace FindFormattedAIModelCommand {
|
|
|
58
58
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
59
59
|
webSearchPrice: z.ZodNumber;
|
|
60
60
|
}, z.core.$strip>>;
|
|
61
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
62
|
-
stepSize: z.ZodNumber;
|
|
63
|
-
stepPrice: z.ZodNumber;
|
|
64
|
-
isActive: z.ZodBoolean;
|
|
65
|
-
}, z.core.$strip>>;
|
|
66
61
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
67
62
|
multiplier: z.ZodNumber;
|
|
68
63
|
}, z.core.$strip>>;
|
|
@@ -131,11 +126,6 @@ export declare namespace FindFormattedAIModelCommand {
|
|
|
131
126
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
132
127
|
webSearchPrice: z.ZodNumber;
|
|
133
128
|
}, z.core.$strip>>;
|
|
134
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
135
|
-
stepSize: z.ZodNumber;
|
|
136
|
-
stepPrice: z.ZodNumber;
|
|
137
|
-
isActive: z.ZodBoolean;
|
|
138
|
-
}, z.core.$strip>>;
|
|
139
129
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
140
130
|
multiplier: z.ZodNumber;
|
|
141
131
|
}, z.core.$strip>>;
|
|
@@ -50,11 +50,6 @@ export declare namespace UpdateAIModelCommand {
|
|
|
50
50
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
51
51
|
webSearchPrice: z.ZodNumber;
|
|
52
52
|
}, z.core.$strip>>;
|
|
53
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
54
|
-
stepSize: z.ZodNumber;
|
|
55
|
-
stepPrice: z.ZodNumber;
|
|
56
|
-
isActive: z.ZodBoolean;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
53
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
59
54
|
multiplier: z.ZodNumber;
|
|
60
55
|
}, z.core.$strip>>;
|
|
@@ -124,11 +119,6 @@ export declare namespace UpdateAIModelCommand {
|
|
|
124
119
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
125
120
|
webSearchPrice: z.ZodNumber;
|
|
126
121
|
}, z.core.$strip>>;
|
|
127
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
128
|
-
stepSize: z.ZodNumber;
|
|
129
|
-
stepPrice: z.ZodNumber;
|
|
130
|
-
isActive: z.ZodBoolean;
|
|
131
|
-
}, z.core.$strip>>;
|
|
132
122
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
133
123
|
multiplier: z.ZodNumber;
|
|
134
124
|
}, z.core.$strip>>;
|
package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts
CHANGED
|
@@ -112,11 +112,6 @@ export declare namespace FindCanvasNodeDefinitionsWithConfigsQuery {
|
|
|
112
112
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
113
113
|
webSearchPrice: z.ZodNumber;
|
|
114
114
|
}, z.core.$strip>>;
|
|
115
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
116
|
-
stepSize: z.ZodNumber;
|
|
117
|
-
stepPrice: z.ZodNumber;
|
|
118
|
-
isActive: z.ZodBoolean;
|
|
119
|
-
}, z.core.$strip>>;
|
|
120
115
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
121
116
|
multiplier: z.ZodNumber;
|
|
122
117
|
}, z.core.$strip>>;
|
package/build/commands/ai-studio/canvas-tool/text-gen/get-text-generation-config.command.d.ts
CHANGED
|
@@ -71,11 +71,6 @@ export declare namespace GetTextGenerationConfigCommand {
|
|
|
71
71
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
72
72
|
webSearchPrice: z.ZodNumber;
|
|
73
73
|
}, z.core.$strip>>;
|
|
74
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
75
|
-
stepSize: z.ZodNumber;
|
|
76
|
-
stepPrice: z.ZodNumber;
|
|
77
|
-
isActive: z.ZodBoolean;
|
|
78
|
-
}, z.core.$strip>>;
|
|
79
74
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
80
75
|
multiplier: z.ZodNumber;
|
|
81
76
|
}, z.core.$strip>>;
|
|
@@ -54,11 +54,6 @@ export declare namespace GetVarGenConfigCommand {
|
|
|
54
54
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
55
55
|
webSearchPrice: z.ZodNumber;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
58
|
-
stepSize: z.ZodNumber;
|
|
59
|
-
stepPrice: z.ZodNumber;
|
|
60
|
-
isActive: z.ZodBoolean;
|
|
61
|
-
}, z.core.$strip>>;
|
|
62
57
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
63
58
|
multiplier: z.ZodNumber;
|
|
64
59
|
}, z.core.$strip>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* fileId опущен — карточка создаётся со status = draft, без reference sheet.
|
|
4
|
+
* fileId уже загруженного файла — карточка сразу ready, отдельного multipart-роута нет.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace CreateAvatarStudioCharacterCommand {
|
|
7
|
+
const RequestSchema: z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
fileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
data: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
18
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
description: z.ZodNullable<z.ZodString>;
|
|
21
|
+
fileId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
|
|
24
|
+
error: z.ZodNullable<z.ZodString>;
|
|
25
|
+
generationJobId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
createdAt: z.ZodDate;
|
|
27
|
+
updatedAt: z.ZodDate;
|
|
28
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAvatarStudioCharacterCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
/**
|
|
7
|
+
* fileId опущен — карточка создаётся со status = draft, без reference sheet.
|
|
8
|
+
* fileId уже загруженного файла — карточка сразу ready, отдельного multipart-роута нет.
|
|
9
|
+
*/
|
|
10
|
+
var CreateAvatarStudioCharacterCommand;
|
|
11
|
+
(function (CreateAvatarStudioCharacterCommand) {
|
|
12
|
+
CreateAvatarStudioCharacterCommand.RequestSchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
name: zod_1.z.string().trim().min(1).max(255),
|
|
15
|
+
description: zod_1.z.string().trim().max(2000).nullable().optional(),
|
|
16
|
+
fileId: zod_1.z.string().uuid().nullable().optional(),
|
|
17
|
+
voiceId: zod_1.z.string().uuid().nullable().optional(),
|
|
18
|
+
})
|
|
19
|
+
.strict();
|
|
20
|
+
CreateAvatarStudioCharacterCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
data: models_1.AvatarStudioCharacterSchema,
|
|
22
|
+
});
|
|
23
|
+
})(CreateAvatarStudioCharacterCommand || (exports.CreateAvatarStudioCharacterCommand = CreateAvatarStudioCharacterCommand = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteAvatarStudioCharacterCommand {
|
|
3
|
+
const ParamsSchema: z.ZodObject<{
|
|
4
|
+
characterId: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type Params = z.infer<typeof ParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
uuid: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAvatarStudioCharacterCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
|
|
6
|
+
var DeleteAvatarStudioCharacterCommand;
|
|
7
|
+
(function (DeleteAvatarStudioCharacterCommand) {
|
|
8
|
+
DeleteAvatarStudioCharacterCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioCharacterIdParamsSchema;
|
|
9
|
+
DeleteAvatarStudioCharacterCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
+
data: zod_1.z.object({ uuid: zod_1.z.string().uuid() }),
|
|
11
|
+
});
|
|
12
|
+
})(DeleteAvatarStudioCharacterCommand || (exports.DeleteAvatarStudioCharacterCommand = DeleteAvatarStudioCharacterCommand = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace FindAvatarStudioCharactersQuery {
|
|
3
|
+
const QuerySchema: z.ZodObject<{
|
|
4
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
5
|
+
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type Query = z.infer<typeof QuerySchema>;
|
|
8
|
+
const ResponseSchema: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
uuid: z.ZodString;
|
|
11
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
12
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
description: z.ZodNullable<z.ZodString>;
|
|
15
|
+
fileId: z.ZodNullable<z.ZodString>;
|
|
16
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
|
17
|
+
status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
|
|
18
|
+
error: z.ZodNullable<z.ZodString>;
|
|
19
|
+
generationJobId: z.ZodNullable<z.ZodString>;
|
|
20
|
+
createdAt: z.ZodDate;
|
|
21
|
+
updatedAt: z.ZodDate;
|
|
22
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
page: z.ZodNumber;
|
|
25
|
+
totalPages: z.ZodNumber;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAvatarStudioCharactersQuery = void 0;
|
|
4
|
+
const models_1 = require("../../../models");
|
|
5
|
+
const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
|
|
6
|
+
var FindAvatarStudioCharactersQuery;
|
|
7
|
+
(function (FindAvatarStudioCharactersQuery) {
|
|
8
|
+
FindAvatarStudioCharactersQuery.QuerySchema = avatar_studio_common_schema_1.AvatarStudioPaginationQuerySchema;
|
|
9
|
+
FindAvatarStudioCharactersQuery.ResponseSchema = (0, avatar_studio_common_schema_1.AvatarStudioPagedResponseSchema)(models_1.AvatarStudioCharacterSchema);
|
|
10
|
+
})(FindAvatarStudioCharactersQuery || (exports.FindAvatarStudioCharactersQuery = FindAvatarStudioCharactersQuery = {}));
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* prompt переопределяет построенный промпт reference sheet целиком.
|
|
4
|
+
* photoFileId — опциональное фото пользователя: генерация уходит в image-to-image
|
|
5
|
+
* и просит сохранить внешность с референса, а не выдумывать её по описанию.
|
|
6
|
+
*/
|
|
7
|
+
export declare namespace GenerateAvatarStudioCharacterReferenceCommand {
|
|
8
|
+
const ParamsSchema: z.ZodObject<{
|
|
9
|
+
characterId: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type Params = z.infer<typeof ParamsSchema>;
|
|
12
|
+
const RequestSchema: z.ZodObject<{
|
|
13
|
+
prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
17
|
+
const ResponseSchema: z.ZodObject<{
|
|
18
|
+
data: z.ZodObject<{
|
|
19
|
+
uuid: z.ZodString;
|
|
20
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
clipId: z.ZodNullable<z.ZodString>;
|
|
23
|
+
sceneId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
toolJobId: z.ZodNullable<z.ZodString>;
|
|
25
|
+
type: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_JOB_TYPE>;
|
|
26
|
+
targetSlot: z.ZodNullable<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_SLOT>>;
|
|
27
|
+
status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_JOB_STATUS>;
|
|
28
|
+
request: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<import("../../..").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../..").JsonValue, unknown>>>>;
|
|
29
|
+
resultMediaId: z.ZodNullable<z.ZodString>;
|
|
30
|
+
error: z.ZodNullable<z.ZodString>;
|
|
31
|
+
resultMedia: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
32
|
+
uuid: z.ZodString;
|
|
33
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
34
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
35
|
+
fileId: z.ZodString;
|
|
36
|
+
kind: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_MEDIA_KIND>;
|
|
37
|
+
title: z.ZodNullable<z.ZodString>;
|
|
38
|
+
toolJobId: z.ZodNullable<z.ZodString>;
|
|
39
|
+
durationSeconds: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
transcript: z.ZodNullable<z.ZodString>;
|
|
41
|
+
wordTimings: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
42
|
+
word: z.ZodString;
|
|
43
|
+
start: z.ZodNumber;
|
|
44
|
+
end: z.ZodNumber;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
subtitles: z.ZodNullable<z.ZodType<import("../../..").JsonValue, unknown, z.core.$ZodTypeInternals<import("../../..").JsonValue, unknown>>>;
|
|
47
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
48
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
uuid: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
size: z.ZodNumber;
|
|
52
|
+
originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
54
|
+
width: z.ZodNumber;
|
|
55
|
+
height: z.ZodNumber;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
57
|
+
mimeType: z.ZodString;
|
|
58
|
+
url: z.ZodString;
|
|
59
|
+
key: z.ZodString;
|
|
60
|
+
type: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
|
|
61
|
+
duration: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
contentLength: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
createdAt: z.ZodDate;
|
|
64
|
+
updatedAt: z.ZodDate;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
createdAt: z.ZodDate;
|
|
67
|
+
updatedAt: z.ZodDate;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
startedAt: z.ZodNullable<z.ZodDate>;
|
|
70
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
71
|
+
createdAt: z.ZodDate;
|
|
72
|
+
updatedAt: z.ZodDate;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
76
|
+
}
|
package/build/commands/avatar-studio/character/generate-avatar-studio-character-reference.command.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateAvatarStudioCharacterReferenceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
|
|
7
|
+
/**
|
|
8
|
+
* prompt переопределяет построенный промпт reference sheet целиком.
|
|
9
|
+
* photoFileId — опциональное фото пользователя: генерация уходит в image-to-image
|
|
10
|
+
* и просит сохранить внешность с референса, а не выдумывать её по описанию.
|
|
11
|
+
*/
|
|
12
|
+
var GenerateAvatarStudioCharacterReferenceCommand;
|
|
13
|
+
(function (GenerateAvatarStudioCharacterReferenceCommand) {
|
|
14
|
+
GenerateAvatarStudioCharacterReferenceCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioCharacterIdParamsSchema;
|
|
15
|
+
GenerateAvatarStudioCharacterReferenceCommand.RequestSchema = zod_1.z
|
|
16
|
+
.object({
|
|
17
|
+
prompt: zod_1.z.string().trim().min(1).nullable().optional(),
|
|
18
|
+
photoFileId: zod_1.z.string().uuid().nullable().optional(),
|
|
19
|
+
})
|
|
20
|
+
.strict();
|
|
21
|
+
GenerateAvatarStudioCharacterReferenceCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
+
data: models_1.AvatarStudioGenerationJobSchema,
|
|
23
|
+
});
|
|
24
|
+
})(GenerateAvatarStudioCharacterReferenceCommand || (exports.GenerateAvatarStudioCharacterReferenceCommand = GenerateAvatarStudioCharacterReferenceCommand = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetAvatarStudioCharacterQuery {
|
|
3
|
+
const ParamsSchema: z.ZodObject<{
|
|
4
|
+
characterId: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type Params = z.infer<typeof ParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
uuid: z.ZodString;
|
|
10
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
11
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
description: z.ZodNullable<z.ZodString>;
|
|
14
|
+
fileId: z.ZodNullable<z.ZodString>;
|
|
15
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
|
16
|
+
status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
|
|
17
|
+
error: z.ZodNullable<z.ZodString>;
|
|
18
|
+
generationJobId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
createdAt: z.ZodDate;
|
|
20
|
+
updatedAt: z.ZodDate;
|
|
21
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAvatarStudioCharacterQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
|
|
7
|
+
var GetAvatarStudioCharacterQuery;
|
|
8
|
+
(function (GetAvatarStudioCharacterQuery) {
|
|
9
|
+
GetAvatarStudioCharacterQuery.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioCharacterIdParamsSchema;
|
|
10
|
+
GetAvatarStudioCharacterQuery.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: models_1.AvatarStudioCharacterSchema,
|
|
12
|
+
});
|
|
13
|
+
})(GetAvatarStudioCharacterQuery || (exports.GetAvatarStudioCharacterQuery = GetAvatarStudioCharacterQuery = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './create-avatar-studio-character.command';
|
|
2
|
+
export * from './delete-avatar-studio-character.command';
|
|
3
|
+
export * from './find-avatar-studio-characters.query';
|
|
4
|
+
export * from './generate-avatar-studio-character-reference.command';
|
|
5
|
+
export * from './get-avatar-studio-character.query';
|
|
6
|
+
export * from './update-avatar-studio-character.command';
|
|
@@ -14,4 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./create-avatar-studio-character.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-avatar-studio-character.command"), exports);
|
|
19
|
+
__exportStar(require("./find-avatar-studio-characters.query"), exports);
|
|
20
|
+
__exportStar(require("./generate-avatar-studio-character-reference.command"), exports);
|
|
21
|
+
__exportStar(require("./get-avatar-studio-character.query"), exports);
|
|
22
|
+
__exportStar(require("./update-avatar-studio-character.command"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UpdateAvatarStudioCharacterCommand {
|
|
3
|
+
const ParamsSchema: z.ZodObject<{
|
|
4
|
+
characterId: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type Params = z.infer<typeof ParamsSchema>;
|
|
7
|
+
const RequestSchema: z.ZodObject<{
|
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
fileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
data: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
18
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
description: z.ZodNullable<z.ZodString>;
|
|
21
|
+
fileId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
status: z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_REFERENCE_CARD_STATUS>;
|
|
24
|
+
error: z.ZodNullable<z.ZodString>;
|
|
25
|
+
generationJobId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
createdAt: z.ZodDate;
|
|
27
|
+
updatedAt: z.ZodDate;
|
|
28
|
+
voiceId: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAvatarStudioCharacterCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
const avatar_studio_common_schema_1 = require("../shared/avatar-studio-common.schema");
|
|
7
|
+
var UpdateAvatarStudioCharacterCommand;
|
|
8
|
+
(function (UpdateAvatarStudioCharacterCommand) {
|
|
9
|
+
UpdateAvatarStudioCharacterCommand.ParamsSchema = avatar_studio_common_schema_1.AvatarStudioCharacterIdParamsSchema;
|
|
10
|
+
UpdateAvatarStudioCharacterCommand.RequestSchema = zod_1.z
|
|
11
|
+
.object({
|
|
12
|
+
name: zod_1.z.string().trim().min(1).max(255).optional(),
|
|
13
|
+
description: zod_1.z.string().trim().max(2000).nullable().optional(),
|
|
14
|
+
fileId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
|
+
voiceId: zod_1.z.string().uuid().nullable().optional(),
|
|
16
|
+
})
|
|
17
|
+
.strict()
|
|
18
|
+
.refine((value) => Object.keys(value).length > 0, {
|
|
19
|
+
message: 'At least one field must be provided',
|
|
20
|
+
});
|
|
21
|
+
UpdateAvatarStudioCharacterCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
+
data: models_1.AvatarStudioCharacterSchema,
|
|
23
|
+
});
|
|
24
|
+
})(UpdateAvatarStudioCharacterCommand || (exports.UpdateAvatarStudioCharacterCommand = UpdateAvatarStudioCharacterCommand = {}));
|
|
@@ -75,6 +75,8 @@ export declare namespace CreateAvatarStudioClipCommand {
|
|
|
75
75
|
imageConfig: z.ZodObject<{
|
|
76
76
|
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
77
77
|
style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
|
|
78
|
+
characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
78
80
|
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
79
81
|
uuid: z.ZodString;
|
|
80
82
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -71,6 +71,8 @@ export declare namespace FindAvatarStudioClipsQuery {
|
|
|
71
71
|
imageConfig: z.ZodObject<{
|
|
72
72
|
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
73
73
|
style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
|
|
74
|
+
characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
74
76
|
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
75
77
|
uuid: z.ZodString;
|
|
76
78
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -69,6 +69,8 @@ export declare namespace GetAvatarStudioClipQuery {
|
|
|
69
69
|
imageConfig: z.ZodObject<{
|
|
70
70
|
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
71
71
|
style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
|
|
72
|
+
characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
72
74
|
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
73
75
|
uuid: z.ZodString;
|
|
74
76
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -79,6 +79,8 @@ export declare namespace UpdateAvatarStudioClipCommand {
|
|
|
79
79
|
imageConfig: z.ZodObject<{
|
|
80
80
|
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
81
81
|
style: z.ZodDefault<z.ZodEnum<typeof import("../../..").AVATAR_STUDIO_IMAGE_STYLE>>;
|
|
82
|
+
characterId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
locationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
82
84
|
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
83
85
|
uuid: z.ZodString;
|
|
84
86
|
url: z.ZodNullable<z.ZodString>;
|