@purpleschool/gptbot 0.19.7 → 0.19.9-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/greetings.d.ts +24 -0
- package/build/api/controllers/http/greetings.js +28 -0
- package/build/api/controllers/http/index.d.ts +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/index.d.ts +1 -0
- package/build/api/index.js +1 -0
- package/build/api/partner-code-routes.d.ts +21 -0
- package/build/api/partner-code-routes.js +25 -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/message/create-text-message.command.js +1 -1
- package/build/commands/partner-codes/index.d.ts +489 -0
- package/build/commands/partner-codes/index.js +73 -0
- package/build/commands/tools/greetings/index.d.ts +2 -0
- package/build/commands/tools/greetings/index.js +18 -0
- package/build/commands/tools/greetings/requests.d.ts +130 -0
- package/build/commands/tools/greetings/requests.js +34 -0
- package/build/commands/tools/greetings/responses.d.ts +251 -0
- package/build/commands/tools/greetings/responses.js +29 -0
- package/build/commands/tools/index.d.ts +1 -0
- package/build/commands/tools/index.js +1 -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/content-report/enums/content-report-target-type.enum.d.ts +1 -0
- package/build/constants/tool/enums/greetings-kind.enum.d.ts +12 -0
- package/build/constants/tool/enums/greetings-kind.enum.js +17 -0
- package/build/constants/tool/enums/index.d.ts +1 -0
- package/build/constants/tool/enums/index.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/greetings/index.d.ts +4 -0
- package/build/greetings/index.js +20 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -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/partner-codes/index.d.ts +1 -0
- package/build/models/partner-codes/index.js +17 -0
- package/build/models/partner-codes/partner-codes.schema.d.ts +739 -0
- package/build/models/partner-codes/partner-codes.schema.js +347 -0
- package/build/models/tools/greetings/greeting-config.schema.d.ts +70 -0
- package/build/models/tools/greetings/greeting-config.schema.js +35 -0
- package/build/models/tools/greetings/greeting-input.schema.d.ts +49 -0
- package/build/models/tools/greetings/greeting-input.schema.js +27 -0
- package/build/models/tools/greetings/greeting-job.schema.d.ts +94 -0
- package/build/models/tools/greetings/greeting-job.schema.js +23 -0
- package/build/models/tools/greetings/greeting-result.schema.d.ts +43 -0
- package/build/models/tools/greetings/greeting-result.schema.js +32 -0
- package/build/models/tools/greetings/index.d.ts +4 -0
- package/build/models/tools/greetings/index.js +20 -0
- package/build/models/tools/index.d.ts +1 -0
- package/build/models/tools/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const GREETINGS_CONTROLLER_PRIVATE = "private/tools/greetings";
|
|
2
|
+
export declare const GREETINGS_CONTROLLER_PUBLIC = "public/tools/greetings";
|
|
3
|
+
export declare const GREETINGS_HTTP_ROUTES: {
|
|
4
|
+
readonly CONFIG: 'config';
|
|
5
|
+
readonly PRICE: 'price';
|
|
6
|
+
readonly EXECUTE: 'execute';
|
|
7
|
+
readonly JOBS: 'jobs';
|
|
8
|
+
readonly JOB: 'jobs/:uuid';
|
|
9
|
+
readonly RETRY: 'jobs/:uuid/retry';
|
|
10
|
+
readonly FAVORITE: 'jobs/:uuid/favorite';
|
|
11
|
+
readonly TITLE: 'jobs/:uuid/title';
|
|
12
|
+
readonly REACTION: 'jobs/:uuid/reaction';
|
|
13
|
+
};
|
|
14
|
+
export declare const GREETINGS_API_ROUTES: (scope: 'private' | 'public') => {
|
|
15
|
+
CONFIG: string;
|
|
16
|
+
PRICE: string;
|
|
17
|
+
EXECUTE: string;
|
|
18
|
+
JOBS: string;
|
|
19
|
+
JOB: (uuid: string) => string;
|
|
20
|
+
RETRY: (uuid: string) => string;
|
|
21
|
+
FAVORITE: (uuid: string) => string;
|
|
22
|
+
TITLE: (uuid: string) => string;
|
|
23
|
+
REACTION: (uuid: string) => string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GREETINGS_API_ROUTES = exports.GREETINGS_HTTP_ROUTES = exports.GREETINGS_CONTROLLER_PUBLIC = exports.GREETINGS_CONTROLLER_PRIVATE = void 0;
|
|
4
|
+
exports.GREETINGS_CONTROLLER_PRIVATE = 'private/tools/greetings';
|
|
5
|
+
exports.GREETINGS_CONTROLLER_PUBLIC = 'public/tools/greetings';
|
|
6
|
+
exports.GREETINGS_HTTP_ROUTES = {
|
|
7
|
+
CONFIG: 'config',
|
|
8
|
+
PRICE: 'price',
|
|
9
|
+
EXECUTE: 'execute',
|
|
10
|
+
JOBS: 'jobs',
|
|
11
|
+
JOB: 'jobs/:uuid',
|
|
12
|
+
RETRY: 'jobs/:uuid/retry',
|
|
13
|
+
FAVORITE: 'jobs/:uuid/favorite',
|
|
14
|
+
TITLE: 'jobs/:uuid/title',
|
|
15
|
+
REACTION: 'jobs/:uuid/reaction',
|
|
16
|
+
};
|
|
17
|
+
const GREETINGS_API_ROUTES = (scope) => ({
|
|
18
|
+
CONFIG: `/api/${scope}/tools/greetings/config`,
|
|
19
|
+
PRICE: `/api/${scope}/tools/greetings/price`,
|
|
20
|
+
EXECUTE: `/api/${scope}/tools/greetings/execute`,
|
|
21
|
+
JOBS: `/api/${scope}/tools/greetings/jobs`,
|
|
22
|
+
JOB: (uuid) => `/api/${scope}/tools/greetings/jobs/${uuid}`,
|
|
23
|
+
RETRY: (uuid) => `/api/${scope}/tools/greetings/jobs/${uuid}/retry`,
|
|
24
|
+
FAVORITE: (uuid) => `/api/${scope}/tools/greetings/jobs/${uuid}/favorite`,
|
|
25
|
+
TITLE: (uuid) => `/api/${scope}/tools/greetings/jobs/${uuid}/title`,
|
|
26
|
+
REACTION: (uuid) => `/api/${scope}/tools/greetings/jobs/${uuid}/reaction`,
|
|
27
|
+
});
|
|
28
|
+
exports.GREETINGS_API_ROUTES = GREETINGS_API_ROUTES;
|
package/build/api/index.d.ts
CHANGED
package/build/api/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./controllers"), exports);
|
|
18
18
|
__exportStar(require("./routes"), exports);
|
|
19
|
+
__exportStar(require("./partner-code-routes"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const PARTNER_CODE_CONTROLLER: 'private/partner-codes';
|
|
2
|
+
export declare const PARTNER_CODE_PUBLIC_CONTROLLER: 'public/activation-codes';
|
|
3
|
+
export declare const PARTNER_CODE_ADMIN_CONTROLLER: 'private/admin/partner-codes';
|
|
4
|
+
export declare const PARTNER_CODE_ROUTES: {
|
|
5
|
+
readonly OFFERS: 'offers';
|
|
6
|
+
readonly BATCHES: 'batches';
|
|
7
|
+
readonly BATCH: (uuid: string) => string;
|
|
8
|
+
readonly CODES: (uuid: string) => string;
|
|
9
|
+
readonly EXPORT: (uuid: string) => string;
|
|
10
|
+
readonly EXPORT_CHALLENGE: 'exports/challenge';
|
|
11
|
+
readonly EXPORT_VERIFY: 'exports/verify';
|
|
12
|
+
readonly REPORT: 'report';
|
|
13
|
+
readonly REPORT_CSV: 'report/csv';
|
|
14
|
+
readonly INVITES: 'invites';
|
|
15
|
+
readonly INVITE_ACCEPT: 'invites/accept';
|
|
16
|
+
readonly INVITE_REVOKE: 'invites/revoke';
|
|
17
|
+
readonly LEAKS: 'leaks';
|
|
18
|
+
readonly CHECK: 'check';
|
|
19
|
+
readonly ACTIVATE: 'activate';
|
|
20
|
+
readonly CLOSE: 'periods/close';
|
|
21
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PARTNER_CODE_ROUTES = exports.PARTNER_CODE_ADMIN_CONTROLLER = exports.PARTNER_CODE_PUBLIC_CONTROLLER = exports.PARTNER_CODE_CONTROLLER = void 0;
|
|
4
|
+
// Declarations for the audience owners only. Core registers no HTTP controllers/endpoints.
|
|
5
|
+
exports.PARTNER_CODE_CONTROLLER = 'private/partner-codes';
|
|
6
|
+
exports.PARTNER_CODE_PUBLIC_CONTROLLER = 'public/activation-codes';
|
|
7
|
+
exports.PARTNER_CODE_ADMIN_CONTROLLER = 'private/admin/partner-codes';
|
|
8
|
+
exports.PARTNER_CODE_ROUTES = {
|
|
9
|
+
OFFERS: 'offers',
|
|
10
|
+
BATCHES: 'batches',
|
|
11
|
+
BATCH: (uuid) => `batches/${uuid}`,
|
|
12
|
+
CODES: (uuid) => `batches/${uuid}/codes`,
|
|
13
|
+
EXPORT: (uuid) => `batches/${uuid}/export`,
|
|
14
|
+
EXPORT_CHALLENGE: 'exports/challenge',
|
|
15
|
+
EXPORT_VERIFY: 'exports/verify',
|
|
16
|
+
REPORT: 'report',
|
|
17
|
+
REPORT_CSV: 'report/csv',
|
|
18
|
+
INVITES: 'invites',
|
|
19
|
+
INVITE_ACCEPT: 'invites/accept',
|
|
20
|
+
INVITE_REVOKE: 'invites/revoke',
|
|
21
|
+
LEAKS: 'leaks',
|
|
22
|
+
CHECK: 'check',
|
|
23
|
+
ACTIVATE: 'activate',
|
|
24
|
+
CLOSE: 'periods/close',
|
|
25
|
+
};
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare namespace CreateContentReportCommand {
|
|
3
3
|
const RequestSchema: z.ZodObject<{
|
|
4
4
|
contentType: z.ZodEnum<{
|
|
5
|
+
readonly GREETINGS: import("../..").TOOL_CONTENT_TYPE.GREETINGS;
|
|
5
6
|
readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
|
|
6
7
|
readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
|
|
7
8
|
readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
|
|
@@ -33,6 +34,7 @@ export declare namespace CreateContentReportCommand {
|
|
|
33
34
|
uuid: z.ZodUUID;
|
|
34
35
|
userId: z.ZodUUID;
|
|
35
36
|
contentType: z.ZodEnum<{
|
|
37
|
+
readonly GREETINGS: import("../..").TOOL_CONTENT_TYPE.GREETINGS;
|
|
36
38
|
readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
|
|
37
39
|
readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
|
|
38
40
|
readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
|
|
@@ -4,6 +4,7 @@ export declare namespace FindContentReportsQuery {
|
|
|
4
4
|
const RequestQuerySchema: z.ZodObject<{
|
|
5
5
|
status: z.ZodOptional<z.ZodEnum<typeof CONTENT_REPORT_STATUS>>;
|
|
6
6
|
contentType: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
readonly GREETINGS: import("../..").TOOL_CONTENT_TYPE.GREETINGS;
|
|
7
8
|
readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
|
|
8
9
|
readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
|
|
9
10
|
readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
|
|
@@ -34,6 +35,7 @@ export declare namespace FindContentReportsQuery {
|
|
|
34
35
|
uuid: z.ZodUUID;
|
|
35
36
|
userId: z.ZodUUID;
|
|
36
37
|
contentType: z.ZodEnum<{
|
|
38
|
+
readonly GREETINGS: import("../..").TOOL_CONTENT_TYPE.GREETINGS;
|
|
37
39
|
readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
|
|
38
40
|
readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
|
|
39
41
|
readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
|
|
@@ -14,6 +14,7 @@ export declare namespace UpdateContentReportStatusCommand {
|
|
|
14
14
|
uuid: z.ZodUUID;
|
|
15
15
|
userId: z.ZodUUID;
|
|
16
16
|
contentType: z.ZodEnum<{
|
|
17
|
+
readonly GREETINGS: import("../..").TOOL_CONTENT_TYPE.GREETINGS;
|
|
17
18
|
readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
|
|
18
19
|
readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
|
|
19
20
|
readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
|
package/build/commands/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const zod_1 = require("zod");
|
|
|
7
7
|
var CreateTextMessageCommand;
|
|
8
8
|
(function (CreateTextMessageCommand) {
|
|
9
9
|
CreateTextMessageCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
text: zod_1.z.string().
|
|
10
|
+
text: zod_1.z.string().refine((text) => text.trim().length > 0),
|
|
11
11
|
files: zod_1.z.array(zod_1.z.uuid()).optional().default([]),
|
|
12
12
|
features: zod_1.z.array(zod_1.z.enum(constants_1.AI_MODEL_FEATURE)).optional().default([]),
|
|
13
13
|
aiModelId: zod_1.z.uuid(),
|