@purpleschool/gptbot-tools 0.2.55 → 0.2.56-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 (103) 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/marketplace-card/models/marketplace-card-config.schema.d.ts +0 -1
  6. package/build/marketplace-card/models/marketplace-card-model.schema.d.ts +0 -1
  7. package/build/marketplace-card/models/marketplace-card-model.schema.js +0 -1
  8. package/build/marketplace-card/queries/get-marketplace-card-config.query.d.ts +0 -2
  9. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
  10. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
  11. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
  12. package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
  13. package/build/photo-sessions/commands/admin/index.d.ts +3 -0
  14. package/build/photo-sessions/commands/admin/index.js +19 -0
  15. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +55 -0
  16. package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +28 -0
  17. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
  18. package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +15 -0
  19. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
  20. package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
  21. package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +46 -0
  22. package/build/photo-sessions/commands/get-photo-sessions-price.command.js +30 -0
  23. package/build/photo-sessions/commands/index.d.ts +10 -0
  24. package/build/photo-sessions/commands/index.js +26 -0
  25. package/build/photo-sessions/commands/photo-sessions.command.d.ts +147 -0
  26. package/build/photo-sessions/commands/photo-sessions.command.js +41 -0
  27. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +142 -0
  28. package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +23 -0
  29. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +115 -0
  30. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
  31. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +113 -0
  32. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
  33. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +113 -0
  34. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
  35. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +118 -0
  36. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
  37. package/build/photo-sessions/enums/index.d.ts +2 -0
  38. package/build/photo-sessions/enums/index.js +18 -0
  39. package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
  40. package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
  41. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
  42. package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
  43. package/build/photo-sessions/index.d.ts +5 -0
  44. package/build/photo-sessions/index.js +21 -0
  45. package/build/photo-sessions/models/index.d.ts +4 -0
  46. package/build/photo-sessions/models/index.js +20 -0
  47. package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
  48. package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
  49. package/build/photo-sessions/models/photo-session-job.schema.d.ts +78 -0
  50. package/build/photo-sessions/models/photo-session-job.schema.js +46 -0
  51. package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
  52. package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
  53. package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
  54. package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
  55. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
  56. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
  57. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
  58. package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
  59. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +110 -0
  60. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +10 -0
  61. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +130 -0
  62. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +28 -0
  63. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
  64. package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
  65. package/build/photo-sessions/queries/index.d.ts +5 -0
  66. package/build/photo-sessions/queries/index.js +21 -0
  67. package/build/photo-sessions/routes/index.d.ts +2 -0
  68. package/build/photo-sessions/routes/index.js +18 -0
  69. package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
  70. package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
  71. package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
  72. package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
  73. package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
  74. package/build/tools/enums/tool-content-type.enum.js +1 -0
  75. package/build/tools/enums/tool-type.enum.d.ts +1 -0
  76. package/build/tools/enums/tool-type.enum.js +1 -0
  77. package/build/tools/models/global-tools-config.schema.d.ts +96 -1
  78. package/build/tools/models/global-tools-config.schema.js +2 -0
  79. package/build/tools/models/tools-with-configs.schema.d.ts +62 -2
  80. package/build/tools/queries/get-global-tools-config.query.d.ts +192 -2
  81. package/build/tools/queries/get-tools-with-configs.query.d.ts +62 -2
  82. package/build/video-editor/commands/edit-video.command.d.ts +57 -0
  83. package/build/video-editor/commands/edit-video.command.js +1 -1
  84. package/build/video-editor/commands/get-video-editor-price.command.d.ts +1 -0
  85. package/build/video-editor/commands/retry-video-editor-job.command.d.ts +57 -0
  86. package/build/video-editor/commands/set-reaction-to-video-editor-job.command.d.ts +38 -0
  87. package/build/video-editor/commands/update-published-status-video-editor-jobs.command.d.ts +38 -0
  88. package/build/video-editor/commands/update-video-editor-job-favorite.command.d.ts +38 -0
  89. package/build/video-editor/commands/update-video-editor-job-title.command.d.ts +38 -0
  90. package/build/video-editor/commands/video-editor-model/get-video-editor-model.command.d.ts +62 -0
  91. package/build/video-editor/enums/video-editor-model-limitation.enum.d.ts +2 -1
  92. package/build/video-editor/enums/video-editor-model-limitation.enum.js +1 -0
  93. package/build/video-editor/enums/video-editor-model-strategy.enum.d.ts +2 -5
  94. package/build/video-editor/enums/video-editor-model-strategy.enum.js +2 -5
  95. package/build/video-editor/models/video-editor-config.schema.d.ts +31 -0
  96. package/build/video-editor/models/video-editor-job.schema.d.ts +38 -0
  97. package/build/video-editor/models/video-editor-job.schema.js +9 -0
  98. package/build/video-editor/models/video-editor-model.schema.d.ts +64 -0
  99. package/build/video-editor/models/video-editor-model.schema.js +40 -0
  100. package/build/video-editor/queries/find-video-editor-job-by-id.query.d.ts +38 -0
  101. package/build/video-editor/queries/find-video-editor-jobs.query.d.ts +38 -0
  102. package/build/video-editor/queries/get-video-editor-config.query.d.ts +62 -0
  103. package/package.json +1 -1
@@ -0,0 +1,147 @@
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
+ }
@@ -0,0 +1,41 @@
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 = {}));
@@ -0,0 +1,142 @@
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
+ }
@@ -0,0 +1,23 @@
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 = {}));
@@ -0,0 +1,115 @@
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
+ }
@@ -0,0 +1,27 @@
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 = {}));
@@ -0,0 +1,113 @@
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
+ }
@@ -0,0 +1,16 @@
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 = {}));