@purpleschool/gptbot-tools 0.2.69 → 0.2.72-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 (228) 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 -0
  4. package/build/index.js +3 -0
  5. package/build/music/commands/add-track-to-music-playlist.command.d.ts +199 -41
  6. package/build/music/commands/add-track-to-music-playlist.command.js +1 -1
  7. package/build/music/commands/create-music-playlist.command.d.ts +198 -40
  8. package/build/music/commands/edit-music.command.d.ts +12 -0
  9. package/build/music/commands/generate-music.command.d.ts +18 -2
  10. package/build/music/commands/generate-music.command.js +1 -1
  11. package/build/music/commands/get-music-price.command.d.ts +2 -0
  12. package/build/music/commands/get-music-price.command.js +2 -0
  13. package/build/music/commands/remove-track-from-music-playlist.command.d.ts +199 -41
  14. package/build/music/commands/remove-track-from-music-playlist.command.js +1 -1
  15. package/build/music/commands/retry-music-job.command.d.ts +12 -0
  16. package/build/music/commands/set-reaction-to-music-job.command.d.ts +12 -0
  17. package/build/music/commands/update-music-job-favorite.command.d.ts +12 -0
  18. package/build/music/commands/update-music-job-title.command.d.ts +12 -0
  19. package/build/music/commands/update-music-playlist.command.d.ts +198 -40
  20. package/build/music/commands/update-published-status-music-jobs.command.d.ts +12 -0
  21. package/build/music/enums/music-action-type.enum.d.ts +0 -2
  22. package/build/music/enums/music-action-type.enum.js +0 -2
  23. package/build/music/enums/music-audio-action-type.enum.d.ts +0 -2
  24. package/build/music/enums/music-audio-action-type.enum.js +0 -2
  25. package/build/music/models/music-job.schema.d.ts +10 -0
  26. package/build/music/models/music-job.schema.js +14 -15
  27. package/build/music/models/music-playlist.schema.d.ts +99 -20
  28. package/build/music/models/music-playlist.schema.js +3 -3
  29. package/build/music/queries/find-music-job-by-id.query.d.ts +12 -0
  30. package/build/music/queries/find-music-jobs.query.d.ts +12 -0
  31. package/build/music/queries/find-music-playlists.query.d.ts +227 -56
  32. package/build/music/queries/find-music-playlists.query.js +9 -1
  33. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
  34. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
  35. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
  36. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
  37. package/build/photo-sessions/commands/admin/index.d.ts +3 -0
  38. package/build/photo-sessions/commands/admin/index.js +19 -0
  39. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
  40. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
  41. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
  42. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
  43. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
  44. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
  45. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +74 -0
  46. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +28 -0
  47. package/build/photo-sessions/commands/index.d.ts +10 -0
  48. package/build/photo-sessions/commands/index.js +26 -0
  49. package/build/photo-sessions/commands/photo-sessions.command.d.ts +272 -0
  50. package/build/photo-sessions/commands/photo-sessions.command.js +37 -0
  51. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +179 -0
  52. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +17 -0
  53. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +181 -0
  54. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
  55. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +179 -0
  56. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
  57. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +217 -0
  58. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
  59. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +184 -0
  60. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
  61. package/build/photo-sessions/enums/index.d.ts +3 -0
  62. package/build/photo-sessions/enums/index.js +19 -0
  63. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +6 -0
  64. package/build/photo-sessions/enums/photo-session-group-status.enum.js +10 -0
  65. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  66. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  67. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  68. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  69. package/build/photo-sessions/index.d.ts +5 -0
  70. package/build/photo-sessions/index.js +21 -0
  71. package/build/photo-sessions/models/index.d.ts +5 -0
  72. package/build/photo-sessions/models/index.js +21 -0
  73. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  74. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  75. package/build/photo-sessions/models/photo-session-group.schema.d.ts +113 -0
  76. package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
  77. package/build/photo-sessions/models/photo-session-job.schema.d.ts +159 -0
  78. package/build/photo-sessions/models/photo-session-job.schema.js +55 -0
  79. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  80. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  81. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  82. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  83. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  84. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  85. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  86. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  87. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +216 -0
  88. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
  89. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +235 -0
  90. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
  91. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  92. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  93. package/build/photo-sessions/queries/index.d.ts +5 -0
  94. package/build/photo-sessions/queries/index.js +21 -0
  95. package/build/photo-sessions/routes/index.d.ts +2 -0
  96. package/build/photo-sessions/routes/index.js +18 -0
  97. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  98. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  99. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  100. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  101. package/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
  102. package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
  103. package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
  104. package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
  105. package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
  106. package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
  107. package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
  108. package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
  109. package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
  110. package/build/spell-corrector/constants/index.d.ts +1 -0
  111. package/build/spell-corrector/constants/index.js +17 -0
  112. package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
  113. package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
  114. package/build/spell-corrector/enums/index.d.ts +1 -0
  115. package/build/spell-corrector/enums/index.js +17 -0
  116. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
  117. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
  118. package/build/spell-corrector/index.d.ts +2 -0
  119. package/build/spell-corrector/index.js +2 -0
  120. package/build/spell-corrector/models/index.d.ts +2 -0
  121. package/build/spell-corrector/models/index.js +2 -0
  122. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
  123. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
  124. package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
  125. package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
  126. package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
  127. package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
  128. package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
  129. package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
  130. package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
  131. package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
  132. package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
  133. package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
  134. package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
  135. package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
  136. package/build/tools/enums/tool-content-type.enum.js +1 -0
  137. package/build/tools/enums/tool-type.enum.d.ts +1 -0
  138. package/build/tools/enums/tool-type.enum.js +1 -0
  139. package/build/tools/events/tool-job-complete.event.d.ts +1 -0
  140. package/build/tools/events/tool-job-failed.event.d.ts +1 -0
  141. package/build/tools/models/global-tools-config.schema.d.ts +81 -0
  142. package/build/tools/models/global-tools-config.schema.js +2 -0
  143. package/build/tools/models/tool-job.schema.d.ts +1 -0
  144. package/build/tools/models/tool-job.schema.js +1 -0
  145. package/build/tools/models/tools-with-configs.schema.d.ts +32 -0
  146. package/build/tools/queries/get-global-tools-config.query.d.ts +162 -0
  147. package/build/tools/queries/get-tools-with-configs.query.d.ts +32 -0
  148. package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
  149. package/build/tts/commands/create-voice-clone.command.js +21 -0
  150. package/build/tts/commands/create-voice-design.command.d.ts +40 -0
  151. package/build/tts/commands/create-voice-design.command.js +20 -0
  152. package/build/tts/commands/delete-voice.command.d.ts +17 -0
  153. package/build/tts/commands/delete-voice.command.js +14 -0
  154. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  155. package/build/tts/commands/download-tts-job.command.js +19 -0
  156. package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
  157. package/build/tts/commands/improve-tts-text.command.js +16 -0
  158. package/build/tts/commands/index.d.ts +7 -0
  159. package/build/tts/commands/index.js +7 -0
  160. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  161. package/build/tts/commands/retry-tts-job.command.js +2 -0
  162. package/build/tts/commands/select-voice-design.command.d.ts +77 -0
  163. package/build/tts/commands/select-voice-design.command.js +17 -0
  164. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  165. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  166. package/build/tts/commands/tts.command.d.ts +35 -3
  167. package/build/tts/commands/tts.command.js +4 -1
  168. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  169. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  170. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  171. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  172. package/build/tts/commands/update-voice.command.d.ts +78 -0
  173. package/build/tts/commands/update-voice.command.js +18 -0
  174. package/build/tts/enums/index.d.ts +7 -0
  175. package/build/tts/enums/index.js +7 -0
  176. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  177. package/build/tts/enums/tts-download-format.enum.js +9 -0
  178. package/build/tts/enums/voice-category.enum.d.ts +19 -0
  179. package/build/tts/enums/voice-category.enum.js +23 -0
  180. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  181. package/build/tts/enums/voice-gender.enum.js +8 -0
  182. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  183. package/build/tts/enums/voice-source.enum.js +9 -0
  184. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  185. package/build/tts/enums/voice-status.enum.js +9 -0
  186. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  187. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  188. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  189. package/build/tts/enums/voice-tag.enum.js +24 -0
  190. package/build/tts/models/index.d.ts +7 -0
  191. package/build/tts/models/index.js +7 -0
  192. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  193. package/build/tts/models/tts-config.schema.d.ts +11 -0
  194. package/build/tts/models/tts-config.schema.js +5 -0
  195. package/build/tts/models/tts-job.schema.d.ts +34 -2
  196. package/build/tts/models/tts-job.schema.js +22 -2
  197. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  198. package/build/tts/models/tts-model.schema.d.ts +1 -0
  199. package/build/tts/models/tts-model.schema.js +1 -0
  200. package/build/tts/models/voice-category.schema.d.ts +7 -0
  201. package/build/tts/models/voice-category.schema.js +9 -0
  202. package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
  203. package/build/tts/models/voice-design-draft.schema.js +13 -0
  204. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  205. package/build/tts/models/voice-design-sample.schema.js +8 -0
  206. package/build/tts/models/voice-gender.schema.d.ts +7 -0
  207. package/build/tts/models/voice-gender.schema.js +9 -0
  208. package/build/tts/models/voice-source.schema.d.ts +7 -0
  209. package/build/tts/models/voice-source.schema.js +9 -0
  210. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  211. package/build/tts/models/voice-tag.schema.js +11 -0
  212. package/build/tts/models/voice.schema.d.ts +34 -0
  213. package/build/tts/models/voice.schema.js +30 -0
  214. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  215. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  216. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  217. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  218. package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
  219. package/build/tts/queries/find-voice-by-id.query.js +17 -0
  220. package/build/tts/queries/find-voices.query.d.ts +122 -0
  221. package/build/tts/queries/find-voices.query.js +25 -0
  222. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  223. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  224. package/build/tts/queries/index.d.ts +2 -0
  225. package/build/tts/queries/index.js +2 -0
  226. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  227. package/build/tts/routes/tts.amqp.routes.js +9 -0
  228. package/package.json +1 -1
@@ -0,0 +1,184 @@
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.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
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
+ styleReferenceImageUrl?: string | undefined;
42
+ styleId?: string | null | undefined;
43
+ referenceId?: string | null | undefined;
44
+ photosCount?: number | undefined;
45
+ clothingPhotos?: {
46
+ uuid: string;
47
+ url: string;
48
+ name: string;
49
+ mimeType: string;
50
+ type: string;
51
+ size: number;
52
+ duration?: number | null | undefined;
53
+ content?: string | null | undefined;
54
+ contentLength?: number | null | undefined;
55
+ }[] | undefined;
56
+ hairstylePhotos?: {
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
+ accessoriesPhotos?: {
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
+ aspectRatio?: string | undefined;
79
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
80
+ };
81
+ imageUrls: string[] | null;
82
+ attempts: {
83
+ order: number;
84
+ attemptId?: string | undefined;
85
+ status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
86
+ error: string | null;
87
+ timestamp: Date;
88
+ }[];
89
+ userId?: string | null | undefined;
90
+ unregisteredUserId?: string | null | undefined;
91
+ isPublished: boolean;
92
+ postId: string | null;
93
+ isDeleted: boolean;
94
+ isFavorite: boolean;
95
+ createdAt: Date;
96
+ completedAt?: Date | null | undefined;
97
+ updatedAt: Date;
98
+ }, unknown, z.core.$ZodTypeInternals<{
99
+ uuid: string;
100
+ prompt: string;
101
+ reaction: import("../..").USER_REACTION | null;
102
+ dislikeReason: string | null;
103
+ externalId: string | null;
104
+ title: string;
105
+ status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
106
+ error: string | null;
107
+ modelId: string;
108
+ groupId: string;
109
+ previewUrl: string | null;
110
+ params: {
111
+ attachedFiles?: {
112
+ uuid: string;
113
+ url: string;
114
+ name: string;
115
+ mimeType: string;
116
+ type: string;
117
+ size: number;
118
+ duration?: number | null | undefined;
119
+ content?: string | null | undefined;
120
+ contentLength?: number | null | undefined;
121
+ }[] | undefined;
122
+ styleReferenceImageUrl?: string | undefined;
123
+ styleId?: string | null | undefined;
124
+ referenceId?: string | null | undefined;
125
+ photosCount?: number | undefined;
126
+ clothingPhotos?: {
127
+ uuid: string;
128
+ url: string;
129
+ name: string;
130
+ mimeType: string;
131
+ type: string;
132
+ size: number;
133
+ duration?: number | null | undefined;
134
+ content?: string | null | undefined;
135
+ contentLength?: number | null | undefined;
136
+ }[] | undefined;
137
+ hairstylePhotos?: {
138
+ uuid: string;
139
+ url: string;
140
+ name: string;
141
+ mimeType: string;
142
+ type: string;
143
+ size: number;
144
+ duration?: number | null | undefined;
145
+ content?: string | null | undefined;
146
+ contentLength?: number | null | undefined;
147
+ }[] | undefined;
148
+ accessoriesPhotos?: {
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
+ aspectRatio?: string | undefined;
160
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
161
+ };
162
+ imageUrls: string[] | null;
163
+ attempts: {
164
+ order: number;
165
+ attemptId?: string | undefined;
166
+ status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
167
+ error: string | null;
168
+ timestamp: Date;
169
+ }[];
170
+ userId?: string | null | undefined;
171
+ unregisteredUserId?: string | null | undefined;
172
+ isPublished: boolean;
173
+ postId: string | null;
174
+ isDeleted: boolean;
175
+ isFavorite: boolean;
176
+ createdAt: Date;
177
+ completedAt?: Date | null | undefined;
178
+ updatedAt: Date;
179
+ }, unknown>>>;
180
+ code: z.ZodOptional<z.ZodString>;
181
+ message: z.ZodOptional<z.ZodString>;
182
+ }, z.core.$strip>;
183
+ type Response = z.infer<typeof ResponseSchema>;
184
+ }
@@ -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';
@@ -0,0 +1,19 @@
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-strategy.enum"), exports);
18
+ __exportStar(require("./photo-session-look-type.enum"), exports);
19
+ __exportStar(require("./photo-session-group-status.enum"), exports);
@@ -0,0 +1,6 @@
1
+ export declare enum PHOTO_SESSION_GROUP_STATUS {
2
+ PENDING = "pending",
3
+ COMPLETED = "completed",
4
+ AWAITING_RETRY_JOB = "awaiting_retry_job",
5
+ FAILED = "failed"
6
+ }
@@ -0,0 +1,10 @@
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["COMPLETED"] = "completed";
8
+ PHOTO_SESSION_GROUP_STATUS["AWAITING_RETRY_JOB"] = "awaiting_retry_job";
9
+ PHOTO_SESSION_GROUP_STATUS["FAILED"] = "failed";
10
+ })(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_IMAGE_GENERATION = "NANO_BANANA_IMAGE_GENERATION",
3
+ OPENAI_IMAGE_2_GENERATION = "OPENAI_IMAGE_2_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_IMAGE_GENERATION"] = "NANO_BANANA_IMAGE_GENERATION";
7
+ PHOTO_SESSION_STRATEGY["OPENAI_IMAGE_2_GENERATION"] = "OPENAI_IMAGE_2_GENERATION";
8
+ })(PHOTO_SESSION_STRATEGY || (exports.PHOTO_SESSION_STRATEGY = PHOTO_SESSION_STRATEGY = {}));
@@ -0,0 +1,5 @@
1
+ export * from './commands';
2
+ export * from './enums';
3
+ export * from './models';
4
+ export * from './queries';
5
+ export * from './routes';
@@ -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("./commands"), exports);
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./models"), exports);
20
+ __exportStar(require("./queries"), exports);
21
+ __exportStar(require("./routes"), exports);
@@ -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.ZodCoercedDate<unknown>;
48
+ updatedAt: z.ZodCoercedDate<unknown>;
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.ZodCoercedDate<unknown>;
62
+ updatedAt: z.ZodCoercedDate<unknown>;
63
+ }, z.core.$strip>>;
64
+ createdAt: z.ZodCoercedDate<unknown>;
65
+ updatedAt: z.ZodCoercedDate<unknown>;
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>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionConfigSchema = exports.PhotoSessionLookCategorySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const photo_session_model_schema_1 = require("./photo-session-model.schema");
6
+ const photo_session_style_schema_1 = require("./photo-session-style.schema");
7
+ const enums_1 = require("../enums");
8
+ exports.PhotoSessionLookCategorySchema = zod_1.z.object({
9
+ type: zod_1.z.nativeEnum(enums_1.PHOTO_SESSION_LOOK_TYPE),
10
+ maxPhotos: zod_1.z.number(),
11
+ });
12
+ exports.PhotoSessionConfigSchema = zod_1.z.object({
13
+ models: zod_1.z.array(photo_session_model_schema_1.PhotoSessionModelSchema),
14
+ styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionStyleSchema),
15
+ looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
16
+ });
@@ -0,0 +1,113 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ import { PHOTO_SESSION_GROUP_STATUS } from '../enums';
4
+ export declare const PhotoSessionGroupSchema: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ title: z.ZodString;
7
+ prompt: z.ZodString;
8
+ status: z.ZodEnum<typeof PHOTO_SESSION_GROUP_STATUS>;
9
+ error: z.ZodNullable<z.ZodString>;
10
+ modelId: z.ZodString;
11
+ price: z.ZodNumber;
12
+ tokenReservationId: z.ZodNullable<z.ZodString>;
13
+ params: z.ZodUnknown;
14
+ attempts: z.ZodArray<z.ZodUnknown>;
15
+ scope: z.ZodEnum<typeof JOB_SCOPE>;
16
+ userId: z.ZodNullable<z.ZodString>;
17
+ unregisteredUserId: z.ZodNullable<z.ZodString>;
18
+ isDeleted: z.ZodBoolean;
19
+ subJobs: z.ZodArray<z.ZodObject<{
20
+ uuid: z.ZodString;
21
+ prompt: z.ZodString;
22
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../..").USER_REACTION>>;
23
+ dislikeReason: z.ZodNullable<z.ZodString>;
24
+ externalId: z.ZodNullable<z.ZodString>;
25
+ title: z.ZodString;
26
+ status: z.ZodEnum<{
27
+ completed: import("../..").JOB_STATUS.COMPLETED;
28
+ failed: import("../..").JOB_STATUS.FAILED;
29
+ pending: import("../..").JOB_STATUS.PENDING;
30
+ }>;
31
+ error: z.ZodNullable<z.ZodString>;
32
+ modelId: z.ZodString;
33
+ groupId: z.ZodString;
34
+ previewUrl: z.ZodNullable<z.ZodString>;
35
+ params: z.ZodObject<{
36
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
37
+ uuid: z.ZodString;
38
+ url: z.ZodString;
39
+ name: z.ZodString;
40
+ mimeType: z.ZodString;
41
+ type: z.ZodString;
42
+ size: z.ZodNumber;
43
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
44
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
46
+ }, z.core.$strip>>>;
47
+ styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
48
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ photosCount: z.ZodOptional<z.ZodNumber>;
51
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
+ uuid: z.ZodString;
53
+ url: z.ZodString;
54
+ name: z.ZodString;
55
+ mimeType: z.ZodString;
56
+ type: z.ZodString;
57
+ size: z.ZodNumber;
58
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
59
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
60
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
61
+ }, z.core.$strip>>>;
62
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ uuid: z.ZodString;
64
+ url: z.ZodString;
65
+ name: z.ZodString;
66
+ mimeType: z.ZodString;
67
+ type: z.ZodString;
68
+ size: z.ZodNumber;
69
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
70
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
71
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
72
+ }, z.core.$strip>>>;
73
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
+ uuid: z.ZodString;
75
+ url: z.ZodString;
76
+ name: z.ZodString;
77
+ mimeType: z.ZodString;
78
+ type: z.ZodString;
79
+ size: z.ZodNumber;
80
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
81
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
82
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
83
+ }, z.core.$strip>>>;
84
+ aspectRatio: z.ZodOptional<z.ZodString>;
85
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
86
+ }, z.core.$strip>;
87
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
88
+ attempts: z.ZodArray<z.ZodObject<{
89
+ order: z.ZodNumber;
90
+ attemptId: z.ZodOptional<z.ZodString>;
91
+ status: z.ZodEnum<{
92
+ completed: import("../..").JOB_STATUS.COMPLETED;
93
+ failed: import("../..").JOB_STATUS.FAILED;
94
+ pending: import("../..").JOB_STATUS.PENDING;
95
+ }>;
96
+ error: z.ZodNullable<z.ZodString>;
97
+ timestamp: z.ZodCoercedDate<unknown>;
98
+ }, z.core.$strip>>;
99
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ isPublished: z.ZodBoolean;
102
+ postId: z.ZodNullable<z.ZodString>;
103
+ isDeleted: z.ZodBoolean;
104
+ isFavorite: z.ZodBoolean;
105
+ createdAt: z.ZodCoercedDate<unknown>;
106
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
107
+ updatedAt: z.ZodCoercedDate<unknown>;
108
+ }, z.core.$strip>>;
109
+ createdAt: z.ZodCoercedDate<unknown>;
110
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
111
+ updatedAt: z.ZodCoercedDate<unknown>;
112
+ }, z.core.$strip>;
113
+ export type PhotoSessionGroup = z.infer<typeof PhotoSessionGroupSchema>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionGroupSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const enums_1 = require("../enums");
7
+ const photo_session_job_schema_1 = require("./photo-session-job.schema");
8
+ exports.PhotoSessionGroupSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string(),
10
+ title: zod_1.z.string(),
11
+ prompt: zod_1.z.string(),
12
+ status: zod_1.z.nativeEnum(enums_1.PHOTO_SESSION_GROUP_STATUS),
13
+ error: zod_1.z.string().nullable(),
14
+ modelId: zod_1.z.string(),
15
+ price: zod_1.z.number(),
16
+ tokenReservationId: zod_1.z.string().nullable(),
17
+ params: zod_1.z.unknown(),
18
+ attempts: zod_1.z.array(zod_1.z.unknown()),
19
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE),
20
+ userId: zod_1.z.string().nullable(),
21
+ unregisteredUserId: zod_1.z.string().nullable(),
22
+ isDeleted: zod_1.z.boolean(),
23
+ subJobs: zod_1.z.array(photo_session_job_schema_1.PhotoSessionJobSchema),
24
+ createdAt: zod_1.z.coerce.date(),
25
+ completedAt: zod_1.z.coerce.date().nullable(),
26
+ updatedAt: zod_1.z.coerce.date(),
27
+ });