@purpleschool/gptbot-tools 0.2.63 → 0.2.64-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 (207) 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-group.schema.d.ts +0 -1
  80. package/build/tools/models/tool-group.schema.js +0 -1
  81. package/build/tools/models/tool-job.schema.d.ts +1 -0
  82. package/build/tools/models/tool-job.schema.js +1 -0
  83. package/build/tools/models/tools-with-configs.schema.d.ts +22 -88
  84. package/build/tools/models/tools-with-configs.schema.js +0 -5
  85. package/build/tools/queries/find-grouped-tools.query.d.ts +0 -2
  86. package/build/tools/queries/get-global-tools-config.query.d.ts +134 -46
  87. package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -88
  88. package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
  89. package/build/tts/commands/create-voice-clone.command.js +21 -0
  90. package/build/tts/commands/create-voice-design.command.d.ts +40 -0
  91. package/build/tts/commands/create-voice-design.command.js +20 -0
  92. package/build/tts/commands/delete-voice.command.d.ts +17 -0
  93. package/build/tts/commands/delete-voice.command.js +14 -0
  94. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  95. package/build/tts/commands/download-tts-job.command.js +19 -0
  96. package/build/{sound-generation/commands/get-sound-generation-price.command.d.ts → tts/commands/improve-tts-text.command.d.ts} +6 -8
  97. package/build/tts/commands/improve-tts-text.command.js +16 -0
  98. package/build/tts/commands/index.d.ts +7 -0
  99. package/build/tts/commands/index.js +7 -0
  100. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  101. package/build/tts/commands/retry-tts-job.command.js +2 -0
  102. package/build/tts/commands/select-voice-design.command.d.ts +77 -0
  103. package/build/tts/commands/select-voice-design.command.js +17 -0
  104. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  105. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  106. package/build/tts/commands/tts.command.d.ts +35 -3
  107. package/build/tts/commands/tts.command.js +4 -1
  108. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  109. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  110. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  111. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  112. package/build/tts/commands/update-voice.command.d.ts +78 -0
  113. package/build/tts/commands/update-voice.command.js +18 -0
  114. package/build/tts/enums/index.d.ts +7 -0
  115. package/build/tts/enums/index.js +7 -0
  116. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  117. package/build/tts/enums/tts-download-format.enum.js +9 -0
  118. package/build/tts/enums/voice-category.enum.d.ts +19 -0
  119. package/build/tts/enums/voice-category.enum.js +23 -0
  120. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  121. package/build/tts/enums/voice-gender.enum.js +8 -0
  122. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  123. package/build/tts/enums/voice-source.enum.js +9 -0
  124. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  125. package/build/tts/enums/voice-status.enum.js +9 -0
  126. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  127. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  128. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  129. package/build/tts/enums/voice-tag.enum.js +24 -0
  130. package/build/tts/models/index.d.ts +7 -0
  131. package/build/tts/models/index.js +7 -0
  132. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  133. package/build/tts/models/tts-config.schema.d.ts +11 -0
  134. package/build/tts/models/tts-config.schema.js +5 -0
  135. package/build/tts/models/tts-job.schema.d.ts +34 -2
  136. package/build/tts/models/tts-job.schema.js +22 -2
  137. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  138. package/build/tts/models/tts-model.schema.d.ts +1 -0
  139. package/build/tts/models/tts-model.schema.js +1 -0
  140. package/build/tts/models/voice-category.schema.d.ts +7 -0
  141. package/build/tts/models/voice-category.schema.js +9 -0
  142. package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
  143. package/build/tts/models/voice-design-draft.schema.js +13 -0
  144. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  145. package/build/tts/models/voice-design-sample.schema.js +8 -0
  146. package/build/tts/models/voice-gender.schema.d.ts +7 -0
  147. package/build/tts/models/voice-gender.schema.js +9 -0
  148. package/build/tts/models/voice-source.schema.d.ts +7 -0
  149. package/build/tts/models/voice-source.schema.js +9 -0
  150. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  151. package/build/tts/models/voice-tag.schema.js +11 -0
  152. package/build/tts/models/voice.schema.d.ts +34 -0
  153. package/build/tts/models/voice.schema.js +30 -0
  154. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  155. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  156. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  157. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  158. package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
  159. package/build/tts/queries/find-voice-by-id.query.js +17 -0
  160. package/build/tts/queries/find-voices.query.d.ts +122 -0
  161. package/build/tts/queries/find-voices.query.js +25 -0
  162. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  163. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  164. package/build/tts/queries/index.d.ts +2 -0
  165. package/build/tts/queries/index.js +2 -0
  166. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  167. package/build/tts/routes/tts.amqp.routes.js +9 -0
  168. package/package.json +1 -1
  169. package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +0 -14
  170. package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +0 -14
  171. package/build/sound-generation/commands/get-sound-generation-price.command.js +0 -17
  172. package/build/sound-generation/commands/index.d.ts +0 -8
  173. package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +0 -94
  174. package/build/sound-generation/commands/retry-sound-generation-job.command.js +0 -20
  175. package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +0 -87
  176. package/build/sound-generation/commands/sound-generation.command.d.ts +0 -96
  177. package/build/sound-generation/commands/sound-generation.command.js +0 -27
  178. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +0 -85
  179. package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +0 -16
  180. package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +0 -85
  181. package/build/sound-generation/commands/update-sound-generation-job-title.command.js +0 -16
  182. package/build/sound-generation/enums/index.d.ts +0 -1
  183. package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +0 -3
  184. package/build/sound-generation/enums/sound-generation-strategy.enum.js +0 -7
  185. package/build/sound-generation/models/index.d.ts +0 -5
  186. package/build/sound-generation/models/sound-generation-config.schema.d.ts +0 -34
  187. package/build/sound-generation/models/sound-generation-config.schema.js +0 -8
  188. package/build/sound-generation/models/sound-generation-job.schema.d.ts +0 -39
  189. package/build/sound-generation/models/sound-generation-job.schema.js +0 -34
  190. package/build/sound-generation/models/sound-generation-model.schema.d.ts +0 -42
  191. package/build/sound-generation/models/sound-generation-model.schema.js +0 -28
  192. package/build/sound-generation/models/sound-generation-params.schema.d.ts +0 -8
  193. package/build/sound-generation/models/sound-generation-params.schema.js +0 -10
  194. package/build/sound-generation/models/sound-generation-result.schema.d.ts +0 -7
  195. package/build/sound-generation/models/sound-generation-result.schema.js +0 -9
  196. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +0 -84
  197. package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +0 -15
  198. package/build/sound-generation/queries/find-sound-generation-jobs.query.d.ts +0 -102
  199. package/build/sound-generation/queries/find-sound-generation-jobs.query.js +0 -35
  200. package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +0 -76
  201. package/build/sound-generation/queries/get-sound-generation-config.query.js +0 -10
  202. package/build/sound-generation/queries/index.d.ts +0 -3
  203. package/build/sound-generation/routes/index.d.ts +0 -1
  204. package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +0 -13
  205. package/build/sound-generation/routes/sound-generation.amqp.routes.js +0 -16
  206. /package/build/{sound-generation → photo-sessions}/index.d.ts +0 -0
  207. /package/build/{sound-generation → photo-sessions}/index.js +0 -0
@@ -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 = {}));
@@ -0,0 +1,238 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindPhotoSessionsJobByIdQuery {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ }, z.core.$strip>;
8
+ type Request = z.infer<typeof RequestSchema>;
9
+ const ResponseSchema: z.ZodObject<{
10
+ isSuccess: z.ZodBoolean;
11
+ data: z.ZodOptional<z.ZodType<{
12
+ uuid: string;
13
+ title: string;
14
+ prompt: string;
15
+ status: import("..").PHOTO_SESSION_GROUP_STATUS;
16
+ error: string | null;
17
+ modelId: string;
18
+ price: number;
19
+ tokenReservationId: string | null;
20
+ params: unknown;
21
+ attempts: unknown[];
22
+ scope: import("../..").JOB_SCOPE;
23
+ userId: string | null;
24
+ unregisteredUserId: string | null;
25
+ isDeleted: boolean;
26
+ subJobs: {
27
+ uuid: string;
28
+ prompt: string;
29
+ reaction: import("../..").USER_REACTION | null;
30
+ dislikeReason: string | null;
31
+ externalId: string | null;
32
+ title: string;
33
+ status: import("../..").JOB_STATUS;
34
+ error: string | null;
35
+ modelId: string;
36
+ groupId: string;
37
+ previewUrl: string | null;
38
+ params: {
39
+ attachedFiles?: {
40
+ uuid: string;
41
+ url: string;
42
+ name: string;
43
+ mimeType: string;
44
+ type: string;
45
+ size: number;
46
+ duration?: number | null | undefined;
47
+ content?: string | null | undefined;
48
+ contentLength?: number | null | undefined;
49
+ }[] | undefined;
50
+ imageUrls?: string[] | undefined;
51
+ referenceFile?: {
52
+ uuid: string;
53
+ url: string;
54
+ name: string;
55
+ mimeType: string;
56
+ type: string;
57
+ size: number;
58
+ duration?: number | null | undefined;
59
+ content?: string | null | undefined;
60
+ contentLength?: number | null | undefined;
61
+ } | undefined;
62
+ styleId?: string | null | undefined;
63
+ referenceId?: string | null | undefined;
64
+ referenceIds?: string[] | undefined;
65
+ clothingPhotos?: {
66
+ uuid: string;
67
+ url: string;
68
+ name: string;
69
+ mimeType: string;
70
+ type: string;
71
+ size: number;
72
+ duration?: number | null | undefined;
73
+ content?: string | null | undefined;
74
+ contentLength?: number | null | undefined;
75
+ }[] | undefined;
76
+ hairstylePhotos?: {
77
+ uuid: string;
78
+ url: string;
79
+ name: string;
80
+ mimeType: string;
81
+ type: string;
82
+ size: number;
83
+ duration?: number | null | undefined;
84
+ content?: string | null | undefined;
85
+ contentLength?: number | null | undefined;
86
+ }[] | undefined;
87
+ accessoriesPhotos?: {
88
+ uuid: string;
89
+ url: string;
90
+ name: string;
91
+ mimeType: string;
92
+ type: string;
93
+ size: number;
94
+ duration?: number | null | undefined;
95
+ content?: string | null | undefined;
96
+ contentLength?: number | null | undefined;
97
+ }[] | undefined;
98
+ aspectRatio?: string | undefined;
99
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
100
+ };
101
+ imageUrls: string[] | null;
102
+ attempts: {
103
+ order: number;
104
+ attemptId?: string | undefined;
105
+ status: import("../..").JOB_STATUS;
106
+ error: string | null;
107
+ timestamp: Date;
108
+ }[];
109
+ userId?: string | null | undefined;
110
+ unregisteredUserId?: string | null | undefined;
111
+ isPublished: boolean;
112
+ postId: string | null;
113
+ isDeleted: boolean;
114
+ isFavorite: boolean;
115
+ createdAt: Date;
116
+ completedAt?: Date | null | undefined;
117
+ updatedAt: Date;
118
+ }[];
119
+ createdAt: Date;
120
+ completedAt: Date | null;
121
+ updatedAt: Date;
122
+ }, unknown, z.core.$ZodTypeInternals<{
123
+ uuid: string;
124
+ title: string;
125
+ prompt: string;
126
+ status: import("..").PHOTO_SESSION_GROUP_STATUS;
127
+ error: string | null;
128
+ modelId: string;
129
+ price: number;
130
+ tokenReservationId: string | null;
131
+ params: unknown;
132
+ attempts: unknown[];
133
+ scope: import("../..").JOB_SCOPE;
134
+ userId: string | null;
135
+ unregisteredUserId: string | null;
136
+ isDeleted: boolean;
137
+ subJobs: {
138
+ uuid: string;
139
+ prompt: string;
140
+ reaction: import("../..").USER_REACTION | null;
141
+ dislikeReason: string | null;
142
+ externalId: string | null;
143
+ title: string;
144
+ status: import("../..").JOB_STATUS;
145
+ error: string | null;
146
+ modelId: string;
147
+ groupId: string;
148
+ previewUrl: string | null;
149
+ params: {
150
+ attachedFiles?: {
151
+ uuid: string;
152
+ url: string;
153
+ name: string;
154
+ mimeType: string;
155
+ type: string;
156
+ size: number;
157
+ duration?: number | null | undefined;
158
+ content?: string | null | undefined;
159
+ contentLength?: number | null | undefined;
160
+ }[] | undefined;
161
+ imageUrls?: string[] | undefined;
162
+ referenceFile?: {
163
+ uuid: string;
164
+ url: string;
165
+ name: string;
166
+ mimeType: string;
167
+ type: string;
168
+ size: number;
169
+ duration?: number | null | undefined;
170
+ content?: string | null | undefined;
171
+ contentLength?: number | null | undefined;
172
+ } | undefined;
173
+ styleId?: string | null | undefined;
174
+ referenceId?: string | null | undefined;
175
+ referenceIds?: string[] | undefined;
176
+ clothingPhotos?: {
177
+ uuid: string;
178
+ url: string;
179
+ name: string;
180
+ mimeType: string;
181
+ type: string;
182
+ size: number;
183
+ duration?: number | null | undefined;
184
+ content?: string | null | undefined;
185
+ contentLength?: number | null | undefined;
186
+ }[] | undefined;
187
+ hairstylePhotos?: {
188
+ uuid: string;
189
+ url: string;
190
+ name: string;
191
+ mimeType: string;
192
+ type: string;
193
+ size: number;
194
+ duration?: number | null | undefined;
195
+ content?: string | null | undefined;
196
+ contentLength?: number | null | undefined;
197
+ }[] | undefined;
198
+ accessoriesPhotos?: {
199
+ uuid: string;
200
+ url: string;
201
+ name: string;
202
+ mimeType: string;
203
+ type: string;
204
+ size: number;
205
+ duration?: number | null | undefined;
206
+ content?: string | null | undefined;
207
+ contentLength?: number | null | undefined;
208
+ }[] | undefined;
209
+ aspectRatio?: string | undefined;
210
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
211
+ };
212
+ imageUrls: string[] | null;
213
+ attempts: {
214
+ order: number;
215
+ attemptId?: string | undefined;
216
+ status: import("../..").JOB_STATUS;
217
+ error: string | null;
218
+ timestamp: Date;
219
+ }[];
220
+ userId?: string | null | undefined;
221
+ unregisteredUserId?: string | null | undefined;
222
+ isPublished: boolean;
223
+ postId: string | null;
224
+ isDeleted: boolean;
225
+ isFavorite: boolean;
226
+ createdAt: Date;
227
+ completedAt?: Date | null | undefined;
228
+ updatedAt: Date;
229
+ }[];
230
+ createdAt: Date;
231
+ completedAt: Date | null;
232
+ updatedAt: Date;
233
+ }, unknown>>>;
234
+ code: z.ZodOptional<z.ZodString>;
235
+ message: z.ZodOptional<z.ZodString>;
236
+ }, z.core.$strip>;
237
+ type Response = z.infer<typeof ResponseSchema>;
238
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionsJobByIdQuery = 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 FindPhotoSessionsJobByIdQuery;
8
+ (function (FindPhotoSessionsJobByIdQuery) {
9
+ FindPhotoSessionsJobByIdQuery.RequestSchema = models_1.PhotoSessionGroupSchema.pick({ uuid: true })
10
+ .extend({
11
+ userId: zod_1.z.string().uuid().nullable().optional(),
12
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
+ })
14
+ .refine((data) => Boolean(data.userId) !== Boolean(data.unregisteredUserId), {
15
+ message: 'Exactly one owner identity is required',
16
+ });
17
+ FindPhotoSessionsJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionGroupSchema);
18
+ })(FindPhotoSessionsJobByIdQuery || (exports.FindPhotoSessionsJobByIdQuery = FindPhotoSessionsJobByIdQuery = {}));
@@ -0,0 +1,257 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ import { JOB_SORT } from '../../tools';
4
+ import { PHOTO_SESSION_GROUP_STATUS } from '../enums';
5
+ export declare namespace FindPhotoSessionsJobsQuery {
6
+ const RequestSchema: z.ZodObject<{
7
+ userId: z.ZodOptional<z.ZodString>;
8
+ unregisteredUserId: z.ZodOptional<z.ZodString>;
9
+ scope: z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>;
10
+ title: z.ZodOptional<z.ZodString>;
11
+ isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
12
+ createdAtSortOrder: z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>;
13
+ status: z.ZodOptional<z.ZodEnum<typeof PHOTO_SESSION_GROUP_STATUS>>;
14
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
15
+ offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
16
+ }, z.core.$strip>;
17
+ type Request = z.infer<typeof RequestSchema>;
18
+ const ResponseSchema: z.ZodObject<{
19
+ isSuccess: z.ZodBoolean;
20
+ data: z.ZodOptional<z.ZodType<{
21
+ data: {
22
+ uuid: string;
23
+ title: string;
24
+ prompt: string;
25
+ status: PHOTO_SESSION_GROUP_STATUS;
26
+ error: string | null;
27
+ modelId: string;
28
+ price: number;
29
+ tokenReservationId: string | null;
30
+ params: unknown;
31
+ attempts: unknown[];
32
+ scope: JOB_SCOPE;
33
+ userId: string | null;
34
+ unregisteredUserId: string | null;
35
+ isDeleted: boolean;
36
+ subJobs: {
37
+ uuid: string;
38
+ prompt: string;
39
+ reaction: import("../..").USER_REACTION | null;
40
+ dislikeReason: string | null;
41
+ externalId: string | null;
42
+ title: string;
43
+ status: import("../..").JOB_STATUS;
44
+ error: string | null;
45
+ modelId: string;
46
+ groupId: string;
47
+ previewUrl: string | null;
48
+ params: {
49
+ attachedFiles?: {
50
+ uuid: string;
51
+ url: string;
52
+ name: string;
53
+ mimeType: string;
54
+ type: string;
55
+ size: number;
56
+ duration?: number | null | undefined;
57
+ content?: string | null | undefined;
58
+ contentLength?: number | null | undefined;
59
+ }[] | undefined;
60
+ imageUrls?: string[] | undefined;
61
+ referenceFile?: {
62
+ uuid: string;
63
+ url: string;
64
+ name: string;
65
+ mimeType: string;
66
+ type: string;
67
+ size: number;
68
+ duration?: number | null | undefined;
69
+ content?: string | null | undefined;
70
+ contentLength?: number | null | undefined;
71
+ } | undefined;
72
+ styleId?: string | null | undefined;
73
+ referenceId?: string | null | undefined;
74
+ referenceIds?: string[] | undefined;
75
+ clothingPhotos?: {
76
+ uuid: string;
77
+ url: string;
78
+ name: string;
79
+ mimeType: string;
80
+ type: string;
81
+ size: number;
82
+ duration?: number | null | undefined;
83
+ content?: string | null | undefined;
84
+ contentLength?: number | null | undefined;
85
+ }[] | undefined;
86
+ hairstylePhotos?: {
87
+ uuid: string;
88
+ url: string;
89
+ name: string;
90
+ mimeType: string;
91
+ type: string;
92
+ size: number;
93
+ duration?: number | null | undefined;
94
+ content?: string | null | undefined;
95
+ contentLength?: number | null | undefined;
96
+ }[] | undefined;
97
+ accessoriesPhotos?: {
98
+ uuid: string;
99
+ url: string;
100
+ name: string;
101
+ mimeType: string;
102
+ type: string;
103
+ size: number;
104
+ duration?: number | null | undefined;
105
+ content?: string | null | undefined;
106
+ contentLength?: number | null | undefined;
107
+ }[] | undefined;
108
+ aspectRatio?: string | undefined;
109
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
110
+ };
111
+ imageUrls: string[] | null;
112
+ attempts: {
113
+ order: number;
114
+ attemptId?: string | undefined;
115
+ status: import("../..").JOB_STATUS;
116
+ error: string | null;
117
+ timestamp: Date;
118
+ }[];
119
+ userId?: string | null | undefined;
120
+ unregisteredUserId?: string | null | undefined;
121
+ isPublished: boolean;
122
+ postId: string | null;
123
+ isDeleted: boolean;
124
+ isFavorite: boolean;
125
+ createdAt: Date;
126
+ completedAt?: Date | null | undefined;
127
+ updatedAt: Date;
128
+ }[];
129
+ createdAt: Date;
130
+ completedAt: Date | null;
131
+ updatedAt: Date;
132
+ }[];
133
+ page: number;
134
+ totalPages: number;
135
+ total: number;
136
+ }, unknown, z.core.$ZodTypeInternals<{
137
+ data: {
138
+ uuid: string;
139
+ title: string;
140
+ prompt: string;
141
+ status: PHOTO_SESSION_GROUP_STATUS;
142
+ error: string | null;
143
+ modelId: string;
144
+ price: number;
145
+ tokenReservationId: string | null;
146
+ params: unknown;
147
+ attempts: unknown[];
148
+ scope: JOB_SCOPE;
149
+ userId: string | null;
150
+ unregisteredUserId: string | null;
151
+ isDeleted: boolean;
152
+ subJobs: {
153
+ uuid: string;
154
+ prompt: string;
155
+ reaction: import("../..").USER_REACTION | null;
156
+ dislikeReason: string | null;
157
+ externalId: string | null;
158
+ title: string;
159
+ status: import("../..").JOB_STATUS;
160
+ error: string | null;
161
+ modelId: string;
162
+ groupId: string;
163
+ previewUrl: string | null;
164
+ params: {
165
+ attachedFiles?: {
166
+ uuid: string;
167
+ url: string;
168
+ name: string;
169
+ mimeType: string;
170
+ type: string;
171
+ size: number;
172
+ duration?: number | null | undefined;
173
+ content?: string | null | undefined;
174
+ contentLength?: number | null | undefined;
175
+ }[] | undefined;
176
+ imageUrls?: string[] | undefined;
177
+ referenceFile?: {
178
+ uuid: string;
179
+ url: string;
180
+ name: string;
181
+ mimeType: string;
182
+ type: string;
183
+ size: number;
184
+ duration?: number | null | undefined;
185
+ content?: string | null | undefined;
186
+ contentLength?: number | null | undefined;
187
+ } | undefined;
188
+ styleId?: string | null | undefined;
189
+ referenceId?: string | null | undefined;
190
+ referenceIds?: string[] | undefined;
191
+ clothingPhotos?: {
192
+ uuid: string;
193
+ url: string;
194
+ name: string;
195
+ mimeType: string;
196
+ type: string;
197
+ size: number;
198
+ duration?: number | null | undefined;
199
+ content?: string | null | undefined;
200
+ contentLength?: number | null | undefined;
201
+ }[] | undefined;
202
+ hairstylePhotos?: {
203
+ uuid: string;
204
+ url: string;
205
+ name: string;
206
+ mimeType: string;
207
+ type: string;
208
+ size: number;
209
+ duration?: number | null | undefined;
210
+ content?: string | null | undefined;
211
+ contentLength?: number | null | undefined;
212
+ }[] | undefined;
213
+ accessoriesPhotos?: {
214
+ uuid: string;
215
+ url: string;
216
+ name: string;
217
+ mimeType: string;
218
+ type: string;
219
+ size: number;
220
+ duration?: number | null | undefined;
221
+ content?: string | null | undefined;
222
+ contentLength?: number | null | undefined;
223
+ }[] | undefined;
224
+ aspectRatio?: string | undefined;
225
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
226
+ };
227
+ imageUrls: string[] | null;
228
+ attempts: {
229
+ order: number;
230
+ attemptId?: string | undefined;
231
+ status: import("../..").JOB_STATUS;
232
+ error: string | null;
233
+ timestamp: Date;
234
+ }[];
235
+ userId?: string | null | undefined;
236
+ unregisteredUserId?: string | null | undefined;
237
+ isPublished: boolean;
238
+ postId: string | null;
239
+ isDeleted: boolean;
240
+ isFavorite: boolean;
241
+ createdAt: Date;
242
+ completedAt?: Date | null | undefined;
243
+ updatedAt: Date;
244
+ }[];
245
+ createdAt: Date;
246
+ completedAt: Date | null;
247
+ updatedAt: Date;
248
+ }[];
249
+ page: number;
250
+ totalPages: number;
251
+ total: number;
252
+ }, unknown>>>;
253
+ code: z.ZodOptional<z.ZodString>;
254
+ message: z.ZodOptional<z.ZodString>;
255
+ }, z.core.$strip>;
256
+ type Response = z.infer<typeof ResponseSchema>;
257
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionsJobsQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
7
+ const models_1 = require("../models");
8
+ const tools_1 = require("../../tools");
9
+ const enums_1 = require("../enums");
10
+ var FindPhotoSessionsJobsQuery;
11
+ (function (FindPhotoSessionsJobsQuery) {
12
+ FindPhotoSessionsJobsQuery.RequestSchema = zod_1.z
13
+ .object({
14
+ userId: zod_1.z.string().uuid().optional(),
15
+ unregisteredUserId: zod_1.z.string().uuid().optional(),
16
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional(),
17
+ title: zod_1.z.string().optional(),
18
+ isFavorite: zod_1.z.coerce.boolean().optional(),
19
+ createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional(),
20
+ status: zod_1.z.nativeEnum(enums_1.PHOTO_SESSION_GROUP_STATUS).optional(),
21
+ limit: zod_1.z.coerce.number().min(1).optional(),
22
+ offset: zod_1.z.coerce.number().min(0).optional(),
23
+ })
24
+ .refine((data) => Boolean(data.userId) !== Boolean(data.unregisteredUserId), {
25
+ message: 'Exactly one owner identity is required',
26
+ });
27
+ FindPhotoSessionsJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
28
+ data: zod_1.z.array(models_1.PhotoSessionGroupSchema),
29
+ page: zod_1.z.number(),
30
+ totalPages: zod_1.z.number(),
31
+ total: zod_1.z.number(),
32
+ }));
33
+ })(FindPhotoSessionsJobsQuery || (exports.FindPhotoSessionsJobsQuery = FindPhotoSessionsJobsQuery = {}));