@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,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";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PHOTO_SESSIONS_CONTROLLER = void 0;
4
+ exports.PHOTO_SESSIONS_CONTROLLER = 'photo-sessions';
@@ -16,5 +16,6 @@ export declare enum TOOL_CONTENT_TYPE {
16
16
  SPELL_CORRECTOR = "SPELL_CORRECTOR",
17
17
  DIAGRAMS = "DIAGRAMS",
18
18
  HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
19
+ PHOTO_SESSIONS = "PHOTO_SESSIONS",
19
20
  IMAGE_RECOGNITION = "IMAGE_RECOGNITION"
20
21
  }
@@ -20,5 +20,6 @@ var TOOL_CONTENT_TYPE;
20
20
  TOOL_CONTENT_TYPE["SPELL_CORRECTOR"] = "SPELL_CORRECTOR";
21
21
  TOOL_CONTENT_TYPE["DIAGRAMS"] = "DIAGRAMS";
22
22
  TOOL_CONTENT_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
23
+ TOOL_CONTENT_TYPE["PHOTO_SESSIONS"] = "PHOTO_SESSIONS";
23
24
  TOOL_CONTENT_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
24
25
  })(TOOL_CONTENT_TYPE || (exports.TOOL_CONTENT_TYPE = TOOL_CONTENT_TYPE = {}));
@@ -18,5 +18,6 @@ export declare enum TOOL_TYPE {
18
18
  SOLVING_EDU_TASK = "SOLVING_EDU_TASK",
19
19
  DIAGRAMS = "DIAGRAMS",
20
20
  HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
21
+ PHOTO_SESSION = "PHOTO_SESSION",
21
22
  IMAGE_RECOGNITION = "IMAGE_RECOGNITION"
22
23
  }
@@ -22,5 +22,6 @@ var TOOL_TYPE;
22
22
  TOOL_TYPE["SOLVING_EDU_TASK"] = "SOLVING_EDU_TASK";
23
23
  TOOL_TYPE["DIAGRAMS"] = "DIAGRAMS";
24
24
  TOOL_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
25
+ TOOL_TYPE["PHOTO_SESSION"] = "PHOTO_SESSION";
25
26
  TOOL_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
26
27
  })(TOOL_TYPE || (exports.TOOL_TYPE = TOOL_TYPE = {}));
@@ -465,18 +465,49 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
465
465
  maxInputVideoDurationInSeconds: z.ZodNumber;
466
466
  supportedFormats: z.ZodArray<z.ZodString>;
467
467
  params: z.ZodObject<{
468
+ imageAttachment: z.ZodOptional<z.ZodObject<{
469
+ supported: z.ZodBoolean;
470
+ maxImages: z.ZodNumber;
471
+ maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
472
+ }, z.core.$strip>>;
473
+ referenceImageAttachment: z.ZodOptional<z.ZodObject<{
474
+ supported: z.ZodBoolean;
475
+ maxImages: z.ZodNumber;
476
+ formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
477
+ minWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
478
+ maxWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
479
+ minWidthPx: z.ZodOptional<z.ZodNumber>;
480
+ maxWidthPx: z.ZodOptional<z.ZodNumber>;
481
+ minHeightPx: z.ZodOptional<z.ZodNumber>;
482
+ maxHeightPx: z.ZodOptional<z.ZodNumber>;
483
+ maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
484
+ }, z.core.$strip>>;
485
+ audioAttachment: z.ZodOptional<z.ZodObject<{
486
+ supported: z.ZodBoolean;
487
+ maxAudios: z.ZodNumber;
488
+ maxDurationSeconds: z.ZodNumber;
489
+ minDurationSeconds: z.ZodOptional<z.ZodNumber>;
490
+ maxTotalDurationSeconds: z.ZodOptional<z.ZodNumber>;
491
+ maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
492
+ formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
493
+ mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
494
+ }, z.core.$strip>>;
468
495
  duration: z.ZodOptional<z.ZodObject<{
469
496
  options: z.ZodArray<z.ZodNumber>;
470
497
  }, z.core.$strip>>;
471
498
  resolution: z.ZodOptional<z.ZodObject<{
472
499
  options: z.ZodArray<z.ZodString>;
473
500
  }, z.core.$strip>>;
501
+ aspectRatio: z.ZodOptional<z.ZodObject<{
502
+ options: z.ZodArray<z.ZodString>;
503
+ }, z.core.$strip>>;
474
504
  }, z.core.$strip>;
475
505
  pricingRules: z.ZodArray<z.ZodObject<{
476
506
  type: z.ZodEnum<typeof import("../..").VIDEO_EDITOR_PRICING_RULE_TYPE>;
477
507
  condition: z.ZodObject<{
478
508
  duration: z.ZodOptional<z.ZodNumber>;
479
509
  resolution: z.ZodOptional<z.ZodString>;
510
+ aspectRatio: z.ZodOptional<z.ZodString>;
480
511
  }, z.core.$strip>;
481
512
  value: z.ZodNumber;
482
513
  }, z.core.$strip>>;
@@ -674,7 +705,6 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
674
705
  }, z.core.$strip>;
675
706
  maxPromptLength: z.ZodNumber;
676
707
  supportsImageAttachment: z.ZodBoolean;
677
- maxAttachedImages: z.ZodNumber;
678
708
  createdAt: z.ZodDate;
679
709
  updatedAt: z.ZodDate;
680
710
  }, z.core.$strip>>;
@@ -869,6 +899,71 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
869
899
  }, z.core.$strip>>;
870
900
  maxAttachmentsCount: z.ZodNumber;
871
901
  }, z.core.$strip>;
902
+ PHOTO_SESSIONS: z.ZodObject<{
903
+ models: z.ZodArray<z.ZodObject<{
904
+ uuid: z.ZodString;
905
+ title: z.ZodString;
906
+ description: z.ZodString;
907
+ aiModel: z.ZodString;
908
+ isNew: z.ZodBoolean;
909
+ tierLabel: z.ZodString;
910
+ pricePerImage: z.ZodNumber;
911
+ order: z.ZodNumber;
912
+ status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
913
+ icons: z.ZodObject<{
914
+ light: z.ZodObject<{
915
+ svg: z.ZodString;
916
+ png: z.ZodString;
917
+ }, z.core.$strip>;
918
+ dark: z.ZodObject<{
919
+ svg: z.ZodString;
920
+ png: z.ZodString;
921
+ }, z.core.$strip>;
922
+ }, z.core.$strip>;
923
+ strategy: z.ZodEnum<typeof import("../..").PHOTO_SESSION_STRATEGY>;
924
+ maxInputLength: z.ZodNumber;
925
+ params: z.ZodObject<{
926
+ imageAttachment: z.ZodObject<{
927
+ supported: z.ZodBoolean;
928
+ maxImages: z.ZodNumber;
929
+ acceptedTypes: z.ZodArray<z.ZodString>;
930
+ }, z.core.$strip>;
931
+ aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
932
+ width: z.ZodNumber;
933
+ height: z.ZodNumber;
934
+ }, z.core.$strip>>;
935
+ }, z.core.$strip>;
936
+ pricingRules: z.ZodArray<z.ZodObject<{
937
+ condition: z.ZodObject<{
938
+ withoutSub: z.ZodOptional<z.ZodBoolean>;
939
+ }, z.core.$strip>;
940
+ value: z.ZodNumber;
941
+ }, z.core.$strip>>;
942
+ createdAt: z.ZodDate;
943
+ updatedAt: z.ZodDate;
944
+ }, z.core.$strip>>;
945
+ styles: z.ZodArray<z.ZodObject<{
946
+ uuid: z.ZodString;
947
+ code: z.ZodString;
948
+ title: z.ZodString;
949
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
950
+ references: z.ZodArray<z.ZodObject<{
951
+ uuid: z.ZodString;
952
+ styleId: z.ZodString;
953
+ photoUrl: z.ZodString;
954
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
955
+ order: z.ZodNumber;
956
+ createdAt: z.ZodDate;
957
+ updatedAt: z.ZodDate;
958
+ }, z.core.$strip>>;
959
+ createdAt: z.ZodDate;
960
+ updatedAt: z.ZodDate;
961
+ }, z.core.$strip>>;
962
+ looks: z.ZodArray<z.ZodObject<{
963
+ type: z.ZodEnum<typeof import("../..").PHOTO_SESSION_LOOK_TYPE>;
964
+ maxPhotos: z.ZodNumber;
965
+ }, z.core.$strip>>;
966
+ }, z.core.$strip>;
872
967
  IMAGE_RECOGNITION: z.ZodObject<{
873
968
  models: z.ZodArray<z.ZodObject<{
874
969
  uuid: z.ZodString;
@@ -19,6 +19,7 @@ const solving_edu_task_1 = require("../../solving-edu-task");
19
19
  const spell_corrector_1 = require("../../spell-corrector");
20
20
  const diagrams_1 = require("../../diagrams");
21
21
  const models_2 = require("../../html-page-builder/models");
22
+ const photo_sessions_1 = require("../../photo-sessions");
22
23
  const image_recognition_1 = require("../../image-recognition");
23
24
  exports.GlobalToolsConfigSchema = zod_1.z.object({
24
25
  [enums_1.TOOL_CONTENT_TYPE.VIDEO]: video_1.VideoConfigSchema,
@@ -37,5 +38,6 @@ exports.GlobalToolsConfigSchema = zod_1.z.object({
37
38
  [enums_1.TOOL_CONTENT_TYPE.SPELL_CORRECTOR]: spell_corrector_1.SpellCorrectorToolConfigSchema,
38
39
  [enums_1.TOOL_CONTENT_TYPE.DIAGRAMS]: diagrams_1.DiagramsConfigSchema,
39
40
  [enums_1.TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER]: models_2.HtmlPageBuilderConfigSchema,
41
+ [enums_1.TOOL_CONTENT_TYPE.PHOTO_SESSIONS]: photo_sessions_1.PhotoSessionConfigSchema,
40
42
  [enums_1.TOOL_CONTENT_TYPE.IMAGE_RECOGNITION]: image_recognition_1.ImageRecognitionConfigSchema,
41
43
  });
@@ -561,18 +561,49 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
561
561
  maxInputVideoDurationInSeconds: z.ZodNumber;
562
562
  supportedFormats: z.ZodArray<z.ZodString>;
563
563
  params: z.ZodObject<{
564
+ imageAttachment: z.ZodOptional<z.ZodObject<{
565
+ supported: z.ZodBoolean;
566
+ maxImages: z.ZodNumber;
567
+ maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
568
+ }, z.core.$strip>>;
569
+ referenceImageAttachment: z.ZodOptional<z.ZodObject<{
570
+ supported: z.ZodBoolean;
571
+ maxImages: z.ZodNumber;
572
+ formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
573
+ minWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
574
+ maxWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
575
+ minWidthPx: z.ZodOptional<z.ZodNumber>;
576
+ maxWidthPx: z.ZodOptional<z.ZodNumber>;
577
+ minHeightPx: z.ZodOptional<z.ZodNumber>;
578
+ maxHeightPx: z.ZodOptional<z.ZodNumber>;
579
+ maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
580
+ }, z.core.$strip>>;
581
+ audioAttachment: z.ZodOptional<z.ZodObject<{
582
+ supported: z.ZodBoolean;
583
+ maxAudios: z.ZodNumber;
584
+ maxDurationSeconds: z.ZodNumber;
585
+ minDurationSeconds: z.ZodOptional<z.ZodNumber>;
586
+ maxTotalDurationSeconds: z.ZodOptional<z.ZodNumber>;
587
+ maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
588
+ formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
589
+ mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
590
+ }, z.core.$strip>>;
564
591
  duration: z.ZodOptional<z.ZodObject<{
565
592
  options: z.ZodArray<z.ZodNumber>;
566
593
  }, z.core.$strip>>;
567
594
  resolution: z.ZodOptional<z.ZodObject<{
568
595
  options: z.ZodArray<z.ZodString>;
569
596
  }, z.core.$strip>>;
597
+ aspectRatio: z.ZodOptional<z.ZodObject<{
598
+ options: z.ZodArray<z.ZodString>;
599
+ }, z.core.$strip>>;
570
600
  }, z.core.$strip>;
571
601
  pricingRules: z.ZodArray<z.ZodObject<{
572
602
  type: z.ZodEnum<typeof import("../..").VIDEO_EDITOR_PRICING_RULE_TYPE>;
573
603
  condition: z.ZodObject<{
574
604
  duration: z.ZodOptional<z.ZodNumber>;
575
605
  resolution: z.ZodOptional<z.ZodString>;
606
+ aspectRatio: z.ZodOptional<z.ZodString>;
576
607
  }, z.core.$strip>;
577
608
  value: z.ZodNumber;
578
609
  }, z.core.$strip>>;
@@ -806,7 +837,6 @@ export declare const ToolWithConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
806
837
  }, z.core.$strip>;
807
838
  maxPromptLength: z.ZodNumber;
808
839
  supportsImageAttachment: z.ZodBoolean;
809
- maxAttachedImages: z.ZodNumber;
810
840
  createdAt: z.ZodDate;
811
841
  updatedAt: z.ZodDate;
812
842
  }, z.core.$strip>>;
@@ -1687,18 +1717,49 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
1687
1717
  maxInputVideoDurationInSeconds: z.ZodNumber;
1688
1718
  supportedFormats: z.ZodArray<z.ZodString>;
1689
1719
  params: z.ZodObject<{
1720
+ imageAttachment: z.ZodOptional<z.ZodObject<{
1721
+ supported: z.ZodBoolean;
1722
+ maxImages: z.ZodNumber;
1723
+ maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
1724
+ }, z.core.$strip>>;
1725
+ referenceImageAttachment: z.ZodOptional<z.ZodObject<{
1726
+ supported: z.ZodBoolean;
1727
+ maxImages: z.ZodNumber;
1728
+ formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1729
+ minWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
1730
+ maxWidthToHeightRatio: z.ZodOptional<z.ZodNumber>;
1731
+ minWidthPx: z.ZodOptional<z.ZodNumber>;
1732
+ maxWidthPx: z.ZodOptional<z.ZodNumber>;
1733
+ minHeightPx: z.ZodOptional<z.ZodNumber>;
1734
+ maxHeightPx: z.ZodOptional<z.ZodNumber>;
1735
+ maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
1736
+ }, z.core.$strip>>;
1737
+ audioAttachment: z.ZodOptional<z.ZodObject<{
1738
+ supported: z.ZodBoolean;
1739
+ maxAudios: z.ZodNumber;
1740
+ maxDurationSeconds: z.ZodNumber;
1741
+ minDurationSeconds: z.ZodOptional<z.ZodNumber>;
1742
+ maxTotalDurationSeconds: z.ZodOptional<z.ZodNumber>;
1743
+ maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
1744
+ formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1745
+ mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1746
+ }, z.core.$strip>>;
1690
1747
  duration: z.ZodOptional<z.ZodObject<{
1691
1748
  options: z.ZodArray<z.ZodNumber>;
1692
1749
  }, z.core.$strip>>;
1693
1750
  resolution: z.ZodOptional<z.ZodObject<{
1694
1751
  options: z.ZodArray<z.ZodString>;
1695
1752
  }, z.core.$strip>>;
1753
+ aspectRatio: z.ZodOptional<z.ZodObject<{
1754
+ options: z.ZodArray<z.ZodString>;
1755
+ }, z.core.$strip>>;
1696
1756
  }, z.core.$strip>;
1697
1757
  pricingRules: z.ZodArray<z.ZodObject<{
1698
1758
  type: z.ZodEnum<typeof import("../..").VIDEO_EDITOR_PRICING_RULE_TYPE>;
1699
1759
  condition: z.ZodObject<{
1700
1760
  duration: z.ZodOptional<z.ZodNumber>;
1701
1761
  resolution: z.ZodOptional<z.ZodString>;
1762
+ aspectRatio: z.ZodOptional<z.ZodString>;
1702
1763
  }, z.core.$strip>;
1703
1764
  value: z.ZodNumber;
1704
1765
  }, z.core.$strip>>;
@@ -1932,7 +1993,6 @@ export declare const ToolsWithConfigsSchema: z.ZodArray<z.ZodDiscriminatedUnion<
1932
1993
  }, z.core.$strip>;
1933
1994
  maxPromptLength: z.ZodNumber;
1934
1995
  supportsImageAttachment: z.ZodBoolean;
1935
- maxAttachedImages: z.ZodNumber;
1936
1996
  createdAt: z.ZodDate;
1937
1997
  updatedAt: z.ZodDate;
1938
1998
  }, z.core.$strip>>;