@purpleschool/rugpt-lib-common 0.0.94 → 0.0.96

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.
@@ -1,4 +1,31 @@
1
1
  export declare const ERRORS: {
2
+ APP_LOGIN: {
3
+ ISSUE_RATE_LIMIT: {
4
+ code: string;
5
+ message: string;
6
+ httpCode: number;
7
+ };
8
+ INVALID_CODE: {
9
+ code: string;
10
+ message: string;
11
+ httpCode: number;
12
+ };
13
+ EXPIRED_CODE: {
14
+ code: string;
15
+ message: string;
16
+ httpCode: number;
17
+ };
18
+ ATTEMPTS_EXHAUSTED: {
19
+ code: string;
20
+ message: string;
21
+ httpCode: number;
22
+ };
23
+ ACCOUNT_DELETED: {
24
+ code: string;
25
+ message: string;
26
+ httpCode: number;
27
+ };
28
+ };
2
29
  TOKEN_RESERVATION: {
3
30
  CREATE_ERROR: {
4
31
  code: string;
@@ -2920,6 +2947,11 @@ export declare const ERRORS: {
2920
2947
  httpCode: number;
2921
2948
  message: string;
2922
2949
  };
2950
+ RETRY_UNAVAILABLE_ERROR: {
2951
+ code: string;
2952
+ httpCode: number;
2953
+ message: string;
2954
+ };
2923
2955
  };
2924
2956
  PHOTO_SESSION_JOB: {
2925
2957
  NOT_FOUND: {
@@ -2,6 +2,33 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ERRORS = void 0;
4
4
  exports.ERRORS = {
5
+ APP_LOGIN: {
6
+ ISSUE_RATE_LIMIT: {
7
+ code: "APP_LOGIN_ISSUE_RATE_LIMIT",
8
+ message: "Коды нельзя перевыпускать так часто. Попробуйте через минуту",
9
+ httpCode: 429,
10
+ },
11
+ INVALID_CODE: {
12
+ code: "APP_LOGIN_INVALID_CODE",
13
+ message: "Неверный код",
14
+ httpCode: 400,
15
+ },
16
+ EXPIRED_CODE: {
17
+ code: "APP_LOGIN_EXPIRED_CODE",
18
+ message: "Срок действия кода истёк",
19
+ httpCode: 400,
20
+ },
21
+ ATTEMPTS_EXHAUSTED: {
22
+ code: "APP_LOGIN_ATTEMPTS_EXHAUSTED",
23
+ message: "Попытки ввода кода исчерпаны",
24
+ httpCode: 400,
25
+ },
26
+ ACCOUNT_DELETED: {
27
+ code: "APP_LOGIN_ACCOUNT_DELETED",
28
+ message: "Аккаунт удалён",
29
+ httpCode: 403,
30
+ },
31
+ },
5
32
  TOKEN_RESERVATION: {
6
33
  CREATE_ERROR: {
7
34
  code: "TOKEN_RESERVATION.CREATE_ERROR",
@@ -2923,6 +2950,11 @@ exports.ERRORS = {
2923
2950
  httpCode: 400,
2924
2951
  message: "referenceIds содержит невалидные UUID",
2925
2952
  },
2953
+ RETRY_UNAVAILABLE_ERROR: {
2954
+ code: "PHOTO_SESSION.RETRY_UNAVAILABLE_ERROR",
2955
+ httpCode: 400,
2956
+ message: "Повторная генерация недоступна: все кадры фотосессии завершились ошибкой. Запустите фотосессию заново.",
2957
+ },
2926
2958
  },
2927
2959
  PHOTO_SESSION_JOB: {
2928
2960
  NOT_FOUND: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/rugpt-lib-common",
3
- "version": "0.0.94",
3
+ "version": "0.0.96",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",