@purpleschool/gptbot-tools 0.2.66-stage2 → 0.2.66

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 (177) hide show
  1. package/build/ai-proxy/routes/ai-proxy.routes.d.ts +0 -1
  2. package/build/ai-proxy/routes/ai-proxy.routes.js +0 -1
  3. package/build/image-editor/enums/image-editor-strategy.enum.d.ts +1 -0
  4. package/build/image-editor/enums/image-editor-strategy.enum.js +1 -0
  5. package/build/image-generation/enums/image-generation-model-strategy.enum.d.ts +2 -1
  6. package/build/image-generation/enums/image-generation-model-strategy.enum.js +2 -0
  7. package/build/index.d.ts +0 -3
  8. package/build/index.js +0 -3
  9. package/build/tools/enums/tool-content-type.enum.d.ts +0 -1
  10. package/build/tools/enums/tool-content-type.enum.js +0 -1
  11. package/build/tools/enums/tool-group.enum.d.ts +1 -1
  12. package/build/tools/enums/tool-group.enum.js +1 -1
  13. package/build/tools/enums/tool-type.enum.d.ts +0 -1
  14. package/build/tools/enums/tool-type.enum.js +0 -1
  15. package/build/tools/events/tool-job-complete.event.d.ts +0 -1
  16. package/build/tools/events/tool-job-failed.event.d.ts +0 -1
  17. package/build/tools/models/global-tools-config.schema.d.ts +0 -76
  18. package/build/tools/models/global-tools-config.schema.js +0 -2
  19. package/build/tools/models/tool-group.schema.d.ts +1 -0
  20. package/build/tools/models/tool-group.schema.js +1 -0
  21. package/build/tools/models/tool-job.schema.d.ts +0 -1
  22. package/build/tools/models/tool-job.schema.js +0 -1
  23. package/build/tools/models/tools-with-configs.schema.d.ts +0 -22
  24. package/build/tools/queries/find-grouped-tools.query.d.ts +2 -0
  25. package/build/tools/queries/get-global-tools-config.query.d.ts +0 -152
  26. package/build/tools/queries/get-tools-with-configs.query.d.ts +0 -22
  27. package/build/tts/commands/index.d.ts +0 -7
  28. package/build/tts/commands/index.js +0 -7
  29. package/build/tts/commands/retry-tts-job.command.d.ts +2 -29
  30. package/build/tts/commands/retry-tts-job.command.js +0 -2
  31. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
  32. package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
  33. package/build/tts/commands/tts.command.d.ts +3 -35
  34. package/build/tts/commands/tts.command.js +1 -4
  35. package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
  36. package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
  37. package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
  38. package/build/tts/commands/update-tts-job-title.command.js +0 -2
  39. package/build/tts/enums/index.d.ts +0 -7
  40. package/build/tts/enums/index.js +0 -7
  41. package/build/tts/models/index.d.ts +0 -7
  42. package/build/tts/models/index.js +0 -7
  43. package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
  44. package/build/tts/models/tts-config.schema.d.ts +0 -11
  45. package/build/tts/models/tts-config.schema.js +0 -5
  46. package/build/tts/models/tts-job.schema.d.ts +2 -34
  47. package/build/tts/models/tts-job.schema.js +2 -22
  48. package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
  49. package/build/tts/models/tts-model.schema.d.ts +0 -1
  50. package/build/tts/models/tts-model.schema.js +0 -1
  51. package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
  52. package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
  53. package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
  54. package/build/tts/queries/find-tts-jobs.query.js +0 -1
  55. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
  56. package/build/tts/queries/get-tts-config.query.d.ts +0 -22
  57. package/build/tts/queries/index.d.ts +0 -2
  58. package/build/tts/queries/index.js +0 -2
  59. package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
  60. package/build/tts/routes/tts.amqp.routes.js +0 -9
  61. package/build/video/enums/video-strategy.enum.d.ts +2 -1
  62. package/build/video/enums/video-strategy.enum.js +1 -0
  63. package/package.json +1 -1
  64. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
  65. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
  66. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
  67. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
  68. package/build/photo-sessions/commands/admin/index.d.ts +0 -3
  69. package/build/photo-sessions/commands/admin/index.js +0 -19
  70. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -54
  71. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -18
  72. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +0 -17
  73. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -19
  74. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +0 -16
  75. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
  76. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -85
  77. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -29
  78. package/build/photo-sessions/commands/index.d.ts +0 -10
  79. package/build/photo-sessions/commands/index.js +0 -26
  80. package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -305
  81. package/build/photo-sessions/commands/photo-sessions.command.js +0 -38
  82. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -266
  83. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -20
  84. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -203
  85. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +0 -27
  86. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -201
  87. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
  88. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -239
  89. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
  90. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -206
  91. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
  92. package/build/photo-sessions/enums/index.d.ts +0 -3
  93. package/build/photo-sessions/enums/index.js +0 -19
  94. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +0 -7
  95. package/build/photo-sessions/enums/photo-session-group-status.enum.js +0 -11
  96. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
  97. package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
  98. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
  99. package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
  100. package/build/photo-sessions/index.d.ts +0 -5
  101. package/build/photo-sessions/index.js +0 -21
  102. package/build/photo-sessions/models/index.d.ts +0 -5
  103. package/build/photo-sessions/models/index.js +0 -21
  104. package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
  105. package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
  106. package/build/photo-sessions/models/photo-session-group.schema.d.ts +0 -116
  107. package/build/photo-sessions/models/photo-session-group.schema.js +0 -27
  108. package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -169
  109. package/build/photo-sessions/models/photo-session-job.schema.js +0 -51
  110. package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
  111. package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
  112. package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
  113. package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
  114. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
  115. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
  116. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
  117. package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
  118. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -238
  119. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -18
  120. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +0 -257
  121. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +0 -33
  122. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
  123. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
  124. package/build/photo-sessions/queries/index.d.ts +0 -5
  125. package/build/photo-sessions/queries/index.js +0 -21
  126. package/build/photo-sessions/routes/index.d.ts +0 -2
  127. package/build/photo-sessions/routes/index.js +0 -18
  128. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
  129. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
  130. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
  131. package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
  132. package/build/tts/commands/create-voice-clone.command.d.ts +0 -81
  133. package/build/tts/commands/create-voice-clone.command.js +0 -21
  134. package/build/tts/commands/create-voice-design.command.d.ts +0 -40
  135. package/build/tts/commands/create-voice-design.command.js +0 -20
  136. package/build/tts/commands/delete-voice.command.d.ts +0 -17
  137. package/build/tts/commands/delete-voice.command.js +0 -14
  138. package/build/tts/commands/download-tts-job.command.d.ts +0 -25
  139. package/build/tts/commands/download-tts-job.command.js +0 -19
  140. package/build/tts/commands/improve-tts-text.command.d.ts +0 -22
  141. package/build/tts/commands/improve-tts-text.command.js +0 -16
  142. package/build/tts/commands/select-voice-design.command.d.ts +0 -77
  143. package/build/tts/commands/select-voice-design.command.js +0 -17
  144. package/build/tts/commands/update-voice.command.d.ts +0 -78
  145. package/build/tts/commands/update-voice.command.js +0 -18
  146. package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
  147. package/build/tts/enums/tts-download-format.enum.js +0 -9
  148. package/build/tts/enums/voice-category.enum.d.ts +0 -19
  149. package/build/tts/enums/voice-category.enum.js +0 -23
  150. package/build/tts/enums/voice-gender.enum.d.ts +0 -4
  151. package/build/tts/enums/voice-gender.enum.js +0 -8
  152. package/build/tts/enums/voice-source.enum.d.ts +0 -5
  153. package/build/tts/enums/voice-source.enum.js +0 -9
  154. package/build/tts/enums/voice-status.enum.d.ts +0 -5
  155. package/build/tts/enums/voice-status.enum.js +0 -9
  156. package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
  157. package/build/tts/enums/voice-tag-group.enum.js +0 -9
  158. package/build/tts/enums/voice-tag.enum.d.ts +0 -20
  159. package/build/tts/enums/voice-tag.enum.js +0 -24
  160. package/build/tts/models/voice-category.schema.d.ts +0 -7
  161. package/build/tts/models/voice-category.schema.js +0 -9
  162. package/build/tts/models/voice-design-draft.schema.d.ts +0 -13
  163. package/build/tts/models/voice-design-draft.schema.js +0 -13
  164. package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
  165. package/build/tts/models/voice-design-sample.schema.js +0 -8
  166. package/build/tts/models/voice-gender.schema.d.ts +0 -7
  167. package/build/tts/models/voice-gender.schema.js +0 -9
  168. package/build/tts/models/voice-source.schema.d.ts +0 -7
  169. package/build/tts/models/voice-source.schema.js +0 -9
  170. package/build/tts/models/voice-tag.schema.d.ts +0 -9
  171. package/build/tts/models/voice-tag.schema.js +0 -11
  172. package/build/tts/models/voice.schema.d.ts +0 -34
  173. package/build/tts/models/voice.schema.js +0 -30
  174. package/build/tts/queries/find-voice-by-id.query.d.ts +0 -77
  175. package/build/tts/queries/find-voice-by-id.query.js +0 -17
  176. package/build/tts/queries/find-voices.query.d.ts +0 -122
  177. package/build/tts/queries/find-voices.query.js +0 -25
@@ -1,169 +0,0 @@
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>;
@@ -1,51 +0,0 @@
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
- });
@@ -1,69 +0,0 @@
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>;
@@ -1,42 +0,0 @@
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
- });
@@ -1,29 +0,0 @@
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>;
@@ -1,22 +0,0 @@
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
- });
@@ -1,46 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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 = {}));
@@ -1,57 +0,0 @@
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
- }
@@ -1,19 +0,0 @@
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 = {}));