@purpleschool/gptbot-tools 0.2.62 → 0.2.63-stage2

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 (204) hide show
  1. package/build/ai-proxy/routes/ai-proxy.routes.d.ts +1 -0
  2. package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
  3. package/build/index.d.ts +3 -3
  4. package/build/index.js +3 -3
  5. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
  6. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
  7. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
  8. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
  9. package/build/photo-sessions/commands/admin/index.d.ts +3 -0
  10. package/build/{sound-generation/queries → photo-sessions/commands/admin}/index.js +3 -3
  11. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
  12. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
  13. package/build/{sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts → photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts} +2 -2
  14. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
  15. package/build/{sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts → photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts} +2 -2
  16. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
  17. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +85 -0
  18. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +29 -0
  19. package/build/photo-sessions/commands/index.d.ts +10 -0
  20. package/build/{sound-generation → photo-sessions}/commands/index.js +10 -8
  21. package/build/photo-sessions/commands/photo-sessions.command.d.ts +305 -0
  22. package/build/photo-sessions/commands/photo-sessions.command.js +38 -0
  23. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +266 -0
  24. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +20 -0
  25. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +203 -0
  26. package/build/{sound-generation/commands/set-reaction-to-sound-generation-job.command.js → photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js} +8 -8
  27. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +201 -0
  28. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
  29. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +239 -0
  30. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
  31. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +206 -0
  32. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
  33. package/build/photo-sessions/enums/index.d.ts +3 -0
  34. package/build/{sound-generation/routes → photo-sessions/enums}/index.js +3 -1
  35. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +7 -0
  36. package/build/photo-sessions/enums/photo-session-group-status.enum.js +11 -0
  37. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  38. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  39. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  40. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  41. package/build/photo-sessions/models/index.d.ts +5 -0
  42. package/build/photo-sessions/models/index.js +21 -0
  43. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  44. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  45. package/build/photo-sessions/models/photo-session-group.schema.d.ts +116 -0
  46. package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
  47. package/build/photo-sessions/models/photo-session-job.schema.d.ts +169 -0
  48. package/build/photo-sessions/models/photo-session-job.schema.js +51 -0
  49. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  50. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  51. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  52. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  53. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  54. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  55. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  56. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  57. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +238 -0
  58. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
  59. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +257 -0
  60. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
  61. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  62. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  63. package/build/photo-sessions/queries/index.d.ts +5 -0
  64. package/build/{sound-generation/models → photo-sessions/queries}/index.js +5 -5
  65. package/build/photo-sessions/routes/index.d.ts +2 -0
  66. package/build/{sound-generation/enums → photo-sessions/routes}/index.js +2 -1
  67. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  68. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  69. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  70. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  71. package/build/tools/enums/tool-content-type.enum.d.ts +2 -2
  72. package/build/tools/enums/tool-content-type.enum.js +1 -1
  73. package/build/tools/enums/tool-type.enum.d.ts +2 -2
  74. package/build/tools/enums/tool-type.enum.js +1 -1
  75. package/build/tools/events/tool-job-complete.event.d.ts +1 -0
  76. package/build/tools/events/tool-job-failed.event.d.ts +1 -0
  77. package/build/tools/models/global-tools-config.schema.d.ts +69 -25
  78. package/build/tools/models/global-tools-config.schema.js +2 -2
  79. package/build/tools/models/tool-job.schema.d.ts +1 -0
  80. package/build/tools/models/tool-job.schema.js +1 -0
  81. package/build/tools/models/tools-with-configs.schema.d.ts +22 -88
  82. package/build/tools/models/tools-with-configs.schema.js +0 -5
  83. package/build/tools/queries/get-global-tools-config.query.d.ts +134 -46
  84. package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -88
  85. package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
  86. package/build/tts/commands/create-voice-clone.command.js +21 -0
  87. package/build/tts/commands/create-voice-design.command.d.ts +40 -0
  88. package/build/tts/commands/create-voice-design.command.js +20 -0
  89. package/build/tts/commands/delete-voice.command.d.ts +17 -0
  90. package/build/tts/commands/delete-voice.command.js +14 -0
  91. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  92. package/build/tts/commands/download-tts-job.command.js +19 -0
  93. package/build/{sound-generation/commands/get-sound-generation-price.command.d.ts → tts/commands/improve-tts-text.command.d.ts} +6 -8
  94. package/build/tts/commands/improve-tts-text.command.js +16 -0
  95. package/build/tts/commands/index.d.ts +7 -0
  96. package/build/tts/commands/index.js +7 -0
  97. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  98. package/build/tts/commands/retry-tts-job.command.js +2 -0
  99. package/build/tts/commands/select-voice-design.command.d.ts +77 -0
  100. package/build/tts/commands/select-voice-design.command.js +17 -0
  101. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  102. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  103. package/build/tts/commands/tts.command.d.ts +35 -3
  104. package/build/tts/commands/tts.command.js +4 -1
  105. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  106. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  107. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  108. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  109. package/build/tts/commands/update-voice.command.d.ts +78 -0
  110. package/build/tts/commands/update-voice.command.js +18 -0
  111. package/build/tts/enums/index.d.ts +7 -0
  112. package/build/tts/enums/index.js +7 -0
  113. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  114. package/build/tts/enums/tts-download-format.enum.js +9 -0
  115. package/build/tts/enums/voice-category.enum.d.ts +19 -0
  116. package/build/tts/enums/voice-category.enum.js +23 -0
  117. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  118. package/build/tts/enums/voice-gender.enum.js +8 -0
  119. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  120. package/build/tts/enums/voice-source.enum.js +9 -0
  121. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  122. package/build/tts/enums/voice-status.enum.js +9 -0
  123. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  124. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  125. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  126. package/build/tts/enums/voice-tag.enum.js +24 -0
  127. package/build/tts/models/index.d.ts +7 -0
  128. package/build/tts/models/index.js +7 -0
  129. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  130. package/build/tts/models/tts-config.schema.d.ts +11 -0
  131. package/build/tts/models/tts-config.schema.js +5 -0
  132. package/build/tts/models/tts-job.schema.d.ts +34 -2
  133. package/build/tts/models/tts-job.schema.js +22 -2
  134. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  135. package/build/tts/models/tts-model.schema.d.ts +1 -0
  136. package/build/tts/models/tts-model.schema.js +1 -0
  137. package/build/tts/models/voice-category.schema.d.ts +7 -0
  138. package/build/tts/models/voice-category.schema.js +9 -0
  139. package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
  140. package/build/tts/models/voice-design-draft.schema.js +13 -0
  141. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  142. package/build/tts/models/voice-design-sample.schema.js +8 -0
  143. package/build/tts/models/voice-gender.schema.d.ts +7 -0
  144. package/build/tts/models/voice-gender.schema.js +9 -0
  145. package/build/tts/models/voice-source.schema.d.ts +7 -0
  146. package/build/tts/models/voice-source.schema.js +9 -0
  147. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  148. package/build/tts/models/voice-tag.schema.js +11 -0
  149. package/build/tts/models/voice.schema.d.ts +34 -0
  150. package/build/tts/models/voice.schema.js +30 -0
  151. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  152. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  153. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  154. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  155. package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
  156. package/build/tts/queries/find-voice-by-id.query.js +17 -0
  157. package/build/tts/queries/find-voices.query.d.ts +122 -0
  158. package/build/tts/queries/find-voices.query.js +25 -0
  159. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  160. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  161. package/build/tts/queries/index.d.ts +2 -0
  162. package/build/tts/queries/index.js +2 -0
  163. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  164. package/build/tts/routes/tts.amqp.routes.js +9 -0
  165. package/package.json +1 -1
  166. package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +0 -14
  167. package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +0 -14
  168. package/build/sound-generation/commands/get-sound-generation-price.command.js +0 -17
  169. package/build/sound-generation/commands/index.d.ts +0 -8
  170. package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +0 -94
  171. package/build/sound-generation/commands/retry-sound-generation-job.command.js +0 -20
  172. package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +0 -87
  173. package/build/sound-generation/commands/sound-generation.command.d.ts +0 -96
  174. package/build/sound-generation/commands/sound-generation.command.js +0 -27
  175. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +0 -85
  176. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +0 -16
  177. package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +0 -85
  178. package/build/sound-generation/commands/update-sound-generation-job-title.command.js +0 -16
  179. package/build/sound-generation/enums/index.d.ts +0 -1
  180. package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +0 -3
  181. package/build/sound-generation/enums/sound-generation-strategy.enum.js +0 -7
  182. package/build/sound-generation/models/index.d.ts +0 -5
  183. package/build/sound-generation/models/sound-generation-config.schema.d.ts +0 -34
  184. package/build/sound-generation/models/sound-generation-config.schema.js +0 -8
  185. package/build/sound-generation/models/sound-generation-job.schema.d.ts +0 -39
  186. package/build/sound-generation/models/sound-generation-job.schema.js +0 -34
  187. package/build/sound-generation/models/sound-generation-model.schema.d.ts +0 -42
  188. package/build/sound-generation/models/sound-generation-model.schema.js +0 -28
  189. package/build/sound-generation/models/sound-generation-params.schema.d.ts +0 -8
  190. package/build/sound-generation/models/sound-generation-params.schema.js +0 -10
  191. package/build/sound-generation/models/sound-generation-result.schema.d.ts +0 -7
  192. package/build/sound-generation/models/sound-generation-result.schema.js +0 -9
  193. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +0 -84
  194. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +0 -15
  195. package/build/sound-generation/queries/find-sound-generation-jobs.query.d.ts +0 -102
  196. package/build/sound-generation/queries/find-sound-generation-jobs.query.js +0 -35
  197. package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +0 -76
  198. package/build/sound-generation/queries/get-sound-generation-config.query.js +0 -10
  199. package/build/sound-generation/queries/index.d.ts +0 -3
  200. package/build/sound-generation/routes/index.d.ts +0 -1
  201. package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +0 -13
  202. package/build/sound-generation/routes/sound-generation.amqp.routes.js +0 -16
  203. /package/build/{sound-generation → photo-sessions}/index.d.ts +0 -0
  204. /package/build/{sound-generation → photo-sessions}/index.js +0 -0
@@ -0,0 +1,239 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdatePhotoSessionsJobTitleCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ title: z.ZodString;
8
+ }, z.core.$strip>;
9
+ type Request = z.infer<typeof RequestSchema>;
10
+ const ResponseSchema: z.ZodObject<{
11
+ isSuccess: z.ZodBoolean;
12
+ data: z.ZodOptional<z.ZodType<{
13
+ uuid: string;
14
+ title: string;
15
+ prompt: string;
16
+ status: import("..").PHOTO_SESSION_GROUP_STATUS;
17
+ error: string | null;
18
+ modelId: string;
19
+ price: number;
20
+ tokenReservationId: string | null;
21
+ params: unknown;
22
+ attempts: unknown[];
23
+ scope: import("../..").JOB_SCOPE;
24
+ userId: string | null;
25
+ unregisteredUserId: string | null;
26
+ isDeleted: boolean;
27
+ subJobs: {
28
+ uuid: string;
29
+ prompt: string;
30
+ reaction: import("../..").USER_REACTION | null;
31
+ dislikeReason: string | null;
32
+ externalId: string | null;
33
+ title: string;
34
+ status: import("../..").JOB_STATUS;
35
+ error: string | null;
36
+ modelId: string;
37
+ groupId: string;
38
+ previewUrl: string | null;
39
+ params: {
40
+ attachedFiles?: {
41
+ uuid: string;
42
+ url: string;
43
+ name: string;
44
+ mimeType: string;
45
+ type: string;
46
+ size: number;
47
+ duration?: number | null | undefined;
48
+ content?: string | null | undefined;
49
+ contentLength?: number | null | undefined;
50
+ }[] | undefined;
51
+ imageUrls?: string[] | undefined;
52
+ referenceFile?: {
53
+ uuid: string;
54
+ url: string;
55
+ name: string;
56
+ mimeType: string;
57
+ type: string;
58
+ size: number;
59
+ duration?: number | null | undefined;
60
+ content?: string | null | undefined;
61
+ contentLength?: number | null | undefined;
62
+ } | undefined;
63
+ styleId?: string | null | undefined;
64
+ referenceId?: string | null | undefined;
65
+ referenceIds?: string[] | undefined;
66
+ clothingPhotos?: {
67
+ uuid: string;
68
+ url: string;
69
+ name: string;
70
+ mimeType: string;
71
+ type: string;
72
+ size: number;
73
+ duration?: number | null | undefined;
74
+ content?: string | null | undefined;
75
+ contentLength?: number | null | undefined;
76
+ }[] | undefined;
77
+ hairstylePhotos?: {
78
+ uuid: string;
79
+ url: string;
80
+ name: string;
81
+ mimeType: string;
82
+ type: string;
83
+ size: number;
84
+ duration?: number | null | undefined;
85
+ content?: string | null | undefined;
86
+ contentLength?: number | null | undefined;
87
+ }[] | undefined;
88
+ accessoriesPhotos?: {
89
+ uuid: string;
90
+ url: string;
91
+ name: string;
92
+ mimeType: string;
93
+ type: string;
94
+ size: number;
95
+ duration?: number | null | undefined;
96
+ content?: string | null | undefined;
97
+ contentLength?: number | null | undefined;
98
+ }[] | undefined;
99
+ aspectRatio?: string | undefined;
100
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
101
+ };
102
+ imageUrls: string[] | null;
103
+ attempts: {
104
+ order: number;
105
+ attemptId?: string | undefined;
106
+ status: import("../..").JOB_STATUS;
107
+ error: string | null;
108
+ timestamp: Date;
109
+ }[];
110
+ userId?: string | null | undefined;
111
+ unregisteredUserId?: string | null | undefined;
112
+ isPublished: boolean;
113
+ postId: string | null;
114
+ isDeleted: boolean;
115
+ isFavorite: boolean;
116
+ createdAt: Date;
117
+ completedAt?: Date | null | undefined;
118
+ updatedAt: Date;
119
+ }[];
120
+ createdAt: Date;
121
+ completedAt: Date | null;
122
+ updatedAt: Date;
123
+ }, unknown, z.core.$ZodTypeInternals<{
124
+ uuid: string;
125
+ title: string;
126
+ prompt: string;
127
+ status: import("..").PHOTO_SESSION_GROUP_STATUS;
128
+ error: string | null;
129
+ modelId: string;
130
+ price: number;
131
+ tokenReservationId: string | null;
132
+ params: unknown;
133
+ attempts: unknown[];
134
+ scope: import("../..").JOB_SCOPE;
135
+ userId: string | null;
136
+ unregisteredUserId: string | null;
137
+ isDeleted: boolean;
138
+ subJobs: {
139
+ uuid: string;
140
+ prompt: string;
141
+ reaction: import("../..").USER_REACTION | null;
142
+ dislikeReason: string | null;
143
+ externalId: string | null;
144
+ title: string;
145
+ status: import("../..").JOB_STATUS;
146
+ error: string | null;
147
+ modelId: string;
148
+ groupId: string;
149
+ previewUrl: string | null;
150
+ params: {
151
+ attachedFiles?: {
152
+ uuid: string;
153
+ url: string;
154
+ name: string;
155
+ mimeType: string;
156
+ type: string;
157
+ size: number;
158
+ duration?: number | null | undefined;
159
+ content?: string | null | undefined;
160
+ contentLength?: number | null | undefined;
161
+ }[] | undefined;
162
+ imageUrls?: string[] | undefined;
163
+ referenceFile?: {
164
+ uuid: string;
165
+ url: string;
166
+ name: string;
167
+ mimeType: string;
168
+ type: string;
169
+ size: number;
170
+ duration?: number | null | undefined;
171
+ content?: string | null | undefined;
172
+ contentLength?: number | null | undefined;
173
+ } | undefined;
174
+ styleId?: string | null | undefined;
175
+ referenceId?: string | null | undefined;
176
+ referenceIds?: string[] | undefined;
177
+ clothingPhotos?: {
178
+ uuid: string;
179
+ url: string;
180
+ name: string;
181
+ mimeType: string;
182
+ type: string;
183
+ size: number;
184
+ duration?: number | null | undefined;
185
+ content?: string | null | undefined;
186
+ contentLength?: number | null | undefined;
187
+ }[] | undefined;
188
+ hairstylePhotos?: {
189
+ uuid: string;
190
+ url: string;
191
+ name: string;
192
+ mimeType: string;
193
+ type: string;
194
+ size: number;
195
+ duration?: number | null | undefined;
196
+ content?: string | null | undefined;
197
+ contentLength?: number | null | undefined;
198
+ }[] | undefined;
199
+ accessoriesPhotos?: {
200
+ uuid: string;
201
+ url: string;
202
+ name: string;
203
+ mimeType: string;
204
+ type: string;
205
+ size: number;
206
+ duration?: number | null | undefined;
207
+ content?: string | null | undefined;
208
+ contentLength?: number | null | undefined;
209
+ }[] | undefined;
210
+ aspectRatio?: string | undefined;
211
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
212
+ };
213
+ imageUrls: string[] | null;
214
+ attempts: {
215
+ order: number;
216
+ attemptId?: string | undefined;
217
+ status: import("../..").JOB_STATUS;
218
+ error: string | null;
219
+ timestamp: Date;
220
+ }[];
221
+ userId?: string | null | undefined;
222
+ unregisteredUserId?: string | null | undefined;
223
+ isPublished: boolean;
224
+ postId: string | null;
225
+ isDeleted: boolean;
226
+ isFavorite: boolean;
227
+ createdAt: Date;
228
+ completedAt?: Date | null | undefined;
229
+ updatedAt: Date;
230
+ }[];
231
+ createdAt: Date;
232
+ completedAt: Date | null;
233
+ updatedAt: Date;
234
+ }, unknown>>>;
235
+ code: z.ZodOptional<z.ZodString>;
236
+ message: z.ZodOptional<z.ZodString>;
237
+ }, z.core.$strip>;
238
+ type Response = z.infer<typeof ResponseSchema>;
239
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePhotoSessionsJobTitleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const models_1 = require("../models");
7
+ var UpdatePhotoSessionsJobTitleCommand;
8
+ (function (UpdatePhotoSessionsJobTitleCommand) {
9
+ UpdatePhotoSessionsJobTitleCommand.RequestSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ userId: zod_1.z.string().uuid().nullable().optional(),
12
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
+ title: zod_1.z.string().min(1).max(40),
14
+ });
15
+ UpdatePhotoSessionsJobTitleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionGroupSchema);
16
+ })(UpdatePhotoSessionsJobTitleCommand || (exports.UpdatePhotoSessionsJobTitleCommand = UpdatePhotoSessionsJobTitleCommand = {}));
@@ -0,0 +1,206 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ criteria: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ }, z.core.$strip>;
9
+ data: z.ZodObject<{
10
+ isPublished: z.ZodBoolean;
11
+ postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$strip>;
13
+ }, z.core.$strip>;
14
+ type Request = z.infer<typeof RequestSchema>;
15
+ const ResponseSchema: z.ZodObject<{
16
+ isSuccess: z.ZodBoolean;
17
+ data: z.ZodOptional<z.ZodType<{
18
+ uuid: string;
19
+ prompt: string;
20
+ reaction: import("../..").USER_REACTION | null;
21
+ dislikeReason: string | null;
22
+ externalId: string | null;
23
+ title: string;
24
+ status: import("../..").JOB_STATUS;
25
+ error: string | null;
26
+ modelId: string;
27
+ groupId: string;
28
+ previewUrl: string | null;
29
+ params: {
30
+ attachedFiles?: {
31
+ uuid: string;
32
+ url: string;
33
+ name: string;
34
+ mimeType: string;
35
+ type: string;
36
+ size: number;
37
+ duration?: number | null | undefined;
38
+ content?: string | null | undefined;
39
+ contentLength?: number | null | undefined;
40
+ }[] | undefined;
41
+ imageUrls?: string[] | undefined;
42
+ referenceFile?: {
43
+ uuid: string;
44
+ url: string;
45
+ name: string;
46
+ mimeType: string;
47
+ type: string;
48
+ size: number;
49
+ duration?: number | null | undefined;
50
+ content?: string | null | undefined;
51
+ contentLength?: number | null | undefined;
52
+ } | undefined;
53
+ styleId?: string | null | undefined;
54
+ referenceId?: string | null | undefined;
55
+ referenceIds?: string[] | undefined;
56
+ clothingPhotos?: {
57
+ uuid: string;
58
+ url: string;
59
+ name: string;
60
+ mimeType: string;
61
+ type: string;
62
+ size: number;
63
+ duration?: number | null | undefined;
64
+ content?: string | null | undefined;
65
+ contentLength?: number | null | undefined;
66
+ }[] | undefined;
67
+ hairstylePhotos?: {
68
+ uuid: string;
69
+ url: string;
70
+ name: string;
71
+ mimeType: string;
72
+ type: string;
73
+ size: number;
74
+ duration?: number | null | undefined;
75
+ content?: string | null | undefined;
76
+ contentLength?: number | null | undefined;
77
+ }[] | undefined;
78
+ accessoriesPhotos?: {
79
+ uuid: string;
80
+ url: string;
81
+ name: string;
82
+ mimeType: string;
83
+ type: string;
84
+ size: number;
85
+ duration?: number | null | undefined;
86
+ content?: string | null | undefined;
87
+ contentLength?: number | null | undefined;
88
+ }[] | undefined;
89
+ aspectRatio?: string | undefined;
90
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
91
+ };
92
+ imageUrls: string[] | null;
93
+ attempts: {
94
+ order: number;
95
+ attemptId?: string | undefined;
96
+ status: import("../..").JOB_STATUS;
97
+ error: string | null;
98
+ timestamp: Date;
99
+ }[];
100
+ userId?: string | null | undefined;
101
+ unregisteredUserId?: string | null | undefined;
102
+ isPublished: boolean;
103
+ postId: string | null;
104
+ isDeleted: boolean;
105
+ isFavorite: boolean;
106
+ createdAt: Date;
107
+ completedAt?: Date | null | undefined;
108
+ updatedAt: Date;
109
+ }, unknown, z.core.$ZodTypeInternals<{
110
+ uuid: string;
111
+ prompt: string;
112
+ reaction: import("../..").USER_REACTION | null;
113
+ dislikeReason: string | null;
114
+ externalId: string | null;
115
+ title: string;
116
+ status: import("../..").JOB_STATUS;
117
+ error: string | null;
118
+ modelId: string;
119
+ groupId: string;
120
+ previewUrl: string | null;
121
+ params: {
122
+ attachedFiles?: {
123
+ uuid: string;
124
+ url: string;
125
+ name: string;
126
+ mimeType: string;
127
+ type: string;
128
+ size: number;
129
+ duration?: number | null | undefined;
130
+ content?: string | null | undefined;
131
+ contentLength?: number | null | undefined;
132
+ }[] | undefined;
133
+ imageUrls?: string[] | undefined;
134
+ referenceFile?: {
135
+ uuid: string;
136
+ url: string;
137
+ name: string;
138
+ mimeType: string;
139
+ type: string;
140
+ size: number;
141
+ duration?: number | null | undefined;
142
+ content?: string | null | undefined;
143
+ contentLength?: number | null | undefined;
144
+ } | undefined;
145
+ styleId?: string | null | undefined;
146
+ referenceId?: string | null | undefined;
147
+ referenceIds?: string[] | undefined;
148
+ clothingPhotos?: {
149
+ uuid: string;
150
+ url: string;
151
+ name: string;
152
+ mimeType: string;
153
+ type: string;
154
+ size: number;
155
+ duration?: number | null | undefined;
156
+ content?: string | null | undefined;
157
+ contentLength?: number | null | undefined;
158
+ }[] | undefined;
159
+ hairstylePhotos?: {
160
+ uuid: string;
161
+ url: string;
162
+ name: string;
163
+ mimeType: string;
164
+ type: string;
165
+ size: number;
166
+ duration?: number | null | undefined;
167
+ content?: string | null | undefined;
168
+ contentLength?: number | null | undefined;
169
+ }[] | undefined;
170
+ accessoriesPhotos?: {
171
+ uuid: string;
172
+ url: string;
173
+ name: string;
174
+ mimeType: string;
175
+ type: string;
176
+ size: number;
177
+ duration?: number | null | undefined;
178
+ content?: string | null | undefined;
179
+ contentLength?: number | null | undefined;
180
+ }[] | undefined;
181
+ aspectRatio?: string | undefined;
182
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
183
+ };
184
+ imageUrls: string[] | null;
185
+ attempts: {
186
+ order: number;
187
+ attemptId?: string | undefined;
188
+ status: import("../..").JOB_STATUS;
189
+ error: string | null;
190
+ timestamp: Date;
191
+ }[];
192
+ userId?: string | null | undefined;
193
+ unregisteredUserId?: string | null | undefined;
194
+ isPublished: boolean;
195
+ postId: string | null;
196
+ isDeleted: boolean;
197
+ isFavorite: boolean;
198
+ createdAt: Date;
199
+ completedAt?: Date | null | undefined;
200
+ updatedAt: Date;
201
+ }, unknown>>>;
202
+ code: z.ZodOptional<z.ZodString>;
203
+ message: z.ZodOptional<z.ZodString>;
204
+ }, z.core.$strip>;
205
+ type Response = z.infer<typeof ResponseSchema>;
206
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePublishedStatusPhotoSessionsJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const models_1 = require("../models");
7
+ var UpdatePublishedStatusPhotoSessionsJobsCommand;
8
+ (function (UpdatePublishedStatusPhotoSessionsJobsCommand) {
9
+ UpdatePublishedStatusPhotoSessionsJobsCommand.RequestSchema = zod_1.z.object({
10
+ criteria: zod_1.z.object({
11
+ uuid: zod_1.z.string().uuid(),
12
+ userId: zod_1.z.string().uuid().nullable().optional(),
13
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
+ }),
15
+ data: zod_1.z
16
+ .object({
17
+ isPublished: zod_1.z.boolean(),
18
+ postId: zod_1.z.string().nullable().optional(),
19
+ })
20
+ .refine((data) => (data.isPublished ? !!data.postId : true), {
21
+ message: 'Post ID is required when job is published',
22
+ path: ['postId'],
23
+ }),
24
+ });
25
+ UpdatePublishedStatusPhotoSessionsJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
26
+ })(UpdatePublishedStatusPhotoSessionsJobsCommand || (exports.UpdatePublishedStatusPhotoSessionsJobsCommand = UpdatePublishedStatusPhotoSessionsJobsCommand = {}));
@@ -0,0 +1,3 @@
1
+ export * from './photo-session-strategy.enum';
2
+ export * from './photo-session-look-type.enum';
3
+ export * from './photo-session-group-status.enum';
@@ -14,4 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./sound-generation.amqp.routes"), exports);
17
+ __exportStar(require("./photo-session-strategy.enum"), exports);
18
+ __exportStar(require("./photo-session-look-type.enum"), exports);
19
+ __exportStar(require("./photo-session-group-status.enum"), exports);
@@ -0,0 +1,7 @@
1
+ export declare enum PHOTO_SESSION_GROUP_STATUS {
2
+ PENDING = "pending",
3
+ PROCESSING = "processing",
4
+ COMPLETED = "completed",
5
+ AWAITING_RETRY_JOB = "awaiting_retry_job",
6
+ FAILED = "failed"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PHOTO_SESSION_GROUP_STATUS = void 0;
4
+ var PHOTO_SESSION_GROUP_STATUS;
5
+ (function (PHOTO_SESSION_GROUP_STATUS) {
6
+ PHOTO_SESSION_GROUP_STATUS["PENDING"] = "pending";
7
+ PHOTO_SESSION_GROUP_STATUS["PROCESSING"] = "processing";
8
+ PHOTO_SESSION_GROUP_STATUS["COMPLETED"] = "completed";
9
+ PHOTO_SESSION_GROUP_STATUS["AWAITING_RETRY_JOB"] = "awaiting_retry_job";
10
+ PHOTO_SESSION_GROUP_STATUS["FAILED"] = "failed";
11
+ })(PHOTO_SESSION_GROUP_STATUS || (exports.PHOTO_SESSION_GROUP_STATUS = PHOTO_SESSION_GROUP_STATUS = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum PHOTO_SESSION_LOOK_TYPE {
2
+ CLOTHING = "clothing",
3
+ HAIRSTYLE = "hairstyle",
4
+ ACCESSORIES = "accessories"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PHOTO_SESSION_LOOK_TYPE = void 0;
4
+ var PHOTO_SESSION_LOOK_TYPE;
5
+ (function (PHOTO_SESSION_LOOK_TYPE) {
6
+ PHOTO_SESSION_LOOK_TYPE["CLOTHING"] = "clothing";
7
+ PHOTO_SESSION_LOOK_TYPE["HAIRSTYLE"] = "hairstyle";
8
+ PHOTO_SESSION_LOOK_TYPE["ACCESSORIES"] = "accessories";
9
+ })(PHOTO_SESSION_LOOK_TYPE || (exports.PHOTO_SESSION_LOOK_TYPE = PHOTO_SESSION_LOOK_TYPE = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum PHOTO_SESSION_STRATEGY {
2
+ NANO_BANANA_PRO_CALLBACK = "NANO_BANANA_PRO_CALLBACK",
3
+ OPENAI_IMAGE_1_GENERATION = "OPENAI_IMAGE_1_GENERATION"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PHOTO_SESSION_STRATEGY = void 0;
4
+ var PHOTO_SESSION_STRATEGY;
5
+ (function (PHOTO_SESSION_STRATEGY) {
6
+ PHOTO_SESSION_STRATEGY["NANO_BANANA_PRO_CALLBACK"] = "NANO_BANANA_PRO_CALLBACK";
7
+ PHOTO_SESSION_STRATEGY["OPENAI_IMAGE_1_GENERATION"] = "OPENAI_IMAGE_1_GENERATION";
8
+ })(PHOTO_SESSION_STRATEGY || (exports.PHOTO_SESSION_STRATEGY = PHOTO_SESSION_STRATEGY = {}));
@@ -0,0 +1,5 @@
1
+ export * from './photo-session-config.schema';
2
+ export * from './photo-session-group.schema';
3
+ export * from './photo-session-job.schema';
4
+ export * from './photo-session-model.schema';
5
+ export * from './photo-session-style.schema';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./photo-session-config.schema"), exports);
18
+ __exportStar(require("./photo-session-group.schema"), exports);
19
+ __exportStar(require("./photo-session-job.schema"), exports);
20
+ __exportStar(require("./photo-session-model.schema"), exports);
21
+ __exportStar(require("./photo-session-style.schema"), exports);
@@ -0,0 +1,72 @@
1
+ import { z } from 'zod';
2
+ import { PHOTO_SESSION_LOOK_TYPE } from '../enums';
3
+ export declare const PhotoSessionLookCategorySchema: z.ZodObject<{
4
+ type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
5
+ maxPhotos: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ export declare const PhotoSessionConfigSchema: z.ZodObject<{
8
+ models: z.ZodArray<z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ title: z.ZodString;
11
+ description: z.ZodString;
12
+ aiModel: z.ZodString;
13
+ isNew: z.ZodBoolean;
14
+ tierLabel: z.ZodString;
15
+ pricePerImage: z.ZodNumber;
16
+ order: z.ZodNumber;
17
+ status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
18
+ icons: z.ZodObject<{
19
+ light: z.ZodObject<{
20
+ svg: z.ZodString;
21
+ png: z.ZodString;
22
+ }, z.core.$strip>;
23
+ dark: z.ZodObject<{
24
+ svg: z.ZodString;
25
+ png: z.ZodString;
26
+ }, z.core.$strip>;
27
+ }, z.core.$strip>;
28
+ strategy: z.ZodEnum<typeof import("..").PHOTO_SESSION_STRATEGY>;
29
+ maxInputLength: z.ZodNumber;
30
+ params: z.ZodObject<{
31
+ imageAttachment: z.ZodObject<{
32
+ supported: z.ZodBoolean;
33
+ maxImages: z.ZodNumber;
34
+ acceptedTypes: z.ZodArray<z.ZodString>;
35
+ }, z.core.$strip>;
36
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
37
+ width: z.ZodNumber;
38
+ height: z.ZodNumber;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>;
41
+ pricingRules: z.ZodArray<z.ZodObject<{
42
+ condition: z.ZodObject<{
43
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
44
+ }, z.core.$strip>;
45
+ value: z.ZodNumber;
46
+ }, z.core.$strip>>;
47
+ createdAt: z.ZodDate;
48
+ updatedAt: z.ZodDate;
49
+ }, z.core.$strip>>;
50
+ styles: z.ZodArray<z.ZodObject<{
51
+ uuid: z.ZodString;
52
+ code: z.ZodString;
53
+ title: z.ZodString;
54
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ references: z.ZodArray<z.ZodObject<{
56
+ uuid: z.ZodString;
57
+ styleId: z.ZodString;
58
+ photoUrl: z.ZodString;
59
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ order: z.ZodNumber;
61
+ createdAt: z.ZodDate;
62
+ updatedAt: z.ZodDate;
63
+ }, z.core.$strip>>;
64
+ createdAt: z.ZodDate;
65
+ updatedAt: z.ZodDate;
66
+ }, z.core.$strip>>;
67
+ looks: z.ZodArray<z.ZodObject<{
68
+ type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
69
+ maxPhotos: z.ZodNumber;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strip>;
72
+ export type PhotoSessionConfig = z.infer<typeof PhotoSessionConfigSchema>;