@purpleschool/multisite 0.0.26 → 0.0.28
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/controller/http/ai-proxy.d.ts +3 -3
- package/build/api/controller/http/ai-proxy.d.ts.map +1 -1
- package/build/api/controller/http/auth.d.ts +12 -12
- package/build/api/controller/http/auth.d.ts.map +1 -1
- package/build/api/controller/http/cloud-payments.d.ts +2 -2
- package/build/api/controller/http/cloud-payments.d.ts.map +1 -1
- package/build/api/controller/http/file.d.ts +5 -5
- package/build/api/controller/http/file.d.ts.map +1 -1
- package/build/api/controller/http/health.d.ts +1 -1
- package/build/api/controller/http/health.d.ts.map +1 -1
- package/build/api/controller/http/image-editor.d.ts +6 -6
- package/build/api/controller/http/image-editor.d.ts.map +1 -1
- package/build/api/controller/http/image-generation.d.ts +6 -6
- package/build/api/controller/http/image-generation.d.ts.map +1 -1
- package/build/api/controller/http/marketplace-card.d.ts +7 -7
- package/build/api/controller/http/marketplace-card.d.ts.map +1 -1
- package/build/api/controller/http/page-question.d.ts +3 -3
- package/build/api/controller/http/page-question.d.ts.map +1 -1
- package/build/api/controller/http/page.d.ts +4 -4
- package/build/api/controller/http/page.d.ts.map +1 -1
- package/build/api/controller/http/payment.d.ts +3 -3
- package/build/api/controller/http/payment.d.ts.map +1 -1
- package/build/api/controller/http/product.d.ts +6 -6
- package/build/api/controller/http/product.d.ts.map +1 -1
- package/build/api/controller/http/sitemap.d.ts +2 -2
- package/build/api/controller/http/sitemap.d.ts.map +1 -1
- package/build/api/controller/http/stt.d.ts +6 -6
- package/build/api/controller/http/stt.d.ts.map +1 -1
- package/build/api/controller/http/subscription.d.ts +7 -7
- package/build/api/controller/http/subscription.d.ts.map +1 -1
- package/build/api/controller/http/transaction.d.ts +2 -2
- package/build/api/controller/http/transaction.d.ts.map +1 -1
- package/build/api/controller/http/tts.d.ts +6 -6
- package/build/api/controller/http/tts.d.ts.map +1 -1
- package/build/api/controller/http/unregistered-user.d.ts +2 -2
- package/build/api/controller/http/unregistered-user.d.ts.map +1 -1
- package/build/api/controller/http/user-to-product.d.ts +1 -1
- package/build/api/controller/http/user-to-product.d.ts.map +1 -1
- package/build/api/controller/http/user-to-subscription.d.ts +1 -1
- package/build/api/controller/http/user-to-subscription.d.ts.map +1 -1
- package/build/api/controller/http/user.d.ts +5 -5
- package/build/api/controller/http/user.d.ts.map +1 -1
- package/build/api/routes.d.ts +1 -1
- package/build/api/routes.d.ts.map +1 -1
- package/build/commands/auth/register.command.d.ts +1 -1
- package/build/commands/auth/reset-password.command.d.ts +2 -2
- package/build/commands/auth/verify-email.command.d.ts +2 -2
- package/build/commands/auth/vk-login.command.d.ts +2 -2
- package/build/commands/auth/yandex-login.command.d.ts +2 -2
- package/build/commands/file/upload-file.command.d.ts +8 -8
- package/build/commands/image-editor/execute-image-editor.command.d.ts +88 -88
- package/build/commands/image-editor/proxy-image-editor-callback.command.d.ts +2 -2
- package/build/commands/image-editor/retry-image-editor-job.command.d.ts +89 -89
- package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +78 -78
- package/build/commands/image-editor/update-image-editor-job-title.command.d.ts +78 -78
- package/build/commands/image-generation/execute-image-generation.command.d.ts +71 -71
- package/build/commands/image-generation/proxy-image-generation-callback.command.d.ts +4 -4
- package/build/commands/image-generation/retry-image-generation-job.command.d.ts +72 -72
- package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +65 -65
- package/build/commands/image-generation/update-image-generation-job-title.command.d.ts +65 -65
- package/build/commands/marketplace-card/execute-marketplace-card.command.d.ts +20 -20
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.d.ts +16 -16
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts +16 -16
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.d.ts +16 -16
- package/build/commands/page/create-page-question.command.d.ts +9 -9
- package/build/commands/page/create-page.command.d.ts +15 -15
- package/build/commands/page/find-page-by-alias.command.d.ts +72 -72
- package/build/commands/page/find-page-by-criteria.command.d.ts +28 -28
- package/build/commands/page/find-page.command.d.ts +48 -48
- package/build/commands/page/update-page-question.command.d.ts +9 -9
- package/build/commands/page/update-page.command.d.ts +15 -15
- package/build/commands/payment/cloud-payments.command.d.ts +18 -18
- package/build/commands/product/buy-product.command.d.ts +80 -80
- package/build/commands/product/fast-buy-product.command.d.ts +81 -81
- package/build/commands/product/update-product.command.d.ts +6 -6
- package/build/commands/stt/execute-stt.command.d.ts +81 -81
- package/build/commands/stt/retry-stt-job.command.d.ts +79 -79
- package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +79 -79
- package/build/commands/stt/update-stt-job-title.command.d.ts +79 -79
- package/build/commands/subscription/buy-subscription.command.d.ts +80 -80
- package/build/commands/subscription/fast-buy-subscription.command.d.ts +81 -81
- package/build/commands/subscription/update-subscription.command.d.ts +24 -24
- package/build/commands/transaction/write-off.command.d.ts +5 -5
- package/build/commands/tts/execute-tts.command.d.ts +99 -99
- package/build/commands/tts/retry-tts-job.command.d.ts +92 -92
- package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +92 -92
- package/build/commands/tts/update-tts-job-title.command.d.ts +92 -92
- package/build/commands/unregistered-user/upsert-unregistered-user.command.d.ts +4 -4
- package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts +4 -4
- package/build/commands/user-to-product/update-user-to-product.command.d.ts +7 -7
- package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts +28 -28
- package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts +36 -36
- package/build/constants/email/email-endpoint.d.ts +1 -1
- package/build/constants/email/email-endpoint.d.ts.map +1 -1
- package/build/constants/email/email-endpoint.js +1 -1
- package/build/constants/email/subjects.d.ts +10 -10
- package/build/constants/email/subjects.d.ts.map +1 -1
- package/build/constants/errors/errors.d.ts +338 -328
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +10 -0
- package/build/constants/subscription/free-subscription-id.constant.d.ts +1 -1
- package/build/models/cloud-payments-widget-data.schema.d.ts +58 -58
- package/build/models/cloud-payments-widget.schema.d.ts +62 -62
- package/build/models/common/attached-file.schema.d.ts +4 -4
- package/build/models/common/receipt.schema.d.ts +8 -8
- package/build/models/file.schema.d.ts +4 -4
- package/build/models/image-editor/image-editor-config.schema.d.ts +128 -128
- package/build/models/image-editor/image-editor-job-params.schema.d.ts +10 -10
- package/build/models/image-editor/image-editor-job-request-params.schema.d.ts +4 -4
- package/build/models/image-editor/image-editor-job-request-params.schema.js +1 -1
- package/build/models/image-editor/image-editor-job.schema.d.ts +44 -44
- package/build/models/image-editor/image-editor-model-params.schema.d.ts +5 -5
- package/build/models/image-editor/image-editor-model.schema.d.ts +44 -44
- package/build/models/image-editor/image-editor-pricing-rule.schema.d.ts +2 -2
- package/build/models/image-editor/image-editor-prompt-group.schema.d.ts +26 -26
- package/build/models/image-editor/image-editor-system-prompt.schema.d.ts +12 -12
- package/build/models/image-generation/image-generation-config.schema.d.ts +122 -122
- package/build/models/image-generation/image-generation-job-attempt.schema.d.ts +2 -2
- package/build/models/image-generation/image-generation-job-params.schema.d.ts +9 -9
- package/build/models/image-generation/image-generation-job-request-params.schema.d.ts +1 -1
- package/build/models/image-generation/image-generation-job.schema.d.ts +38 -38
- package/build/models/image-generation/image-generation-model-params.schema.d.ts +4 -4
- package/build/models/image-generation/image-generation-model.schema.d.ts +42 -42
- package/build/models/image-generation/image-generation-preset.schema.d.ts +2 -2
- package/build/models/image-generation/image-generation-pricing-rule.schema.d.ts +4 -4
- package/build/models/image-generation/image-generation-vendor.schema.d.ts +80 -80
- package/build/models/marketplace-card/marketplace-card-config.schema.d.ts +18 -18
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.d.ts +4 -4
- package/build/models/marketplace-card/marketplace-card-job.schema.d.ts +8 -8
- package/build/models/marketplace-card/marketplace-card-model.schema.d.ts +4 -4
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.d.ts +2 -2
- package/build/models/page-question.schema.d.ts +4 -4
- package/build/models/page.schema.d.ts +20 -20
- package/build/models/product.schema.d.ts +2 -2
- package/build/models/stt/stt-config.schema.d.ts +28 -28
- package/build/models/stt/stt-job-attempt.schema.d.ts +4 -4
- package/build/models/stt/stt-job.schema.d.ts +42 -42
- package/build/models/stt/stt-model.schema.d.ts +14 -14
- package/build/models/stt/stt-response.schema.d.ts +1 -1
- package/build/models/subscription.schema.d.ts +8 -8
- package/build/models/tools/vendor.schema.d.ts +2 -2
- package/build/models/tts/tts-config.schema.d.ts +184 -184
- package/build/models/tts/tts-job-attempt.schema.d.ts +4 -4
- package/build/models/tts/tts-job-params.schema.d.ts +2 -2
- package/build/models/tts/tts-job.schema.d.ts +50 -50
- package/build/models/tts/tts-model.schema.d.ts +196 -196
- package/build/models/unlocked-by-subscription.schema.d.ts.map +1 -1
- package/build/models/user-to-product.schema.d.ts +2 -2
- package/build/models/user-to-subscription.schema.d.ts +14 -14
- package/build/models/user.schema.d.ts +4 -4
- package/build/queries/file/find-files.command.d.ts +8 -8
- package/build/queries/file/get-file.command.d.ts +8 -8
- package/build/queries/image-editor/find-image-editor-jobs.command.d.ts +79 -79
- package/build/queries/image-editor/get-image-editor-config.command.d.ts +186 -186
- package/build/queries/image-editor/get-image-editor-job.command.d.ts +78 -78
- package/build/queries/image-generation/find-image-generation-jobs.command.d.ts +66 -66
- package/build/queries/image-generation/get-image-generation-config.command.d.ts +162 -162
- package/build/queries/image-generation/get-image-generation-job.command.d.ts +65 -65
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.d.ts +17 -17
- package/build/queries/marketplace-card/get-marketplace-card-config.command.d.ts +30 -30
- package/build/queries/marketplace-card/get-marketplace-card-job.command.d.ts +16 -16
- package/build/queries/page/find-all-page-questions.query.d.ts +8 -8
- package/build/queries/page/find-page-question-by-uuid.query.d.ts +8 -8
- package/build/queries/page/find-page-questions-by-page-id.query.d.ts +8 -8
- package/build/queries/payment/get-payment-history.command.d.ts +12 -12
- package/build/queries/product/find-products.command.d.ts +4 -4
- package/build/queries/stt/find-stt-jobs.command.d.ts +79 -79
- package/build/queries/stt/get-stt-config.command.d.ts +42 -42
- package/build/queries/stt/get-stt-job.command.d.ts +79 -79
- package/build/queries/subscription/find-subscriptions.command.d.ts +16 -16
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts +51 -51
- package/build/queries/tts/find-tts-jobs.command.d.ts +94 -94
- package/build/queries/tts/get-tts-config.command.d.ts +242 -242
- package/build/queries/tts/get-tts-job.command.d.ts +92 -92
- package/build/queries/unregistered-user/get-unregistered-user-balance.command.d.ts +5 -0
- package/build/queries/unregistered-user/get-unregistered-user-balance.command.d.ts.map +1 -1
- package/build/queries/unregistered-user/get-unregistered-user-balance.command.js +1 -0
- package/build/queries/user/find-users.command.d.ts +16 -16
- package/build/queries/user/get-all-users.command.d.ts +8 -8
- package/build/queries/user/get-my-products.command.d.ts +10 -10
- package/build/queries/user/get-my-subscriptions.command.d.ts +36 -36
- package/build/queries/user/get-user-balance.command.d.ts +5 -0
- package/build/queries/user/get-user-balance.command.d.ts.map +1 -1
- package/build/queries/user/get-user-balance.command.js +1 -0
- package/build/queries/user/get-user-payments.command.d.ts +42 -42
- package/build/queries/user/get-user.command.d.ts +8 -8
- package/constants/email/email-endpoint.ts +1 -1
- package/constants/errors/errors.ts +10 -0
- package/models/image-editor/image-editor-job-request-params.schema.ts +1 -1
- package/package.json +1 -1
- package/queries/unregistered-user/get-unregistered-user-balance.command.ts +1 -0
- package/queries/user/get-user-balance.command.ts +1 -0
|
@@ -77,25 +77,25 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
77
77
|
height: number;
|
|
78
78
|
}>>;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
aspectRatio: Record<string, {
|
|
81
|
-
width: number;
|
|
82
|
-
height: number;
|
|
83
|
-
}>;
|
|
84
80
|
imageAttachment: {
|
|
85
81
|
supported: boolean;
|
|
86
82
|
maxImages: number;
|
|
87
83
|
acceptedTypes: string[];
|
|
88
84
|
};
|
|
89
|
-
}, {
|
|
90
85
|
aspectRatio: Record<string, {
|
|
91
86
|
width: number;
|
|
92
87
|
height: number;
|
|
93
88
|
}>;
|
|
89
|
+
}, {
|
|
94
90
|
imageAttachment: {
|
|
95
91
|
supported: boolean;
|
|
96
92
|
maxImages: number;
|
|
97
93
|
acceptedTypes: string[];
|
|
98
94
|
};
|
|
95
|
+
aspectRatio: Record<string, {
|
|
96
|
+
width: number;
|
|
97
|
+
height: number;
|
|
98
|
+
}>;
|
|
99
99
|
}>;
|
|
100
100
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
101
101
|
condition: z.ZodObject<{
|
|
@@ -107,15 +107,15 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
107
107
|
}>;
|
|
108
108
|
value: z.ZodNumber;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
value: number;
|
|
111
110
|
condition: {
|
|
112
111
|
withoutSub?: boolean | undefined;
|
|
113
112
|
};
|
|
114
|
-
}, {
|
|
115
113
|
value: number;
|
|
114
|
+
}, {
|
|
116
115
|
condition: {
|
|
117
116
|
withoutSub?: boolean | undefined;
|
|
118
117
|
};
|
|
118
|
+
value: number;
|
|
119
119
|
}>, "many">;
|
|
120
120
|
canUse: z.ZodBoolean;
|
|
121
121
|
statusCheckEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -123,32 +123,14 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
123
123
|
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
125
|
uuid: string;
|
|
126
|
-
status: import("../..").TOOL_MODEL_STATUS;
|
|
127
|
-
params: {
|
|
128
|
-
aspectRatio: Record<string, {
|
|
129
|
-
width: number;
|
|
130
|
-
height: number;
|
|
131
|
-
}>;
|
|
132
|
-
imageAttachment: {
|
|
133
|
-
supported: boolean;
|
|
134
|
-
maxImages: number;
|
|
135
|
-
acceptedTypes: string[];
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
canUse: boolean;
|
|
139
|
-
description: string;
|
|
140
126
|
title: string;
|
|
141
|
-
|
|
142
|
-
value: number;
|
|
143
|
-
condition: {
|
|
144
|
-
withoutSub?: boolean | undefined;
|
|
145
|
-
};
|
|
146
|
-
}[];
|
|
147
|
-
order: number;
|
|
127
|
+
description: string;
|
|
148
128
|
aiModel: string;
|
|
149
129
|
isNew: boolean;
|
|
150
130
|
tierLabel: string;
|
|
151
131
|
pricePerImage: number;
|
|
132
|
+
order: number;
|
|
133
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
152
134
|
icons: {
|
|
153
135
|
light: {
|
|
154
136
|
png?: string | undefined;
|
|
@@ -161,37 +143,37 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
161
143
|
};
|
|
162
144
|
strategy: import("../..").IMAGE_EDITING_STRATEGY;
|
|
163
145
|
maxInputLength: number;
|
|
164
|
-
createdAt?: string | Date | undefined;
|
|
165
|
-
updatedAt?: string | Date | undefined;
|
|
166
|
-
statusCheckEndpoint?: string | null | undefined;
|
|
167
|
-
}, {
|
|
168
|
-
uuid: string;
|
|
169
|
-
status: import("../..").TOOL_MODEL_STATUS;
|
|
170
146
|
params: {
|
|
171
|
-
aspectRatio: Record<string, {
|
|
172
|
-
width: number;
|
|
173
|
-
height: number;
|
|
174
|
-
}>;
|
|
175
147
|
imageAttachment: {
|
|
176
148
|
supported: boolean;
|
|
177
149
|
maxImages: number;
|
|
178
150
|
acceptedTypes: string[];
|
|
179
151
|
};
|
|
152
|
+
aspectRatio: Record<string, {
|
|
153
|
+
width: number;
|
|
154
|
+
height: number;
|
|
155
|
+
}>;
|
|
180
156
|
};
|
|
181
|
-
canUse: boolean;
|
|
182
|
-
description: string;
|
|
183
|
-
title: string;
|
|
184
157
|
pricingRules: {
|
|
185
|
-
value: number;
|
|
186
158
|
condition: {
|
|
187
159
|
withoutSub?: boolean | undefined;
|
|
188
160
|
};
|
|
161
|
+
value: number;
|
|
189
162
|
}[];
|
|
190
|
-
|
|
163
|
+
canUse: boolean;
|
|
164
|
+
statusCheckEndpoint?: string | null | undefined;
|
|
165
|
+
createdAt?: string | Date | undefined;
|
|
166
|
+
updatedAt?: string | Date | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
uuid: string;
|
|
169
|
+
title: string;
|
|
170
|
+
description: string;
|
|
191
171
|
aiModel: string;
|
|
192
172
|
isNew: boolean;
|
|
193
173
|
tierLabel: string;
|
|
194
174
|
pricePerImage: number;
|
|
175
|
+
order: number;
|
|
176
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
195
177
|
icons: {
|
|
196
178
|
light: {
|
|
197
179
|
png?: string | undefined;
|
|
@@ -204,9 +186,27 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
204
186
|
};
|
|
205
187
|
strategy: import("../..").IMAGE_EDITING_STRATEGY;
|
|
206
188
|
maxInputLength: number;
|
|
189
|
+
params: {
|
|
190
|
+
imageAttachment: {
|
|
191
|
+
supported: boolean;
|
|
192
|
+
maxImages: number;
|
|
193
|
+
acceptedTypes: string[];
|
|
194
|
+
};
|
|
195
|
+
aspectRatio: Record<string, {
|
|
196
|
+
width: number;
|
|
197
|
+
height: number;
|
|
198
|
+
}>;
|
|
199
|
+
};
|
|
200
|
+
pricingRules: {
|
|
201
|
+
condition: {
|
|
202
|
+
withoutSub?: boolean | undefined;
|
|
203
|
+
};
|
|
204
|
+
value: number;
|
|
205
|
+
}[];
|
|
206
|
+
canUse: boolean;
|
|
207
|
+
statusCheckEndpoint?: string | null | undefined;
|
|
207
208
|
createdAt?: string | Date | undefined;
|
|
208
209
|
updatedAt?: string | Date | undefined;
|
|
209
|
-
statusCheckEndpoint?: string | null | undefined;
|
|
210
210
|
}>, "many">;
|
|
211
211
|
promptGroups: z.ZodArray<z.ZodObject<{
|
|
212
212
|
uuid: z.ZodString;
|
|
@@ -268,37 +268,36 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
268
268
|
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
269
269
|
}, "strip", z.ZodTypeAny, {
|
|
270
270
|
uuid: string;
|
|
271
|
-
description: string;
|
|
272
271
|
title: string;
|
|
273
|
-
|
|
272
|
+
description: string;
|
|
273
|
+
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
274
274
|
prompt: string;
|
|
275
275
|
allowUserPrompt: boolean;
|
|
276
|
-
|
|
276
|
+
order: number;
|
|
277
277
|
params?: Record<string, any> | undefined;
|
|
278
|
-
createdAt?: string | Date | undefined;
|
|
279
|
-
updatedAt?: string | Date | undefined;
|
|
280
|
-
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
281
278
|
preview?: Record<string, any> | undefined;
|
|
282
279
|
placeholder?: string | null | undefined;
|
|
280
|
+
groupId: string;
|
|
281
|
+
createdAt?: string | Date | undefined;
|
|
282
|
+
updatedAt?: string | Date | undefined;
|
|
283
283
|
}, {
|
|
284
284
|
uuid: string;
|
|
285
|
-
description: string;
|
|
286
285
|
title: string;
|
|
287
|
-
|
|
286
|
+
description: string;
|
|
287
|
+
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
288
288
|
prompt: string;
|
|
289
289
|
allowUserPrompt: boolean;
|
|
290
|
-
|
|
290
|
+
order: number;
|
|
291
291
|
params?: Record<string, any> | undefined;
|
|
292
|
-
createdAt?: string | Date | undefined;
|
|
293
|
-
updatedAt?: string | Date | undefined;
|
|
294
|
-
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
295
292
|
preview?: Record<string, any> | undefined;
|
|
296
293
|
placeholder?: string | null | undefined;
|
|
294
|
+
groupId: string;
|
|
295
|
+
createdAt?: string | Date | undefined;
|
|
296
|
+
updatedAt?: string | Date | undefined;
|
|
297
297
|
}>, "many">;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
299
299
|
uuid: string;
|
|
300
300
|
title: string;
|
|
301
|
-
order: number;
|
|
302
301
|
icons: {
|
|
303
302
|
light: {
|
|
304
303
|
png?: string | undefined;
|
|
@@ -309,25 +308,25 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
309
308
|
svg?: string | undefined;
|
|
310
309
|
};
|
|
311
310
|
};
|
|
311
|
+
order: number;
|
|
312
312
|
prompts: {
|
|
313
313
|
uuid: string;
|
|
314
|
-
description: string;
|
|
315
314
|
title: string;
|
|
316
|
-
|
|
315
|
+
description: string;
|
|
316
|
+
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
317
317
|
prompt: string;
|
|
318
318
|
allowUserPrompt: boolean;
|
|
319
|
-
|
|
319
|
+
order: number;
|
|
320
320
|
params?: Record<string, any> | undefined;
|
|
321
|
-
createdAt?: string | Date | undefined;
|
|
322
|
-
updatedAt?: string | Date | undefined;
|
|
323
|
-
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
324
321
|
preview?: Record<string, any> | undefined;
|
|
325
322
|
placeholder?: string | null | undefined;
|
|
323
|
+
groupId: string;
|
|
324
|
+
createdAt?: string | Date | undefined;
|
|
325
|
+
updatedAt?: string | Date | undefined;
|
|
326
326
|
}[];
|
|
327
327
|
}, {
|
|
328
328
|
uuid: string;
|
|
329
329
|
title: string;
|
|
330
|
-
order: number;
|
|
331
330
|
icons: {
|
|
332
331
|
light: {
|
|
333
332
|
png?: string | undefined;
|
|
@@ -338,51 +337,34 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
338
337
|
svg?: string | undefined;
|
|
339
338
|
};
|
|
340
339
|
};
|
|
340
|
+
order: number;
|
|
341
341
|
prompts: {
|
|
342
342
|
uuid: string;
|
|
343
|
-
description: string;
|
|
344
343
|
title: string;
|
|
345
|
-
|
|
344
|
+
description: string;
|
|
345
|
+
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
346
346
|
prompt: string;
|
|
347
347
|
allowUserPrompt: boolean;
|
|
348
|
-
|
|
348
|
+
order: number;
|
|
349
349
|
params?: Record<string, any> | undefined;
|
|
350
|
-
createdAt?: string | Date | undefined;
|
|
351
|
-
updatedAt?: string | Date | undefined;
|
|
352
|
-
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
353
350
|
preview?: Record<string, any> | undefined;
|
|
354
351
|
placeholder?: string | null | undefined;
|
|
352
|
+
groupId: string;
|
|
353
|
+
createdAt?: string | Date | undefined;
|
|
354
|
+
updatedAt?: string | Date | undefined;
|
|
355
355
|
}[];
|
|
356
356
|
}>, "many">;
|
|
357
357
|
}, "strip", z.ZodTypeAny, {
|
|
358
358
|
models: {
|
|
359
359
|
uuid: string;
|
|
360
|
-
status: import("../..").TOOL_MODEL_STATUS;
|
|
361
|
-
params: {
|
|
362
|
-
aspectRatio: Record<string, {
|
|
363
|
-
width: number;
|
|
364
|
-
height: number;
|
|
365
|
-
}>;
|
|
366
|
-
imageAttachment: {
|
|
367
|
-
supported: boolean;
|
|
368
|
-
maxImages: number;
|
|
369
|
-
acceptedTypes: string[];
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
canUse: boolean;
|
|
373
|
-
description: string;
|
|
374
360
|
title: string;
|
|
375
|
-
|
|
376
|
-
value: number;
|
|
377
|
-
condition: {
|
|
378
|
-
withoutSub?: boolean | undefined;
|
|
379
|
-
};
|
|
380
|
-
}[];
|
|
381
|
-
order: number;
|
|
361
|
+
description: string;
|
|
382
362
|
aiModel: string;
|
|
383
363
|
isNew: boolean;
|
|
384
364
|
tierLabel: string;
|
|
385
365
|
pricePerImage: number;
|
|
366
|
+
order: number;
|
|
367
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
386
368
|
icons: {
|
|
387
369
|
light: {
|
|
388
370
|
png?: string | undefined;
|
|
@@ -395,14 +377,31 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
395
377
|
};
|
|
396
378
|
strategy: import("../..").IMAGE_EDITING_STRATEGY;
|
|
397
379
|
maxInputLength: number;
|
|
380
|
+
params: {
|
|
381
|
+
imageAttachment: {
|
|
382
|
+
supported: boolean;
|
|
383
|
+
maxImages: number;
|
|
384
|
+
acceptedTypes: string[];
|
|
385
|
+
};
|
|
386
|
+
aspectRatio: Record<string, {
|
|
387
|
+
width: number;
|
|
388
|
+
height: number;
|
|
389
|
+
}>;
|
|
390
|
+
};
|
|
391
|
+
pricingRules: {
|
|
392
|
+
condition: {
|
|
393
|
+
withoutSub?: boolean | undefined;
|
|
394
|
+
};
|
|
395
|
+
value: number;
|
|
396
|
+
}[];
|
|
397
|
+
canUse: boolean;
|
|
398
|
+
statusCheckEndpoint?: string | null | undefined;
|
|
398
399
|
createdAt?: string | Date | undefined;
|
|
399
400
|
updatedAt?: string | Date | undefined;
|
|
400
|
-
statusCheckEndpoint?: string | null | undefined;
|
|
401
401
|
}[];
|
|
402
402
|
promptGroups: {
|
|
403
403
|
uuid: string;
|
|
404
404
|
title: string;
|
|
405
|
-
order: number;
|
|
406
405
|
icons: {
|
|
407
406
|
light: {
|
|
408
407
|
png?: string | undefined;
|
|
@@ -413,51 +412,34 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
413
412
|
svg?: string | undefined;
|
|
414
413
|
};
|
|
415
414
|
};
|
|
415
|
+
order: number;
|
|
416
416
|
prompts: {
|
|
417
417
|
uuid: string;
|
|
418
|
-
description: string;
|
|
419
418
|
title: string;
|
|
420
|
-
|
|
419
|
+
description: string;
|
|
420
|
+
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
421
421
|
prompt: string;
|
|
422
422
|
allowUserPrompt: boolean;
|
|
423
|
-
|
|
423
|
+
order: number;
|
|
424
424
|
params?: Record<string, any> | undefined;
|
|
425
|
-
createdAt?: string | Date | undefined;
|
|
426
|
-
updatedAt?: string | Date | undefined;
|
|
427
|
-
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
428
425
|
preview?: Record<string, any> | undefined;
|
|
429
426
|
placeholder?: string | null | undefined;
|
|
427
|
+
groupId: string;
|
|
428
|
+
createdAt?: string | Date | undefined;
|
|
429
|
+
updatedAt?: string | Date | undefined;
|
|
430
430
|
}[];
|
|
431
431
|
}[];
|
|
432
432
|
}, {
|
|
433
433
|
models: {
|
|
434
434
|
uuid: string;
|
|
435
|
-
status: import("../..").TOOL_MODEL_STATUS;
|
|
436
|
-
params: {
|
|
437
|
-
aspectRatio: Record<string, {
|
|
438
|
-
width: number;
|
|
439
|
-
height: number;
|
|
440
|
-
}>;
|
|
441
|
-
imageAttachment: {
|
|
442
|
-
supported: boolean;
|
|
443
|
-
maxImages: number;
|
|
444
|
-
acceptedTypes: string[];
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
canUse: boolean;
|
|
448
|
-
description: string;
|
|
449
435
|
title: string;
|
|
450
|
-
|
|
451
|
-
value: number;
|
|
452
|
-
condition: {
|
|
453
|
-
withoutSub?: boolean | undefined;
|
|
454
|
-
};
|
|
455
|
-
}[];
|
|
456
|
-
order: number;
|
|
436
|
+
description: string;
|
|
457
437
|
aiModel: string;
|
|
458
438
|
isNew: boolean;
|
|
459
439
|
tierLabel: string;
|
|
460
440
|
pricePerImage: number;
|
|
441
|
+
order: number;
|
|
442
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
461
443
|
icons: {
|
|
462
444
|
light: {
|
|
463
445
|
png?: string | undefined;
|
|
@@ -470,14 +452,31 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
470
452
|
};
|
|
471
453
|
strategy: import("../..").IMAGE_EDITING_STRATEGY;
|
|
472
454
|
maxInputLength: number;
|
|
455
|
+
params: {
|
|
456
|
+
imageAttachment: {
|
|
457
|
+
supported: boolean;
|
|
458
|
+
maxImages: number;
|
|
459
|
+
acceptedTypes: string[];
|
|
460
|
+
};
|
|
461
|
+
aspectRatio: Record<string, {
|
|
462
|
+
width: number;
|
|
463
|
+
height: number;
|
|
464
|
+
}>;
|
|
465
|
+
};
|
|
466
|
+
pricingRules: {
|
|
467
|
+
condition: {
|
|
468
|
+
withoutSub?: boolean | undefined;
|
|
469
|
+
};
|
|
470
|
+
value: number;
|
|
471
|
+
}[];
|
|
472
|
+
canUse: boolean;
|
|
473
|
+
statusCheckEndpoint?: string | null | undefined;
|
|
473
474
|
createdAt?: string | Date | undefined;
|
|
474
475
|
updatedAt?: string | Date | undefined;
|
|
475
|
-
statusCheckEndpoint?: string | null | undefined;
|
|
476
476
|
}[];
|
|
477
477
|
promptGroups: {
|
|
478
478
|
uuid: string;
|
|
479
479
|
title: string;
|
|
480
|
-
order: number;
|
|
481
480
|
icons: {
|
|
482
481
|
light: {
|
|
483
482
|
png?: string | undefined;
|
|
@@ -488,20 +487,21 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
488
487
|
svg?: string | undefined;
|
|
489
488
|
};
|
|
490
489
|
};
|
|
490
|
+
order: number;
|
|
491
491
|
prompts: {
|
|
492
492
|
uuid: string;
|
|
493
|
-
description: string;
|
|
494
493
|
title: string;
|
|
495
|
-
|
|
494
|
+
description: string;
|
|
495
|
+
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
496
496
|
prompt: string;
|
|
497
497
|
allowUserPrompt: boolean;
|
|
498
|
-
|
|
498
|
+
order: number;
|
|
499
499
|
params?: Record<string, any> | undefined;
|
|
500
|
-
createdAt?: string | Date | undefined;
|
|
501
|
-
updatedAt?: string | Date | undefined;
|
|
502
|
-
strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
|
|
503
500
|
preview?: Record<string, any> | undefined;
|
|
504
501
|
placeholder?: string | null | undefined;
|
|
502
|
+
groupId: string;
|
|
503
|
+
createdAt?: string | Date | undefined;
|
|
504
|
+
updatedAt?: string | Date | undefined;
|
|
505
505
|
}[];
|
|
506
506
|
}[];
|
|
507
507
|
}>;
|
|
@@ -10,18 +10,18 @@ export declare const ImageEditorJobParamsSchema: z.ZodObject<{
|
|
|
10
10
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
uuid: string;
|
|
13
|
-
type: import("../..").FILE_TYPE;
|
|
14
|
-
name: string;
|
|
15
13
|
url: string;
|
|
14
|
+
name: string;
|
|
16
15
|
mimeType: string;
|
|
16
|
+
type: import("../..").FILE_TYPE;
|
|
17
17
|
size: number;
|
|
18
18
|
duration?: number | null | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
uuid: string;
|
|
21
|
-
type: import("../..").FILE_TYPE;
|
|
22
|
-
name: string;
|
|
23
21
|
url: string;
|
|
22
|
+
name: string;
|
|
24
23
|
mimeType: string;
|
|
24
|
+
type: import("../..").FILE_TYPE;
|
|
25
25
|
size: number;
|
|
26
26
|
duration?: number | null | undefined;
|
|
27
27
|
}>, "many">>;
|
|
@@ -30,32 +30,32 @@ export declare const ImageEditorJobParamsSchema: z.ZodObject<{
|
|
|
30
30
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
31
31
|
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
aspectRatio?: string | undefined;
|
|
34
33
|
attachedFiles?: {
|
|
35
34
|
uuid: string;
|
|
36
|
-
type: import("../..").FILE_TYPE;
|
|
37
|
-
name: string;
|
|
38
35
|
url: string;
|
|
36
|
+
name: string;
|
|
39
37
|
mimeType: string;
|
|
38
|
+
type: import("../..").FILE_TYPE;
|
|
40
39
|
size: number;
|
|
41
40
|
duration?: number | null | undefined;
|
|
42
41
|
}[] | undefined;
|
|
43
42
|
imageUrls?: string[] | undefined;
|
|
44
43
|
systemPromptId?: string | undefined;
|
|
44
|
+
aspectRatio?: string | undefined;
|
|
45
45
|
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
46
46
|
}, {
|
|
47
|
-
aspectRatio?: string | undefined;
|
|
48
47
|
attachedFiles?: {
|
|
49
48
|
uuid: string;
|
|
50
|
-
type: import("../..").FILE_TYPE;
|
|
51
|
-
name: string;
|
|
52
49
|
url: string;
|
|
50
|
+
name: string;
|
|
53
51
|
mimeType: string;
|
|
52
|
+
type: import("../..").FILE_TYPE;
|
|
54
53
|
size: number;
|
|
55
54
|
duration?: number | null | undefined;
|
|
56
55
|
}[] | undefined;
|
|
57
56
|
imageUrls?: string[] | undefined;
|
|
58
57
|
systemPromptId?: string | undefined;
|
|
58
|
+
aspectRatio?: string | undefined;
|
|
59
59
|
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
60
60
|
}>;
|
|
61
61
|
export type ImageEditorJobParams = z.infer<typeof ImageEditorJobParamsSchema>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ImageEditorJobRequestParamsSchema: z.ZodObject<{
|
|
3
|
-
imageUrls: z.
|
|
3
|
+
imageUrls: z.ZodArray<z.ZodString, "many">;
|
|
4
4
|
systemPromptId: z.ZodOptional<z.ZodString>;
|
|
5
5
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
imageUrls: string[];
|
|
8
|
-
aspectRatio?: string | undefined;
|
|
9
8
|
systemPromptId?: string | undefined;
|
|
10
|
-
}, {
|
|
11
9
|
aspectRatio?: string | undefined;
|
|
12
|
-
|
|
10
|
+
}, {
|
|
11
|
+
imageUrls: string[];
|
|
13
12
|
systemPromptId?: string | undefined;
|
|
13
|
+
aspectRatio?: string | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type ImageEditorJobRequestParams = z.infer<typeof ImageEditorJobRequestParamsSchema>;
|
|
16
16
|
//# sourceMappingURL=image-editor-job-request-params.schema.d.ts.map
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ImageEditorJobRequestParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.ImageEditorJobRequestParamsSchema = zod_1.z.object({
|
|
6
|
-
imageUrls: zod_1.z.array(zod_1.z.string().uuid()).
|
|
6
|
+
imageUrls: zod_1.z.array(zod_1.z.string().uuid()).min(1),
|
|
7
7
|
systemPromptId: zod_1.z.string().uuid().optional(),
|
|
8
8
|
aspectRatio: zod_1.z.string().optional(),
|
|
9
9
|
});
|