@purpleschool/gptbot-tools 0.2.65 → 0.2.66-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 (175) 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/image-generation/enums/image-generation-model-strategy.enum.d.ts +1 -2
  4. package/build/image-generation/enums/image-generation-model-strategy.enum.js +0 -2
  5. package/build/index.d.ts +3 -0
  6. package/build/index.js +3 -0
  7. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
  8. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
  9. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
  10. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
  11. package/build/photo-sessions/commands/admin/index.d.ts +3 -0
  12. package/build/photo-sessions/commands/admin/index.js +19 -0
  13. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
  14. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
  15. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
  16. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
  17. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
  18. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
  19. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +85 -0
  20. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +29 -0
  21. package/build/photo-sessions/commands/index.d.ts +10 -0
  22. package/build/photo-sessions/commands/index.js +26 -0
  23. package/build/photo-sessions/commands/photo-sessions.command.d.ts +305 -0
  24. package/build/photo-sessions/commands/photo-sessions.command.js +38 -0
  25. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +266 -0
  26. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +20 -0
  27. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +203 -0
  28. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
  29. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +201 -0
  30. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
  31. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +239 -0
  32. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
  33. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +206 -0
  34. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
  35. package/build/photo-sessions/enums/index.d.ts +3 -0
  36. package/build/photo-sessions/enums/index.js +19 -0
  37. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +7 -0
  38. package/build/photo-sessions/enums/photo-session-group-status.enum.js +11 -0
  39. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  40. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  41. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  42. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  43. package/build/photo-sessions/index.d.ts +5 -0
  44. package/build/photo-sessions/index.js +21 -0
  45. package/build/photo-sessions/models/index.d.ts +5 -0
  46. package/build/photo-sessions/models/index.js +21 -0
  47. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  48. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  49. package/build/photo-sessions/models/photo-session-group.schema.d.ts +116 -0
  50. package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
  51. package/build/photo-sessions/models/photo-session-job.schema.d.ts +169 -0
  52. package/build/photo-sessions/models/photo-session-job.schema.js +51 -0
  53. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  54. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  55. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  56. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  57. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  58. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  59. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  60. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  61. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +238 -0
  62. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
  63. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +257 -0
  64. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
  65. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  66. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  67. package/build/photo-sessions/queries/index.d.ts +5 -0
  68. package/build/photo-sessions/queries/index.js +21 -0
  69. package/build/photo-sessions/routes/index.d.ts +2 -0
  70. package/build/photo-sessions/routes/index.js +18 -0
  71. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  72. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  73. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  74. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  75. package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
  76. package/build/tools/enums/tool-content-type.enum.js +1 -0
  77. package/build/tools/enums/tool-group.enum.d.ts +1 -1
  78. package/build/tools/enums/tool-group.enum.js +1 -1
  79. package/build/tools/enums/tool-type.enum.d.ts +1 -0
  80. package/build/tools/enums/tool-type.enum.js +1 -0
  81. package/build/tools/events/tool-job-complete.event.d.ts +1 -0
  82. package/build/tools/events/tool-job-failed.event.d.ts +1 -0
  83. package/build/tools/models/global-tools-config.schema.d.ts +76 -0
  84. package/build/tools/models/global-tools-config.schema.js +2 -0
  85. package/build/tools/models/tool-group.schema.d.ts +0 -1
  86. package/build/tools/models/tool-group.schema.js +0 -1
  87. package/build/tools/models/tool-job.schema.d.ts +1 -0
  88. package/build/tools/models/tool-job.schema.js +1 -0
  89. package/build/tools/models/tools-with-configs.schema.d.ts +22 -0
  90. package/build/tools/queries/find-grouped-tools.query.d.ts +0 -2
  91. package/build/tools/queries/get-global-tools-config.query.d.ts +152 -0
  92. package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -0
  93. package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
  94. package/build/tts/commands/create-voice-clone.command.js +21 -0
  95. package/build/tts/commands/create-voice-design.command.d.ts +40 -0
  96. package/build/tts/commands/create-voice-design.command.js +20 -0
  97. package/build/tts/commands/delete-voice.command.d.ts +17 -0
  98. package/build/tts/commands/delete-voice.command.js +14 -0
  99. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  100. package/build/tts/commands/download-tts-job.command.js +19 -0
  101. package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
  102. package/build/tts/commands/improve-tts-text.command.js +16 -0
  103. package/build/tts/commands/index.d.ts +7 -0
  104. package/build/tts/commands/index.js +7 -0
  105. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  106. package/build/tts/commands/retry-tts-job.command.js +2 -0
  107. package/build/tts/commands/select-voice-design.command.d.ts +77 -0
  108. package/build/tts/commands/select-voice-design.command.js +17 -0
  109. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  110. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  111. package/build/tts/commands/tts.command.d.ts +35 -3
  112. package/build/tts/commands/tts.command.js +4 -1
  113. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  114. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  115. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  116. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  117. package/build/tts/commands/update-voice.command.d.ts +78 -0
  118. package/build/tts/commands/update-voice.command.js +18 -0
  119. package/build/tts/enums/index.d.ts +7 -0
  120. package/build/tts/enums/index.js +7 -0
  121. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  122. package/build/tts/enums/tts-download-format.enum.js +9 -0
  123. package/build/tts/enums/voice-category.enum.d.ts +19 -0
  124. package/build/tts/enums/voice-category.enum.js +23 -0
  125. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  126. package/build/tts/enums/voice-gender.enum.js +8 -0
  127. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  128. package/build/tts/enums/voice-source.enum.js +9 -0
  129. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  130. package/build/tts/enums/voice-status.enum.js +9 -0
  131. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  132. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  133. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  134. package/build/tts/enums/voice-tag.enum.js +24 -0
  135. package/build/tts/models/index.d.ts +7 -0
  136. package/build/tts/models/index.js +7 -0
  137. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  138. package/build/tts/models/tts-config.schema.d.ts +11 -0
  139. package/build/tts/models/tts-config.schema.js +5 -0
  140. package/build/tts/models/tts-job.schema.d.ts +34 -2
  141. package/build/tts/models/tts-job.schema.js +22 -2
  142. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  143. package/build/tts/models/tts-model.schema.d.ts +1 -0
  144. package/build/tts/models/tts-model.schema.js +1 -0
  145. package/build/tts/models/voice-category.schema.d.ts +7 -0
  146. package/build/tts/models/voice-category.schema.js +9 -0
  147. package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
  148. package/build/tts/models/voice-design-draft.schema.js +13 -0
  149. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  150. package/build/tts/models/voice-design-sample.schema.js +8 -0
  151. package/build/tts/models/voice-gender.schema.d.ts +7 -0
  152. package/build/tts/models/voice-gender.schema.js +9 -0
  153. package/build/tts/models/voice-source.schema.d.ts +7 -0
  154. package/build/tts/models/voice-source.schema.js +9 -0
  155. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  156. package/build/tts/models/voice-tag.schema.js +11 -0
  157. package/build/tts/models/voice.schema.d.ts +34 -0
  158. package/build/tts/models/voice.schema.js +30 -0
  159. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  160. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  161. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  162. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  163. package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
  164. package/build/tts/queries/find-voice-by-id.query.js +17 -0
  165. package/build/tts/queries/find-voices.query.d.ts +122 -0
  166. package/build/tts/queries/find-voices.query.js +25 -0
  167. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  168. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  169. package/build/tts/queries/index.d.ts +2 -0
  170. package/build/tts/queries/index.js +2 -0
  171. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  172. package/build/tts/routes/tts.amqp.routes.js +9 -0
  173. package/build/video/enums/video-strategy.enum.d.ts +1 -2
  174. package/build/video/enums/video-strategy.enum.js +0 -1
  175. package/package.json +1 -1
@@ -0,0 +1,169 @@
1
+ import { z } from 'zod';
2
+ import { JOB_STATUS } from '../../tools';
3
+ import { USER_REACTION } from '../../common';
4
+ export declare const PhotoSessionJobParamsSchema: z.ZodObject<{
5
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ url: z.ZodString;
8
+ name: z.ZodString;
9
+ mimeType: z.ZodString;
10
+ type: z.ZodString;
11
+ size: z.ZodNumber;
12
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
13
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
15
+ }, z.core.$strip>>>;
16
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ referenceFile: z.ZodOptional<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ url: z.ZodString;
20
+ name: z.ZodString;
21
+ mimeType: z.ZodString;
22
+ type: z.ZodString;
23
+ size: z.ZodNumber;
24
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
25
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
27
+ }, z.core.$strip>>;
28
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
+ uuid: z.ZodString;
33
+ url: z.ZodString;
34
+ name: z.ZodString;
35
+ mimeType: z.ZodString;
36
+ type: z.ZodString;
37
+ size: z.ZodNumber;
38
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
39
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
41
+ }, z.core.$strip>>>;
42
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
+ uuid: z.ZodString;
44
+ url: z.ZodString;
45
+ name: z.ZodString;
46
+ mimeType: z.ZodString;
47
+ type: z.ZodString;
48
+ size: z.ZodNumber;
49
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
50
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
51
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
52
+ }, z.core.$strip>>>;
53
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
+ uuid: z.ZodString;
55
+ url: z.ZodString;
56
+ name: z.ZodString;
57
+ mimeType: z.ZodString;
58
+ type: z.ZodString;
59
+ size: z.ZodNumber;
60
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
61
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
63
+ }, z.core.$strip>>>;
64
+ aspectRatio: z.ZodOptional<z.ZodString>;
65
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
66
+ }, z.core.$strip>;
67
+ export type PhotoSessionJobParams = z.infer<typeof PhotoSessionJobParamsSchema>;
68
+ export declare const PhotoSessionJobAttemptSchema: z.ZodObject<{
69
+ order: z.ZodNumber;
70
+ attemptId: z.ZodOptional<z.ZodString>;
71
+ status: z.ZodEnum<typeof JOB_STATUS>;
72
+ error: z.ZodNullable<z.ZodString>;
73
+ timestamp: z.ZodCoercedDate<unknown>;
74
+ }, z.core.$strip>;
75
+ export type PhotoSessionJobAttempt = z.infer<typeof PhotoSessionJobAttemptSchema>;
76
+ export declare const PhotoSessionJobSchema: z.ZodObject<{
77
+ uuid: z.ZodString;
78
+ prompt: z.ZodString;
79
+ reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
80
+ dislikeReason: z.ZodNullable<z.ZodString>;
81
+ externalId: z.ZodNullable<z.ZodString>;
82
+ title: z.ZodString;
83
+ status: z.ZodEnum<typeof JOB_STATUS>;
84
+ error: z.ZodNullable<z.ZodString>;
85
+ modelId: z.ZodString;
86
+ groupId: z.ZodString;
87
+ previewUrl: z.ZodNullable<z.ZodString>;
88
+ params: z.ZodObject<{
89
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
+ uuid: z.ZodString;
91
+ url: z.ZodString;
92
+ name: z.ZodString;
93
+ mimeType: z.ZodString;
94
+ type: z.ZodString;
95
+ size: z.ZodNumber;
96
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
97
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
98
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
99
+ }, z.core.$strip>>>;
100
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
+ referenceFile: z.ZodOptional<z.ZodObject<{
102
+ uuid: z.ZodString;
103
+ url: z.ZodString;
104
+ name: z.ZodString;
105
+ mimeType: z.ZodString;
106
+ type: z.ZodString;
107
+ size: z.ZodNumber;
108
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
109
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
110
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
111
+ }, z.core.$strip>>;
112
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
115
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
116
+ uuid: z.ZodString;
117
+ url: z.ZodString;
118
+ name: z.ZodString;
119
+ mimeType: z.ZodString;
120
+ type: z.ZodString;
121
+ size: z.ZodNumber;
122
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
123
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
124
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
125
+ }, z.core.$strip>>>;
126
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
127
+ uuid: z.ZodString;
128
+ url: z.ZodString;
129
+ name: z.ZodString;
130
+ mimeType: z.ZodString;
131
+ type: z.ZodString;
132
+ size: z.ZodNumber;
133
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
134
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
135
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
136
+ }, z.core.$strip>>>;
137
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
+ uuid: z.ZodString;
139
+ url: z.ZodString;
140
+ name: z.ZodString;
141
+ mimeType: z.ZodString;
142
+ type: z.ZodString;
143
+ size: z.ZodNumber;
144
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
145
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
146
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
147
+ }, z.core.$strip>>>;
148
+ aspectRatio: z.ZodOptional<z.ZodString>;
149
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
150
+ }, z.core.$strip>;
151
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
152
+ attempts: z.ZodArray<z.ZodObject<{
153
+ order: z.ZodNumber;
154
+ attemptId: z.ZodOptional<z.ZodString>;
155
+ status: z.ZodEnum<typeof JOB_STATUS>;
156
+ error: z.ZodNullable<z.ZodString>;
157
+ timestamp: z.ZodCoercedDate<unknown>;
158
+ }, z.core.$strip>>;
159
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ isPublished: z.ZodBoolean;
162
+ postId: z.ZodNullable<z.ZodString>;
163
+ isDeleted: z.ZodBoolean;
164
+ isFavorite: z.ZodBoolean;
165
+ createdAt: z.ZodCoercedDate<unknown>;
166
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
167
+ updatedAt: z.ZodCoercedDate<unknown>;
168
+ }, z.core.$strip>;
169
+ export type PhotoSessionJob = z.infer<typeof PhotoSessionJobSchema>;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionJobSchema = exports.PhotoSessionJobAttemptSchema = exports.PhotoSessionJobParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const tools_1 = require("../../tools");
6
+ const common_1 = require("../../common");
7
+ exports.PhotoSessionJobParamsSchema = zod_1.z.object({
8
+ attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).max(3).optional(),
9
+ imageUrls: zod_1.z.array(zod_1.z.string()).optional(),
10
+ referenceFile: common_1.AttachedFileSchema.optional(),
11
+ styleId: zod_1.z.string().uuid().nullable().optional(),
12
+ referenceId: zod_1.z.string().uuid().nullable().optional(),
13
+ referenceIds: zod_1.z.array(zod_1.z.string().uuid()).max(6).optional(),
14
+ clothingPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
15
+ hairstylePhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
16
+ accessoriesPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
17
+ aspectRatio: zod_1.z.string().optional(),
18
+ userHasActiveSubscriptionOrProduct: zod_1.z.boolean().optional(),
19
+ });
20
+ exports.PhotoSessionJobAttemptSchema = zod_1.z.object({
21
+ order: zod_1.z.number(),
22
+ attemptId: zod_1.z.string().optional(),
23
+ status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
24
+ error: zod_1.z.string().nullable(),
25
+ timestamp: zod_1.z.coerce.date(),
26
+ });
27
+ exports.PhotoSessionJobSchema = zod_1.z.object({
28
+ uuid: zod_1.z.string(),
29
+ prompt: zod_1.z.string(),
30
+ reaction: zod_1.z.nativeEnum(common_1.USER_REACTION).nullable(),
31
+ dislikeReason: zod_1.z.string().nullable(),
32
+ externalId: zod_1.z.string().nullable(),
33
+ title: zod_1.z.string(),
34
+ status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
35
+ error: zod_1.z.string().nullable(),
36
+ modelId: zod_1.z.string(),
37
+ groupId: zod_1.z.string(),
38
+ previewUrl: zod_1.z.string().nullable(),
39
+ params: exports.PhotoSessionJobParamsSchema,
40
+ imageUrls: zod_1.z.array(zod_1.z.string()).nullable(),
41
+ attempts: zod_1.z.array(exports.PhotoSessionJobAttemptSchema),
42
+ userId: zod_1.z.string().nullable().optional(),
43
+ unregisteredUserId: zod_1.z.string().nullable().optional(),
44
+ isPublished: zod_1.z.boolean(),
45
+ postId: zod_1.z.string().nullable(),
46
+ isDeleted: zod_1.z.boolean(),
47
+ isFavorite: zod_1.z.boolean(),
48
+ createdAt: zod_1.z.coerce.date(),
49
+ completedAt: zod_1.z.coerce.date().nullable().optional(),
50
+ updatedAt: zod_1.z.coerce.date(),
51
+ });
@@ -0,0 +1,69 @@
1
+ import { z } from 'zod';
2
+ import { TOOL_MODEL_STATUS } from '../../common';
3
+ import { PHOTO_SESSION_STRATEGY } from '../enums';
4
+ export declare const PhotoSessionModelParamsSchema: z.ZodObject<{
5
+ imageAttachment: z.ZodObject<{
6
+ supported: z.ZodBoolean;
7
+ maxImages: z.ZodNumber;
8
+ acceptedTypes: z.ZodArray<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
11
+ width: z.ZodNumber;
12
+ height: z.ZodNumber;
13
+ }, z.core.$strip>>;
14
+ }, z.core.$strip>;
15
+ export type PhotoSessionModelParams = z.infer<typeof PhotoSessionModelParamsSchema>;
16
+ export declare const PhotoSessionModelPricingRuleConditionSchema: z.ZodObject<{
17
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
18
+ }, z.core.$strip>;
19
+ export type PhotoSessionModelPricingRuleCondition = z.infer<typeof PhotoSessionModelPricingRuleConditionSchema>;
20
+ export declare const PhotoSessionModelPricingRulesSchema: z.ZodArray<z.ZodObject<{
21
+ condition: z.ZodObject<{
22
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
23
+ }, z.core.$strip>;
24
+ value: z.ZodNumber;
25
+ }, z.core.$strip>>;
26
+ export type PhotoSessionModelPricingRules = z.infer<typeof PhotoSessionModelPricingRulesSchema>;
27
+ export declare const PhotoSessionModelSchema: z.ZodObject<{
28
+ uuid: z.ZodString;
29
+ title: z.ZodString;
30
+ description: z.ZodString;
31
+ aiModel: z.ZodString;
32
+ isNew: z.ZodBoolean;
33
+ tierLabel: z.ZodString;
34
+ pricePerImage: z.ZodNumber;
35
+ order: z.ZodNumber;
36
+ status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
37
+ icons: z.ZodObject<{
38
+ light: z.ZodObject<{
39
+ svg: z.ZodString;
40
+ png: z.ZodString;
41
+ }, z.core.$strip>;
42
+ dark: z.ZodObject<{
43
+ svg: z.ZodString;
44
+ png: z.ZodString;
45
+ }, z.core.$strip>;
46
+ }, z.core.$strip>;
47
+ strategy: z.ZodEnum<typeof PHOTO_SESSION_STRATEGY>;
48
+ maxInputLength: z.ZodNumber;
49
+ params: z.ZodObject<{
50
+ imageAttachment: z.ZodObject<{
51
+ supported: z.ZodBoolean;
52
+ maxImages: z.ZodNumber;
53
+ acceptedTypes: z.ZodArray<z.ZodString>;
54
+ }, z.core.$strip>;
55
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
56
+ width: z.ZodNumber;
57
+ height: z.ZodNumber;
58
+ }, z.core.$strip>>;
59
+ }, z.core.$strip>;
60
+ pricingRules: z.ZodArray<z.ZodObject<{
61
+ condition: z.ZodObject<{
62
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
63
+ }, z.core.$strip>;
64
+ value: z.ZodNumber;
65
+ }, z.core.$strip>>;
66
+ createdAt: z.ZodCoercedDate<unknown>;
67
+ updatedAt: z.ZodCoercedDate<unknown>;
68
+ }, z.core.$strip>;
69
+ export type PhotoSessionModel = z.infer<typeof PhotoSessionModelSchema>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionModelSchema = exports.PhotoSessionModelPricingRulesSchema = exports.PhotoSessionModelPricingRuleConditionSchema = exports.PhotoSessionModelParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const enums_1 = require("../enums");
7
+ exports.PhotoSessionModelParamsSchema = zod_1.z.object({
8
+ imageAttachment: zod_1.z.object({
9
+ supported: zod_1.z.boolean(),
10
+ maxImages: zod_1.z.number(),
11
+ acceptedTypes: zod_1.z.array(zod_1.z.string()),
12
+ }),
13
+ aspectRatio: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
14
+ width: zod_1.z.number(),
15
+ height: zod_1.z.number(),
16
+ })),
17
+ });
18
+ exports.PhotoSessionModelPricingRuleConditionSchema = zod_1.z.object({
19
+ withoutSub: zod_1.z.boolean().optional(),
20
+ });
21
+ exports.PhotoSessionModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
22
+ condition: exports.PhotoSessionModelPricingRuleConditionSchema,
23
+ value: zod_1.z.number(),
24
+ }));
25
+ exports.PhotoSessionModelSchema = zod_1.z.object({
26
+ uuid: zod_1.z.string(),
27
+ title: zod_1.z.string(),
28
+ description: zod_1.z.string(),
29
+ aiModel: zod_1.z.string(),
30
+ isNew: zod_1.z.boolean(),
31
+ tierLabel: zod_1.z.string(),
32
+ pricePerImage: zod_1.z.number(),
33
+ order: zod_1.z.number(),
34
+ status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
35
+ icons: common_1.IconVariantsSchema,
36
+ strategy: zod_1.z.nativeEnum(enums_1.PHOTO_SESSION_STRATEGY),
37
+ maxInputLength: zod_1.z.number(),
38
+ params: exports.PhotoSessionModelParamsSchema,
39
+ pricingRules: exports.PhotoSessionModelPricingRulesSchema,
40
+ createdAt: zod_1.z.coerce.date(),
41
+ updatedAt: zod_1.z.coerce.date(),
42
+ });
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export declare const PhotoSessionStyleReferenceSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ styleId: z.ZodString;
5
+ photoUrl: z.ZodString;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ order: z.ZodNumber;
8
+ createdAt: z.ZodCoercedDate<unknown>;
9
+ updatedAt: z.ZodCoercedDate<unknown>;
10
+ }, z.core.$strip>;
11
+ export type PhotoSessionStyleReference = z.infer<typeof PhotoSessionStyleReferenceSchema>;
12
+ export declare const PhotoSessionStyleSchema: z.ZodObject<{
13
+ uuid: z.ZodString;
14
+ code: z.ZodString;
15
+ title: z.ZodString;
16
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ references: z.ZodArray<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ styleId: z.ZodString;
20
+ photoUrl: z.ZodString;
21
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ order: z.ZodNumber;
23
+ createdAt: z.ZodCoercedDate<unknown>;
24
+ updatedAt: z.ZodCoercedDate<unknown>;
25
+ }, z.core.$strip>>;
26
+ createdAt: z.ZodCoercedDate<unknown>;
27
+ updatedAt: z.ZodCoercedDate<unknown>;
28
+ }, z.core.$strip>;
29
+ export type PhotoSessionStyle = z.infer<typeof PhotoSessionStyleSchema>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionStyleSchema = exports.PhotoSessionStyleReferenceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PhotoSessionStyleReferenceSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string().uuid(),
7
+ styleId: zod_1.z.string().uuid(),
8
+ photoUrl: zod_1.z.string(),
9
+ description: zod_1.z.string().nullable().optional(),
10
+ order: zod_1.z.number().int().min(0).max(5),
11
+ createdAt: zod_1.z.coerce.date(),
12
+ updatedAt: zod_1.z.coerce.date(),
13
+ });
14
+ exports.PhotoSessionStyleSchema = zod_1.z.object({
15
+ uuid: zod_1.z.string().uuid(),
16
+ code: zod_1.z.string(),
17
+ title: zod_1.z.string(),
18
+ description: zod_1.z.string().nullable().optional(),
19
+ references: zod_1.z.array(exports.PhotoSessionStyleReferenceSchema),
20
+ createdAt: zod_1.z.coerce.date(),
21
+ updatedAt: zod_1.z.coerce.date(),
22
+ });
@@ -0,0 +1,46 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindPhotoSessionStyleByIdQuery {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Request = z.infer<typeof RequestSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ isSuccess: z.ZodBoolean;
9
+ data: z.ZodOptional<z.ZodType<{
10
+ uuid: string;
11
+ code: string;
12
+ title: string;
13
+ description?: string | null | undefined;
14
+ references: {
15
+ uuid: string;
16
+ styleId: string;
17
+ photoUrl: string;
18
+ description?: string | null | undefined;
19
+ order: number;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ }[];
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ }, unknown, z.core.$ZodTypeInternals<{
26
+ uuid: string;
27
+ code: string;
28
+ title: string;
29
+ description?: string | null | undefined;
30
+ references: {
31
+ uuid: string;
32
+ styleId: string;
33
+ photoUrl: string;
34
+ description?: string | null | undefined;
35
+ order: number;
36
+ createdAt: Date;
37
+ updatedAt: Date;
38
+ }[];
39
+ createdAt: Date;
40
+ updatedAt: Date;
41
+ }, unknown>>>;
42
+ code: z.ZodOptional<z.ZodString>;
43
+ message: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>;
45
+ type Response = z.infer<typeof ResponseSchema>;
46
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionStyleByIdQuery = void 0;
4
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
5
+ const models_1 = require("../models");
6
+ var FindPhotoSessionStyleByIdQuery;
7
+ (function (FindPhotoSessionStyleByIdQuery) {
8
+ FindPhotoSessionStyleByIdQuery.RequestSchema = models_1.PhotoSessionStyleSchema.pick({ uuid: true });
9
+ FindPhotoSessionStyleByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
10
+ })(FindPhotoSessionStyleByIdQuery || (exports.FindPhotoSessionStyleByIdQuery = FindPhotoSessionStyleByIdQuery = {}));
@@ -0,0 +1,57 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindPhotoSessionStylesQuery {
3
+ const RequestSchema: z.ZodObject<{
4
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5
+ offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
6
+ }, z.core.$strip>;
7
+ type Request = z.infer<typeof RequestSchema>;
8
+ const ResponseSchema: z.ZodObject<{
9
+ isSuccess: z.ZodBoolean;
10
+ data: z.ZodOptional<z.ZodType<{
11
+ data: {
12
+ uuid: string;
13
+ code: string;
14
+ title: string;
15
+ description?: string | null | undefined;
16
+ references: {
17
+ uuid: string;
18
+ styleId: string;
19
+ photoUrl: string;
20
+ description?: string | null | undefined;
21
+ order: number;
22
+ createdAt: Date;
23
+ updatedAt: Date;
24
+ }[];
25
+ createdAt: Date;
26
+ updatedAt: Date;
27
+ }[];
28
+ page: number;
29
+ totalPages: number;
30
+ total: number;
31
+ }, unknown, z.core.$ZodTypeInternals<{
32
+ data: {
33
+ uuid: string;
34
+ code: string;
35
+ title: string;
36
+ description?: string | null | undefined;
37
+ references: {
38
+ uuid: string;
39
+ styleId: string;
40
+ photoUrl: string;
41
+ description?: string | null | undefined;
42
+ order: number;
43
+ createdAt: Date;
44
+ updatedAt: Date;
45
+ }[];
46
+ createdAt: Date;
47
+ updatedAt: Date;
48
+ }[];
49
+ page: number;
50
+ totalPages: number;
51
+ total: number;
52
+ }, unknown>>>;
53
+ code: z.ZodOptional<z.ZodString>;
54
+ message: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strip>;
56
+ type Response = z.infer<typeof ResponseSchema>;
57
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionStylesQuery = 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 FindPhotoSessionStylesQuery;
8
+ (function (FindPhotoSessionStylesQuery) {
9
+ FindPhotoSessionStylesQuery.RequestSchema = zod_1.z.object({
10
+ limit: zod_1.z.coerce.number().min(1).max(48).optional(),
11
+ offset: zod_1.z.coerce.number().min(0).optional(),
12
+ });
13
+ FindPhotoSessionStylesQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
14
+ data: zod_1.z.array(models_1.PhotoSessionStyleSchema),
15
+ page: zod_1.z.number(),
16
+ totalPages: zod_1.z.number(),
17
+ total: zod_1.z.number(),
18
+ }));
19
+ })(FindPhotoSessionStylesQuery || (exports.FindPhotoSessionStylesQuery = FindPhotoSessionStylesQuery = {}));