@purpleschool/gptbot-tools 0.2.62 → 0.2.63-stage2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/build/ai-proxy/routes/ai-proxy.routes.d.ts +1 -0
  2. package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
  3. package/build/index.d.ts +3 -3
  4. package/build/index.js +3 -3
  5. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
  6. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
  7. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
  8. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
  9. package/build/photo-sessions/commands/admin/index.d.ts +3 -0
  10. package/build/{sound-generation/queries → photo-sessions/commands/admin}/index.js +3 -3
  11. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
  12. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
  13. package/build/{sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts → photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts} +2 -2
  14. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
  15. package/build/{sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts → photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts} +2 -2
  16. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
  17. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +85 -0
  18. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +29 -0
  19. package/build/photo-sessions/commands/index.d.ts +10 -0
  20. package/build/{sound-generation → photo-sessions}/commands/index.js +10 -8
  21. package/build/photo-sessions/commands/photo-sessions.command.d.ts +305 -0
  22. package/build/photo-sessions/commands/photo-sessions.command.js +38 -0
  23. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +266 -0
  24. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +20 -0
  25. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +203 -0
  26. package/build/{sound-generation/commands/set-reaction-to-sound-generation-job.command.js → photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js} +8 -8
  27. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +201 -0
  28. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
  29. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +239 -0
  30. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
  31. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +206 -0
  32. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
  33. package/build/photo-sessions/enums/index.d.ts +3 -0
  34. package/build/{sound-generation/routes → photo-sessions/enums}/index.js +3 -1
  35. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +7 -0
  36. package/build/photo-sessions/enums/photo-session-group-status.enum.js +11 -0
  37. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  38. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  39. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  40. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  41. package/build/photo-sessions/models/index.d.ts +5 -0
  42. package/build/photo-sessions/models/index.js +21 -0
  43. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  44. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  45. package/build/photo-sessions/models/photo-session-group.schema.d.ts +116 -0
  46. package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
  47. package/build/photo-sessions/models/photo-session-job.schema.d.ts +169 -0
  48. package/build/photo-sessions/models/photo-session-job.schema.js +51 -0
  49. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  50. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  51. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  52. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  53. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  54. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  55. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  56. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  57. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +238 -0
  58. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
  59. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +257 -0
  60. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
  61. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  62. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  63. package/build/photo-sessions/queries/index.d.ts +5 -0
  64. package/build/{sound-generation/models → photo-sessions/queries}/index.js +5 -5
  65. package/build/photo-sessions/routes/index.d.ts +2 -0
  66. package/build/{sound-generation/enums → photo-sessions/routes}/index.js +2 -1
  67. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  68. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  69. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  70. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  71. package/build/tools/enums/tool-content-type.enum.d.ts +2 -2
  72. package/build/tools/enums/tool-content-type.enum.js +1 -1
  73. package/build/tools/enums/tool-type.enum.d.ts +2 -2
  74. package/build/tools/enums/tool-type.enum.js +1 -1
  75. package/build/tools/events/tool-job-complete.event.d.ts +1 -0
  76. package/build/tools/events/tool-job-failed.event.d.ts +1 -0
  77. package/build/tools/models/global-tools-config.schema.d.ts +69 -25
  78. package/build/tools/models/global-tools-config.schema.js +2 -2
  79. package/build/tools/models/tool-job.schema.d.ts +1 -0
  80. package/build/tools/models/tool-job.schema.js +1 -0
  81. package/build/tools/models/tools-with-configs.schema.d.ts +22 -88
  82. package/build/tools/models/tools-with-configs.schema.js +0 -5
  83. package/build/tools/queries/get-global-tools-config.query.d.ts +134 -46
  84. package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -88
  85. package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
  86. package/build/tts/commands/create-voice-clone.command.js +21 -0
  87. package/build/tts/commands/create-voice-design.command.d.ts +40 -0
  88. package/build/tts/commands/create-voice-design.command.js +20 -0
  89. package/build/tts/commands/delete-voice.command.d.ts +17 -0
  90. package/build/tts/commands/delete-voice.command.js +14 -0
  91. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  92. package/build/tts/commands/download-tts-job.command.js +19 -0
  93. package/build/{sound-generation/commands/get-sound-generation-price.command.d.ts → tts/commands/improve-tts-text.command.d.ts} +6 -8
  94. package/build/tts/commands/improve-tts-text.command.js +16 -0
  95. package/build/tts/commands/index.d.ts +7 -0
  96. package/build/tts/commands/index.js +7 -0
  97. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  98. package/build/tts/commands/retry-tts-job.command.js +2 -0
  99. package/build/tts/commands/select-voice-design.command.d.ts +77 -0
  100. package/build/tts/commands/select-voice-design.command.js +17 -0
  101. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  102. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  103. package/build/tts/commands/tts.command.d.ts +35 -3
  104. package/build/tts/commands/tts.command.js +4 -1
  105. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  106. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  107. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  108. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  109. package/build/tts/commands/update-voice.command.d.ts +78 -0
  110. package/build/tts/commands/update-voice.command.js +18 -0
  111. package/build/tts/enums/index.d.ts +7 -0
  112. package/build/tts/enums/index.js +7 -0
  113. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  114. package/build/tts/enums/tts-download-format.enum.js +9 -0
  115. package/build/tts/enums/voice-category.enum.d.ts +19 -0
  116. package/build/tts/enums/voice-category.enum.js +23 -0
  117. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  118. package/build/tts/enums/voice-gender.enum.js +8 -0
  119. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  120. package/build/tts/enums/voice-source.enum.js +9 -0
  121. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  122. package/build/tts/enums/voice-status.enum.js +9 -0
  123. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  124. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  125. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  126. package/build/tts/enums/voice-tag.enum.js +24 -0
  127. package/build/tts/models/index.d.ts +7 -0
  128. package/build/tts/models/index.js +7 -0
  129. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  130. package/build/tts/models/tts-config.schema.d.ts +11 -0
  131. package/build/tts/models/tts-config.schema.js +5 -0
  132. package/build/tts/models/tts-job.schema.d.ts +34 -2
  133. package/build/tts/models/tts-job.schema.js +22 -2
  134. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  135. package/build/tts/models/tts-model.schema.d.ts +1 -0
  136. package/build/tts/models/tts-model.schema.js +1 -0
  137. package/build/tts/models/voice-category.schema.d.ts +7 -0
  138. package/build/tts/models/voice-category.schema.js +9 -0
  139. package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
  140. package/build/tts/models/voice-design-draft.schema.js +13 -0
  141. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  142. package/build/tts/models/voice-design-sample.schema.js +8 -0
  143. package/build/tts/models/voice-gender.schema.d.ts +7 -0
  144. package/build/tts/models/voice-gender.schema.js +9 -0
  145. package/build/tts/models/voice-source.schema.d.ts +7 -0
  146. package/build/tts/models/voice-source.schema.js +9 -0
  147. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  148. package/build/tts/models/voice-tag.schema.js +11 -0
  149. package/build/tts/models/voice.schema.d.ts +34 -0
  150. package/build/tts/models/voice.schema.js +30 -0
  151. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  152. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  153. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  154. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  155. package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
  156. package/build/tts/queries/find-voice-by-id.query.js +17 -0
  157. package/build/tts/queries/find-voices.query.d.ts +122 -0
  158. package/build/tts/queries/find-voices.query.js +25 -0
  159. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  160. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  161. package/build/tts/queries/index.d.ts +2 -0
  162. package/build/tts/queries/index.js +2 -0
  163. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  164. package/build/tts/routes/tts.amqp.routes.js +9 -0
  165. package/package.json +1 -1
  166. package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +0 -14
  167. package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +0 -14
  168. package/build/sound-generation/commands/get-sound-generation-price.command.js +0 -17
  169. package/build/sound-generation/commands/index.d.ts +0 -8
  170. package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +0 -94
  171. package/build/sound-generation/commands/retry-sound-generation-job.command.js +0 -20
  172. package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +0 -87
  173. package/build/sound-generation/commands/sound-generation.command.d.ts +0 -96
  174. package/build/sound-generation/commands/sound-generation.command.js +0 -27
  175. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +0 -85
  176. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +0 -16
  177. package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +0 -85
  178. package/build/sound-generation/commands/update-sound-generation-job-title.command.js +0 -16
  179. package/build/sound-generation/enums/index.d.ts +0 -1
  180. package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +0 -3
  181. package/build/sound-generation/enums/sound-generation-strategy.enum.js +0 -7
  182. package/build/sound-generation/models/index.d.ts +0 -5
  183. package/build/sound-generation/models/sound-generation-config.schema.d.ts +0 -34
  184. package/build/sound-generation/models/sound-generation-config.schema.js +0 -8
  185. package/build/sound-generation/models/sound-generation-job.schema.d.ts +0 -39
  186. package/build/sound-generation/models/sound-generation-job.schema.js +0 -34
  187. package/build/sound-generation/models/sound-generation-model.schema.d.ts +0 -42
  188. package/build/sound-generation/models/sound-generation-model.schema.js +0 -28
  189. package/build/sound-generation/models/sound-generation-params.schema.d.ts +0 -8
  190. package/build/sound-generation/models/sound-generation-params.schema.js +0 -10
  191. package/build/sound-generation/models/sound-generation-result.schema.d.ts +0 -7
  192. package/build/sound-generation/models/sound-generation-result.schema.js +0 -9
  193. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +0 -84
  194. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +0 -15
  195. package/build/sound-generation/queries/find-sound-generation-jobs.query.d.ts +0 -102
  196. package/build/sound-generation/queries/find-sound-generation-jobs.query.js +0 -35
  197. package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +0 -76
  198. package/build/sound-generation/queries/get-sound-generation-config.query.js +0 -10
  199. package/build/sound-generation/queries/index.d.ts +0 -3
  200. package/build/sound-generation/routes/index.d.ts +0 -1
  201. package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +0 -13
  202. package/build/sound-generation/routes/sound-generation.amqp.routes.js +0 -16
  203. /package/build/{sound-generation → photo-sessions}/index.d.ts +0 -0
  204. /package/build/{sound-generation → photo-sessions}/index.js +0 -0
@@ -0,0 +1,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,116 @@
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<typeof import("../..").JOB_STATUS>;
27
+ error: z.ZodNullable<z.ZodString>;
28
+ modelId: z.ZodString;
29
+ groupId: z.ZodString;
30
+ previewUrl: z.ZodNullable<z.ZodString>;
31
+ params: z.ZodObject<{
32
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ uuid: z.ZodString;
34
+ url: z.ZodString;
35
+ name: z.ZodString;
36
+ mimeType: z.ZodString;
37
+ type: z.ZodString;
38
+ size: z.ZodNumber;
39
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
40
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
41
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
42
+ }, z.core.$strip>>>;
43
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
+ referenceFile: z.ZodOptional<z.ZodObject<{
45
+ uuid: z.ZodString;
46
+ url: z.ZodString;
47
+ name: z.ZodString;
48
+ mimeType: z.ZodString;
49
+ type: z.ZodString;
50
+ size: z.ZodNumber;
51
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
52
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
53
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
54
+ }, z.core.$strip>>;
55
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
59
+ uuid: z.ZodString;
60
+ url: z.ZodString;
61
+ name: z.ZodString;
62
+ mimeType: z.ZodString;
63
+ type: z.ZodString;
64
+ size: z.ZodNumber;
65
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
66
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
67
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
68
+ }, z.core.$strip>>>;
69
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
+ uuid: z.ZodString;
71
+ url: z.ZodString;
72
+ name: z.ZodString;
73
+ mimeType: z.ZodString;
74
+ type: z.ZodString;
75
+ size: z.ZodNumber;
76
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
77
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
78
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
79
+ }, z.core.$strip>>>;
80
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
+ uuid: z.ZodString;
82
+ url: z.ZodString;
83
+ name: z.ZodString;
84
+ mimeType: z.ZodString;
85
+ type: z.ZodString;
86
+ size: z.ZodNumber;
87
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
88
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
89
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
90
+ }, z.core.$strip>>>;
91
+ aspectRatio: z.ZodOptional<z.ZodString>;
92
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
93
+ }, z.core.$strip>;
94
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
95
+ attempts: z.ZodArray<z.ZodObject<{
96
+ order: z.ZodNumber;
97
+ attemptId: z.ZodOptional<z.ZodString>;
98
+ status: z.ZodEnum<typeof import("../..").JOB_STATUS>;
99
+ error: z.ZodNullable<z.ZodString>;
100
+ timestamp: z.ZodDate;
101
+ }, z.core.$strip>>;
102
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ isPublished: z.ZodBoolean;
105
+ postId: z.ZodNullable<z.ZodString>;
106
+ isDeleted: z.ZodBoolean;
107
+ isFavorite: z.ZodBoolean;
108
+ createdAt: z.ZodDate;
109
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
110
+ updatedAt: z.ZodDate;
111
+ }, z.core.$strip>>;
112
+ createdAt: z.ZodDate;
113
+ completedAt: z.ZodNullable<z.ZodDate>;
114
+ updatedAt: z.ZodDate;
115
+ }, z.core.$strip>;
116
+ 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.date(),
25
+ completedAt: zod_1.z.date().nullable(),
26
+ updatedAt: zod_1.z.date(),
27
+ });
@@ -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.ZodDate;
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.ZodDate;
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.ZodDate;
166
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
167
+ updatedAt: z.ZodDate;
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.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.date(),
49
+ completedAt: zod_1.z.date().nullable().optional(),
50
+ updatedAt: zod_1.z.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.ZodDate;
67
+ updatedAt: z.ZodDate;
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.date(),
41
+ updatedAt: zod_1.z.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.ZodDate;
9
+ updatedAt: z.ZodDate;
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.ZodDate;
24
+ updatedAt: z.ZodDate;
25
+ }, z.core.$strip>>;
26
+ createdAt: z.ZodDate;
27
+ updatedAt: z.ZodDate;
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.date(),
12
+ updatedAt: zod_1.z.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.date(),
21
+ updatedAt: zod_1.z.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
+ }