@purpleschool/gptbot 0.18.4 → 0.18.5

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.
Files changed (33) hide show
  1. package/build/api/controllers/http/content-report.d.ts +7 -0
  2. package/build/api/controllers/http/content-report.js +10 -0
  3. package/build/api/controllers/http/index.d.ts +1 -0
  4. package/build/api/controllers/http/index.js +1 -0
  5. package/build/api/routes.d.ts +7 -0
  6. package/build/api/routes.js +7 -0
  7. package/build/commands/content-report/create-content-report.command.d.ts +69 -0
  8. package/build/commands/content-report/create-content-report.command.js +18 -0
  9. package/build/commands/content-report/find-content-reports.query.d.ts +72 -0
  10. package/build/commands/content-report/find-content-reports.query.js +20 -0
  11. package/build/commands/content-report/index.d.ts +3 -0
  12. package/build/commands/content-report/index.js +19 -0
  13. package/build/commands/content-report/update-content-report-status.command.d.ts +50 -0
  14. package/build/commands/content-report/update-content-report-status.command.js +19 -0
  15. package/build/commands/index.d.ts +1 -0
  16. package/build/commands/index.js +1 -0
  17. package/build/constants/content-report/enums/content-report-category.enum.d.ts +8 -0
  18. package/build/constants/content-report/enums/content-report-category.enum.js +12 -0
  19. package/build/constants/content-report/enums/content-report-status.enum.d.ts +6 -0
  20. package/build/constants/content-report/enums/content-report-status.enum.js +10 -0
  21. package/build/constants/content-report/enums/content-report-target-type.enum.d.ts +25 -0
  22. package/build/constants/content-report/enums/content-report-target-type.enum.js +6 -0
  23. package/build/constants/content-report/enums/index.d.ts +3 -0
  24. package/build/constants/content-report/enums/index.js +19 -0
  25. package/build/constants/content-report/index.d.ts +1 -0
  26. package/build/constants/content-report/index.js +17 -0
  27. package/build/constants/index.d.ts +1 -0
  28. package/build/constants/index.js +1 -0
  29. package/build/models/content-report.schema.d.ts +39 -0
  30. package/build/models/content-report.schema.js +20 -0
  31. package/build/models/index.d.ts +1 -0
  32. package/build/models/index.js +1 -0
  33. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ export declare const CONTENT_REPORT_CONTROLLER_PRIVATE: 'private/content-report';
2
+ export declare const CONTENT_REPORT_CONTROLLER_ADMIN: 'private/admin/content-report';
3
+ export declare const CONTENT_REPORT_ROUTES: {
4
+ readonly CREATE: '';
5
+ readonly FIND_ALL: '';
6
+ readonly UPDATE_STATUS: 'status';
7
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONTENT_REPORT_ROUTES = exports.CONTENT_REPORT_CONTROLLER_ADMIN = exports.CONTENT_REPORT_CONTROLLER_PRIVATE = void 0;
4
+ exports.CONTENT_REPORT_CONTROLLER_PRIVATE = 'private/content-report';
5
+ exports.CONTENT_REPORT_CONTROLLER_ADMIN = 'private/admin/content-report';
6
+ exports.CONTENT_REPORT_ROUTES = {
7
+ CREATE: '',
8
+ FIND_ALL: '',
9
+ UPDATE_STATUS: 'status',
10
+ };
@@ -68,6 +68,7 @@ export * from './b2b';
68
68
  export * from './b2b-usage-log';
69
69
  export * from './b2b-compatible';
70
70
  export * from './community';
71
+ export * from './content-report';
71
72
  export * from './consent';
72
73
  export * from './user-profile';
73
74
  export * from './image-generation';
@@ -84,6 +84,7 @@ __exportStar(require("./b2b"), exports);
84
84
  __exportStar(require("./b2b-usage-log"), exports);
85
85
  __exportStar(require("./b2b-compatible"), exports);
86
86
  __exportStar(require("./community"), exports);
87
+ __exportStar(require("./content-report"), exports);
87
88
  __exportStar(require("./consent"), exports);
88
89
  __exportStar(require("./user-profile"), exports);
89
90
  __exportStar(require("./image-generation"), exports);
@@ -437,6 +437,13 @@ export declare const REST_API: {
437
437
  readonly UPDATE: (uuid: string) => string;
438
438
  readonly CHECK_IF_USER_READY_FOR_FEEDBACK: "/api/public/feedback/user-ready";
439
439
  };
440
+ readonly CONTENT_REPORT_PRIVATE: {
441
+ readonly CREATE: "/api/private/content-report";
442
+ };
443
+ readonly CONTENT_REPORT_ADMIN: {
444
+ readonly FIND_ALL: "/api/private/admin/content-report";
445
+ readonly UPDATE_STATUS: (uuid: string) => string;
446
+ };
440
447
  readonly SUPPORT_FEEDBACK_PRIVATE: {
441
448
  readonly CREATE: "/api/private/support-feedback/";
442
449
  readonly CHECK: "/api/private/support-feedback/check";
@@ -475,6 +475,13 @@ exports.REST_API = {
475
475
  UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.FEEDBACK_CONTROLLER_PUBLIC}/${uuid}`,
476
476
  CHECK_IF_USER_READY_FOR_FEEDBACK: `${exports.ROOT}/${CONTROLLERS.FEEDBACK_CONTROLLER_PUBLIC}/${CONTROLLERS.FEEDBACK_ROUTES.CHECK_IF_USER_READY_FOR_FEEDBACK}`,
477
477
  },
478
+ CONTENT_REPORT_PRIVATE: {
479
+ CREATE: `${exports.ROOT}/${CONTROLLERS.CONTENT_REPORT_CONTROLLER_PRIVATE}`,
480
+ },
481
+ CONTENT_REPORT_ADMIN: {
482
+ FIND_ALL: `${exports.ROOT}/${CONTROLLERS.CONTENT_REPORT_CONTROLLER_ADMIN}`,
483
+ UPDATE_STATUS: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONTENT_REPORT_CONTROLLER_ADMIN}/${uuid}/${CONTROLLERS.CONTENT_REPORT_ROUTES.UPDATE_STATUS}`,
484
+ },
478
485
  SUPPORT_FEEDBACK_PRIVATE: {
479
486
  CREATE: `${exports.ROOT}/${CONTROLLERS.SUPPORT_FEEDBACK_CONTROLLER_PRIVATE}/${CONTROLLERS.SUPPORT_FEEDBACK_ROUTES.CREATE}`,
480
487
  CHECK: `${exports.ROOT}/${CONTROLLERS.SUPPORT_FEEDBACK_CONTROLLER_PRIVATE}/${CONTROLLERS.SUPPORT_FEEDBACK_ROUTES.CHECK}`,
@@ -0,0 +1,69 @@
1
+ import { z } from 'zod';
2
+ export declare namespace CreateContentReportCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ contentType: z.ZodEnum<{
5
+ readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
6
+ readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
7
+ readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
8
+ readonly SPEECH_TO_TEXT: import("../..").TOOL_CONTENT_TYPE.SPEECH_TO_TEXT;
9
+ readonly REPHRASE: import("../..").TOOL_CONTENT_TYPE.REPHRASE;
10
+ readonly VIDEO: import("../..").TOOL_CONTENT_TYPE.VIDEO;
11
+ readonly PRESENTATION: import("../..").TOOL_CONTENT_TYPE.PRESENTATION;
12
+ readonly WRITER: import("../..").TOOL_CONTENT_TYPE.WRITER;
13
+ readonly VIDEO_EDITOR: import("../..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
14
+ readonly MUSIC: import("../..").TOOL_CONTENT_TYPE.MUSIC;
15
+ readonly INTERIOR_DESIGN: import("../..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
16
+ readonly TEXT: import("../..").TOOL_CONTENT_TYPE.TEXT;
17
+ readonly MARKETPLACE_CARD_GENERATION: import("../..").TOOL_CONTENT_TYPE.MARKETPLACE_CARD_GENERATION;
18
+ readonly SOLVING_EDU_TASK: import("../..").TOOL_CONTENT_TYPE.SOLVING_EDU_TASK;
19
+ readonly SPELL_CORRECTOR: import("../..").TOOL_CONTENT_TYPE.SPELL_CORRECTOR;
20
+ readonly DIAGRAMS: import("../..").TOOL_CONTENT_TYPE.DIAGRAMS;
21
+ readonly HTML_PAGE_BUILDER: import("../..").TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER;
22
+ readonly IMAGE_RECOGNITION: import("../..").TOOL_CONTENT_TYPE.IMAGE_RECOGNITION;
23
+ readonly SOUND_GENERATION: import("../..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
24
+ readonly CHAT_MESSAGE: "CHAT_MESSAGE";
25
+ }>;
26
+ targetId: z.ZodUUID;
27
+ category: z.ZodEnum<typeof import("../..").CONTENT_REPORT_CATEGORY>;
28
+ comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, z.core.$strip>;
30
+ type Request = z.infer<typeof RequestSchema>;
31
+ const ResponseSchema: z.ZodObject<{
32
+ data: z.ZodObject<{
33
+ uuid: z.ZodUUID;
34
+ userId: z.ZodUUID;
35
+ contentType: z.ZodEnum<{
36
+ readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
37
+ readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
38
+ readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
39
+ readonly SPEECH_TO_TEXT: import("../..").TOOL_CONTENT_TYPE.SPEECH_TO_TEXT;
40
+ readonly REPHRASE: import("../..").TOOL_CONTENT_TYPE.REPHRASE;
41
+ readonly VIDEO: import("../..").TOOL_CONTENT_TYPE.VIDEO;
42
+ readonly PRESENTATION: import("../..").TOOL_CONTENT_TYPE.PRESENTATION;
43
+ readonly WRITER: import("../..").TOOL_CONTENT_TYPE.WRITER;
44
+ readonly VIDEO_EDITOR: import("../..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
45
+ readonly MUSIC: import("../..").TOOL_CONTENT_TYPE.MUSIC;
46
+ readonly INTERIOR_DESIGN: import("../..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
47
+ readonly TEXT: import("../..").TOOL_CONTENT_TYPE.TEXT;
48
+ readonly MARKETPLACE_CARD_GENERATION: import("../..").TOOL_CONTENT_TYPE.MARKETPLACE_CARD_GENERATION;
49
+ readonly SOLVING_EDU_TASK: import("../..").TOOL_CONTENT_TYPE.SOLVING_EDU_TASK;
50
+ readonly SPELL_CORRECTOR: import("../..").TOOL_CONTENT_TYPE.SPELL_CORRECTOR;
51
+ readonly DIAGRAMS: import("../..").TOOL_CONTENT_TYPE.DIAGRAMS;
52
+ readonly HTML_PAGE_BUILDER: import("../..").TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER;
53
+ readonly IMAGE_RECOGNITION: import("../..").TOOL_CONTENT_TYPE.IMAGE_RECOGNITION;
54
+ readonly SOUND_GENERATION: import("../..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
55
+ readonly CHAT_MESSAGE: "CHAT_MESSAGE";
56
+ }>;
57
+ targetId: z.ZodUUID;
58
+ category: z.ZodEnum<typeof import("../..").CONTENT_REPORT_CATEGORY>;
59
+ comment: z.ZodNullable<z.ZodString>;
60
+ status: z.ZodEnum<typeof import("../..").CONTENT_REPORT_STATUS>;
61
+ moderatorId: z.ZodNullable<z.ZodUUID>;
62
+ moderatorComment: z.ZodNullable<z.ZodString>;
63
+ resolvedAt: z.ZodNullable<z.ZodDate>;
64
+ createdAt: z.ZodDate;
65
+ updatedAt: z.ZodDate;
66
+ }, z.core.$strip>;
67
+ }, z.core.$strip>;
68
+ type Response = z.infer<typeof ResponseSchema>;
69
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateContentReportCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var CreateContentReportCommand;
7
+ (function (CreateContentReportCommand) {
8
+ CreateContentReportCommand.RequestSchema = models_1.ContentReportSchema.pick({
9
+ contentType: true,
10
+ targetId: true,
11
+ category: true,
12
+ }).extend({
13
+ comment: models_1.ContentReportSchema.shape.comment.optional(),
14
+ });
15
+ CreateContentReportCommand.ResponseSchema = zod_1.z.object({
16
+ data: models_1.ContentReportSchema,
17
+ });
18
+ })(CreateContentReportCommand || (exports.CreateContentReportCommand = CreateContentReportCommand = {}));
@@ -0,0 +1,72 @@
1
+ import { z } from 'zod';
2
+ import { CONTENT_REPORT_STATUS } from '../../constants';
3
+ export declare namespace FindContentReportsQuery {
4
+ const RequestQuerySchema: z.ZodObject<{
5
+ status: z.ZodOptional<z.ZodEnum<typeof CONTENT_REPORT_STATUS>>;
6
+ contentType: z.ZodOptional<z.ZodEnum<{
7
+ readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
8
+ readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
9
+ readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
10
+ readonly SPEECH_TO_TEXT: import("../..").TOOL_CONTENT_TYPE.SPEECH_TO_TEXT;
11
+ readonly REPHRASE: import("../..").TOOL_CONTENT_TYPE.REPHRASE;
12
+ readonly VIDEO: import("../..").TOOL_CONTENT_TYPE.VIDEO;
13
+ readonly PRESENTATION: import("../..").TOOL_CONTENT_TYPE.PRESENTATION;
14
+ readonly WRITER: import("../..").TOOL_CONTENT_TYPE.WRITER;
15
+ readonly VIDEO_EDITOR: import("../..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
16
+ readonly MUSIC: import("../..").TOOL_CONTENT_TYPE.MUSIC;
17
+ readonly INTERIOR_DESIGN: import("../..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
18
+ readonly TEXT: import("../..").TOOL_CONTENT_TYPE.TEXT;
19
+ readonly MARKETPLACE_CARD_GENERATION: import("../..").TOOL_CONTENT_TYPE.MARKETPLACE_CARD_GENERATION;
20
+ readonly SOLVING_EDU_TASK: import("../..").TOOL_CONTENT_TYPE.SOLVING_EDU_TASK;
21
+ readonly SPELL_CORRECTOR: import("../..").TOOL_CONTENT_TYPE.SPELL_CORRECTOR;
22
+ readonly DIAGRAMS: import("../..").TOOL_CONTENT_TYPE.DIAGRAMS;
23
+ readonly HTML_PAGE_BUILDER: import("../..").TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER;
24
+ readonly IMAGE_RECOGNITION: import("../..").TOOL_CONTENT_TYPE.IMAGE_RECOGNITION;
25
+ readonly SOUND_GENERATION: import("../..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
26
+ readonly CHAT_MESSAGE: "CHAT_MESSAGE";
27
+ }>>;
28
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
29
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
30
+ }, z.core.$strip>;
31
+ type RequestQuery = z.infer<typeof RequestQuerySchema>;
32
+ const ResponseSchema: z.ZodObject<{
33
+ data: z.ZodArray<z.ZodObject<{
34
+ uuid: z.ZodUUID;
35
+ userId: z.ZodUUID;
36
+ contentType: z.ZodEnum<{
37
+ readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
38
+ readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
39
+ readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
40
+ readonly SPEECH_TO_TEXT: import("../..").TOOL_CONTENT_TYPE.SPEECH_TO_TEXT;
41
+ readonly REPHRASE: import("../..").TOOL_CONTENT_TYPE.REPHRASE;
42
+ readonly VIDEO: import("../..").TOOL_CONTENT_TYPE.VIDEO;
43
+ readonly PRESENTATION: import("../..").TOOL_CONTENT_TYPE.PRESENTATION;
44
+ readonly WRITER: import("../..").TOOL_CONTENT_TYPE.WRITER;
45
+ readonly VIDEO_EDITOR: import("../..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
46
+ readonly MUSIC: import("../..").TOOL_CONTENT_TYPE.MUSIC;
47
+ readonly INTERIOR_DESIGN: import("../..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
48
+ readonly TEXT: import("../..").TOOL_CONTENT_TYPE.TEXT;
49
+ readonly MARKETPLACE_CARD_GENERATION: import("../..").TOOL_CONTENT_TYPE.MARKETPLACE_CARD_GENERATION;
50
+ readonly SOLVING_EDU_TASK: import("../..").TOOL_CONTENT_TYPE.SOLVING_EDU_TASK;
51
+ readonly SPELL_CORRECTOR: import("../..").TOOL_CONTENT_TYPE.SPELL_CORRECTOR;
52
+ readonly DIAGRAMS: import("../..").TOOL_CONTENT_TYPE.DIAGRAMS;
53
+ readonly HTML_PAGE_BUILDER: import("../..").TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER;
54
+ readonly IMAGE_RECOGNITION: import("../..").TOOL_CONTENT_TYPE.IMAGE_RECOGNITION;
55
+ readonly SOUND_GENERATION: import("../..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
56
+ readonly CHAT_MESSAGE: "CHAT_MESSAGE";
57
+ }>;
58
+ targetId: z.ZodUUID;
59
+ category: z.ZodEnum<typeof import("../..").CONTENT_REPORT_CATEGORY>;
60
+ comment: z.ZodNullable<z.ZodString>;
61
+ status: z.ZodEnum<typeof CONTENT_REPORT_STATUS>;
62
+ moderatorId: z.ZodNullable<z.ZodUUID>;
63
+ moderatorComment: z.ZodNullable<z.ZodString>;
64
+ resolvedAt: z.ZodNullable<z.ZodDate>;
65
+ createdAt: z.ZodDate;
66
+ updatedAt: z.ZodDate;
67
+ }, z.core.$strip>>;
68
+ totalPages: z.ZodNumber;
69
+ page: z.ZodNumber;
70
+ }, z.core.$strip>;
71
+ type Response = z.infer<typeof ResponseSchema>;
72
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindContentReportsQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ const models_1 = require("../../models");
7
+ var FindContentReportsQuery;
8
+ (function (FindContentReportsQuery) {
9
+ FindContentReportsQuery.RequestQuerySchema = zod_1.z.object({
10
+ status: zod_1.z.enum(constants_1.CONTENT_REPORT_STATUS).optional(),
11
+ contentType: zod_1.z.enum(constants_1.CONTENT_REPORT_TARGET_TYPE).optional(),
12
+ page: zod_1.z.coerce.number().int().min(1).default(1),
13
+ limit: zod_1.z.coerce.number().int().min(1).max(100).default(20),
14
+ });
15
+ FindContentReportsQuery.ResponseSchema = zod_1.z.object({
16
+ data: zod_1.z.array(models_1.ContentReportSchema),
17
+ totalPages: zod_1.z.number().int(),
18
+ page: zod_1.z.number().int(),
19
+ });
20
+ })(FindContentReportsQuery || (exports.FindContentReportsQuery = FindContentReportsQuery = {}));
@@ -0,0 +1,3 @@
1
+ export * from './create-content-report.command';
2
+ export * from './find-content-reports.query';
3
+ export * from './update-content-report-status.command';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-content-report.command"), exports);
18
+ __exportStar(require("./find-content-reports.query"), exports);
19
+ __exportStar(require("./update-content-report-status.command"), exports);
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateContentReportStatusCommand {
3
+ const RequestParamSchema: z.ZodObject<{
4
+ uuid: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ type RequestParam = z.infer<typeof RequestParamSchema>;
7
+ const RequestSchema: z.ZodObject<{
8
+ status: z.ZodEnum<typeof import("../..").CONTENT_REPORT_STATUS>;
9
+ moderatorComment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, z.core.$strip>;
11
+ type Request = z.infer<typeof RequestSchema>;
12
+ const ResponseSchema: z.ZodObject<{
13
+ data: z.ZodObject<{
14
+ uuid: z.ZodUUID;
15
+ userId: z.ZodUUID;
16
+ contentType: z.ZodEnum<{
17
+ readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
18
+ readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
19
+ readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
20
+ readonly SPEECH_TO_TEXT: import("../..").TOOL_CONTENT_TYPE.SPEECH_TO_TEXT;
21
+ readonly REPHRASE: import("../..").TOOL_CONTENT_TYPE.REPHRASE;
22
+ readonly VIDEO: import("../..").TOOL_CONTENT_TYPE.VIDEO;
23
+ readonly PRESENTATION: import("../..").TOOL_CONTENT_TYPE.PRESENTATION;
24
+ readonly WRITER: import("../..").TOOL_CONTENT_TYPE.WRITER;
25
+ readonly VIDEO_EDITOR: import("../..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
26
+ readonly MUSIC: import("../..").TOOL_CONTENT_TYPE.MUSIC;
27
+ readonly INTERIOR_DESIGN: import("../..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
28
+ readonly TEXT: import("../..").TOOL_CONTENT_TYPE.TEXT;
29
+ readonly MARKETPLACE_CARD_GENERATION: import("../..").TOOL_CONTENT_TYPE.MARKETPLACE_CARD_GENERATION;
30
+ readonly SOLVING_EDU_TASK: import("../..").TOOL_CONTENT_TYPE.SOLVING_EDU_TASK;
31
+ readonly SPELL_CORRECTOR: import("../..").TOOL_CONTENT_TYPE.SPELL_CORRECTOR;
32
+ readonly DIAGRAMS: import("../..").TOOL_CONTENT_TYPE.DIAGRAMS;
33
+ readonly HTML_PAGE_BUILDER: import("../..").TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER;
34
+ readonly IMAGE_RECOGNITION: import("../..").TOOL_CONTENT_TYPE.IMAGE_RECOGNITION;
35
+ readonly SOUND_GENERATION: import("../..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
36
+ readonly CHAT_MESSAGE: "CHAT_MESSAGE";
37
+ }>;
38
+ targetId: z.ZodUUID;
39
+ category: z.ZodEnum<typeof import("../..").CONTENT_REPORT_CATEGORY>;
40
+ comment: z.ZodNullable<z.ZodString>;
41
+ status: z.ZodEnum<typeof import("../..").CONTENT_REPORT_STATUS>;
42
+ moderatorId: z.ZodNullable<z.ZodUUID>;
43
+ moderatorComment: z.ZodNullable<z.ZodString>;
44
+ resolvedAt: z.ZodNullable<z.ZodDate>;
45
+ createdAt: z.ZodDate;
46
+ updatedAt: z.ZodDate;
47
+ }, z.core.$strip>;
48
+ }, z.core.$strip>;
49
+ type Response = z.infer<typeof ResponseSchema>;
50
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateContentReportStatusCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var UpdateContentReportStatusCommand;
7
+ (function (UpdateContentReportStatusCommand) {
8
+ UpdateContentReportStatusCommand.RequestParamSchema = models_1.ContentReportSchema.pick({
9
+ uuid: true,
10
+ });
11
+ UpdateContentReportStatusCommand.RequestSchema = models_1.ContentReportSchema.pick({
12
+ status: true,
13
+ }).extend({
14
+ moderatorComment: zod_1.z.string().max(1000).nullable().optional(),
15
+ });
16
+ UpdateContentReportStatusCommand.ResponseSchema = zod_1.z.object({
17
+ data: models_1.ContentReportSchema,
18
+ });
19
+ })(UpdateContentReportStatusCommand || (exports.UpdateContentReportStatusCommand = UpdateContentReportStatusCommand = {}));
@@ -52,6 +52,7 @@ export * from './b2b';
52
52
  export * from './b2b-usage-log';
53
53
  export * from './b2b-compatible';
54
54
  export * from './community';
55
+ export * from './content-report';
55
56
  export * from './cookie-consent';
56
57
  export * from './user-profile';
57
58
  export * from './team-account';
@@ -68,6 +68,7 @@ __exportStar(require("./b2b"), exports);
68
68
  __exportStar(require("./b2b-usage-log"), exports);
69
69
  __exportStar(require("./b2b-compatible"), exports);
70
70
  __exportStar(require("./community"), exports);
71
+ __exportStar(require("./content-report"), exports);
71
72
  __exportStar(require("./cookie-consent"), exports);
72
73
  __exportStar(require("./user-profile"), exports);
73
74
  __exportStar(require("./team-account"), exports);
@@ -0,0 +1,8 @@
1
+ export declare enum CONTENT_REPORT_CATEGORY {
2
+ HARASSMENT = "HARASSMENT",
3
+ SEXUAL_CONTENT = "SEXUAL_CONTENT",
4
+ VIOLENCE_OR_DANGEROUS = "VIOLENCE_OR_DANGEROUS",
5
+ RIGHTS_VIOLATION = "RIGHTS_VIOLATION",
6
+ MISINFORMATION = "MISINFORMATION",
7
+ OTHER = "OTHER"
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONTENT_REPORT_CATEGORY = void 0;
4
+ var CONTENT_REPORT_CATEGORY;
5
+ (function (CONTENT_REPORT_CATEGORY) {
6
+ CONTENT_REPORT_CATEGORY["HARASSMENT"] = "HARASSMENT";
7
+ CONTENT_REPORT_CATEGORY["SEXUAL_CONTENT"] = "SEXUAL_CONTENT";
8
+ CONTENT_REPORT_CATEGORY["VIOLENCE_OR_DANGEROUS"] = "VIOLENCE_OR_DANGEROUS";
9
+ CONTENT_REPORT_CATEGORY["RIGHTS_VIOLATION"] = "RIGHTS_VIOLATION";
10
+ CONTENT_REPORT_CATEGORY["MISINFORMATION"] = "MISINFORMATION";
11
+ CONTENT_REPORT_CATEGORY["OTHER"] = "OTHER";
12
+ })(CONTENT_REPORT_CATEGORY || (exports.CONTENT_REPORT_CATEGORY = CONTENT_REPORT_CATEGORY = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum CONTENT_REPORT_STATUS {
2
+ PENDING = "PENDING",
3
+ IN_REVIEW = "IN_REVIEW",
4
+ RESOLVED = "RESOLVED",
5
+ REJECTED = "REJECTED"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONTENT_REPORT_STATUS = void 0;
4
+ var CONTENT_REPORT_STATUS;
5
+ (function (CONTENT_REPORT_STATUS) {
6
+ CONTENT_REPORT_STATUS["PENDING"] = "PENDING";
7
+ CONTENT_REPORT_STATUS["IN_REVIEW"] = "IN_REVIEW";
8
+ CONTENT_REPORT_STATUS["RESOLVED"] = "RESOLVED";
9
+ CONTENT_REPORT_STATUS["REJECTED"] = "REJECTED";
10
+ })(CONTENT_REPORT_STATUS || (exports.CONTENT_REPORT_STATUS = CONTENT_REPORT_STATUS = {}));
@@ -0,0 +1,25 @@
1
+ import { TOOL_CONTENT_TYPE } from '../../tool/enums/tool-content-type.enum';
2
+ export declare const CONTENT_REPORT_CHAT_MESSAGE_TYPE: 'CHAT_MESSAGE';
3
+ export declare const CONTENT_REPORT_TARGET_TYPE: {
4
+ readonly IMAGE_EDITOR: TOOL_CONTENT_TYPE.IMAGE_EDITOR;
5
+ readonly IMAGE_GENERATION: TOOL_CONTENT_TYPE.IMAGE_GENERATION;
6
+ readonly TEXT_TO_SPEECH: TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
7
+ readonly SPEECH_TO_TEXT: TOOL_CONTENT_TYPE.SPEECH_TO_TEXT;
8
+ readonly REPHRASE: TOOL_CONTENT_TYPE.REPHRASE;
9
+ readonly VIDEO: TOOL_CONTENT_TYPE.VIDEO;
10
+ readonly PRESENTATION: TOOL_CONTENT_TYPE.PRESENTATION;
11
+ readonly WRITER: TOOL_CONTENT_TYPE.WRITER;
12
+ readonly VIDEO_EDITOR: TOOL_CONTENT_TYPE.VIDEO_EDITOR;
13
+ readonly MUSIC: TOOL_CONTENT_TYPE.MUSIC;
14
+ readonly INTERIOR_DESIGN: TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
15
+ readonly TEXT: TOOL_CONTENT_TYPE.TEXT;
16
+ readonly MARKETPLACE_CARD_GENERATION: TOOL_CONTENT_TYPE.MARKETPLACE_CARD_GENERATION;
17
+ readonly SOLVING_EDU_TASK: TOOL_CONTENT_TYPE.SOLVING_EDU_TASK;
18
+ readonly SPELL_CORRECTOR: TOOL_CONTENT_TYPE.SPELL_CORRECTOR;
19
+ readonly DIAGRAMS: TOOL_CONTENT_TYPE.DIAGRAMS;
20
+ readonly HTML_PAGE_BUILDER: TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER;
21
+ readonly IMAGE_RECOGNITION: TOOL_CONTENT_TYPE.IMAGE_RECOGNITION;
22
+ readonly SOUND_GENERATION: TOOL_CONTENT_TYPE.SOUND_GENERATION;
23
+ readonly CHAT_MESSAGE: "CHAT_MESSAGE";
24
+ };
25
+ export type CONTENT_REPORT_TARGET_TYPE = (typeof CONTENT_REPORT_TARGET_TYPE)[keyof typeof CONTENT_REPORT_TARGET_TYPE];
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONTENT_REPORT_TARGET_TYPE = exports.CONTENT_REPORT_CHAT_MESSAGE_TYPE = void 0;
4
+ const tool_content_type_enum_1 = require("../../tool/enums/tool-content-type.enum");
5
+ exports.CONTENT_REPORT_CHAT_MESSAGE_TYPE = 'CHAT_MESSAGE';
6
+ exports.CONTENT_REPORT_TARGET_TYPE = Object.assign(Object.assign({}, tool_content_type_enum_1.TOOL_CONTENT_TYPE), { CHAT_MESSAGE: exports.CONTENT_REPORT_CHAT_MESSAGE_TYPE });
@@ -0,0 +1,3 @@
1
+ export * from './content-report-category.enum';
2
+ export * from './content-report-status.enum';
3
+ export * from './content-report-target-type.enum';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./content-report-category.enum"), exports);
18
+ __exportStar(require("./content-report-status.enum"), exports);
19
+ __exportStar(require("./content-report-target-type.enum"), exports);
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums"), exports);
@@ -56,6 +56,7 @@ export * from './webmaster';
56
56
  export * from './webmaster-balance';
57
57
  export * from './tool-music';
58
58
  export * from './community';
59
+ export * from './content-report';
59
60
  export * from './user-profile';
60
61
  export * from './model';
61
62
  export * from './token-reservation';
@@ -72,6 +72,7 @@ __exportStar(require("./webmaster"), exports);
72
72
  __exportStar(require("./webmaster-balance"), exports);
73
73
  __exportStar(require("./tool-music"), exports);
74
74
  __exportStar(require("./community"), exports);
75
+ __exportStar(require("./content-report"), exports);
75
76
  __exportStar(require("./user-profile"), exports);
76
77
  __exportStar(require("./model"), exports);
77
78
  __exportStar(require("./token-reservation"), exports);
@@ -0,0 +1,39 @@
1
+ import { z } from 'zod';
2
+ import { CONTENT_REPORT_CATEGORY, CONTENT_REPORT_STATUS } from '../constants';
3
+ export declare const CONTENT_REPORT_COMMENT_MAX_LENGTH = 500;
4
+ export declare const ContentReportSchema: z.ZodObject<{
5
+ uuid: z.ZodUUID;
6
+ userId: z.ZodUUID;
7
+ contentType: z.ZodEnum<{
8
+ readonly IMAGE_EDITOR: import("..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
9
+ readonly IMAGE_GENERATION: import("..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
10
+ readonly TEXT_TO_SPEECH: import("..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
11
+ readonly SPEECH_TO_TEXT: import("..").TOOL_CONTENT_TYPE.SPEECH_TO_TEXT;
12
+ readonly REPHRASE: import("..").TOOL_CONTENT_TYPE.REPHRASE;
13
+ readonly VIDEO: import("..").TOOL_CONTENT_TYPE.VIDEO;
14
+ readonly PRESENTATION: import("..").TOOL_CONTENT_TYPE.PRESENTATION;
15
+ readonly WRITER: import("..").TOOL_CONTENT_TYPE.WRITER;
16
+ readonly VIDEO_EDITOR: import("..").TOOL_CONTENT_TYPE.VIDEO_EDITOR;
17
+ readonly MUSIC: import("..").TOOL_CONTENT_TYPE.MUSIC;
18
+ readonly INTERIOR_DESIGN: import("..").TOOL_CONTENT_TYPE.INTERIOR_DESIGN;
19
+ readonly TEXT: import("..").TOOL_CONTENT_TYPE.TEXT;
20
+ readonly MARKETPLACE_CARD_GENERATION: import("..").TOOL_CONTENT_TYPE.MARKETPLACE_CARD_GENERATION;
21
+ readonly SOLVING_EDU_TASK: import("..").TOOL_CONTENT_TYPE.SOLVING_EDU_TASK;
22
+ readonly SPELL_CORRECTOR: import("..").TOOL_CONTENT_TYPE.SPELL_CORRECTOR;
23
+ readonly DIAGRAMS: import("..").TOOL_CONTENT_TYPE.DIAGRAMS;
24
+ readonly HTML_PAGE_BUILDER: import("..").TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER;
25
+ readonly IMAGE_RECOGNITION: import("..").TOOL_CONTENT_TYPE.IMAGE_RECOGNITION;
26
+ readonly SOUND_GENERATION: import("..").TOOL_CONTENT_TYPE.SOUND_GENERATION;
27
+ readonly CHAT_MESSAGE: "CHAT_MESSAGE";
28
+ }>;
29
+ targetId: z.ZodUUID;
30
+ category: z.ZodEnum<typeof CONTENT_REPORT_CATEGORY>;
31
+ comment: z.ZodNullable<z.ZodString>;
32
+ status: z.ZodEnum<typeof CONTENT_REPORT_STATUS>;
33
+ moderatorId: z.ZodNullable<z.ZodUUID>;
34
+ moderatorComment: z.ZodNullable<z.ZodString>;
35
+ resolvedAt: z.ZodNullable<z.ZodDate>;
36
+ createdAt: z.ZodDate;
37
+ updatedAt: z.ZodDate;
38
+ }, z.core.$strip>;
39
+ export type ContentReport = z.infer<typeof ContentReportSchema>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentReportSchema = exports.CONTENT_REPORT_COMMENT_MAX_LENGTH = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../constants");
6
+ exports.CONTENT_REPORT_COMMENT_MAX_LENGTH = 500;
7
+ exports.ContentReportSchema = zod_1.z.object({
8
+ uuid: zod_1.z.uuid(),
9
+ userId: zod_1.z.uuid(),
10
+ contentType: zod_1.z.enum(constants_1.CONTENT_REPORT_TARGET_TYPE),
11
+ targetId: zod_1.z.uuid(),
12
+ category: zod_1.z.enum(constants_1.CONTENT_REPORT_CATEGORY),
13
+ comment: zod_1.z.string().max(exports.CONTENT_REPORT_COMMENT_MAX_LENGTH).nullable(),
14
+ status: zod_1.z.enum(constants_1.CONTENT_REPORT_STATUS),
15
+ moderatorId: zod_1.z.uuid().nullable(),
16
+ moderatorComment: zod_1.z.string().nullable(),
17
+ resolvedAt: zod_1.z.date().nullable(),
18
+ createdAt: zod_1.z.date(),
19
+ updatedAt: zod_1.z.date(),
20
+ });
@@ -17,6 +17,7 @@ export * from './cloud-payments-receipt.schema';
17
17
  export * from './course-author.schema';
18
18
  export * from './course.schema';
19
19
  export * from './course-translation.schema';
20
+ export * from './content-report.schema';
20
21
  export * from './date.schema';
21
22
  export * from './feedback.schema';
22
23
  export * from './file.schema';
@@ -33,6 +33,7 @@ __exportStar(require("./cloud-payments-receipt.schema"), exports);
33
33
  __exportStar(require("./course-author.schema"), exports);
34
34
  __exportStar(require("./course.schema"), exports);
35
35
  __exportStar(require("./course-translation.schema"), exports);
36
+ __exportStar(require("./content-report.schema"), exports);
36
37
  __exportStar(require("./date.schema"), exports);
37
38
  __exportStar(require("./feedback.schema"), exports);
38
39
  __exportStar(require("./file.schema"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.18.4",
3
+ "version": "0.18.5",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",