@purpleschool/gptbot 0.14.49 → 0.14.50-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 (136) hide show
  1. package/build/api/controllers/http/index.d.ts +1 -0
  2. package/build/api/controllers/http/index.js +1 -0
  3. package/build/api/controllers/http/photo-session.d.ts +20 -0
  4. package/build/api/controllers/http/photo-session.js +23 -0
  5. package/build/api/controllers/http/tts.d.ts +9 -0
  6. package/build/api/controllers/http/tts.js +9 -0
  7. package/build/api/routes.d.ts +12 -0
  8. package/build/api/routes.js +12 -0
  9. package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +11 -0
  10. package/build/commands/tools/index.d.ts +1 -0
  11. package/build/commands/tools/index.js +1 -0
  12. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +39 -0
  13. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +22 -0
  14. package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +9 -0
  15. package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +11 -0
  16. package/build/commands/tools/photo-session/admin/index.d.ts +3 -0
  17. package/build/commands/tools/photo-session/admin/index.js +19 -0
  18. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +45 -0
  19. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +31 -0
  20. package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +5 -0
  21. package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +8 -0
  22. package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +9 -0
  23. package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +11 -0
  24. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +61 -0
  25. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +14 -0
  26. package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +70 -0
  27. package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +24 -0
  28. package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +76 -0
  29. package/build/commands/tools/photo-session/get-photo-session-config.command.js +11 -0
  30. package/build/commands/tools/photo-session/get-photo-session-price.command.d.ts +32 -0
  31. package/build/commands/tools/photo-session/get-photo-session-price.command.js +27 -0
  32. package/build/commands/tools/photo-session/index.d.ts +12 -0
  33. package/build/commands/tools/photo-session/index.js +28 -0
  34. package/build/commands/tools/photo-session/photo-session.command.d.ts +87 -0
  35. package/build/commands/tools/photo-session/photo-session.command.js +33 -0
  36. package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +85 -0
  37. package/build/commands/tools/photo-session/retry-photo-session-job.command.js +32 -0
  38. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +67 -0
  39. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +28 -0
  40. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +65 -0
  41. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +17 -0
  42. package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +65 -0
  43. package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +17 -0
  44. package/build/commands/tools/tts/create-voice-clone.command.d.ts +32 -0
  45. package/build/commands/tools/tts/create-voice-clone.command.js +17 -0
  46. package/build/commands/tools/tts/create-voice-design.command.d.ts +22 -0
  47. package/build/commands/tools/tts/create-voice-design.command.js +17 -0
  48. package/build/commands/tools/tts/delete-voice.command.d.ts +9 -0
  49. package/build/commands/tools/tts/delete-voice.command.js +11 -0
  50. package/build/commands/tools/tts/download-tts-job.command.d.ts +18 -0
  51. package/build/commands/tools/tts/download-tts-job.command.js +17 -0
  52. package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +13 -1
  53. package/build/commands/tools/tts/find-tts-jobs.command.d.ts +13 -1
  54. package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +29 -0
  55. package/build/commands/tools/tts/find-voice-by-uuid.query.js +14 -0
  56. package/build/commands/tools/tts/find-voices.query.d.ts +37 -0
  57. package/build/commands/tools/tts/find-voices.query.js +18 -0
  58. package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +11 -0
  59. package/build/commands/tools/tts/improve-tts-text.command.d.ts +13 -0
  60. package/build/commands/tools/tts/improve-tts-text.command.js +13 -0
  61. package/build/commands/tools/tts/index.d.ts +9 -0
  62. package/build/commands/tools/tts/index.js +9 -0
  63. package/build/commands/tools/tts/retry-tts-job.command.d.ts +13 -1
  64. package/build/commands/tools/tts/select-voice-design.command.d.ts +33 -0
  65. package/build/commands/tools/tts/select-voice-design.command.js +17 -0
  66. package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +13 -1
  67. package/build/commands/tools/tts/tts.command.d.ts +6 -1
  68. package/build/commands/tools/tts/tts.command.js +7 -1
  69. package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +13 -1
  70. package/build/commands/tools/tts/update-tts-job-title.command.d.ts +13 -1
  71. package/build/commands/tools/tts/update-voice.command.d.ts +33 -0
  72. package/build/commands/tools/tts/update-voice.command.js +17 -0
  73. package/build/constants/index.d.ts +2 -0
  74. package/build/constants/index.js +2 -0
  75. package/build/constants/tool-photo-session/enums/index.d.ts +3 -0
  76. package/build/constants/tool-photo-session/enums/index.js +19 -0
  77. package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +5 -0
  78. package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +9 -0
  79. package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +3 -0
  80. package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +7 -0
  81. package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.d.ts +4 -0
  82. package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.js +8 -0
  83. package/build/constants/tool-photo-session/index.d.ts +1 -0
  84. package/build/constants/tool-photo-session/index.js +17 -0
  85. package/build/constants/tool-tts/enums/index.d.ts +7 -0
  86. package/build/constants/tool-tts/enums/index.js +23 -0
  87. package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +5 -0
  88. package/build/constants/tool-tts/enums/tts-download-format.enum.js +9 -0
  89. package/build/constants/tool-tts/enums/voice-category.enum.d.ts +14 -0
  90. package/build/constants/tool-tts/enums/voice-category.enum.js +18 -0
  91. package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +4 -0
  92. package/build/constants/tool-tts/enums/voice-gender.enum.js +8 -0
  93. package/build/constants/tool-tts/enums/voice-source.enum.d.ts +5 -0
  94. package/build/constants/tool-tts/enums/voice-source.enum.js +9 -0
  95. package/build/constants/tool-tts/enums/voice-status.enum.d.ts +5 -0
  96. package/build/constants/tool-tts/enums/voice-status.enum.js +9 -0
  97. package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +5 -0
  98. package/build/constants/tool-tts/enums/voice-tag-group.enum.js +9 -0
  99. package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +20 -0
  100. package/build/constants/tool-tts/enums/voice-tag.enum.js +24 -0
  101. package/build/constants/tool-tts/index.d.ts +1 -0
  102. package/build/constants/tool-tts/index.js +17 -0
  103. package/build/helpers/index.d.ts +1 -0
  104. package/build/helpers/index.js +1 -0
  105. package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +6 -0
  106. package/build/helpers/photo-session/calculate-photo-session-price.helper.js +13 -0
  107. package/build/helpers/photo-session/index.d.ts +1 -0
  108. package/build/helpers/photo-session/index.js +17 -0
  109. package/build/models/canvas-node-definition.schema.d.ts +33 -0
  110. package/build/models/tools/index.d.ts +1 -0
  111. package/build/models/tools/index.js +1 -0
  112. package/build/models/tools/photo-session/index.d.ts +4 -0
  113. package/build/models/tools/photo-session/index.js +20 -0
  114. package/build/models/tools/photo-session/photo-session-config.schema.d.ts +77 -0
  115. package/build/models/tools/photo-session/photo-session-config.schema.js +16 -0
  116. package/build/models/tools/photo-session/photo-session-job.schema.d.ts +77 -0
  117. package/build/models/tools/photo-session/photo-session-job.schema.js +45 -0
  118. package/build/models/tools/photo-session/photo-session-model.schema.d.ts +73 -0
  119. package/build/models/tools/photo-session/photo-session-model.schema.js +45 -0
  120. package/build/models/tools/photo-session/photo-session-style.schema.d.ts +29 -0
  121. package/build/models/tools/photo-session/photo-session-style.schema.js +22 -0
  122. package/build/models/tools/tts/index.d.ts +3 -0
  123. package/build/models/tools/tts/index.js +3 -0
  124. package/build/models/tools/tts/tts-config.schema.d.ts +23 -0
  125. package/build/models/tools/tts/tts-config.schema.js +14 -1
  126. package/build/models/tools/tts/tts-job.schema.d.ts +26 -1
  127. package/build/models/tools/tts/tts-job.schema.js +16 -2
  128. package/build/models/tools/tts/tts-model.schema.d.ts +1 -0
  129. package/build/models/tools/tts/tts-model.schema.js +1 -0
  130. package/build/models/tools/tts/voice-design-draft.schema.d.ts +12 -0
  131. package/build/models/tools/tts/voice-design-draft.schema.js +12 -0
  132. package/build/models/tools/tts/voice-design-sample.schema.d.ts +6 -0
  133. package/build/models/tools/tts/voice-design-sample.schema.js +8 -0
  134. package/build/models/tools/tts/voice.schema.d.ts +22 -0
  135. package/build/models/tools/tts/voice.schema.js +24 -0
  136. package/package.json +1 -1
@@ -82,5 +82,6 @@ export * from './tool-workspace';
82
82
  export * from './html-page-builder';
83
83
  export * from './palette';
84
84
  export * from './canvas-var-generation';
85
+ export * from './photo-session';
85
86
  export * from './photo-studio';
86
87
  export * from './canvas-template';
@@ -98,5 +98,6 @@ __exportStar(require("./tool-workspace"), exports);
98
98
  __exportStar(require("./html-page-builder"), exports);
99
99
  __exportStar(require("./palette"), exports);
100
100
  __exportStar(require("./canvas-var-generation"), exports);
101
+ __exportStar(require("./photo-session"), exports);
101
102
  __exportStar(require("./photo-studio"), exports);
102
103
  __exportStar(require("./canvas-template"), exports);
@@ -0,0 +1,20 @@
1
+ export declare const PHOTO_SESSION_CONTROLLER_PRIVATE: 'private/tools/photo-session';
2
+ export declare const PHOTO_SESSION_CONTROLLER_PUBLIC: 'public/tools/photo-session';
3
+ export declare const PHOTO_SESSION_ROUTES: {
4
+ readonly CONFIG: 'config';
5
+ readonly EXECUTE: 'execute';
6
+ readonly PRICE: 'price';
7
+ readonly GET_JOBS: 'jobs';
8
+ readonly GET_JOB: (uuid: string) => string;
9
+ readonly UPDATE: (uuid: string) => string;
10
+ readonly UPDATE_FAVORITE: (uuid: string) => string;
11
+ readonly SET_REACTION: (uuid: string) => string;
12
+ readonly DELETE: (uuid: string) => string;
13
+ readonly DELETE_ALL: 'jobs';
14
+ readonly RETRY: (uuid: string) => string;
15
+ readonly UPDATE_PUBLISHED: (uuid: string) => string;
16
+ readonly ADMIN: {
17
+ readonly STYLES: 'admin/styles';
18
+ readonly STYLE: (uuid: string) => string;
19
+ };
20
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PHOTO_SESSION_ROUTES = exports.PHOTO_SESSION_CONTROLLER_PUBLIC = exports.PHOTO_SESSION_CONTROLLER_PRIVATE = void 0;
4
+ exports.PHOTO_SESSION_CONTROLLER_PRIVATE = 'private/tools/photo-session';
5
+ exports.PHOTO_SESSION_CONTROLLER_PUBLIC = 'public/tools/photo-session';
6
+ exports.PHOTO_SESSION_ROUTES = {
7
+ CONFIG: 'config',
8
+ EXECUTE: 'execute',
9
+ PRICE: 'price',
10
+ GET_JOBS: 'jobs',
11
+ GET_JOB: (uuid) => `jobs/${uuid}`,
12
+ UPDATE: (uuid) => `jobs/${uuid}`,
13
+ UPDATE_FAVORITE: (uuid) => `jobs/${uuid}/favorite`,
14
+ SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
15
+ DELETE: (uuid) => `jobs/${uuid}`,
16
+ DELETE_ALL: 'jobs',
17
+ RETRY: (uuid) => `jobs/${uuid}/retry`,
18
+ UPDATE_PUBLISHED: (uuid) => `jobs/${uuid}/published`,
19
+ ADMIN: {
20
+ STYLES: 'admin/styles',
21
+ STYLE: (uuid) => `admin/styles/${uuid}`,
22
+ },
23
+ };
@@ -11,4 +11,13 @@ export declare const TTS_ROUTES: {
11
11
  readonly DELETE: (uuid: string) => string;
12
12
  readonly DELETE_ALL: 'jobs';
13
13
  readonly RETRY: (uuid: string) => string;
14
+ readonly IMPROVE: 'improve';
15
+ readonly GET_VOICES: 'voices';
16
+ readonly GET_VOICE: (uuid: string) => string;
17
+ readonly CREATE_CLONE: 'voices/clone';
18
+ readonly CREATE_DESIGN: 'voices/design';
19
+ readonly SELECT_DESIGN: (designId: string) => string;
20
+ readonly UPDATE_VOICE: (uuid: string) => string;
21
+ readonly DELETE_VOICE: (uuid: string) => string;
22
+ readonly DOWNLOAD: (uuid: string) => string;
14
23
  };
@@ -14,4 +14,13 @@ exports.TTS_ROUTES = {
14
14
  DELETE: (uuid) => `jobs/${uuid}`,
15
15
  DELETE_ALL: 'jobs',
16
16
  RETRY: (uuid) => `jobs/${uuid}/retry`,
17
+ IMPROVE: 'improve',
18
+ GET_VOICES: 'voices',
19
+ GET_VOICE: (uuid) => `voices/${uuid}`,
20
+ CREATE_CLONE: 'voices/clone',
21
+ CREATE_DESIGN: 'voices/design',
22
+ SELECT_DESIGN: (designId) => `voices/design/${designId}/select`,
23
+ UPDATE_VOICE: (uuid) => `voices/${uuid}`,
24
+ DELETE_VOICE: (uuid) => `voices/${uuid}`,
25
+ DOWNLOAD: (uuid) => `jobs/${uuid}/download`,
17
26
  };
@@ -633,6 +633,9 @@ export declare const REST_API: {
633
633
  readonly DELETE: (uuid: string) => string;
634
634
  readonly DELETE_ALL: "/api/public/tools/tts/jobs";
635
635
  readonly RETRY: (uuid: string) => string;
636
+ readonly GET_VOICES: "/api/public/tools/tts/voices";
637
+ readonly GET_VOICE: (uuid: string) => string;
638
+ readonly DOWNLOAD: (uuid: string) => string;
636
639
  };
637
640
  readonly TTS_PRIVATE: {
638
641
  readonly CONFIG: "/api/private/tools/tts/config";
@@ -645,6 +648,15 @@ export declare const REST_API: {
645
648
  readonly DELETE: (uuid: string) => string;
646
649
  readonly DELETE_ALL: "/api/private/tools/tts/jobs";
647
650
  readonly RETRY: (uuid: string) => string;
651
+ readonly IMPROVE: "/api/private/tools/tts/improve";
652
+ readonly GET_VOICES: "/api/private/tools/tts/voices";
653
+ readonly GET_VOICE: (uuid: string) => string;
654
+ readonly CREATE_CLONE: "/api/private/tools/tts/voices/clone";
655
+ readonly CREATE_DESIGN: "/api/private/tools/tts/voices/design";
656
+ readonly SELECT_DESIGN: (designId: string) => string;
657
+ readonly UPDATE_VOICE: (uuid: string) => string;
658
+ readonly DELETE_VOICE: (uuid: string) => string;
659
+ readonly DOWNLOAD: (uuid: string) => string;
648
660
  };
649
661
  readonly STT_PUBLIC: {
650
662
  readonly CONFIG: "/api/public/tools/stt/config";
@@ -671,6 +671,9 @@ exports.REST_API = {
671
671
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PUBLIC}/${CONTROLLERS.TTS_ROUTES.DELETE(uuid)}`,
672
672
  DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PUBLIC}/${CONTROLLERS.TTS_ROUTES.DELETE_ALL}`,
673
673
  RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PUBLIC}/${CONTROLLERS.TTS_ROUTES.RETRY(uuid)}`,
674
+ GET_VOICES: `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PUBLIC}/${CONTROLLERS.TTS_ROUTES.GET_VOICES}`,
675
+ GET_VOICE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PUBLIC}/${CONTROLLERS.TTS_ROUTES.GET_VOICE(uuid)}`,
676
+ DOWNLOAD: (uuid) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PUBLIC}/${CONTROLLERS.TTS_ROUTES.DOWNLOAD(uuid)}`,
674
677
  },
675
678
  TTS_PRIVATE: {
676
679
  CONFIG: `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.CONFIG}`,
@@ -683,6 +686,15 @@ exports.REST_API = {
683
686
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.DELETE(uuid)}`,
684
687
  DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.DELETE_ALL}`,
685
688
  RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.RETRY(uuid)}`,
689
+ IMPROVE: `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.IMPROVE}`,
690
+ GET_VOICES: `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.GET_VOICES}`,
691
+ GET_VOICE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.GET_VOICE(uuid)}`,
692
+ CREATE_CLONE: `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.CREATE_CLONE}`,
693
+ CREATE_DESIGN: `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.CREATE_DESIGN}`,
694
+ SELECT_DESIGN: (designId) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.SELECT_DESIGN(designId)}`,
695
+ UPDATE_VOICE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.UPDATE_VOICE(uuid)}`,
696
+ DELETE_VOICE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.DELETE_VOICE(uuid)}`,
697
+ DOWNLOAD: (uuid) => `${exports.ROOT}/${CONTROLLERS.TTS_CONTROLLER_PRIVATE}/${CONTROLLERS.TTS_ROUTES.DOWNLOAD(uuid)}`,
686
698
  },
687
699
  STT_PUBLIC: {
688
700
  CONFIG: `${exports.ROOT}/${CONTROLLERS.STT_CONTROLLER_PUBLIC}/${CONTROLLERS.STT_ROUTES.CONFIG}`,
@@ -293,6 +293,7 @@ export declare namespace FindCanvasNodeDefinitionsWithConfigsQuery {
293
293
  }, z.core.$strip>;
294
294
  }, z.core.$strip>;
295
295
  maxInputLength: z.ZodNumber;
296
+ maxSpeakers: z.ZodNumber;
296
297
  params: z.ZodObject<{
297
298
  speed: z.ZodOptional<z.ZodObject<{
298
299
  title: z.ZodString;
@@ -396,6 +397,16 @@ export declare namespace FindCanvasNodeDefinitionsWithConfigsQuery {
396
397
  canUse: z.ZodBoolean;
397
398
  status: z.ZodString;
398
399
  }, z.core.$strip>>;
400
+ tags: z.ZodArray<z.ZodObject<{
401
+ id: z.ZodEnum<typeof import("../../..").VOICE_TAG>;
402
+ group: z.ZodEnum<typeof import("../../..").VOICE_TAG_GROUP>;
403
+ label: z.ZodString;
404
+ }, z.core.$strip>>;
405
+ categories: z.ZodArray<z.ZodObject<{
406
+ id: z.ZodEnum<typeof import("../../..").VOICE_CATEGORY>;
407
+ label: z.ZodString;
408
+ }, z.core.$strip>>;
409
+ speakerMarkerLabel: z.ZodString;
399
410
  }, z.core.$strip>;
400
411
  }, z.core.$strip>, z.ZodObject<{
401
412
  nodeType: z.ZodLiteral<import("../../..").CANVAS_NODE_TYPE.sttGen>;
@@ -16,4 +16,5 @@ export * from './solving-edu-task';
16
16
  export * from './spell-corrector';
17
17
  export * from './html-page-builder';
18
18
  export * from './tool-workspace';
19
+ export * from './photo-session';
19
20
  export * from './diagrams';
@@ -32,4 +32,5 @@ __exportStar(require("./solving-edu-task"), exports);
32
32
  __exportStar(require("./spell-corrector"), exports);
33
33
  __exportStar(require("./html-page-builder"), exports);
34
34
  __exportStar(require("./tool-workspace"), exports);
35
+ __exportStar(require("./photo-session"), exports);
35
36
  __exportStar(require("./diagrams"), exports);
@@ -0,0 +1,39 @@
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
+ data: z.ZodObject<{
21
+ uuid: z.ZodString;
22
+ code: z.ZodString;
23
+ title: z.ZodString;
24
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ references: z.ZodArray<z.ZodObject<{
26
+ uuid: z.ZodString;
27
+ styleId: z.ZodString;
28
+ photoUrl: z.ZodString;
29
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ order: z.ZodNumber;
31
+ createdAt: z.ZodDate;
32
+ updatedAt: z.ZodDate;
33
+ }, z.core.$strip>>;
34
+ createdAt: z.ZodDate;
35
+ updatedAt: z.ZodDate;
36
+ }, z.core.$strip>;
37
+ }, z.core.$strip>;
38
+ type Response = z.infer<typeof ResponseSchema>;
39
+ }
@@ -0,0 +1,22 @@
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 models_1 = require("../../../../models");
6
+ exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
7
+ photoUrl: zod_1.z.string(),
8
+ description: zod_1.z.string().optional(),
9
+ order: zod_1.z.number().int().min(0).max(5),
10
+ });
11
+ var CreatePhotoSessionStyleCommand;
12
+ (function (CreatePhotoSessionStyleCommand) {
13
+ CreatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
14
+ code: zod_1.z.string(),
15
+ title: zod_1.z.string(),
16
+ description: zod_1.z.string().optional(),
17
+ references: zod_1.z.array(exports.CreatePhotoSessionStyleReferenceSchema).max(6),
18
+ });
19
+ CreatePhotoSessionStyleCommand.ResponseSchema = zod_1.z.object({
20
+ data: models_1.PhotoSessionStyleSchema,
21
+ });
22
+ })(CreatePhotoSessionStyleCommand || (exports.CreatePhotoSessionStyleCommand = CreatePhotoSessionStyleCommand = {}));
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeletePhotoSessionStyleCommand {
3
+ const RequestParamsSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
7
+ const ResponseSchema: z.ZodVoid;
8
+ type Response = z.infer<typeof ResponseSchema>;
9
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePhotoSessionStyleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeletePhotoSessionStyleCommand;
6
+ (function (DeletePhotoSessionStyleCommand) {
7
+ DeletePhotoSessionStyleCommand.RequestParamsSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ DeletePhotoSessionStyleCommand.ResponseSchema = zod_1.z.void();
11
+ })(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,45 @@
1
+ import { z } from 'zod';
2
+ export declare const UpdatePhotoSessionStyleReferenceSchema: z.ZodObject<{
3
+ photoUrl: z.ZodString;
4
+ description: z.ZodOptional<z.ZodString>;
5
+ order: z.ZodNumber;
6
+ uuid: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export declare namespace UpdatePhotoSessionStyleCommand {
9
+ const RequestParamsSchema: z.ZodObject<{
10
+ uuid: z.ZodString;
11
+ }, z.core.$strip>;
12
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
13
+ const RequestSchema: z.ZodObject<{
14
+ code: z.ZodOptional<z.ZodString>;
15
+ title: z.ZodOptional<z.ZodString>;
16
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
+ photoUrl: z.ZodString;
19
+ description: z.ZodOptional<z.ZodString>;
20
+ order: z.ZodNumber;
21
+ uuid: z.ZodOptional<z.ZodString>;
22
+ }, z.core.$strip>>>;
23
+ }, z.core.$strip>;
24
+ type Request = z.infer<typeof RequestSchema>;
25
+ const ResponseSchema: z.ZodObject<{
26
+ data: z.ZodObject<{
27
+ uuid: z.ZodString;
28
+ code: z.ZodString;
29
+ title: z.ZodString;
30
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ references: z.ZodArray<z.ZodObject<{
32
+ uuid: z.ZodString;
33
+ styleId: z.ZodString;
34
+ photoUrl: z.ZodString;
35
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ order: z.ZodNumber;
37
+ createdAt: z.ZodDate;
38
+ updatedAt: z.ZodDate;
39
+ }, z.core.$strip>>;
40
+ createdAt: z.ZodDate;
41
+ updatedAt: z.ZodDate;
42
+ }, z.core.$strip>;
43
+ }, z.core.$strip>;
44
+ type Response = z.infer<typeof ResponseSchema>;
45
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePhotoSessionStyleCommand = exports.UpdatePhotoSessionStyleReferenceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../../models");
6
+ const create_photo_session_style_command_1 = require("./create-photo-session-style.command");
7
+ exports.UpdatePhotoSessionStyleReferenceSchema = create_photo_session_style_command_1.CreatePhotoSessionStyleReferenceSchema.extend({
8
+ uuid: zod_1.z.string().uuid().optional(),
9
+ }).refine((ref) => {
10
+ if (ref.photoUrl === undefined &&
11
+ ref.description === undefined &&
12
+ ref.order === undefined) {
13
+ return false;
14
+ }
15
+ return true;
16
+ }, { message: 'At least one field must be provided for reference update' });
17
+ var UpdatePhotoSessionStyleCommand;
18
+ (function (UpdatePhotoSessionStyleCommand) {
19
+ UpdatePhotoSessionStyleCommand.RequestParamsSchema = zod_1.z.object({
20
+ uuid: zod_1.z.string().uuid(),
21
+ });
22
+ UpdatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
23
+ code: zod_1.z.string().optional(),
24
+ title: zod_1.z.string().optional(),
25
+ description: zod_1.z.string().nullable().optional(),
26
+ references: zod_1.z.array(exports.UpdatePhotoSessionStyleReferenceSchema).max(6).optional(),
27
+ });
28
+ UpdatePhotoSessionStyleCommand.ResponseSchema = zod_1.z.object({
29
+ data: models_1.PhotoSessionStyleSchema,
30
+ });
31
+ })(UpdatePhotoSessionStyleCommand || (exports.UpdatePhotoSessionStyleCommand = UpdatePhotoSessionStyleCommand = {}));
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteAllPhotoSessionJobsCommand {
3
+ const ResponseSchema: z.ZodVoid;
4
+ type Response = z.infer<typeof ResponseSchema>;
5
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAllPhotoSessionJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteAllPhotoSessionJobsCommand;
6
+ (function (DeleteAllPhotoSessionJobsCommand) {
7
+ DeleteAllPhotoSessionJobsCommand.ResponseSchema = zod_1.z.void();
8
+ })(DeleteAllPhotoSessionJobsCommand || (exports.DeleteAllPhotoSessionJobsCommand = DeleteAllPhotoSessionJobsCommand = {}));
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeletePhotoSessionJobByUUIDCommand {
3
+ const RequestParamsSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
7
+ const ResponseSchema: z.ZodVoid;
8
+ type Response = z.infer<typeof ResponseSchema>;
9
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePhotoSessionJobByUUIDCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeletePhotoSessionJobByUUIDCommand;
6
+ (function (DeletePhotoSessionJobByUUIDCommand) {
7
+ DeletePhotoSessionJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ DeletePhotoSessionJobByUUIDCommand.ResponseSchema = zod_1.z.void();
11
+ })(DeletePhotoSessionJobByUUIDCommand || (exports.DeletePhotoSessionJobByUUIDCommand = DeletePhotoSessionJobByUUIDCommand = {}));
@@ -0,0 +1,61 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindPhotoSessionJobByUUIDCommand {
3
+ const RequestParamsSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Request = z.infer<typeof RequestParamsSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ data: z.ZodObject<{
9
+ uuid: z.ZodString;
10
+ status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
11
+ error: z.ZodNullable<z.ZodString>;
12
+ isFavorite: z.ZodBoolean;
13
+ createdAt: z.ZodDate;
14
+ updatedAt: z.ZodDate;
15
+ prompt: z.ZodString;
16
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
17
+ dislikeReason: z.ZodNullable<z.ZodString>;
18
+ externalId: z.ZodNullable<z.ZodString>;
19
+ title: z.ZodString;
20
+ modelId: z.ZodString;
21
+ price: z.ZodNumber;
22
+ previewUrl: z.ZodNullable<z.ZodString>;
23
+ params: z.ZodObject<{
24
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
+ uuid: z.ZodString;
26
+ url: z.ZodString;
27
+ name: z.ZodString;
28
+ mimeType: z.ZodString;
29
+ type: z.ZodString;
30
+ size: z.ZodNumber;
31
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
32
+ }, z.core.$strip>>>;
33
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
39
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
42
+ aspectRatio: z.ZodOptional<z.ZodString>;
43
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
44
+ }, z.core.$strip>;
45
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
46
+ images: z.ZodNullable<z.ZodArray<z.ZodObject<{
47
+ uuid: z.ZodString;
48
+ url: z.ZodString;
49
+ originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
+ width: z.ZodNumber;
52
+ height: z.ZodNumber;
53
+ }, z.core.$strip>>>;
54
+ }, z.core.$strip>>>;
55
+ isPublished: z.ZodBoolean;
56
+ postId: z.ZodNullable<z.ZodString>;
57
+ isDeleted: z.ZodBoolean;
58
+ }, z.core.$strip>;
59
+ }, z.core.$strip>;
60
+ type Response = z.infer<typeof ResponseSchema>;
61
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionJobByUUIDCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var FindPhotoSessionJobByUUIDCommand;
7
+ (function (FindPhotoSessionJobByUUIDCommand) {
8
+ FindPhotoSessionJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ FindPhotoSessionJobByUUIDCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.PhotoSessionJobSchema,
13
+ });
14
+ })(FindPhotoSessionJobByUUIDCommand || (exports.FindPhotoSessionJobByUUIDCommand = FindPhotoSessionJobByUUIDCommand = {}));
@@ -0,0 +1,70 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
3
+ export declare namespace FindPhotoSessionJobsCommand {
4
+ const RequestQuerySchema: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
6
+ offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
7
+ title: z.ZodOptional<z.ZodString>;
8
+ isFavorite: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
9
+ createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
10
+ status: z.ZodOptional<z.ZodEnum<typeof TOOL_JOB_STATUS>>;
11
+ }, z.core.$strip>;
12
+ type RequestQuery = z.infer<typeof RequestQuerySchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ data: z.ZodArray<z.ZodObject<{
15
+ uuid: z.ZodString;
16
+ status: z.ZodEnum<typeof TOOL_JOB_STATUS>;
17
+ error: z.ZodNullable<z.ZodString>;
18
+ isFavorite: z.ZodBoolean;
19
+ createdAt: z.ZodDate;
20
+ updatedAt: z.ZodDate;
21
+ prompt: z.ZodString;
22
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
23
+ dislikeReason: z.ZodNullable<z.ZodString>;
24
+ externalId: z.ZodNullable<z.ZodString>;
25
+ title: z.ZodString;
26
+ modelId: z.ZodString;
27
+ price: z.ZodNumber;
28
+ previewUrl: z.ZodNullable<z.ZodString>;
29
+ params: z.ZodObject<{
30
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
+ uuid: z.ZodString;
32
+ url: z.ZodString;
33
+ name: z.ZodString;
34
+ mimeType: z.ZodString;
35
+ type: z.ZodString;
36
+ size: z.ZodNumber;
37
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
38
+ }, z.core.$strip>>>;
39
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ aspectRatio: z.ZodOptional<z.ZodString>;
49
+ userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
50
+ }, z.core.$strip>;
51
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
52
+ images: z.ZodNullable<z.ZodArray<z.ZodObject<{
53
+ uuid: z.ZodString;
54
+ url: z.ZodString;
55
+ originalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ resolution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
+ width: z.ZodNumber;
58
+ height: z.ZodNumber;
59
+ }, z.core.$strip>>>;
60
+ }, z.core.$strip>>>;
61
+ isPublished: z.ZodBoolean;
62
+ postId: z.ZodNullable<z.ZodString>;
63
+ isDeleted: z.ZodBoolean;
64
+ }, z.core.$strip>>;
65
+ totalPages: z.ZodNumber;
66
+ total: z.ZodNumber;
67
+ page: z.ZodNumber;
68
+ }, z.core.$strip>;
69
+ type Response = z.infer<typeof ResponseSchema>;
70
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindPhotoSessionJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const helpers_1 = require("../../../helpers");
6
+ const constants_1 = require("../../../constants");
7
+ const models_1 = require("../../../models");
8
+ var FindPhotoSessionJobsCommand;
9
+ (function (FindPhotoSessionJobsCommand) {
10
+ FindPhotoSessionJobsCommand.RequestQuerySchema = zod_1.z.object({
11
+ limit: zod_1.z.coerce.number().min(1).max(100).optional(),
12
+ offset: zod_1.z.coerce.number().min(0).default(0).optional(),
13
+ title: zod_1.z.string().optional(),
14
+ isFavorite: helpers_1.QueryBooleanSchema.optional(),
15
+ createdAtSortOrder: zod_1.z.nativeEnum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
16
+ status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional(),
17
+ });
18
+ FindPhotoSessionJobsCommand.ResponseSchema = zod_1.z.object({
19
+ data: zod_1.z.array(models_1.PhotoSessionJobSchema),
20
+ totalPages: zod_1.z.number(),
21
+ total: zod_1.z.number(),
22
+ page: zod_1.z.number(),
23
+ });
24
+ })(FindPhotoSessionJobsCommand || (exports.FindPhotoSessionJobsCommand = FindPhotoSessionJobsCommand = {}));