@purpleschool/gptbot 0.11.5 → 0.11.6

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 (101) hide show
  1. package/api/controllers/http/community.ts +1 -0
  2. package/api/controllers/http/index.ts +1 -0
  3. package/api/controllers/http/spell-corrector.ts +14 -0
  4. package/api/controllers/http/unregistered-user.ts +5 -0
  5. package/api/controllers/http/user.ts +1 -0
  6. package/api/routes.ts +36 -0
  7. package/build/api/controllers/http/community.js +1 -0
  8. package/build/api/controllers/http/index.js +1 -0
  9. package/build/api/controllers/http/spell-corrector.js +16 -0
  10. package/build/api/controllers/http/unregistered-user.js +5 -1
  11. package/build/api/controllers/http/user.js +1 -0
  12. package/build/api/routes.js +25 -0
  13. package/build/commands/community/index.js +1 -0
  14. package/build/commands/community/set-visibility-community-post.command.js +21 -0
  15. package/build/commands/subscription/find-subscription.command.js +4 -1
  16. package/build/commands/subscription/get-available-upgrades.command.js +3 -1
  17. package/build/commands/tools/index.js +1 -0
  18. package/build/commands/tools/spell-corrector/delete-all-spell-corrector-jobs.command.js +8 -0
  19. package/build/commands/tools/spell-corrector/delete-spell-corrector-job-by-uuid.command.js +11 -0
  20. package/build/commands/tools/spell-corrector/find-spell-corrector-job-by-uuid.command.js +14 -0
  21. package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.js +18 -0
  22. package/build/commands/tools/spell-corrector/get-spell-corrector-tool-config.command.js +11 -0
  23. package/build/commands/tools/spell-corrector/index.js +25 -0
  24. package/build/commands/tools/spell-corrector/retry-spell-corrector-job.command.js +14 -0
  25. package/build/commands/tools/spell-corrector/set-reaction-to-spell-corrector-job.command.js +28 -0
  26. package/build/commands/tools/spell-corrector/spell-corrector.command.js +15 -0
  27. package/build/commands/tools/spell-corrector/update-spell-corrector-job-title.command.js +17 -0
  28. package/build/commands/tools/video-editor/edit-video.command.js +2 -0
  29. package/build/commands/tools/video-editor/retry-video-editor-job.command.js +2 -0
  30. package/build/commands/unregistered-user/index.js +1 -0
  31. package/build/commands/unregistered-user/patch-locale.command.js +16 -0
  32. package/build/commands/user/get-me.command.js +1 -0
  33. package/build/commands/user/index.js +1 -0
  34. package/build/commands/user/patch-locale.command.js +16 -0
  35. package/build/constants/ai-model/enums/ai-model-strategy.enum.js +1 -0
  36. package/build/constants/model/enums/unified-model-content-type.enum.js +2 -0
  37. package/build/constants/subscription/enums/subscription-feature-type.enum.js +11 -1
  38. package/build/constants/tool-video-editor/enums/index.js +1 -0
  39. package/build/constants/tool-video-editor/enums/video-editor-pricing-rule-type.enum.js +8 -0
  40. package/build/constants/user/enums/index.js +1 -0
  41. package/build/constants/user/enums/locale.enum.js +8 -0
  42. package/build/helpers/video-editor/calculate-video-editing-price.helper.js +27 -2
  43. package/build/models/subscription-feature.schema.js +42 -1
  44. package/build/models/subscription.schema.js +7 -1
  45. package/build/models/tools/image-editor/image-editor-model.schema.js +2 -0
  46. package/build/models/tools/image-generation/image-generation-model.schema.js +1 -0
  47. package/build/models/tools/index.js +1 -0
  48. package/build/models/tools/spell-corrector/index.js +19 -0
  49. package/build/models/tools/spell-corrector/spell-corrector-config.schema.js +9 -0
  50. package/build/models/tools/spell-corrector/spell-corrector-job.schema.js +13 -0
  51. package/build/models/tools/spell-corrector/spell-corrector-model.schema.js +17 -0
  52. package/build/models/tools/stt/stt-response.schema.js +2 -0
  53. package/build/models/tools/video/video-config.schema.js +10 -2
  54. package/build/models/tools/video-editor/video-editor-job.schema.js +6 -1
  55. package/build/models/tools/video-editor/video-editor-model.schema.js +27 -2
  56. package/build/models/user.schema.js +2 -0
  57. package/commands/community/index.ts +1 -0
  58. package/commands/community/set-visibility-community-post.command.ts +24 -0
  59. package/commands/subscription/find-subscription.command.ts +11 -1
  60. package/commands/subscription/get-available-upgrades.command.ts +3 -1
  61. package/commands/tools/index.ts +1 -0
  62. package/commands/tools/spell-corrector/delete-all-spell-corrector-jobs.command.ts +6 -0
  63. package/commands/tools/spell-corrector/delete-spell-corrector-job-by-uuid.command.ts +11 -0
  64. package/commands/tools/spell-corrector/find-spell-corrector-job-by-uuid.command.ts +16 -0
  65. package/commands/tools/spell-corrector/find-spell-corrector-jobs.command.ts +18 -0
  66. package/commands/tools/spell-corrector/get-spell-corrector-tool-config.command.ts +10 -0
  67. package/commands/tools/spell-corrector/index.ts +9 -0
  68. package/commands/tools/spell-corrector/retry-spell-corrector-job.command.ts +14 -0
  69. package/commands/tools/spell-corrector/set-reaction-to-spell-corrector-job.command.ts +33 -0
  70. package/commands/tools/spell-corrector/spell-corrector.command.ts +17 -0
  71. package/commands/tools/spell-corrector/update-spell-corrector-job-title.command.ts +19 -0
  72. package/commands/tools/video-editor/edit-video.command.ts +2 -0
  73. package/commands/tools/video-editor/retry-video-editor-job.command.ts +2 -0
  74. package/commands/unregistered-user/index.ts +1 -0
  75. package/commands/unregistered-user/patch-locale.command.ts +18 -0
  76. package/commands/user/get-me.command.ts +2 -1
  77. package/commands/user/index.ts +1 -0
  78. package/commands/user/patch-locale.command.ts +18 -0
  79. package/constants/ai-model/enums/ai-model-strategy.enum.ts +1 -0
  80. package/constants/model/enums/unified-model-content-type.enum.ts +2 -0
  81. package/constants/subscription/enums/subscription-feature-type.enum.ts +11 -1
  82. package/constants/tool-video-editor/enums/index.ts +1 -0
  83. package/constants/tool-video-editor/enums/video-editor-pricing-rule-type.enum.ts +4 -0
  84. package/constants/user/enums/index.ts +1 -0
  85. package/constants/user/enums/locale.enum.ts +4 -0
  86. package/helpers/video-editor/calculate-video-editing-price.helper.ts +52 -2
  87. package/models/subscription-feature.schema.ts +57 -0
  88. package/models/subscription.schema.ts +11 -0
  89. package/models/tools/image-editor/image-editor-model.schema.ts +2 -0
  90. package/models/tools/image-generation/image-generation-model.schema.ts +1 -0
  91. package/models/tools/index.ts +1 -0
  92. package/models/tools/spell-corrector/index.ts +3 -0
  93. package/models/tools/spell-corrector/spell-corrector-config.schema.ts +7 -0
  94. package/models/tools/spell-corrector/spell-corrector-job.schema.ts +11 -0
  95. package/models/tools/spell-corrector/spell-corrector-model.schema.ts +15 -0
  96. package/models/tools/stt/stt-response.schema.ts +2 -0
  97. package/models/tools/video/video-config.schema.ts +14 -1
  98. package/models/tools/video-editor/video-editor-job.schema.ts +8 -0
  99. package/models/tools/video-editor/video-editor-model.schema.ts +36 -1
  100. package/models/user.schema.ts +2 -0
  101. package/package.json +1 -1
@@ -13,6 +13,7 @@ export const COMMUNITY_ROUTES_PRIVATE = {
13
13
  DELETE: (uuid: string) => `${uuid}`,
14
14
  LIKE: (uuid: string) => `${uuid}/like`,
15
15
  FAVORITE: (uuid: string) => `${uuid}/favorite`,
16
+ SET_VISIBILITY: (uuid: string) => `${uuid}/visibility`,
16
17
  REJECT: (uuid: string) => `${uuid}/reject`,
17
18
  REPORT: (uuid: string) => `report/${uuid}`,
18
19
  LIKES_COUNT: (userId: string) => `${userId}/likes/count`,
@@ -60,3 +60,4 @@ export * from './marketplace-card';
60
60
  export * from './interior-design';
61
61
  export * from './solving-edu-task';
62
62
  export * from './team-account';
63
+ export * from './spell-corrector';
@@ -0,0 +1,14 @@
1
+ export const SPELL_CORRECTOR_CONTROLLER_PRIVATE = 'private/tools/spell-corrector' as const;
2
+ export const SPELL_CORRECTOR_CONTROLLER_PUBLIC = 'public/tools/spell-corrector' as const;
3
+
4
+ export const SPELL_CORRECTOR_ROUTES = {
5
+ CONFIG: 'config',
6
+ EXECUTE: 'execute',
7
+ GET_JOBS: 'jobs',
8
+ GET_JOB: (uuid: string) => `jobs/${uuid}`,
9
+ UPDATE: (uuid: string) => `jobs/${uuid}`,
10
+ SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
11
+ DELETE: (uuid: string) => `jobs/${uuid}`,
12
+ DELETE_ALL: 'jobs',
13
+ RETRY: (uuid: string) => `jobs/${uuid}/retry`,
14
+ } as const;
@@ -1 +1,6 @@
1
1
  export const UNREGISTERED_USER_CONTROLLER = 'unregistered-user' as const;
2
+
3
+ export const UNREGISTERED_USER_ROUTES = {
4
+ PUT: '',
5
+ PATCH_LOCALE: 'locale',
6
+ } as const;
@@ -2,6 +2,7 @@ export const USER_CONTROLLER = 'users' as const;
2
2
 
3
3
  export const USER_ROUTES = {
4
4
  GET: 'me',
5
+ PATCH_LOCALE: 'me/locale',
5
6
  POST: 'up-balance',
6
7
  CHECK_EMAIL: 'check-email',
7
8
  FIND_BY_CRITERIA: 'criteria',
package/api/routes.ts CHANGED
@@ -17,6 +17,7 @@ export const REST_API = {
17
17
  },
18
18
  USERS: {
19
19
  GET: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET}`,
20
+ PATCH_LOCALE: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.PATCH_LOCALE}`,
20
21
  POST: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.POST}`,
21
22
  CHECK_EMAIL: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.CHECK_EMAIL}`,
22
23
  FIND_BY_CRITERIA: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.FIND_BY_CRITERIA}`,
@@ -77,6 +78,7 @@ export const REST_API = {
77
78
  },
78
79
  UNREGISTERED_USER: {
79
80
  PUT: `${ROOT}/${CONTROLLERS.UNREGISTERED_USER_CONTROLLER}`,
81
+ PATCH_LOCALE: `${ROOT}/${CONTROLLERS.UNREGISTERED_USER_CONTROLLER}/${CONTROLLERS.UNREGISTERED_USER_ROUTES.PATCH_LOCALE}`,
80
82
  },
81
83
  AI_MODULE_PRIVATE: {
82
84
  GET: `${ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PRIVATE}/${CONTROLLERS.AI_MODEL_ROUTES.GET_ALL}`,
@@ -625,6 +627,38 @@ export const REST_API = {
625
627
  RETRY: (uuid: string) =>
626
628
  `${ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.RETRY(uuid)}`,
627
629
  },
630
+ SPELL_CORRECTOR_PUBLIC: {
631
+ CONFIG: `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.CONFIG}`,
632
+ EXECUTE: `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.EXECUTE}`,
633
+ GET_JOBS: `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.GET_JOBS}`,
634
+ GET_JOB: (uuid: string) =>
635
+ `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.GET_JOB(uuid)}`,
636
+ UPDATE: (uuid: string) =>
637
+ `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.UPDATE(uuid)}`,
638
+ SET_REACTION: (uuid: string) =>
639
+ `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.SET_REACTION(uuid)}`,
640
+ DELETE: (uuid: string) =>
641
+ `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.DELETE(uuid)}`,
642
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.DELETE_ALL}`,
643
+ RETRY: (uuid: string) =>
644
+ `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.RETRY(uuid)}`,
645
+ },
646
+ SPELL_CORRECTOR_PRIVATE: {
647
+ CONFIG: `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.CONFIG}`,
648
+ EXECUTE: `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.EXECUTE}`,
649
+ GET_JOBS: `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.GET_JOBS}`,
650
+ GET_JOB: (uuid: string) =>
651
+ `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.GET_JOB(uuid)}`,
652
+ UPDATE: (uuid: string) =>
653
+ `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.UPDATE(uuid)}`,
654
+ SET_REACTION: (uuid: string) =>
655
+ `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.SET_REACTION(uuid)}`,
656
+ DELETE: (uuid: string) =>
657
+ `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.DELETE(uuid)}`,
658
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.DELETE_ALL}`,
659
+ RETRY: (uuid: string) =>
660
+ `${ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.RETRY(uuid)}`,
661
+ },
628
662
  PRESENTATION_PUBLIC: {
629
663
  CONFIG: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CONFIG}`,
630
664
  CREATE: `${ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE}`,
@@ -954,6 +988,8 @@ export const REST_API = {
954
988
  `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.LIKE(uuid)}`,
955
989
  FAVORITE: (uuid: string) =>
956
990
  `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.FAVORITE(uuid)}`,
991
+ SET_VISIBILITY: (uuid: string) =>
992
+ `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.SET_VISIBILITY(uuid)}`,
957
993
  REPORT: (uuid: string) =>
958
994
  `${ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.REPORT(uuid)}`,
959
995
  LIKES_COUNT: (userId: string) =>
@@ -15,6 +15,7 @@ exports.COMMUNITY_ROUTES_PRIVATE = {
15
15
  DELETE: (uuid) => `${uuid}`,
16
16
  LIKE: (uuid) => `${uuid}/like`,
17
17
  FAVORITE: (uuid) => `${uuid}/favorite`,
18
+ SET_VISIBILITY: (uuid) => `${uuid}/visibility`,
18
19
  REJECT: (uuid) => `${uuid}/reject`,
19
20
  REPORT: (uuid) => `report/${uuid}`,
20
21
  LIKES_COUNT: (userId) => `${userId}/likes/count`,
@@ -76,3 +76,4 @@ __exportStar(require("./marketplace-card"), exports);
76
76
  __exportStar(require("./interior-design"), exports);
77
77
  __exportStar(require("./solving-edu-task"), exports);
78
78
  __exportStar(require("./team-account"), exports);
79
+ __exportStar(require("./spell-corrector"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SPELL_CORRECTOR_ROUTES = exports.SPELL_CORRECTOR_CONTROLLER_PUBLIC = exports.SPELL_CORRECTOR_CONTROLLER_PRIVATE = void 0;
4
+ exports.SPELL_CORRECTOR_CONTROLLER_PRIVATE = 'private/tools/spell-corrector';
5
+ exports.SPELL_CORRECTOR_CONTROLLER_PUBLIC = 'public/tools/spell-corrector';
6
+ exports.SPELL_CORRECTOR_ROUTES = {
7
+ CONFIG: 'config',
8
+ EXECUTE: 'execute',
9
+ GET_JOBS: 'jobs',
10
+ GET_JOB: (uuid) => `jobs/${uuid}`,
11
+ UPDATE: (uuid) => `jobs/${uuid}`,
12
+ SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
13
+ DELETE: (uuid) => `jobs/${uuid}`,
14
+ DELETE_ALL: 'jobs',
15
+ RETRY: (uuid) => `jobs/${uuid}/retry`,
16
+ };
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UNREGISTERED_USER_CONTROLLER = void 0;
3
+ exports.UNREGISTERED_USER_ROUTES = exports.UNREGISTERED_USER_CONTROLLER = void 0;
4
4
  exports.UNREGISTERED_USER_CONTROLLER = 'unregistered-user';
5
+ exports.UNREGISTERED_USER_ROUTES = {
6
+ PUT: '',
7
+ PATCH_LOCALE: 'locale',
8
+ };
@@ -4,6 +4,7 @@ exports.USER_ROUTES = exports.USER_CONTROLLER = void 0;
4
4
  exports.USER_CONTROLLER = 'users';
5
5
  exports.USER_ROUTES = {
6
6
  GET: 'me',
7
+ PATCH_LOCALE: 'me/locale',
7
8
  POST: 'up-balance',
8
9
  CHECK_EMAIL: 'check-email',
9
10
  FIND_BY_CRITERIA: 'criteria',
@@ -52,6 +52,7 @@ exports.REST_API = {
52
52
  },
53
53
  USERS: {
54
54
  GET: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET}`,
55
+ PATCH_LOCALE: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.PATCH_LOCALE}`,
55
56
  POST: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.POST}`,
56
57
  CHECK_EMAIL: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.CHECK_EMAIL}`,
57
58
  FIND_BY_CRITERIA: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.FIND_BY_CRITERIA}`,
@@ -100,6 +101,7 @@ exports.REST_API = {
100
101
  },
101
102
  UNREGISTERED_USER: {
102
103
  PUT: `${exports.ROOT}/${CONTROLLERS.UNREGISTERED_USER_CONTROLLER}`,
104
+ PATCH_LOCALE: `${exports.ROOT}/${CONTROLLERS.UNREGISTERED_USER_CONTROLLER}/${CONTROLLERS.UNREGISTERED_USER_ROUTES.PATCH_LOCALE}`,
103
105
  },
104
106
  AI_MODULE_PRIVATE: {
105
107
  GET: `${exports.ROOT}/${CONTROLLERS.AI_MODEL_CONTROLLER_PRIVATE}/${CONTROLLERS.AI_MODEL_ROUTES.GET_ALL}`,
@@ -502,6 +504,28 @@ exports.REST_API = {
502
504
  DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.DELETE_ALL}`,
503
505
  RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.PARAPHRASE_CONTROLLER_PRIVATE}/${CONTROLLERS.PARAPHRASE_ROUTES.RETRY(uuid)}`,
504
506
  },
507
+ SPELL_CORRECTOR_PUBLIC: {
508
+ CONFIG: `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.CONFIG}`,
509
+ EXECUTE: `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.EXECUTE}`,
510
+ GET_JOBS: `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.GET_JOBS}`,
511
+ GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.GET_JOB(uuid)}`,
512
+ UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.UPDATE(uuid)}`,
513
+ SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.SET_REACTION(uuid)}`,
514
+ DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.DELETE(uuid)}`,
515
+ DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.DELETE_ALL}`,
516
+ RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PUBLIC}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.RETRY(uuid)}`,
517
+ },
518
+ SPELL_CORRECTOR_PRIVATE: {
519
+ CONFIG: `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.CONFIG}`,
520
+ EXECUTE: `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.EXECUTE}`,
521
+ GET_JOBS: `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.GET_JOBS}`,
522
+ GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.GET_JOB(uuid)}`,
523
+ UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.UPDATE(uuid)}`,
524
+ SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.SET_REACTION(uuid)}`,
525
+ DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.DELETE(uuid)}`,
526
+ DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.DELETE_ALL}`,
527
+ RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.SPELL_CORRECTOR_CONTROLLER_PRIVATE}/${CONTROLLERS.SPELL_CORRECTOR_ROUTES.RETRY(uuid)}`,
528
+ },
505
529
  PRESENTATION_PUBLIC: {
506
530
  CONFIG: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CONFIG}`,
507
531
  CREATE: `${exports.ROOT}/${CONTROLLERS.PRESENTATION_PUBLIC_CONTROLLER}/${CONTROLLERS.PRESENTATION_ROUTES.CREATE}`,
@@ -734,6 +758,7 @@ exports.REST_API = {
734
758
  GET_MY_FAVORITE: `${exports.ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.GET_MY_FAVORITE}`,
735
759
  LIKE: (uuid) => `${exports.ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.LIKE(uuid)}`,
736
760
  FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.FAVORITE(uuid)}`,
761
+ SET_VISIBILITY: (uuid) => `${exports.ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.SET_VISIBILITY(uuid)}`,
737
762
  REPORT: (uuid) => `${exports.ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.REPORT(uuid)}`,
738
763
  LIKES_COUNT: (userId) => `${exports.ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.LIKES_COUNT(userId)}`,
739
764
  REJECT: (uuid) => `${exports.ROOT}/${CONTROLLERS.COMMUNITY_CONTROLLER_PRIVATE}/${CONTROLLERS.COMMUNITY_ROUTES_PRIVATE.REJECT(uuid)}`,
@@ -28,3 +28,4 @@ __exportStar(require("./get-my-favorite-community-posts.command"), exports);
28
28
  __exportStar(require("./send-report-to-community-post.command"), exports);
29
29
  __exportStar(require("./get-count-of-likes-on-user-posts.command"), exports);
30
30
  __exportStar(require("./set-reject-community-post.command"), exports);
31
+ __exportStar(require("./set-visibility-community-post.command"), exports);
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetVisibilityCommunityPostCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ var SetVisibilityCommunityPostCommand;
7
+ (function (SetVisibilityCommunityPostCommand) {
8
+ SetVisibilityCommunityPostCommand.HTTP_METHOD = 'POST';
9
+ SetVisibilityCommunityPostCommand.RequestParamsSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ });
12
+ SetVisibilityCommunityPostCommand.RequestBodySchema = zod_1.z.object({
13
+ visibility: zod_1.z.nativeEnum(constants_1.COMMUNITY_POST_VISIBILITY),
14
+ });
15
+ SetVisibilityCommunityPostCommand.ResponseSchema = zod_1.z.object({
16
+ data: zod_1.z.object({
17
+ uuid: zod_1.z.string().uuid(),
18
+ visibility: zod_1.z.nativeEnum(constants_1.COMMUNITY_POST_VISIBILITY),
19
+ }),
20
+ });
21
+ })(SetVisibilityCommunityPostCommand || (exports.SetVisibilityCommunityPostCommand = SetVisibilityCommunityPostCommand = {}));
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FindSubscriptionCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
5
  const constants_1 = require("../../constants");
6
+ const models_1 = require("../../models");
7
7
  var FindSubscriptionCommand;
8
8
  (function (FindSubscriptionCommand) {
9
9
  FindSubscriptionCommand.RequestSchema = models_1.SubscriptionSchema.pick({
@@ -15,6 +15,9 @@ var FindSubscriptionCommand;
15
15
  FindSubscriptionCommand.ResponseSchema = zod_1.z.object({
16
16
  data: zod_1.z.array(models_1.SubscriptionWithSubTypesSchema),
17
17
  });
18
+ FindSubscriptionCommand.ResponseCustomSchema = zod_1.z.object({
19
+ data: zod_1.z.array(models_1.SubscriptionWithSubTypesWithoutFeaturesSchema),
20
+ });
18
21
  FindSubscriptionCommand.ResponseByUUIDSchema = zod_1.z.object({
19
22
  data: models_1.SubscriptionSchema,
20
23
  });
@@ -4,10 +4,12 @@ exports.GetAvailableUpgradesCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const models_1 = require("../../models");
6
6
  const subscription_upgrade_schema_1 = require("../../models/subscription-upgrade-schema");
7
+ const subscription_feature_schema_1 = require("../../models/subscription-feature.schema");
7
8
  var GetAvailableUpgradesCommand;
8
9
  (function (GetAvailableUpgradesCommand) {
9
10
  GetAvailableUpgradesCommand.RequestSchema = models_1.SubscriptionSchema.pick({});
10
11
  GetAvailableUpgradesCommand.ResponseSchema = zod_1.z.object({
11
- data: zod_1.z.array(subscription_upgrade_schema_1.SubscriptionUpgradeSchema),
12
+ features: zod_1.z.record(zod_1.z.string().uuid(), zod_1.z.array(subscription_feature_schema_1.SubscriptionFeatureSchema)),
13
+ subscriptions: zod_1.z.array(subscription_upgrade_schema_1.SubscriptionUpgradeSchema),
12
14
  });
13
15
  })(GetAvailableUpgradesCommand || (exports.GetAvailableUpgradesCommand = GetAvailableUpgradesCommand = {}));
@@ -28,3 +28,4 @@ __exportStar(require("./image-generation"), exports);
28
28
  __exportStar(require("./marketplace-card"), exports);
29
29
  __exportStar(require("./interior-design"), exports);
30
30
  __exportStar(require("./solving-edu-task"), exports);
31
+ __exportStar(require("./spell-corrector"), exports);
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAllSpellCorrectorJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteAllSpellCorrectorJobsCommand;
6
+ (function (DeleteAllSpellCorrectorJobsCommand) {
7
+ DeleteAllSpellCorrectorJobsCommand.ResponseSchema = zod_1.z.void();
8
+ })(DeleteAllSpellCorrectorJobsCommand || (exports.DeleteAllSpellCorrectorJobsCommand = DeleteAllSpellCorrectorJobsCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteSpellCorrectorJobByUUIDCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteSpellCorrectorJobByUUIDCommand;
6
+ (function (DeleteSpellCorrectorJobByUUIDCommand) {
7
+ DeleteSpellCorrectorJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ DeleteSpellCorrectorJobByUUIDCommand.ResponseSchema = zod_1.z.void();
11
+ })(DeleteSpellCorrectorJobByUUIDCommand || (exports.DeleteSpellCorrectorJobByUUIDCommand = DeleteSpellCorrectorJobByUUIDCommand = {}));
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindSpellCorrectorJobByUUIDCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var FindSpellCorrectorJobByUUIDCommand;
7
+ (function (FindSpellCorrectorJobByUUIDCommand) {
8
+ FindSpellCorrectorJobByUUIDCommand.RequestParamsSchema = models_1.SpellCorrectorToolJobSchema.pick({
9
+ uuid: true,
10
+ });
11
+ FindSpellCorrectorJobByUUIDCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.SpellCorrectorToolJobSchema,
13
+ });
14
+ })(FindSpellCorrectorJobByUUIDCommand || (exports.FindSpellCorrectorJobByUUIDCommand = FindSpellCorrectorJobByUUIDCommand = {}));
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindSpellCorrectorJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var FindSpellCorrectorJobsCommand;
7
+ (function (FindSpellCorrectorJobsCommand) {
8
+ FindSpellCorrectorJobsCommand.RequestQuerySchema = zod_1.z.object({
9
+ limit: zod_1.z.coerce.number().min(1).optional(),
10
+ offset: zod_1.z.coerce.number().min(0).default(0).optional(),
11
+ title: zod_1.z.string().optional(),
12
+ });
13
+ FindSpellCorrectorJobsCommand.ResponseSchema = zod_1.z.object({
14
+ data: zod_1.z.array(models_1.SpellCorrectorToolJobSchema),
15
+ totalPages: zod_1.z.number(),
16
+ page: zod_1.z.number(),
17
+ });
18
+ })(FindSpellCorrectorJobsCommand || (exports.FindSpellCorrectorJobsCommand = FindSpellCorrectorJobsCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSpellCorrectorToolConfigCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var GetSpellCorrectorToolConfigCommand;
7
+ (function (GetSpellCorrectorToolConfigCommand) {
8
+ GetSpellCorrectorToolConfigCommand.ResponseSchema = zod_1.z.object({
9
+ data: models_1.SpellCorrectorToolConfigSchema,
10
+ });
11
+ })(GetSpellCorrectorToolConfigCommand || (exports.GetSpellCorrectorToolConfigCommand = GetSpellCorrectorToolConfigCommand = {}));
@@ -0,0 +1,25 @@
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("./spell-corrector.command"), exports);
18
+ __exportStar(require("./delete-spell-corrector-job-by-uuid.command"), exports);
19
+ __exportStar(require("./delete-all-spell-corrector-jobs.command"), exports);
20
+ __exportStar(require("./set-reaction-to-spell-corrector-job.command"), exports);
21
+ __exportStar(require("./update-spell-corrector-job-title.command"), exports);
22
+ __exportStar(require("./retry-spell-corrector-job.command"), exports);
23
+ __exportStar(require("./find-spell-corrector-job-by-uuid.command"), exports);
24
+ __exportStar(require("./find-spell-corrector-jobs.command"), exports);
25
+ __exportStar(require("./get-spell-corrector-tool-config.command"), exports);
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RetrySpellCorrectorJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var RetrySpellCorrectorJobCommand;
7
+ (function (RetrySpellCorrectorJobCommand) {
8
+ RetrySpellCorrectorJobCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ RetrySpellCorrectorJobCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.SpellCorrectorToolJobSchema,
13
+ });
14
+ })(RetrySpellCorrectorJobCommand || (exports.RetrySpellCorrectorJobCommand = RetrySpellCorrectorJobCommand = {}));
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetReactionToSpellCorrectorJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ const constants_1 = require("../../../constants");
7
+ var SetReactionToSpellCorrectorJobCommand;
8
+ (function (SetReactionToSpellCorrectorJobCommand) {
9
+ SetReactionToSpellCorrectorJobCommand.RequestSchema = zod_1.z
10
+ .object({
11
+ reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
12
+ dislikeReason: zod_1.z.string().nullable().default(null),
13
+ })
14
+ .refine((data) => {
15
+ if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
16
+ return false;
17
+ }
18
+ return true;
19
+ }, {
20
+ message: 'Dislike reason is not allowed when reaction is not DISLIKED',
21
+ });
22
+ SetReactionToSpellCorrectorJobCommand.RequestParamsSchema = zod_1.z.object({
23
+ uuid: zod_1.z.string().uuid(),
24
+ });
25
+ SetReactionToSpellCorrectorJobCommand.ResponseSchema = zod_1.z.object({
26
+ data: models_1.SpellCorrectorToolJobSchema,
27
+ });
28
+ })(SetReactionToSpellCorrectorJobCommand || (exports.SetReactionToSpellCorrectorJobCommand = SetReactionToSpellCorrectorJobCommand = {}));
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpellCorrectorCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var SpellCorrectorCommand;
7
+ (function (SpellCorrectorCommand) {
8
+ SpellCorrectorCommand.RequestSchema = zod_1.z.object({
9
+ modelId: zod_1.z.string().uuid(),
10
+ prompt: zod_1.z.string().min(1).max(100000),
11
+ });
12
+ SpellCorrectorCommand.ResponseSchema = zod_1.z.object({
13
+ data: models_1.ToolJobSchema,
14
+ });
15
+ })(SpellCorrectorCommand || (exports.SpellCorrectorCommand = SpellCorrectorCommand = {}));
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSpellCorrectorJobTitleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var UpdateSpellCorrectorJobTitleCommand;
7
+ (function (UpdateSpellCorrectorJobTitleCommand) {
8
+ UpdateSpellCorrectorJobTitleCommand.RequestSchema = zod_1.z.object({
9
+ title: zod_1.z.string().min(1).max(40).trim(),
10
+ });
11
+ UpdateSpellCorrectorJobTitleCommand.RequestParamsSchema = zod_1.z.object({
12
+ uuid: zod_1.z.string().uuid(),
13
+ });
14
+ UpdateSpellCorrectorJobTitleCommand.ResponseSchema = zod_1.z.object({
15
+ data: models_1.SpellCorrectorToolJobSchema,
16
+ });
17
+ })(UpdateSpellCorrectorJobTitleCommand || (exports.UpdateSpellCorrectorJobTitleCommand = UpdateSpellCorrectorJobTitleCommand = {}));
@@ -9,6 +9,8 @@ var EditVideoCommand;
9
9
  modelId: zod_1.z.string().uuid(),
10
10
  prompt: zod_1.z.string(),
11
11
  fileId: zod_1.z.string().uuid(),
12
+ resolution: zod_1.z.string().optional(),
13
+ duration: zod_1.z.number().optional(),
12
14
  });
13
15
  EditVideoCommand.ResponseSchema = zod_1.z.object({
14
16
  data: models_1.VideoEditorJobSchema,
@@ -12,6 +12,8 @@ var RetryVideoEditorJobCommand;
12
12
  modelId: zod_1.z.string().uuid().optional(),
13
13
  prompt: zod_1.z.string().optional(),
14
14
  fileId: zod_1.z.string().uuid().optional(),
15
+ resolution: zod_1.z.string().optional(),
16
+ duration: zod_1.z.number().optional(),
15
17
  });
16
18
  RetryVideoEditorJobCommand.ResponseSchema = zod_1.z.object({
17
19
  data: models_1.VideoEditorJobSchema,
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-unregistered-user.command"), exports);
18
+ __exportStar(require("./patch-locale.command"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PatchUnregisteredUserLocaleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ var PatchUnregisteredUserLocaleCommand;
7
+ (function (PatchUnregisteredUserLocaleCommand) {
8
+ PatchUnregisteredUserLocaleCommand.RequestSchema = zod_1.z.object({
9
+ locale: zod_1.z.nativeEnum(constants_1.LOCALE),
10
+ });
11
+ PatchUnregisteredUserLocaleCommand.ResponseSchema = zod_1.z.object({
12
+ data: zod_1.z.object({
13
+ locale: zod_1.z.nativeEnum(constants_1.LOCALE),
14
+ }),
15
+ });
16
+ })(PatchUnregisteredUserLocaleCommand || (exports.PatchUnregisteredUserLocaleCommand = PatchUnregisteredUserLocaleCommand = {}));
@@ -17,6 +17,7 @@ var GetMeCommand;
17
17
  telegramId: zod_1.z.number().nullable(),
18
18
  telegramUserName: zod_1.z.string().nullable(),
19
19
  webmasterId: zod_1.z.string().uuid().nullable(),
20
+ locale: zod_1.z.nativeEnum(constants_1.LOCALE),
20
21
  profile: models_1.UserProfileResponseSchema,
21
22
  }),
22
23
  });
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./check-email.command"), exports);
18
18
  __exportStar(require("./find-user-by-uuid.command"), exports);
19
19
  __exportStar(require("./get-me.command"), exports);
20
+ __exportStar(require("./patch-locale.command"), exports);
20
21
  __exportStar(require("./up-token-bonus-balance.command"), exports);
21
22
  __exportStar(require("./find-users-by-criteria.command"), exports);
22
23
  __exportStar(require("./get-user-balance.command"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PatchUserLocaleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ var PatchUserLocaleCommand;
7
+ (function (PatchUserLocaleCommand) {
8
+ PatchUserLocaleCommand.RequestSchema = zod_1.z.object({
9
+ locale: zod_1.z.nativeEnum(constants_1.LOCALE),
10
+ });
11
+ PatchUserLocaleCommand.ResponseSchema = zod_1.z.object({
12
+ data: zod_1.z.object({
13
+ locale: zod_1.z.nativeEnum(constants_1.LOCALE),
14
+ }),
15
+ });
16
+ })(PatchUserLocaleCommand || (exports.PatchUserLocaleCommand = PatchUserLocaleCommand = {}));
@@ -14,6 +14,7 @@ var AI_MODEL_STRATEGY;
14
14
  AI_MODEL_STRATEGY["STABLE_DIFFUSION_IMAGE_GENERATION"] = "stable_diffusion_image_generation";
15
15
  AI_MODEL_STRATEGY["LLAMA_TEXT_GENERATION"] = "llama_text_generation";
16
16
  AI_MODEL_STRATEGY["QWEN_TEXT_GENERATION"] = "qwen_text_generation";
17
+ AI_MODEL_STRATEGY["KIE_OPENAI_TEXT_GENERATION"] = "kie_openai_text_generation";
17
18
  AI_MODEL_STRATEGY["GROK_IMAGE_GENERATION"] = "grok_image_generation";
18
19
  AI_MODEL_STRATEGY["GEMINI_TEXT_GENERATION"] = "gemini_text_generation";
19
20
  AI_MODEL_STRATEGY["GEMINI_IMAGE_GENERATION"] = "gemini_image_generation";
@@ -19,4 +19,6 @@ var UNIFIED_MODEL_CONTENT_TYPE;
19
19
  UNIFIED_MODEL_CONTENT_TYPE["IMAGE_GENERATION"] = "IMAGE_GENERATION";
20
20
  UNIFIED_MODEL_CONTENT_TYPE["INTERIOR_DESIGN"] = "INTERIOR_DESIGN";
21
21
  UNIFIED_MODEL_CONTENT_TYPE["MARKETPLACE_CARD"] = "MARKETPLACE_CARD";
22
+ UNIFIED_MODEL_CONTENT_TYPE["SOLVING_EDU_TASK"] = "SOLVING_EDU_TASK";
23
+ UNIFIED_MODEL_CONTENT_TYPE["SPELL_CORRECTOR"] = "SPELL_CORRECTOR";
22
24
  })(UNIFIED_MODEL_CONTENT_TYPE || (exports.UNIFIED_MODEL_CONTENT_TYPE = UNIFIED_MODEL_CONTENT_TYPE = {}));
@@ -29,6 +29,12 @@ var SUBSCRIPTION_FEATURE_TYPE;
29
29
  SUBSCRIPTION_FEATURE_TYPE["IMAGE_EDITOR_MODEL_ACCESS"] = "image_editor_model_access";
30
30
  SUBSCRIPTION_FEATURE_TYPE["INTERIOR_DESIGN_QUOTA"] = "interior_design_quota";
31
31
  SUBSCRIPTION_FEATURE_TYPE["INTERIOR_DESIGN_MODEL_ACCESS"] = "interior_design_model_access";
32
+ SUBSCRIPTION_FEATURE_TYPE["SPELL_CORRECTOR_QUOTA"] = "spell_corrector_quota";
33
+ SUBSCRIPTION_FEATURE_TYPE["SPELL_CORRECTOR_MODEL_ACCESS"] = "spell_corrector_model_access";
34
+ SUBSCRIPTION_FEATURE_TYPE["PARAPHRASE_TYPE_ACCESS"] = "paraphrase_type_access";
35
+ SUBSCRIPTION_FEATURE_TYPE["MARKETPLACE_CARD_MODEL_ACCESS"] = "marketplace_card_model_access";
36
+ SUBSCRIPTION_FEATURE_TYPE["EDU_TASK_MODEL_ACCESS"] = "edu_task_model_access";
37
+ SUBSCRIPTION_FEATURE_TYPE["VIDEO_EDITOR_MODEL_ACCESS"] = "video_editor_model_access";
32
38
  })(SUBSCRIPTION_FEATURE_TYPE || (exports.SUBSCRIPTION_FEATURE_TYPE = SUBSCRIPTION_FEATURE_TYPE = {}));
33
39
  var SUBSCRIPTION_FEATURE_KIND;
34
40
  (function (SUBSCRIPTION_FEATURE_KIND) {
@@ -37,7 +43,6 @@ var SUBSCRIPTION_FEATURE_KIND;
37
43
  SUBSCRIPTION_FEATURE_KIND["IMAGE_GENERATION"] = "image_generation";
38
44
  SUBSCRIPTION_FEATURE_KIND["TTS"] = "tts";
39
45
  SUBSCRIPTION_FEATURE_KIND["STT"] = "stt";
40
- SUBSCRIPTION_FEATURE_KIND["PRESENTATIONS"] = "presentations";
41
46
  SUBSCRIPTION_FEATURE_KIND["VIDEO"] = "video";
42
47
  SUBSCRIPTION_FEATURE_KIND["PRESENTATION"] = "presentation";
43
48
  SUBSCRIPTION_FEATURE_KIND["BASE"] = "base";
@@ -45,4 +50,9 @@ var SUBSCRIPTION_FEATURE_KIND;
45
50
  SUBSCRIPTION_FEATURE_KIND["WRITER"] = "writer";
46
51
  SUBSCRIPTION_FEATURE_KIND["IMAGE_EDITOR"] = "image_editor";
47
52
  SUBSCRIPTION_FEATURE_KIND["INTERIOR_DESIGN"] = "interior_design";
53
+ SUBSCRIPTION_FEATURE_KIND["SPELL_CORRECTOR"] = "spell_corrector";
54
+ SUBSCRIPTION_FEATURE_KIND["PARAPHRASE"] = "paraphrase";
55
+ SUBSCRIPTION_FEATURE_KIND["MARKETPLACE_CARD"] = "marketplace_card";
56
+ SUBSCRIPTION_FEATURE_KIND["EDU_TASK"] = "edu_task";
57
+ SUBSCRIPTION_FEATURE_KIND["VIDEO_EDITOR"] = "video_editor";
48
58
  })(SUBSCRIPTION_FEATURE_KIND || (exports.SUBSCRIPTION_FEATURE_KIND = SUBSCRIPTION_FEATURE_KIND = {}));
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./video-editor-model-strategy.enum"), exports);
18
+ __exportStar(require("./video-editor-pricing-rule-type.enum"), exports);
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VIDEO_EDITOR_PRICING_RULE_TYPE = void 0;
4
+ var VIDEO_EDITOR_PRICING_RULE_TYPE;
5
+ (function (VIDEO_EDITOR_PRICING_RULE_TYPE) {
6
+ VIDEO_EDITOR_PRICING_RULE_TYPE["FLAT"] = "flat";
7
+ VIDEO_EDITOR_PRICING_RULE_TYPE["PER_SECOND"] = "per_second";
8
+ })(VIDEO_EDITOR_PRICING_RULE_TYPE || (exports.VIDEO_EDITOR_PRICING_RULE_TYPE = VIDEO_EDITOR_PRICING_RULE_TYPE = {}));
@@ -18,3 +18,4 @@ __exportStar(require("./singup-method.enum"), exports);
18
18
  __exportStar(require("./user-status"), exports);
19
19
  __exportStar(require("./user-sort-by.enum"), exports);
20
20
  __exportStar(require("./sort-order.enum"), exports);
21
+ __exportStar(require("./locale.enum"), exports);