@purpleschool/gptbot 0.19.11-stage-2 → 0.19.13-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/index.d.ts +2 -0
- package/build/api/controllers/http/index.js +2 -0
- package/build/api/controllers/http/motion-control.d.ts +15 -0
- package/build/api/controllers/http/motion-control.js +18 -0
- package/build/api/controllers/http/onboarding.d.ts +5 -0
- package/build/api/controllers/http/onboarding.js +8 -0
- package/build/api/routes.d.ts +30 -0
- package/build/api/routes.js +30 -0
- package/build/commands/community/create-community-post.command.d.ts +19 -0
- package/build/commands/community/get-all-community-posts-by-criteria.command.d.ts +19 -0
- package/build/commands/community/get-community-post-by-uuid.command.d.ts +19 -0
- package/build/commands/community/get-my-community-posts-by-criteria.command.d.ts +19 -0
- package/build/commands/community/get-my-favorite-community-posts.command.d.ts +19 -0
- package/build/commands/community/get-my-likes-community-posts.command.d.ts +19 -0
- package/build/commands/community/set-like-community-post.command.d.ts +19 -0
- package/build/commands/content-report/create-content-report.command.d.ts +2 -0
- package/build/commands/content-report/find-content-reports.query.d.ts +2 -0
- package/build/commands/content-report/update-content-report-status.command.d.ts +1 -0
- package/build/commands/index.d.ts +1 -0
- package/build/commands/index.js +1 -0
- package/build/commands/onboarding/index.d.ts +122 -0
- package/build/commands/onboarding/index.js +14 -0
- package/build/commands/tools/index.d.ts +1 -0
- package/build/commands/tools/index.js +1 -0
- package/build/commands/tools/motion-control/index.d.ts +590 -0
- package/build/commands/tools/motion-control/index.js +100 -0
- package/build/commands/user/get-me.command.d.ts +7 -0
- package/build/commands/user/get-me.command.js +5 -0
- package/build/constants/cabinet/enums/statistics-request-type.enum.d.ts +1 -0
- package/build/constants/cabinet/enums/statistics-request-type.enum.js +1 -0
- package/build/constants/community/enums/community-tool-type.enum.d.ts +1 -0
- package/build/constants/community/enums/community-tool-type.enum.js +1 -0
- package/build/constants/community/enums/community-type.enum.d.ts +1 -0
- package/build/constants/community/enums/community-type.enum.js +1 -0
- package/build/constants/content-report/enums/content-report-target-type.enum.d.ts +1 -0
- package/build/constants/model/enums/unified-model-content-type.enum.d.ts +1 -0
- package/build/constants/model/enums/unified-model-content-type.enum.js +1 -0
- package/build/constants/tool/enums/tool-content-type.enum.d.ts +1 -0
- package/build/constants/tool/enums/tool-content-type.enum.js +1 -0
- package/build/constants/tool/enums/tool-type.enum.d.ts +1 -0
- package/build/constants/tool/enums/tool-type.enum.js +1 -0
- package/build/models/community/community-post-media-data.schema.d.ts +40 -0
- package/build/models/community/community-post-media-data.schema.js +16 -1
- package/build/models/community/community-post.schema.d.ts +57 -0
- package/build/models/content-report.schema.d.ts +1 -0
- package/build/models/index.d.ts +1 -0
- package/build/models/index.js +1 -0
- package/build/models/onboarding.schema.d.ts +124 -0
- package/build/models/onboarding.schema.js +55 -0
- package/build/models/tools/index.d.ts +1 -0
- package/build/models/tools/index.js +1 -0
- package/build/models/tools/motion-control/index.d.ts +258 -0
- package/build/models/tools/motion-control/index.js +86 -0
- package/package.json +2 -2
|
@@ -104,3 +104,5 @@ __exportStar(require("./photo-studio"), exports);
|
|
|
104
104
|
__exportStar(require("./canvas-template"), exports);
|
|
105
105
|
__exportStar(require("./app-login"), exports);
|
|
106
106
|
__exportStar(require("./greetings"), exports);
|
|
107
|
+
__exportStar(require("./motion-control"), exports);
|
|
108
|
+
__exportStar(require("./onboarding"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const MOTION_CONTROL_CONTROLLER_PRIVATE: 'private/tools/motion-control';
|
|
2
|
+
export declare const MOTION_CONTROL_CONTROLLER_PUBLIC: 'public/tools/motion-control';
|
|
3
|
+
export declare const MOTION_CONTROL_ROUTES: {
|
|
4
|
+
readonly CONFIG: 'config';
|
|
5
|
+
readonly PRICE: 'price';
|
|
6
|
+
readonly EXECUTE: 'execute';
|
|
7
|
+
readonly GET_JOBS: 'jobs';
|
|
8
|
+
readonly GET_JOB: (uuid: string) => string;
|
|
9
|
+
readonly UPDATE: (uuid: string) => string;
|
|
10
|
+
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
11
|
+
readonly SET_REACTION: (uuid: string) => string;
|
|
12
|
+
readonly DELETE: (uuid: string) => string;
|
|
13
|
+
readonly DELETE_ALL: 'jobs';
|
|
14
|
+
readonly RETRY: (uuid: string) => string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MOTION_CONTROL_ROUTES = exports.MOTION_CONTROL_CONTROLLER_PUBLIC = exports.MOTION_CONTROL_CONTROLLER_PRIVATE = void 0;
|
|
4
|
+
exports.MOTION_CONTROL_CONTROLLER_PRIVATE = 'private/tools/motion-control';
|
|
5
|
+
exports.MOTION_CONTROL_CONTROLLER_PUBLIC = 'public/tools/motion-control';
|
|
6
|
+
exports.MOTION_CONTROL_ROUTES = {
|
|
7
|
+
CONFIG: 'config',
|
|
8
|
+
PRICE: 'price',
|
|
9
|
+
EXECUTE: 'execute',
|
|
10
|
+
GET_JOBS: 'jobs',
|
|
11
|
+
GET_JOB: (uuid) => `jobs/${uuid}`,
|
|
12
|
+
UPDATE: (uuid) => `jobs/${uuid}`,
|
|
13
|
+
UPDATE_FAVORITE: (uuid) => `jobs/${uuid}/favorite`,
|
|
14
|
+
SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
|
|
15
|
+
DELETE: (uuid) => `jobs/${uuid}`,
|
|
16
|
+
DELETE_ALL: 'jobs',
|
|
17
|
+
RETRY: (uuid) => `jobs/${uuid}/retry`,
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ONBOARDING_ROUTES = exports.ONBOARDING_PRIVATE_CONTROLLER = void 0;
|
|
4
|
+
exports.ONBOARDING_PRIVATE_CONTROLLER = 'private/onboarding';
|
|
5
|
+
exports.ONBOARDING_ROUTES = {
|
|
6
|
+
GET: '',
|
|
7
|
+
ACK: 'notifications/ack',
|
|
8
|
+
};
|
package/build/api/routes.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare const ROOT: '/api';
|
|
2
2
|
export declare const REST_API: {
|
|
3
|
+
readonly ONBOARDING_PRIVATE: {
|
|
4
|
+
readonly GET: "/api/private/onboarding";
|
|
5
|
+
readonly ACK: "/api/private/onboarding/notifications/ack";
|
|
6
|
+
};
|
|
3
7
|
readonly APP_LOGIN: {
|
|
4
8
|
readonly CODE: "/api/app-login/code";
|
|
5
9
|
readonly REDEEM: "/api/app-login/redeem";
|
|
@@ -845,6 +849,32 @@ export declare const REST_API: {
|
|
|
845
849
|
readonly DELETE_ALL: "/api/private/tools/video-editor/jobs";
|
|
846
850
|
readonly RETRY: (uuid: string) => string;
|
|
847
851
|
};
|
|
852
|
+
readonly MOTION_CONTROL_PUBLIC: {
|
|
853
|
+
readonly CONFIG: "/api/public/tools/motion-control/config";
|
|
854
|
+
readonly PRICE: "/api/public/tools/motion-control/price";
|
|
855
|
+
readonly EXECUTE: "/api/public/tools/motion-control/execute";
|
|
856
|
+
readonly GET_JOBS: "/api/public/tools/motion-control/jobs";
|
|
857
|
+
readonly GET_JOB: (uuid: string) => string;
|
|
858
|
+
readonly UPDATE: (uuid: string) => string;
|
|
859
|
+
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
860
|
+
readonly SET_REACTION: (uuid: string) => string;
|
|
861
|
+
readonly DELETE: (uuid: string) => string;
|
|
862
|
+
readonly DELETE_ALL: "/api/public/tools/motion-control/jobs";
|
|
863
|
+
readonly RETRY: (uuid: string) => string;
|
|
864
|
+
};
|
|
865
|
+
readonly MOTION_CONTROL_PRIVATE: {
|
|
866
|
+
readonly CONFIG: "/api/private/tools/motion-control/config";
|
|
867
|
+
readonly PRICE: "/api/private/tools/motion-control/price";
|
|
868
|
+
readonly EXECUTE: "/api/private/tools/motion-control/execute";
|
|
869
|
+
readonly GET_JOBS: "/api/private/tools/motion-control/jobs";
|
|
870
|
+
readonly GET_JOB: (uuid: string) => string;
|
|
871
|
+
readonly UPDATE: (uuid: string) => string;
|
|
872
|
+
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
873
|
+
readonly SET_REACTION: (uuid: string) => string;
|
|
874
|
+
readonly DELETE: (uuid: string) => string;
|
|
875
|
+
readonly DELETE_ALL: "/api/private/tools/motion-control/jobs";
|
|
876
|
+
readonly RETRY: (uuid: string) => string;
|
|
877
|
+
};
|
|
848
878
|
readonly INTERIOR_DESIGN_PUBLIC: {
|
|
849
879
|
readonly CONFIG: "/api/public/tools/interior-design/config";
|
|
850
880
|
readonly EXECUTE: "/api/public/tools/interior-design/execute";
|
package/build/api/routes.js
CHANGED
|
@@ -38,6 +38,10 @@ const constants_1 = require("../constants");
|
|
|
38
38
|
const CONTROLLERS = __importStar(require("./controllers"));
|
|
39
39
|
exports.ROOT = '/api';
|
|
40
40
|
exports.REST_API = {
|
|
41
|
+
ONBOARDING_PRIVATE: {
|
|
42
|
+
GET: `${exports.ROOT}/${CONTROLLERS.ONBOARDING_PRIVATE_CONTROLLER}`,
|
|
43
|
+
ACK: `${exports.ROOT}/${CONTROLLERS.ONBOARDING_PRIVATE_CONTROLLER}/${CONTROLLERS.ONBOARDING_ROUTES.ACK}`,
|
|
44
|
+
},
|
|
41
45
|
APP_LOGIN: {
|
|
42
46
|
CODE: `${exports.ROOT}/${CONTROLLERS.APP_LOGIN_CONTROLLER}/${CONTROLLERS.APP_LOGIN_ROUTES.CODE}`,
|
|
43
47
|
REDEEM: `${exports.ROOT}/${CONTROLLERS.APP_LOGIN_CONTROLLER}/${CONTROLLERS.APP_LOGIN_ROUTES.REDEEM}`,
|
|
@@ -883,6 +887,32 @@ exports.REST_API = {
|
|
|
883
887
|
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.VIDEO_EDITOR_CONTROLLER_PRIVATE}/${CONTROLLERS.VIDEO_EDITOR_ROUTES.DELETE_ALL}`,
|
|
884
888
|
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.VIDEO_EDITOR_CONTROLLER_PRIVATE}/${CONTROLLERS.VIDEO_EDITOR_ROUTES.RETRY(uuid)}`,
|
|
885
889
|
},
|
|
890
|
+
MOTION_CONTROL_PUBLIC: {
|
|
891
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.CONFIG}`,
|
|
892
|
+
PRICE: `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.PRICE}`,
|
|
893
|
+
EXECUTE: `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.EXECUTE}`,
|
|
894
|
+
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.GET_JOBS}`,
|
|
895
|
+
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.GET_JOB(uuid)}`,
|
|
896
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.UPDATE(uuid)}`,
|
|
897
|
+
UPDATE_FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.UPDATE_FAVORITE(uuid)}`,
|
|
898
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.SET_REACTION(uuid)}`,
|
|
899
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.DELETE(uuid)}`,
|
|
900
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.DELETE_ALL}`,
|
|
901
|
+
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PUBLIC}/${CONTROLLERS.MOTION_CONTROL_ROUTES.RETRY(uuid)}`,
|
|
902
|
+
},
|
|
903
|
+
MOTION_CONTROL_PRIVATE: {
|
|
904
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.CONFIG}`,
|
|
905
|
+
PRICE: `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.PRICE}`,
|
|
906
|
+
EXECUTE: `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.EXECUTE}`,
|
|
907
|
+
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.GET_JOBS}`,
|
|
908
|
+
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.GET_JOB(uuid)}`,
|
|
909
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.UPDATE(uuid)}`,
|
|
910
|
+
UPDATE_FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.UPDATE_FAVORITE(uuid)}`,
|
|
911
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.SET_REACTION(uuid)}`,
|
|
912
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.DELETE(uuid)}`,
|
|
913
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.DELETE_ALL}`,
|
|
914
|
+
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.MOTION_CONTROL_CONTROLLER_PRIVATE}/${CONTROLLERS.MOTION_CONTROL_ROUTES.RETRY(uuid)}`,
|
|
915
|
+
},
|
|
886
916
|
INTERIOR_DESIGN_PUBLIC: {
|
|
887
917
|
CONFIG: `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.CONFIG}`,
|
|
888
918
|
EXECUTE: `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.EXECUTE}`,
|
|
@@ -69,6 +69,25 @@ export declare namespace CreateCommunityPostCommand {
|
|
|
69
69
|
resolution: z.ZodOptional<z.ZodString>;
|
|
70
70
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
71
71
|
}, z.core.$strip>>;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
type: z.ZodLiteral<import("../..").COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
74
|
+
title: z.ZodString;
|
|
75
|
+
prompt: z.ZodString;
|
|
76
|
+
motionVideoUrl: z.ZodString;
|
|
77
|
+
characterImageUrl: z.ZodString;
|
|
78
|
+
outputVideoUrl: z.ZodString;
|
|
79
|
+
outputVideoId: z.ZodString;
|
|
80
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
81
|
+
params: z.ZodObject<{
|
|
82
|
+
resolution: z.ZodEnum<{
|
|
83
|
+
"1080p": "1080p";
|
|
84
|
+
"720p": "720p";
|
|
85
|
+
}>;
|
|
86
|
+
backgroundSource: z.ZodEnum<{
|
|
87
|
+
image: "image";
|
|
88
|
+
video: "video";
|
|
89
|
+
}>;
|
|
90
|
+
}, z.core.$strip>;
|
|
72
91
|
}, z.core.$strip>, z.ZodObject<{
|
|
73
92
|
type: z.ZodLiteral<import("../..").COMMUNITY_POST_TYPE.MUSIC>;
|
|
74
93
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -80,6 +80,25 @@ export declare namespace GetAllCommunityPostsCommand {
|
|
|
80
80
|
resolution: z.ZodOptional<z.ZodString>;
|
|
81
81
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
82
82
|
}, z.core.$strip>>;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
85
|
+
title: z.ZodString;
|
|
86
|
+
prompt: z.ZodString;
|
|
87
|
+
motionVideoUrl: z.ZodString;
|
|
88
|
+
characterImageUrl: z.ZodString;
|
|
89
|
+
outputVideoUrl: z.ZodString;
|
|
90
|
+
outputVideoId: z.ZodString;
|
|
91
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
92
|
+
params: z.ZodObject<{
|
|
93
|
+
resolution: z.ZodEnum<{
|
|
94
|
+
"1080p": "1080p";
|
|
95
|
+
"720p": "720p";
|
|
96
|
+
}>;
|
|
97
|
+
backgroundSource: z.ZodEnum<{
|
|
98
|
+
image: "image";
|
|
99
|
+
video: "video";
|
|
100
|
+
}>;
|
|
101
|
+
}, z.core.$strip>;
|
|
83
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
84
103
|
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MUSIC>;
|
|
85
104
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -70,6 +70,25 @@ export declare namespace GetCommunityPostByUuidCommand {
|
|
|
70
70
|
resolution: z.ZodOptional<z.ZodString>;
|
|
71
71
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
72
72
|
}, z.core.$strip>>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<import("../..").COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
75
|
+
title: z.ZodString;
|
|
76
|
+
prompt: z.ZodString;
|
|
77
|
+
motionVideoUrl: z.ZodString;
|
|
78
|
+
characterImageUrl: z.ZodString;
|
|
79
|
+
outputVideoUrl: z.ZodString;
|
|
80
|
+
outputVideoId: z.ZodString;
|
|
81
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
82
|
+
params: z.ZodObject<{
|
|
83
|
+
resolution: z.ZodEnum<{
|
|
84
|
+
"1080p": "1080p";
|
|
85
|
+
"720p": "720p";
|
|
86
|
+
}>;
|
|
87
|
+
backgroundSource: z.ZodEnum<{
|
|
88
|
+
image: "image";
|
|
89
|
+
video: "video";
|
|
90
|
+
}>;
|
|
91
|
+
}, z.core.$strip>;
|
|
73
92
|
}, z.core.$strip>, z.ZodObject<{
|
|
74
93
|
type: z.ZodLiteral<import("../..").COMMUNITY_POST_TYPE.MUSIC>;
|
|
75
94
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -82,6 +82,25 @@ export declare namespace GetMyCommunityPostsByCriteriaCommand {
|
|
|
82
82
|
resolution: z.ZodOptional<z.ZodString>;
|
|
83
83
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
84
84
|
}, z.core.$strip>>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
87
|
+
title: z.ZodString;
|
|
88
|
+
prompt: z.ZodString;
|
|
89
|
+
motionVideoUrl: z.ZodString;
|
|
90
|
+
characterImageUrl: z.ZodString;
|
|
91
|
+
outputVideoUrl: z.ZodString;
|
|
92
|
+
outputVideoId: z.ZodString;
|
|
93
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
94
|
+
params: z.ZodObject<{
|
|
95
|
+
resolution: z.ZodEnum<{
|
|
96
|
+
"1080p": "1080p";
|
|
97
|
+
"720p": "720p";
|
|
98
|
+
}>;
|
|
99
|
+
backgroundSource: z.ZodEnum<{
|
|
100
|
+
image: "image";
|
|
101
|
+
video: "video";
|
|
102
|
+
}>;
|
|
103
|
+
}, z.core.$strip>;
|
|
85
104
|
}, z.core.$strip>, z.ZodObject<{
|
|
86
105
|
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MUSIC>;
|
|
87
106
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -74,6 +74,25 @@ export declare namespace GetMyFavoriteCommunityPostsCommand {
|
|
|
74
74
|
resolution: z.ZodOptional<z.ZodString>;
|
|
75
75
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
76
76
|
}, z.core.$strip>>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
prompt: z.ZodString;
|
|
81
|
+
motionVideoUrl: z.ZodString;
|
|
82
|
+
characterImageUrl: z.ZodString;
|
|
83
|
+
outputVideoUrl: z.ZodString;
|
|
84
|
+
outputVideoId: z.ZodString;
|
|
85
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
86
|
+
params: z.ZodObject<{
|
|
87
|
+
resolution: z.ZodEnum<{
|
|
88
|
+
"1080p": "1080p";
|
|
89
|
+
"720p": "720p";
|
|
90
|
+
}>;
|
|
91
|
+
backgroundSource: z.ZodEnum<{
|
|
92
|
+
image: "image";
|
|
93
|
+
video: "video";
|
|
94
|
+
}>;
|
|
95
|
+
}, z.core.$strip>;
|
|
77
96
|
}, z.core.$strip>, z.ZodObject<{
|
|
78
97
|
type: z.ZodLiteral<COMMUNITY_POST_TYPE.MUSIC>;
|
|
79
98
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -73,6 +73,25 @@ export declare namespace GetMyLikesCommunityPostsCommand {
|
|
|
73
73
|
resolution: z.ZodOptional<z.ZodString>;
|
|
74
74
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
+
type: z.ZodLiteral<import("../..").COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
78
|
+
title: z.ZodString;
|
|
79
|
+
prompt: z.ZodString;
|
|
80
|
+
motionVideoUrl: z.ZodString;
|
|
81
|
+
characterImageUrl: z.ZodString;
|
|
82
|
+
outputVideoUrl: z.ZodString;
|
|
83
|
+
outputVideoId: z.ZodString;
|
|
84
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
85
|
+
params: z.ZodObject<{
|
|
86
|
+
resolution: z.ZodEnum<{
|
|
87
|
+
"1080p": "1080p";
|
|
88
|
+
"720p": "720p";
|
|
89
|
+
}>;
|
|
90
|
+
backgroundSource: z.ZodEnum<{
|
|
91
|
+
image: "image";
|
|
92
|
+
video: "video";
|
|
93
|
+
}>;
|
|
94
|
+
}, z.core.$strip>;
|
|
76
95
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
96
|
type: z.ZodLiteral<import("../..").COMMUNITY_POST_TYPE.MUSIC>;
|
|
78
97
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -70,6 +70,25 @@ export declare namespace SetLikeCommunityPostCommand {
|
|
|
70
70
|
resolution: z.ZodOptional<z.ZodString>;
|
|
71
71
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
72
72
|
}, z.core.$strip>>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<import("../..").COMMUNITY_POST_TYPE.MOTION_CONTROL>;
|
|
75
|
+
title: z.ZodString;
|
|
76
|
+
prompt: z.ZodString;
|
|
77
|
+
motionVideoUrl: z.ZodString;
|
|
78
|
+
characterImageUrl: z.ZodString;
|
|
79
|
+
outputVideoUrl: z.ZodString;
|
|
80
|
+
outputVideoId: z.ZodString;
|
|
81
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
82
|
+
params: z.ZodObject<{
|
|
83
|
+
resolution: z.ZodEnum<{
|
|
84
|
+
"1080p": "1080p";
|
|
85
|
+
"720p": "720p";
|
|
86
|
+
}>;
|
|
87
|
+
backgroundSource: z.ZodEnum<{
|
|
88
|
+
image: "image";
|
|
89
|
+
video: "video";
|
|
90
|
+
}>;
|
|
91
|
+
}, z.core.$strip>;
|
|
73
92
|
}, z.core.$strip>, z.ZodObject<{
|
|
74
93
|
type: z.ZodLiteral<import("../..").COMMUNITY_POST_TYPE.MUSIC>;
|
|
75
94
|
params: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -12,6 +12,7 @@ export declare namespace CreateContentReportCommand {
|
|
|
12
12
|
readonly PRESENTATION: import("../..").TOOL_CONTENT_TYPE.PRESENTATION;
|
|
13
13
|
readonly WRITER: import("../..").TOOL_CONTENT_TYPE.WRITER;
|
|
14
14
|
readonly VIDEO_EDITOR: import("../..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
|
|
15
|
+
readonly MOTION_CONTROL: import("../..").TOOL_CONTENT_TYPE.MOTION_CONTROL;
|
|
15
16
|
readonly MUSIC: import("../..").TOOL_CONTENT_TYPE.MUSIC;
|
|
16
17
|
readonly INTERIOR_DESIGN: import("../..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
|
|
17
18
|
readonly TEXT: import("../..").TOOL_CONTENT_TYPE.TEXT;
|
|
@@ -44,6 +45,7 @@ export declare namespace CreateContentReportCommand {
|
|
|
44
45
|
readonly PRESENTATION: import("../..").TOOL_CONTENT_TYPE.PRESENTATION;
|
|
45
46
|
readonly WRITER: import("../..").TOOL_CONTENT_TYPE.WRITER;
|
|
46
47
|
readonly VIDEO_EDITOR: import("../..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
|
|
48
|
+
readonly MOTION_CONTROL: import("../..").TOOL_CONTENT_TYPE.MOTION_CONTROL;
|
|
47
49
|
readonly MUSIC: import("../..").TOOL_CONTENT_TYPE.MUSIC;
|
|
48
50
|
readonly INTERIOR_DESIGN: import("../..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
|
|
49
51
|
readonly TEXT: import("../..").TOOL_CONTENT_TYPE.TEXT;
|
|
@@ -14,6 +14,7 @@ export declare namespace FindContentReportsQuery {
|
|
|
14
14
|
readonly PRESENTATION: import("../..").TOOL_CONTENT_TYPE.PRESENTATION;
|
|
15
15
|
readonly WRITER: import("../..").TOOL_CONTENT_TYPE.WRITER;
|
|
16
16
|
readonly VIDEO_EDITOR: import("../..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
|
|
17
|
+
readonly MOTION_CONTROL: import("../..").TOOL_CONTENT_TYPE.MOTION_CONTROL;
|
|
17
18
|
readonly MUSIC: import("../..").TOOL_CONTENT_TYPE.MUSIC;
|
|
18
19
|
readonly INTERIOR_DESIGN: import("../..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
|
|
19
20
|
readonly TEXT: import("../..").TOOL_CONTENT_TYPE.TEXT;
|
|
@@ -45,6 +46,7 @@ export declare namespace FindContentReportsQuery {
|
|
|
45
46
|
readonly PRESENTATION: import("../..").TOOL_CONTENT_TYPE.PRESENTATION;
|
|
46
47
|
readonly WRITER: import("../..").TOOL_CONTENT_TYPE.WRITER;
|
|
47
48
|
readonly VIDEO_EDITOR: import("../..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
|
|
49
|
+
readonly MOTION_CONTROL: import("../..").TOOL_CONTENT_TYPE.MOTION_CONTROL;
|
|
48
50
|
readonly MUSIC: import("../..").TOOL_CONTENT_TYPE.MUSIC;
|
|
49
51
|
readonly INTERIOR_DESIGN: import("../..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
|
|
50
52
|
readonly TEXT: import("../..").TOOL_CONTENT_TYPE.TEXT;
|
|
@@ -24,6 +24,7 @@ export declare namespace UpdateContentReportStatusCommand {
|
|
|
24
24
|
readonly PRESENTATION: import("../..").TOOL_CONTENT_TYPE.PRESENTATION;
|
|
25
25
|
readonly WRITER: import("../..").TOOL_CONTENT_TYPE.WRITER;
|
|
26
26
|
readonly VIDEO_EDITOR: import("../..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
|
|
27
|
+
readonly MOTION_CONTROL: import("../..").TOOL_CONTENT_TYPE.MOTION_CONTROL;
|
|
27
28
|
readonly MUSIC: import("../..").TOOL_CONTENT_TYPE.MUSIC;
|
|
28
29
|
readonly INTERIOR_DESIGN: import("../..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
|
|
29
30
|
readonly TEXT: import("../..").TOOL_CONTENT_TYPE.TEXT;
|
package/build/commands/index.js
CHANGED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetOnboardingCommand {
|
|
3
|
+
type Request = void;
|
|
4
|
+
const ResponseSchema: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
visible: z.ZodBoolean;
|
|
7
|
+
canParticipate: z.ZodBoolean;
|
|
8
|
+
blockedReason: z.ZodNullable<z.ZodLiteral<"email_confirmation_required">>;
|
|
9
|
+
visibleUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
10
|
+
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
11
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
12
|
+
code: z.ZodEnum<{
|
|
13
|
+
first_chat: "first_chat";
|
|
14
|
+
first_image: "first_image";
|
|
15
|
+
first_photo: "first_photo";
|
|
16
|
+
first_video: "first_video";
|
|
17
|
+
first_voice: "first_voice";
|
|
18
|
+
}>;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
description: z.ZodString;
|
|
21
|
+
action: z.ZodObject<{
|
|
22
|
+
type: z.ZodEnum<{
|
|
23
|
+
chat: "chat";
|
|
24
|
+
"image-editor": "image-editor";
|
|
25
|
+
"image-generation": "image-generation";
|
|
26
|
+
tts: "tts";
|
|
27
|
+
video: "video";
|
|
28
|
+
}>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
rewardStars: z.ZodNumber;
|
|
31
|
+
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
32
|
+
awardedStars: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
completedCount: z.ZodNumber;
|
|
35
|
+
totalCount: z.ZodNumber;
|
|
36
|
+
earnedStars: z.ZodNumber;
|
|
37
|
+
totalRewardStars: z.ZodNumber;
|
|
38
|
+
currentStepCode: z.ZodNullable<z.ZodEnum<{
|
|
39
|
+
first_chat: "first_chat";
|
|
40
|
+
first_image: "first_image";
|
|
41
|
+
first_photo: "first_photo";
|
|
42
|
+
first_video: "first_video";
|
|
43
|
+
first_voice: "first_voice";
|
|
44
|
+
}>>;
|
|
45
|
+
unseenCompletions: z.ZodArray<z.ZodObject<{
|
|
46
|
+
id: z.ZodUUID;
|
|
47
|
+
taskCode: z.ZodEnum<{
|
|
48
|
+
first_chat: "first_chat";
|
|
49
|
+
first_image: "first_image";
|
|
50
|
+
first_photo: "first_photo";
|
|
51
|
+
first_video: "first_video";
|
|
52
|
+
first_voice: "first_voice";
|
|
53
|
+
}>;
|
|
54
|
+
awardedStars: z.ZodNumber;
|
|
55
|
+
completedAt: z.ZodCoercedDate<unknown>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace AckOnboardingNotificationsCommand {
|
|
62
|
+
const RequestSchema: z.ZodObject<{
|
|
63
|
+
ids: z.ZodArray<z.ZodUUID>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
66
|
+
const ResponseSchema: z.ZodObject<{
|
|
67
|
+
data: z.ZodObject<{
|
|
68
|
+
visible: z.ZodBoolean;
|
|
69
|
+
canParticipate: z.ZodBoolean;
|
|
70
|
+
blockedReason: z.ZodNullable<z.ZodLiteral<"email_confirmation_required">>;
|
|
71
|
+
visibleUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
72
|
+
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
73
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
74
|
+
code: z.ZodEnum<{
|
|
75
|
+
first_chat: "first_chat";
|
|
76
|
+
first_image: "first_image";
|
|
77
|
+
first_photo: "first_photo";
|
|
78
|
+
first_video: "first_video";
|
|
79
|
+
first_voice: "first_voice";
|
|
80
|
+
}>;
|
|
81
|
+
title: z.ZodString;
|
|
82
|
+
description: z.ZodString;
|
|
83
|
+
action: z.ZodObject<{
|
|
84
|
+
type: z.ZodEnum<{
|
|
85
|
+
chat: "chat";
|
|
86
|
+
"image-editor": "image-editor";
|
|
87
|
+
"image-generation": "image-generation";
|
|
88
|
+
tts: "tts";
|
|
89
|
+
video: "video";
|
|
90
|
+
}>;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
rewardStars: z.ZodNumber;
|
|
93
|
+
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
94
|
+
awardedStars: z.ZodNumber;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
completedCount: z.ZodNumber;
|
|
97
|
+
totalCount: z.ZodNumber;
|
|
98
|
+
earnedStars: z.ZodNumber;
|
|
99
|
+
totalRewardStars: z.ZodNumber;
|
|
100
|
+
currentStepCode: z.ZodNullable<z.ZodEnum<{
|
|
101
|
+
first_chat: "first_chat";
|
|
102
|
+
first_image: "first_image";
|
|
103
|
+
first_photo: "first_photo";
|
|
104
|
+
first_video: "first_video";
|
|
105
|
+
first_voice: "first_voice";
|
|
106
|
+
}>>;
|
|
107
|
+
unseenCompletions: z.ZodArray<z.ZodObject<{
|
|
108
|
+
id: z.ZodUUID;
|
|
109
|
+
taskCode: z.ZodEnum<{
|
|
110
|
+
first_chat: "first_chat";
|
|
111
|
+
first_image: "first_image";
|
|
112
|
+
first_photo: "first_photo";
|
|
113
|
+
first_video: "first_video";
|
|
114
|
+
first_voice: "first_voice";
|
|
115
|
+
}>;
|
|
116
|
+
awardedStars: z.ZodNumber;
|
|
117
|
+
completedAt: z.ZodCoercedDate<unknown>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
type Response = GetOnboardingCommand.Response;
|
|
122
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AckOnboardingNotificationsCommand = exports.GetOnboardingCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const onboarding_schema_1 = require("../../models/onboarding.schema");
|
|
6
|
+
var GetOnboardingCommand;
|
|
7
|
+
(function (GetOnboardingCommand) {
|
|
8
|
+
GetOnboardingCommand.ResponseSchema = zod_1.z.object({ data: onboarding_schema_1.OnboardingStateSchema });
|
|
9
|
+
})(GetOnboardingCommand || (exports.GetOnboardingCommand = GetOnboardingCommand = {}));
|
|
10
|
+
var AckOnboardingNotificationsCommand;
|
|
11
|
+
(function (AckOnboardingNotificationsCommand) {
|
|
12
|
+
AckOnboardingNotificationsCommand.RequestSchema = zod_1.z.object({ ids: zod_1.z.array(zod_1.z.uuid()).min(1).max(100) }).strict();
|
|
13
|
+
AckOnboardingNotificationsCommand.ResponseSchema = GetOnboardingCommand.ResponseSchema;
|
|
14
|
+
})(AckOnboardingNotificationsCommand || (exports.AckOnboardingNotificationsCommand = AckOnboardingNotificationsCommand = {}));
|