@purpleschool/gptbot-tools 0.2.58 → 0.2.59-stage2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) 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 +58 -0
  6. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
  7. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
  8. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
  9. package/build/photo-sessions/commands/admin/index.d.ts +3 -0
  10. package/build/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 +28 -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 +15 -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 +46 -0
  18. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +30 -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 +147 -0
  22. package/build/photo-sessions/commands/photo-sessions.command.js +41 -0
  23. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +142 -0
  24. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +23 -0
  25. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +115 -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 +113 -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 +113 -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 +118 -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 +2 -0
  34. package/build/photo-sessions/enums/index.js +18 -0
  35. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  36. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  37. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  38. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  39. package/build/photo-sessions/index.d.ts +5 -0
  40. package/build/photo-sessions/index.js +21 -0
  41. package/build/photo-sessions/models/index.d.ts +4 -0
  42. package/build/photo-sessions/models/index.js +20 -0
  43. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  44. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  45. package/build/photo-sessions/models/photo-session-job.schema.d.ts +78 -0
  46. package/build/photo-sessions/models/photo-session-job.schema.js +46 -0
  47. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  48. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  49. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  50. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  51. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  52. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  53. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  54. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  55. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +110 -0
  56. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +10 -0
  57. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +130 -0
  58. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +28 -0
  59. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  60. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  61. package/build/photo-sessions/queries/index.d.ts +5 -0
  62. package/build/photo-sessions/queries/index.js +21 -0
  63. package/build/photo-sessions/routes/index.d.ts +2 -0
  64. package/build/photo-sessions/routes/index.js +18 -0
  65. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  66. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  67. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  68. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  69. package/build/tools/enums/tool-content-type.enum.d.ts +2 -1
  70. package/build/tools/enums/tool-content-type.enum.js +2 -1
  71. package/build/tools/enums/tool-type.enum.d.ts +1 -0
  72. package/build/tools/enums/tool-type.enum.js +1 -0
  73. package/build/tools/models/global-tools-config.schema.d.ts +76 -0
  74. package/build/tools/models/global-tools-config.schema.js +2 -0
  75. package/build/tools/models/tools-with-configs.schema.d.ts +22 -0
  76. package/build/tools/queries/get-global-tools-config.query.d.ts +152 -0
  77. package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -0
  78. package/build/tts/commands/create-voice-clone.command.d.ts +56 -0
  79. package/build/tts/commands/create-voice-clone.command.js +19 -0
  80. package/build/tts/commands/create-voice-design.command.d.ts +35 -0
  81. package/build/tts/commands/create-voice-design.command.js +18 -0
  82. package/build/tts/commands/delete-voice.command.d.ts +15 -0
  83. package/build/tts/commands/delete-voice.command.js +13 -0
  84. package/build/tts/commands/download-tts-job.command.d.ts +25 -0
  85. package/build/tts/commands/download-tts-job.command.js +19 -0
  86. package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
  87. package/build/tts/commands/improve-tts-text.command.js +16 -0
  88. package/build/tts/commands/index.d.ts +7 -0
  89. package/build/tts/commands/index.js +7 -0
  90. package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
  91. package/build/tts/commands/retry-tts-job.command.js +2 -0
  92. package/build/tts/commands/select-voice-design.command.d.ts +53 -0
  93. package/build/tts/commands/select-voice-design.command.js +16 -0
  94. package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
  95. package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
  96. package/build/tts/commands/tts.command.d.ts +35 -3
  97. package/build/tts/commands/tts.command.js +4 -1
  98. package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
  99. package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
  100. package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
  101. package/build/tts/commands/update-tts-job-title.command.js +2 -0
  102. package/build/tts/commands/update-voice.command.d.ts +53 -0
  103. package/build/tts/commands/update-voice.command.js +16 -0
  104. package/build/tts/enums/index.d.ts +7 -0
  105. package/build/tts/enums/index.js +7 -0
  106. package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
  107. package/build/tts/enums/tts-download-format.enum.js +9 -0
  108. package/build/tts/enums/voice-category.enum.d.ts +14 -0
  109. package/build/tts/enums/voice-category.enum.js +18 -0
  110. package/build/tts/enums/voice-gender.enum.d.ts +4 -0
  111. package/build/tts/enums/voice-gender.enum.js +8 -0
  112. package/build/tts/enums/voice-source.enum.d.ts +5 -0
  113. package/build/tts/enums/voice-source.enum.js +9 -0
  114. package/build/tts/enums/voice-status.enum.d.ts +5 -0
  115. package/build/tts/enums/voice-status.enum.js +9 -0
  116. package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
  117. package/build/tts/enums/voice-tag-group.enum.js +9 -0
  118. package/build/tts/enums/voice-tag.enum.d.ts +20 -0
  119. package/build/tts/enums/voice-tag.enum.js +24 -0
  120. package/build/tts/models/index.d.ts +5 -0
  121. package/build/tts/models/index.js +5 -0
  122. package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
  123. package/build/tts/models/tts-config.schema.d.ts +11 -0
  124. package/build/tts/models/tts-config.schema.js +5 -0
  125. package/build/tts/models/tts-job.schema.d.ts +34 -2
  126. package/build/tts/models/tts-job.schema.js +22 -2
  127. package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
  128. package/build/tts/models/tts-model.schema.d.ts +1 -0
  129. package/build/tts/models/tts-model.schema.js +1 -0
  130. package/build/tts/models/voice-category.schema.d.ts +7 -0
  131. package/build/tts/models/voice-category.schema.js +9 -0
  132. package/build/tts/models/voice-design-draft.schema.d.ts +12 -0
  133. package/build/tts/models/voice-design-draft.schema.js +12 -0
  134. package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
  135. package/build/tts/models/voice-design-sample.schema.js +8 -0
  136. package/build/tts/models/voice-tag.schema.d.ts +9 -0
  137. package/build/tts/models/voice-tag.schema.js +11 -0
  138. package/build/tts/models/voice.schema.d.ts +25 -0
  139. package/build/tts/models/voice.schema.js +27 -0
  140. package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
  141. package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
  142. package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
  143. package/build/tts/queries/find-tts-jobs.query.js +1 -0
  144. package/build/tts/queries/find-voice-by-id.query.d.ts +53 -0
  145. package/build/tts/queries/find-voice-by-id.query.js +16 -0
  146. package/build/tts/queries/find-voices.query.d.ts +87 -0
  147. package/build/tts/queries/find-voices.query.js +24 -0
  148. package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
  149. package/build/tts/queries/get-tts-config.query.d.ts +22 -0
  150. package/build/tts/queries/index.d.ts +2 -0
  151. package/build/tts/queries/index.js +2 -0
  152. package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
  153. package/build/tts/routes/tts.amqp.routes.js +9 -0
  154. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindPhotoSessionStyleByIdQuery {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Request = z.infer<typeof RequestSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ isSuccess: z.ZodBoolean;
9
+ data: z.ZodOptional<z.ZodType<{
10
+ uuid: string;
11
+ code: string;
12
+ title: string;
13
+ description?: string | null | undefined;
14
+ references: {
15
+ uuid: string;
16
+ styleId: string;
17
+ photoUrl: string;
18
+ description?: string | null | undefined;
19
+ order: number;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ }[];
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ }, unknown, z.core.$ZodTypeInternals<{
26
+ uuid: string;
27
+ code: string;
28
+ title: string;
29
+ description?: string | null | undefined;
30
+ references: {
31
+ uuid: string;
32
+ styleId: string;
33
+ photoUrl: string;
34
+ description?: string | null | undefined;
35
+ order: number;
36
+ createdAt: Date;
37
+ updatedAt: Date;
38
+ }[];
39
+ createdAt: Date;
40
+ updatedAt: Date;
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
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionStyleByIdQuery = void 0;
4
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
5
+ const models_1 = require("../models");
6
+ var FindPhotoSessionStyleByIdQuery;
7
+ (function (FindPhotoSessionStyleByIdQuery) {
8
+ FindPhotoSessionStyleByIdQuery.RequestSchema = models_1.PhotoSessionStyleSchema.pick({ uuid: true });
9
+ FindPhotoSessionStyleByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
10
+ })(FindPhotoSessionStyleByIdQuery || (exports.FindPhotoSessionStyleByIdQuery = FindPhotoSessionStyleByIdQuery = {}));
@@ -0,0 +1,57 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindPhotoSessionStylesQuery {
3
+ const RequestSchema: z.ZodObject<{
4
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
5
+ offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
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
+ data: {
12
+ uuid: string;
13
+ code: string;
14
+ title: string;
15
+ description?: string | null | undefined;
16
+ references: {
17
+ uuid: string;
18
+ styleId: string;
19
+ photoUrl: string;
20
+ description?: string | null | undefined;
21
+ order: number;
22
+ createdAt: Date;
23
+ updatedAt: Date;
24
+ }[];
25
+ createdAt: Date;
26
+ updatedAt: Date;
27
+ }[];
28
+ page: number;
29
+ totalPages: number;
30
+ total: number;
31
+ }, unknown, z.core.$ZodTypeInternals<{
32
+ data: {
33
+ uuid: string;
34
+ code: string;
35
+ title: string;
36
+ description?: string | null | undefined;
37
+ references: {
38
+ uuid: string;
39
+ styleId: string;
40
+ photoUrl: string;
41
+ description?: string | null | undefined;
42
+ order: number;
43
+ createdAt: Date;
44
+ updatedAt: Date;
45
+ }[];
46
+ createdAt: Date;
47
+ updatedAt: Date;
48
+ }[];
49
+ page: number;
50
+ totalPages: number;
51
+ total: number;
52
+ }, unknown>>>;
53
+ code: z.ZodOptional<z.ZodString>;
54
+ message: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strip>;
56
+ type Response = z.infer<typeof ResponseSchema>;
57
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionStylesQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const models_1 = require("../models");
7
+ var FindPhotoSessionStylesQuery;
8
+ (function (FindPhotoSessionStylesQuery) {
9
+ FindPhotoSessionStylesQuery.RequestSchema = zod_1.z.object({
10
+ limit: zod_1.z.coerce.number().min(1).max(48).optional().default(24),
11
+ offset: zod_1.z.coerce.number().min(0).optional().default(0),
12
+ });
13
+ FindPhotoSessionStylesQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
14
+ data: zod_1.z.array(models_1.PhotoSessionStyleSchema),
15
+ page: zod_1.z.number(),
16
+ totalPages: zod_1.z.number(),
17
+ total: zod_1.z.number(),
18
+ }));
19
+ })(FindPhotoSessionStylesQuery || (exports.FindPhotoSessionStylesQuery = FindPhotoSessionStylesQuery = {}));
@@ -0,0 +1,110 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindPhotoSessionsJobByIdQuery {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Request = z.infer<typeof RequestSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ isSuccess: z.ZodBoolean;
9
+ data: z.ZodOptional<z.ZodType<{
10
+ uuid: string;
11
+ prompt: string;
12
+ reaction: import("../..").USER_REACTION | null;
13
+ dislikeReason: string | null;
14
+ externalId: string | null;
15
+ title: string;
16
+ status: import("../..").JOB_STATUS;
17
+ error: string | null;
18
+ modelId: string;
19
+ price: number;
20
+ previewUrl: string | null;
21
+ params: {
22
+ attachedFiles?: {
23
+ uuid: string;
24
+ url: string;
25
+ name: string;
26
+ mimeType: string;
27
+ type: string;
28
+ size: number;
29
+ duration?: number | null | undefined;
30
+ content?: string | null | undefined;
31
+ contentLength?: number | null | undefined;
32
+ }[] | undefined;
33
+ imageUrls?: string[] | undefined;
34
+ styleId?: string | null | undefined;
35
+ referenceId?: string | null | undefined;
36
+ referenceIds?: string[] | undefined;
37
+ customStylePrompt?: string | null | undefined;
38
+ customStylePhotos?: string[] | undefined;
39
+ clothingPhotos?: string[] | undefined;
40
+ hairstylePhotos?: string[] | undefined;
41
+ accessoriesPhotos?: string[] | undefined;
42
+ aspectRatio?: string | undefined;
43
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
44
+ };
45
+ imageUrls: string[] | null;
46
+ attempts: any[];
47
+ userId?: string | null | undefined;
48
+ unregisteredUserId?: string | null | undefined;
49
+ isPublished: boolean;
50
+ postId: string | null;
51
+ isDeleted: boolean;
52
+ isFavorite: boolean;
53
+ tokenReservationId?: string | null | undefined;
54
+ createdAt: Date;
55
+ completedAt?: Date | null | undefined;
56
+ updatedAt: Date;
57
+ }, unknown, z.core.$ZodTypeInternals<{
58
+ uuid: string;
59
+ prompt: string;
60
+ reaction: import("../..").USER_REACTION | null;
61
+ dislikeReason: string | null;
62
+ externalId: string | null;
63
+ title: string;
64
+ status: import("../..").JOB_STATUS;
65
+ error: string | null;
66
+ modelId: string;
67
+ price: number;
68
+ previewUrl: string | null;
69
+ params: {
70
+ attachedFiles?: {
71
+ uuid: string;
72
+ url: string;
73
+ name: string;
74
+ mimeType: string;
75
+ type: string;
76
+ size: number;
77
+ duration?: number | null | undefined;
78
+ content?: string | null | undefined;
79
+ contentLength?: number | null | undefined;
80
+ }[] | undefined;
81
+ imageUrls?: string[] | undefined;
82
+ styleId?: string | null | undefined;
83
+ referenceId?: string | null | undefined;
84
+ referenceIds?: string[] | undefined;
85
+ customStylePrompt?: string | null | undefined;
86
+ customStylePhotos?: string[] | undefined;
87
+ clothingPhotos?: string[] | undefined;
88
+ hairstylePhotos?: string[] | undefined;
89
+ accessoriesPhotos?: string[] | undefined;
90
+ aspectRatio?: string | undefined;
91
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
92
+ };
93
+ imageUrls: string[] | null;
94
+ attempts: any[];
95
+ userId?: string | null | undefined;
96
+ unregisteredUserId?: string | null | undefined;
97
+ isPublished: boolean;
98
+ postId: string | null;
99
+ isDeleted: boolean;
100
+ isFavorite: boolean;
101
+ tokenReservationId?: string | null | undefined;
102
+ createdAt: Date;
103
+ completedAt?: Date | null | undefined;
104
+ updatedAt: Date;
105
+ }, unknown>>>;
106
+ code: z.ZodOptional<z.ZodString>;
107
+ message: z.ZodOptional<z.ZodString>;
108
+ }, z.core.$strip>;
109
+ type Response = z.infer<typeof ResponseSchema>;
110
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionsJobByIdQuery = void 0;
4
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
5
+ const models_1 = require("../models");
6
+ var FindPhotoSessionsJobByIdQuery;
7
+ (function (FindPhotoSessionsJobByIdQuery) {
8
+ FindPhotoSessionsJobByIdQuery.RequestSchema = models_1.PhotoSessionJobSchema.pick({ uuid: true });
9
+ FindPhotoSessionsJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
10
+ })(FindPhotoSessionsJobByIdQuery || (exports.FindPhotoSessionsJobByIdQuery = FindPhotoSessionsJobByIdQuery = {}));
@@ -0,0 +1,130 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SCOPE } from '../../common';
3
+ import { JOB_SORT, JOB_STATUS } from '../../tools';
4
+ export declare namespace FindPhotoSessionsJobsQuery {
5
+ const RequestSchema: z.ZodObject<{
6
+ userId: z.ZodOptional<z.ZodString>;
7
+ unregisteredUserId: z.ZodOptional<z.ZodString>;
8
+ scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
9
+ title: z.ZodOptional<z.ZodString>;
10
+ isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
11
+ createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
12
+ status: z.ZodOptional<z.ZodEnum<typeof JOB_STATUS>>;
13
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
14
+ offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
15
+ }, z.core.$strip>;
16
+ type Request = z.infer<typeof RequestSchema>;
17
+ const ResponseSchema: z.ZodObject<{
18
+ isSuccess: z.ZodBoolean;
19
+ data: z.ZodOptional<z.ZodType<{
20
+ data: {
21
+ uuid: string;
22
+ prompt: string;
23
+ reaction: import("../..").USER_REACTION | null;
24
+ dislikeReason: string | null;
25
+ externalId: string | null;
26
+ title: string;
27
+ status: JOB_STATUS;
28
+ error: string | null;
29
+ modelId: string;
30
+ price: number;
31
+ previewUrl: string | null;
32
+ params: {
33
+ attachedFiles?: {
34
+ uuid: string;
35
+ url: string;
36
+ name: string;
37
+ mimeType: string;
38
+ type: string;
39
+ size: number;
40
+ duration?: number | null | undefined;
41
+ content?: string | null | undefined;
42
+ contentLength?: number | null | undefined;
43
+ }[] | undefined;
44
+ imageUrls?: string[] | undefined;
45
+ styleId?: string | null | undefined;
46
+ referenceId?: string | null | undefined;
47
+ referenceIds?: string[] | undefined;
48
+ customStylePrompt?: string | null | undefined;
49
+ customStylePhotos?: string[] | undefined;
50
+ clothingPhotos?: string[] | undefined;
51
+ hairstylePhotos?: string[] | undefined;
52
+ accessoriesPhotos?: string[] | undefined;
53
+ aspectRatio?: string | undefined;
54
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
55
+ };
56
+ imageUrls: string[] | null;
57
+ attempts: any[];
58
+ userId?: string | null | undefined;
59
+ unregisteredUserId?: string | null | undefined;
60
+ isPublished: boolean;
61
+ postId: string | null;
62
+ isDeleted: boolean;
63
+ isFavorite: boolean;
64
+ tokenReservationId?: string | null | undefined;
65
+ createdAt: Date;
66
+ completedAt?: Date | null | undefined;
67
+ updatedAt: Date;
68
+ }[];
69
+ page: number;
70
+ totalPages: number;
71
+ total: number;
72
+ }, unknown, z.core.$ZodTypeInternals<{
73
+ data: {
74
+ uuid: string;
75
+ prompt: string;
76
+ reaction: import("../..").USER_REACTION | null;
77
+ dislikeReason: string | null;
78
+ externalId: string | null;
79
+ title: string;
80
+ status: JOB_STATUS;
81
+ error: string | null;
82
+ modelId: string;
83
+ price: number;
84
+ previewUrl: string | null;
85
+ params: {
86
+ attachedFiles?: {
87
+ uuid: string;
88
+ url: string;
89
+ name: string;
90
+ mimeType: string;
91
+ type: string;
92
+ size: number;
93
+ duration?: number | null | undefined;
94
+ content?: string | null | undefined;
95
+ contentLength?: number | null | undefined;
96
+ }[] | undefined;
97
+ imageUrls?: string[] | undefined;
98
+ styleId?: string | null | undefined;
99
+ referenceId?: string | null | undefined;
100
+ referenceIds?: string[] | undefined;
101
+ customStylePrompt?: string | null | undefined;
102
+ customStylePhotos?: string[] | undefined;
103
+ clothingPhotos?: string[] | undefined;
104
+ hairstylePhotos?: string[] | undefined;
105
+ accessoriesPhotos?: string[] | undefined;
106
+ aspectRatio?: string | undefined;
107
+ userHasActiveSubscriptionOrProduct?: boolean | undefined;
108
+ };
109
+ imageUrls: string[] | null;
110
+ attempts: any[];
111
+ userId?: string | null | undefined;
112
+ unregisteredUserId?: string | null | undefined;
113
+ isPublished: boolean;
114
+ postId: string | null;
115
+ isDeleted: boolean;
116
+ isFavorite: boolean;
117
+ tokenReservationId?: string | null | undefined;
118
+ createdAt: Date;
119
+ completedAt?: Date | null | undefined;
120
+ updatedAt: Date;
121
+ }[];
122
+ page: number;
123
+ totalPages: number;
124
+ total: number;
125
+ }, unknown>>>;
126
+ code: z.ZodOptional<z.ZodString>;
127
+ message: z.ZodOptional<z.ZodString>;
128
+ }, z.core.$strip>;
129
+ type Response = z.infer<typeof ResponseSchema>;
130
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionsJobsQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../common");
6
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
7
+ const models_1 = require("../models");
8
+ const tools_1 = require("../../tools");
9
+ var FindPhotoSessionsJobsQuery;
10
+ (function (FindPhotoSessionsJobsQuery) {
11
+ FindPhotoSessionsJobsQuery.RequestSchema = zod_1.z.object({
12
+ userId: zod_1.z.string().uuid().optional(),
13
+ unregisteredUserId: zod_1.z.string().uuid().optional(),
14
+ scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
15
+ title: zod_1.z.string().optional(),
16
+ isFavorite: zod_1.z.coerce.boolean().optional(),
17
+ createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
18
+ status: zod_1.z.nativeEnum(tools_1.JOB_STATUS).optional(),
19
+ limit: zod_1.z.coerce.number().min(1).optional(),
20
+ offset: zod_1.z.coerce.number().min(0).default(0).optional(),
21
+ });
22
+ FindPhotoSessionsJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
23
+ data: zod_1.z.array(models_1.PhotoSessionJobSchema),
24
+ page: zod_1.z.number(),
25
+ totalPages: zod_1.z.number(),
26
+ total: zod_1.z.number(),
27
+ }));
28
+ })(FindPhotoSessionsJobsQuery || (exports.FindPhotoSessionsJobsQuery = FindPhotoSessionsJobsQuery = {}));
@@ -0,0 +1,142 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetPhotoSessionsConfigQuery {
3
+ const RequestSchema: z.ZodObject<{
4
+ locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
5
+ }, z.core.$strip>;
6
+ type Request = z.infer<typeof RequestSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ isSuccess: z.ZodBoolean;
9
+ data: z.ZodOptional<z.ZodType<{
10
+ models: {
11
+ uuid: string;
12
+ title: string;
13
+ description: string;
14
+ aiModel: string;
15
+ isNew: boolean;
16
+ tierLabel: string;
17
+ pricePerImage: number;
18
+ order: number;
19
+ status: import("../..").TOOL_MODEL_STATUS;
20
+ icons: {
21
+ light: {
22
+ svg: string;
23
+ png: string;
24
+ };
25
+ dark: {
26
+ svg: string;
27
+ png: string;
28
+ };
29
+ };
30
+ strategy: import("..").PHOTO_SESSION_STRATEGY;
31
+ maxInputLength: number;
32
+ params: {
33
+ imageAttachment: {
34
+ supported: boolean;
35
+ maxImages: number;
36
+ acceptedTypes: string[];
37
+ };
38
+ aspectRatio: Record<string, {
39
+ width: number;
40
+ height: number;
41
+ }>;
42
+ };
43
+ pricingRules: {
44
+ condition: {
45
+ withoutSub?: boolean | undefined;
46
+ };
47
+ value: number;
48
+ }[];
49
+ createdAt: Date;
50
+ updatedAt: Date;
51
+ }[];
52
+ styles: {
53
+ uuid: string;
54
+ code: string;
55
+ title: string;
56
+ description?: string | null | undefined;
57
+ references: {
58
+ uuid: string;
59
+ styleId: string;
60
+ photoUrl: string;
61
+ description?: string | null | undefined;
62
+ order: number;
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ }[];
66
+ createdAt: Date;
67
+ updatedAt: Date;
68
+ }[];
69
+ looks: {
70
+ type: import("..").PHOTO_SESSION_LOOK_TYPE;
71
+ maxPhotos: number;
72
+ }[];
73
+ }, unknown, z.core.$ZodTypeInternals<{
74
+ models: {
75
+ uuid: string;
76
+ title: string;
77
+ description: string;
78
+ aiModel: string;
79
+ isNew: boolean;
80
+ tierLabel: string;
81
+ pricePerImage: number;
82
+ order: number;
83
+ status: import("../..").TOOL_MODEL_STATUS;
84
+ icons: {
85
+ light: {
86
+ svg: string;
87
+ png: string;
88
+ };
89
+ dark: {
90
+ svg: string;
91
+ png: string;
92
+ };
93
+ };
94
+ strategy: import("..").PHOTO_SESSION_STRATEGY;
95
+ maxInputLength: number;
96
+ params: {
97
+ imageAttachment: {
98
+ supported: boolean;
99
+ maxImages: number;
100
+ acceptedTypes: string[];
101
+ };
102
+ aspectRatio: Record<string, {
103
+ width: number;
104
+ height: number;
105
+ }>;
106
+ };
107
+ pricingRules: {
108
+ condition: {
109
+ withoutSub?: boolean | undefined;
110
+ };
111
+ value: number;
112
+ }[];
113
+ createdAt: Date;
114
+ updatedAt: Date;
115
+ }[];
116
+ styles: {
117
+ uuid: string;
118
+ code: string;
119
+ title: string;
120
+ description?: string | null | undefined;
121
+ references: {
122
+ uuid: string;
123
+ styleId: string;
124
+ photoUrl: string;
125
+ description?: string | null | undefined;
126
+ order: number;
127
+ createdAt: Date;
128
+ updatedAt: Date;
129
+ }[];
130
+ createdAt: Date;
131
+ updatedAt: Date;
132
+ }[];
133
+ looks: {
134
+ type: import("..").PHOTO_SESSION_LOOK_TYPE;
135
+ maxPhotos: number;
136
+ }[];
137
+ }, unknown>>>;
138
+ code: z.ZodOptional<z.ZodString>;
139
+ message: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strip>;
141
+ type Response = z.infer<typeof ResponseSchema>;
142
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPhotoSessionsConfigQuery = void 0;
4
+ const common_1 = require("../../common");
5
+ const models_1 = require("../models");
6
+ var GetPhotoSessionsConfigQuery;
7
+ (function (GetPhotoSessionsConfigQuery) {
8
+ GetPhotoSessionsConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetPhotoSessionsConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.PhotoSessionConfigSchema);
10
+ })(GetPhotoSessionsConfigQuery || (exports.GetPhotoSessionsConfigQuery = GetPhotoSessionsConfigQuery = {}));
@@ -0,0 +1,5 @@
1
+ export * from './find-photo-sessions-job-by-id.query';
2
+ export * from './find-photo-sessions-jobs.query';
3
+ export * from './get-photo-sessions-config.query';
4
+ export * from './find-photo-session-styles.query';
5
+ export * from './find-photo-session-style-by-id.query';
@@ -0,0 +1,21 @@
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("./find-photo-sessions-job-by-id.query"), exports);
18
+ __exportStar(require("./find-photo-sessions-jobs.query"), exports);
19
+ __exportStar(require("./get-photo-sessions-config.query"), exports);
20
+ __exportStar(require("./find-photo-session-styles.query"), exports);
21
+ __exportStar(require("./find-photo-session-style-by-id.query"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './photo-sessions.amqp.routes';
2
+ export * from './photo-sessions.http.routes';
@@ -0,0 +1,18 @@
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-sessions.amqp.routes"), exports);
18
+ __exportStar(require("./photo-sessions.http.routes"), exports);
@@ -0,0 +1,19 @@
1
+ export declare const PHOTO_SESSIONS_AMQP_ROUTES: {
2
+ readonly EXECUTE: 'tools.photo-sessions.execute.rpc';
3
+ readonly GET_PRICE: 'tools.photo-sessions.get-price.rpc';
4
+ readonly CONFIG: 'tools.photo-sessions.config.rpc';
5
+ readonly GET_JOB: 'tools.photo-sessions.jobs.get.rpc';
6
+ readonly LIST_JOBS: 'tools.photo-sessions.jobs.list.rpc';
7
+ readonly SET_REACTION: 'tools.photo-sessions.jobs.set-reaction.rpc';
8
+ readonly UPDATE_TITLE: 'tools.photo-sessions.jobs.update-title.rpc';
9
+ readonly UPDATE_FAVORITE: 'tools.photo-sessions.jobs.update-favorite.rpc';
10
+ readonly SOFT_DELETE: 'tools.photo-sessions.jobs.soft-delete.rpc';
11
+ readonly SOFT_DELETE_ALL: 'tools.photo-sessions.jobs.soft-delete-all.rpc';
12
+ readonly RETRY: 'tools.photo-sessions.jobs.retry.rpc';
13
+ readonly UPDATE_JOB: 'tools.photo-sessions.jobs.update.rpc';
14
+ readonly LIST_STYLES: 'tools.photo-sessions.styles.list.rpc';
15
+ readonly GET_STYLE: 'tools.photo-sessions.styles.get.rpc';
16
+ readonly CREATE_STYLE: 'tools.photo-sessions.styles.create.rpc';
17
+ readonly UPDATE_STYLE: 'tools.photo-sessions.styles.update.rpc';
18
+ readonly DELETE_STYLE: 'tools.photo-sessions.styles.delete.rpc';
19
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PHOTO_SESSIONS_AMQP_ROUTES = void 0;
4
+ exports.PHOTO_SESSIONS_AMQP_ROUTES = {
5
+ EXECUTE: 'tools.photo-sessions.execute.rpc',
6
+ GET_PRICE: 'tools.photo-sessions.get-price.rpc',
7
+ CONFIG: 'tools.photo-sessions.config.rpc',
8
+ GET_JOB: 'tools.photo-sessions.jobs.get.rpc',
9
+ LIST_JOBS: 'tools.photo-sessions.jobs.list.rpc',
10
+ SET_REACTION: 'tools.photo-sessions.jobs.set-reaction.rpc',
11
+ UPDATE_TITLE: 'tools.photo-sessions.jobs.update-title.rpc',
12
+ UPDATE_FAVORITE: 'tools.photo-sessions.jobs.update-favorite.rpc',
13
+ SOFT_DELETE: 'tools.photo-sessions.jobs.soft-delete.rpc',
14
+ SOFT_DELETE_ALL: 'tools.photo-sessions.jobs.soft-delete-all.rpc',
15
+ RETRY: 'tools.photo-sessions.jobs.retry.rpc',
16
+ UPDATE_JOB: 'tools.photo-sessions.jobs.update.rpc',
17
+ LIST_STYLES: 'tools.photo-sessions.styles.list.rpc',
18
+ GET_STYLE: 'tools.photo-sessions.styles.get.rpc',
19
+ CREATE_STYLE: 'tools.photo-sessions.styles.create.rpc',
20
+ UPDATE_STYLE: 'tools.photo-sessions.styles.update.rpc',
21
+ DELETE_STYLE: 'tools.photo-sessions.styles.delete.rpc',
22
+ };
@@ -0,0 +1 @@
1
+ export declare const PHOTO_SESSIONS_CONTROLLER = "photo-sessions";