@purpleschool/gptbot-tools 0.2.70 → 0.2.72-stage2-ph

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 (200) 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 -0
  4. package/build/index.js +3 -0
  5. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +59 -0
  6. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +23 -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/photo-sessions/commands/admin/index.js +19 -0
  11. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +55 -0
  12. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +21 -0
  13. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
  14. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
  15. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
  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 +74 -0
  18. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +28 -0
  19. package/build/photo-sessions/commands/index.d.ts +10 -0
  20. package/build/photo-sessions/commands/index.js +26 -0
  21. package/build/photo-sessions/commands/photo-sessions.command.d.ts +272 -0
  22. package/build/photo-sessions/commands/photo-sessions.command.js +37 -0
  23. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +179 -0
  24. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +17 -0
  25. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +181 -0
  26. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
  27. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +179 -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 +217 -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 +184 -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/photo-sessions/enums/index.js +19 -0
  35. package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +6 -0
  36. package/build/photo-sessions/enums/photo-session-group-status.enum.js +10 -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/index.d.ts +5 -0
  42. package/build/photo-sessions/index.js +21 -0
  43. package/build/photo-sessions/models/index.d.ts +5 -0
  44. package/build/photo-sessions/models/index.js +21 -0
  45. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  46. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  47. package/build/photo-sessions/models/photo-session-group.schema.d.ts +113 -0
  48. package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
  49. package/build/photo-sessions/models/photo-session-job.schema.d.ts +159 -0
  50. package/build/photo-sessions/models/photo-session-job.schema.js +55 -0
  51. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  52. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  53. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  54. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  55. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +47 -0
  56. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +15 -0
  57. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +58 -0
  58. package/build/photo-sessions/queries/find-photo-session-styles.query.js +21 -0
  59. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +216 -0
  60. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
  61. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +235 -0
  62. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
  63. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  64. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  65. package/build/photo-sessions/queries/index.d.ts +5 -0
  66. package/build/photo-sessions/queries/index.js +21 -0
  67. package/build/photo-sessions/routes/index.d.ts +2 -0
  68. package/build/photo-sessions/routes/index.js +18 -0
  69. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  70. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  71. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  72. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  73. package/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
  74. package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
  75. package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
  76. package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
  77. package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
  78. package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
  79. package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
  80. package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
  81. package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
  82. package/build/spell-corrector/constants/index.d.ts +1 -0
  83. package/build/spell-corrector/constants/index.js +17 -0
  84. package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
  85. package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
  86. package/build/spell-corrector/enums/index.d.ts +1 -0
  87. package/build/spell-corrector/enums/index.js +17 -0
  88. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
  89. package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
  90. package/build/spell-corrector/index.d.ts +2 -0
  91. package/build/spell-corrector/index.js +2 -0
  92. package/build/spell-corrector/models/index.d.ts +2 -0
  93. package/build/spell-corrector/models/index.js +2 -0
  94. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
  95. package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
  96. package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
  97. package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
  98. package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
  99. package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
  100. package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
  101. package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
  102. package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
  103. package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
  104. package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
  105. package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
  106. package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
  107. package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
  108. package/build/tools/enums/tool-content-type.enum.js +1 -0
  109. package/build/tools/enums/tool-type.enum.d.ts +1 -0
  110. package/build/tools/enums/tool-type.enum.js +1 -0
  111. package/build/tools/events/tool-job-complete.event.d.ts +1 -0
  112. package/build/tools/events/tool-job-failed.event.d.ts +1 -0
  113. package/build/tools/models/global-tools-config.schema.d.ts +81 -0
  114. package/build/tools/models/global-tools-config.schema.js +2 -0
  115. package/build/tools/models/tool-job.schema.d.ts +1 -0
  116. package/build/tools/models/tool-job.schema.js +1 -0
  117. package/build/tools/models/tools-with-configs.schema.d.ts +32 -0
  118. package/build/tools/queries/get-global-tools-config.query.d.ts +162 -0
  119. package/build/tools/queries/get-tools-with-configs.query.d.ts +32 -0
  120. package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
  121. package/build/tts/commands/create-voice-clone.command.js +21 -0
  122. package/build/tts/commands/create-voice-design.command.d.ts +40 -0
  123. package/build/tts/commands/create-voice-design.command.js +20 -0
  124. package/build/tts/commands/delete-voice.command.d.ts +17 -0
  125. package/build/tts/commands/delete-voice.command.js +14 -0
  126. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  127. package/build/tts/commands/download-tts-job.command.js +19 -0
  128. package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
  129. package/build/tts/commands/improve-tts-text.command.js +16 -0
  130. package/build/tts/commands/index.d.ts +7 -0
  131. package/build/tts/commands/index.js +7 -0
  132. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  133. package/build/tts/commands/retry-tts-job.command.js +2 -0
  134. package/build/tts/commands/select-voice-design.command.d.ts +77 -0
  135. package/build/tts/commands/select-voice-design.command.js +17 -0
  136. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  137. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  138. package/build/tts/commands/tts.command.d.ts +35 -3
  139. package/build/tts/commands/tts.command.js +4 -1
  140. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  141. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  142. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  143. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  144. package/build/tts/commands/update-voice.command.d.ts +78 -0
  145. package/build/tts/commands/update-voice.command.js +18 -0
  146. package/build/tts/enums/index.d.ts +7 -0
  147. package/build/tts/enums/index.js +7 -0
  148. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  149. package/build/tts/enums/tts-download-format.enum.js +9 -0
  150. package/build/tts/enums/voice-category.enum.d.ts +19 -0
  151. package/build/tts/enums/voice-category.enum.js +23 -0
  152. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  153. package/build/tts/enums/voice-gender.enum.js +8 -0
  154. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  155. package/build/tts/enums/voice-source.enum.js +9 -0
  156. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  157. package/build/tts/enums/voice-status.enum.js +9 -0
  158. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  159. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  160. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  161. package/build/tts/enums/voice-tag.enum.js +24 -0
  162. package/build/tts/models/index.d.ts +7 -0
  163. package/build/tts/models/index.js +7 -0
  164. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  165. package/build/tts/models/tts-config.schema.d.ts +11 -0
  166. package/build/tts/models/tts-config.schema.js +5 -0
  167. package/build/tts/models/tts-job.schema.d.ts +34 -2
  168. package/build/tts/models/tts-job.schema.js +22 -2
  169. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  170. package/build/tts/models/tts-model.schema.d.ts +1 -0
  171. package/build/tts/models/tts-model.schema.js +1 -0
  172. package/build/tts/models/voice-category.schema.d.ts +7 -0
  173. package/build/tts/models/voice-category.schema.js +9 -0
  174. package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
  175. package/build/tts/models/voice-design-draft.schema.js +13 -0
  176. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  177. package/build/tts/models/voice-design-sample.schema.js +8 -0
  178. package/build/tts/models/voice-gender.schema.d.ts +7 -0
  179. package/build/tts/models/voice-gender.schema.js +9 -0
  180. package/build/tts/models/voice-source.schema.d.ts +7 -0
  181. package/build/tts/models/voice-source.schema.js +9 -0
  182. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  183. package/build/tts/models/voice-tag.schema.js +11 -0
  184. package/build/tts/models/voice.schema.d.ts +34 -0
  185. package/build/tts/models/voice.schema.js +30 -0
  186. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  187. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  188. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  189. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  190. package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
  191. package/build/tts/queries/find-voice-by-id.query.js +17 -0
  192. package/build/tts/queries/find-voices.query.d.ts +122 -0
  193. package/build/tts/queries/find-voices.query.js +25 -0
  194. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  195. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  196. package/build/tts/queries/index.d.ts +2 -0
  197. package/build/tts/queries/index.js +2 -0
  198. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  199. package/build/tts/routes/tts.amqp.routes.js +9 -0
  200. package/package.json +1 -1
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionModelSchema = exports.PhotoSessionModelPricingRulesSchema = exports.PhotoSessionModelPricingRuleConditionSchema = exports.PhotoSessionModelParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const enums_1 = require("../enums");
7
+ exports.PhotoSessionModelParamsSchema = zod_1.z.object({
8
+ imageAttachment: zod_1.z.object({
9
+ supported: zod_1.z.boolean(),
10
+ maxImages: zod_1.z.number(),
11
+ acceptedTypes: zod_1.z.array(zod_1.z.string()),
12
+ }),
13
+ aspectRatio: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
14
+ width: zod_1.z.number(),
15
+ height: zod_1.z.number(),
16
+ })),
17
+ });
18
+ exports.PhotoSessionModelPricingRuleConditionSchema = zod_1.z.object({
19
+ withoutSub: zod_1.z.boolean().optional(),
20
+ });
21
+ exports.PhotoSessionModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
22
+ condition: exports.PhotoSessionModelPricingRuleConditionSchema,
23
+ value: zod_1.z.number(),
24
+ }));
25
+ exports.PhotoSessionModelSchema = zod_1.z.object({
26
+ uuid: zod_1.z.string(),
27
+ title: zod_1.z.string(),
28
+ description: zod_1.z.string(),
29
+ aiModel: zod_1.z.string(),
30
+ isNew: zod_1.z.boolean(),
31
+ tierLabel: zod_1.z.string(),
32
+ pricePerImage: zod_1.z.number(),
33
+ order: zod_1.z.number(),
34
+ status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
35
+ icons: common_1.IconVariantsSchema,
36
+ strategy: zod_1.z.nativeEnum(enums_1.PHOTO_SESSION_STRATEGY),
37
+ maxInputLength: zod_1.z.number(),
38
+ params: exports.PhotoSessionModelParamsSchema,
39
+ pricingRules: exports.PhotoSessionModelPricingRulesSchema,
40
+ createdAt: zod_1.z.coerce.date(),
41
+ updatedAt: zod_1.z.coerce.date(),
42
+ });
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export declare const PhotoSessionStyleReferenceSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ styleId: z.ZodString;
5
+ photoUrl: z.ZodString;
6
+ thumbnailUrl: z.ZodString;
7
+ order: z.ZodNumber;
8
+ createdAt: z.ZodCoercedDate<unknown>;
9
+ updatedAt: z.ZodCoercedDate<unknown>;
10
+ }, z.core.$strip>;
11
+ export type PhotoSessionStyleReference = z.infer<typeof PhotoSessionStyleReferenceSchema>;
12
+ export declare const PhotoSessionStyleSchema: z.ZodObject<{
13
+ uuid: z.ZodString;
14
+ code: z.ZodString;
15
+ title: z.ZodString;
16
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ references: z.ZodArray<z.ZodObject<{
18
+ uuid: z.ZodString;
19
+ styleId: z.ZodString;
20
+ photoUrl: z.ZodString;
21
+ thumbnailUrl: z.ZodString;
22
+ order: z.ZodNumber;
23
+ createdAt: z.ZodCoercedDate<unknown>;
24
+ updatedAt: z.ZodCoercedDate<unknown>;
25
+ }, z.core.$strip>>;
26
+ createdAt: z.ZodCoercedDate<unknown>;
27
+ updatedAt: z.ZodCoercedDate<unknown>;
28
+ }, z.core.$strip>;
29
+ export type PhotoSessionStyle = z.infer<typeof PhotoSessionStyleSchema>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoSessionStyleSchema = exports.PhotoSessionStyleReferenceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PhotoSessionStyleReferenceSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string().uuid(),
7
+ styleId: zod_1.z.string().uuid(),
8
+ photoUrl: zod_1.z.string(),
9
+ thumbnailUrl: zod_1.z.string(),
10
+ order: zod_1.z.number().int().min(0).max(5),
11
+ createdAt: zod_1.z.coerce.date(),
12
+ updatedAt: zod_1.z.coerce.date(),
13
+ });
14
+ exports.PhotoSessionStyleSchema = zod_1.z.object({
15
+ uuid: zod_1.z.string().uuid(),
16
+ code: zod_1.z.string(),
17
+ title: zod_1.z.string(),
18
+ description: zod_1.z.string().nullable().optional(),
19
+ references: zod_1.z.array(exports.PhotoSessionStyleReferenceSchema),
20
+ createdAt: zod_1.z.coerce.date(),
21
+ updatedAt: zod_1.z.coerce.date(),
22
+ });
@@ -0,0 +1,47 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindPhotoSessionStyleByIdQuery {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
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
+ uuid: string;
12
+ code: string;
13
+ title: string;
14
+ description?: string | null | undefined;
15
+ references: {
16
+ uuid: string;
17
+ styleId: string;
18
+ photoUrl: string;
19
+ thumbnailUrl: string;
20
+ order: number;
21
+ createdAt: Date;
22
+ updatedAt: Date;
23
+ }[];
24
+ createdAt: Date;
25
+ updatedAt: Date;
26
+ }, unknown, z.core.$ZodTypeInternals<{
27
+ uuid: string;
28
+ code: string;
29
+ title: string;
30
+ description?: string | null | undefined;
31
+ references: {
32
+ uuid: string;
33
+ styleId: string;
34
+ photoUrl: string;
35
+ thumbnailUrl: string;
36
+ order: number;
37
+ createdAt: Date;
38
+ updatedAt: Date;
39
+ }[];
40
+ createdAt: Date;
41
+ updatedAt: Date;
42
+ }, unknown>>>;
43
+ code: z.ZodOptional<z.ZodString>;
44
+ message: z.ZodOptional<z.ZodString>;
45
+ }, z.core.$strip>;
46
+ type Response = z.infer<typeof ResponseSchema>;
47
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionStyleByIdQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const locale_schema_1 = require("../../common/models/locale.schema");
7
+ const models_1 = require("../models");
8
+ var FindPhotoSessionStyleByIdQuery;
9
+ (function (FindPhotoSessionStyleByIdQuery) {
10
+ FindPhotoSessionStyleByIdQuery.RequestSchema = zod_1.z.object({
11
+ uuid: zod_1.z.string().uuid(),
12
+ locale: locale_schema_1.LocaleSchema.optional(),
13
+ });
14
+ FindPhotoSessionStyleByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
15
+ })(FindPhotoSessionStyleByIdQuery || (exports.FindPhotoSessionStyleByIdQuery = FindPhotoSessionStyleByIdQuery = {}));
@@ -0,0 +1,58 @@
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
+ locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
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
+ data: {
13
+ uuid: string;
14
+ code: string;
15
+ title: string;
16
+ description?: string | null | undefined;
17
+ references: {
18
+ uuid: string;
19
+ styleId: string;
20
+ photoUrl: string;
21
+ thumbnailUrl: string;
22
+ order: number;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ }[];
26
+ createdAt: Date;
27
+ updatedAt: Date;
28
+ }[];
29
+ page: number;
30
+ totalPages: number;
31
+ total: number;
32
+ }, unknown, z.core.$ZodTypeInternals<{
33
+ data: {
34
+ uuid: string;
35
+ code: string;
36
+ title: string;
37
+ description?: string | null | undefined;
38
+ references: {
39
+ uuid: string;
40
+ styleId: string;
41
+ photoUrl: string;
42
+ thumbnailUrl: string;
43
+ order: number;
44
+ createdAt: Date;
45
+ updatedAt: Date;
46
+ }[];
47
+ createdAt: Date;
48
+ updatedAt: Date;
49
+ }[];
50
+ page: number;
51
+ totalPages: number;
52
+ total: number;
53
+ }, unknown>>>;
54
+ code: z.ZodOptional<z.ZodString>;
55
+ message: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strip>;
57
+ type Response = z.infer<typeof ResponseSchema>;
58
+ }
@@ -0,0 +1,21 @@
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 locale_schema_1 = require("../../common/models/locale.schema");
7
+ const models_1 = require("../models");
8
+ var FindPhotoSessionStylesQuery;
9
+ (function (FindPhotoSessionStylesQuery) {
10
+ FindPhotoSessionStylesQuery.RequestSchema = zod_1.z.object({
11
+ limit: zod_1.z.coerce.number().min(1).max(50).optional(),
12
+ offset: zod_1.z.coerce.number().min(0).optional(),
13
+ locale: locale_schema_1.LocaleSchema.optional(),
14
+ });
15
+ FindPhotoSessionStylesQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
16
+ data: zod_1.z.array(models_1.PhotoSessionStyleSchema),
17
+ page: zod_1.z.number(),
18
+ totalPages: zod_1.z.number(),
19
+ total: zod_1.z.number(),
20
+ }));
21
+ })(FindPhotoSessionStylesQuery || (exports.FindPhotoSessionStylesQuery = FindPhotoSessionStylesQuery = {}));
@@ -0,0 +1,216 @@
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.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
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
+ styleReferenceImageUrl?: string | undefined;
51
+ styleId?: string | null | undefined;
52
+ referenceId?: string | null | undefined;
53
+ photosCount?: number | undefined;
54
+ clothingPhotos?: {
55
+ uuid: string;
56
+ url: string;
57
+ name: string;
58
+ mimeType: string;
59
+ type: string;
60
+ size: number;
61
+ duration?: number | null | undefined;
62
+ content?: string | null | undefined;
63
+ contentLength?: number | null | undefined;
64
+ }[] | undefined;
65
+ hairstylePhotos?: {
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
+ accessoriesPhotos?: {
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
+ aspectRatio?: string | undefined;
88
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
89
+ };
90
+ imageUrls: string[] | null;
91
+ attempts: {
92
+ order: number;
93
+ attemptId?: string | undefined;
94
+ status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
95
+ error: string | null;
96
+ timestamp: Date;
97
+ }[];
98
+ userId?: string | null | undefined;
99
+ unregisteredUserId?: string | null | undefined;
100
+ isPublished: boolean;
101
+ postId: string | null;
102
+ isDeleted: boolean;
103
+ isFavorite: boolean;
104
+ createdAt: Date;
105
+ completedAt?: Date | null | undefined;
106
+ updatedAt: Date;
107
+ }[];
108
+ createdAt: Date;
109
+ completedAt: Date | null;
110
+ updatedAt: Date;
111
+ }, unknown, z.core.$ZodTypeInternals<{
112
+ uuid: string;
113
+ title: string;
114
+ prompt: string;
115
+ status: import("..").PHOTO_SESSION_GROUP_STATUS;
116
+ error: string | null;
117
+ modelId: string;
118
+ price: number;
119
+ tokenReservationId: string | null;
120
+ params: unknown;
121
+ attempts: unknown[];
122
+ scope: import("../..").JOB_SCOPE;
123
+ userId: string | null;
124
+ unregisteredUserId: string | null;
125
+ isDeleted: boolean;
126
+ subJobs: {
127
+ uuid: string;
128
+ prompt: string;
129
+ reaction: import("../..").USER_REACTION | null;
130
+ dislikeReason: string | null;
131
+ externalId: string | null;
132
+ title: string;
133
+ status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
134
+ error: string | null;
135
+ modelId: string;
136
+ groupId: string;
137
+ previewUrl: string | null;
138
+ params: {
139
+ attachedFiles?: {
140
+ uuid: string;
141
+ url: string;
142
+ name: string;
143
+ mimeType: string;
144
+ type: string;
145
+ size: number;
146
+ duration?: number | null | undefined;
147
+ content?: string | null | undefined;
148
+ contentLength?: number | null | undefined;
149
+ }[] | undefined;
150
+ styleReferenceImageUrl?: string | undefined;
151
+ styleId?: string | null | undefined;
152
+ referenceId?: string | null | undefined;
153
+ photosCount?: number | undefined;
154
+ clothingPhotos?: {
155
+ uuid: string;
156
+ url: string;
157
+ name: string;
158
+ mimeType: string;
159
+ type: string;
160
+ size: number;
161
+ duration?: number | null | undefined;
162
+ content?: string | null | undefined;
163
+ contentLength?: number | null | undefined;
164
+ }[] | undefined;
165
+ hairstylePhotos?: {
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
+ accessoriesPhotos?: {
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
+ aspectRatio?: string | undefined;
188
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
189
+ };
190
+ imageUrls: string[] | null;
191
+ attempts: {
192
+ order: number;
193
+ attemptId?: string | undefined;
194
+ status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
195
+ error: string | null;
196
+ timestamp: Date;
197
+ }[];
198
+ userId?: string | null | undefined;
199
+ unregisteredUserId?: string | null | undefined;
200
+ isPublished: boolean;
201
+ postId: string | null;
202
+ isDeleted: boolean;
203
+ isFavorite: boolean;
204
+ createdAt: Date;
205
+ completedAt?: Date | null | undefined;
206
+ updatedAt: Date;
207
+ }[];
208
+ createdAt: Date;
209
+ completedAt: Date | null;
210
+ updatedAt: Date;
211
+ }, unknown>>>;
212
+ code: z.ZodOptional<z.ZodString>;
213
+ message: z.ZodOptional<z.ZodString>;
214
+ }, z.core.$strip>;
215
+ type Response = z.infer<typeof ResponseSchema>;
216
+ }
@@ -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 = {}));