@purpleschool/gptbot 0.15.75 → 0.15.76
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/paraphrase.d.ts +1 -0
- package/build/api/controllers/http/paraphrase.js +1 -0
- package/build/api/routes.d.ts +2 -0
- package/build/api/routes.js +2 -0
- package/build/commands/ai-model/create-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/find-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/find-ai-models-available-to-user.comand.d.ts +0 -5
- package/build/commands/ai-model/find-formatted-ai-model.command.d.ts +0 -10
- package/build/commands/ai-model/update-ai-model.command.d.ts +0 -10
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +0 -5
- package/build/commands/ai-studio/canvas-tool/text-gen/get-text-generation-config.command.d.ts +0 -5
- package/build/commands/ai-studio/canvas-tool/var-gen/get-var-gen-config.command.d.ts +0 -5
- package/build/commands/b2b/get-b2b-documentation.command.d.ts +0 -10
- package/build/commands/page/find-page-by-alias.command.d.ts +0 -10
- package/build/commands/page/find-page.command.d.ts +0 -5
- package/build/commands/page/find-pages-by-criteria.command.d.ts +0 -10
- package/build/commands/tools/paraphrase/find-paraphrase-job-by-uuid.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/get-paraphrase-price.command.d.ts +31 -0
- package/build/commands/tools/paraphrase/get-paraphrase-price.command.js +30 -0
- package/build/commands/tools/paraphrase/get-paraphrase-tool-config.command.d.ts +3 -0
- package/build/commands/tools/paraphrase/index.d.ts +1 -0
- package/build/commands/tools/paraphrase/index.js +1 -0
- package/build/commands/tools/paraphrase/paraphrase.command.d.ts +36 -1
- package/build/commands/tools/paraphrase/paraphrase.command.js +16 -3
- package/build/commands/tools/paraphrase/retry-paraphrase-job.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/update-paraphrase-job-favorite.command.d.ts +20 -0
- package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.d.ts +20 -0
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.d.ts +0 -1
- package/build/constants/ai-model/enums/ai-model-config-selector-type.enum.js +0 -1
- package/build/constants/tool-paraphrase/enums/index.d.ts +1 -0
- package/build/constants/tool-paraphrase/enums/index.js +1 -0
- package/build/constants/tool-paraphrase/enums/paraphrase-input-kind.enum.d.ts +4 -0
- package/build/constants/tool-paraphrase/enums/paraphrase-input-kind.enum.js +8 -0
- package/build/helpers/index.d.ts +0 -1
- package/build/helpers/index.js +0 -1
- package/build/models/ai-model-config.schema.d.ts +0 -11
- package/build/models/ai-model-config.schema.js +1 -8
- package/build/models/ai-model-formatted.schema.d.ts +0 -5
- package/build/models/ai-model.schema.d.ts +0 -15
- package/build/models/canvas-node-definition.schema.d.ts +0 -20
- package/build/models/tools/paraphrase/index.d.ts +1 -0
- package/build/models/tools/paraphrase/index.js +1 -0
- package/build/models/tools/paraphrase/paraphrase-config.schema.d.ts +3 -0
- package/build/models/tools/paraphrase/paraphrase-config.schema.js +1 -0
- package/build/models/tools/paraphrase/paraphrase-document.schema.d.ts +10 -0
- package/build/models/tools/paraphrase/paraphrase-document.schema.js +13 -0
- package/build/models/tools/paraphrase/paraphrase-job.schema.d.ts +21 -1
- package/build/models/tools/paraphrase/paraphrase-job.schema.js +5 -0
- package/build/models/tools/paraphrase/paraphrase-model.schema.d.ts +2 -0
- package/build/models/tools/paraphrase/paraphrase-model.schema.js +2 -0
- package/package.json +1 -1
- package/build/helpers/ai-model/calc-base-text-generation-price.helper.d.ts +0 -8
- package/build/helpers/ai-model/calc-base-text-generation-price.helper.js +0 -15
- package/build/helpers/ai-model/index.d.ts +0 -1
- package/build/helpers/ai-model/index.js +0 -17
|
@@ -2,6 +2,7 @@ export declare const PARAPHRASE_CONTROLLER_PRIVATE: 'private/tools/paraphrase';
|
|
|
2
2
|
export declare const PARAPHRASE_CONTROLLER_PUBLIC: 'public/tools/paraphrase';
|
|
3
3
|
export declare const PARAPHRASE_ROUTES: {
|
|
4
4
|
readonly CONFIG: 'config';
|
|
5
|
+
readonly PRICE: 'price';
|
|
5
6
|
readonly EXECUTE: 'execute';
|
|
6
7
|
readonly GET_JOBS: 'jobs';
|
|
7
8
|
readonly GET_JOB: (uuid: string) => string;
|
|
@@ -5,6 +5,7 @@ exports.PARAPHRASE_CONTROLLER_PRIVATE = 'private/tools/paraphrase';
|
|
|
5
5
|
exports.PARAPHRASE_CONTROLLER_PUBLIC = 'public/tools/paraphrase';
|
|
6
6
|
exports.PARAPHRASE_ROUTES = {
|
|
7
7
|
CONFIG: 'config',
|
|
8
|
+
PRICE: 'price',
|
|
8
9
|
EXECUTE: 'execute',
|
|
9
10
|
GET_JOBS: 'jobs',
|
|
10
11
|
GET_JOB: (uuid) => `jobs/${uuid}`,
|
package/build/api/routes.d.ts
CHANGED
|
@@ -687,6 +687,7 @@ export declare const REST_API: {
|
|
|
687
687
|
};
|
|
688
688
|
readonly PARAPHRASE_PUBLIC: {
|
|
689
689
|
readonly CONFIG: "/api/public/tools/paraphrase/config";
|
|
690
|
+
readonly PRICE: "/api/public/tools/paraphrase/price";
|
|
690
691
|
readonly EXECUTE: "/api/public/tools/paraphrase/execute";
|
|
691
692
|
readonly GET_JOBS: "/api/public/tools/paraphrase/jobs";
|
|
692
693
|
readonly GET_JOB: (uuid: string) => string;
|
|
@@ -699,6 +700,7 @@ export declare const REST_API: {
|
|
|
699
700
|
};
|
|
700
701
|
readonly PARAPHRASE_PRIVATE: {
|
|
701
702
|
readonly CONFIG: "/api/private/tools/paraphrase/config";
|
|
703
|
+
readonly PRICE: "/api/private/tools/paraphrase/price";
|
|
702
704
|
readonly EXECUTE: "/api/private/tools/paraphrase/execute";
|
|
703
705
|
readonly GET_JOBS: "/api/private/tools/paraphrase/jobs";
|
|
704
706
|
readonly GET_JOB: (uuid: string) => string;
|
package/build/api/routes.js
CHANGED
|
@@ -725,6 +725,7 @@ exports.REST_API = {
|
|
|
725
725
|
},
|
|
726
726
|
PARAPHRASE_PUBLIC: {
|
|
727
727
|
CONFIG: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.CONFIG}`,
|
|
728
|
+
PRICE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.PRICE}`,
|
|
728
729
|
EXECUTE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.EXECUTE}`,
|
|
729
730
|
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOBS}`,
|
|
730
731
|
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PUBLIC}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOB(uuid)}`,
|
|
@@ -737,6 +738,7 @@ exports.REST_API = {
|
|
|
737
738
|
},
|
|
738
739
|
PARAPHRASE_PRIVATE: {
|
|
739
740
|
CONFIG: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.CONFIG}`,
|
|
741
|
+
PRICE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.PRICE}`,
|
|
740
742
|
EXECUTE: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.EXECUTE}`,
|
|
741
743
|
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOBS}`,
|
|
742
744
|
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.GET_JOB(uuid)}`,
|
|
@@ -50,11 +50,6 @@ export declare namespace CreateAIModelCommand {
|
|
|
50
50
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
51
51
|
webSearchPrice: z.ZodNumber;
|
|
52
52
|
}, z.core.$strip>>;
|
|
53
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
54
|
-
stepSize: z.ZodNumber;
|
|
55
|
-
stepPrice: z.ZodNumber;
|
|
56
|
-
isActive: z.ZodBoolean;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
53
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
59
54
|
multiplier: z.ZodNumber;
|
|
60
55
|
}, z.core.$strip>>;
|
|
@@ -120,11 +115,6 @@ export declare namespace CreateAIModelCommand {
|
|
|
120
115
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
121
116
|
webSearchPrice: z.ZodNumber;
|
|
122
117
|
}, z.core.$strip>>;
|
|
123
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
124
|
-
stepSize: z.ZodNumber;
|
|
125
|
-
stepPrice: z.ZodNumber;
|
|
126
|
-
isActive: z.ZodBoolean;
|
|
127
|
-
}, z.core.$strip>>;
|
|
128
118
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
129
119
|
multiplier: z.ZodNumber;
|
|
130
120
|
}, z.core.$strip>>;
|
|
@@ -75,11 +75,6 @@ export declare namespace FindAIModelCommand {
|
|
|
75
75
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
76
76
|
webSearchPrice: z.ZodNumber;
|
|
77
77
|
}, z.core.$strip>>;
|
|
78
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
79
|
-
stepSize: z.ZodNumber;
|
|
80
|
-
stepPrice: z.ZodNumber;
|
|
81
|
-
isActive: z.ZodBoolean;
|
|
82
|
-
}, z.core.$strip>>;
|
|
83
78
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
84
79
|
multiplier: z.ZodNumber;
|
|
85
80
|
}, z.core.$strip>>;
|
|
@@ -149,11 +144,6 @@ export declare namespace FindAIModelCommand {
|
|
|
149
144
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
150
145
|
webSearchPrice: z.ZodNumber;
|
|
151
146
|
}, z.core.$strip>>;
|
|
152
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
153
|
-
stepSize: z.ZodNumber;
|
|
154
|
-
stepPrice: z.ZodNumber;
|
|
155
|
-
isActive: z.ZodBoolean;
|
|
156
|
-
}, z.core.$strip>>;
|
|
157
147
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
158
148
|
multiplier: z.ZodNumber;
|
|
159
149
|
}, z.core.$strip>>;
|
|
@@ -56,11 +56,6 @@ export declare namespace FindAiModelsAvailableToUserCommand {
|
|
|
56
56
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
57
57
|
webSearchPrice: z.ZodNumber;
|
|
58
58
|
}, z.core.$strip>>;
|
|
59
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
60
|
-
stepSize: z.ZodNumber;
|
|
61
|
-
stepPrice: z.ZodNumber;
|
|
62
|
-
isActive: z.ZodBoolean;
|
|
63
|
-
}, z.core.$strip>>;
|
|
64
59
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
65
60
|
multiplier: z.ZodNumber;
|
|
66
61
|
}, z.core.$strip>>;
|
|
@@ -58,11 +58,6 @@ export declare namespace FindFormattedAIModelCommand {
|
|
|
58
58
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
59
59
|
webSearchPrice: z.ZodNumber;
|
|
60
60
|
}, z.core.$strip>>;
|
|
61
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
62
|
-
stepSize: z.ZodNumber;
|
|
63
|
-
stepPrice: z.ZodNumber;
|
|
64
|
-
isActive: z.ZodBoolean;
|
|
65
|
-
}, z.core.$strip>>;
|
|
66
61
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
67
62
|
multiplier: z.ZodNumber;
|
|
68
63
|
}, z.core.$strip>>;
|
|
@@ -131,11 +126,6 @@ export declare namespace FindFormattedAIModelCommand {
|
|
|
131
126
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
132
127
|
webSearchPrice: z.ZodNumber;
|
|
133
128
|
}, z.core.$strip>>;
|
|
134
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
135
|
-
stepSize: z.ZodNumber;
|
|
136
|
-
stepPrice: z.ZodNumber;
|
|
137
|
-
isActive: z.ZodBoolean;
|
|
138
|
-
}, z.core.$strip>>;
|
|
139
129
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
140
130
|
multiplier: z.ZodNumber;
|
|
141
131
|
}, z.core.$strip>>;
|
|
@@ -50,11 +50,6 @@ export declare namespace UpdateAIModelCommand {
|
|
|
50
50
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
51
51
|
webSearchPrice: z.ZodNumber;
|
|
52
52
|
}, z.core.$strip>>;
|
|
53
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
54
|
-
stepSize: z.ZodNumber;
|
|
55
|
-
stepPrice: z.ZodNumber;
|
|
56
|
-
isActive: z.ZodBoolean;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
53
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
59
54
|
multiplier: z.ZodNumber;
|
|
60
55
|
}, z.core.$strip>>;
|
|
@@ -124,11 +119,6 @@ export declare namespace UpdateAIModelCommand {
|
|
|
124
119
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
125
120
|
webSearchPrice: z.ZodNumber;
|
|
126
121
|
}, z.core.$strip>>;
|
|
127
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
128
|
-
stepSize: z.ZodNumber;
|
|
129
|
-
stepPrice: z.ZodNumber;
|
|
130
|
-
isActive: z.ZodBoolean;
|
|
131
|
-
}, z.core.$strip>>;
|
|
132
122
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
133
123
|
multiplier: z.ZodNumber;
|
|
134
124
|
}, z.core.$strip>>;
|
package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts
CHANGED
|
@@ -112,11 +112,6 @@ export declare namespace FindCanvasNodeDefinitionsWithConfigsQuery {
|
|
|
112
112
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
113
113
|
webSearchPrice: z.ZodNumber;
|
|
114
114
|
}, z.core.$strip>>;
|
|
115
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
116
|
-
stepSize: z.ZodNumber;
|
|
117
|
-
stepPrice: z.ZodNumber;
|
|
118
|
-
isActive: z.ZodBoolean;
|
|
119
|
-
}, z.core.$strip>>;
|
|
120
115
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
121
116
|
multiplier: z.ZodNumber;
|
|
122
117
|
}, z.core.$strip>>;
|
package/build/commands/ai-studio/canvas-tool/text-gen/get-text-generation-config.command.d.ts
CHANGED
|
@@ -71,11 +71,6 @@ export declare namespace GetTextGenerationConfigCommand {
|
|
|
71
71
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
72
72
|
webSearchPrice: z.ZodNumber;
|
|
73
73
|
}, z.core.$strip>>;
|
|
74
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
75
|
-
stepSize: z.ZodNumber;
|
|
76
|
-
stepPrice: z.ZodNumber;
|
|
77
|
-
isActive: z.ZodBoolean;
|
|
78
|
-
}, z.core.$strip>>;
|
|
79
74
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
80
75
|
multiplier: z.ZodNumber;
|
|
81
76
|
}, z.core.$strip>>;
|
|
@@ -54,11 +54,6 @@ export declare namespace GetVarGenConfigCommand {
|
|
|
54
54
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
55
55
|
webSearchPrice: z.ZodNumber;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
58
|
-
stepSize: z.ZodNumber;
|
|
59
|
-
stepPrice: z.ZodNumber;
|
|
60
|
-
isActive: z.ZodBoolean;
|
|
61
|
-
}, z.core.$strip>>;
|
|
62
57
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
63
58
|
multiplier: z.ZodNumber;
|
|
64
59
|
}, z.core.$strip>>;
|
|
@@ -157,11 +157,6 @@ export declare namespace GetB2bDocumentationCommand {
|
|
|
157
157
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
158
158
|
webSearchPrice: z.ZodNumber;
|
|
159
159
|
}, z.core.$strip>>;
|
|
160
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
161
|
-
stepSize: z.ZodNumber;
|
|
162
|
-
stepPrice: z.ZodNumber;
|
|
163
|
-
isActive: z.ZodBoolean;
|
|
164
|
-
}, z.core.$strip>>;
|
|
165
160
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
166
161
|
multiplier: z.ZodNumber;
|
|
167
162
|
}, z.core.$strip>>;
|
|
@@ -342,11 +337,6 @@ export declare namespace GetB2bDocumentationCommand {
|
|
|
342
337
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
343
338
|
webSearchPrice: z.ZodNumber;
|
|
344
339
|
}, z.core.$strip>>;
|
|
345
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
346
|
-
stepSize: z.ZodNumber;
|
|
347
|
-
stepPrice: z.ZodNumber;
|
|
348
|
-
isActive: z.ZodBoolean;
|
|
349
|
-
}, z.core.$strip>>;
|
|
350
340
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
351
341
|
multiplier: z.ZodNumber;
|
|
352
342
|
}, z.core.$strip>>;
|
|
@@ -113,11 +113,6 @@ export declare namespace FindPageByAliasCommand {
|
|
|
113
113
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
114
114
|
webSearchPrice: z.ZodNumber;
|
|
115
115
|
}, z.core.$strip>>;
|
|
116
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
117
|
-
stepSize: z.ZodNumber;
|
|
118
|
-
stepPrice: z.ZodNumber;
|
|
119
|
-
isActive: z.ZodBoolean;
|
|
120
|
-
}, z.core.$strip>>;
|
|
121
116
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
122
117
|
multiplier: z.ZodNumber;
|
|
123
118
|
}, z.core.$strip>>;
|
|
@@ -236,11 +231,6 @@ export declare namespace FindPageByAliasCommand {
|
|
|
236
231
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
237
232
|
webSearchPrice: z.ZodNumber;
|
|
238
233
|
}, z.core.$strip>>;
|
|
239
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
240
|
-
stepSize: z.ZodNumber;
|
|
241
|
-
stepPrice: z.ZodNumber;
|
|
242
|
-
isActive: z.ZodBoolean;
|
|
243
|
-
}, z.core.$strip>>;
|
|
244
234
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
245
235
|
multiplier: z.ZodNumber;
|
|
246
236
|
}, z.core.$strip>>;
|
|
@@ -137,11 +137,6 @@ export declare namespace FindPageCommand {
|
|
|
137
137
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
138
138
|
webSearchPrice: z.ZodNumber;
|
|
139
139
|
}, z.core.$strip>>;
|
|
140
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
141
|
-
stepSize: z.ZodNumber;
|
|
142
|
-
stepPrice: z.ZodNumber;
|
|
143
|
-
isActive: z.ZodBoolean;
|
|
144
|
-
}, z.core.$strip>>;
|
|
145
140
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
146
141
|
multiplier: z.ZodNumber;
|
|
147
142
|
}, z.core.$strip>>;
|
|
@@ -124,11 +124,6 @@ export declare namespace FindPagesByCriteriaCommand {
|
|
|
124
124
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
125
125
|
webSearchPrice: z.ZodNumber;
|
|
126
126
|
}, z.core.$strip>>;
|
|
127
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
128
|
-
stepSize: z.ZodNumber;
|
|
129
|
-
stepPrice: z.ZodNumber;
|
|
130
|
-
isActive: z.ZodBoolean;
|
|
131
|
-
}, z.core.$strip>>;
|
|
132
127
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
133
128
|
multiplier: z.ZodNumber;
|
|
134
129
|
}, z.core.$strip>>;
|
|
@@ -246,11 +241,6 @@ export declare namespace FindPagesByCriteriaCommand {
|
|
|
246
241
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
247
242
|
webSearchPrice: z.ZodNumber;
|
|
248
243
|
}, z.core.$strip>>;
|
|
249
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
250
|
-
stepSize: z.ZodNumber;
|
|
251
|
-
stepPrice: z.ZodNumber;
|
|
252
|
-
isActive: z.ZodBoolean;
|
|
253
|
-
}, z.core.$strip>>;
|
|
254
244
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
255
245
|
multiplier: z.ZodNumber;
|
|
256
246
|
}, z.core.$strip>>;
|
|
@@ -20,6 +20,26 @@ export declare namespace FindParaphraseJobByUUIDCommand {
|
|
|
20
20
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
21
21
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
22
22
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
24
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
uuid: z.ZodString;
|
|
26
|
+
url: z.ZodString;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
mimeType: z.ZodString;
|
|
29
|
+
type: z.ZodString;
|
|
30
|
+
size: z.ZodNumber;
|
|
31
|
+
extension: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodString;
|
|
35
|
+
url: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
mimeType: z.ZodString;
|
|
38
|
+
type: z.ZodString;
|
|
39
|
+
size: z.ZodNumber;
|
|
40
|
+
extension: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
23
43
|
}, z.core.$strip>;
|
|
24
44
|
}, z.core.$strip>;
|
|
25
45
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -26,6 +26,26 @@ export declare namespace FindParaphraseJobsCommand {
|
|
|
26
26
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
27
27
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
28
28
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
30
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
uuid: z.ZodString;
|
|
32
|
+
url: z.ZodString;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
mimeType: z.ZodString;
|
|
35
|
+
type: z.ZodString;
|
|
36
|
+
size: z.ZodNumber;
|
|
37
|
+
extension: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
39
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
uuid: z.ZodString;
|
|
41
|
+
url: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
mimeType: z.ZodString;
|
|
44
|
+
type: z.ZodString;
|
|
45
|
+
size: z.ZodNumber;
|
|
46
|
+
extension: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
29
49
|
}, z.core.$strip>>;
|
|
30
50
|
totalPages: z.ZodNumber;
|
|
31
51
|
total: z.ZodNumber;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PARAPHRASING_INTENSITY } from '../../../constants';
|
|
3
|
+
export declare namespace GetParaphrasePriceCommand {
|
|
4
|
+
const PrivateRequestSchema: z.ZodObject<{
|
|
5
|
+
typeId: z.ZodString;
|
|
6
|
+
styleId: z.ZodString;
|
|
7
|
+
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
8
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
9
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
const PublicRequestSchema: z.ZodObject<{
|
|
12
|
+
typeId: z.ZodString;
|
|
13
|
+
styleId: z.ZodString;
|
|
14
|
+
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
15
|
+
prompt: z.ZodString;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
const RequestSchema: z.ZodObject<{
|
|
18
|
+
typeId: z.ZodString;
|
|
19
|
+
styleId: z.ZodString;
|
|
20
|
+
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
21
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
22
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
25
|
+
const ResponseSchema: z.ZodObject<{
|
|
26
|
+
price: z.ZodNumber;
|
|
27
|
+
charsUntilNextPriceIncrease: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
charsUntilNextPriceDecrease: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetParaphrasePriceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const chat_1 = require("../../chat");
|
|
7
|
+
var GetParaphrasePriceCommand;
|
|
8
|
+
(function (GetParaphrasePriceCommand) {
|
|
9
|
+
GetParaphrasePriceCommand.PrivateRequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
typeId: zod_1.z.string().uuid(),
|
|
12
|
+
styleId: zod_1.z.string().uuid(),
|
|
13
|
+
intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
|
|
14
|
+
prompt: zod_1.z.string().min(1).max(100000).optional(),
|
|
15
|
+
fileId: zod_1.z.string().uuid().optional(),
|
|
16
|
+
})
|
|
17
|
+
.refine((request) => (request.prompt !== undefined) !== (request.fileId !== undefined), {
|
|
18
|
+
message: 'Требуется ровно один из prompt или fileId',
|
|
19
|
+
});
|
|
20
|
+
GetParaphrasePriceCommand.PublicRequestSchema = zod_1.z
|
|
21
|
+
.object({
|
|
22
|
+
typeId: zod_1.z.string().uuid(),
|
|
23
|
+
styleId: zod_1.z.string().uuid(),
|
|
24
|
+
intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
|
|
25
|
+
prompt: zod_1.z.string().min(1).max(100000),
|
|
26
|
+
})
|
|
27
|
+
.strict();
|
|
28
|
+
GetParaphrasePriceCommand.RequestSchema = GetParaphrasePriceCommand.PrivateRequestSchema;
|
|
29
|
+
GetParaphrasePriceCommand.ResponseSchema = chat_1.CalculateChatPriceCommand.ResponseSchema;
|
|
30
|
+
})(GetParaphrasePriceCommand || (exports.GetParaphrasePriceCommand = GetParaphrasePriceCommand = {}));
|
|
@@ -3,6 +3,7 @@ export declare namespace GetParaphraseToolConfigCommand {
|
|
|
3
3
|
const ResponseSchema: z.ZodObject<{
|
|
4
4
|
data: z.ZodObject<{
|
|
5
5
|
maxSymbols: z.ZodNumber;
|
|
6
|
+
freeMaxSymbols: z.ZodNumber;
|
|
6
7
|
styles: z.ZodArray<z.ZodObject<{
|
|
7
8
|
uuid: z.ZodString;
|
|
8
9
|
title: z.ZodString;
|
|
@@ -19,6 +20,8 @@ export declare namespace GetParaphraseToolConfigCommand {
|
|
|
19
20
|
title: z.ZodString;
|
|
20
21
|
icon: z.ZodString;
|
|
21
22
|
price: z.ZodNumber;
|
|
23
|
+
freeMaxPromptLength: z.ZodNumber;
|
|
24
|
+
maxPromptLength: z.ZodNumber;
|
|
22
25
|
order: z.ZodNumber;
|
|
23
26
|
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
24
27
|
canUse: z.ZodBoolean;
|
|
@@ -24,3 +24,4 @@ __exportStar(require("./find-paraphrase-job-by-uuid.command"), exports);
|
|
|
24
24
|
__exportStar(require("./find-paraphrase-jobs.command"), exports);
|
|
25
25
|
__exportStar(require("./get-paraphrase-tool-config.command"), exports);
|
|
26
26
|
__exportStar(require("./update-paraphrase-job-favorite.command"), exports);
|
|
27
|
+
__exportStar(require("./get-paraphrase-price.command"), exports);
|
|
@@ -4,9 +4,16 @@ export declare namespace ParaphraseCommand {
|
|
|
4
4
|
const RequestSchema: z.ZodObject<{
|
|
5
5
|
styleId: z.ZodString;
|
|
6
6
|
typeId: z.ZodString;
|
|
7
|
-
prompt: z.ZodString
|
|
7
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
8
9
|
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
9
10
|
}, z.core.$strip>;
|
|
11
|
+
const PublicRequestSchema: z.ZodObject<{
|
|
12
|
+
styleId: z.ZodString;
|
|
13
|
+
typeId: z.ZodString;
|
|
14
|
+
prompt: z.ZodString;
|
|
15
|
+
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
16
|
+
}, z.core.$strict>;
|
|
10
17
|
type Request = z.infer<typeof RequestSchema>;
|
|
11
18
|
const ResponseSchema: z.ZodObject<{
|
|
12
19
|
data: z.ZodObject<{
|
|
@@ -16,6 +23,34 @@ export declare namespace ParaphraseCommand {
|
|
|
16
23
|
isFavorite: z.ZodBoolean;
|
|
17
24
|
createdAt: z.ZodDate;
|
|
18
25
|
updatedAt: z.ZodDate;
|
|
26
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
userInput: z.ZodString;
|
|
29
|
+
title: z.ZodString;
|
|
30
|
+
typeId: z.ZodString;
|
|
31
|
+
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
32
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
33
|
+
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
35
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
36
|
+
uuid: z.ZodString;
|
|
37
|
+
url: z.ZodString;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
mimeType: z.ZodString;
|
|
40
|
+
type: z.ZodString;
|
|
41
|
+
size: z.ZodNumber;
|
|
42
|
+
extension: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
45
|
+
uuid: z.ZodString;
|
|
46
|
+
url: z.ZodString;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
mimeType: z.ZodString;
|
|
49
|
+
type: z.ZodString;
|
|
50
|
+
size: z.ZodNumber;
|
|
51
|
+
extension: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
53
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
19
54
|
}, z.core.$strip>;
|
|
20
55
|
}, z.core.$strip>;
|
|
21
56
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -6,13 +6,26 @@ const constants_1 = require("../../../constants");
|
|
|
6
6
|
const models_1 = require("../../../models");
|
|
7
7
|
var ParaphraseCommand;
|
|
8
8
|
(function (ParaphraseCommand) {
|
|
9
|
-
ParaphraseCommand.RequestSchema = zod_1.z
|
|
9
|
+
ParaphraseCommand.RequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
10
11
|
styleId: zod_1.z.string().uuid(),
|
|
11
12
|
typeId: zod_1.z.string().uuid(),
|
|
12
|
-
prompt: zod_1.z.string().min(1).max(100000),
|
|
13
|
+
prompt: zod_1.z.string().min(1).max(100000).optional(),
|
|
14
|
+
fileId: zod_1.z.string().uuid().optional(),
|
|
13
15
|
intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
|
|
16
|
+
})
|
|
17
|
+
.refine((request) => (request.prompt !== undefined) !== (request.fileId !== undefined), {
|
|
18
|
+
message: 'Требуется ровно один из prompt или fileId',
|
|
14
19
|
});
|
|
20
|
+
ParaphraseCommand.PublicRequestSchema = zod_1.z
|
|
21
|
+
.object({
|
|
22
|
+
styleId: zod_1.z.string().uuid(),
|
|
23
|
+
typeId: zod_1.z.string().uuid(),
|
|
24
|
+
prompt: zod_1.z.string().min(1).max(100000),
|
|
25
|
+
intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
|
|
26
|
+
})
|
|
27
|
+
.strict();
|
|
15
28
|
ParaphraseCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
data: models_1.
|
|
29
|
+
data: models_1.ParaphraseToolJobSchema,
|
|
17
30
|
});
|
|
18
31
|
})(ParaphraseCommand || (exports.ParaphraseCommand = ParaphraseCommand = {}));
|
|
@@ -20,6 +20,26 @@ export declare namespace RetryParaphraseJobCommand {
|
|
|
20
20
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
21
21
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
22
22
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
24
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
uuid: z.ZodString;
|
|
26
|
+
url: z.ZodString;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
mimeType: z.ZodString;
|
|
29
|
+
type: z.ZodString;
|
|
30
|
+
size: z.ZodNumber;
|
|
31
|
+
extension: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodString;
|
|
35
|
+
url: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
mimeType: z.ZodString;
|
|
38
|
+
type: z.ZodString;
|
|
39
|
+
size: z.ZodNumber;
|
|
40
|
+
extension: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
23
43
|
}, z.core.$strip>;
|
|
24
44
|
}, z.core.$strip>;
|
|
25
45
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -26,6 +26,26 @@ export declare namespace SetReactionToParaphraseJobCommand {
|
|
|
26
26
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
27
27
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
28
28
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
30
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
uuid: z.ZodString;
|
|
32
|
+
url: z.ZodString;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
mimeType: z.ZodString;
|
|
35
|
+
type: z.ZodString;
|
|
36
|
+
size: z.ZodNumber;
|
|
37
|
+
extension: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
39
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
uuid: z.ZodString;
|
|
41
|
+
url: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
mimeType: z.ZodString;
|
|
44
|
+
type: z.ZodString;
|
|
45
|
+
size: z.ZodNumber;
|
|
46
|
+
extension: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
29
49
|
}, z.core.$strip>;
|
|
30
50
|
}, z.core.$strip>;
|
|
31
51
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -24,6 +24,26 @@ export declare namespace UpdateParaphraseJobFavoriteCommand {
|
|
|
24
24
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
25
25
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
26
26
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
28
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
uuid: z.ZodString;
|
|
30
|
+
url: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
mimeType: z.ZodString;
|
|
33
|
+
type: z.ZodString;
|
|
34
|
+
size: z.ZodNumber;
|
|
35
|
+
extension: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
uuid: z.ZodString;
|
|
39
|
+
url: z.ZodString;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
mimeType: z.ZodString;
|
|
42
|
+
type: z.ZodString;
|
|
43
|
+
size: z.ZodNumber;
|
|
44
|
+
extension: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
27
47
|
}, z.core.$strip>;
|
|
28
48
|
}, z.core.$strip>;
|
|
29
49
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -24,6 +24,26 @@ export declare namespace UpdateParaphraseJobTitleCommand {
|
|
|
24
24
|
intensity: z.ZodEnum<typeof import("../../..").PARAPHRASING_INTENSITY>;
|
|
25
25
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
26
26
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof import("../../..").PARAPHRASE_INPUT_KIND>>>;
|
|
28
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
uuid: z.ZodString;
|
|
30
|
+
url: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
mimeType: z.ZodString;
|
|
33
|
+
type: z.ZodString;
|
|
34
|
+
size: z.ZodNumber;
|
|
35
|
+
extension: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
uuid: z.ZodString;
|
|
39
|
+
url: z.ZodString;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
mimeType: z.ZodString;
|
|
42
|
+
type: z.ZodString;
|
|
43
|
+
size: z.ZodNumber;
|
|
44
|
+
extension: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
27
47
|
}, z.core.$strip>;
|
|
28
48
|
}, z.core.$strip>;
|
|
29
49
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -2,7 +2,6 @@ export declare enum AI_MODEL_CONFIG_PARAM {
|
|
|
2
2
|
IMAGE_SIZE = "image-size",
|
|
3
3
|
IMAGE_STYLE = "image-style",
|
|
4
4
|
WEB_SEARCH = "web-search",
|
|
5
|
-
EXTRA_SYMBOLS_PRICING = "extra-symbols-pricing",
|
|
6
5
|
REASONING = "reasoning",
|
|
7
6
|
NO_ACTIVE_SUBSCRIPTION_OR_PRODUCT_MULTIPLIER = "no-active-subscription-or-product-multiplier"
|
|
8
7
|
}
|
|
@@ -6,7 +6,6 @@ var AI_MODEL_CONFIG_PARAM;
|
|
|
6
6
|
AI_MODEL_CONFIG_PARAM["IMAGE_SIZE"] = "image-size";
|
|
7
7
|
AI_MODEL_CONFIG_PARAM["IMAGE_STYLE"] = "image-style";
|
|
8
8
|
AI_MODEL_CONFIG_PARAM["WEB_SEARCH"] = "web-search";
|
|
9
|
-
AI_MODEL_CONFIG_PARAM["EXTRA_SYMBOLS_PRICING"] = "extra-symbols-pricing";
|
|
10
9
|
AI_MODEL_CONFIG_PARAM["REASONING"] = "reasoning";
|
|
11
10
|
AI_MODEL_CONFIG_PARAM["NO_ACTIVE_SUBSCRIPTION_OR_PRODUCT_MULTIPLIER"] = "no-active-subscription-or-product-multiplier";
|
|
12
11
|
})(AI_MODEL_CONFIG_PARAM || (exports.AI_MODEL_CONFIG_PARAM = AI_MODEL_CONFIG_PARAM = {}));
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./paraphrasing-intesity.enum"), exports);
|
|
18
|
+
__exportStar(require("./paraphrase-input-kind.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PARAPHRASE_INPUT_KIND = void 0;
|
|
4
|
+
var PARAPHRASE_INPUT_KIND;
|
|
5
|
+
(function (PARAPHRASE_INPUT_KIND) {
|
|
6
|
+
PARAPHRASE_INPUT_KIND["TEXT"] = "text";
|
|
7
|
+
PARAPHRASE_INPUT_KIND["DOCUMENT"] = "document";
|
|
8
|
+
})(PARAPHRASE_INPUT_KIND || (exports.PARAPHRASE_INPUT_KIND = PARAPHRASE_INPUT_KIND = {}));
|
package/build/helpers/index.d.ts
CHANGED
package/build/helpers/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ai-model"), exports);
|
|
18
17
|
__exportStar(require("./presentation"), exports);
|
|
19
18
|
__exportStar(require("./stt"), exports);
|
|
20
19
|
__exportStar(require("./subscription"), exports);
|
|
@@ -45,11 +45,6 @@ export declare const AiModelImageStyleParameter: z.ZodObject<{
|
|
|
45
45
|
export declare const AiModelWebSearchParameter: z.ZodObject<{
|
|
46
46
|
webSearchPrice: z.ZodNumber;
|
|
47
47
|
}, z.core.$strip>;
|
|
48
|
-
export declare const AiModelExtraSymbolsPricingParameter: z.ZodObject<{
|
|
49
|
-
stepSize: z.ZodNumber;
|
|
50
|
-
stepPrice: z.ZodNumber;
|
|
51
|
-
isActive: z.ZodBoolean;
|
|
52
|
-
}, z.core.$strip>;
|
|
53
48
|
export declare const AiModelNoActiveSubscriptionOrProductMultiplierParameter: z.ZodObject<{
|
|
54
49
|
multiplier: z.ZodNumber;
|
|
55
50
|
}, z.core.$strip>;
|
|
@@ -80,11 +75,6 @@ export declare const AiModelConfigSchema: z.ZodObject<{
|
|
|
80
75
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
81
76
|
webSearchPrice: z.ZodNumber;
|
|
82
77
|
}, z.core.$strip>>;
|
|
83
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
84
|
-
stepSize: z.ZodNumber;
|
|
85
|
-
stepPrice: z.ZodNumber;
|
|
86
|
-
isActive: z.ZodBoolean;
|
|
87
|
-
}, z.core.$strip>>;
|
|
88
78
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
89
79
|
multiplier: z.ZodNumber;
|
|
90
80
|
}, z.core.$strip>>;
|
|
@@ -96,6 +86,5 @@ export type AiModelImageSizeParameter = z.infer<typeof AiModelImageSizeParameter
|
|
|
96
86
|
export type AiModelImageStyleOption = z.infer<typeof AiModelImageStyleOptionSchema>;
|
|
97
87
|
export type AiModelImageStyleParameter = z.infer<typeof AiModelImageStyleParameter>;
|
|
98
88
|
export type AiModelWebSeachParameter = z.infer<typeof AiModelWebSearchParameter>;
|
|
99
|
-
export type AiModelExtraSymbolsPricingParameter = z.infer<typeof AiModelExtraSymbolsPricingParameter>;
|
|
100
89
|
export type AiModelNoActiveSubscriptionOrProductMultiplierParameter = z.infer<typeof AiModelNoActiveSubscriptionOrProductMultiplierParameter>;
|
|
101
90
|
export type AiModelConfig = z.infer<typeof AiModelConfigSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AiModelConfigSchema = exports.AiModelNoActiveSubscriptionOrProductMultiplierParameter = exports.
|
|
3
|
+
exports.AiModelConfigSchema = exports.AiModelNoActiveSubscriptionOrProductMultiplierParameter = exports.AiModelWebSearchParameter = exports.AiModelImageStyleParameter = exports.AiModelImageStyleOptionSchema = exports.AiModelImageSizeParameter = exports.AiModelImageSizeOptionSchema = exports.AiModelConfigParameterSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
exports.AiModelConfigParameterSchema = zod_1.z.object({
|
|
@@ -32,12 +32,6 @@ exports.AiModelImageStyleParameter = zod_1.z.object({
|
|
|
32
32
|
exports.AiModelWebSearchParameter = zod_1.z.object({
|
|
33
33
|
webSearchPrice: zod_1.z.number(),
|
|
34
34
|
});
|
|
35
|
-
// EXTRA SYMBOLS PRICING
|
|
36
|
-
exports.AiModelExtraSymbolsPricingParameter = zod_1.z.object({
|
|
37
|
-
stepSize: zod_1.z.number(),
|
|
38
|
-
stepPrice: zod_1.z.number(),
|
|
39
|
-
isActive: zod_1.z.boolean(),
|
|
40
|
-
});
|
|
41
35
|
// NO ACTIVE SUBSCRIPTION OR PRODUCT MULTIPLIER
|
|
42
36
|
exports.AiModelNoActiveSubscriptionOrProductMultiplierParameter = zod_1.z.object({
|
|
43
37
|
multiplier: zod_1.z.number(),
|
|
@@ -49,7 +43,6 @@ exports.AiModelConfigSchema = zod_1.z.object({
|
|
|
49
43
|
[constants_1.AI_MODEL_CONFIG_PARAM.IMAGE_SIZE]: exports.AiModelImageSizeParameter.optional(),
|
|
50
44
|
[constants_1.AI_MODEL_CONFIG_PARAM.IMAGE_STYLE]: exports.AiModelImageStyleParameter.optional(),
|
|
51
45
|
[constants_1.AI_MODEL_CONFIG_PARAM.WEB_SEARCH]: exports.AiModelWebSearchParameter.optional(),
|
|
52
|
-
[constants_1.AI_MODEL_CONFIG_PARAM.EXTRA_SYMBOLS_PRICING]: exports.AiModelExtraSymbolsPricingParameter.optional(),
|
|
53
46
|
[constants_1.AI_MODEL_CONFIG_PARAM.NO_ACTIVE_SUBSCRIPTION_OR_PRODUCT_MULTIPLIER]: exports.AiModelNoActiveSubscriptionOrProductMultiplierParameter.optional(),
|
|
54
47
|
})
|
|
55
48
|
.strict(),
|
|
@@ -52,11 +52,6 @@ export declare const AiModelFormmattedSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
52
52
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
53
53
|
webSearchPrice: z.ZodNumber;
|
|
54
54
|
}, z.core.$strip>>;
|
|
55
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
56
|
-
stepSize: z.ZodNumber;
|
|
57
|
-
stepPrice: z.ZodNumber;
|
|
58
|
-
isActive: z.ZodBoolean;
|
|
59
|
-
}, z.core.$strip>>;
|
|
60
55
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
61
56
|
multiplier: z.ZodNumber;
|
|
62
57
|
}, z.core.$strip>>;
|
|
@@ -53,11 +53,6 @@ export declare const AiModelSchema: z.ZodObject<{
|
|
|
53
53
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
54
54
|
webSearchPrice: z.ZodNumber;
|
|
55
55
|
}, z.core.$strip>>;
|
|
56
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
57
|
-
stepSize: z.ZodNumber;
|
|
58
|
-
stepPrice: z.ZodNumber;
|
|
59
|
-
isActive: z.ZodBoolean;
|
|
60
|
-
}, z.core.$strip>>;
|
|
61
56
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
62
57
|
multiplier: z.ZodNumber;
|
|
63
58
|
}, z.core.$strip>>;
|
|
@@ -118,11 +113,6 @@ export declare const CreateAiModelSchema: z.ZodObject<{
|
|
|
118
113
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
119
114
|
webSearchPrice: z.ZodNumber;
|
|
120
115
|
}, z.core.$strip>>;
|
|
121
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
122
|
-
stepSize: z.ZodNumber;
|
|
123
|
-
stepPrice: z.ZodNumber;
|
|
124
|
-
isActive: z.ZodBoolean;
|
|
125
|
-
}, z.core.$strip>>;
|
|
126
116
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
127
117
|
multiplier: z.ZodNumber;
|
|
128
118
|
}, z.core.$strip>>;
|
|
@@ -188,11 +178,6 @@ export declare const AiModelWithUnlockedBySchema: z.ZodObject<{
|
|
|
188
178
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
189
179
|
webSearchPrice: z.ZodNumber;
|
|
190
180
|
}, z.core.$strip>>;
|
|
191
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
192
|
-
stepSize: z.ZodNumber;
|
|
193
|
-
stepPrice: z.ZodNumber;
|
|
194
|
-
isActive: z.ZodBoolean;
|
|
195
|
-
}, z.core.$strip>>;
|
|
196
181
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
197
182
|
multiplier: z.ZodNumber;
|
|
198
183
|
}, z.core.$strip>>;
|
|
@@ -70,11 +70,6 @@ export declare const CanvasTextGenerationConfigSchema: z.ZodArray<z.ZodObject<{
|
|
|
70
70
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
71
71
|
webSearchPrice: z.ZodNumber;
|
|
72
72
|
}, z.core.$strip>>;
|
|
73
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
74
|
-
stepSize: z.ZodNumber;
|
|
75
|
-
stepPrice: z.ZodNumber;
|
|
76
|
-
isActive: z.ZodBoolean;
|
|
77
|
-
}, z.core.$strip>>;
|
|
78
73
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
79
74
|
multiplier: z.ZodNumber;
|
|
80
75
|
}, z.core.$strip>>;
|
|
@@ -326,11 +321,6 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
326
321
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
327
322
|
webSearchPrice: z.ZodNumber;
|
|
328
323
|
}, z.core.$strip>>;
|
|
329
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
330
|
-
stepSize: z.ZodNumber;
|
|
331
|
-
stepPrice: z.ZodNumber;
|
|
332
|
-
isActive: z.ZodBoolean;
|
|
333
|
-
}, z.core.$strip>>;
|
|
334
324
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
335
325
|
multiplier: z.ZodNumber;
|
|
336
326
|
}, z.core.$strip>>;
|
|
@@ -1099,11 +1089,6 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1099
1089
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
1100
1090
|
webSearchPrice: z.ZodNumber;
|
|
1101
1091
|
}, z.core.$strip>>;
|
|
1102
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
1103
|
-
stepSize: z.ZodNumber;
|
|
1104
|
-
stepPrice: z.ZodNumber;
|
|
1105
|
-
isActive: z.ZodBoolean;
|
|
1106
|
-
}, z.core.$strip>>;
|
|
1107
1092
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
1108
1093
|
multiplier: z.ZodNumber;
|
|
1109
1094
|
}, z.core.$strip>>;
|
|
@@ -1830,11 +1815,6 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1830
1815
|
"web-search": z.ZodOptional<z.ZodObject<{
|
|
1831
1816
|
webSearchPrice: z.ZodNumber;
|
|
1832
1817
|
}, z.core.$strip>>;
|
|
1833
|
-
"extra-symbols-pricing": z.ZodOptional<z.ZodObject<{
|
|
1834
|
-
stepSize: z.ZodNumber;
|
|
1835
|
-
stepPrice: z.ZodNumber;
|
|
1836
|
-
isActive: z.ZodBoolean;
|
|
1837
|
-
}, z.core.$strip>>;
|
|
1838
1818
|
"no-active-subscription-or-product-multiplier": z.ZodOptional<z.ZodObject<{
|
|
1839
1819
|
multiplier: z.ZodNumber;
|
|
1840
1820
|
}, z.core.$strip>>;
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./paraphrase-config.schema"), exports);
|
|
|
18
18
|
__exportStar(require("./paraphrase-job.schema"), exports);
|
|
19
19
|
__exportStar(require("./paraphrase-model.schema"), exports);
|
|
20
20
|
__exportStar(require("./paraphrase-style.schema"), exports);
|
|
21
|
+
__exportStar(require("./paraphrase-document.schema"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ParaphraseToolConfigSchema: z.ZodObject<{
|
|
3
3
|
maxSymbols: z.ZodNumber;
|
|
4
|
+
freeMaxSymbols: z.ZodNumber;
|
|
4
5
|
styles: z.ZodArray<z.ZodObject<{
|
|
5
6
|
uuid: z.ZodString;
|
|
6
7
|
title: z.ZodString;
|
|
@@ -17,6 +18,8 @@ export declare const ParaphraseToolConfigSchema: z.ZodObject<{
|
|
|
17
18
|
title: z.ZodString;
|
|
18
19
|
icon: z.ZodString;
|
|
19
20
|
price: z.ZodNumber;
|
|
21
|
+
freeMaxPromptLength: z.ZodNumber;
|
|
22
|
+
maxPromptLength: z.ZodNumber;
|
|
20
23
|
order: z.ZodNumber;
|
|
21
24
|
status: z.ZodEnum<typeof import("../../..").TOOL_MODEL_STATUS>;
|
|
22
25
|
canUse: z.ZodBoolean;
|
|
@@ -6,6 +6,7 @@ const paraphrase_style_schema_1 = require("./paraphrase-style.schema");
|
|
|
6
6
|
const paraphrase_model_schema_1 = require("./paraphrase-model.schema");
|
|
7
7
|
exports.ParaphraseToolConfigSchema = zod_1.z.object({
|
|
8
8
|
maxSymbols: zod_1.z.number(),
|
|
9
|
+
freeMaxSymbols: zod_1.z.number(),
|
|
9
10
|
styles: zod_1.z.array(paraphrase_style_schema_1.ParaphraseStyleSchema),
|
|
10
11
|
types: zod_1.z.array(paraphrase_model_schema_1.ParaphraseModelSchema),
|
|
11
12
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ParaphraseDocumentMetadataSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
mimeType: z.ZodString;
|
|
7
|
+
type: z.ZodString;
|
|
8
|
+
size: z.ZodNumber;
|
|
9
|
+
extension: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ParaphraseDocumentMetadataSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ParaphraseDocumentMetadataSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
|
7
|
+
url: zod_1.z.string(),
|
|
8
|
+
name: zod_1.z.string(),
|
|
9
|
+
mimeType: zod_1.z.string(),
|
|
10
|
+
type: zod_1.z.string(),
|
|
11
|
+
size: zod_1.z.number().nonnegative(),
|
|
12
|
+
extension: zod_1.z.string(),
|
|
13
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { PARAPHRASING_INTENSITY, USER_REACTION } from '../../../constants';
|
|
2
|
+
import { PARAPHRASE_INPUT_KIND, PARAPHRASING_INTENSITY, USER_REACTION } from '../../../constants';
|
|
3
3
|
export declare const ParaphraseToolJobSchema: z.ZodObject<{
|
|
4
4
|
uuid: z.ZodString;
|
|
5
5
|
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
@@ -15,4 +15,24 @@ export declare const ParaphraseToolJobSchema: z.ZodObject<{
|
|
|
15
15
|
intensity: z.ZodEnum<typeof PARAPHRASING_INTENSITY>;
|
|
16
16
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
17
17
|
aiOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
inputKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<typeof PARAPHRASE_INPUT_KIND>>>;
|
|
19
|
+
sourceDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
url: z.ZodString;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
mimeType: z.ZodString;
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
size: z.ZodNumber;
|
|
26
|
+
extension: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>>;
|
|
28
|
+
outputDocument: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
uuid: z.ZodString;
|
|
30
|
+
url: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
mimeType: z.ZodString;
|
|
33
|
+
type: z.ZodString;
|
|
34
|
+
size: z.ZodNumber;
|
|
35
|
+
extension: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
uniquenessPercentage: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
18
38
|
}, z.core.$strip>;
|
|
@@ -4,6 +4,7 @@ exports.ParaphraseToolJobSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
+
const paraphrase_document_schema_1 = require("./paraphrase-document.schema");
|
|
7
8
|
exports.ParaphraseToolJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
8
9
|
styleId: zod_1.z.string().uuid().nullable().optional(),
|
|
9
10
|
modelId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -13,4 +14,8 @@ exports.ParaphraseToolJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
|
13
14
|
intensity: zod_1.z.nativeEnum(constants_1.PARAPHRASING_INTENSITY),
|
|
14
15
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
15
16
|
aiOutput: zod_1.z.string().nullable().optional(),
|
|
17
|
+
inputKind: zod_1.z.nativeEnum(constants_1.PARAPHRASE_INPUT_KIND).nullable().default(null),
|
|
18
|
+
sourceDocument: paraphrase_document_schema_1.ParaphraseDocumentMetadataSchema.nullable().default(null),
|
|
19
|
+
outputDocument: paraphrase_document_schema_1.ParaphraseDocumentMetadataSchema.nullable().default(null),
|
|
20
|
+
uniquenessPercentage: zod_1.z.number().int().min(0).max(100).nullable().default(null),
|
|
16
21
|
});
|
|
@@ -5,6 +5,8 @@ export declare const ParaphraseModelSchema: z.ZodObject<{
|
|
|
5
5
|
title: z.ZodString;
|
|
6
6
|
icon: z.ZodString;
|
|
7
7
|
price: z.ZodNumber;
|
|
8
|
+
freeMaxPromptLength: z.ZodNumber;
|
|
9
|
+
maxPromptLength: z.ZodNumber;
|
|
8
10
|
order: z.ZodNumber;
|
|
9
11
|
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
10
12
|
canUse: z.ZodBoolean;
|
|
@@ -9,6 +9,8 @@ exports.ParaphraseModelSchema = zod_1.z.object({
|
|
|
9
9
|
title: zod_1.z.string(),
|
|
10
10
|
icon: zod_1.z.string(),
|
|
11
11
|
price: zod_1.z.number(),
|
|
12
|
+
freeMaxPromptLength: zod_1.z.number(),
|
|
13
|
+
maxPromptLength: zod_1.z.number(),
|
|
12
14
|
order: zod_1.z.number(),
|
|
13
15
|
status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
|
|
14
16
|
canUse: zod_1.z.boolean(),
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calcBaseTextGenerationPrice = calcBaseTextGenerationPrice;
|
|
4
|
-
function calcBaseTextGenerationPrice({ symbolsInRequest, defaultPrice, config, }) {
|
|
5
|
-
if (!config) {
|
|
6
|
-
return defaultPrice;
|
|
7
|
-
}
|
|
8
|
-
const { stepSize, stepPrice } = config;
|
|
9
|
-
if (symbolsInRequest <= stepSize) {
|
|
10
|
-
return defaultPrice;
|
|
11
|
-
}
|
|
12
|
-
const symbolsBeyondFirstStep = symbolsInRequest - stepSize;
|
|
13
|
-
const additionalSteps = Math.ceil(symbolsBeyondFirstStep / stepSize);
|
|
14
|
-
return defaultPrice + Math.ceil(additionalSteps * stepPrice);
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './calc-base-text-generation-price.helper';
|
|
@@ -1,17 +0,0 @@
|
|
|
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("./calc-base-text-generation-price.helper"), exports);
|