@purpleschool/gptbot-tools 0.4.12-stage-2 → 0.4.13-stage-2
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,3 +1,4 @@
|
|
|
1
|
+
import { JOB_SCOPE } from '../../common';
|
|
1
2
|
import { STATISTICS_CALL_ORIGIN } from '@purpleschool/rugpt-lib-common';
|
|
2
3
|
import { TOOL_TYPE } from '../enums';
|
|
3
4
|
import { z } from 'zod';
|
|
@@ -13,6 +14,7 @@ export declare namespace ToolJobCompleteEvent {
|
|
|
13
14
|
createdAt: z.ZodDate;
|
|
14
15
|
updatedAt: z.ZodDate;
|
|
15
16
|
toolType: z.ZodEnum<typeof TOOL_TYPE>;
|
|
17
|
+
scope: z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>;
|
|
16
18
|
callOrigin: z.ZodOptional<z.ZodEnum<typeof STATISTICS_CALL_ORIGIN>>;
|
|
17
19
|
}, z.core.$strip>;
|
|
18
20
|
}, z.core.$strip>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ToolJobCompleteEvent = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
4
5
|
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
5
6
|
const enums_1 = require("../enums");
|
|
6
7
|
const models_1 = require("../models");
|
|
@@ -10,6 +11,7 @@ var ToolJobCompleteEvent;
|
|
|
10
11
|
ToolJobCompleteEvent.PayloadSchema = zod_1.z.object({
|
|
11
12
|
job: models_1.ToolJobSchema.extend({
|
|
12
13
|
toolType: zod_1.z.enum(enums_1.TOOL_TYPE),
|
|
14
|
+
scope: zod_1.z.enum(common_1.JOB_SCOPE).optional(),
|
|
13
15
|
callOrigin: zod_1.z.enum(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN).optional(),
|
|
14
16
|
}),
|
|
15
17
|
});
|