@purpleschool/gptbot 0.7.83 → 0.7.85

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.
@@ -2306,9 +2306,9 @@ exports.ERRORS = {
2306
2306
  message: 'Не удалось создать подписку у cloud payments',
2307
2307
  httpCode: 500,
2308
2308
  },
2309
- SUBSCRIPTION_ALREADY_DOWNGRADED_ERROR: {
2309
+ SUBSCRIPTION_DOWNGRADE_CANCEL_ERROR: {
2310
2310
  code: 'A472',
2311
- message: 'Подписка уже была понижена и ожидает отключения',
2312
- httpCode: 400,
2311
+ message: 'Ошибка при отмене запланированного даунгрейда',
2312
+ httpCode: 500,
2313
2313
  },
2314
2314
  };
@@ -6,4 +6,5 @@ var PRODUCT_STATUS;
6
6
  PRODUCT_STATUS["active"] = "active";
7
7
  PRODUCT_STATUS["canceled"] = "canceled";
8
8
  PRODUCT_STATUS["depleted"] = "depleted";
9
+ PRODUCT_STATUS["expired"] = "expired";
9
10
  })(PRODUCT_STATUS || (exports.PRODUCT_STATUS = PRODUCT_STATUS = {}));
@@ -12,4 +12,6 @@ var SUBSCRIPTION_STATUS;
12
12
  SUBSCRIPTION_STATUS["downgraded"] = "downgraded";
13
13
  SUBSCRIPTION_STATUS["awaiting_activation"] = "awaiting_activation";
14
14
  SUBSCRIPTION_STATUS["awaiting_downgrade"] = "awaiting_downgrade";
15
+ SUBSCRIPTION_STATUS["downgraded_sub_was_cancelled"] = "downgraded_sub_was_cancelled";
16
+ SUBSCRIPTION_STATUS["downgrade_cancelled"] = "downgrade_cancelled";
15
17
  })(SUBSCRIPTION_STATUS || (exports.SUBSCRIPTION_STATUS = SUBSCRIPTION_STATUS = {}));
@@ -17,6 +17,7 @@ exports.VideoEditorModelSchema = zod_1.z.object({
17
17
  icons: icon_variants_schema_1.IconVariantsSchema,
18
18
  maxPromptLength: zod_1.z.number(),
19
19
  maxInputVideoSizeBytes: zod_1.z.number(),
20
+ maxInputVideoDurationInSeconds: zod_1.z.number(),
20
21
  supportedFormats: zod_1.z.array(zod_1.z.string()),
21
22
  createdAt: zod_1.z.date(),
22
23
  updatedAt: zod_1.z.date(),
@@ -2314,9 +2314,9 @@ export const ERRORS = {
2314
2314
  message: 'Не удалось создать подписку у cloud payments',
2315
2315
  httpCode: 500,
2316
2316
  },
2317
- SUBSCRIPTION_ALREADY_DOWNGRADED_ERROR: {
2317
+ SUBSCRIPTION_DOWNGRADE_CANCEL_ERROR: {
2318
2318
  code: 'A472',
2319
- message: 'Подписка уже была понижена и ожидает отключения',
2320
- httpCode: 400,
2319
+ message: 'Ошибка при отмене запланированного даунгрейда',
2320
+ httpCode: 500,
2321
2321
  },
2322
2322
  };
@@ -2,4 +2,5 @@ export enum PRODUCT_STATUS {
2
2
  active = 'active',
3
3
  canceled = 'canceled',
4
4
  depleted = 'depleted',
5
+ expired = 'expired',
5
6
  }
@@ -8,4 +8,6 @@ export enum SUBSCRIPTION_STATUS {
8
8
  downgraded = 'downgraded',
9
9
  awaiting_activation = 'awaiting_activation',
10
10
  awaiting_downgrade = 'awaiting_downgrade',
11
+ downgraded_sub_was_cancelled = 'downgraded_sub_was_cancelled',
12
+ downgrade_cancelled = 'downgrade_cancelled',
11
13
  }
@@ -16,6 +16,7 @@ export const VideoEditorModelSchema = z.object({
16
16
  icons: IconVariantsSchema,
17
17
  maxPromptLength: z.number(),
18
18
  maxInputVideoSizeBytes: z.number(),
19
+ maxInputVideoDurationInSeconds: z.number(),
19
20
  supportedFormats: z.array(z.string()),
20
21
  createdAt: z.date(),
21
22
  updatedAt: z.date(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.7.83",
3
+ "version": "0.7.85",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",