@purpleschool/gptbot 0.7.42 → 0.7.43

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.
@@ -1846,4 +1846,24 @@ exports.ERRORS = {
1846
1846
  message: 'Не удалось получить список возможных понижений для подписок',
1847
1847
  httpCode: 500,
1848
1848
  },
1849
+ KIE_MIDJOURNEY_TASK_ERROR: {
1850
+ code: 'A379',
1851
+ message: 'Произошла ошибка при получении задачи Midjourney',
1852
+ httpCode: 500,
1853
+ },
1854
+ KIE_MIDJOURNEY_GENERATION_ERROR: {
1855
+ code: 'A380',
1856
+ message: 'Произошла ошибка при генерации видео от Midjourney',
1857
+ httpCode: 500,
1858
+ },
1859
+ KIE_MIDJOURNEY_NO_RESPONSE: {
1860
+ code: 'A380',
1861
+ message: 'Нет ответа от Midjourney, попробуйте позже',
1862
+ httpCode: 503,
1863
+ },
1864
+ KIE_CONTENT_POLICY_VIOLATION: {
1865
+ code: 'A381',
1866
+ message: 'Запрос был отклонен, т.к. может не соответствовать политике безопасности сервиса',
1867
+ httpCode: 400,
1868
+ },
1849
1869
  };
@@ -9,6 +9,7 @@ exports.KeyValueSchema = zod_1.z.object({
9
9
  value: zod_1.z.string(),
10
10
  namespace: zod_1.z.string(),
11
11
  description: zod_1.z.string().optional().nullable(),
12
+ order: zod_1.z.number(),
12
13
  createdAt: date_schema_1.DateSchema,
13
14
  updatedAt: date_schema_1.DateSchema,
14
15
  });
@@ -1857,4 +1857,24 @@ export const ERRORS = {
1857
1857
  message: 'Не удалось получить список возможных понижений для подписок',
1858
1858
  httpCode: 500,
1859
1859
  },
1860
+ KIE_MIDJOURNEY_TASK_ERROR: {
1861
+ code: 'A379',
1862
+ message: 'Произошла ошибка при получении задачи Midjourney',
1863
+ httpCode: 500,
1864
+ },
1865
+ KIE_MIDJOURNEY_GENERATION_ERROR: {
1866
+ code: 'A380',
1867
+ message: 'Произошла ошибка при генерации видео от Midjourney',
1868
+ httpCode: 500,
1869
+ },
1870
+ KIE_MIDJOURNEY_NO_RESPONSE: {
1871
+ code: 'A380',
1872
+ message: 'Нет ответа от Midjourney, попробуйте позже',
1873
+ httpCode: 503,
1874
+ },
1875
+ KIE_CONTENT_POLICY_VIOLATION: {
1876
+ code: 'A381',
1877
+ message: 'Запрос был отклонен, т.к. может не соответствовать политике безопасности сервиса',
1878
+ httpCode: 400,
1879
+ },
1860
1880
  };
@@ -7,6 +7,7 @@ export const KeyValueSchema = z.object({
7
7
  value: z.string(),
8
8
  namespace: z.string(),
9
9
  description: z.string().optional().nullable(),
10
+ order: z.number(),
10
11
  createdAt: DateSchema,
11
12
  updatedAt: DateSchema,
12
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.7.42",
3
+ "version": "0.7.43",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",