@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,238 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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 = {}));
@@ -1,257 +0,0 @@
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
- }
@@ -1,33 +0,0 @@
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 = {}));
@@ -1,142 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace GetPhotoSessionsConfigQuery {
3
- const RequestSchema: z.ZodObject<{
4
- locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
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
- models: {
11
- uuid: string;
12
- title: string;
13
- description: string;
14
- aiModel: string;
15
- isNew: boolean;
16
- tierLabel: string;
17
- pricePerImage: number;
18
- order: number;
19
- status: import("../..").TOOL_MODEL_STATUS;
20
- icons: {
21
- light: {
22
- svg: string;
23
- png: string;
24
- };
25
- dark: {
26
- svg: string;
27
- png: string;
28
- };
29
- };
30
- strategy: import("..").PHOTO_SESSION_STRATEGY;
31
- maxInputLength: number;
32
- params: {
33
- imageAttachment: {
34
- supported: boolean;
35
- maxImages: number;
36
- acceptedTypes: string[];
37
- };
38
- aspectRatio: Record<string, {
39
- width: number;
40
- height: number;
41
- }>;
42
- };
43
- pricingRules: {
44
- condition: {
45
- withoutSub?: boolean | undefined;
46
- };
47
- value: number;
48
- }[];
49
- createdAt: Date;
50
- updatedAt: Date;
51
- }[];
52
- styles: {
53
- uuid: string;
54
- code: string;
55
- title: string;
56
- description?: string | null | undefined;
57
- references: {
58
- uuid: string;
59
- styleId: string;
60
- photoUrl: string;
61
- description?: string | null | undefined;
62
- order: number;
63
- createdAt: Date;
64
- updatedAt: Date;
65
- }[];
66
- createdAt: Date;
67
- updatedAt: Date;
68
- }[];
69
- looks: {
70
- type: import("..").PHOTO_SESSION_LOOK_TYPE;
71
- maxPhotos: number;
72
- }[];
73
- }, unknown, z.core.$ZodTypeInternals<{
74
- models: {
75
- uuid: string;
76
- title: string;
77
- description: string;
78
- aiModel: string;
79
- isNew: boolean;
80
- tierLabel: string;
81
- pricePerImage: number;
82
- order: number;
83
- status: import("../..").TOOL_MODEL_STATUS;
84
- icons: {
85
- light: {
86
- svg: string;
87
- png: string;
88
- };
89
- dark: {
90
- svg: string;
91
- png: string;
92
- };
93
- };
94
- strategy: import("..").PHOTO_SESSION_STRATEGY;
95
- maxInputLength: number;
96
- params: {
97
- imageAttachment: {
98
- supported: boolean;
99
- maxImages: number;
100
- acceptedTypes: string[];
101
- };
102
- aspectRatio: Record<string, {
103
- width: number;
104
- height: number;
105
- }>;
106
- };
107
- pricingRules: {
108
- condition: {
109
- withoutSub?: boolean | undefined;
110
- };
111
- value: number;
112
- }[];
113
- createdAt: Date;
114
- updatedAt: Date;
115
- }[];
116
- styles: {
117
- uuid: string;
118
- code: string;
119
- title: string;
120
- description?: string | null | undefined;
121
- references: {
122
- uuid: string;
123
- styleId: string;
124
- photoUrl: string;
125
- description?: string | null | undefined;
126
- order: number;
127
- createdAt: Date;
128
- updatedAt: Date;
129
- }[];
130
- createdAt: Date;
131
- updatedAt: Date;
132
- }[];
133
- looks: {
134
- type: import("..").PHOTO_SESSION_LOOK_TYPE;
135
- maxPhotos: number;
136
- }[];
137
- }, unknown>>>;
138
- code: z.ZodOptional<z.ZodString>;
139
- message: z.ZodOptional<z.ZodString>;
140
- }, z.core.$strip>;
141
- type Response = z.infer<typeof ResponseSchema>;
142
- }