@purpleschool/gptbot-tools 0.2.57 → 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeletePhotoSessionStyleCommand = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../../common/models/command-response.schema");
6
- var DeletePhotoSessionStyleCommand;
7
- (function (DeletePhotoSessionStyleCommand) {
8
- DeletePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
9
- uuid: zod_1.z.string().uuid(),
10
- });
11
- DeletePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
12
- })(DeletePhotoSessionStyleCommand || (exports.DeletePhotoSessionStyleCommand = DeletePhotoSessionStyleCommand = {}));
@@ -1,3 +0,0 @@
1
- export * from './create-photo-session-style.command';
2
- export * from './update-photo-session-style.command';
3
- export * from './delete-photo-session-style.command';
@@ -1,19 +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("./create-photo-session-style.command"), exports);
18
- __exportStar(require("./update-photo-session-style.command"), exports);
19
- __exportStar(require("./delete-photo-session-style.command"), exports);
@@ -1,55 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace UpdatePhotoSessionStyleCommand {
3
- const RequestSchema: z.ZodObject<{
4
- uuid: z.ZodString;
5
- code: z.ZodOptional<z.ZodString>;
6
- title: z.ZodOptional<z.ZodString>;
7
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- references: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
- photoUrl: z.ZodString;
10
- description: z.ZodOptional<z.ZodString>;
11
- order: z.ZodNumber;
12
- uuid: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strip>>>;
14
- }, z.core.$strip>;
15
- type Request = z.infer<typeof RequestSchema>;
16
- const ResponseSchema: z.ZodObject<{
17
- isSuccess: z.ZodBoolean;
18
- data: z.ZodOptional<z.ZodType<{
19
- uuid: string;
20
- code: string;
21
- title: string;
22
- description?: string | null | undefined;
23
- references: {
24
- uuid: string;
25
- styleId: string;
26
- photoUrl: string;
27
- description?: string | null | undefined;
28
- order: number;
29
- createdAt: Date;
30
- updatedAt: Date;
31
- }[];
32
- createdAt: Date;
33
- updatedAt: Date;
34
- }, unknown, z.core.$ZodTypeInternals<{
35
- uuid: string;
36
- code: string;
37
- title: string;
38
- description?: string | null | undefined;
39
- references: {
40
- uuid: string;
41
- styleId: string;
42
- photoUrl: string;
43
- description?: string | null | undefined;
44
- order: number;
45
- createdAt: Date;
46
- updatedAt: Date;
47
- }[];
48
- createdAt: Date;
49
- updatedAt: Date;
50
- }, unknown>>>;
51
- code: z.ZodOptional<z.ZodString>;
52
- message: z.ZodOptional<z.ZodString>;
53
- }, z.core.$strip>;
54
- type Response = z.infer<typeof ResponseSchema>;
55
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePhotoSessionStyleCommand = 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 create_photo_session_style_command_1 = require("./create-photo-session-style.command");
8
- const UpdatePhotoSessionStyleReferenceSchema = create_photo_session_style_command_1.CreatePhotoSessionStyleReferenceSchema.extend({
9
- uuid: zod_1.z.string().uuid().optional(),
10
- }).refine((ref) => {
11
- if (ref.photoUrl === undefined &&
12
- ref.description === undefined &&
13
- ref.order === undefined) {
14
- return false;
15
- }
16
- return true;
17
- }, { message: 'At least one field must be provided for reference update' });
18
- var UpdatePhotoSessionStyleCommand;
19
- (function (UpdatePhotoSessionStyleCommand) {
20
- UpdatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
21
- uuid: zod_1.z.string().uuid(),
22
- code: zod_1.z.string().optional(),
23
- title: zod_1.z.string().optional(),
24
- description: zod_1.z.string().nullable().optional(),
25
- references: zod_1.z.array(UpdatePhotoSessionStyleReferenceSchema).max(6).optional(),
26
- });
27
- UpdatePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
28
- })(UpdatePhotoSessionStyleCommand || (exports.UpdatePhotoSessionStyleCommand = UpdatePhotoSessionStyleCommand = {}));
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
- import { JOB_SCOPE } from '../../common';
3
- export declare namespace DeleteAllPhotoSessionsJobsCommand {
4
- const RequestSchema: z.ZodObject<{
5
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
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<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
13
- code: z.ZodOptional<z.ZodString>;
14
- message: z.ZodOptional<z.ZodString>;
15
- }, z.core.$strip>;
16
- type Response = z.infer<typeof ResponseSchema>;
17
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteAllPhotoSessionsJobsCommand = 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
- var DeleteAllPhotoSessionsJobsCommand;
8
- (function (DeleteAllPhotoSessionsJobsCommand) {
9
- DeleteAllPhotoSessionsJobsCommand.RequestSchema = zod_1.z.object({
10
- userId: zod_1.z.string().uuid().nullable().optional(),
11
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
12
- scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
13
- });
14
- DeleteAllPhotoSessionsJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
15
- })(DeleteAllPhotoSessionsJobsCommand || (exports.DeleteAllPhotoSessionsJobsCommand = DeleteAllPhotoSessionsJobsCommand = {}));
@@ -1,16 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace DeletePhotoSessionsJobByUuidCommand {
3
- const RequestSchema: z.ZodObject<{
4
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- uuid: 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<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
12
- code: z.ZodOptional<z.ZodString>;
13
- message: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strip>;
15
- type Response = z.infer<typeof ResponseSchema>;
16
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeletePhotoSessionsJobByUuidCommand = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../common/models/command-response.schema");
6
- var DeletePhotoSessionsJobByUuidCommand;
7
- (function (DeletePhotoSessionsJobByUuidCommand) {
8
- DeletePhotoSessionsJobByUuidCommand.RequestSchema = zod_1.z.object({
9
- userId: zod_1.z.string().uuid().nullable().optional(),
10
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
11
- uuid: zod_1.z.string(),
12
- });
13
- DeletePhotoSessionsJobByUuidCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
14
- })(DeletePhotoSessionsJobByUuidCommand || (exports.DeletePhotoSessionsJobByUuidCommand = DeletePhotoSessionsJobByUuidCommand = {}));
@@ -1,46 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace GetPhotoSessionsPriceCommand {
3
- const RequestSchema: z.ZodObject<{
4
- modelId: z.ZodString;
5
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- prompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8
- params: z.ZodObject<{
9
- attachedFiles: z.ZodArray<z.ZodObject<{
10
- uuid: z.ZodString;
11
- url: z.ZodString;
12
- name: z.ZodString;
13
- mimeType: z.ZodString;
14
- type: z.ZodString;
15
- size: z.ZodNumber;
16
- duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
17
- content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
- contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
19
- }, z.core.$strip>>;
20
- styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- referenceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
22
- customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- customStylePhotos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
24
- clothingPhotos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
25
- hairstylePhotos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
26
- accessoriesPhotos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
27
- }, z.core.$strip>;
28
- userHasActiveSubscriptionOrProduct: z.ZodBoolean;
29
- }, z.core.$strip>;
30
- type Request = z.infer<typeof RequestSchema>;
31
- const ResponseDataSchema: z.ZodObject<{
32
- price: z.ZodNumber;
33
- }, z.core.$strip>;
34
- type ResponseData = z.infer<typeof ResponseDataSchema>;
35
- const ResponseSchema: z.ZodObject<{
36
- isSuccess: z.ZodBoolean;
37
- data: z.ZodOptional<z.ZodType<{
38
- price: number;
39
- }, unknown, z.core.$ZodTypeInternals<{
40
- price: number;
41
- }, unknown>>>;
42
- code: z.ZodOptional<z.ZodString>;
43
- message: z.ZodOptional<z.ZodString>;
44
- }, z.core.$strip>;
45
- type Response = z.infer<typeof ResponseSchema>;
46
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPhotoSessionsPriceCommand = void 0;
4
- const zod_1 = require("zod");
5
- const command_response_schema_1 = require("../../common/models/command-response.schema");
6
- const common_1 = require("../../common");
7
- var GetPhotoSessionsPriceCommand;
8
- (function (GetPhotoSessionsPriceCommand) {
9
- GetPhotoSessionsPriceCommand.RequestSchema = zod_1.z.object({
10
- modelId: zod_1.z.string().uuid(),
11
- userId: zod_1.z.string().uuid().nullable().optional(),
12
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
- prompt: zod_1.z.string().optional().default(''),
14
- params: zod_1.z.object({
15
- attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).min(1).max(3),
16
- styleId: zod_1.z.string().uuid().nullable().optional(),
17
- referenceIds: zod_1.z.array(zod_1.z.string().uuid()).optional().default([]),
18
- customStylePrompt: zod_1.z.string().nullable().optional(),
19
- customStylePhotos: zod_1.z.array(zod_1.z.string()).optional().default([]),
20
- clothingPhotos: zod_1.z.array(zod_1.z.string()).optional().default([]),
21
- hairstylePhotos: zod_1.z.array(zod_1.z.string()).optional().default([]),
22
- accessoriesPhotos: zod_1.z.array(zod_1.z.string()).optional().default([]),
23
- }),
24
- userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
25
- });
26
- GetPhotoSessionsPriceCommand.ResponseDataSchema = zod_1.z.object({
27
- price: zod_1.z.number(),
28
- });
29
- GetPhotoSessionsPriceCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(GetPhotoSessionsPriceCommand.ResponseDataSchema);
30
- })(GetPhotoSessionsPriceCommand || (exports.GetPhotoSessionsPriceCommand = GetPhotoSessionsPriceCommand = {}));
@@ -1,10 +0,0 @@
1
- export * from './delete-photo-sessions-job-by-uuid.command';
2
- export * from './delete-all-photo-sessions-jobs.command';
3
- export * from './get-photo-sessions-price.command';
4
- export * from './retry-photo-sessions-job.command';
5
- export * from './set-reaction-to-photo-sessions-job.command';
6
- export * from './photo-sessions.command';
7
- export * from './update-photo-sessions-job-title.command';
8
- export * from './update-photo-sessions-job-favorite.command';
9
- export * from './update-published-status-photo-sessions-jobs.command';
10
- export * from './admin';
@@ -1,26 +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("./delete-photo-sessions-job-by-uuid.command"), exports);
18
- __exportStar(require("./delete-all-photo-sessions-jobs.command"), exports);
19
- __exportStar(require("./get-photo-sessions-price.command"), exports);
20
- __exportStar(require("./retry-photo-sessions-job.command"), exports);
21
- __exportStar(require("./set-reaction-to-photo-sessions-job.command"), exports);
22
- __exportStar(require("./photo-sessions.command"), exports);
23
- __exportStar(require("./update-photo-sessions-job-title.command"), exports);
24
- __exportStar(require("./update-photo-sessions-job-favorite.command"), exports);
25
- __exportStar(require("./update-published-status-photo-sessions-jobs.command"), exports);
26
- __exportStar(require("./admin"), exports);
@@ -1,147 +0,0 @@
1
- import { z } from 'zod';
2
- import { JOB_SCOPE } from '../../common';
3
- import { TOOL_WORKSPACE_ITEM_SLOT } from '../../tool-workspace';
4
- import { TOOL_CONTENT_TYPE } from '../../tools';
5
- export declare namespace PhotoSessionsCommand {
6
- const RequestSchema: z.ZodObject<{
7
- locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
8
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
11
- workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- workspaceItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- workspaceToolType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof TOOL_CONTENT_TYPE>>>;
14
- workspaceSlot: z.ZodOptional<z.ZodEnum<typeof TOOL_WORKSPACE_ITEM_SLOT>>;
15
- workspaceOrder: z.ZodOptional<z.ZodNumber>;
16
- prompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
17
- modelId: z.ZodString;
18
- params: z.ZodObject<{
19
- attachedFiles: z.ZodArray<z.ZodObject<{
20
- uuid: z.ZodString;
21
- url: z.ZodString;
22
- name: z.ZodString;
23
- mimeType: z.ZodString;
24
- type: z.ZodString;
25
- size: z.ZodNumber;
26
- duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
27
- content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28
- contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
29
- }, z.core.$strip>>;
30
- styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
- referenceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
32
- customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- customStylePhotos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
34
- clothingPhotos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
35
- hairstylePhotos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
36
- accessoriesPhotos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
37
- aspectRatio: z.ZodOptional<z.ZodString>;
38
- }, z.core.$strip>;
39
- userHasActiveSubscriptionOrProduct: z.ZodBoolean;
40
- tokenReservationId: z.ZodString;
41
- precalculatedPrice: z.ZodNumber;
42
- }, z.core.$strip>;
43
- type Request = z.infer<typeof RequestSchema>;
44
- const ResponseSchema: z.ZodObject<{
45
- isSuccess: z.ZodBoolean;
46
- data: z.ZodOptional<z.ZodType<{
47
- uuid: string;
48
- prompt: string;
49
- reaction: import("../..").USER_REACTION | null;
50
- dislikeReason: string | null;
51
- externalId: string | null;
52
- title: string;
53
- status: import("../..").JOB_STATUS;
54
- error: string | null;
55
- modelId: string;
56
- price: number;
57
- previewUrl: string | null;
58
- params: {
59
- attachedFiles?: {
60
- uuid: string;
61
- url: string;
62
- name: string;
63
- mimeType: string;
64
- type: string;
65
- size: number;
66
- duration?: number | null | undefined;
67
- content?: string | null | undefined;
68
- contentLength?: number | null | undefined;
69
- }[] | undefined;
70
- imageUrls?: string[] | undefined;
71
- styleId?: string | null | undefined;
72
- referenceId?: string | null | undefined;
73
- referenceIds?: string[] | undefined;
74
- customStylePrompt?: string | null | undefined;
75
- customStylePhotos?: string[] | undefined;
76
- clothingPhotos?: string[] | undefined;
77
- hairstylePhotos?: string[] | undefined;
78
- accessoriesPhotos?: string[] | undefined;
79
- aspectRatio?: string | undefined;
80
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
81
- };
82
- imageUrls: string[] | null;
83
- attempts: any[];
84
- userId?: string | null | undefined;
85
- unregisteredUserId?: string | null | undefined;
86
- isPublished: boolean;
87
- postId: string | null;
88
- isDeleted: boolean;
89
- isFavorite: boolean;
90
- tokenReservationId?: string | null | undefined;
91
- createdAt: Date;
92
- completedAt?: Date | null | undefined;
93
- updatedAt: Date;
94
- }[], unknown, z.core.$ZodTypeInternals<{
95
- uuid: string;
96
- prompt: string;
97
- reaction: import("../..").USER_REACTION | null;
98
- dislikeReason: string | null;
99
- externalId: string | null;
100
- title: string;
101
- status: import("../..").JOB_STATUS;
102
- error: string | null;
103
- modelId: string;
104
- price: number;
105
- previewUrl: string | null;
106
- params: {
107
- attachedFiles?: {
108
- uuid: string;
109
- url: string;
110
- name: string;
111
- mimeType: string;
112
- type: string;
113
- size: number;
114
- duration?: number | null | undefined;
115
- content?: string | null | undefined;
116
- contentLength?: number | null | undefined;
117
- }[] | undefined;
118
- imageUrls?: string[] | undefined;
119
- styleId?: string | null | undefined;
120
- referenceId?: string | null | undefined;
121
- referenceIds?: string[] | undefined;
122
- customStylePrompt?: string | null | undefined;
123
- customStylePhotos?: string[] | undefined;
124
- clothingPhotos?: string[] | undefined;
125
- hairstylePhotos?: string[] | undefined;
126
- accessoriesPhotos?: string[] | undefined;
127
- aspectRatio?: string | undefined;
128
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
129
- };
130
- imageUrls: string[] | null;
131
- attempts: any[];
132
- userId?: string | null | undefined;
133
- unregisteredUserId?: string | null | undefined;
134
- isPublished: boolean;
135
- postId: string | null;
136
- isDeleted: boolean;
137
- isFavorite: boolean;
138
- tokenReservationId?: string | null | undefined;
139
- createdAt: Date;
140
- completedAt?: Date | null | undefined;
141
- updatedAt: Date;
142
- }[], unknown>>>;
143
- code: z.ZodOptional<z.ZodString>;
144
- message: z.ZodOptional<z.ZodString>;
145
- }, z.core.$strip>;
146
- type Response = z.infer<typeof ResponseSchema>;
147
- }
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PhotoSessionsCommand = 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 locale_schema_1 = require("../../common/models/locale.schema");
8
- const models_1 = require("../models");
9
- const tool_workspace_1 = require("../../tool-workspace");
10
- const tools_1 = require("../../tools");
11
- var PhotoSessionsCommand;
12
- (function (PhotoSessionsCommand) {
13
- PhotoSessionsCommand.RequestSchema = zod_1.z.object({
14
- locale: locale_schema_1.LocaleSchema,
15
- userId: zod_1.z.string().uuid().nullable().optional(),
16
- unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
17
- scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
18
- workspaceId: zod_1.z.string().uuid().nullable().optional(),
19
- workspaceItemId: zod_1.z.string().uuid().nullable().optional(),
20
- workspaceToolType: zod_1.z.nativeEnum(tools_1.TOOL_CONTENT_TYPE).nullable().optional(),
21
- workspaceSlot: zod_1.z.nativeEnum(tool_workspace_1.TOOL_WORKSPACE_ITEM_SLOT).optional(),
22
- workspaceOrder: zod_1.z.number().int().min(0).optional(),
23
- prompt: zod_1.z.string().optional().default(''),
24
- modelId: zod_1.z.string(),
25
- params: zod_1.z.object({
26
- attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).min(1).max(3),
27
- styleId: zod_1.z.string().uuid().nullable().optional(),
28
- referenceIds: zod_1.z.array(zod_1.z.string().uuid()).optional().default([]),
29
- customStylePrompt: zod_1.z.string().nullable().optional(),
30
- customStylePhotos: zod_1.z.array(zod_1.z.string()).optional().default([]),
31
- clothingPhotos: zod_1.z.array(zod_1.z.string()).max(6).optional().default([]),
32
- hairstylePhotos: zod_1.z.array(zod_1.z.string()).max(6).optional().default([]),
33
- accessoriesPhotos: zod_1.z.array(zod_1.z.string()).max(6).optional().default([]),
34
- aspectRatio: zod_1.z.string().optional(),
35
- }),
36
- userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
37
- tokenReservationId: zod_1.z.string().uuid(),
38
- precalculatedPrice: zod_1.z.number(),
39
- });
40
- PhotoSessionsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.array(models_1.PhotoSessionJobSchema));
41
- })(PhotoSessionsCommand || (exports.PhotoSessionsCommand = PhotoSessionsCommand = {}));
@@ -1,142 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace RetryPhotoSessionsJobCommand {
3
- const RequestSchema: z.ZodObject<{
4
- locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
5
- uuid: z.ZodString;
6
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- userHasActiveSubscriptionOrProduct: z.ZodBoolean;
9
- tokenReservationId: z.ZodString;
10
- precalculatedPrice: z.ZodNumber;
11
- modelId: z.ZodOptional<z.ZodString>;
12
- prompt: z.ZodOptional<z.ZodString>;
13
- params: z.ZodOptional<z.ZodObject<{
14
- attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
15
- uuid: z.ZodString;
16
- url: z.ZodString;
17
- name: z.ZodString;
18
- mimeType: z.ZodString;
19
- type: z.ZodString;
20
- size: z.ZodNumber;
21
- duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
22
- content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
23
- contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
24
- }, z.core.$strip>>>;
25
- imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
26
- styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
- customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
- clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
32
- hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
33
- accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
- aspectRatio: z.ZodOptional<z.ZodString>;
35
- userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
36
- }, z.core.$strip>>;
37
- }, z.core.$strip>;
38
- type Request = z.infer<typeof RequestSchema>;
39
- const ResponseSchema: z.ZodObject<{
40
- isSuccess: z.ZodBoolean;
41
- data: z.ZodOptional<z.ZodType<{
42
- uuid: string;
43
- prompt: string;
44
- reaction: import("../..").USER_REACTION | null;
45
- dislikeReason: string | null;
46
- externalId: string | null;
47
- title: string;
48
- status: import("../..").JOB_STATUS;
49
- error: string | null;
50
- modelId: string;
51
- price: number;
52
- previewUrl: string | null;
53
- params: {
54
- attachedFiles?: {
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
- imageUrls?: string[] | undefined;
66
- styleId?: string | null | undefined;
67
- referenceId?: string | null | undefined;
68
- referenceIds?: string[] | undefined;
69
- customStylePrompt?: string | null | undefined;
70
- customStylePhotos?: string[] | undefined;
71
- clothingPhotos?: string[] | undefined;
72
- hairstylePhotos?: string[] | undefined;
73
- accessoriesPhotos?: string[] | undefined;
74
- aspectRatio?: string | undefined;
75
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
76
- };
77
- imageUrls: string[] | null;
78
- attempts: any[];
79
- userId?: string | null | undefined;
80
- unregisteredUserId?: string | null | undefined;
81
- isPublished: boolean;
82
- postId: string | null;
83
- isDeleted: boolean;
84
- isFavorite: boolean;
85
- tokenReservationId?: string | null | undefined;
86
- createdAt: Date;
87
- completedAt?: Date | null | undefined;
88
- updatedAt: Date;
89
- }, unknown, z.core.$ZodTypeInternals<{
90
- uuid: string;
91
- prompt: string;
92
- reaction: import("../..").USER_REACTION | null;
93
- dislikeReason: string | null;
94
- externalId: string | null;
95
- title: string;
96
- status: import("../..").JOB_STATUS;
97
- error: string | null;
98
- modelId: string;
99
- price: number;
100
- previewUrl: string | null;
101
- params: {
102
- attachedFiles?: {
103
- uuid: string;
104
- url: string;
105
- name: string;
106
- mimeType: string;
107
- type: string;
108
- size: number;
109
- duration?: number | null | undefined;
110
- content?: string | null | undefined;
111
- contentLength?: number | null | undefined;
112
- }[] | undefined;
113
- imageUrls?: string[] | undefined;
114
- styleId?: string | null | undefined;
115
- referenceId?: string | null | undefined;
116
- referenceIds?: string[] | undefined;
117
- customStylePrompt?: string | null | undefined;
118
- customStylePhotos?: string[] | undefined;
119
- clothingPhotos?: string[] | undefined;
120
- hairstylePhotos?: string[] | undefined;
121
- accessoriesPhotos?: string[] | undefined;
122
- aspectRatio?: string | undefined;
123
- userHasActiveSubscriptionOrProduct?: boolean | undefined;
124
- };
125
- imageUrls: string[] | null;
126
- attempts: any[];
127
- userId?: string | null | undefined;
128
- unregisteredUserId?: string | null | undefined;
129
- isPublished: boolean;
130
- postId: string | null;
131
- isDeleted: boolean;
132
- isFavorite: boolean;
133
- tokenReservationId?: string | null | undefined;
134
- createdAt: Date;
135
- completedAt?: Date | null | undefined;
136
- updatedAt: Date;
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
- }