mavenagi 1.2.4 → 1.2.5
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/Client.js +2 -2
- package/README.md +390 -0
- package/api/resources/actions/client/Client.d.ts +11 -1
- package/api/resources/actions/client/Client.js +11 -1
- package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
- package/api/resources/agents/client/Client.d.ts +2 -2
- package/api/resources/agents/client/Client.js +5 -5
- package/api/resources/agents/client/index.d.ts +1 -0
- package/api/resources/agents/client/index.js +15 -0
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
- package/api/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/agents/client/requests/index.js +2 -0
- package/api/resources/agents/types/Agent.d.ts +8 -0
- package/api/resources/agents/types/AgentPrompting.d.ts +23 -0
- package/api/resources/agents/types/index.d.ts +1 -1
- package/api/resources/agents/types/index.js +1 -1
- package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
- package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
- package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
- package/api/resources/commons/types/ActionResponse.d.ts +7 -0
- package/api/resources/commons/types/SimulationContext.d.ts +6 -0
- package/api/resources/conversation/client/Client.d.ts +18 -1
- package/api/resources/conversation/client/Client.js +91 -1
- package/api/resources/events/client/Client.d.ts +10 -0
- package/api/resources/events/client/Client.js +83 -0
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/knowledge/client/Client.d.ts +32 -1
- package/api/resources/knowledge/client/Client.js +104 -1
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
- package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
- package/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
- package/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
- package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
- package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
- package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
- package/api/resources/knowledge/types/index.d.ts +1 -0
- package/api/resources/knowledge/types/index.js +1 -0
- package/dist/Client.js +2 -2
- package/dist/api/resources/actions/client/Client.d.ts +11 -1
- package/dist/api/resources/actions/client/Client.js +11 -1
- package/dist/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
- package/dist/api/resources/agents/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/client/Client.js +5 -5
- package/dist/api/resources/agents/client/index.d.ts +1 -0
- package/dist/api/resources/agents/client/index.js +15 -0
- package/dist/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
- package/dist/api/resources/agents/client/requests/AgentPatchRequest.js +3 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/client/requests/index.js +2 -0
- package/dist/api/resources/agents/types/Agent.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentPrompting.d.ts +23 -0
- package/dist/api/resources/agents/types/AgentPrompting.js +3 -0
- package/dist/api/resources/agents/types/index.d.ts +1 -1
- package/dist/api/resources/agents/types/index.js +1 -1
- package/dist/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
- package/dist/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
- package/dist/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
- package/dist/api/resources/commons/types/ActionResponse.d.ts +7 -0
- package/dist/api/resources/commons/types/SimulationContext.d.ts +6 -0
- package/dist/api/resources/conversation/client/Client.d.ts +18 -1
- package/dist/api/resources/conversation/client/Client.js +91 -1
- package/dist/api/resources/events/client/Client.d.ts +10 -0
- package/dist/api/resources/events/client/Client.js +83 -0
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/knowledge/client/Client.d.ts +32 -1
- package/dist/api/resources/knowledge/client/Client.js +104 -1
- package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
- package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
- package/dist/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
- package/dist/api/resources/knowledge/types/index.d.ts +1 -0
- package/dist/api/resources/knowledge/types/index.js +1 -0
- package/dist/serialization/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/index.js +4 -0
- package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
- package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
- package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/index.js +5 -0
- package/dist/serialization/resources/agents/types/Agent.d.ts +3 -0
- package/dist/serialization/resources/agents/types/Agent.js +3 -0
- package/dist/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
- package/dist/serialization/resources/agents/types/AgentPrompting.js +46 -0
- package/dist/serialization/resources/agents/types/index.d.ts +1 -1
- package/dist/serialization/resources/agents/types/index.js +1 -1
- package/dist/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
- package/dist/serialization/resources/commons/types/SimulationContext.js +1 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
- package/dist/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +237 -4
- package/serialization/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/agents/client/index.js +4 -0
- package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
- package/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
- package/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/client/requests/index.js +5 -0
- package/serialization/resources/agents/types/Agent.d.ts +3 -0
- package/serialization/resources/agents/types/Agent.js +3 -0
- package/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
- package/serialization/resources/agents/types/AgentPrompting.js +46 -0
- package/serialization/resources/agents/types/index.d.ts +1 -1
- package/serialization/resources/agents/types/index.js +1 -1
- package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
- package/serialization/resources/commons/types/SimulationContext.js +1 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
- package/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
- package/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/serialization/resources/knowledge/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
- package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
- package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
- package/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
- /package/api/resources/agents/{types → client/requests}/AgentPatchRequest.js +0 -0
- /package/{dist/api/resources/agents/types/AgentPatchRequest.js → api/resources/agents/types/AgentPrompting.js} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.AgentPrompting = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const LlmPersona_1 = require("../../commons/types/LlmPersona");
|
|
40
|
+
exports.AgentPrompting = core.serialization.object({
|
|
41
|
+
persona: LlmPersona_1.LlmPersona,
|
|
42
|
+
additionalPromptText: core.serialization.string().optional(),
|
|
43
|
+
categoryGenerationPromptText: core.serialization.string().optional(),
|
|
44
|
+
contentSafetyViolationResponsePromptText: core.serialization.string().optional(),
|
|
45
|
+
rejectQuestionsWithoutKnowledge: core.serialization.boolean(),
|
|
46
|
+
});
|
|
@@ -2,8 +2,8 @@ export * from "./PiiCategory";
|
|
|
2
2
|
export * from "./AgentEnvironment";
|
|
3
3
|
export * from "./Agent";
|
|
4
4
|
export * from "./CreateAgentRequest";
|
|
5
|
-
export * from "./AgentPatchRequest";
|
|
6
5
|
export * from "./AgentsSearchRequest";
|
|
7
6
|
export * from "./AgentField";
|
|
8
7
|
export * from "./AgentFilter";
|
|
9
8
|
export * from "./AgentsSearchResponse";
|
|
9
|
+
export * from "./AgentPrompting";
|
|
@@ -18,8 +18,8 @@ __exportStar(require("./PiiCategory"), exports);
|
|
|
18
18
|
__exportStar(require("./AgentEnvironment"), exports);
|
|
19
19
|
__exportStar(require("./Agent"), exports);
|
|
20
20
|
__exportStar(require("./CreateAgentRequest"), exports);
|
|
21
|
-
__exportStar(require("./AgentPatchRequest"), exports);
|
|
22
21
|
__exportStar(require("./AgentsSearchRequest"), exports);
|
|
23
22
|
__exportStar(require("./AgentField"), exports);
|
|
24
23
|
__exportStar(require("./AgentFilter"), exports);
|
|
25
24
|
__exportStar(require("./AgentsSearchResponse"), exports);
|
|
25
|
+
__exportStar(require("./AgentPrompting"), exports);
|
|
@@ -6,6 +6,7 @@ import { EntityId } from "./EntityId";
|
|
|
6
6
|
export declare const SimulationContext: core.serialization.ObjectSchema<serializers.SimulationContext.Raw, MavenAGI.SimulationContext>;
|
|
7
7
|
export declare namespace SimulationContext {
|
|
8
8
|
interface Raw {
|
|
9
|
+
additionalPromptText?: string | null;
|
|
9
10
|
persona?: LlmPersona.Raw | null;
|
|
10
11
|
availableKnowledgeBases?: EntityId.Raw[] | null;
|
|
11
12
|
}
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core"));
|
|
|
39
39
|
const LlmPersona_1 = require("./LlmPersona");
|
|
40
40
|
const EntityId_1 = require("./EntityId");
|
|
41
41
|
exports.SimulationContext = core.serialization.object({
|
|
42
|
+
additionalPromptText: core.serialization.string().optional(),
|
|
42
43
|
persona: LlmPersona_1.LlmPersona.optional(),
|
|
43
44
|
availableKnowledgeBases: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
44
45
|
});
|
|
@@ -68,4 +68,5 @@ __exportStar(require("./triggers/types"), exports);
|
|
|
68
68
|
exports.users = __importStar(require("./users"));
|
|
69
69
|
__exportStar(require("./users/types"), exports);
|
|
70
70
|
__exportStar(require("./actions/client/requests"), exports);
|
|
71
|
+
__exportStar(require("./agents/client/requests"), exports);
|
|
71
72
|
__exportStar(require("./knowledge/client/requests"), exports);
|
|
@@ -4,7 +4,6 @@ import * as core from "../../../../core";
|
|
|
4
4
|
export declare const BaseKnowledgeDocument: core.serialization.ObjectSchema<serializers.BaseKnowledgeDocument.Raw, MavenAGI.BaseKnowledgeDocument>;
|
|
5
5
|
export declare namespace BaseKnowledgeDocument {
|
|
6
6
|
interface Raw {
|
|
7
|
-
title: string;
|
|
8
7
|
url?: string | null;
|
|
9
8
|
language?: string | null;
|
|
10
9
|
createdAt?: string | null;
|
|
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.BaseKnowledgeDocument = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
exports.BaseKnowledgeDocument = core.serialization.object({
|
|
40
|
-
title: core.serialization.string(),
|
|
41
40
|
url: core.serialization.string().optional(),
|
|
42
41
|
language: core.serialization.string().optional(),
|
|
43
42
|
createdAt: core.serialization.date().optional(),
|
|
@@ -3,5 +3,5 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
3
3
|
import * as core from "../../../../core";
|
|
4
4
|
export declare const KnowledgeBaseField: core.serialization.Schema<serializers.KnowledgeBaseField.Raw, MavenAGI.KnowledgeBaseField>;
|
|
5
5
|
export declare namespace KnowledgeBaseField {
|
|
6
|
-
type Raw = "Title" | "UpdatedAt";
|
|
6
|
+
type Raw = "Title" | "CreatedAt" | "UpdatedAt";
|
|
7
7
|
}
|
|
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.KnowledgeBaseField = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
exports.KnowledgeBaseField = core.serialization.enum_(["Title", "UpdatedAt"]);
|
|
39
|
+
exports.KnowledgeBaseField = core.serialization.enum_(["Title", "CreatedAt", "UpdatedAt"]);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as serializers from "../../../index";
|
|
2
2
|
import * as MavenAGI from "../../../../api/index";
|
|
3
3
|
import * as core from "../../../../core";
|
|
4
|
+
import { KnowledgeBaseVersionStatus } from "./KnowledgeBaseVersionStatus";
|
|
5
|
+
import { LlmInclusionStatus } from "../../commons/types/LlmInclusionStatus";
|
|
4
6
|
export declare const KnowledgeBaseFilter: core.serialization.ObjectSchema<serializers.KnowledgeBaseFilter.Raw, MavenAGI.KnowledgeBaseFilter>;
|
|
5
7
|
export declare namespace KnowledgeBaseFilter {
|
|
6
8
|
interface Raw {
|
|
@@ -9,5 +11,7 @@ export declare namespace KnowledgeBaseFilter {
|
|
|
9
11
|
createdAfter?: string | null;
|
|
10
12
|
createdBefore?: string | null;
|
|
11
13
|
appIds?: string[] | null;
|
|
14
|
+
mostRecentVersionStatus?: KnowledgeBaseVersionStatus.Raw[] | null;
|
|
15
|
+
llmInclusionStatus?: LlmInclusionStatus.Raw | null;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -36,10 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.KnowledgeBaseFilter = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const KnowledgeBaseVersionStatus_1 = require("./KnowledgeBaseVersionStatus");
|
|
40
|
+
const LlmInclusionStatus_1 = require("../../commons/types/LlmInclusionStatus");
|
|
39
41
|
exports.KnowledgeBaseFilter = core.serialization.object({
|
|
40
42
|
search: core.serialization.string().optional(),
|
|
41
43
|
title: core.serialization.string().optional(),
|
|
42
44
|
createdAfter: core.serialization.date().optional(),
|
|
43
45
|
createdBefore: core.serialization.date().optional(),
|
|
44
46
|
appIds: core.serialization.list(core.serialization.string()).optional(),
|
|
47
|
+
mostRecentVersionStatus: core.serialization.list(KnowledgeBaseVersionStatus_1.KnowledgeBaseVersionStatus).optional(),
|
|
48
|
+
llmInclusionStatus: LlmInclusionStatus_1.LlmInclusionStatus.optional(),
|
|
45
49
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as serializers from "../../../index";
|
|
2
|
+
import * as MavenAGI from "../../../../api/index";
|
|
3
|
+
import * as core from "../../../../core";
|
|
4
|
+
export declare const KnowledgeBaseRefreshRequest: core.serialization.ObjectSchema<serializers.KnowledgeBaseRefreshRequest.Raw, MavenAGI.KnowledgeBaseRefreshRequest>;
|
|
5
|
+
export declare namespace KnowledgeBaseRefreshRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
appId?: string | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -34,13 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.KnowledgeBaseRefreshRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
exports.AgentPatchRequest = core.serialization.object({
|
|
42
|
-
name: core.serialization.string().optional(),
|
|
43
|
-
environment: AgentEnvironment_1.AgentEnvironment.optional(),
|
|
44
|
-
defaultTimezone: core.serialization.string().optional(),
|
|
45
|
-
enabledPiiCategories: core.serialization.set(PiiCategory_1.PiiCategory).optional(),
|
|
39
|
+
exports.KnowledgeBaseRefreshRequest = core.serialization.object({
|
|
40
|
+
appId: core.serialization.string().optional(),
|
|
46
41
|
});
|
|
@@ -2,6 +2,7 @@ import * as serializers from "../../../index";
|
|
|
2
2
|
import * as MavenAGI from "../../../../api/index";
|
|
3
3
|
import * as core from "../../../../core";
|
|
4
4
|
import { EntityId } from "../../commons/types/EntityId";
|
|
5
|
+
import { KnowledgeBaseVersionStatus } from "./KnowledgeBaseVersionStatus";
|
|
5
6
|
import { KnowledgeBaseType } from "./KnowledgeBaseType";
|
|
6
7
|
import { LlmInclusionStatus } from "../../commons/types/LlmInclusionStatus";
|
|
7
8
|
import { KnowledgeBaseRefreshFrequency } from "./KnowledgeBaseRefreshFrequency";
|
|
@@ -9,8 +10,11 @@ import { KnowledgeBaseProperties } from "./KnowledgeBaseProperties";
|
|
|
9
10
|
export declare const KnowledgeBaseResponse: core.serialization.ObjectSchema<serializers.KnowledgeBaseResponse.Raw, MavenAGI.KnowledgeBaseResponse>;
|
|
10
11
|
export declare namespace KnowledgeBaseResponse {
|
|
11
12
|
interface Raw extends KnowledgeBaseProperties.Raw {
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
12
15
|
knowledgeBaseId: EntityId.Raw;
|
|
13
16
|
activeVersionId?: EntityId.Raw | null;
|
|
17
|
+
mostRecentVersionStatus: KnowledgeBaseVersionStatus.Raw;
|
|
14
18
|
type: KnowledgeBaseType.Raw;
|
|
15
19
|
metadata: Record<string, string>;
|
|
16
20
|
tags: string[];
|
|
@@ -37,14 +37,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.KnowledgeBaseResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const EntityId_1 = require("../../commons/types/EntityId");
|
|
40
|
+
const KnowledgeBaseVersionStatus_1 = require("./KnowledgeBaseVersionStatus");
|
|
40
41
|
const KnowledgeBaseType_1 = require("./KnowledgeBaseType");
|
|
41
42
|
const LlmInclusionStatus_1 = require("../../commons/types/LlmInclusionStatus");
|
|
42
43
|
const KnowledgeBaseRefreshFrequency_1 = require("./KnowledgeBaseRefreshFrequency");
|
|
43
44
|
const KnowledgeBaseProperties_1 = require("./KnowledgeBaseProperties");
|
|
44
45
|
exports.KnowledgeBaseResponse = core.serialization
|
|
45
46
|
.object({
|
|
47
|
+
createdAt: core.serialization.date(),
|
|
48
|
+
updatedAt: core.serialization.date(),
|
|
46
49
|
knowledgeBaseId: EntityId_1.EntityId,
|
|
47
50
|
activeVersionId: EntityId_1.EntityId.optional(),
|
|
51
|
+
mostRecentVersionStatus: KnowledgeBaseVersionStatus_1.KnowledgeBaseVersionStatus,
|
|
48
52
|
type: KnowledgeBaseType_1.KnowledgeBaseType,
|
|
49
53
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
50
54
|
tags: core.serialization.set(core.serialization.string()),
|
|
@@ -3,5 +3,5 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
3
3
|
import * as core from "../../../../core";
|
|
4
4
|
export declare const KnowledgeBaseType: core.serialization.Schema<serializers.KnowledgeBaseType.Raw, MavenAGI.KnowledgeBaseType>;
|
|
5
5
|
export declare namespace KnowledgeBaseType {
|
|
6
|
-
type Raw = "API";
|
|
6
|
+
type Raw = "API" | "URL" | "MANUAL" | "RSS" | "LEGACY";
|
|
7
7
|
}
|
|
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.KnowledgeBaseType = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
exports.KnowledgeBaseType = core.serialization.enum_(["API"]);
|
|
39
|
+
exports.KnowledgeBaseType = core.serialization.enum_(["API", "URL", "MANUAL", "RSS", "LEGACY"]);
|
|
@@ -11,6 +11,7 @@ export declare namespace KnowledgeDocumentRequest {
|
|
|
11
11
|
knowledgeDocumentId: EntityIdBase.Raw;
|
|
12
12
|
versionId?: EntityIdWithoutAgent.Raw | null;
|
|
13
13
|
contentType: KnowledgeDocumentContentType.Raw;
|
|
14
|
+
title: string;
|
|
14
15
|
content: string;
|
|
15
16
|
metadata?: Record<string, string> | null;
|
|
16
17
|
}
|
|
@@ -45,6 +45,7 @@ exports.KnowledgeDocumentRequest = core.serialization
|
|
|
45
45
|
knowledgeDocumentId: EntityIdBase_1.EntityIdBase,
|
|
46
46
|
versionId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
47
47
|
contentType: KnowledgeDocumentContentType_1.KnowledgeDocumentContentType,
|
|
48
|
+
title: core.serialization.string(),
|
|
48
49
|
content: core.serialization.string(),
|
|
49
50
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
50
51
|
})
|
|
@@ -42,5 +42,6 @@ exports.KnowledgeDocumentSearchResponse = core.serialization
|
|
|
42
42
|
.object({
|
|
43
43
|
knowledgeDocumentId: EntityId_1.EntityId,
|
|
44
44
|
knowledgeBaseVersionId: EntityId_1.EntityId.optional(),
|
|
45
|
+
title: core.serialization.string().optional(),
|
|
45
46
|
})
|
|
46
47
|
.extend(BaseKnowledgeDocument_1.BaseKnowledgeDocument);
|
|
@@ -40,3 +40,4 @@ __exportStar(require("./KnowledgeDocumentSearchRequest"), exports);
|
|
|
40
40
|
__exportStar(require("./KnowledgeDocumentSearchResponse"), exports);
|
|
41
41
|
__exportStar(require("./KnowledgeDocumentsResponse"), exports);
|
|
42
42
|
__exportStar(require("./KnowledgeBaseVersionsListResponse"), exports);
|
|
43
|
+
__exportStar(require("./KnowledgeBaseRefreshRequest"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.5";
|
package/version.js
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as MavenAGI from "../../../index";
|
|
2
|
-
export interface AgentPatchRequest {
|
|
3
|
-
/** The name of the agent. */
|
|
4
|
-
name?: string;
|
|
5
|
-
/** The environment of the agent. */
|
|
6
|
-
environment?: MavenAGI.AgentEnvironment;
|
|
7
|
-
/** The agent's default timezone. This is used when a timezone is not set on a conversation. */
|
|
8
|
-
defaultTimezone?: string;
|
|
9
|
-
/** The PII categories that are enabled for the agent. */
|
|
10
|
-
enabledPiiCategories?: Set<MavenAGI.PiiCategory>;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as MavenAGI from "../../../index";
|
|
2
|
-
export interface AgentPatchRequest {
|
|
3
|
-
/** The name of the agent. */
|
|
4
|
-
name?: string;
|
|
5
|
-
/** The environment of the agent. */
|
|
6
|
-
environment?: MavenAGI.AgentEnvironment;
|
|
7
|
-
/** The agent's default timezone. This is used when a timezone is not set on a conversation. */
|
|
8
|
-
defaultTimezone?: string;
|
|
9
|
-
/** The PII categories that are enabled for the agent. */
|
|
10
|
-
enabledPiiCategories?: Set<MavenAGI.PiiCategory>;
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as serializers from "../../../index";
|
|
2
|
-
import * as MavenAGI from "../../../../api/index";
|
|
3
|
-
import * as core from "../../../../core";
|
|
4
|
-
import { AgentEnvironment } from "./AgentEnvironment";
|
|
5
|
-
import { PiiCategory } from "./PiiCategory";
|
|
6
|
-
export declare const AgentPatchRequest: core.serialization.ObjectSchema<serializers.AgentPatchRequest.Raw, MavenAGI.AgentPatchRequest>;
|
|
7
|
-
export declare namespace AgentPatchRequest {
|
|
8
|
-
interface Raw {
|
|
9
|
-
name?: string | null;
|
|
10
|
-
environment?: AgentEnvironment.Raw | null;
|
|
11
|
-
defaultTimezone?: string | null;
|
|
12
|
-
enabledPiiCategories?: PiiCategory.Raw[] | null;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as serializers from "../../../index";
|
|
2
|
-
import * as MavenAGI from "../../../../api/index";
|
|
3
|
-
import * as core from "../../../../core";
|
|
4
|
-
import { AgentEnvironment } from "./AgentEnvironment";
|
|
5
|
-
import { PiiCategory } from "./PiiCategory";
|
|
6
|
-
export declare const AgentPatchRequest: core.serialization.ObjectSchema<serializers.AgentPatchRequest.Raw, MavenAGI.AgentPatchRequest>;
|
|
7
|
-
export declare namespace AgentPatchRequest {
|
|
8
|
-
interface Raw {
|
|
9
|
-
name?: string | null;
|
|
10
|
-
environment?: AgentEnvironment.Raw | null;
|
|
11
|
-
defaultTimezone?: string | null;
|
|
12
|
-
enabledPiiCategories?: PiiCategory.Raw[] | null;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
File without changes
|
|
File without changes
|