@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
@@ -7,4 +7,5 @@ export declare const AI_PROXY_ROUTES: {
7
7
  IMAGE_EDITOR_CALLBACK: string;
8
8
  MARKETPLACE_CARD_CALLBACK: string;
9
9
  INTERIOR_DESIGN_CALLBACK: string;
10
+ PHOTO_SESSION_CALLBACK: string;
10
11
  };
@@ -10,4 +10,5 @@ exports.AI_PROXY_ROUTES = {
10
10
  IMAGE_EDITOR_CALLBACK: 'image-editor/callback',
11
11
  MARKETPLACE_CARD_CALLBACK: 'marketplace-card/callback',
12
12
  INTERIOR_DESIGN_CALLBACK: 'interior-design/callback',
13
+ PHOTO_SESSION_CALLBACK: 'photo-session/callback',
13
14
  };
package/build/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export * from './html-page-builder';
22
22
  export * from './tool-workspace';
23
23
  export * from './diagrams';
24
24
  export * from './image-recognition';
25
+ export * from './photo-sessions';
25
26
  import * as common from './common';
26
27
  import * as paraphrase from './paraphrase';
27
28
  import * as tools from './tools';
@@ -46,6 +47,7 @@ import * as accountMerge from './account-merge';
46
47
  import * as toolWorkspace from './tool-workspace';
47
48
  import * as diagrams from './diagrams';
48
49
  import * as imageRecognition from './image-recognition';
50
+ import * as photoSessions from './photo-sessions';
49
51
  export declare namespace ToolService {
50
52
  export import Common = common;
51
53
  export import Paraphrase = paraphrase;
@@ -71,4 +73,5 @@ export declare namespace ToolService {
71
73
  export import ToolWorkspace = toolWorkspace;
72
74
  export import Diagrams = diagrams;
73
75
  export import ImageRecognition = imageRecognition;
76
+ export import PhotoSessions = photoSessions;
74
77
  }
package/build/index.js CHANGED
@@ -61,6 +61,7 @@ __exportStar(require("./html-page-builder"), exports);
61
61
  __exportStar(require("./tool-workspace"), exports);
62
62
  __exportStar(require("./diagrams"), exports);
63
63
  __exportStar(require("./image-recognition"), exports);
64
+ __exportStar(require("./photo-sessions"), exports);
64
65
  const common = __importStar(require("./common"));
65
66
  const paraphrase = __importStar(require("./paraphrase"));
66
67
  const tools = __importStar(require("./tools"));
@@ -85,6 +86,7 @@ const accountMerge = __importStar(require("./account-merge"));
85
86
  const toolWorkspace = __importStar(require("./tool-workspace"));
86
87
  const diagrams = __importStar(require("./diagrams"));
87
88
  const imageRecognition = __importStar(require("./image-recognition"));
89
+ const photoSessions = __importStar(require("./photo-sessions"));
88
90
  var ToolService;
89
91
  (function (ToolService) {
90
92
  ToolService.Common = common;
@@ -111,4 +113,5 @@ var ToolService;
111
113
  ToolService.ToolWorkspace = toolWorkspace;
112
114
  ToolService.Diagrams = diagrams;
113
115
  ToolService.ImageRecognition = imageRecognition;
116
+ ToolService.PhotoSessions = photoSessions;
114
117
  })(ToolService || (exports.ToolService = ToolService = {}));
@@ -36,7 +36,6 @@ export declare const MarketplaceCardConfigSchema: z.ZodObject<{
36
36
  }, z.core.$strip>;
37
37
  maxPromptLength: z.ZodNumber;
38
38
  supportsImageAttachment: z.ZodBoolean;
39
- maxAttachedImages: z.ZodNumber;
40
39
  createdAt: z.ZodDate;
41
40
  updatedAt: z.ZodDate;
42
41
  }, z.core.$strip>>;
@@ -38,7 +38,6 @@ export declare const MarketplaceCardModelSchema: z.ZodObject<{
38
38
  }, z.core.$strip>;
39
39
  maxPromptLength: z.ZodNumber;
40
40
  supportsImageAttachment: z.ZodBoolean;
41
- maxAttachedImages: z.ZodNumber;
42
41
  createdAt: z.ZodDate;
43
42
  updatedAt: z.ZodDate;
44
43
  }, z.core.$strip>;
@@ -25,7 +25,6 @@ exports.MarketplaceCardModelSchema = zod_1.z.object({
25
25
  iconVariants: common_1.IconVariantsSchema,
26
26
  maxPromptLength: zod_1.z.number(),
27
27
  supportsImageAttachment: zod_1.z.boolean(),
28
- maxAttachedImages: zod_1.z.number(),
29
28
  createdAt: zod_1.z.date(),
30
29
  updatedAt: zod_1.z.date(),
31
30
  });
@@ -43,7 +43,6 @@ export declare namespace GetMarketplaceCardConfigQuery {
43
43
  };
44
44
  maxPromptLength: number;
45
45
  supportsImageAttachment: boolean;
46
- maxAttachedImages: number;
47
46
  createdAt: Date;
48
47
  updatedAt: Date;
49
48
  }[];
@@ -84,7 +83,6 @@ export declare namespace GetMarketplaceCardConfigQuery {
84
83
  };
85
84
  maxPromptLength: number;
86
85
  supportsImageAttachment: boolean;
87
- maxAttachedImages: number;
88
86
  createdAt: Date;
89
87
  updatedAt: Date;
90
88
  }[];
@@ -0,0 +1,58 @@
1
+ import { z } from 'zod';
2
+ export declare const CreatePhotoSessionStyleReferenceSchema: z.ZodObject<{
3
+ photoUrl: z.ZodString;
4
+ description: z.ZodOptional<z.ZodString>;
5
+ order: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ export declare namespace CreatePhotoSessionStyleCommand {
8
+ const RequestSchema: z.ZodObject<{
9
+ code: z.ZodString;
10
+ title: z.ZodString;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ references: z.ZodArray<z.ZodObject<{
13
+ photoUrl: z.ZodString;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ order: z.ZodNumber;
16
+ }, z.core.$strip>>;
17
+ }, z.core.$strip>;
18
+ type Request = z.infer<typeof RequestSchema>;
19
+ const ResponseSchema: z.ZodObject<{
20
+ isSuccess: z.ZodBoolean;
21
+ data: z.ZodOptional<z.ZodType<{
22
+ uuid: string;
23
+ code: string;
24
+ title: string;
25
+ description?: string | null | undefined;
26
+ references: {
27
+ uuid: string;
28
+ styleId: string;
29
+ photoUrl: string;
30
+ description?: string | null | undefined;
31
+ order: number;
32
+ createdAt: Date;
33
+ updatedAt: Date;
34
+ }[];
35
+ createdAt: Date;
36
+ updatedAt: Date;
37
+ }, unknown, z.core.$ZodTypeInternals<{
38
+ uuid: string;
39
+ code: string;
40
+ title: string;
41
+ description?: string | null | undefined;
42
+ references: {
43
+ uuid: string;
44
+ styleId: string;
45
+ photoUrl: string;
46
+ description?: string | null | undefined;
47
+ order: number;
48
+ createdAt: Date;
49
+ updatedAt: Date;
50
+ }[];
51
+ createdAt: Date;
52
+ updatedAt: Date;
53
+ }, unknown>>>;
54
+ code: z.ZodOptional<z.ZodString>;
55
+ message: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strip>;
57
+ type Response = z.infer<typeof ResponseSchema>;
58
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePhotoSessionStyleCommand = exports.CreatePhotoSessionStyleReferenceSchema = 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
+ exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
8
+ photoUrl: zod_1.z.string(),
9
+ description: zod_1.z.string().optional(),
10
+ order: zod_1.z.number().int().min(0).max(5),
11
+ });
12
+ var CreatePhotoSessionStyleCommand;
13
+ (function (CreatePhotoSessionStyleCommand) {
14
+ CreatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
15
+ code: zod_1.z.string(),
16
+ title: zod_1.z.string(),
17
+ description: zod_1.z.string().optional(),
18
+ references: zod_1.z.array(exports.CreatePhotoSessionStyleReferenceSchema).max(6),
19
+ });
20
+ CreatePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
21
+ })(CreatePhotoSessionStyleCommand || (exports.CreatePhotoSessionStyleCommand = CreatePhotoSessionStyleCommand = {}));
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeletePhotoSessionStyleCommand {
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<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
10
+ code: z.ZodOptional<z.ZodString>;
11
+ message: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ type Response = z.infer<typeof ResponseSchema>;
14
+ }
@@ -0,0 +1,12 @@
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 = {}));
@@ -0,0 +1,3 @@
1
+ export * from './create-photo-session-style.command';
2
+ export * from './update-photo-session-style.command';
3
+ export * from './delete-photo-session-style.command';
@@ -0,0 +1,19 @@
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);
@@ -0,0 +1,55 @@
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
+ }
@@ -0,0 +1,28 @@
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 = {}));
@@ -0,0 +1,17 @@
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
+ }
@@ -0,0 +1,15 @@
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 = {}));
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,14 @@
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 = {}));
@@ -0,0 +1,46 @@
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
+ }
@@ -0,0 +1,30 @@
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 = {}));
@@ -0,0 +1,10 @@
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';
@@ -0,0 +1,26 @@
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);