@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.
- package/api/controllers/http/ui-notification.ts +1 -0
- package/build/api/controllers/http/ui-notification.js +1 -0
- package/build/commands/chat/get-input-limits.command.js +2 -1
- package/build/commands/ui-notification/cancel-ui-notification.command.js +15 -0
- package/build/commands/ui-notification/index.js +1 -0
- package/build/constants/ui-notification/enums/ui-notification-status.enum.js +1 -0
- package/commands/chat/get-input-limits.command.ts +2 -1
- package/commands/ui-notification/cancel-ui-notification.command.ts +16 -0
- package/commands/ui-notification/index.ts +1 -0
- package/constants/ui-notification/enums/ui-notification-status.enum.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
+
}
|