@purpleschool/rugpt-lib-common 0.0.99 → 0.0.100

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.
@@ -71,6 +71,63 @@ export declare const ERRORS: {
71
71
  readonly httpCode: 500;
72
72
  };
73
73
  };
74
+ MOTION_CONTROL: {
75
+ NO_CHARACTER_IN_VIDEO: {
76
+ code: string;
77
+ message: string;
78
+ httpCode: number;
79
+ };
80
+ MODEL_NOT_FOUND: {
81
+ code: string;
82
+ message: string;
83
+ httpCode: number;
84
+ };
85
+ MODEL_UNAVAILABLE: {
86
+ code: string;
87
+ message: string;
88
+ httpCode: number;
89
+ };
90
+ INVALID_SOURCE: {
91
+ code: string;
92
+ message: string;
93
+ httpCode: number;
94
+ };
95
+ METADATA_REQUIRED: {
96
+ code: string;
97
+ message: string;
98
+ httpCode: number;
99
+ };
100
+ INVALID_DURATION: {
101
+ code: string;
102
+ message: string;
103
+ httpCode: number;
104
+ };
105
+ INVALID_GEOMETRY: {
106
+ code: string;
107
+ message: string;
108
+ httpCode: number;
109
+ };
110
+ INVALID_PARAMS: {
111
+ code: string;
112
+ message: string;
113
+ httpCode: number;
114
+ };
115
+ JOB_NOT_FOUND: {
116
+ code: string;
117
+ message: string;
118
+ httpCode: number;
119
+ };
120
+ GENERATION_FAILED: {
121
+ code: string;
122
+ message: string;
123
+ httpCode: number;
124
+ };
125
+ MOCK_FORBIDDEN: {
126
+ code: string;
127
+ message: string;
128
+ httpCode: number;
129
+ };
130
+ };
74
131
  APP_LOGIN: {
75
132
  ISSUE_RATE_LIMIT: {
76
133
  code: string;
@@ -74,6 +74,63 @@ exports.ERRORS = {
74
74
  httpCode: 500,
75
75
  },
76
76
  },
77
+ MOTION_CONTROL: {
78
+ NO_CHARACTER_IN_VIDEO: {
79
+ code: "MOTION_CONTROL.NO_CHARACTER_IN_VIDEO",
80
+ message: "На исходном фото или видео не обнаружен персонаж. Убедитесь, что персонаж хорошо виден и попробуйте снова",
81
+ httpCode: 400,
82
+ },
83
+ MODEL_NOT_FOUND: {
84
+ code: "MOTION_CONTROL.MODEL_NOT_FOUND",
85
+ message: "Модель Motion Control не найдена",
86
+ httpCode: 404,
87
+ },
88
+ MODEL_UNAVAILABLE: {
89
+ code: "MOTION_CONTROL.MODEL_UNAVAILABLE",
90
+ message: "Модель Motion Control недоступна",
91
+ httpCode: 403,
92
+ },
93
+ INVALID_SOURCE: {
94
+ code: "MOTION_CONTROL.INVALID_SOURCE",
95
+ message: "Недопустимый файл Motion Control",
96
+ httpCode: 400,
97
+ },
98
+ METADATA_REQUIRED: {
99
+ code: "MOTION_CONTROL.METADATA_REQUIRED",
100
+ message: "Не удалось определить параметры файла",
101
+ httpCode: 400,
102
+ },
103
+ INVALID_DURATION: {
104
+ code: "MOTION_CONTROL.INVALID_DURATION",
105
+ message: "Недопустимая длительность видео",
106
+ httpCode: 400,
107
+ },
108
+ INVALID_GEOMETRY: {
109
+ code: "MOTION_CONTROL.INVALID_GEOMETRY",
110
+ message: "Недопустимые размеры файла",
111
+ httpCode: 400,
112
+ },
113
+ INVALID_PARAMS: {
114
+ code: "MOTION_CONTROL.INVALID_PARAMS",
115
+ message: "Недопустимые параметры Motion Control",
116
+ httpCode: 400,
117
+ },
118
+ JOB_NOT_FOUND: {
119
+ code: "MOTION_CONTROL.JOB_NOT_FOUND",
120
+ message: "Задание Motion Control не найдено",
121
+ httpCode: 404,
122
+ },
123
+ GENERATION_FAILED: {
124
+ code: "MOTION_CONTROL.GENERATION_FAILED",
125
+ message: "Не удалось создать видео Motion Control",
126
+ httpCode: 500,
127
+ },
128
+ MOCK_FORBIDDEN: {
129
+ code: "MOTION_CONTROL.MOCK_FORBIDDEN",
130
+ message: "Тестовый режим недоступен",
131
+ httpCode: 403,
132
+ },
133
+ },
77
134
  APP_LOGIN: {
78
135
  ISSUE_RATE_LIMIT: {
79
136
  code: "APP_LOGIN_ISSUE_RATE_LIMIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/rugpt-lib-common",
3
- "version": "0.0.99",
3
+ "version": "0.0.100",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",