mavenagi 1.0.9 → 1.0.10
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/resources/actions/client/Client.js +3 -3
- package/api/resources/analytics/client/Client.js +3 -3
- package/api/resources/appSettings/client/Client.d.ts +24 -0
- package/api/resources/appSettings/client/Client.js +91 -1
- package/api/resources/commons/types/ConversationAnalysis.d.ts +6 -0
- package/{dist/api/resources/conversation → api/resources/commons}/types/QualityReason.d.ts +1 -2
- package/{dist/api/resources/conversation → api/resources/commons}/types/QualityReason.js +0 -1
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/conversation/client/Client.d.ts +8 -1
- package/api/resources/conversation/client/Client.js +21 -14
- package/api/resources/conversation/types/index.d.ts +0 -2
- package/api/resources/conversation/types/index.js +0 -2
- package/api/resources/inbox/client/Client.js +5 -5
- package/api/resources/knowledge/client/Client.d.ts +3 -1
- package/api/resources/knowledge/client/Client.js +10 -8
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.js +9 -0
- package/api/resources/knowledge/types/index.d.ts +1 -0
- package/api/resources/knowledge/types/index.js +1 -0
- package/api/resources/realtime/types/HangUpPublishEvent.d.ts +6 -0
- package/api/resources/realtime/types/HangUpPublishEvent.js +5 -0
- package/api/resources/realtime/types/PublishEvent.d.ts +4 -1
- package/api/resources/realtime/types/index.d.ts +1 -0
- package/api/resources/realtime/types/index.js +1 -0
- package/api/resources/translations/client/Client.js +1 -1
- package/api/resources/triggers/client/Client.js +3 -3
- package/api/resources/users/client/Client.js +3 -3
- package/dist/api/resources/actions/client/Client.js +3 -3
- package/dist/api/resources/analytics/client/Client.js +3 -3
- package/dist/api/resources/appSettings/client/Client.d.ts +24 -0
- package/dist/api/resources/appSettings/client/Client.js +91 -1
- package/dist/api/resources/commons/types/ConversationAnalysis.d.ts +6 -0
- package/{api/resources/conversation → dist/api/resources/commons}/types/QualityReason.d.ts +1 -2
- package/{api/resources/conversation → dist/api/resources/commons}/types/QualityReason.js +0 -1
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +2 -0
- package/dist/api/resources/conversation/client/Client.d.ts +8 -1
- package/dist/api/resources/conversation/client/Client.js +21 -14
- package/dist/api/resources/conversation/types/index.d.ts +0 -2
- package/dist/api/resources/conversation/types/index.js +0 -2
- package/dist/api/resources/inbox/client/Client.js +5 -5
- package/dist/api/resources/knowledge/client/Client.d.ts +3 -1
- package/dist/api/resources/knowledge/client/Client.js +10 -8
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +9 -0
- package/dist/api/resources/knowledge/types/index.d.ts +1 -0
- package/dist/api/resources/knowledge/types/index.js +1 -0
- package/dist/api/resources/realtime/types/HangUpPublishEvent.d.ts +6 -0
- package/dist/api/resources/realtime/types/HangUpPublishEvent.js +5 -0
- package/dist/api/resources/realtime/types/PublishEvent.d.ts +4 -1
- package/dist/api/resources/realtime/types/index.d.ts +1 -0
- package/dist/api/resources/realtime/types/index.js +1 -0
- package/dist/api/resources/translations/client/Client.js +1 -1
- package/dist/api/resources/triggers/client/Client.js +3 -3
- package/dist/api/resources/users/client/Client.js +3 -3
- package/dist/serialization/resources/appSettings/client/index.d.ts +1 -0
- package/dist/serialization/resources/appSettings/client/index.js +2 -1
- package/dist/serialization/resources/appSettings/client/update.d.ts +13 -0
- package/dist/serialization/resources/appSettings/client/update.js +42 -0
- package/dist/serialization/resources/commons/types/ConversationAnalysis.d.ts +5 -0
- package/dist/serialization/resources/commons/types/ConversationAnalysis.js +5 -0
- package/dist/serialization/resources/{conversation → commons}/types/QualityReason.d.ts +1 -1
- package/dist/serialization/resources/{conversation → commons}/types/QualityReason.js +0 -1
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +2 -0
- package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -2
- package/dist/serialization/resources/conversation/types/ConversationFilter.js +2 -2
- package/dist/serialization/resources/conversation/types/index.d.ts +0 -2
- package/dist/serialization/resources/conversation/types/index.js +0 -2
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +41 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/index.js +1 -0
- package/dist/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +12 -0
- package/dist/serialization/resources/realtime/types/HangUpPublishEvent.js +43 -0
- package/dist/serialization/resources/realtime/types/PublishEvent.d.ts +5 -1
- package/dist/serialization/resources/realtime/types/PublishEvent.js +2 -0
- package/dist/serialization/resources/realtime/types/index.d.ts +1 -0
- package/dist/serialization/resources/realtime/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 +87 -5
- package/serialization/resources/appSettings/client/index.d.ts +1 -0
- package/serialization/resources/appSettings/client/index.js +2 -1
- package/serialization/resources/appSettings/client/update.d.ts +13 -0
- package/serialization/resources/appSettings/client/update.js +42 -0
- package/serialization/resources/commons/types/ConversationAnalysis.d.ts +5 -0
- package/serialization/resources/commons/types/ConversationAnalysis.js +5 -0
- package/serialization/resources/{conversation → commons}/types/QualityReason.d.ts +1 -1
- package/serialization/resources/{conversation → commons}/types/QualityReason.js +0 -1
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -2
- package/serialization/resources/conversation/types/ConversationFilter.js +2 -2
- package/serialization/resources/conversation/types/index.d.ts +0 -2
- package/serialization/resources/conversation/types/index.js +0 -2
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseType.js +41 -0
- package/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/serialization/resources/knowledge/types/index.js +1 -0
- package/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +12 -0
- package/serialization/resources/realtime/types/HangUpPublishEvent.js +43 -0
- package/serialization/resources/realtime/types/PublishEvent.d.ts +5 -1
- package/serialization/resources/realtime/types/PublishEvent.js +2 -0
- package/serialization/resources/realtime/types/index.d.ts +1 -0
- package/serialization/resources/realtime/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/Quality.js +0 -0
- /package/dist/api/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/Quality.js +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Quality.js +0 -0
- /package/serialization/resources/{conversation → commons}/types/Quality.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/Quality.js +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = exports.Request = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Request = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
42
|
+
exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -5,6 +5,8 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { Sentiment } from "./Sentiment";
|
|
8
|
+
import { Quality } from "./Quality";
|
|
9
|
+
import { QualityReason } from "./QualityReason";
|
|
8
10
|
export declare const ConversationAnalysis: core.serialization.ObjectSchema<serializers.ConversationAnalysis.Raw, MavenAGI.ConversationAnalysis>;
|
|
9
11
|
export declare namespace ConversationAnalysis {
|
|
10
12
|
interface Raw {
|
|
@@ -13,6 +15,9 @@ export declare namespace ConversationAnalysis {
|
|
|
13
15
|
resolutionStatus?: string | null;
|
|
14
16
|
category?: string | null;
|
|
15
17
|
sentiment?: Sentiment.Raw | null;
|
|
18
|
+
quality?: Quality.Raw | null;
|
|
19
|
+
qualityReason?: QualityReason.Raw | null;
|
|
16
20
|
resolvedByMaven?: boolean | null;
|
|
21
|
+
primaryLanguage?: string | null;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
@@ -39,11 +39,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ConversationAnalysis = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const Sentiment_1 = require("./Sentiment");
|
|
42
|
+
const Quality_1 = require("./Quality");
|
|
43
|
+
const QualityReason_1 = require("./QualityReason");
|
|
42
44
|
exports.ConversationAnalysis = core.serialization.object({
|
|
43
45
|
userRequest: core.serialization.string().optional(),
|
|
44
46
|
agentResponse: core.serialization.string().optional(),
|
|
45
47
|
resolutionStatus: core.serialization.string().optional(),
|
|
46
48
|
category: core.serialization.string().optional(),
|
|
47
49
|
sentiment: Sentiment_1.Sentiment.optional(),
|
|
50
|
+
quality: Quality_1.Quality.optional(),
|
|
51
|
+
qualityReason: QualityReason_1.QualityReason.optional(),
|
|
48
52
|
resolvedByMaven: core.serialization.boolean().optional(),
|
|
53
|
+
primaryLanguage: core.serialization.string().optional(),
|
|
49
54
|
});
|
|
@@ -6,5 +6,5 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const QualityReason: core.serialization.Schema<serializers.QualityReason.Raw, MavenAGI.QualityReason>;
|
|
8
8
|
export declare namespace QualityReason {
|
|
9
|
-
type Raw = "MISSING_KNOWLEDGE" | "MISSING_USER_INFORMATION" | "MISSING_ACTION" | "NEEDS_USER_CLARIFICATION" | "UNSUPPORTED_FORMAT" | "
|
|
9
|
+
type Raw = "MISSING_KNOWLEDGE" | "MISSING_USER_INFORMATION" | "MISSING_ACTION" | "NEEDS_USER_CLARIFICATION" | "UNSUPPORTED_FORMAT" | "INTERRUPTED" | "UNSUPPORTED_USER_BEHAVIOR" | "UNKNOWN";
|
|
10
10
|
}
|
|
@@ -22,6 +22,8 @@ export * from "./BasePaginatedRequest";
|
|
|
22
22
|
export * from "./ActionParameterType";
|
|
23
23
|
export * from "./ActionEnumOption";
|
|
24
24
|
export * from "./Sentiment";
|
|
25
|
+
export * from "./Quality";
|
|
26
|
+
export * from "./QualityReason";
|
|
25
27
|
export * from "./ConversationSummary";
|
|
26
28
|
export * from "./ConversationAnalysis";
|
|
27
29
|
export * from "./ConversationInformation";
|
|
@@ -38,6 +38,8 @@ __exportStar(require("./BasePaginatedRequest"), exports);
|
|
|
38
38
|
__exportStar(require("./ActionParameterType"), exports);
|
|
39
39
|
__exportStar(require("./ActionEnumOption"), exports);
|
|
40
40
|
__exportStar(require("./Sentiment"), exports);
|
|
41
|
+
__exportStar(require("./Quality"), exports);
|
|
42
|
+
__exportStar(require("./QualityReason"), exports);
|
|
41
43
|
__exportStar(require("./ConversationSummary"), exports);
|
|
42
44
|
__exportStar(require("./ConversationAnalysis"), exports);
|
|
43
45
|
__exportStar(require("./ConversationInformation"), exports);
|
|
@@ -6,8 +6,8 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { EntityIdFilter } from "../../commons/types/EntityIdFilter";
|
|
8
8
|
import { FeedbackType } from "../../commons/types/FeedbackType";
|
|
9
|
-
import { Quality } from "
|
|
10
|
-
import { QualityReason } from "
|
|
9
|
+
import { Quality } from "../../commons/types/Quality";
|
|
10
|
+
import { QualityReason } from "../../commons/types/QualityReason";
|
|
11
11
|
import { ResponseLength } from "../../commons/types/ResponseLength";
|
|
12
12
|
import { Sentiment } from "../../commons/types/Sentiment";
|
|
13
13
|
import { ResolutionStatus } from "./ResolutionStatus";
|
|
@@ -40,8 +40,8 @@ exports.ConversationFilter = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const EntityIdFilter_1 = require("../../commons/types/EntityIdFilter");
|
|
42
42
|
const FeedbackType_1 = require("../../commons/types/FeedbackType");
|
|
43
|
-
const Quality_1 = require("
|
|
44
|
-
const QualityReason_1 = require("
|
|
43
|
+
const Quality_1 = require("../../commons/types/Quality");
|
|
44
|
+
const QualityReason_1 = require("../../commons/types/QualityReason");
|
|
45
45
|
const ResponseLength_1 = require("../../commons/types/ResponseLength");
|
|
46
46
|
const Sentiment_1 = require("../../commons/types/Sentiment");
|
|
47
47
|
const ResolutionStatus_1 = require("./ResolutionStatus");
|
|
@@ -16,8 +16,6 @@ export * from "./CategorizationResponse";
|
|
|
16
16
|
export * from "./ConversationField";
|
|
17
17
|
export * from "./NumericConversationField";
|
|
18
18
|
export * from "./ResolutionStatus";
|
|
19
|
-
export * from "./Quality";
|
|
20
|
-
export * from "./QualityReason";
|
|
21
19
|
export * from "./ConversationsSearchRequest";
|
|
22
20
|
export * from "./ConversationsResponse";
|
|
23
21
|
export * from "./ConversationFilter";
|
|
@@ -32,8 +32,6 @@ __exportStar(require("./CategorizationResponse"), exports);
|
|
|
32
32
|
__exportStar(require("./ConversationField"), exports);
|
|
33
33
|
__exportStar(require("./NumericConversationField"), exports);
|
|
34
34
|
__exportStar(require("./ResolutionStatus"), exports);
|
|
35
|
-
__exportStar(require("./Quality"), exports);
|
|
36
|
-
__exportStar(require("./QualityReason"), exports);
|
|
37
35
|
__exportStar(require("./ConversationsSearchRequest"), exports);
|
|
38
36
|
__exportStar(require("./ConversationsResponse"), exports);
|
|
39
37
|
__exportStar(require("./ConversationFilter"), exports);
|
|
@@ -5,10 +5,12 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { EntityId } from "../../commons/types/EntityId";
|
|
8
|
+
import { KnowledgeBaseType } from "./KnowledgeBaseType";
|
|
8
9
|
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 {
|
|
12
13
|
knowledgeBaseId: EntityId.Raw;
|
|
14
|
+
type: KnowledgeBaseType.Raw;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -39,9 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.KnowledgeBaseResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const EntityId_1 = require("../../commons/types/EntityId");
|
|
42
|
+
const KnowledgeBaseType_1 = require("./KnowledgeBaseType");
|
|
42
43
|
const KnowledgeBaseProperties_1 = require("./KnowledgeBaseProperties");
|
|
43
44
|
exports.KnowledgeBaseResponse = core.serialization
|
|
44
45
|
.object({
|
|
45
46
|
knowledgeBaseId: EntityId_1.EntityId,
|
|
47
|
+
type: KnowledgeBaseType_1.KnowledgeBaseType,
|
|
46
48
|
})
|
|
47
49
|
.extend(KnowledgeBaseProperties_1.KnowledgeBaseProperties);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const KnowledgeBaseType: core.serialization.Schema<serializers.KnowledgeBaseType.Raw, MavenAGI.KnowledgeBaseType>;
|
|
8
|
+
export declare namespace KnowledgeBaseType {
|
|
9
|
+
type Raw = "API";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.KnowledgeBaseType = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.KnowledgeBaseType = core.serialization.enum_(["API"]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./KnowledgeBaseProperties";
|
|
2
2
|
export * from "./KnowledgeBaseRequest";
|
|
3
3
|
export * from "./KnowledgeBaseResponse";
|
|
4
|
+
export * from "./KnowledgeBaseType";
|
|
4
5
|
export * from "./KnowledgeBaseVersion";
|
|
5
6
|
export * from "./KnowledgeBaseVersionType";
|
|
6
7
|
export * from "./BaseKnowledgeDocument";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./KnowledgeBaseProperties"), exports);
|
|
18
18
|
__exportStar(require("./KnowledgeBaseRequest"), exports);
|
|
19
19
|
__exportStar(require("./KnowledgeBaseResponse"), exports);
|
|
20
|
+
__exportStar(require("./KnowledgeBaseType"), exports);
|
|
20
21
|
__exportStar(require("./KnowledgeBaseVersion"), exports);
|
|
21
22
|
__exportStar(require("./KnowledgeBaseVersionType"), exports);
|
|
22
23
|
__exportStar(require("./BaseKnowledgeDocument"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const HangUpPublishEvent: core.serialization.ObjectSchema<serializers.HangUpPublishEvent.Raw, MavenAGI.HangUpPublishEvent>;
|
|
8
|
+
export declare namespace HangUpPublishEvent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.HangUpPublishEvent = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.HangUpPublishEvent = core.serialization.object({
|
|
42
|
+
message: core.serialization.string().optional(),
|
|
43
|
+
});
|
|
@@ -5,10 +5,14 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { AudioPublishEvent } from "./AudioPublishEvent";
|
|
8
|
+
import { HangUpPublishEvent } from "./HangUpPublishEvent";
|
|
8
9
|
export declare const PublishEvent: core.serialization.Schema<serializers.PublishEvent.Raw, MavenAGI.PublishEvent>;
|
|
9
10
|
export declare namespace PublishEvent {
|
|
10
|
-
type Raw = PublishEvent.Audio;
|
|
11
|
+
type Raw = PublishEvent.Audio | PublishEvent.HangUp;
|
|
11
12
|
interface Audio extends AudioPublishEvent.Raw {
|
|
12
13
|
messageType: "audio";
|
|
13
14
|
}
|
|
15
|
+
interface HangUp extends HangUpPublishEvent.Raw {
|
|
16
|
+
messageType: "hangUp";
|
|
17
|
+
}
|
|
14
18
|
}
|
|
@@ -39,9 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.PublishEvent = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const AudioPublishEvent_1 = require("./AudioPublishEvent");
|
|
42
|
+
const HangUpPublishEvent_1 = require("./HangUpPublishEvent");
|
|
42
43
|
exports.PublishEvent = core.serialization
|
|
43
44
|
.union("messageType", {
|
|
44
45
|
audio: AudioPublishEvent_1.AudioPublishEvent,
|
|
46
|
+
hangUp: HangUpPublishEvent_1.HangUpPublishEvent,
|
|
45
47
|
})
|
|
46
48
|
.transform({
|
|
47
49
|
transform: (value) => value,
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ControlEvent"), exports);
|
|
18
18
|
__exportStar(require("./PublishEvent"), exports);
|
|
19
|
+
__exportStar(require("./HangUpPublishEvent"), exports);
|
|
19
20
|
__exportStar(require("./AudioPublishEvent"), exports);
|
|
20
21
|
__exportStar(require("./SubscribeEvent"), exports);
|
|
21
22
|
__exportStar(require("./AudioSubscribeEvent"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.10";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -523,9 +523,7 @@ await client.appSettings.get();
|
|
|
523
523
|
</dl>
|
|
524
524
|
</details>
|
|
525
525
|
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">initialize</a>({ ...params }) -> MavenAGI.ConversationResponse</code></summary>
|
|
526
|
+
<details><summary><code>client.appSettings.<a href="/src/api/resources/appSettings/client/Client.ts">update</a>({ ...params }) -> Record<string, unknown></code></summary>
|
|
529
527
|
<dl>
|
|
530
528
|
<dd>
|
|
531
529
|
|
|
@@ -537,13 +535,95 @@ await client.appSettings.get();
|
|
|
537
535
|
<dl>
|
|
538
536
|
<dd>
|
|
539
537
|
|
|
540
|
-
|
|
538
|
+
Update app settings. Performs a merge of the provided settings with the existing app settings.
|
|
539
|
+
|
|
540
|
+
- If a new key is provided, it will be added to the app settings.
|
|
541
|
+
- If an existing key is provided, it will be updated.
|
|
542
|
+
- No keys will be removed.
|
|
543
|
+
|
|
544
|
+
Note that if an array value is provided it will fully replace an existing value as arrays cannot be merged.
|
|
545
|
+
|
|
546
|
+
</dd>
|
|
547
|
+
</dl>
|
|
548
|
+
</dd>
|
|
549
|
+
</dl>
|
|
550
|
+
|
|
551
|
+
#### 🔌 Usage
|
|
552
|
+
|
|
553
|
+
<dl>
|
|
554
|
+
<dd>
|
|
555
|
+
|
|
556
|
+
<dl>
|
|
557
|
+
<dd>
|
|
558
|
+
|
|
559
|
+
```typescript
|
|
560
|
+
await client.appSettings.update({
|
|
561
|
+
string: {
|
|
562
|
+
key: "value",
|
|
563
|
+
},
|
|
564
|
+
});
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
</dd>
|
|
568
|
+
</dl>
|
|
569
|
+
</dd>
|
|
570
|
+
</dl>
|
|
571
|
+
|
|
572
|
+
#### ⚙️ Parameters
|
|
573
|
+
|
|
574
|
+
<dl>
|
|
575
|
+
<dd>
|
|
576
|
+
|
|
577
|
+
<dl>
|
|
578
|
+
<dd>
|
|
579
|
+
|
|
580
|
+
**request:** `Record<string, unknown>`
|
|
581
|
+
|
|
582
|
+
</dd>
|
|
583
|
+
</dl>
|
|
584
|
+
|
|
585
|
+
<dl>
|
|
586
|
+
<dd>
|
|
587
|
+
|
|
588
|
+
**requestOptions:** `AppSettings.RequestOptions`
|
|
541
589
|
|
|
542
590
|
</dd>
|
|
543
591
|
</dl>
|
|
544
592
|
</dd>
|
|
545
593
|
</dl>
|
|
546
594
|
|
|
595
|
+
</dd>
|
|
596
|
+
</dl>
|
|
597
|
+
</details>
|
|
598
|
+
|
|
599
|
+
## Conversation
|
|
600
|
+
|
|
601
|
+
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">initialize</a>({ ...params }) -> MavenAGI.ConversationResponse</code></summary>
|
|
602
|
+
<dl>
|
|
603
|
+
<dd>
|
|
604
|
+
|
|
605
|
+
#### 📝 Description
|
|
606
|
+
|
|
607
|
+
<dl>
|
|
608
|
+
<dd>
|
|
609
|
+
|
|
610
|
+
<dl>
|
|
611
|
+
<dd>
|
|
612
|
+
|
|
613
|
+
Initialize a new conversation.
|
|
614
|
+
Only required if the ask request wishes to supply conversation level data or when syncing to external systems.
|
|
615
|
+
|
|
616
|
+
Conversations can not be modified using this API. If the conversation already exists then the existing conversation will be returned.
|
|
617
|
+
|
|
618
|
+
After initialization,
|
|
619
|
+
|
|
620
|
+
- metadata can be changed using the `updateConversationMetadata` API.
|
|
621
|
+
- messages can be added to the conversation with the `appendNewMessages` or `ask` APIs.
|
|
622
|
+
</dd>
|
|
623
|
+
</dl>
|
|
624
|
+
</dd>
|
|
625
|
+
</dl>
|
|
626
|
+
|
|
547
627
|
#### 🔌 Usage
|
|
548
628
|
|
|
549
629
|
<dl>
|
|
@@ -2080,7 +2160,9 @@ await client.knowledge.getKnowledgeBase("help-center");
|
|
|
2080
2160
|
<dl>
|
|
2081
2161
|
<dd>
|
|
2082
2162
|
|
|
2083
|
-
Create a new knowledge base version.
|
|
2163
|
+
Create a new knowledge base version.
|
|
2164
|
+
|
|
2165
|
+
If an existing version is in progress, then that version will be finalized in an error state.
|
|
2084
2166
|
|
|
2085
2167
|
</dd>
|
|
2086
2168
|
</dl>
|
|
@@ -33,5 +33,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.get = void 0;
|
|
36
|
+
exports.update = exports.get = void 0;
|
|
37
37
|
exports.get = __importStar(require("./get"));
|
|
38
|
+
exports.update = __importStar(require("./update"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Request: core.serialization.Schema<serializers.appSettings.update.Request.Raw, Record<string, unknown>>;
|
|
7
|
+
export declare namespace Request {
|
|
8
|
+
type Raw = Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export declare const Response: core.serialization.Schema<serializers.appSettings.update.Response.Raw, Record<string, unknown>>;
|
|
11
|
+
export declare namespace Response {
|
|
12
|
+
type Raw = Record<string, unknown>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = exports.Request = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Request = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
42
|
+
exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -5,6 +5,8 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { Sentiment } from "./Sentiment";
|
|
8
|
+
import { Quality } from "./Quality";
|
|
9
|
+
import { QualityReason } from "./QualityReason";
|
|
8
10
|
export declare const ConversationAnalysis: core.serialization.ObjectSchema<serializers.ConversationAnalysis.Raw, MavenAGI.ConversationAnalysis>;
|
|
9
11
|
export declare namespace ConversationAnalysis {
|
|
10
12
|
interface Raw {
|
|
@@ -13,6 +15,9 @@ export declare namespace ConversationAnalysis {
|
|
|
13
15
|
resolutionStatus?: string | null;
|
|
14
16
|
category?: string | null;
|
|
15
17
|
sentiment?: Sentiment.Raw | null;
|
|
18
|
+
quality?: Quality.Raw | null;
|
|
19
|
+
qualityReason?: QualityReason.Raw | null;
|
|
16
20
|
resolvedByMaven?: boolean | null;
|
|
21
|
+
primaryLanguage?: string | null;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
@@ -39,11 +39,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ConversationAnalysis = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const Sentiment_1 = require("./Sentiment");
|
|
42
|
+
const Quality_1 = require("./Quality");
|
|
43
|
+
const QualityReason_1 = require("./QualityReason");
|
|
42
44
|
exports.ConversationAnalysis = core.serialization.object({
|
|
43
45
|
userRequest: core.serialization.string().optional(),
|
|
44
46
|
agentResponse: core.serialization.string().optional(),
|
|
45
47
|
resolutionStatus: core.serialization.string().optional(),
|
|
46
48
|
category: core.serialization.string().optional(),
|
|
47
49
|
sentiment: Sentiment_1.Sentiment.optional(),
|
|
50
|
+
quality: Quality_1.Quality.optional(),
|
|
51
|
+
qualityReason: QualityReason_1.QualityReason.optional(),
|
|
48
52
|
resolvedByMaven: core.serialization.boolean().optional(),
|
|
53
|
+
primaryLanguage: core.serialization.string().optional(),
|
|
49
54
|
});
|
|
@@ -6,5 +6,5 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const QualityReason: core.serialization.Schema<serializers.QualityReason.Raw, MavenAGI.QualityReason>;
|
|
8
8
|
export declare namespace QualityReason {
|
|
9
|
-
type Raw = "MISSING_KNOWLEDGE" | "MISSING_USER_INFORMATION" | "MISSING_ACTION" | "NEEDS_USER_CLARIFICATION" | "UNSUPPORTED_FORMAT" | "
|
|
9
|
+
type Raw = "MISSING_KNOWLEDGE" | "MISSING_USER_INFORMATION" | "MISSING_ACTION" | "NEEDS_USER_CLARIFICATION" | "UNSUPPORTED_FORMAT" | "INTERRUPTED" | "UNSUPPORTED_USER_BEHAVIOR" | "UNKNOWN";
|
|
10
10
|
}
|
|
@@ -22,6 +22,8 @@ export * from "./BasePaginatedRequest";
|
|
|
22
22
|
export * from "./ActionParameterType";
|
|
23
23
|
export * from "./ActionEnumOption";
|
|
24
24
|
export * from "./Sentiment";
|
|
25
|
+
export * from "./Quality";
|
|
26
|
+
export * from "./QualityReason";
|
|
25
27
|
export * from "./ConversationSummary";
|
|
26
28
|
export * from "./ConversationAnalysis";
|
|
27
29
|
export * from "./ConversationInformation";
|