@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,17 +76,17 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
76
76
  }>;
77
77
  value: z.ZodNumber;
78
78
  }, "strip", z.ZodTypeAny, {
79
- value: number;
80
79
  condition: {
81
80
  resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
82
81
  withoutSub?: boolean | undefined;
83
82
  };
84
- }, {
85
83
  value: number;
84
+ }, {
86
85
  condition: {
87
86
  resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
88
87
  withoutSub?: boolean | undefined;
89
88
  };
89
+ value: number;
90
90
  }>, "many">;
91
91
  params: z.ZodObject<{
92
92
  aspectRatio: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -108,19 +108,19 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
108
108
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
109
109
  }>>;
110
110
  }, "strip", z.ZodTypeAny, {
111
- aspectRatio: Record<string, {
111
+ aspectRatio: Record<string, "auto" | {
112
112
  width: number;
113
113
  height: number;
114
- } | "auto">;
114
+ }>;
115
115
  quality?: string | Record<string, string> | undefined;
116
116
  resolution?: {
117
117
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
118
118
  } | undefined;
119
119
  }, {
120
- aspectRatio: Record<string, {
120
+ aspectRatio: Record<string, "auto" | {
121
121
  width: number;
122
122
  height: number;
123
- } | "auto">;
123
+ }>;
124
124
  quality?: string | Record<string, string> | undefined;
125
125
  resolution?: {
126
126
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
@@ -177,35 +177,36 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
177
177
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
178
178
  updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
179
179
  }, "strip", z.ZodTypeAny, {
180
- price: number;
181
180
  uuid: string;
182
- status: import("../..").TOOL_MODEL_STATUS;
183
- params: {
184
- aspectRatio: Record<string, {
185
- width: number;
186
- height: number;
187
- } | "auto">;
188
- quality?: string | Record<string, string> | undefined;
189
- resolution?: {
190
- options: import("../..").IMAGE_GENERATION_RESOLUTION[];
191
- } | undefined;
192
- };
181
+ title: string;
182
+ model: string;
183
+ description: string;
184
+ price: number;
185
+ canUse: boolean;
193
186
  unlockedBy: {
194
187
  uuid: string;
195
188
  name: string;
196
189
  } | null;
197
- canUse: boolean;
198
- description: string;
199
- title: string;
200
- model: string;
201
190
  tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
202
191
  pricingRules: {
203
- value: number;
204
192
  condition: {
205
193
  resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
206
194
  withoutSub?: boolean | undefined;
207
195
  };
196
+ value: number;
208
197
  }[];
198
+ params: {
199
+ aspectRatio: Record<string, "auto" | {
200
+ width: number;
201
+ height: number;
202
+ }>;
203
+ quality?: string | Record<string, string> | undefined;
204
+ resolution?: {
205
+ options: import("../..").IMAGE_GENERATION_RESOLUTION[];
206
+ } | undefined;
207
+ };
208
+ status: import("../..").TOOL_MODEL_STATUS;
209
+ statusCheckEndpoint?: string | null | undefined;
209
210
  maxPromptLength: number;
210
211
  iconVariants: {
211
212
  light: {
@@ -224,37 +225,37 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
224
225
  vendorId: string;
225
226
  createdAt?: string | Date | undefined;
226
227
  updatedAt?: string | Date | undefined;
227
- statusCheckEndpoint?: string | null | undefined;
228
228
  }, {
229
- price: number;
230
229
  uuid: string;
231
- status: import("../..").TOOL_MODEL_STATUS;
232
- params: {
233
- aspectRatio: Record<string, {
234
- width: number;
235
- height: number;
236
- } | "auto">;
237
- quality?: string | Record<string, string> | undefined;
238
- resolution?: {
239
- options: import("../..").IMAGE_GENERATION_RESOLUTION[];
240
- } | undefined;
241
- };
230
+ title: string;
231
+ model: string;
232
+ description: string;
233
+ price: number;
234
+ canUse: boolean;
242
235
  unlockedBy: {
243
236
  uuid: string;
244
237
  name: string;
245
238
  } | null;
246
- canUse: boolean;
247
- description: string;
248
- title: string;
249
- model: string;
250
239
  tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
251
240
  pricingRules: {
252
- value: number;
253
241
  condition: {
254
242
  resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
255
243
  withoutSub?: boolean | undefined;
256
244
  };
245
+ value: number;
257
246
  }[];
247
+ params: {
248
+ aspectRatio: Record<string, "auto" | {
249
+ width: number;
250
+ height: number;
251
+ }>;
252
+ quality?: string | Record<string, string> | undefined;
253
+ resolution?: {
254
+ options: import("../..").IMAGE_GENERATION_RESOLUTION[];
255
+ } | undefined;
256
+ };
257
+ status: import("../..").TOOL_MODEL_STATUS;
258
+ statusCheckEndpoint?: string | null | undefined;
258
259
  maxPromptLength: number;
259
260
  iconVariants: {
260
261
  light: {
@@ -273,11 +274,11 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
273
274
  vendorId: string;
274
275
  createdAt?: string | Date | undefined;
275
276
  updatedAt?: string | Date | undefined;
276
- statusCheckEndpoint?: string | null | undefined;
277
277
  }>, "many">;
278
278
  }, "strip", z.ZodTypeAny, {
279
279
  uuid: string;
280
280
  title: string;
281
+ order: number;
281
282
  iconVariants: {
282
283
  light: {
283
284
  png?: string | undefined;
@@ -288,37 +289,37 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
288
289
  svg?: string | undefined;
289
290
  };
290
291
  };
291
- order: number;
292
292
  models: {
293
- price: number;
294
293
  uuid: string;
295
- status: import("../..").TOOL_MODEL_STATUS;
296
- params: {
297
- aspectRatio: Record<string, {
298
- width: number;
299
- height: number;
300
- } | "auto">;
301
- quality?: string | Record<string, string> | undefined;
302
- resolution?: {
303
- options: import("../..").IMAGE_GENERATION_RESOLUTION[];
304
- } | undefined;
305
- };
294
+ title: string;
295
+ model: string;
296
+ description: string;
297
+ price: number;
298
+ canUse: boolean;
306
299
  unlockedBy: {
307
300
  uuid: string;
308
301
  name: string;
309
302
  } | null;
310
- canUse: boolean;
311
- description: string;
312
- title: string;
313
- model: string;
314
303
  tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
315
304
  pricingRules: {
316
- value: number;
317
305
  condition: {
318
306
  resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
319
307
  withoutSub?: boolean | undefined;
320
308
  };
309
+ value: number;
321
310
  }[];
311
+ params: {
312
+ aspectRatio: Record<string, "auto" | {
313
+ width: number;
314
+ height: number;
315
+ }>;
316
+ quality?: string | Record<string, string> | undefined;
317
+ resolution?: {
318
+ options: import("../..").IMAGE_GENERATION_RESOLUTION[];
319
+ } | undefined;
320
+ };
321
+ status: import("../..").TOOL_MODEL_STATUS;
322
+ statusCheckEndpoint?: string | null | undefined;
322
323
  maxPromptLength: number;
323
324
  iconVariants: {
324
325
  light: {
@@ -337,11 +338,11 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
337
338
  vendorId: string;
338
339
  createdAt?: string | Date | undefined;
339
340
  updatedAt?: string | Date | undefined;
340
- statusCheckEndpoint?: string | null | undefined;
341
341
  }[];
342
342
  }, {
343
343
  uuid: string;
344
344
  title: string;
345
+ order: number;
345
346
  iconVariants: {
346
347
  light: {
347
348
  png?: string | undefined;
@@ -352,37 +353,37 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
352
353
  svg?: string | undefined;
353
354
  };
354
355
  };
355
- order: number;
356
356
  models: {
357
- price: number;
358
357
  uuid: string;
359
- status: import("../..").TOOL_MODEL_STATUS;
360
- params: {
361
- aspectRatio: Record<string, {
362
- width: number;
363
- height: number;
364
- } | "auto">;
365
- quality?: string | Record<string, string> | undefined;
366
- resolution?: {
367
- options: import("../..").IMAGE_GENERATION_RESOLUTION[];
368
- } | undefined;
369
- };
358
+ title: string;
359
+ model: string;
360
+ description: string;
361
+ price: number;
362
+ canUse: boolean;
370
363
  unlockedBy: {
371
364
  uuid: string;
372
365
  name: string;
373
366
  } | null;
374
- canUse: boolean;
375
- description: string;
376
- title: string;
377
- model: string;
378
367
  tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
379
368
  pricingRules: {
380
- value: number;
381
369
  condition: {
382
370
  resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
383
371
  withoutSub?: boolean | undefined;
384
372
  };
373
+ value: number;
385
374
  }[];
375
+ params: {
376
+ aspectRatio: Record<string, "auto" | {
377
+ width: number;
378
+ height: number;
379
+ }>;
380
+ quality?: string | Record<string, string> | undefined;
381
+ resolution?: {
382
+ options: import("../..").IMAGE_GENERATION_RESOLUTION[];
383
+ } | undefined;
384
+ };
385
+ status: import("../..").TOOL_MODEL_STATUS;
386
+ statusCheckEndpoint?: string | null | undefined;
386
387
  maxPromptLength: number;
387
388
  iconVariants: {
388
389
  light: {
@@ -401,7 +402,6 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
401
402
  vendorId: string;
402
403
  createdAt?: string | Date | undefined;
403
404
  updatedAt?: string | Date | undefined;
404
- statusCheckEndpoint?: string | null | undefined;
405
405
  }[];
406
406
  }>, "many">;
407
407
  presets: z.ZodArray<z.ZodObject<{
@@ -412,18 +412,19 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
412
412
  }, "strip", z.ZodTypeAny, {
413
413
  uuid: string;
414
414
  title: string;
415
- order: number;
416
415
  sample: string;
416
+ order: number;
417
417
  }, {
418
418
  uuid: string;
419
419
  title: string;
420
- order: number;
421
420
  sample: string;
421
+ order: number;
422
422
  }>, "many">;
423
423
  }, "strip", z.ZodTypeAny, {
424
424
  vendors: {
425
425
  uuid: string;
426
426
  title: string;
427
+ order: number;
427
428
  iconVariants: {
428
429
  light: {
429
430
  png?: string | undefined;
@@ -434,37 +435,37 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
434
435
  svg?: string | undefined;
435
436
  };
436
437
  };
437
- order: number;
438
438
  models: {
439
- price: number;
440
439
  uuid: string;
441
- status: import("../..").TOOL_MODEL_STATUS;
442
- params: {
443
- aspectRatio: Record<string, {
444
- width: number;
445
- height: number;
446
- } | "auto">;
447
- quality?: string | Record<string, string> | undefined;
448
- resolution?: {
449
- options: import("../..").IMAGE_GENERATION_RESOLUTION[];
450
- } | undefined;
451
- };
440
+ title: string;
441
+ model: string;
442
+ description: string;
443
+ price: number;
444
+ canUse: boolean;
452
445
  unlockedBy: {
453
446
  uuid: string;
454
447
  name: string;
455
448
  } | null;
456
- canUse: boolean;
457
- description: string;
458
- title: string;
459
- model: string;
460
449
  tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
461
450
  pricingRules: {
462
- value: number;
463
451
  condition: {
464
452
  resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
465
453
  withoutSub?: boolean | undefined;
466
454
  };
455
+ value: number;
467
456
  }[];
457
+ params: {
458
+ aspectRatio: Record<string, "auto" | {
459
+ width: number;
460
+ height: number;
461
+ }>;
462
+ quality?: string | Record<string, string> | undefined;
463
+ resolution?: {
464
+ options: import("../..").IMAGE_GENERATION_RESOLUTION[];
465
+ } | undefined;
466
+ };
467
+ status: import("../..").TOOL_MODEL_STATUS;
468
+ statusCheckEndpoint?: string | null | undefined;
468
469
  maxPromptLength: number;
469
470
  iconVariants: {
470
471
  light: {
@@ -483,19 +484,19 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
483
484
  vendorId: string;
484
485
  createdAt?: string | Date | undefined;
485
486
  updatedAt?: string | Date | undefined;
486
- statusCheckEndpoint?: string | null | undefined;
487
487
  }[];
488
488
  }[];
489
489
  presets: {
490
490
  uuid: string;
491
491
  title: string;
492
- order: number;
493
492
  sample: string;
493
+ order: number;
494
494
  }[];
495
495
  }, {
496
496
  vendors: {
497
497
  uuid: string;
498
498
  title: string;
499
+ order: number;
499
500
  iconVariants: {
500
501
  light: {
501
502
  png?: string | undefined;
@@ -506,37 +507,37 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
506
507
  svg?: string | undefined;
507
508
  };
508
509
  };
509
- order: number;
510
510
  models: {
511
- price: number;
512
511
  uuid: string;
513
- status: import("../..").TOOL_MODEL_STATUS;
514
- params: {
515
- aspectRatio: Record<string, {
516
- width: number;
517
- height: number;
518
- } | "auto">;
519
- quality?: string | Record<string, string> | undefined;
520
- resolution?: {
521
- options: import("../..").IMAGE_GENERATION_RESOLUTION[];
522
- } | undefined;
523
- };
512
+ title: string;
513
+ model: string;
514
+ description: string;
515
+ price: number;
516
+ canUse: boolean;
524
517
  unlockedBy: {
525
518
  uuid: string;
526
519
  name: string;
527
520
  } | null;
528
- canUse: boolean;
529
- description: string;
530
- title: string;
531
- model: string;
532
521
  tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
533
522
  pricingRules: {
534
- value: number;
535
523
  condition: {
536
524
  resolution?: import("../..").IMAGE_GENERATION_RESOLUTION | undefined;
537
525
  withoutSub?: boolean | undefined;
538
526
  };
527
+ value: number;
539
528
  }[];
529
+ params: {
530
+ aspectRatio: Record<string, "auto" | {
531
+ width: number;
532
+ height: number;
533
+ }>;
534
+ quality?: string | Record<string, string> | undefined;
535
+ resolution?: {
536
+ options: import("../..").IMAGE_GENERATION_RESOLUTION[];
537
+ } | undefined;
538
+ };
539
+ status: import("../..").TOOL_MODEL_STATUS;
540
+ statusCheckEndpoint?: string | null | undefined;
540
541
  maxPromptLength: number;
541
542
  iconVariants: {
542
543
  light: {
@@ -555,14 +556,13 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
555
556
  vendorId: string;
556
557
  createdAt?: string | Date | undefined;
557
558
  updatedAt?: string | Date | undefined;
558
- statusCheckEndpoint?: string | null | undefined;
559
559
  }[];
560
560
  }[];
561
561
  presets: {
562
562
  uuid: string;
563
563
  title: string;
564
- order: number;
565
564
  sample: string;
565
+ order: number;
566
566
  }[];
567
567
  }>;
568
568
  export type ImageGenerationConfig = z.infer<typeof ImageGenerationConfigSchema>;
@@ -6,13 +6,13 @@ export declare const ImageGenerationJobAttemptSchema: z.ZodObject<{
6
6
  error: z.ZodNullable<z.ZodString>;
7
7
  timestamp: z.ZodUnion<[z.ZodString, z.ZodDate]>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- status: JOB_STATUS;
10
9
  order: number;
10
+ status: JOB_STATUS;
11
11
  error: string | null;
12
12
  timestamp: string | Date;
13
13
  }, {
14
- status: JOB_STATUS;
15
14
  order: number;
15
+ status: JOB_STATUS;
16
16
  error: string | null;
17
17
  timestamp: string | Date;
18
18
  }>;
@@ -12,18 +12,18 @@ export declare const ImageGenerationJobParamsSchema: z.ZodObject<{
12
12
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  uuid: string;
15
- type: import("../..").FILE_TYPE;
16
- name: string;
17
15
  url: string;
16
+ name: string;
18
17
  mimeType: string;
18
+ type: import("../..").FILE_TYPE;
19
19
  size: number;
20
20
  duration?: number | null | undefined;
21
21
  }, {
22
22
  uuid: string;
23
- type: import("../..").FILE_TYPE;
24
- name: string;
25
23
  url: string;
24
+ name: string;
26
25
  mimeType: string;
26
+ type: import("../..").FILE_TYPE;
27
27
  size: number;
28
28
  duration?: number | null | undefined;
29
29
  }>, "many">>>;
@@ -33,10 +33,10 @@ export declare const ImageGenerationJobParamsSchema: z.ZodObject<{
33
33
  aspectRatio: string;
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
  }[];
@@ -44,17 +44,17 @@ export declare const ImageGenerationJobParamsSchema: z.ZodObject<{
44
44
  resolution?: IMAGE_GENERATION_RESOLUTION | undefined;
45
45
  }, {
46
46
  aspectRatio: string;
47
- resolution?: IMAGE_GENERATION_RESOLUTION | 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
  enhancePrompt?: boolean | undefined;
57
+ resolution?: IMAGE_GENERATION_RESOLUTION | undefined;
58
58
  }>;
59
59
  export type ImageGenerationJobParams = z.infer<typeof ImageGenerationJobParamsSchema>;
60
60
  //# sourceMappingURL=image-generation-job-params.schema.d.ts.map
@@ -12,9 +12,9 @@ export declare const ImageGenerationJobRequestParamsSchema: z.ZodObject<{
12
12
  resolution?: IMAGE_GENERATION_RESOLUTION | undefined;
13
13
  }, {
14
14
  aspectRatio: string;
15
- resolution?: IMAGE_GENERATION_RESOLUTION | undefined;
16
15
  attachedFiles?: string[] | undefined;
17
16
  enhancePrompt?: boolean | undefined;
17
+ resolution?: IMAGE_GENERATION_RESOLUTION | undefined;
18
18
  }>;
19
19
  export type ImageGenerationJobRequestParams = z.infer<typeof ImageGenerationJobRequestParamsSchema>;
20
20
  //# sourceMappingURL=image-generation-job-request-params.schema.d.ts.map