mavenagi 1.2.56 → 1.2.57
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/BaseClient.js +2 -2
- package/Client.d.ts +3 -0
- package/Client.js +21 -16
- package/api/resources/analytics/types/ConversationBasicMetric.d.ts +5 -0
- package/api/resources/analytics/types/ConversationGroupBy.d.ts +9 -1
- package/api/resources/analytics/types/ConversationNumericMetric.d.ts +5 -0
- package/api/resources/analytics/types/ConversationTableRequest.d.ts +6 -0
- package/api/resources/charters/index.d.ts +1 -0
- package/api/resources/charters/index.js +17 -0
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +17 -0
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +20 -0
- package/api/resources/charters/types/CharterStatus.d.ts +16 -0
- package/api/resources/charters/types/CharterStatus.js +19 -0
- package/api/resources/charters/types/CharterSummary.d.ts +28 -0
- package/api/resources/charters/types/CharterType.d.ts +25 -0
- package/api/resources/charters/types/CharterType.js +28 -0
- package/api/resources/charters/types/index.d.ts +4 -0
- package/api/resources/charters/types/index.js +20 -0
- package/api/resources/commons/types/ActionParameter.d.ts +2 -2
- package/api/resources/commons/types/BotObjectResponse.d.ts +2 -4
- package/api/resources/commons/types/FieldCondition.d.ts +45 -0
- package/api/resources/commons/types/FieldCondition.js +3 -0
- package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +1 -1
- package/api/resources/commons/types/IntelligentFieldPreconditionResponse.d.ts +1 -1
- package/api/resources/commons/types/KeyValueEntryCondition.d.ts +1 -1
- package/api/resources/commons/types/TextFormat.d.ts +13 -0
- package/api/resources/commons/types/TextFormat.js +3 -0
- package/api/resources/commons/types/TextFormatJsonSchema.d.ts +35 -0
- package/api/resources/commons/types/TextFormatJsonSchema.js +3 -0
- package/api/resources/commons/types/TextFormatText.d.ts +4 -0
- package/api/resources/commons/types/TextFormatText.js +3 -0
- package/api/resources/commons/types/UniversalCondition.d.ts +3 -3
- package/api/resources/commons/types/index.d.ts +4 -1
- package/api/resources/commons/types/index.js +4 -1
- package/api/resources/conversation/types/AskRequest.d.ts +59 -0
- package/api/resources/conversation/types/AskStreamObjectEvent.d.ts +7 -0
- package/api/resources/conversation/types/AskStreamObjectEvent.js +3 -0
- package/api/resources/conversation/types/ConversationField.d.ts +8 -0
- package/api/resources/conversation/types/ConversationField.js +8 -0
- package/api/resources/conversation/types/ConversationsSearchRequest.d.ts +5 -0
- package/api/resources/conversation/types/NumericConversationField.d.ts +4 -0
- package/api/resources/conversation/types/NumericConversationField.js +4 -0
- package/api/resources/conversation/types/StreamResponse.d.ts +4 -1
- package/api/resources/conversation/types/index.d.ts +1 -0
- package/api/resources/conversation/types/index.js +1 -0
- package/api/resources/index.d.ts +5 -0
- package/api/resources/index.js +6 -1
- package/api/resources/intelligentFields/client/Client.d.ts +156 -0
- package/api/resources/intelligentFields/client/Client.js +627 -0
- package/api/resources/intelligentFields/client/index.d.ts +1 -0
- package/api/resources/intelligentFields/client/index.js +17 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +12 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.js +3 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +8 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.js +3 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +26 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +3 -0
- package/api/resources/intelligentFields/client/requests/index.d.ts +3 -0
- package/api/resources/intelligentFields/client/requests/index.js +2 -0
- package/api/resources/intelligentFields/exports.d.ts +2 -0
- package/api/resources/intelligentFields/exports.js +21 -0
- package/api/resources/intelligentFields/index.d.ts +2 -0
- package/api/resources/intelligentFields/index.js +18 -0
- package/api/resources/intelligentFields/types/EnumOption.d.ts +9 -0
- package/api/resources/intelligentFields/types/EnumOption.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +7 -0
- package/api/resources/intelligentFields/types/IntelligentFieldBase.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +28 -0
- package/api/resources/intelligentFields/types/IntelligentFieldCore.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +36 -0
- package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +28 -0
- package/api/resources/intelligentFields/types/IntelligentFieldRequest.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +41 -0
- package/api/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +7 -0
- package/api/resources/intelligentFields/types/IntelligentFieldStatus.js +10 -0
- package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +9 -0
- package/api/resources/intelligentFields/types/IntelligentFieldType.js +12 -0
- package/api/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.d.ts +8 -0
- package/api/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.d.ts +10 -0
- package/api/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +17 -0
- package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +35 -0
- package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.js +3 -0
- package/api/resources/intelligentFields/types/IntelligentFieldValueSortField.d.ts +5 -0
- package/api/resources/intelligentFields/types/IntelligentFieldValueSortField.js +8 -0
- package/api/resources/intelligentFields/types/index.d.ts +13 -0
- package/api/resources/intelligentFields/types/index.js +29 -0
- package/api/resources/knowledge/client/Client.d.ts +33 -0
- package/api/resources/knowledge/client/Client.js +117 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +5 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +25 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionProgress.d.ts +29 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionProgress.js +3 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.d.ts +24 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.js +3 -0
- package/api/resources/knowledge/types/index.d.ts +2 -0
- package/api/resources/knowledge/types/index.js +2 -0
- package/api/resources/segments/client/Client.js +3 -1
- package/api/resources/segments/client/requests/SegmentDeleteRequest.d.ts +12 -0
- package/api/resources/segments/types/SegmentPatchRequest.d.ts +8 -0
- package/api/resources/segments/types/SegmentRequest.d.ts +8 -0
- package/api/resources/segments/types/SegmentSummary.d.ts +14 -0
- package/api/resources/segments/types/SegmentSummary.js +3 -0
- package/api/resources/segments/types/index.d.ts +1 -0
- package/api/resources/segments/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +476 -0
- package/serialization/resources/analytics/types/ConversationBasicMetric.d.ts +2 -0
- package/serialization/resources/analytics/types/ConversationBasicMetric.js +2 -0
- package/serialization/resources/analytics/types/ConversationGroupBy.d.ts +2 -0
- package/serialization/resources/analytics/types/ConversationGroupBy.js +2 -0
- package/serialization/resources/analytics/types/ConversationNumericMetric.d.ts +2 -0
- package/serialization/resources/analytics/types/ConversationNumericMetric.js +2 -0
- package/serialization/resources/charters/index.d.ts +1 -0
- package/serialization/resources/charters/index.js +17 -0
- package/serialization/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +7 -0
- package/serialization/resources/charters/types/CharterChildrenExclusionPolicy.js +39 -0
- package/serialization/resources/charters/types/CharterStatus.d.ts +7 -0
- package/serialization/resources/charters/types/CharterStatus.js +39 -0
- package/serialization/resources/charters/types/CharterSummary.d.ts +22 -0
- package/serialization/resources/charters/types/CharterSummary.js +54 -0
- package/serialization/resources/charters/types/CharterType.d.ts +7 -0
- package/serialization/resources/charters/types/CharterType.js +39 -0
- package/serialization/resources/charters/types/index.d.ts +4 -0
- package/serialization/resources/charters/types/index.js +20 -0
- package/serialization/resources/commons/types/BotObjectResponse.d.ts +0 -1
- package/serialization/resources/commons/types/BotObjectResponse.js +0 -1
- package/serialization/resources/commons/types/{IntelligentFieldCondition.d.ts → FieldCondition.d.ts} +3 -3
- package/serialization/resources/commons/types/{IntelligentFieldCondition.js → FieldCondition.js} +2 -2
- package/serialization/resources/commons/types/IntelligentFieldPrecondition.d.ts +2 -2
- package/serialization/resources/commons/types/IntelligentFieldPrecondition.js +2 -2
- package/serialization/resources/commons/types/IntelligentFieldPreconditionResponse.d.ts +2 -2
- package/serialization/resources/commons/types/IntelligentFieldPreconditionResponse.js +2 -2
- package/serialization/resources/commons/types/KeyValueEntryCondition.d.ts +2 -2
- package/serialization/resources/commons/types/KeyValueEntryCondition.js +2 -2
- package/serialization/resources/commons/types/TextFormat.d.ts +15 -0
- package/serialization/resources/commons/types/TextFormat.js +49 -0
- package/serialization/resources/commons/types/TextFormatJsonSchema.d.ts +10 -0
- package/serialization/resources/commons/types/TextFormatJsonSchema.js +42 -0
- package/serialization/resources/commons/types/TextFormatText.d.ts +7 -0
- package/serialization/resources/commons/types/TextFormatText.js +39 -0
- package/serialization/resources/commons/types/index.d.ts +4 -1
- package/serialization/resources/commons/types/index.js +4 -1
- package/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
- package/serialization/resources/conversation/types/AskRequest.js +2 -0
- package/serialization/resources/conversation/types/AskStreamObjectEvent.d.ts +9 -0
- package/serialization/resources/conversation/types/AskStreamObjectEvent.js +40 -0
- package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
- package/serialization/resources/conversation/types/ConversationField.js +2 -0
- package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
- package/serialization/resources/conversation/types/NumericConversationField.js +1 -0
- package/serialization/resources/conversation/types/StreamResponse.d.ts +5 -1
- package/serialization/resources/conversation/types/StreamResponse.js +2 -0
- package/serialization/resources/conversation/types/index.d.ts +1 -0
- package/serialization/resources/conversation/types/index.js +1 -0
- package/serialization/resources/index.d.ts +5 -0
- package/serialization/resources/index.js +6 -1
- package/serialization/resources/intelligentFields/client/index.d.ts +1 -0
- package/serialization/resources/intelligentFields/client/index.js +17 -0
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +17 -0
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +49 -0
- package/serialization/resources/intelligentFields/client/requests/index.d.ts +1 -0
- package/serialization/resources/intelligentFields/client/requests/index.js +5 -0
- package/serialization/resources/intelligentFields/index.d.ts +2 -0
- package/serialization/resources/intelligentFields/index.js +18 -0
- package/serialization/resources/intelligentFields/types/EnumOption.d.ts +10 -0
- package/serialization/resources/intelligentFields/types/EnumOption.js +42 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldBase.d.ts +13 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldBase.js +47 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +15 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +47 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +11 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldDetailResponse.js +45 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +11 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +45 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +15 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +49 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +7 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldStatus.js +39 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldType.d.ts +7 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldType.js +39 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.d.ts +10 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldValueEntityFilter.js +42 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.d.ts +12 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldValueFieldFilter.js +44 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +20 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.js +54 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +11 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.js +45 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldValueSortField.d.ts +7 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldValueSortField.js +39 -0
- package/serialization/resources/intelligentFields/types/index.d.ts +13 -0
- package/serialization/resources/intelligentFields/types/index.js +29 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgress.d.ts +11 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgress.js +43 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.d.ts +13 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionProgressRequest.js +45 -0
- package/serialization/resources/knowledge/types/index.d.ts +2 -0
- package/serialization/resources/knowledge/types/index.js +2 -0
- package/serialization/resources/segments/types/SegmentPatchRequest.d.ts +2 -0
- package/serialization/resources/segments/types/SegmentPatchRequest.js +2 -0
- package/serialization/resources/segments/types/SegmentRequest.d.ts +2 -0
- package/serialization/resources/segments/types/SegmentRequest.js +2 -0
- package/serialization/resources/segments/types/SegmentSummary.d.ts +14 -0
- package/serialization/resources/segments/types/SegmentSummary.js +47 -0
- package/serialization/resources/segments/types/index.d.ts +1 -0
- package/serialization/resources/segments/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/commons/types/IntelligentFieldCondition.d.ts +0 -37
- /package/api/resources/{commons/types/IntelligentFieldCondition.js → charters/types/CharterSummary.js} +0 -0
package/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "mavenagi",
|
|
46
|
-
"X-Fern-SDK-Version": "1.2.
|
|
47
|
-
"User-Agent": "mavenagi/1.2.
|
|
46
|
+
"X-Fern-SDK-Version": "1.2.57",
|
|
47
|
+
"User-Agent": "mavenagi/1.2.57",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
|
package/Client.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { CustomersClient } from "./api/resources/customers/client/Client";
|
|
|
8
8
|
import { EventsClient } from "./api/resources/events/client/Client";
|
|
9
9
|
import { InboxClient } from "./api/resources/inbox/client/Client";
|
|
10
10
|
import { IntegrationsClient } from "./api/resources/integrations/client/Client";
|
|
11
|
+
import { IntelligentFieldsClient } from "./api/resources/intelligentFields/client/Client";
|
|
11
12
|
import { KnowledgeClient } from "./api/resources/knowledge/client/Client";
|
|
12
13
|
import { OrganizationsClient } from "./api/resources/organizations/client/Client";
|
|
13
14
|
import { SegmentsClient } from "./api/resources/segments/client/Client";
|
|
@@ -36,6 +37,7 @@ export declare class MavenAGIClient {
|
|
|
36
37
|
protected _events: EventsClient | undefined;
|
|
37
38
|
protected _inbox: InboxClient | undefined;
|
|
38
39
|
protected _integrations: IntegrationsClient | undefined;
|
|
40
|
+
protected _intelligentFields: IntelligentFieldsClient | undefined;
|
|
39
41
|
protected _knowledge: KnowledgeClient | undefined;
|
|
40
42
|
protected _organizations: OrganizationsClient | undefined;
|
|
41
43
|
protected _segments: SegmentsClient | undefined;
|
|
@@ -55,6 +57,7 @@ export declare class MavenAGIClient {
|
|
|
55
57
|
get events(): EventsClient;
|
|
56
58
|
get inbox(): InboxClient;
|
|
57
59
|
get integrations(): IntegrationsClient;
|
|
60
|
+
get intelligentFields(): IntelligentFieldsClient;
|
|
58
61
|
get knowledge(): KnowledgeClient;
|
|
59
62
|
get organizations(): OrganizationsClient;
|
|
60
63
|
get segments(): SegmentsClient;
|
package/Client.js
CHANGED
|
@@ -54,14 +54,15 @@ const Client_7 = require("./api/resources/customers/client/Client");
|
|
|
54
54
|
const Client_8 = require("./api/resources/events/client/Client");
|
|
55
55
|
const Client_9 = require("./api/resources/inbox/client/Client");
|
|
56
56
|
const Client_10 = require("./api/resources/integrations/client/Client");
|
|
57
|
-
const Client_11 = require("./api/resources/
|
|
58
|
-
const Client_12 = require("./api/resources/
|
|
59
|
-
const Client_13 = require("./api/resources/
|
|
60
|
-
const Client_14 = require("./api/resources/
|
|
61
|
-
const Client_15 = require("./api/resources/
|
|
62
|
-
const Client_16 = require("./api/resources/
|
|
63
|
-
const Client_17 = require("./api/resources/
|
|
64
|
-
const Client_18 = require("./api/resources/
|
|
57
|
+
const Client_11 = require("./api/resources/intelligentFields/client/Client");
|
|
58
|
+
const Client_12 = require("./api/resources/knowledge/client/Client");
|
|
59
|
+
const Client_13 = require("./api/resources/organizations/client/Client");
|
|
60
|
+
const Client_14 = require("./api/resources/segments/client/Client");
|
|
61
|
+
const Client_15 = require("./api/resources/translations/client/Client");
|
|
62
|
+
const Client_16 = require("./api/resources/triggers/client/Client");
|
|
63
|
+
const Client_17 = require("./api/resources/users/client/Client");
|
|
64
|
+
const Client_18 = require("./api/resources/voice/client/Client");
|
|
65
|
+
const Client_19 = require("./api/resources/voiceConversations/client/Client");
|
|
65
66
|
const BaseClient_1 = require("./BaseClient");
|
|
66
67
|
const core = __importStar(require("./core"));
|
|
67
68
|
class MavenAGIClient {
|
|
@@ -108,37 +109,41 @@ class MavenAGIClient {
|
|
|
108
109
|
var _a;
|
|
109
110
|
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_10.IntegrationsClient(this._options)));
|
|
110
111
|
}
|
|
112
|
+
get intelligentFields() {
|
|
113
|
+
var _a;
|
|
114
|
+
return ((_a = this._intelligentFields) !== null && _a !== void 0 ? _a : (this._intelligentFields = new Client_11.IntelligentFieldsClient(this._options)));
|
|
115
|
+
}
|
|
111
116
|
get knowledge() {
|
|
112
117
|
var _a;
|
|
113
|
-
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new
|
|
118
|
+
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_12.KnowledgeClient(this._options)));
|
|
114
119
|
}
|
|
115
120
|
get organizations() {
|
|
116
121
|
var _a;
|
|
117
|
-
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new
|
|
122
|
+
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_13.OrganizationsClient(this._options)));
|
|
118
123
|
}
|
|
119
124
|
get segments() {
|
|
120
125
|
var _a;
|
|
121
|
-
return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new
|
|
126
|
+
return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_14.SegmentsClient(this._options)));
|
|
122
127
|
}
|
|
123
128
|
get translations() {
|
|
124
129
|
var _a;
|
|
125
|
-
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new
|
|
130
|
+
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_15.TranslationsClient(this._options)));
|
|
126
131
|
}
|
|
127
132
|
get triggers() {
|
|
128
133
|
var _a;
|
|
129
|
-
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new
|
|
134
|
+
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_16.TriggersClient(this._options)));
|
|
130
135
|
}
|
|
131
136
|
get users() {
|
|
132
137
|
var _a;
|
|
133
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
138
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_17.UsersClient(this._options)));
|
|
134
139
|
}
|
|
135
140
|
get voiceConversations() {
|
|
136
141
|
var _a;
|
|
137
|
-
return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new
|
|
142
|
+
return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_19.VoiceConversationsClient(this._options)));
|
|
138
143
|
}
|
|
139
144
|
get voice() {
|
|
140
145
|
var _a;
|
|
141
|
-
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new
|
|
146
|
+
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_18.VoiceClient(this._options)));
|
|
142
147
|
}
|
|
143
148
|
/**
|
|
144
149
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
@@ -2,4 +2,9 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
export interface ConversationBasicMetric {
|
|
3
3
|
/** Field to apply the metric to. */
|
|
4
4
|
targetField: MavenAGI.ConversationField;
|
|
5
|
+
/**
|
|
6
|
+
* Fully specified ID of the intelligent field. Required when `targetField` is
|
|
7
|
+
* `IntelligentField`, and ignored otherwise.
|
|
8
|
+
*/
|
|
9
|
+
intelligentFieldId?: MavenAGI.EntityId;
|
|
5
10
|
}
|
|
@@ -2,6 +2,14 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
export interface ConversationGroupBy extends MavenAGI.GroupByBase {
|
|
3
3
|
/** Field used for data grouping. */
|
|
4
4
|
field: MavenAGI.ConversationField;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Fully specified ID of the intelligent field. Required when `field` is
|
|
7
|
+
* `IntelligentField`, and ignored otherwise.
|
|
8
|
+
*/
|
|
9
|
+
intelligentFieldId?: MavenAGI.EntityId;
|
|
10
|
+
/**
|
|
11
|
+
* Numeric ranges for grouping data into predefined buckets.
|
|
12
|
+
* Applies only to numeric fields and to NUMBER-validated intelligent fields.
|
|
13
|
+
*/
|
|
6
14
|
ranges?: MavenAGI.Range[];
|
|
7
15
|
}
|
|
@@ -2,4 +2,9 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
export interface ConversationNumericMetric {
|
|
3
3
|
/** Numeric field to apply the metric to. */
|
|
4
4
|
targetField: MavenAGI.NumericConversationField;
|
|
5
|
+
/**
|
|
6
|
+
* Fully specified ID of the intelligent field. Required when `targetField` is
|
|
7
|
+
* `IntelligentField`, and ignored otherwise.
|
|
8
|
+
*/
|
|
9
|
+
intelligentFieldId?: MavenAGI.EntityId;
|
|
5
10
|
}
|
|
@@ -38,6 +38,12 @@ export interface ConversationTableRequest extends MavenAGI.ConversationAnalytics
|
|
|
38
38
|
* If multiple fields are provided, the result is grouped by their unique value combinations.
|
|
39
39
|
* If empty, all data is aggregated into a single row. |
|
|
40
40
|
* Note: The field `CreatedAt` should not be used here, all time-based grouping should be done using the `timeGrouping` field.
|
|
41
|
+
*
|
|
42
|
+
* Note: A row's `identifier` cannot name an intelligent field, so an `IntelligentField`
|
|
43
|
+
* grouping is not currently distinguishable here from a second `IntelligentField` grouping,
|
|
44
|
+
* nor from `timeGrouping`. Row counts are correct in both cases, but the identifier keeps
|
|
45
|
+
* only one value. Use a single `IntelligentField` grouping with no `timeGrouping`, or a
|
|
46
|
+
* chart, which is unaffected.
|
|
41
47
|
*/
|
|
42
48
|
fieldGroupings: MavenAGI.ConversationGroupBy[];
|
|
43
49
|
/** Specifies the metrics to be displayed as columns. Column headers act as keys, with computed metric values as their mapped values. There needs to be at least one column definition in the table request. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Controls whether this charter's direct children mutually exclude each other when more than
|
|
3
|
+
* one of them matches a turn. Set on the parent (group) charter; it has no effect on a charter
|
|
4
|
+
* with no children.
|
|
5
|
+
*
|
|
6
|
+
* - DEFAULT: Standard behavior. A parent's children are mutually exclusive only when all of that
|
|
7
|
+
* parent's children are leaves — when they compete, only the highest-priority child
|
|
8
|
+
* (lowest userRank) is kept. If any child is itself a group (has children of its
|
|
9
|
+
* own), none of the parent's children are excluded.
|
|
10
|
+
* - ALLOW_OVERLAP: This charter's children never mutually exclude each other. Every child that
|
|
11
|
+
* matches is kept.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CharterChildrenExclusionPolicy: {
|
|
14
|
+
readonly Default: "DEFAULT";
|
|
15
|
+
readonly AllowOverlap: "ALLOW_OVERLAP";
|
|
16
|
+
};
|
|
17
|
+
export type CharterChildrenExclusionPolicy = (typeof CharterChildrenExclusionPolicy)[keyof typeof CharterChildrenExclusionPolicy] | string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CharterChildrenExclusionPolicy = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Controls whether this charter's direct children mutually exclude each other when more than
|
|
7
|
+
* one of them matches a turn. Set on the parent (group) charter; it has no effect on a charter
|
|
8
|
+
* with no children.
|
|
9
|
+
*
|
|
10
|
+
* - DEFAULT: Standard behavior. A parent's children are mutually exclusive only when all of that
|
|
11
|
+
* parent's children are leaves — when they compete, only the highest-priority child
|
|
12
|
+
* (lowest userRank) is kept. If any child is itself a group (has children of its
|
|
13
|
+
* own), none of the parent's children are excluded.
|
|
14
|
+
* - ALLOW_OVERLAP: This charter's children never mutually exclude each other. Every child that
|
|
15
|
+
* matches is kept.
|
|
16
|
+
*/
|
|
17
|
+
exports.CharterChildrenExclusionPolicy = {
|
|
18
|
+
Default: "DEFAULT",
|
|
19
|
+
AllowOverlap: "ALLOW_OVERLAP",
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The lifecycle status of a charter.
|
|
3
|
+
*
|
|
4
|
+
* - ACTIVE: The charter is active and will be evaluated during Q&A. The caller is responsible
|
|
5
|
+
* for ensuring ancestor charters are also ACTIVE if the full subtree should be reachable.
|
|
6
|
+
* - INACTIVE: The charter is inactive. It retains its rank among siblings and its descendants retain their statuses.
|
|
7
|
+
* However, it and its descendants are skipped during runtime Q&A evaluation.
|
|
8
|
+
* - DELETED: The charter has been soft deleted. Excluded from searches and cannot be modified.
|
|
9
|
+
* Deleting a charter cascades to all descendants (they are also soft-deleted).
|
|
10
|
+
*/
|
|
11
|
+
export declare const CharterStatus: {
|
|
12
|
+
readonly Active: "ACTIVE";
|
|
13
|
+
readonly Inactive: "INACTIVE";
|
|
14
|
+
readonly Deleted: "DELETED";
|
|
15
|
+
};
|
|
16
|
+
export type CharterStatus = (typeof CharterStatus)[keyof typeof CharterStatus] | string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CharterStatus = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* The lifecycle status of a charter.
|
|
7
|
+
*
|
|
8
|
+
* - ACTIVE: The charter is active and will be evaluated during Q&A. The caller is responsible
|
|
9
|
+
* for ensuring ancestor charters are also ACTIVE if the full subtree should be reachable.
|
|
10
|
+
* - INACTIVE: The charter is inactive. It retains its rank among siblings and its descendants retain their statuses.
|
|
11
|
+
* However, it and its descendants are skipped during runtime Q&A evaluation.
|
|
12
|
+
* - DELETED: The charter has been soft deleted. Excluded from searches and cannot be modified.
|
|
13
|
+
* Deleting a charter cascades to all descendants (they are also soft-deleted).
|
|
14
|
+
*/
|
|
15
|
+
exports.CharterStatus = {
|
|
16
|
+
Active: "ACTIVE",
|
|
17
|
+
Inactive: "INACTIVE",
|
|
18
|
+
Deleted: "DELETED",
|
|
19
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A lightweight charter representation for search results and ancestor paths.
|
|
4
|
+
* Use the get endpoint to retrieve the full charter with references, manual, and children.
|
|
5
|
+
*/
|
|
6
|
+
export interface CharterSummary {
|
|
7
|
+
/** ID that uniquely identifies this charter. */
|
|
8
|
+
charterId: MavenAGI.EntityId;
|
|
9
|
+
/** The display name of the charter. */
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* The segment controlling when this charter applies. Null means wildcard
|
|
13
|
+
* (always matches).
|
|
14
|
+
*/
|
|
15
|
+
segmentSummary: MavenAGI.SegmentSummary | null;
|
|
16
|
+
/** The ID of the parent charter. Null for root-level charters. */
|
|
17
|
+
parentCharterId: MavenAGI.EntityId | null;
|
|
18
|
+
/** The lifecycle status of this charter. */
|
|
19
|
+
status: MavenAGI.CharterStatus;
|
|
20
|
+
/** The behavioral mode for this charter. Defaults to STANDARD. */
|
|
21
|
+
type?: MavenAGI.CharterType;
|
|
22
|
+
/** Whether this charter's children mutually exclude each other. Defaults to DEFAULT. */
|
|
23
|
+
childrenExclusionPolicy?: MavenAGI.CharterChildrenExclusionPolicy;
|
|
24
|
+
/** The date and time this charter was created. */
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
/** The date and time this charter was last updated. */
|
|
27
|
+
updatedAt: Date;
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The behavioral mode for a charter.
|
|
3
|
+
*
|
|
4
|
+
* - STANDARD: Default. The charter's manual is delivered to the LLM as instructions,
|
|
5
|
+
* concatenated with ancestor charter manuals before delivery.
|
|
6
|
+
* - STRICT_RETURN: When matched, this charter's manual becomes the response: it is returned
|
|
7
|
+
* verbatim, without invoking the LLM. The charter cannot have children, and
|
|
8
|
+
* its manual must be non-blank — the manual is the response.
|
|
9
|
+
*
|
|
10
|
+
* A STRICT_RETURN charter references nothing: both `knowledgeBaseIds` and
|
|
11
|
+
* `actionIds` must be empty, and a create or update supplying either is
|
|
12
|
+
* rejected. With no LLM in the turn there is nothing to consult a knowledge
|
|
13
|
+
* base or to choose an action.
|
|
14
|
+
*
|
|
15
|
+
* A STRICT_RETURN charter is matched exactly like any other charter — same
|
|
16
|
+
* ordering and mutual-exclusion rules. The only difference is what a match
|
|
17
|
+
* does: the first matched STRICT_RETURN charter takes over the turn, so its
|
|
18
|
+
* manual is the whole response and every other matched charter is ignored.
|
|
19
|
+
* (At most one applies per turn.)
|
|
20
|
+
*/
|
|
21
|
+
export declare const CharterType: {
|
|
22
|
+
readonly Standard: "STANDARD";
|
|
23
|
+
readonly StrictReturn: "STRICT_RETURN";
|
|
24
|
+
};
|
|
25
|
+
export type CharterType = (typeof CharterType)[keyof typeof CharterType] | string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CharterType = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* The behavioral mode for a charter.
|
|
7
|
+
*
|
|
8
|
+
* - STANDARD: Default. The charter's manual is delivered to the LLM as instructions,
|
|
9
|
+
* concatenated with ancestor charter manuals before delivery.
|
|
10
|
+
* - STRICT_RETURN: When matched, this charter's manual becomes the response: it is returned
|
|
11
|
+
* verbatim, without invoking the LLM. The charter cannot have children, and
|
|
12
|
+
* its manual must be non-blank — the manual is the response.
|
|
13
|
+
*
|
|
14
|
+
* A STRICT_RETURN charter references nothing: both `knowledgeBaseIds` and
|
|
15
|
+
* `actionIds` must be empty, and a create or update supplying either is
|
|
16
|
+
* rejected. With no LLM in the turn there is nothing to consult a knowledge
|
|
17
|
+
* base or to choose an action.
|
|
18
|
+
*
|
|
19
|
+
* A STRICT_RETURN charter is matched exactly like any other charter — same
|
|
20
|
+
* ordering and mutual-exclusion rules. The only difference is what a match
|
|
21
|
+
* does: the first matched STRICT_RETURN charter takes over the turn, so its
|
|
22
|
+
* manual is the whole response and every other matched charter is ignored.
|
|
23
|
+
* (At most one applies per turn.)
|
|
24
|
+
*/
|
|
25
|
+
exports.CharterType = {
|
|
26
|
+
Standard: "STANDARD",
|
|
27
|
+
StrictReturn: "STRICT_RETURN",
|
|
28
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CharterChildrenExclusionPolicy"), exports);
|
|
18
|
+
__exportStar(require("./CharterStatus"), exports);
|
|
19
|
+
__exportStar(require("./CharterSummary"), exports);
|
|
20
|
+
__exportStar(require("./CharterType"), exports);
|
|
@@ -19,8 +19,8 @@ export interface ActionParameter {
|
|
|
19
19
|
*
|
|
20
20
|
* **Schema Requirements:**
|
|
21
21
|
* - Root type must be "object" - The top-level schema must define an object type
|
|
22
|
-
* - Supported types: string, number,
|
|
23
|
-
* -
|
|
22
|
+
* - Supported types: string, number, integer, boolean, object, array, null
|
|
23
|
+
* - Structural keywords only: properties, required, additionalProperties, items, anyOf, enum, const (with a sibling type), $defs/$ref, description. Value constraints such as pattern, format, minimum or minItems, and combinators such as oneOf, allOf and if/then/else, are not accepted
|
|
24
24
|
* - Required fields: All fields must be required (no optional properties)
|
|
25
25
|
* - Additional properties: Must be set to false
|
|
26
26
|
*
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The structured answer for an ask whose `textFormat` was `jsonSchema`. Accompanies the `BotTextResponse` rather than replacing it — the same turn produces both, so the conversation still reads as prose.
|
|
3
3
|
*/
|
|
4
4
|
export interface BotObjectResponse {
|
|
5
|
-
/**
|
|
6
|
-
label?: string;
|
|
7
|
-
/** The generated object conforming to the provided schema. */
|
|
5
|
+
/** The answer, matching the schema the ask supplied. Every property the schema requires is present, with `null` where a nullable one does not apply. */
|
|
8
6
|
object?: unknown;
|
|
9
7
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A condition on a single value, discriminated by the type the value is
|
|
4
|
+
* validated as. Used wherever a value needs testing regardless of where it
|
|
5
|
+
* came from: an intelligent field's computed value, or a value addressed by
|
|
6
|
+
* path inside data an action returned.
|
|
7
|
+
*
|
|
8
|
+
* Pick the variant by type:
|
|
9
|
+
* - `string`: For STRING and MULTILINE values
|
|
10
|
+
* - `numeric`: For NUMBER values
|
|
11
|
+
* - `boolean`: For BOOLEAN values
|
|
12
|
+
* - `set`: For MULTI_SELECT values (unordered set of values)
|
|
13
|
+
*
|
|
14
|
+
* The declared type is what the value is coerced to, not an assertion about
|
|
15
|
+
* how it is already stored. Action data is untyped, so a `numeric` condition
|
|
16
|
+
* against it coerces the same way a `numeric` intelligent field condition
|
|
17
|
+
* coerces a STRING field the bot was asked to answer with a number.
|
|
18
|
+
*
|
|
19
|
+
* For intelligent fields specifically: single select fields are represented
|
|
20
|
+
* as STRING/NUMBER with a list of enumOptions, and the caller is responsible
|
|
21
|
+
* for querying the validationType and enumOptions from the intelligent field
|
|
22
|
+
* API to ensure the values are valid enumOptions.
|
|
23
|
+
*/
|
|
24
|
+
export type FieldCondition = MavenAGI.FieldCondition.String | MavenAGI.FieldCondition.Numeric | MavenAGI.FieldCondition.Boolean | MavenAGI.FieldCondition.Set | MavenAGI.FieldCondition.Universal;
|
|
25
|
+
export declare namespace FieldCondition {
|
|
26
|
+
interface String {
|
|
27
|
+
fieldValidationType: "string";
|
|
28
|
+
value: MavenAGI.StringCondition;
|
|
29
|
+
}
|
|
30
|
+
interface Numeric {
|
|
31
|
+
fieldValidationType: "numeric";
|
|
32
|
+
value: MavenAGI.NumericCondition;
|
|
33
|
+
}
|
|
34
|
+
interface Boolean extends MavenAGI.BooleanCondition {
|
|
35
|
+
fieldValidationType: "boolean";
|
|
36
|
+
}
|
|
37
|
+
interface Set {
|
|
38
|
+
fieldValidationType: "set";
|
|
39
|
+
value: MavenAGI.SetCondition;
|
|
40
|
+
}
|
|
41
|
+
interface Universal {
|
|
42
|
+
fieldValidationType: "universal";
|
|
43
|
+
value: MavenAGI.UniversalCondition;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -15,5 +15,5 @@ export interface IntelligentFieldPrecondition {
|
|
|
15
15
|
/** The ID of the intelligent field. */
|
|
16
16
|
fieldIdWithoutAgent: MavenAGI.EntityIdWithoutAgent;
|
|
17
17
|
/** The condition to evaluate against the field's value. */
|
|
18
|
-
fieldCondition: MavenAGI.
|
|
18
|
+
fieldCondition: MavenAGI.FieldCondition;
|
|
19
19
|
}
|
|
@@ -9,5 +9,5 @@ export interface IntelligentFieldPreconditionResponse {
|
|
|
9
9
|
/** Human-readable display name of the intelligent field. Resolved server-side. */
|
|
10
10
|
name?: string;
|
|
11
11
|
/** The condition to evaluate against the field's value. */
|
|
12
|
-
fieldCondition: MavenAGI.
|
|
12
|
+
fieldCondition: MavenAGI.FieldCondition;
|
|
13
13
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* What form an ask's answer takes. See `AskRequest.textFormat`.
|
|
4
|
+
*/
|
|
5
|
+
export type TextFormat = MavenAGI.TextFormat.Text | MavenAGI.TextFormat.JsonSchema;
|
|
6
|
+
export declare namespace TextFormat {
|
|
7
|
+
interface Text extends MavenAGI.TextFormatText {
|
|
8
|
+
type: "text";
|
|
9
|
+
}
|
|
10
|
+
interface JsonSchema extends MavenAGI.TextFormatJsonSchema {
|
|
11
|
+
type: "jsonSchema";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A JSON object matching a schema, returned as a `BotObjectResponse`.
|
|
3
|
+
*/
|
|
4
|
+
export interface TextFormatJsonSchema {
|
|
5
|
+
/**
|
|
6
|
+
* The required shape. Property names and their `description`s are what tell the agent how
|
|
7
|
+
* to fill each field, so name and describe them as you would for a reader.
|
|
8
|
+
*
|
|
9
|
+
* The answer is enforced against this schema rather than merely guided by it, so the schema
|
|
10
|
+
* has to be one that can be enforced. Each rule is checked when the request arrives.
|
|
11
|
+
*
|
|
12
|
+
* **Schema Requirements:**
|
|
13
|
+
* - Root type must be "object" with a non-empty `properties` map
|
|
14
|
+
* - Supported types: string, number, integer, boolean, object, array, null
|
|
15
|
+
* - Structural keywords only: properties, required, additionalProperties, items, anyOf, enum, const (with a sibling type), $defs/$ref, description. Value constraints such as pattern, format, minimum or minItems, and combinators such as oneOf, allOf and if/then/else, are not accepted
|
|
16
|
+
* - Required fields: All fields must be required (no optional properties). A value that may be absent is required with a type that includes `null`, so expect every property to come back, with `null` where it does not apply
|
|
17
|
+
* - Additional properties: Must be set to false
|
|
18
|
+
*
|
|
19
|
+
* **Limits:**
|
|
20
|
+
* - Maximum nesting depth: 5 levels
|
|
21
|
+
* - Maximum total properties: 100
|
|
22
|
+
* - Maximum total string length: 15,000 characters
|
|
23
|
+
* - Maximum total enum values: 500
|
|
24
|
+
*
|
|
25
|
+
* Recursive schemas are supported; a self-reference resolves against this schema. Describe
|
|
26
|
+
* the object as a whole with `description` below, and annotate individual fields with their
|
|
27
|
+
* own `description`.
|
|
28
|
+
*/
|
|
29
|
+
schema?: unknown;
|
|
30
|
+
/**
|
|
31
|
+
* What the object as a whole is for, where a property's own `description` describes that one field. Takes precedence over a `description` at the root of the schema.
|
|
32
|
+
* Keep it to a description of the object. It is not a place to put instructions for the agent or per-request context — those belong in the agent's own configuration and in `text`.
|
|
33
|
+
*/
|
|
34
|
+
description?: string;
|
|
35
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
/**
|
|
3
|
-
* Type-independent conditions that apply to any
|
|
4
|
-
*
|
|
3
|
+
* Type-independent conditions that apply to any value regardless of the type it is
|
|
4
|
+
* validated as. Currently only a presence (determined/undetermined) check. Modeled as
|
|
5
5
|
* its own discriminated union so future type-independent operators can be added without
|
|
6
|
-
* changing the top-level
|
|
6
|
+
* changing the top-level FieldCondition union.
|
|
7
7
|
*/
|
|
8
8
|
export type UniversalCondition = MavenAGI.UniversalCondition.Presence;
|
|
9
9
|
export declare namespace UniversalCondition {
|
|
@@ -102,6 +102,7 @@ export * from "./Feedback";
|
|
|
102
102
|
export * from "./FeedbackBase";
|
|
103
103
|
export * from "./FeedbackInfo";
|
|
104
104
|
export * from "./FeedbackType";
|
|
105
|
+
export * from "./FieldCondition";
|
|
105
106
|
export * from "./GeoInfo";
|
|
106
107
|
export * from "./HarmfulContentAnalysis";
|
|
107
108
|
export * from "./ImageSettingsSchemaEntry";
|
|
@@ -118,7 +119,6 @@ export * from "./InboxItemSeverity";
|
|
|
118
119
|
export * from "./InboxItemStatus";
|
|
119
120
|
export * from "./InboxItemType";
|
|
120
121
|
export * from "./InitializeConversationResponse";
|
|
121
|
-
export * from "./IntelligentFieldCondition";
|
|
122
122
|
export * from "./IntelligentFieldPrecondition";
|
|
123
123
|
export * from "./IntelligentFieldPreconditionResponse";
|
|
124
124
|
export * from "./IntelligentFieldValueResponse";
|
|
@@ -199,6 +199,9 @@ export * from "./SwitchSettingsSchemaEntry";
|
|
|
199
199
|
export * from "./SystemEvent";
|
|
200
200
|
export * from "./SystemEventName";
|
|
201
201
|
export * from "./TagsPrecondition";
|
|
202
|
+
export * from "./TextFormat";
|
|
203
|
+
export * from "./TextFormatJsonSchema";
|
|
204
|
+
export * from "./TextFormatText";
|
|
202
205
|
export * from "./TextSettingsSchemaEntry";
|
|
203
206
|
export * from "./UniversalCondition";
|
|
204
207
|
export * from "./UserConversationMessageType";
|
|
@@ -118,6 +118,7 @@ __exportStar(require("./Feedback"), exports);
|
|
|
118
118
|
__exportStar(require("./FeedbackBase"), exports);
|
|
119
119
|
__exportStar(require("./FeedbackInfo"), exports);
|
|
120
120
|
__exportStar(require("./FeedbackType"), exports);
|
|
121
|
+
__exportStar(require("./FieldCondition"), exports);
|
|
121
122
|
__exportStar(require("./GeoInfo"), exports);
|
|
122
123
|
__exportStar(require("./HarmfulContentAnalysis"), exports);
|
|
123
124
|
__exportStar(require("./ImageSettingsSchemaEntry"), exports);
|
|
@@ -134,7 +135,6 @@ __exportStar(require("./InboxItemSeverity"), exports);
|
|
|
134
135
|
__exportStar(require("./InboxItemStatus"), exports);
|
|
135
136
|
__exportStar(require("./InboxItemType"), exports);
|
|
136
137
|
__exportStar(require("./InitializeConversationResponse"), exports);
|
|
137
|
-
__exportStar(require("./IntelligentFieldCondition"), exports);
|
|
138
138
|
__exportStar(require("./IntelligentFieldPrecondition"), exports);
|
|
139
139
|
__exportStar(require("./IntelligentFieldPreconditionResponse"), exports);
|
|
140
140
|
__exportStar(require("./IntelligentFieldValueResponse"), exports);
|
|
@@ -215,6 +215,9 @@ __exportStar(require("./SwitchSettingsSchemaEntry"), exports);
|
|
|
215
215
|
__exportStar(require("./SystemEvent"), exports);
|
|
216
216
|
__exportStar(require("./SystemEventName"), exports);
|
|
217
217
|
__exportStar(require("./TagsPrecondition"), exports);
|
|
218
|
+
__exportStar(require("./TextFormat"), exports);
|
|
219
|
+
__exportStar(require("./TextFormatJsonSchema"), exports);
|
|
220
|
+
__exportStar(require("./TextFormatText"), exports);
|
|
218
221
|
__exportStar(require("./TextSettingsSchemaEntry"), exports);
|
|
219
222
|
__exportStar(require("./UniversalCondition"), exports);
|
|
220
223
|
__exportStar(require("./UserConversationMessageType"), exports);
|