@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
@@ -4,34 +4,39 @@ export declare namespace ExecuteImageEditorCommand {
4
4
  modelId: z.ZodString;
5
5
  prompt: z.ZodString;
6
6
  params: z.ZodObject<{
7
- imageUrls: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7
+ imageUrls: z.ZodArray<z.ZodString, "many">;
8
8
  systemPromptId: z.ZodOptional<z.ZodString>;
9
9
  aspectRatio: z.ZodOptional<z.ZodString>;
10
+ resolution: z.ZodOptional<z.ZodString>;
10
11
  }, "strip", z.ZodTypeAny, {
11
12
  imageUrls: string[];
12
- aspectRatio?: string | undefined;
13
13
  systemPromptId?: string | undefined;
14
- }, {
15
14
  aspectRatio?: string | undefined;
16
- imageUrls?: string[] | undefined;
15
+ resolution?: string | undefined;
16
+ }, {
17
+ imageUrls: string[];
17
18
  systemPromptId?: string | undefined;
19
+ aspectRatio?: string | undefined;
20
+ resolution?: string | undefined;
18
21
  }>;
19
22
  }, "strip", z.ZodTypeAny, {
23
+ modelId: string;
24
+ prompt: string;
20
25
  params: {
21
26
  imageUrls: string[];
22
- aspectRatio?: string | undefined;
23
27
  systemPromptId?: string | undefined;
28
+ aspectRatio?: string | undefined;
29
+ resolution?: string | undefined;
24
30
  };
31
+ }, {
25
32
  modelId: string;
26
33
  prompt: string;
27
- }, {
28
34
  params: {
29
- aspectRatio?: string | undefined;
30
- imageUrls?: string[] | undefined;
35
+ imageUrls: string[];
31
36
  systemPromptId?: string | undefined;
37
+ aspectRatio?: string | undefined;
38
+ resolution?: string | undefined;
32
39
  };
33
- modelId: string;
34
- prompt: string;
35
40
  }>;
36
41
  type Request = z.infer<typeof RequestSchema>;
37
42
  const ResponseSchema: z.ZodObject<{
@@ -58,52 +63,55 @@ export declare namespace ExecuteImageEditorCommand {
58
63
  duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
59
64
  }, "strip", z.ZodTypeAny, {
60
65
  uuid: string;
61
- type: import("../..").FILE_TYPE;
62
- name: string;
63
66
  url: string;
67
+ name: string;
64
68
  mimeType: string;
69
+ type: import("../..").FILE_TYPE;
65
70
  size: number;
66
71
  duration?: number | null | undefined;
67
72
  }, {
68
73
  uuid: string;
69
- type: import("../..").FILE_TYPE;
70
- name: string;
71
74
  url: string;
75
+ name: string;
72
76
  mimeType: string;
77
+ type: import("../..").FILE_TYPE;
73
78
  size: number;
74
79
  duration?: number | null | undefined;
75
80
  }>, "many">>;
76
81
  imageUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
82
  systemPromptId: z.ZodOptional<z.ZodString>;
78
83
  aspectRatio: z.ZodOptional<z.ZodString>;
84
+ resolution: z.ZodOptional<z.ZodString>;
79
85
  userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
80
86
  }, "strip", z.ZodTypeAny, {
81
- aspectRatio?: string | undefined;
82
87
  attachedFiles?: {
83
88
  uuid: string;
84
- type: import("../..").FILE_TYPE;
85
- name: string;
86
89
  url: string;
90
+ name: string;
87
91
  mimeType: string;
92
+ type: import("../..").FILE_TYPE;
88
93
  size: number;
89
94
  duration?: number | null | undefined;
90
95
  }[] | undefined;
91
96
  imageUrls?: string[] | undefined;
92
97
  systemPromptId?: string | undefined;
98
+ aspectRatio?: string | undefined;
99
+ resolution?: string | undefined;
93
100
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
94
101
  }, {
95
- aspectRatio?: string | undefined;
96
102
  attachedFiles?: {
97
103
  uuid: string;
98
- type: import("../..").FILE_TYPE;
99
- name: string;
100
104
  url: string;
105
+ name: string;
101
106
  mimeType: string;
107
+ type: import("../..").FILE_TYPE;
102
108
  size: number;
103
109
  duration?: number | null | undefined;
104
110
  }[] | undefined;
105
111
  imageUrls?: string[] | undefined;
106
112
  systemPromptId?: string | undefined;
113
+ aspectRatio?: string | undefined;
114
+ resolution?: string | undefined;
107
115
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
108
116
  }>;
109
117
  imageUrls: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -117,157 +125,161 @@ export declare namespace ExecuteImageEditorCommand {
117
125
  completedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
118
126
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
119
127
  }, "strip", z.ZodTypeAny, {
120
- price: number;
121
128
  uuid: string;
129
+ prompt: string;
130
+ reaction: import("../..").USER_REACTION | null;
131
+ dislikeReason: string | null;
132
+ externalId: string | null;
133
+ title: string;
122
134
  status: import("../..").JOB_STATUS;
135
+ error: string | null;
136
+ internalError?: string | null | undefined;
137
+ modelId: string;
138
+ price: number;
123
139
  params: {
124
- aspectRatio?: string | undefined;
125
140
  attachedFiles?: {
126
141
  uuid: string;
127
- type: import("../..").FILE_TYPE;
128
- name: string;
129
142
  url: string;
143
+ name: string;
130
144
  mimeType: string;
145
+ type: import("../..").FILE_TYPE;
131
146
  size: number;
132
147
  duration?: number | null | undefined;
133
148
  }[] | undefined;
134
149
  imageUrls?: string[] | undefined;
135
150
  systemPromptId?: string | undefined;
151
+ aspectRatio?: string | undefined;
152
+ resolution?: string | undefined;
136
153
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
137
154
  };
138
- createdAt: string | Date;
139
- updatedAt: string | Date;
140
- title: string;
141
- error: string | null;
142
- modelId: string;
143
- prompt: string;
144
- reaction: import("../..").USER_REACTION | null;
145
- dislikeReason: string | null;
146
- externalId: string | null;
147
- attempts: any[];
148
- isDeleted: boolean;
149
155
  imageUrls: string[];
150
- postId: string | null;
156
+ attempts: any[];
151
157
  userId?: string | null | undefined;
152
158
  unregisteredUserId?: string | null | undefined;
153
- internalError?: string | null | undefined;
159
+ postId: string | null;
160
+ isDeleted: boolean;
154
161
  tokenReservationId?: string | null | undefined;
162
+ createdAt: string | Date;
155
163
  completedAt?: string | Date | null | undefined;
164
+ updatedAt: string | Date;
156
165
  }, {
157
- price: number;
158
166
  uuid: string;
167
+ prompt: string;
168
+ reaction: import("../..").USER_REACTION | null;
169
+ dislikeReason: string | null;
170
+ externalId: string | null;
171
+ title: string;
159
172
  status: import("../..").JOB_STATUS;
173
+ error: string | null;
174
+ internalError?: string | null | undefined;
175
+ modelId: string;
176
+ price: number;
160
177
  params: {
161
- aspectRatio?: string | undefined;
162
178
  attachedFiles?: {
163
179
  uuid: string;
164
- type: import("../..").FILE_TYPE;
165
- name: string;
166
180
  url: string;
181
+ name: string;
167
182
  mimeType: string;
183
+ type: import("../..").FILE_TYPE;
168
184
  size: number;
169
185
  duration?: number | null | undefined;
170
186
  }[] | undefined;
171
187
  imageUrls?: string[] | undefined;
172
188
  systemPromptId?: string | undefined;
189
+ aspectRatio?: string | undefined;
190
+ resolution?: string | undefined;
173
191
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
174
192
  };
175
- createdAt: string | Date;
176
- updatedAt: string | Date;
177
- title: string;
178
- error: string | null;
179
- modelId: string;
180
- prompt: string;
181
- reaction: import("../..").USER_REACTION | null;
182
- dislikeReason: string | null;
183
- externalId: string | null;
193
+ imageUrls?: string[] | undefined;
184
194
  attempts: any[];
185
- isDeleted: boolean;
186
- postId: string | null;
187
195
  userId?: string | null | undefined;
188
196
  unregisteredUserId?: string | null | undefined;
189
- internalError?: string | null | undefined;
197
+ postId: string | null;
198
+ isDeleted: boolean;
190
199
  tokenReservationId?: string | null | undefined;
200
+ createdAt: string | Date;
191
201
  completedAt?: string | Date | null | undefined;
192
- imageUrls?: string[] | undefined;
202
+ updatedAt: string | Date;
193
203
  }>;
194
204
  }, "strip", z.ZodTypeAny, {
195
205
  data: {
196
- price: number;
197
206
  uuid: string;
207
+ prompt: string;
208
+ reaction: import("../..").USER_REACTION | null;
209
+ dislikeReason: string | null;
210
+ externalId: string | null;
211
+ title: string;
198
212
  status: import("../..").JOB_STATUS;
213
+ error: string | null;
214
+ internalError?: string | null | undefined;
215
+ modelId: string;
216
+ price: number;
199
217
  params: {
200
- aspectRatio?: string | undefined;
201
218
  attachedFiles?: {
202
219
  uuid: string;
203
- type: import("../..").FILE_TYPE;
204
- name: string;
205
220
  url: string;
221
+ name: string;
206
222
  mimeType: string;
223
+ type: import("../..").FILE_TYPE;
207
224
  size: number;
208
225
  duration?: number | null | undefined;
209
226
  }[] | undefined;
210
227
  imageUrls?: string[] | undefined;
211
228
  systemPromptId?: string | undefined;
229
+ aspectRatio?: string | undefined;
230
+ resolution?: string | undefined;
212
231
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
213
232
  };
214
- createdAt: string | Date;
215
- updatedAt: string | Date;
216
- title: string;
217
- error: string | null;
218
- modelId: string;
219
- prompt: string;
220
- reaction: import("../..").USER_REACTION | null;
221
- dislikeReason: string | null;
222
- externalId: string | null;
223
- attempts: any[];
224
- isDeleted: boolean;
225
233
  imageUrls: string[];
226
- postId: string | null;
234
+ attempts: any[];
227
235
  userId?: string | null | undefined;
228
236
  unregisteredUserId?: string | null | undefined;
229
- internalError?: string | null | undefined;
237
+ postId: string | null;
238
+ isDeleted: boolean;
230
239
  tokenReservationId?: string | null | undefined;
240
+ createdAt: string | Date;
231
241
  completedAt?: string | Date | null | undefined;
242
+ updatedAt: string | Date;
232
243
  };
233
244
  }, {
234
245
  data: {
235
- price: number;
236
246
  uuid: string;
247
+ prompt: string;
248
+ reaction: import("../..").USER_REACTION | null;
249
+ dislikeReason: string | null;
250
+ externalId: string | null;
251
+ title: string;
237
252
  status: import("../..").JOB_STATUS;
253
+ error: string | null;
254
+ internalError?: string | null | undefined;
255
+ modelId: string;
256
+ price: number;
238
257
  params: {
239
- aspectRatio?: string | undefined;
240
258
  attachedFiles?: {
241
259
  uuid: string;
242
- type: import("../..").FILE_TYPE;
243
- name: string;
244
260
  url: string;
261
+ name: string;
245
262
  mimeType: string;
263
+ type: import("../..").FILE_TYPE;
246
264
  size: number;
247
265
  duration?: number | null | undefined;
248
266
  }[] | undefined;
249
267
  imageUrls?: string[] | undefined;
250
268
  systemPromptId?: string | undefined;
269
+ aspectRatio?: string | undefined;
270
+ resolution?: string | undefined;
251
271
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
252
272
  };
253
- createdAt: string | Date;
254
- updatedAt: string | Date;
255
- title: string;
256
- error: string | null;
257
- modelId: string;
258
- prompt: string;
259
- reaction: import("../..").USER_REACTION | null;
260
- dislikeReason: string | null;
261
- externalId: string | null;
273
+ imageUrls?: string[] | undefined;
262
274
  attempts: any[];
263
- isDeleted: boolean;
264
- postId: string | null;
265
275
  userId?: string | null | undefined;
266
276
  unregisteredUserId?: string | null | undefined;
267
- internalError?: string | null | undefined;
277
+ postId: string | null;
278
+ isDeleted: boolean;
268
279
  tokenReservationId?: string | null | undefined;
280
+ createdAt: string | Date;
269
281
  completedAt?: string | Date | null | undefined;
270
- imageUrls?: string[] | undefined;
282
+ updatedAt: string | Date;
271
283
  };
272
284
  }>;
273
285
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"execute-image-editor.command.d.ts","sourceRoot":"","sources":["../../../commands/image-editor/execute-image-editor.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"execute-image-editor.command.d.ts","sourceRoot":"","sources":["../../../commands/image-editor/execute-image-editor.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -6,12 +6,12 @@ export declare namespace ProxyImageEditorCallbackCommand {
6
6
  error: z.ZodOptional<z.ZodString>;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  jobId: string;
9
- error?: string | undefined;
10
9
  imageUrl?: string | undefined;
10
+ error?: string | undefined;
11
11
  }, {
12
12
  jobId: string;
13
- error?: string | undefined;
14
13
  imageUrl?: string | undefined;
14
+ error?: string | undefined;
15
15
  }>;
16
16
  type Request = z.infer<typeof RequestSchema>;
17
17
  const ResponseSchema: z.ZodObject<{
@@ -6,7 +6,7 @@ var ProxyImageEditorCallbackCommand;
6
6
  (function (ProxyImageEditorCallbackCommand) {
7
7
  ProxyImageEditorCallbackCommand.RequestSchema = zod_1.z.object({
8
8
  jobId: zod_1.z.string().min(1),
9
- imageUrl: zod_1.z.string().url().optional(),
9
+ imageUrl: zod_1.z.string().min(1).optional(),
10
10
  error: zod_1.z.string().optional(),
11
11
  });
12
12
  ProxyImageEditorCallbackCommand.ResponseSchema = zod_1.z.object({