@purpleschool/gptbot 0.5.67 → 0.5.69

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.
@@ -4,4 +4,5 @@ export const UI_NOTIFICATION_PUBLIC_CONTROLLER = 'public/ui-notification' as con
4
4
  export const UI_NOTIFICATION_ROUTES = {
5
5
  GET_BY_PAGE: 'by/page',
6
6
  COMPLETE: 'complete/:uuid',
7
+ CANCEL: 'cancel/:uuid',
7
8
  } as const;
@@ -6,4 +6,5 @@ exports.UI_NOTIFICATION_PUBLIC_CONTROLLER = 'public/ui-notification';
6
6
  exports.UI_NOTIFICATION_ROUTES = {
7
7
  GET_BY_PAGE: 'by/page',
8
8
  COMPLETE: 'complete/:uuid',
9
+ CANCEL: 'cancel/:uuid',
9
10
  };
@@ -6,11 +6,12 @@ var GetInputLimitsCommand;
6
6
  (function (GetInputLimitsCommand) {
7
7
  GetInputLimitsCommand.ResponseSchema = zod_1.z.object({
8
8
  data: zod_1.z.object({
9
- maxInputLength: zod_1.z.number(),
9
+ maxAvailableInputLength: zod_1.z.number(),
10
10
  models: zod_1.z.array(zod_1.z.object({
11
11
  uuid: zod_1.z.string().uuid(),
12
12
  title: zod_1.z.string(),
13
13
  maxInputLength: zod_1.z.number(),
14
+ maxAvailableInputLength: zod_1.z.number(),
14
15
  })),
15
16
  }),
16
17
  });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelUiNotificationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var CancelUiNotificationCommand;
6
+ (function (CancelUiNotificationCommand) {
7
+ CancelUiNotificationCommand.RequestParamsSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ CancelUiNotificationCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.object({
12
+ isCancelled: zod_1.z.boolean(),
13
+ }),
14
+ });
15
+ })(CancelUiNotificationCommand || (exports.CancelUiNotificationCommand = CancelUiNotificationCommand = {}));
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./find-active-ui-notifications-by-page-and-user.command"), exports);
18
18
  __exportStar(require("./complete-ui-notification.command"), exports);
19
+ __exportStar(require("./cancel-ui-notification.command"), exports);
@@ -6,4 +6,5 @@ var UI_NOTIFICATION_STATUS;
6
6
  UI_NOTIFICATION_STATUS["ACTIVE"] = "ACTIVE";
7
7
  UI_NOTIFICATION_STATUS["EXPIRED"] = "EXPIRED";
8
8
  UI_NOTIFICATION_STATUS["CLAIMED"] = "CLAIMED";
9
+ UI_NOTIFICATION_STATUS["CANCELLED"] = "CANCELLED";
9
10
  })(UI_NOTIFICATION_STATUS || (exports.UI_NOTIFICATION_STATUS = UI_NOTIFICATION_STATUS = {}));
@@ -3,12 +3,13 @@ import { z } from 'zod';
3
3
  export namespace GetInputLimitsCommand {
4
4
  export const ResponseSchema = z.object({
5
5
  data: z.object({
6
- maxInputLength: z.number(),
6
+ maxAvailableInputLength: z.number(),
7
7
  models: z.array(
8
8
  z.object({
9
9
  uuid: z.string().uuid(),
10
10
  title: z.string(),
11
11
  maxInputLength: z.number(),
12
+ maxAvailableInputLength: z.number(),
12
13
  }),
13
14
  ),
14
15
  }),
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace CancelUiNotificationCommand {
4
+ export const RequestParamsSchema = z.object({
5
+ uuid: z.string().uuid(),
6
+ });
7
+
8
+ export type Request = z.infer<typeof RequestParamsSchema>;
9
+
10
+ export const ResponseSchema = z.object({
11
+ data: z.object({
12
+ isCancelled: z.boolean(),
13
+ }),
14
+ });
15
+ export type Response = z.infer<typeof ResponseSchema>;
16
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './find-active-ui-notifications-by-page-and-user.command';
2
2
  export * from './complete-ui-notification.command';
3
+ export * from './cancel-ui-notification.command';
@@ -2,4 +2,5 @@ export enum UI_NOTIFICATION_STATUS {
2
2
  ACTIVE = 'ACTIVE',
3
3
  EXPIRED = 'EXPIRED',
4
4
  CLAIMED = 'CLAIMED',
5
+ CANCELLED = 'CANCELLED',
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.5.67",
3
+ "version": "0.5.69",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",