@purpleschool/gptbot 0.7.31 → 0.7.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/controllers/http/image-editor.ts +14 -0
- package/api/controllers/http/index.ts +2 -0
- package/api/controllers/http/writer.ts +18 -0
- package/build/api/controllers/http/image-editor.js +16 -0
- package/build/api/controllers/http/index.js +2 -0
- package/build/api/controllers/http/writer.js +20 -0
- package/build/commands/tools/image-editor/delete-all-image-editor-jobs.command.js +8 -0
- package/build/commands/tools/image-editor/delete-image-editor-job-by-uuid.command.js +11 -0
- package/build/commands/tools/image-editor/find-image-editor-job-by-uuid.command.js +14 -0
- package/build/commands/tools/image-editor/find-image-editor-jobs.command.js +18 -0
- package/build/commands/tools/image-editor/get-image-editor-tool-config.command.js +11 -0
- package/build/commands/tools/image-editor/image-editor.command.js +19 -0
- package/build/commands/tools/image-editor/index.js +25 -0
- package/build/commands/tools/image-editor/retry-image-editor-job.command.js +14 -0
- package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.js +18 -0
- package/build/commands/tools/image-editor/update-image-editor-job-title.command.js +17 -0
- package/build/commands/tools/index.js +2 -0
- package/build/commands/tools/writer/create-writer-document.command.js +16 -0
- package/build/commands/tools/writer/delete-all-writer-documents.command.js +8 -0
- package/build/commands/tools/writer/delete-writer-document-by-uuid.command.js +11 -0
- package/build/commands/tools/writer/find-writer-document-by-uuid.command.js +14 -0
- package/build/commands/tools/writer/find-writer-documents.command.js +18 -0
- package/build/commands/tools/writer/generate-writer-document-contents.command.js +14 -0
- package/build/commands/tools/writer/get-writer-tool-config.command.js +11 -0
- package/build/commands/tools/writer/index.js +29 -0
- package/build/commands/tools/writer/update-writer-document-contents.command.js +18 -0
- package/build/commands/tools/writer/update-writer-document-outline.command.js +17 -0
- package/build/commands/tools/writer/writer-extend-text.command.js +18 -0
- package/build/commands/tools/writer/writer-fix-errors.command.js +18 -0
- package/build/commands/tools/writer/writer-paraphrase.command.js +18 -0
- package/build/commands/tools/writer/writer-shorten-text.command.js +18 -0
- package/build/constants/errors/errors.js +124 -15
- package/build/constants/index.js +2 -0
- package/build/constants/tool-image-editor/enums/image-editor-model-type.enum.js +7 -0
- package/build/constants/tool-image-editor/enums/image-editor-strategy.enum.js +8 -0
- package/build/constants/tool-image-editor/enums/index.js +18 -0
- package/build/constants/tool-image-editor/index.js +17 -0
- package/build/constants/writer/enums/index.js +20 -0
- package/build/constants/writer/enums/writer-ai-action-pricing-type.enum.js +8 -0
- package/build/constants/writer/enums/writer-ai-action-type.enum.js +11 -0
- package/build/constants/writer/enums/writer-document-section-type.enum.js +9 -0
- package/build/constants/writer/enums/writer-document-stage.enum.js +14 -0
- package/build/constants/writer/index.js +17 -0
- package/build/models/tools/image-editor/image-editor-config.schema.js +32 -0
- package/build/models/tools/image-editor/image-editor-job.schema.js +17 -0
- package/build/models/tools/image-editor/image-editor-model.schema.js +25 -0
- package/build/models/tools/image-editor/index.js +19 -0
- package/build/models/tools/index.js +2 -0
- package/build/models/tools/writer/index.js +21 -0
- package/build/models/tools/writer/writer-ai-action.schema.js +26 -0
- package/build/models/tools/writer/writer-config.schema.js +13 -0
- package/build/models/tools/writer/writer-document-outline.schema.js +21 -0
- package/build/models/tools/writer/writer-document-type.schema.js +13 -0
- package/build/models/tools/writer/writer-document.schema.js +21 -0
- package/commands/tools/image-editor/delete-all-image-editor-jobs.command.ts +6 -0
- package/commands/tools/image-editor/delete-image-editor-job-by-uuid.command.ts +11 -0
- package/commands/tools/image-editor/find-image-editor-job-by-uuid.command.ts +16 -0
- package/commands/tools/image-editor/find-image-editor-jobs.command.ts +18 -0
- package/commands/tools/image-editor/get-image-editor-tool-config.command.ts +10 -0
- package/commands/tools/image-editor/image-editor.command.ts +20 -0
- package/commands/tools/image-editor/index.ts +9 -0
- package/commands/tools/image-editor/retry-image-editor-job.command.ts +14 -0
- package/commands/tools/image-editor/set-reaction-to-image-editor-job.command.ts +20 -0
- package/commands/tools/image-editor/update-image-editor-job-title.command.ts +19 -0
- package/commands/tools/index.ts +2 -0
- package/commands/tools/writer/create-writer-document.command.ts +16 -0
- package/commands/tools/writer/delete-all-writer-documents.command.ts +6 -0
- package/commands/tools/writer/delete-writer-document-by-uuid.command.ts +11 -0
- package/commands/tools/writer/find-writer-document-by-uuid.command.ts +14 -0
- package/commands/tools/writer/find-writer-documents.command.ts +18 -0
- package/commands/tools/writer/generate-writer-document-contents.command.ts +14 -0
- package/commands/tools/writer/get-writer-tool-config.command.ts +10 -0
- package/commands/tools/writer/index.ts +13 -0
- package/commands/tools/writer/update-writer-document-contents.command.ts +20 -0
- package/commands/tools/writer/update-writer-document-outline.command.ts +19 -0
- package/commands/tools/writer/writer-extend-text.command.ts +20 -0
- package/commands/tools/writer/writer-fix-errors.command.ts +20 -0
- package/commands/tools/writer/writer-paraphrase.command.ts +20 -0
- package/commands/tools/writer/writer-shorten-text.command.ts +20 -0
- package/constants/errors/errors.ts +125 -15
- package/constants/index.ts +2 -0
- package/constants/tool-image-editor/enums/image-editor-model-type.enum.ts +3 -0
- package/constants/tool-image-editor/enums/image-editor-strategy.enum.ts +4 -0
- package/constants/tool-image-editor/enums/index.ts +2 -0
- package/constants/tool-image-editor/index.ts +1 -0
- package/constants/writer/enums/index.ts +4 -0
- package/constants/writer/enums/writer-ai-action-pricing-type.enum.ts +4 -0
- package/constants/writer/enums/writer-ai-action-type.enum.ts +7 -0
- package/constants/writer/enums/writer-document-section-type.enum.ts +5 -0
- package/constants/writer/enums/writer-document-stage.enum.ts +13 -0
- package/constants/writer/index.ts +1 -0
- package/models/tools/image-editor/image-editor-config.schema.ts +32 -0
- package/models/tools/image-editor/image-editor-job.schema.ts +20 -0
- package/models/tools/image-editor/image-editor-model.schema.ts +28 -0
- package/models/tools/image-editor/index.ts +3 -0
- package/models/tools/index.ts +2 -0
- package/models/tools/writer/index.ts +5 -0
- package/models/tools/writer/writer-ai-action.schema.ts +27 -0
- package/models/tools/writer/writer-config.schema.ts +13 -0
- package/models/tools/writer/writer-document-outline.schema.ts +28 -0
- package/models/tools/writer/writer-document-type.schema.ts +12 -0
- package/models/tools/writer/writer-document.schema.ts +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const IMAGE_EDITOR_CONTROLLER_PRIVATE = 'private/tools/image-editor' as const;
|
|
2
|
+
export const IMAGE_EDITOR_CONTROLLER_PUBLIC = 'public/tools/image-editor' as const;
|
|
3
|
+
|
|
4
|
+
export const IMAGE_EDITOR_ROUTES = {
|
|
5
|
+
CONFIG: 'config',
|
|
6
|
+
EXECUTE: 'execute',
|
|
7
|
+
GET_JOBS: 'jobs',
|
|
8
|
+
GET_JOB: (uuid: string) => `jobs/${uuid}`,
|
|
9
|
+
UPDATE: (uuid: string) => `jobs/${uuid}`,
|
|
10
|
+
SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
|
|
11
|
+
DELETE: (uuid: string) => `jobs/${uuid}`,
|
|
12
|
+
DELETE_ALL: 'jobs',
|
|
13
|
+
RETRY: (uuid: string) => `jobs/${uuid}/retry`,
|
|
14
|
+
} as const;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const WRITER_CONTROLLER_PRIVATE = 'private/tools/writer' as const;
|
|
2
|
+
export const WRITER_CONTROLLER_PUBLIC = 'public/tools/writer' as const;
|
|
3
|
+
|
|
4
|
+
export const WRITER_ROUTES = {
|
|
5
|
+
CONFIG: 'config',
|
|
6
|
+
CREATE: 'documents',
|
|
7
|
+
GET_DOCUMENTS: 'documents',
|
|
8
|
+
GET_DOCUMENT: (uuid: string) => `documents/${uuid}`,
|
|
9
|
+
GENERATE_CONTENTS: (uuid: string) => `documents/${uuid}/generate`,
|
|
10
|
+
UPDATE_OUTLINE: (uuid: string) => `documents/${uuid}/outline`,
|
|
11
|
+
DELETE_DOCUMENT: (uuid: string) => `documents/${uuid}`,
|
|
12
|
+
UPDATE_CONTENTS: (uuid: string) => `documents/${uuid}/contents`,
|
|
13
|
+
DELETE_ALL_DOCUMENTS: 'documents',
|
|
14
|
+
PARAPHRASE: (uuid: string) => `documents/${uuid}/actions/paraphrase`,
|
|
15
|
+
EXTEND_TEXT: (uuid: string) => `documents/${uuid}/actions/extend-text`,
|
|
16
|
+
SHORTEN_TEXT: (uuid: string) => `documents/${uuid}/actions/shorten-text`,
|
|
17
|
+
FIX_ERRORS: (uuid: string) => `documents/${uuid}/actions/fix-errors`,
|
|
18
|
+
} as const;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMAGE_EDITOR_ROUTES = exports.IMAGE_EDITOR_CONTROLLER_PUBLIC = exports.IMAGE_EDITOR_CONTROLLER_PRIVATE = void 0;
|
|
4
|
+
exports.IMAGE_EDITOR_CONTROLLER_PRIVATE = 'private/tools/image-editor';
|
|
5
|
+
exports.IMAGE_EDITOR_CONTROLLER_PUBLIC = 'public/tools/image-editor';
|
|
6
|
+
exports.IMAGE_EDITOR_ROUTES = {
|
|
7
|
+
CONFIG: 'config',
|
|
8
|
+
EXECUTE: 'execute',
|
|
9
|
+
GET_JOBS: 'jobs',
|
|
10
|
+
GET_JOB: (uuid) => `jobs/${uuid}`,
|
|
11
|
+
UPDATE: (uuid) => `jobs/${uuid}`,
|
|
12
|
+
SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
|
|
13
|
+
DELETE: (uuid) => `jobs/${uuid}`,
|
|
14
|
+
DELETE_ALL: 'jobs',
|
|
15
|
+
RETRY: (uuid) => `jobs/${uuid}/retry`,
|
|
16
|
+
};
|
|
@@ -60,4 +60,6 @@ __exportStar(require("./folder"), exports);
|
|
|
60
60
|
__exportStar(require("./user-to-product"), exports);
|
|
61
61
|
__exportStar(require("./user-to-subscription"), exports);
|
|
62
62
|
__exportStar(require("./video"), exports);
|
|
63
|
+
__exportStar(require("./writer"), exports);
|
|
64
|
+
__exportStar(require("./image-editor"), exports);
|
|
63
65
|
__exportStar(require("./daily-streak"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WRITER_ROUTES = exports.WRITER_CONTROLLER_PUBLIC = exports.WRITER_CONTROLLER_PRIVATE = void 0;
|
|
4
|
+
exports.WRITER_CONTROLLER_PRIVATE = 'private/tools/writer';
|
|
5
|
+
exports.WRITER_CONTROLLER_PUBLIC = 'public/tools/writer';
|
|
6
|
+
exports.WRITER_ROUTES = {
|
|
7
|
+
CONFIG: 'config',
|
|
8
|
+
CREATE: 'documents',
|
|
9
|
+
GET_DOCUMENTS: 'documents',
|
|
10
|
+
GET_DOCUMENT: (uuid) => `documents/${uuid}`,
|
|
11
|
+
GENERATE_CONTENTS: (uuid) => `documents/${uuid}/generate`,
|
|
12
|
+
UPDATE_OUTLINE: (uuid) => `documents/${uuid}/outline`,
|
|
13
|
+
DELETE_DOCUMENT: (uuid) => `documents/${uuid}`,
|
|
14
|
+
UPDATE_CONTENTS: (uuid) => `documents/${uuid}/contents`,
|
|
15
|
+
DELETE_ALL_DOCUMENTS: 'documents',
|
|
16
|
+
PARAPHRASE: (uuid) => `documents/${uuid}/actions/paraphrase`,
|
|
17
|
+
EXTEND_TEXT: (uuid) => `documents/${uuid}/actions/extend-text`,
|
|
18
|
+
SHORTEN_TEXT: (uuid) => `documents/${uuid}/actions/shorten-text`,
|
|
19
|
+
FIX_ERRORS: (uuid) => `documents/${uuid}/actions/fix-errors`,
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAllImageEditorJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAllImageEditorJobsCommand;
|
|
6
|
+
(function (DeleteAllImageEditorJobsCommand) {
|
|
7
|
+
DeleteAllImageEditorJobsCommand.ResponseSchema = zod_1.z.void();
|
|
8
|
+
})(DeleteAllImageEditorJobsCommand || (exports.DeleteAllImageEditorJobsCommand = DeleteAllImageEditorJobsCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteImageEditorJobByUuidCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteImageEditorJobByUuidCommand;
|
|
6
|
+
(function (DeleteImageEditorJobByUuidCommand) {
|
|
7
|
+
DeleteImageEditorJobByUuidCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteImageEditorJobByUuidCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(DeleteImageEditorJobByUuidCommand || (exports.DeleteImageEditorJobByUuidCommand = DeleteImageEditorJobByUuidCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindImageEditorJobByUUIDCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindImageEditorJobByUUIDCommand;
|
|
7
|
+
(function (FindImageEditorJobByUUIDCommand) {
|
|
8
|
+
FindImageEditorJobByUUIDCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
FindImageEditorJobByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.ImageEditorJobSchema,
|
|
13
|
+
});
|
|
14
|
+
})(FindImageEditorJobByUUIDCommand || (exports.FindImageEditorJobByUUIDCommand = FindImageEditorJobByUUIDCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindImageEditorJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindImageEditorJobsCommand;
|
|
7
|
+
(function (FindImageEditorJobsCommand) {
|
|
8
|
+
FindImageEditorJobsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
|
+
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
|
+
title: zod_1.z.string().optional(),
|
|
12
|
+
});
|
|
13
|
+
FindImageEditorJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.array(models_1.ImageEditorJobSchema),
|
|
15
|
+
totalPages: zod_1.z.number(),
|
|
16
|
+
page: zod_1.z.number(),
|
|
17
|
+
});
|
|
18
|
+
})(FindImageEditorJobsCommand || (exports.FindImageEditorJobsCommand = FindImageEditorJobsCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetImageEditorToolConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GetImageEditorToolConfigCommand;
|
|
7
|
+
(function (GetImageEditorToolConfigCommand) {
|
|
8
|
+
GetImageEditorToolConfigCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: models_1.ImageEditorConfigSchema,
|
|
10
|
+
});
|
|
11
|
+
})(GetImageEditorToolConfigCommand || (exports.GetImageEditorToolConfigCommand = GetImageEditorToolConfigCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageEditorCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var ImageEditorCommand;
|
|
7
|
+
(function (ImageEditorCommand) {
|
|
8
|
+
ImageEditorCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
modelId: zod_1.z.string().uuid(),
|
|
10
|
+
prompt: zod_1.z.string(),
|
|
11
|
+
params: zod_1.z.object({
|
|
12
|
+
imageUrls: zod_1.z.array(zod_1.z.string()),
|
|
13
|
+
systemPromptId: zod_1.z.string().optional(),
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
ImageEditorCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: models_1.ToolJobSchema,
|
|
18
|
+
});
|
|
19
|
+
})(ImageEditorCommand || (exports.ImageEditorCommand = ImageEditorCommand = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./delete-image-editor-job-by-uuid.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-all-image-editor-jobs.command"), exports);
|
|
19
|
+
__exportStar(require("./retry-image-editor-job.command"), exports);
|
|
20
|
+
__exportStar(require("./set-reaction-to-image-editor-job.command"), exports);
|
|
21
|
+
__exportStar(require("./image-editor.command"), exports);
|
|
22
|
+
__exportStar(require("./update-image-editor-job-title.command"), exports);
|
|
23
|
+
__exportStar(require("./find-image-editor-job-by-uuid.command"), exports);
|
|
24
|
+
__exportStar(require("./find-image-editor-jobs.command"), exports);
|
|
25
|
+
__exportStar(require("./get-image-editor-tool-config.command"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetryImageEditorJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var RetryImageEditorJobCommand;
|
|
7
|
+
(function (RetryImageEditorJobCommand) {
|
|
8
|
+
RetryImageEditorJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
RetryImageEditorJobCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.ImageEditorJobSchema,
|
|
13
|
+
});
|
|
14
|
+
})(RetryImageEditorJobCommand || (exports.RetryImageEditorJobCommand = RetryImageEditorJobCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetReactionToImageEditorJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var SetReactionToImageEditorJobCommand;
|
|
8
|
+
(function (SetReactionToImageEditorJobCommand) {
|
|
9
|
+
SetReactionToImageEditorJobCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
11
|
+
});
|
|
12
|
+
SetReactionToImageEditorJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
SetReactionToImageEditorJobCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: models_1.ImageEditorJobSchema,
|
|
17
|
+
});
|
|
18
|
+
})(SetReactionToImageEditorJobCommand || (exports.SetReactionToImageEditorJobCommand = SetReactionToImageEditorJobCommand = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateImageEditorJobTitleCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateImageEditorJobTitleCommand;
|
|
7
|
+
(function (UpdateImageEditorJobTitleCommand) {
|
|
8
|
+
UpdateImageEditorJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
title: zod_1.z.string().min(1).max(40).trim(),
|
|
10
|
+
});
|
|
11
|
+
UpdateImageEditorJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateImageEditorJobTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.ImageEditorJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateImageEditorJobTitleCommand || (exports.UpdateImageEditorJobTitleCommand = UpdateImageEditorJobTitleCommand = {}));
|
|
@@ -20,3 +20,5 @@ __exportStar(require("./stt"), exports);
|
|
|
20
20
|
__exportStar(require("./tool"), exports);
|
|
21
21
|
__exportStar(require("./tts"), exports);
|
|
22
22
|
__exportStar(require("./video"), exports);
|
|
23
|
+
__exportStar(require("./writer"), exports);
|
|
24
|
+
__exportStar(require("./image-editor"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWriterDocumentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var CreateWriterDocumentCommand;
|
|
7
|
+
(function (CreateWriterDocumentCommand) {
|
|
8
|
+
CreateWriterDocumentCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
topic: zod_1.z.string(),
|
|
10
|
+
numPages: zod_1.z.number(),
|
|
11
|
+
documentTypeId: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
CreateWriterDocumentCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: models_1.WriterDocumentSchema,
|
|
15
|
+
});
|
|
16
|
+
})(CreateWriterDocumentCommand || (exports.CreateWriterDocumentCommand = CreateWriterDocumentCommand = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAllWriterDocumentsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAllWriterDocumentsCommand;
|
|
6
|
+
(function (DeleteAllWriterDocumentsCommand) {
|
|
7
|
+
DeleteAllWriterDocumentsCommand.ResponseSchema = zod_1.z.void();
|
|
8
|
+
})(DeleteAllWriterDocumentsCommand || (exports.DeleteAllWriterDocumentsCommand = DeleteAllWriterDocumentsCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteWriterDocumentByUUIDCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteWriterDocumentByUUIDCommand;
|
|
6
|
+
(function (DeleteWriterDocumentByUUIDCommand) {
|
|
7
|
+
DeleteWriterDocumentByUUIDCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
DeleteWriterDocumentByUUIDCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(DeleteWriterDocumentByUUIDCommand || (exports.DeleteWriterDocumentByUUIDCommand = DeleteWriterDocumentByUUIDCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindWriterDocumentByUUIDCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindWriterDocumentByUUIDCommand;
|
|
7
|
+
(function (FindWriterDocumentByUUIDCommand) {
|
|
8
|
+
FindWriterDocumentByUUIDCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
FindWriterDocumentByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.WriterDocumentSchema,
|
|
13
|
+
});
|
|
14
|
+
})(FindWriterDocumentByUUIDCommand || (exports.FindWriterDocumentByUUIDCommand = FindWriterDocumentByUUIDCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindWriterDocumentsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindWriterDocumentsCommand;
|
|
7
|
+
(function (FindWriterDocumentsCommand) {
|
|
8
|
+
FindWriterDocumentsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
|
+
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
|
+
title: zod_1.z.string().optional(),
|
|
12
|
+
});
|
|
13
|
+
FindWriterDocumentsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.array(models_1.WriterDocumentSchema),
|
|
15
|
+
totalPages: zod_1.z.number(),
|
|
16
|
+
page: zod_1.z.number(),
|
|
17
|
+
});
|
|
18
|
+
})(FindWriterDocumentsCommand || (exports.FindWriterDocumentsCommand = FindWriterDocumentsCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateWriterDocumentContentsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GenerateWriterDocumentContentsCommand;
|
|
7
|
+
(function (GenerateWriterDocumentContentsCommand) {
|
|
8
|
+
GenerateWriterDocumentContentsCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GenerateWriterDocumentContentsCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.WriterDocumentSchema,
|
|
13
|
+
});
|
|
14
|
+
})(GenerateWriterDocumentContentsCommand || (exports.GenerateWriterDocumentContentsCommand = GenerateWriterDocumentContentsCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWriterToolConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GetWriterToolConfigCommand;
|
|
7
|
+
(function (GetWriterToolConfigCommand) {
|
|
8
|
+
GetWriterToolConfigCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: models_1.WriterConfigSchema,
|
|
10
|
+
});
|
|
11
|
+
})(GetWriterToolConfigCommand || (exports.GetWriterToolConfigCommand = GetWriterToolConfigCommand = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
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("./get-writer-tool-config.command"), exports);
|
|
18
|
+
__exportStar(require("./create-writer-document.command"), exports);
|
|
19
|
+
__exportStar(require("./find-writer-document-by-uuid.command"), exports);
|
|
20
|
+
__exportStar(require("./find-writer-documents.command"), exports);
|
|
21
|
+
__exportStar(require("./generate-writer-document-contents.command"), exports);
|
|
22
|
+
__exportStar(require("./update-writer-document-outline.command"), exports);
|
|
23
|
+
__exportStar(require("./update-writer-document-contents.command"), exports);
|
|
24
|
+
__exportStar(require("./delete-writer-document-by-uuid.command"), exports);
|
|
25
|
+
__exportStar(require("./delete-all-writer-documents.command"), exports);
|
|
26
|
+
__exportStar(require("./writer-paraphrase.command"), exports);
|
|
27
|
+
__exportStar(require("./writer-extend-text.command"), exports);
|
|
28
|
+
__exportStar(require("./writer-shorten-text.command"), exports);
|
|
29
|
+
__exportStar(require("./writer-fix-errors.command"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateWriterDocumentContentsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var UpdateWriterDocumentContentsCommand;
|
|
6
|
+
(function (UpdateWriterDocumentContentsCommand) {
|
|
7
|
+
UpdateWriterDocumentContentsCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
UpdateWriterDocumentContentsCommand.RequestBodySchema = zod_1.z.object({
|
|
11
|
+
contents: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
UpdateWriterDocumentContentsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.object({
|
|
15
|
+
success: zod_1.z.boolean(),
|
|
16
|
+
}),
|
|
17
|
+
});
|
|
18
|
+
})(UpdateWriterDocumentContentsCommand || (exports.UpdateWriterDocumentContentsCommand = UpdateWriterDocumentContentsCommand = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateWriterDocumentOutlineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateWriterDocumentOutlineCommand;
|
|
7
|
+
(function (UpdateWriterDocumentOutlineCommand) {
|
|
8
|
+
UpdateWriterDocumentOutlineCommand.RequestBodySchema = zod_1.z.object({
|
|
9
|
+
data: models_1.WriterDocumentOutlineSchema,
|
|
10
|
+
});
|
|
11
|
+
UpdateWriterDocumentOutlineCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateWriterDocumentOutlineCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: zod_1.z.array(models_1.WriterDocumentOutlineSectionSchema),
|
|
16
|
+
});
|
|
17
|
+
})(UpdateWriterDocumentOutlineCommand || (exports.UpdateWriterDocumentOutlineCommand = UpdateWriterDocumentOutlineCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WriterExtendTextCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var WriterExtendTextCommand;
|
|
6
|
+
(function (WriterExtendTextCommand) {
|
|
7
|
+
WriterExtendTextCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
WriterExtendTextCommand.RequestBodySchema = zod_1.z.object({
|
|
11
|
+
selectionText: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
WriterExtendTextCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.object({
|
|
15
|
+
output: zod_1.z.string(),
|
|
16
|
+
}),
|
|
17
|
+
});
|
|
18
|
+
})(WriterExtendTextCommand || (exports.WriterExtendTextCommand = WriterExtendTextCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WriterFixErrorsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var WriterFixErrorsCommand;
|
|
6
|
+
(function (WriterFixErrorsCommand) {
|
|
7
|
+
WriterFixErrorsCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
WriterFixErrorsCommand.RequestBodySchema = zod_1.z.object({
|
|
11
|
+
selectionText: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
WriterFixErrorsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.object({
|
|
15
|
+
output: zod_1.z.string(),
|
|
16
|
+
}),
|
|
17
|
+
});
|
|
18
|
+
})(WriterFixErrorsCommand || (exports.WriterFixErrorsCommand = WriterFixErrorsCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WriterParaphraseCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var WriterParaphraseCommand;
|
|
6
|
+
(function (WriterParaphraseCommand) {
|
|
7
|
+
WriterParaphraseCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
WriterParaphraseCommand.RequestBodySchema = zod_1.z.object({
|
|
11
|
+
selectionText: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
WriterParaphraseCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.object({
|
|
15
|
+
output: zod_1.z.string(),
|
|
16
|
+
}),
|
|
17
|
+
});
|
|
18
|
+
})(WriterParaphraseCommand || (exports.WriterParaphraseCommand = WriterParaphraseCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WriterShortenTextCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var WriterShortenTextCommand;
|
|
6
|
+
(function (WriterShortenTextCommand) {
|
|
7
|
+
WriterShortenTextCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
WriterShortenTextCommand.RequestBodySchema = zod_1.z.object({
|
|
11
|
+
selectionText: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
WriterShortenTextCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.object({
|
|
15
|
+
output: zod_1.z.string(),
|
|
16
|
+
}),
|
|
17
|
+
});
|
|
18
|
+
})(WriterShortenTextCommand || (exports.WriterShortenTextCommand = WriterShortenTextCommand = {}));
|