@purpleschool/gptbot-tools 0.2.57-stage2 → 0.2.58

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 (179) 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/commands/get-image-editor-price.command.d.ts +2 -0
  4. package/build/image-editor/commands/get-image-editor-price.command.js +2 -0
  5. package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.d.ts +6 -0
  6. package/build/image-editor/commands/image-editor.command.d.ts +3 -0
  7. package/build/image-editor/commands/image-editor.command.js +1 -0
  8. package/build/image-editor/commands/retry-image-editor-job.command.d.ts +3 -0
  9. package/build/image-editor/commands/set-reaction-to-image-editor-job.command.d.ts +2 -0
  10. package/build/image-editor/commands/update-image-editor-job-favorite.command.d.ts +2 -0
  11. package/build/image-editor/commands/update-image-editor-job-title.command.d.ts +2 -0
  12. package/build/image-editor/commands/update-published-status-image-editor-jobs.command.d.ts +2 -0
  13. package/build/image-editor/enums/image-editor-strategy.enum.d.ts +1 -0
  14. package/build/image-editor/enums/image-editor-strategy.enum.js +1 -0
  15. package/build/image-editor/models/image-editor-config.schema.d.ts +3 -0
  16. package/build/image-editor/models/image-editor-job.schema.d.ts +2 -0
  17. package/build/image-editor/models/image-editor-job.schema.js +1 -0
  18. package/build/image-editor/models/image-editor-model.schema.d.ts +6 -0
  19. package/build/image-editor/models/image-editor-model.schema.js +5 -0
  20. package/build/image-editor/queries/find-image-editor-job-by-id.query.d.ts +2 -0
  21. package/build/image-editor/queries/find-image-editor-jobs.query.d.ts +2 -0
  22. package/build/image-editor/queries/find-image-jobs.query.d.ts +2 -0
  23. package/build/image-editor/queries/get-image-editor-config.query.d.ts +6 -0
  24. package/build/index.d.ts +0 -3
  25. package/build/index.js +0 -3
  26. package/build/tool-workspace/models/tool-workspace-contents.schema.d.ts +1 -0
  27. package/build/tool-workspace/models/tool-workspace-item.schema.d.ts +1 -0
  28. package/build/tool-workspace/models/tool-workspace-job.schema.d.ts +1 -0
  29. package/build/tool-workspace/queries/find-tool-workspace-by-uuid.query.d.ts +2 -0
  30. package/build/tools/enums/tool-content-type.enum.d.ts +0 -1
  31. package/build/tools/enums/tool-content-type.enum.js +0 -1
  32. package/build/tools/enums/tool-type.enum.d.ts +0 -1
  33. package/build/tools/enums/tool-type.enum.js +0 -1
  34. package/build/tools/models/global-tools-config.schema.d.ts +3 -76
  35. package/build/tools/models/global-tools-config.schema.js +0 -2
  36. package/build/tools/models/tools-with-configs.schema.d.ts +6 -22
  37. package/build/tools/queries/get-global-tools-config.query.d.ts +6 -152
  38. package/build/tools/queries/get-tools-with-configs.query.d.ts +6 -22
  39. package/build/tts/commands/index.d.ts +0 -7
  40. package/build/tts/commands/index.js +0 -7
  41. package/build/tts/commands/retry-tts-job.command.d.ts +2 -29
  42. package/build/tts/commands/retry-tts-job.command.js +0 -2
  43. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
  44. package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
  45. package/build/tts/commands/tts.command.d.ts +3 -35
  46. package/build/tts/commands/tts.command.js +1 -4
  47. package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
  48. package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
  49. package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
  50. package/build/tts/commands/update-tts-job-title.command.js +0 -2
  51. package/build/tts/enums/index.d.ts +0 -7
  52. package/build/tts/enums/index.js +0 -7
  53. package/build/tts/models/index.d.ts +0 -5
  54. package/build/tts/models/index.js +0 -5
  55. package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
  56. package/build/tts/models/tts-config.schema.d.ts +0 -11
  57. package/build/tts/models/tts-config.schema.js +0 -5
  58. package/build/tts/models/tts-job.schema.d.ts +2 -34
  59. package/build/tts/models/tts-job.schema.js +2 -22
  60. package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
  61. package/build/tts/models/tts-model.schema.d.ts +0 -1
  62. package/build/tts/models/tts-model.schema.js +0 -1
  63. package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
  64. package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
  65. package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
  66. package/build/tts/queries/find-tts-jobs.query.js +0 -1
  67. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
  68. package/build/tts/queries/get-tts-config.query.d.ts +0 -22
  69. package/build/tts/queries/index.d.ts +0 -2
  70. package/build/tts/queries/index.js +0 -2
  71. package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
  72. package/build/tts/routes/tts.amqp.routes.js +0 -9
  73. package/package.json +1 -1
  74. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
  75. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
  76. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
  77. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
  78. package/build/photo-sessions/commands/admin/index.d.ts +0 -3
  79. package/build/photo-sessions/commands/admin/index.js +0 -19
  80. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -55
  81. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -28
  82. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +0 -17
  83. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -15
  84. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +0 -16
  85. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
  86. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -46
  87. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -30
  88. package/build/photo-sessions/commands/index.d.ts +0 -10
  89. package/build/photo-sessions/commands/index.js +0 -26
  90. package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -147
  91. package/build/photo-sessions/commands/photo-sessions.command.js +0 -41
  92. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -142
  93. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -23
  94. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -115
  95. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +0 -27
  96. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -113
  97. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
  98. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -113
  99. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
  100. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -118
  101. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
  102. package/build/photo-sessions/enums/index.d.ts +0 -2
  103. package/build/photo-sessions/enums/index.js +0 -18
  104. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
  105. package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
  106. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
  107. package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
  108. package/build/photo-sessions/index.d.ts +0 -5
  109. package/build/photo-sessions/index.js +0 -21
  110. package/build/photo-sessions/models/index.d.ts +0 -4
  111. package/build/photo-sessions/models/index.js +0 -20
  112. package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
  113. package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
  114. package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -78
  115. package/build/photo-sessions/models/photo-session-job.schema.js +0 -46
  116. package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
  117. package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
  118. package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
  119. package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
  120. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
  121. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
  122. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
  123. package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
  124. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -110
  125. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -10
  126. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +0 -130
  127. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +0 -28
  128. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
  129. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
  130. package/build/photo-sessions/queries/index.d.ts +0 -5
  131. package/build/photo-sessions/queries/index.js +0 -21
  132. package/build/photo-sessions/routes/index.d.ts +0 -2
  133. package/build/photo-sessions/routes/index.js +0 -18
  134. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
  135. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
  136. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
  137. package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
  138. package/build/tts/commands/create-voice-clone.command.d.ts +0 -56
  139. package/build/tts/commands/create-voice-clone.command.js +0 -19
  140. package/build/tts/commands/create-voice-design.command.d.ts +0 -35
  141. package/build/tts/commands/create-voice-design.command.js +0 -18
  142. package/build/tts/commands/delete-voice.command.d.ts +0 -15
  143. package/build/tts/commands/delete-voice.command.js +0 -13
  144. package/build/tts/commands/download-tts-job.command.d.ts +0 -25
  145. package/build/tts/commands/download-tts-job.command.js +0 -19
  146. package/build/tts/commands/improve-tts-text.command.d.ts +0 -22
  147. package/build/tts/commands/improve-tts-text.command.js +0 -16
  148. package/build/tts/commands/select-voice-design.command.d.ts +0 -53
  149. package/build/tts/commands/select-voice-design.command.js +0 -16
  150. package/build/tts/commands/update-voice.command.d.ts +0 -53
  151. package/build/tts/commands/update-voice.command.js +0 -16
  152. package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
  153. package/build/tts/enums/tts-download-format.enum.js +0 -9
  154. package/build/tts/enums/voice-category.enum.d.ts +0 -14
  155. package/build/tts/enums/voice-category.enum.js +0 -18
  156. package/build/tts/enums/voice-gender.enum.d.ts +0 -4
  157. package/build/tts/enums/voice-gender.enum.js +0 -8
  158. package/build/tts/enums/voice-source.enum.d.ts +0 -5
  159. package/build/tts/enums/voice-source.enum.js +0 -9
  160. package/build/tts/enums/voice-status.enum.d.ts +0 -5
  161. package/build/tts/enums/voice-status.enum.js +0 -9
  162. package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
  163. package/build/tts/enums/voice-tag-group.enum.js +0 -9
  164. package/build/tts/enums/voice-tag.enum.d.ts +0 -20
  165. package/build/tts/enums/voice-tag.enum.js +0 -24
  166. package/build/tts/models/voice-category.schema.d.ts +0 -7
  167. package/build/tts/models/voice-category.schema.js +0 -9
  168. package/build/tts/models/voice-design-draft.schema.d.ts +0 -12
  169. package/build/tts/models/voice-design-draft.schema.js +0 -12
  170. package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
  171. package/build/tts/models/voice-design-sample.schema.js +0 -8
  172. package/build/tts/models/voice-tag.schema.d.ts +0 -9
  173. package/build/tts/models/voice-tag.schema.js +0 -11
  174. package/build/tts/models/voice.schema.d.ts +0 -25
  175. package/build/tts/models/voice.schema.js +0 -27
  176. package/build/tts/queries/find-voice-by-id.query.d.ts +0 -53
  177. package/build/tts/queries/find-voice-by-id.query.js +0 -16
  178. package/build/tts/queries/find-voices.query.d.ts +0 -87
  179. package/build/tts/queries/find-voices.query.js +0 -24
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RetryPhotoSessionsJobCommand = 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
- const common_1 = require("../../common");
8
- var RetryPhotoSessionsJobCommand;
9
- (function (RetryPhotoSessionsJobCommand) {
10
- RetryPhotoSessionsJobCommand.RequestSchema = zod_1.z.object({
11
- locale: common_1.LocaleSchema,
12
- uuid: zod_1.z.string().uuid(),
13
- userId: zod_1.z.string().uuid().nullable().optional(),
14
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
15
- userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
16
- tokenReservationId: zod_1.z.string().uuid(),
17
- precalculatedPrice: zod_1.z.number(),
18
- modelId: zod_1.z.string().optional(),
19
- prompt: zod_1.z.string().optional(),
20
- params: models_1.PhotoSessionJobParamsSchema.optional(),
21
- });
22
- RetryPhotoSessionsJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
23
- })(RetryPhotoSessionsJobCommand || (exports.RetryPhotoSessionsJobCommand = RetryPhotoSessionsJobCommand = {}));
@@ -1,115 +0,0 @@
1
- import { z } from 'zod';
2
- import { USER_REACTION } from '../../common';
3
- export declare namespace SetReactionToPhotoSessionsJobCommand {
4
- const RequestSchema: z.ZodObject<{
5
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- uuid: z.ZodString;
8
- reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
9
- dislikeReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10
- }, z.core.$strip>;
11
- type Request = z.infer<typeof RequestSchema>;
12
- const ResponseSchema: z.ZodObject<{
13
- isSuccess: z.ZodBoolean;
14
- data: z.ZodOptional<z.ZodType<{
15
- uuid: string;
16
- prompt: string;
17
- reaction: USER_REACTION | null;
18
- dislikeReason: string | null;
19
- externalId: string | null;
20
- title: string;
21
- status: import("../..").JOB_STATUS;
22
- error: string | null;
23
- modelId: string;
24
- price: number;
25
- previewUrl: string | null;
26
- params: {
27
- attachedFiles?: {
28
- uuid: string;
29
- url: string;
30
- name: string;
31
- mimeType: string;
32
- type: string;
33
- size: number;
34
- duration?: number | null | undefined;
35
- content?: string | null | undefined;
36
- contentLength?: number | null | undefined;
37
- }[] | undefined;
38
- imageUrls?: string[] | undefined;
39
- styleId?: string | null | undefined;
40
- referenceId?: string | null | undefined;
41
- referenceIds?: string[] | undefined;
42
- customStylePrompt?: string | null | undefined;
43
- customStylePhotos?: string[] | undefined;
44
- clothingPhotos?: string[] | undefined;
45
- hairstylePhotos?: string[] | undefined;
46
- accessoriesPhotos?: string[] | undefined;
47
- aspectRatio?: string | undefined;
48
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
49
- };
50
- imageUrls: string[] | null;
51
- attempts: any[];
52
- userId?: string | null | undefined;
53
- unregisteredUserId?: string | null | undefined;
54
- isPublished: boolean;
55
- postId: string | null;
56
- isDeleted: boolean;
57
- isFavorite: boolean;
58
- tokenReservationId?: string | null | undefined;
59
- createdAt: Date;
60
- completedAt?: Date | null | undefined;
61
- updatedAt: Date;
62
- }, unknown, z.core.$ZodTypeInternals<{
63
- uuid: string;
64
- prompt: string;
65
- reaction: USER_REACTION | null;
66
- dislikeReason: string | null;
67
- externalId: string | null;
68
- title: string;
69
- status: import("../..").JOB_STATUS;
70
- error: string | null;
71
- modelId: string;
72
- price: number;
73
- previewUrl: string | null;
74
- params: {
75
- attachedFiles?: {
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
- imageUrls?: string[] | undefined;
87
- styleId?: string | null | undefined;
88
- referenceId?: string | null | undefined;
89
- referenceIds?: string[] | undefined;
90
- customStylePrompt?: string | null | undefined;
91
- customStylePhotos?: string[] | undefined;
92
- clothingPhotos?: string[] | undefined;
93
- hairstylePhotos?: string[] | undefined;
94
- accessoriesPhotos?: string[] | undefined;
95
- aspectRatio?: string | undefined;
96
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
97
- };
98
- imageUrls: string[] | null;
99
- attempts: any[];
100
- userId?: string | null | undefined;
101
- unregisteredUserId?: string | null | undefined;
102
- isPublished: boolean;
103
- postId: string | null;
104
- isDeleted: boolean;
105
- isFavorite: boolean;
106
- tokenReservationId?: string | null | undefined;
107
- createdAt: Date;
108
- completedAt?: Date | null | undefined;
109
- updatedAt: Date;
110
- }, unknown>>>;
111
- code: z.ZodOptional<z.ZodString>;
112
- message: z.ZodOptional<z.ZodString>;
113
- }, z.core.$strip>;
114
- type Response = z.infer<typeof ResponseSchema>;
115
- }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetReactionToPhotoSessionsJobCommand = 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
- const common_1 = require("../../common");
8
- var SetReactionToPhotoSessionsJobCommand;
9
- (function (SetReactionToPhotoSessionsJobCommand) {
10
- SetReactionToPhotoSessionsJobCommand.RequestSchema = zod_1.z
11
- .object({
12
- userId: zod_1.z.string().uuid().nullable().optional(),
13
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
- uuid: zod_1.z.string().uuid(),
15
- reaction: zod_1.z.nativeEnum(common_1.USER_REACTION).nullable(),
16
- dislikeReason: zod_1.z.string().nullable().default(null),
17
- })
18
- .refine((data) => {
19
- if (data.reaction !== common_1.USER_REACTION.DISLIKED && data.dislikeReason) {
20
- return false;
21
- }
22
- return true;
23
- }, {
24
- message: 'Dislike reason is not allowed when reaction is not disliked',
25
- });
26
- SetReactionToPhotoSessionsJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
27
- })(SetReactionToPhotoSessionsJobCommand || (exports.SetReactionToPhotoSessionsJobCommand = SetReactionToPhotoSessionsJobCommand = {}));
@@ -1,113 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace UpdatePhotoSessionsJobFavoriteCommand {
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
- isFavorite: z.ZodBoolean;
8
- }, z.core.$strip>;
9
- type Request = z.infer<typeof RequestSchema>;
10
- const ResponseSchema: z.ZodObject<{
11
- isSuccess: z.ZodBoolean;
12
- data: z.ZodOptional<z.ZodType<{
13
- uuid: string;
14
- prompt: string;
15
- reaction: import("../..").USER_REACTION | null;
16
- dislikeReason: string | null;
17
- externalId: string | null;
18
- title: string;
19
- status: import("../..").JOB_STATUS;
20
- error: string | null;
21
- modelId: string;
22
- price: number;
23
- previewUrl: string | null;
24
- params: {
25
- attachedFiles?: {
26
- uuid: string;
27
- url: string;
28
- name: string;
29
- mimeType: string;
30
- type: string;
31
- size: number;
32
- duration?: number | null | undefined;
33
- content?: string | null | undefined;
34
- contentLength?: number | null | undefined;
35
- }[] | undefined;
36
- imageUrls?: string[] | undefined;
37
- styleId?: string | null | undefined;
38
- referenceId?: string | null | undefined;
39
- referenceIds?: string[] | undefined;
40
- customStylePrompt?: string | null | undefined;
41
- customStylePhotos?: string[] | undefined;
42
- clothingPhotos?: string[] | undefined;
43
- hairstylePhotos?: string[] | undefined;
44
- accessoriesPhotos?: string[] | undefined;
45
- aspectRatio?: string | undefined;
46
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
47
- };
48
- imageUrls: string[] | null;
49
- attempts: any[];
50
- userId?: string | null | undefined;
51
- unregisteredUserId?: string | null | undefined;
52
- isPublished: boolean;
53
- postId: string | null;
54
- isDeleted: boolean;
55
- isFavorite: boolean;
56
- tokenReservationId?: string | null | undefined;
57
- createdAt: Date;
58
- completedAt?: Date | null | undefined;
59
- updatedAt: Date;
60
- }, unknown, z.core.$ZodTypeInternals<{
61
- uuid: string;
62
- prompt: string;
63
- reaction: import("../..").USER_REACTION | null;
64
- dislikeReason: string | null;
65
- externalId: string | null;
66
- title: string;
67
- status: import("../..").JOB_STATUS;
68
- error: string | null;
69
- modelId: string;
70
- price: number;
71
- previewUrl: string | null;
72
- params: {
73
- attachedFiles?: {
74
- uuid: string;
75
- url: string;
76
- name: string;
77
- mimeType: string;
78
- type: string;
79
- size: number;
80
- duration?: number | null | undefined;
81
- content?: string | null | undefined;
82
- contentLength?: number | null | undefined;
83
- }[] | undefined;
84
- imageUrls?: string[] | undefined;
85
- styleId?: string | null | undefined;
86
- referenceId?: string | null | undefined;
87
- referenceIds?: string[] | undefined;
88
- customStylePrompt?: string | null | undefined;
89
- customStylePhotos?: string[] | undefined;
90
- clothingPhotos?: string[] | undefined;
91
- hairstylePhotos?: string[] | undefined;
92
- accessoriesPhotos?: string[] | undefined;
93
- aspectRatio?: string | undefined;
94
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
95
- };
96
- imageUrls: string[] | null;
97
- attempts: any[];
98
- userId?: string | null | undefined;
99
- unregisteredUserId?: string | null | undefined;
100
- isPublished: boolean;
101
- postId: string | null;
102
- isDeleted: boolean;
103
- isFavorite: boolean;
104
- tokenReservationId?: string | null | undefined;
105
- createdAt: Date;
106
- completedAt?: Date | null | undefined;
107
- updatedAt: Date;
108
- }, unknown>>>;
109
- code: z.ZodOptional<z.ZodString>;
110
- message: z.ZodOptional<z.ZodString>;
111
- }, z.core.$strip>;
112
- type Response = z.infer<typeof ResponseSchema>;
113
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePhotoSessionsJobFavoriteCommand = 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 UpdatePhotoSessionsJobFavoriteCommand;
8
- (function (UpdatePhotoSessionsJobFavoriteCommand) {
9
- UpdatePhotoSessionsJobFavoriteCommand.RequestSchema = zod_1.z.object({
10
- uuid: zod_1.z.string().uuid(),
11
- userId: zod_1.z.string().uuid().nullable().optional(),
12
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
- isFavorite: zod_1.z.boolean(),
14
- });
15
- UpdatePhotoSessionsJobFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
16
- })(UpdatePhotoSessionsJobFavoriteCommand || (exports.UpdatePhotoSessionsJobFavoriteCommand = UpdatePhotoSessionsJobFavoriteCommand = {}));
@@ -1,113 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace UpdatePhotoSessionsJobTitleCommand {
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
- title: z.ZodString;
8
- }, z.core.$strip>;
9
- type Request = z.infer<typeof RequestSchema>;
10
- const ResponseSchema: z.ZodObject<{
11
- isSuccess: z.ZodBoolean;
12
- data: z.ZodOptional<z.ZodType<{
13
- uuid: string;
14
- prompt: string;
15
- reaction: import("../..").USER_REACTION | null;
16
- dislikeReason: string | null;
17
- externalId: string | null;
18
- title: string;
19
- status: import("../..").JOB_STATUS;
20
- error: string | null;
21
- modelId: string;
22
- price: number;
23
- previewUrl: string | null;
24
- params: {
25
- attachedFiles?: {
26
- uuid: string;
27
- url: string;
28
- name: string;
29
- mimeType: string;
30
- type: string;
31
- size: number;
32
- duration?: number | null | undefined;
33
- content?: string | null | undefined;
34
- contentLength?: number | null | undefined;
35
- }[] | undefined;
36
- imageUrls?: string[] | undefined;
37
- styleId?: string | null | undefined;
38
- referenceId?: string | null | undefined;
39
- referenceIds?: string[] | undefined;
40
- customStylePrompt?: string | null | undefined;
41
- customStylePhotos?: string[] | undefined;
42
- clothingPhotos?: string[] | undefined;
43
- hairstylePhotos?: string[] | undefined;
44
- accessoriesPhotos?: string[] | undefined;
45
- aspectRatio?: string | undefined;
46
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
47
- };
48
- imageUrls: string[] | null;
49
- attempts: any[];
50
- userId?: string | null | undefined;
51
- unregisteredUserId?: string | null | undefined;
52
- isPublished: boolean;
53
- postId: string | null;
54
- isDeleted: boolean;
55
- isFavorite: boolean;
56
- tokenReservationId?: string | null | undefined;
57
- createdAt: Date;
58
- completedAt?: Date | null | undefined;
59
- updatedAt: Date;
60
- }, unknown, z.core.$ZodTypeInternals<{
61
- uuid: string;
62
- prompt: string;
63
- reaction: import("../..").USER_REACTION | null;
64
- dislikeReason: string | null;
65
- externalId: string | null;
66
- title: string;
67
- status: import("../..").JOB_STATUS;
68
- error: string | null;
69
- modelId: string;
70
- price: number;
71
- previewUrl: string | null;
72
- params: {
73
- attachedFiles?: {
74
- uuid: string;
75
- url: string;
76
- name: string;
77
- mimeType: string;
78
- type: string;
79
- size: number;
80
- duration?: number | null | undefined;
81
- content?: string | null | undefined;
82
- contentLength?: number | null | undefined;
83
- }[] | undefined;
84
- imageUrls?: string[] | undefined;
85
- styleId?: string | null | undefined;
86
- referenceId?: string | null | undefined;
87
- referenceIds?: string[] | undefined;
88
- customStylePrompt?: string | null | undefined;
89
- customStylePhotos?: string[] | undefined;
90
- clothingPhotos?: string[] | undefined;
91
- hairstylePhotos?: string[] | undefined;
92
- accessoriesPhotos?: string[] | undefined;
93
- aspectRatio?: string | undefined;
94
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
95
- };
96
- imageUrls: string[] | null;
97
- attempts: any[];
98
- userId?: string | null | undefined;
99
- unregisteredUserId?: string | null | undefined;
100
- isPublished: boolean;
101
- postId: string | null;
102
- isDeleted: boolean;
103
- isFavorite: boolean;
104
- tokenReservationId?: string | null | undefined;
105
- createdAt: Date;
106
- completedAt?: Date | null | undefined;
107
- updatedAt: Date;
108
- }, unknown>>>;
109
- code: z.ZodOptional<z.ZodString>;
110
- message: z.ZodOptional<z.ZodString>;
111
- }, z.core.$strip>;
112
- type Response = z.infer<typeof ResponseSchema>;
113
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePhotoSessionsJobTitleCommand = 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 UpdatePhotoSessionsJobTitleCommand;
8
- (function (UpdatePhotoSessionsJobTitleCommand) {
9
- UpdatePhotoSessionsJobTitleCommand.RequestSchema = zod_1.z.object({
10
- uuid: zod_1.z.string().uuid(),
11
- userId: zod_1.z.string().uuid().nullable().optional(),
12
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
- title: zod_1.z.string().min(1).max(40),
14
- });
15
- UpdatePhotoSessionsJobTitleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
16
- })(UpdatePhotoSessionsJobTitleCommand || (exports.UpdatePhotoSessionsJobTitleCommand = UpdatePhotoSessionsJobTitleCommand = {}));
@@ -1,118 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
3
- const RequestSchema: z.ZodObject<{
4
- criteria: z.ZodObject<{
5
- uuid: z.ZodString;
6
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- }, z.core.$strip>;
9
- data: z.ZodObject<{
10
- isPublished: z.ZodBoolean;
11
- postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- }, z.core.$strip>;
13
- }, z.core.$strip>;
14
- type Request = z.infer<typeof RequestSchema>;
15
- const ResponseSchema: z.ZodObject<{
16
- isSuccess: z.ZodBoolean;
17
- data: z.ZodOptional<z.ZodType<{
18
- uuid: string;
19
- prompt: string;
20
- reaction: import("../..").USER_REACTION | null;
21
- dislikeReason: string | null;
22
- externalId: string | null;
23
- title: string;
24
- status: import("../..").JOB_STATUS;
25
- error: string | null;
26
- modelId: string;
27
- price: number;
28
- previewUrl: string | null;
29
- params: {
30
- attachedFiles?: {
31
- uuid: string;
32
- url: string;
33
- name: string;
34
- mimeType: string;
35
- type: string;
36
- size: number;
37
- duration?: number | null | undefined;
38
- content?: string | null | undefined;
39
- contentLength?: number | null | undefined;
40
- }[] | undefined;
41
- imageUrls?: string[] | undefined;
42
- styleId?: string | null | undefined;
43
- referenceId?: string | null | undefined;
44
- referenceIds?: string[] | undefined;
45
- customStylePrompt?: string | null | undefined;
46
- customStylePhotos?: string[] | undefined;
47
- clothingPhotos?: string[] | undefined;
48
- hairstylePhotos?: string[] | undefined;
49
- accessoriesPhotos?: string[] | undefined;
50
- aspectRatio?: string | undefined;
51
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
52
- };
53
- imageUrls: string[] | null;
54
- attempts: any[];
55
- userId?: string | null | undefined;
56
- unregisteredUserId?: string | null | undefined;
57
- isPublished: boolean;
58
- postId: string | null;
59
- isDeleted: boolean;
60
- isFavorite: boolean;
61
- tokenReservationId?: string | null | undefined;
62
- createdAt: Date;
63
- completedAt?: Date | null | undefined;
64
- updatedAt: Date;
65
- }, unknown, z.core.$ZodTypeInternals<{
66
- uuid: string;
67
- prompt: string;
68
- reaction: import("../..").USER_REACTION | null;
69
- dislikeReason: string | null;
70
- externalId: string | null;
71
- title: string;
72
- status: import("../..").JOB_STATUS;
73
- error: string | null;
74
- modelId: string;
75
- price: number;
76
- previewUrl: string | null;
77
- params: {
78
- attachedFiles?: {
79
- uuid: string;
80
- url: string;
81
- name: string;
82
- mimeType: string;
83
- type: string;
84
- size: number;
85
- duration?: number | null | undefined;
86
- content?: string | null | undefined;
87
- contentLength?: number | null | undefined;
88
- }[] | undefined;
89
- imageUrls?: string[] | undefined;
90
- styleId?: string | null | undefined;
91
- referenceId?: string | null | undefined;
92
- referenceIds?: string[] | undefined;
93
- customStylePrompt?: string | null | undefined;
94
- customStylePhotos?: string[] | undefined;
95
- clothingPhotos?: string[] | undefined;
96
- hairstylePhotos?: string[] | undefined;
97
- accessoriesPhotos?: string[] | undefined;
98
- aspectRatio?: string | undefined;
99
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
100
- };
101
- imageUrls: string[] | null;
102
- attempts: any[];
103
- userId?: string | null | undefined;
104
- unregisteredUserId?: string | null | undefined;
105
- isPublished: boolean;
106
- postId: string | null;
107
- isDeleted: boolean;
108
- isFavorite: boolean;
109
- tokenReservationId?: string | null | undefined;
110
- createdAt: Date;
111
- completedAt?: Date | null | undefined;
112
- updatedAt: Date;
113
- }, unknown>>>;
114
- code: z.ZodOptional<z.ZodString>;
115
- message: z.ZodOptional<z.ZodString>;
116
- }, z.core.$strip>;
117
- type Response = z.infer<typeof ResponseSchema>;
118
- }
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePublishedStatusPhotoSessionsJobsCommand = 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 UpdatePublishedStatusPhotoSessionsJobsCommand;
8
- (function (UpdatePublishedStatusPhotoSessionsJobsCommand) {
9
- UpdatePublishedStatusPhotoSessionsJobsCommand.RequestSchema = zod_1.z.object({
10
- criteria: zod_1.z.object({
11
- uuid: zod_1.z.string().uuid(),
12
- userId: zod_1.z.string().uuid().nullable().optional(),
13
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
- }),
15
- data: zod_1.z
16
- .object({
17
- isPublished: zod_1.z.boolean(),
18
- postId: zod_1.z.string().nullable().optional(),
19
- })
20
- .refine((data) => (data.isPublished ? !!data.postId : true), {
21
- message: 'Post ID is required when job is published',
22
- path: ['postId'],
23
- }),
24
- });
25
- UpdatePublishedStatusPhotoSessionsJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
26
- })(UpdatePublishedStatusPhotoSessionsJobsCommand || (exports.UpdatePublishedStatusPhotoSessionsJobsCommand = UpdatePublishedStatusPhotoSessionsJobsCommand = {}));
@@ -1,2 +0,0 @@
1
- export * from './photo-session-strategy.enum';
2
- export * from './photo-session-look-type.enum';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./photo-session-strategy.enum"), exports);
18
- __exportStar(require("./photo-session-look-type.enum"), exports);
@@ -1,5 +0,0 @@
1
- export declare enum PHOTO_SESSION_LOOK_TYPE {
2
- CLOTHING = "clothing",
3
- HAIRSTYLE = "hairstyle",
4
- ACCESSORIES = "accessories"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PHOTO_SESSION_LOOK_TYPE = void 0;
4
- var PHOTO_SESSION_LOOK_TYPE;
5
- (function (PHOTO_SESSION_LOOK_TYPE) {
6
- PHOTO_SESSION_LOOK_TYPE["CLOTHING"] = "clothing";
7
- PHOTO_SESSION_LOOK_TYPE["HAIRSTYLE"] = "hairstyle";
8
- PHOTO_SESSION_LOOK_TYPE["ACCESSORIES"] = "accessories";
9
- })(PHOTO_SESSION_LOOK_TYPE || (exports.PHOTO_SESSION_LOOK_TYPE = PHOTO_SESSION_LOOK_TYPE = {}));
@@ -1,4 +0,0 @@
1
- export declare enum PHOTO_SESSION_STRATEGY {
2
- NANO_BANANA_PRO_CALLBACK = "NANO_BANANA_PRO_CALLBACK",
3
- OPENAI_IMAGE_1_GENERATION = "OPENAI_IMAGE_1_GENERATION"
4
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PHOTO_SESSION_STRATEGY = void 0;
4
- var PHOTO_SESSION_STRATEGY;
5
- (function (PHOTO_SESSION_STRATEGY) {
6
- PHOTO_SESSION_STRATEGY["NANO_BANANA_PRO_CALLBACK"] = "NANO_BANANA_PRO_CALLBACK";
7
- PHOTO_SESSION_STRATEGY["OPENAI_IMAGE_1_GENERATION"] = "OPENAI_IMAGE_1_GENERATION";
8
- })(PHOTO_SESSION_STRATEGY || (exports.PHOTO_SESSION_STRATEGY = PHOTO_SESSION_STRATEGY = {}));
@@ -1,5 +0,0 @@
1
- export * from './commands';
2
- export * from './enums';
3
- export * from './models';
4
- export * from './queries';
5
- export * from './routes';
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./commands"), exports);
18
- __exportStar(require("./enums"), exports);
19
- __exportStar(require("./models"), exports);
20
- __exportStar(require("./queries"), exports);
21
- __exportStar(require("./routes"), exports);
@@ -1,4 +0,0 @@
1
- export * from './photo-session-config.schema';
2
- export * from './photo-session-job.schema';
3
- export * from './photo-session-model.schema';
4
- export * from './photo-session-style.schema';