@purpleschool/gptbot 0.15.75-paraphrase-special → 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/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/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/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/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
|
@@ -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>>;
|
|
@@ -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 = {}));
|
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>>;
|
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);
|