@purpleschool/multisite 0.0.27 → 0.0.29

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