mavenagi 1.2.55 → 1.2.56
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/api/resources/commons/types/BaseConversationResponse.d.ts +5 -0
- package/api/resources/commons/types/ConversationExecutedActionPrecondition.d.ts +13 -0
- package/api/resources/commons/types/ConversationMode.d.ts +10 -0
- package/api/resources/commons/types/ConversationMode.js +13 -0
- package/api/resources/commons/types/ConversationModePrecondition.d.ts +10 -0
- package/api/resources/commons/types/ConversationModePrecondition.js +3 -0
- package/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
- package/api/resources/commons/types/ConversationPreconditionResponse.d.ts +4 -1
- package/api/resources/commons/types/ConversationResponse.d.ts +1 -0
- package/api/resources/commons/types/KeyValueEntryCondition.d.ts +13 -0
- package/api/resources/commons/types/KeyValueEntryCondition.js +3 -0
- package/api/resources/commons/types/ObjectCondition.d.ts +10 -0
- package/api/resources/commons/types/ObjectCondition.js +3 -0
- package/api/resources/commons/types/index.d.ts +4 -0
- package/api/resources/commons/types/index.js +4 -0
- package/api/resources/knowledge/client/Client.d.ts +6 -3
- package/api/resources/knowledge/client/Client.js +6 -3
- package/api/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +5 -1
- package/api/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +5 -1
- package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +3 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +3 -0
- package/package.json +1 -1
- package/reference.md +6 -3
- package/serialization/resources/commons/types/BaseConversationResponse.d.ts +2 -0
- package/serialization/resources/commons/types/BaseConversationResponse.js +2 -0
- package/serialization/resources/commons/types/ConversationExecutedActionPrecondition.d.ts +2 -0
- package/serialization/resources/commons/types/ConversationExecutedActionPrecondition.js +2 -0
- package/serialization/resources/commons/types/ConversationMode.d.ts +7 -0
- package/serialization/resources/commons/types/ConversationMode.js +39 -0
- package/serialization/resources/commons/types/ConversationModePrecondition.d.ts +11 -0
- package/serialization/resources/commons/types/ConversationModePrecondition.js +45 -0
- package/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
- package/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
- package/serialization/resources/commons/types/ConversationPreconditionResponse.d.ts +5 -1
- package/serialization/resources/commons/types/ConversationPreconditionResponse.js +2 -0
- package/serialization/resources/commons/types/KeyValueEntryCondition.d.ts +11 -0
- package/serialization/resources/commons/types/KeyValueEntryCondition.js +43 -0
- package/serialization/resources/commons/types/ObjectCondition.d.ts +11 -0
- package/serialization/resources/commons/types/ObjectCondition.js +47 -0
- package/serialization/resources/commons/types/index.d.ts +4 -0
- package/serialization/resources/commons/types/index.js +4 -0
- package/serialization/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.d.ts +1 -0
- package/serialization/resources/knowledge/types/CancelKnowledgeBaseVersionRequest.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionFinalizeStatus.js +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionStatus.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
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.56",
|
|
47
|
+
"User-Agent": "mavenagi/1.2.56",
|
|
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,
|
|
@@ -47,4 +47,9 @@ export interface BaseConversationResponse {
|
|
|
47
47
|
* - `SPAWN_TO`: the conversations that were spawned from this conversation.
|
|
48
48
|
*/
|
|
49
49
|
relatedEntities?: Partial<Record<MavenAGI.RelationshipType, MavenAGI.EntityId[]>>;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the conversation is spoken or written. Set by the platform and read-only —
|
|
52
|
+
* it cannot be supplied when creating or updating a conversation.
|
|
53
|
+
*/
|
|
54
|
+
conversationMode?: MavenAGI.ConversationMode;
|
|
50
55
|
}
|
|
@@ -6,4 +6,17 @@ export interface ConversationExecutedActionPrecondition extends MavenAGI.Precond
|
|
|
6
6
|
appId?: string;
|
|
7
7
|
/** Restricts which round the action must have executed in. Defaults to ANY when omitted, matching an action executed in any round. */
|
|
8
8
|
conversationRound?: MavenAGI.ConversationRound;
|
|
9
|
+
/**
|
|
10
|
+
* Restricts the match to executions whose returned data satisfies this condition.
|
|
11
|
+
* When omitted, any execution of the action matches regardless of what it returned.
|
|
12
|
+
*
|
|
13
|
+
* Actions may return `{response, data}`, where `data` is a JSON object persisted
|
|
14
|
+
* alongside the response. This gates the precondition on what the action returned
|
|
15
|
+
* rather than only on whether it ran.
|
|
16
|
+
*
|
|
17
|
+
* The precondition is met when *some* execution of the action in scope returned data
|
|
18
|
+
* satisfying this condition. An action that executed but returned no data never
|
|
19
|
+
* matches, except via `universal` `IS_UNDETERMINED`.
|
|
20
|
+
*/
|
|
21
|
+
dataCondition?: MavenAGI.ObjectCondition;
|
|
9
22
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Whether a conversation is spoken or written. */
|
|
2
|
+
export declare const ConversationMode: {
|
|
3
|
+
/**
|
|
4
|
+
* A spoken conversation — phone or realtime audio. */
|
|
5
|
+
readonly Voice: "VOICE";
|
|
6
|
+
/**
|
|
7
|
+
* A written conversation. The default for any conversation the platform does not identify as voice. */
|
|
8
|
+
readonly Text: "TEXT";
|
|
9
|
+
};
|
|
10
|
+
export type ConversationMode = (typeof ConversationMode)[keyof typeof ConversationMode] | string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ConversationMode = void 0;
|
|
5
|
+
/** Whether a conversation is spoken or written. */
|
|
6
|
+
exports.ConversationMode = {
|
|
7
|
+
/**
|
|
8
|
+
* A spoken conversation — phone or realtime audio. */
|
|
9
|
+
Voice: "VOICE",
|
|
10
|
+
/**
|
|
11
|
+
* A written conversation. The default for any conversation the platform does not identify as voice. */
|
|
12
|
+
Text: "TEXT",
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A precondition based on the mode — voice or text — the conversation is running in.
|
|
4
|
+
*
|
|
5
|
+
* The mode is set by the platform and is not customer-writable.
|
|
6
|
+
*/
|
|
7
|
+
export interface ConversationModePrecondition extends MavenAGI.PreconditionBase {
|
|
8
|
+
/** The mode the conversation must be running in for the precondition to be met. Omit the operator for an exact match, or set it to NOT to invert (NOT + VOICE is equivalent to TEXT). Any other operator is rejected with a 400. */
|
|
9
|
+
conversationMode: MavenAGI.ConversationMode;
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
|
-
export type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted | MavenAGI.ConversationPrecondition.ResponseConfig | MavenAGI.ConversationPrecondition.App | MavenAGI.ConversationPrecondition.ConversationState | MavenAGI.ConversationPrecondition.IntelligentField;
|
|
2
|
+
export type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted | MavenAGI.ConversationPrecondition.ResponseConfig | MavenAGI.ConversationPrecondition.App | MavenAGI.ConversationPrecondition.ConversationState | MavenAGI.ConversationPrecondition.ConversationMode | MavenAGI.ConversationPrecondition.IntelligentField;
|
|
3
3
|
export declare namespace ConversationPrecondition {
|
|
4
4
|
interface Tags extends MavenAGI.TagsPrecondition {
|
|
5
5
|
conversationPreconditionType: "tags";
|
|
@@ -19,6 +19,9 @@ export declare namespace ConversationPrecondition {
|
|
|
19
19
|
interface ConversationState extends MavenAGI.ConversationStatePrecondition {
|
|
20
20
|
conversationPreconditionType: "conversationState";
|
|
21
21
|
}
|
|
22
|
+
interface ConversationMode extends MavenAGI.ConversationModePrecondition {
|
|
23
|
+
conversationPreconditionType: "conversationMode";
|
|
24
|
+
}
|
|
22
25
|
interface IntelligentField extends MavenAGI.IntelligentFieldPrecondition {
|
|
23
26
|
conversationPreconditionType: "intelligentField";
|
|
24
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
|
-
export type ConversationPreconditionResponse = MavenAGI.ConversationPreconditionResponse.Tags | MavenAGI.ConversationPreconditionResponse.Metadata | MavenAGI.ConversationPreconditionResponse.ActionExecuted | MavenAGI.ConversationPreconditionResponse.ResponseConfig | MavenAGI.ConversationPreconditionResponse.App | MavenAGI.ConversationPreconditionResponse.ConversationState | MavenAGI.ConversationPreconditionResponse.IntelligentField;
|
|
2
|
+
export type ConversationPreconditionResponse = MavenAGI.ConversationPreconditionResponse.Tags | MavenAGI.ConversationPreconditionResponse.Metadata | MavenAGI.ConversationPreconditionResponse.ActionExecuted | MavenAGI.ConversationPreconditionResponse.ResponseConfig | MavenAGI.ConversationPreconditionResponse.App | MavenAGI.ConversationPreconditionResponse.ConversationState | MavenAGI.ConversationPreconditionResponse.ConversationMode | MavenAGI.ConversationPreconditionResponse.IntelligentField;
|
|
3
3
|
export declare namespace ConversationPreconditionResponse {
|
|
4
4
|
interface Tags extends MavenAGI.TagsPrecondition {
|
|
5
5
|
conversationPreconditionType: "tags";
|
|
@@ -19,6 +19,9 @@ export declare namespace ConversationPreconditionResponse {
|
|
|
19
19
|
interface ConversationState extends MavenAGI.ConversationStatePrecondition {
|
|
20
20
|
conversationPreconditionType: "conversationState";
|
|
21
21
|
}
|
|
22
|
+
interface ConversationMode extends MavenAGI.ConversationModePrecondition {
|
|
23
|
+
conversationPreconditionType: "conversationMode";
|
|
24
|
+
}
|
|
22
25
|
interface IntelligentField extends MavenAGI.IntelligentFieldPreconditionResponse {
|
|
23
26
|
conversationPreconditionType: "intelligentField";
|
|
24
27
|
}
|
|
@@ -12,6 +12,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
12
12
|
* deleted: false,
|
|
13
13
|
* open: false,
|
|
14
14
|
* llmEnabled: true,
|
|
15
|
+
* conversationMode: MavenAGI.ConversationMode.Text,
|
|
15
16
|
* analysis: {
|
|
16
17
|
* resolutionStatus: MavenAGI.ResolutionStatus.Resolved,
|
|
17
18
|
* sentiment: MavenAGI.Sentiment.Positive,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A condition on one entry inside a JSON object, addressed by path.
|
|
4
|
+
*/
|
|
5
|
+
export interface KeyValueEntryCondition {
|
|
6
|
+
/**
|
|
7
|
+
* Dot-separated path to a value inside the object, e.g. `name` or `customer.tier`. Array elements are indexed with brackets (`orders[0].id`), and a key containing a dot needs bracket notation (`['a.b']`). A path that reaches nothing resolves to undetermined rather than failing.
|
|
8
|
+
* The path must address a single value. Wildcards, filters, slices and recursive descent (`orders[*].total`, `$..total`) address many values and are rejected, as is a path with a syntax error.
|
|
9
|
+
*/
|
|
10
|
+
path: string;
|
|
11
|
+
/** The condition to evaluate against the value at `path`. */
|
|
12
|
+
condition: MavenAGI.IntelligentFieldCondition;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A condition on a JSON object.
|
|
4
|
+
*/
|
|
5
|
+
export type ObjectCondition = MavenAGI.ObjectCondition.Entry;
|
|
6
|
+
export declare namespace ObjectCondition {
|
|
7
|
+
interface Entry extends MavenAGI.KeyValueEntryCondition {
|
|
8
|
+
objectConditionType: "entry";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -65,6 +65,8 @@ export * from "./ConversationKickoffExecutionResponse";
|
|
|
65
65
|
export * from "./ConversationKickoffStatus";
|
|
66
66
|
export * from "./ConversationMessageBase";
|
|
67
67
|
export * from "./ConversationMessageResponse";
|
|
68
|
+
export * from "./ConversationMode";
|
|
69
|
+
export * from "./ConversationModePrecondition";
|
|
68
70
|
export * from "./ConversationPrecondition";
|
|
69
71
|
export * from "./ConversationPreconditionResponse";
|
|
70
72
|
export * from "./ConversationPreview";
|
|
@@ -122,6 +124,7 @@ export * from "./IntelligentFieldPreconditionResponse";
|
|
|
122
124
|
export * from "./IntelligentFieldValueResponse";
|
|
123
125
|
export * from "./IpInfo";
|
|
124
126
|
export * from "./JsonSchemaSettingsSchemaEntry";
|
|
127
|
+
export * from "./KeyValueEntryCondition";
|
|
125
128
|
export * from "./KnowledgeContextByEntities";
|
|
126
129
|
export * from "./KnowledgeContextByEntityTypes";
|
|
127
130
|
export * from "./KnowledgeContextFilter";
|
|
@@ -143,6 +146,7 @@ export * from "./NumericMembershipCondition";
|
|
|
143
146
|
export * from "./NumericMembershipOperator";
|
|
144
147
|
export * from "./OAuthAuthenticationMethod";
|
|
145
148
|
export * from "./OAuthSettingsSchemaEntry";
|
|
149
|
+
export * from "./ObjectCondition";
|
|
146
150
|
export * from "./OneOfSettingsSchemaEntry";
|
|
147
151
|
export * from "./OsInfo";
|
|
148
152
|
export * from "./OsType";
|
|
@@ -81,6 +81,8 @@ __exportStar(require("./ConversationKickoffExecutionResponse"), exports);
|
|
|
81
81
|
__exportStar(require("./ConversationKickoffStatus"), exports);
|
|
82
82
|
__exportStar(require("./ConversationMessageBase"), exports);
|
|
83
83
|
__exportStar(require("./ConversationMessageResponse"), exports);
|
|
84
|
+
__exportStar(require("./ConversationMode"), exports);
|
|
85
|
+
__exportStar(require("./ConversationModePrecondition"), exports);
|
|
84
86
|
__exportStar(require("./ConversationPrecondition"), exports);
|
|
85
87
|
__exportStar(require("./ConversationPreconditionResponse"), exports);
|
|
86
88
|
__exportStar(require("./ConversationPreview"), exports);
|
|
@@ -138,6 +140,7 @@ __exportStar(require("./IntelligentFieldPreconditionResponse"), exports);
|
|
|
138
140
|
__exportStar(require("./IntelligentFieldValueResponse"), exports);
|
|
139
141
|
__exportStar(require("./IpInfo"), exports);
|
|
140
142
|
__exportStar(require("./JsonSchemaSettingsSchemaEntry"), exports);
|
|
143
|
+
__exportStar(require("./KeyValueEntryCondition"), exports);
|
|
141
144
|
__exportStar(require("./KnowledgeContextByEntities"), exports);
|
|
142
145
|
__exportStar(require("./KnowledgeContextByEntityTypes"), exports);
|
|
143
146
|
__exportStar(require("./KnowledgeContextFilter"), exports);
|
|
@@ -159,6 +162,7 @@ __exportStar(require("./NumericMembershipCondition"), exports);
|
|
|
159
162
|
__exportStar(require("./NumericMembershipOperator"), exports);
|
|
160
163
|
__exportStar(require("./OAuthAuthenticationMethod"), exports);
|
|
161
164
|
__exportStar(require("./OAuthSettingsSchemaEntry"), exports);
|
|
165
|
+
__exportStar(require("./ObjectCondition"), exports);
|
|
162
166
|
__exportStar(require("./OneOfSettingsSchemaEntry"), exports);
|
|
163
167
|
__exportStar(require("./OsInfo"), exports);
|
|
164
168
|
__exportStar(require("./OsType"), exports);
|
|
@@ -91,10 +91,13 @@ export declare class KnowledgeClient {
|
|
|
91
91
|
refreshKnowledgeBase(knowledgeBaseReferenceId: string, request: MavenAGI.KnowledgeBaseRefreshRequest, requestOptions?: KnowledgeClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
92
92
|
private __refreshKnowledgeBase;
|
|
93
93
|
/**
|
|
94
|
-
* in-progress knowledge base version.
|
|
94
|
+
* Cancel an in-progress knowledge base version.
|
|
95
95
|
*
|
|
96
|
-
* If the knowledge base has a version that is currently being ingested,
|
|
97
|
-
*
|
|
96
|
+
* If the knowledge base has a version that is currently being ingested, this cancels the
|
|
97
|
+
* ingestion workflow and sets the version status to CANCELED.
|
|
98
|
+
*
|
|
99
|
+
* An app still refreshing that version finds out on its next write to it: adding or
|
|
100
|
+
* removing a document on a canceled version is rejected rather than succeeding.
|
|
98
101
|
*
|
|
99
102
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to cancel ingestion for. All other entity ID fields are inferred from the request.
|
|
100
103
|
* @param {MavenAGI.CancelKnowledgeBaseVersionRequest} request
|
|
@@ -462,10 +462,13 @@ class KnowledgeClient {
|
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
|
-
* in-progress knowledge base version.
|
|
465
|
+
* Cancel an in-progress knowledge base version.
|
|
466
466
|
*
|
|
467
|
-
* If the knowledge base has a version that is currently being ingested,
|
|
468
|
-
*
|
|
467
|
+
* If the knowledge base has a version that is currently being ingested, this cancels the
|
|
468
|
+
* ingestion workflow and sets the version status to CANCELED.
|
|
469
|
+
*
|
|
470
|
+
* An app still refreshing that version finds out on its next write to it: adding or
|
|
471
|
+
* removing a document on a canceled version is rejected rather than succeeding.
|
|
469
472
|
*
|
|
470
473
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to cancel ingestion for. All other entity ID fields are inferred from the request.
|
|
471
474
|
* @param {MavenAGI.CancelKnowledgeBaseVersionRequest} request
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface CancelKnowledgeBaseVersionRequest {
|
|
3
|
+
/** The App ID of the knowledge base to cancel. If not provided the ID of the calling app will be used. */
|
|
4
|
+
appId?: string;
|
|
3
5
|
/** ID that uniquely identifies which knowledge base version to cancel. If not provided will use the most recent version of the knowledge base. */
|
|
4
6
|
versionId?: MavenAGI.EntityIdWithoutAgent;
|
|
5
7
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** How the knowledge base version processing ended. */
|
|
2
2
|
export declare const KnowledgeBaseVersionFinalizeStatus: {
|
|
3
3
|
readonly Succeeded: "SUCCEEDED";
|
|
4
4
|
readonly Failed: "FAILED";
|
|
5
|
+
/**
|
|
6
|
+
* Processing stopped before completing because it was cancelled, rather than because it
|
|
7
|
+
* failed. */
|
|
8
|
+
readonly Canceled: "CANCELED";
|
|
5
9
|
};
|
|
6
10
|
export type KnowledgeBaseVersionFinalizeStatus = (typeof KnowledgeBaseVersionFinalizeStatus)[keyof typeof KnowledgeBaseVersionFinalizeStatus] | string;
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.KnowledgeBaseVersionFinalizeStatus = void 0;
|
|
5
|
-
/**
|
|
5
|
+
/** How the knowledge base version processing ended. */
|
|
6
6
|
exports.KnowledgeBaseVersionFinalizeStatus = {
|
|
7
7
|
Succeeded: "SUCCEEDED",
|
|
8
8
|
Failed: "FAILED",
|
|
9
|
+
/**
|
|
10
|
+
* Processing stopped before completing because it was cancelled, rather than because it
|
|
11
|
+
* failed. */
|
|
12
|
+
Canceled: "CANCELED",
|
|
9
13
|
};
|
|
@@ -3,5 +3,8 @@ export declare const KnowledgeBaseVersionStatus: {
|
|
|
3
3
|
readonly Succeeded: "SUCCEEDED";
|
|
4
4
|
readonly Failed: "FAILED";
|
|
5
5
|
readonly InProgress: "IN_PROGRESS";
|
|
6
|
+
/**
|
|
7
|
+
* Stopped before completing, by a cancel request rather than a failure. */
|
|
8
|
+
readonly Canceled: "CANCELED";
|
|
6
9
|
};
|
|
7
10
|
export type KnowledgeBaseVersionStatus = (typeof KnowledgeBaseVersionStatus)[keyof typeof KnowledgeBaseVersionStatus] | string;
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -4397,10 +4397,13 @@ await client.knowledge.refreshKnowledgeBase("help-center", {
|
|
|
4397
4397
|
<dl>
|
|
4398
4398
|
<dd>
|
|
4399
4399
|
|
|
4400
|
-
in-progress knowledge base version.
|
|
4400
|
+
Cancel an in-progress knowledge base version.
|
|
4401
4401
|
|
|
4402
|
-
If the knowledge base has a version that is currently being ingested,
|
|
4403
|
-
|
|
4402
|
+
If the knowledge base has a version that is currently being ingested, this cancels the
|
|
4403
|
+
ingestion workflow and sets the version status to CANCELED.
|
|
4404
|
+
|
|
4405
|
+
An app still refreshing that version finds out on its next write to it: adding or
|
|
4406
|
+
removing a document on a canceled version is rejected rather than succeeding.
|
|
4404
4407
|
</dd>
|
|
4405
4408
|
</dl>
|
|
4406
4409
|
</dd>
|
|
@@ -2,6 +2,7 @@ import type * as MavenAGI from "../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { ConversationAnalysis } from "./ConversationAnalysis";
|
|
5
|
+
import { ConversationMode } from "./ConversationMode";
|
|
5
6
|
import { ConversationSummary } from "./ConversationSummary";
|
|
6
7
|
import { EntityId } from "./EntityId";
|
|
7
8
|
import { RelationshipType } from "./RelationshipType";
|
|
@@ -26,5 +27,6 @@ export declare namespace BaseConversationResponse {
|
|
|
26
27
|
llmEnabled: boolean;
|
|
27
28
|
simulationContext?: SimulationContext.Raw | null;
|
|
28
29
|
relatedEntities?: Record<RelationshipType.Raw, EntityId.Raw[] | null | undefined> | null;
|
|
30
|
+
conversationMode?: ConversationMode.Raw | null;
|
|
29
31
|
}
|
|
30
32
|
}
|
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.BaseConversationResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const ConversationAnalysis_1 = require("./ConversationAnalysis");
|
|
40
|
+
const ConversationMode_1 = require("./ConversationMode");
|
|
40
41
|
const ConversationSummary_1 = require("./ConversationSummary");
|
|
41
42
|
const EntityId_1 = require("./EntityId");
|
|
42
43
|
const RelationshipType_1 = require("./RelationshipType");
|
|
@@ -61,4 +62,5 @@ exports.BaseConversationResponse = core.serialization.object({
|
|
|
61
62
|
relatedEntities: core.serialization
|
|
62
63
|
.partialRecord(RelationshipType_1.RelationshipType, core.serialization.list(EntityId_1.EntityId).optional())
|
|
63
64
|
.optional(),
|
|
65
|
+
conversationMode: ConversationMode_1.ConversationMode.optional(),
|
|
64
66
|
});
|
|
@@ -2,6 +2,7 @@ import type * as MavenAGI from "../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { ConversationRound } from "./ConversationRound";
|
|
5
|
+
import { ObjectCondition } from "./ObjectCondition";
|
|
5
6
|
import { PreconditionBase } from "./PreconditionBase";
|
|
6
7
|
export declare const ConversationExecutedActionPrecondition: core.serialization.ObjectSchema<serializers.ConversationExecutedActionPrecondition.Raw, MavenAGI.ConversationExecutedActionPrecondition>;
|
|
7
8
|
export declare namespace ConversationExecutedActionPrecondition {
|
|
@@ -9,5 +10,6 @@ export declare namespace ConversationExecutedActionPrecondition {
|
|
|
9
10
|
actionId: string;
|
|
10
11
|
appId?: string | null;
|
|
11
12
|
conversationRound?: ConversationRound.Raw | null;
|
|
13
|
+
dataCondition?: ObjectCondition.Raw | null;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -37,11 +37,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.ConversationExecutedActionPrecondition = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const ConversationRound_1 = require("./ConversationRound");
|
|
40
|
+
const ObjectCondition_1 = require("./ObjectCondition");
|
|
40
41
|
const PreconditionBase_1 = require("./PreconditionBase");
|
|
41
42
|
exports.ConversationExecutedActionPrecondition = core.serialization
|
|
42
43
|
.object({
|
|
43
44
|
actionId: core.serialization.string(),
|
|
44
45
|
appId: core.serialization.string().optional(),
|
|
45
46
|
conversationRound: ConversationRound_1.ConversationRound.optional(),
|
|
47
|
+
dataCondition: ObjectCondition_1.ObjectCondition.optional(),
|
|
46
48
|
})
|
|
47
49
|
.extend(PreconditionBase_1.PreconditionBase);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
export declare const ConversationMode: core.serialization.Schema<serializers.ConversationMode.Raw, MavenAGI.ConversationMode>;
|
|
5
|
+
export declare namespace ConversationMode {
|
|
6
|
+
type Raw = "VOICE" | "TEXT";
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.ConversationMode = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
exports.ConversationMode = core.serialization.forwardCompatibleEnum_(["VOICE", "TEXT"]);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { ConversationMode } from "./ConversationMode";
|
|
5
|
+
import { PreconditionBase } from "./PreconditionBase";
|
|
6
|
+
export declare const ConversationModePrecondition: core.serialization.ObjectSchema<serializers.ConversationModePrecondition.Raw, MavenAGI.ConversationModePrecondition>;
|
|
7
|
+
export declare namespace ConversationModePrecondition {
|
|
8
|
+
interface Raw extends PreconditionBase.Raw {
|
|
9
|
+
conversationMode: ConversationMode.Raw;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.ConversationModePrecondition = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const ConversationMode_1 = require("./ConversationMode");
|
|
40
|
+
const PreconditionBase_1 = require("./PreconditionBase");
|
|
41
|
+
exports.ConversationModePrecondition = core.serialization
|
|
42
|
+
.object({
|
|
43
|
+
conversationMode: ConversationMode_1.ConversationMode,
|
|
44
|
+
})
|
|
45
|
+
.extend(PreconditionBase_1.PreconditionBase);
|
|
@@ -3,6 +3,7 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { AppPrecondition } from "./AppPrecondition";
|
|
5
5
|
import { ConversationExecutedActionPrecondition } from "./ConversationExecutedActionPrecondition";
|
|
6
|
+
import { ConversationModePrecondition } from "./ConversationModePrecondition";
|
|
6
7
|
import { ConversationStatePrecondition } from "./ConversationStatePrecondition";
|
|
7
8
|
import { IntelligentFieldPrecondition } from "./IntelligentFieldPrecondition";
|
|
8
9
|
import { MetadataPrecondition } from "./MetadataPrecondition";
|
|
@@ -10,7 +11,7 @@ import { ResponseConfigPrecondition } from "./ResponseConfigPrecondition";
|
|
|
10
11
|
import { TagsPrecondition } from "./TagsPrecondition";
|
|
11
12
|
export declare const ConversationPrecondition: core.serialization.Schema<serializers.ConversationPrecondition.Raw, MavenAGI.ConversationPrecondition>;
|
|
12
13
|
export declare namespace ConversationPrecondition {
|
|
13
|
-
type Raw = ConversationPrecondition.Tags | ConversationPrecondition.Metadata | ConversationPrecondition.ActionExecuted | ConversationPrecondition.ResponseConfig | ConversationPrecondition.App | ConversationPrecondition.ConversationState | ConversationPrecondition.IntelligentField;
|
|
14
|
+
type Raw = ConversationPrecondition.Tags | ConversationPrecondition.Metadata | ConversationPrecondition.ActionExecuted | ConversationPrecondition.ResponseConfig | ConversationPrecondition.App | ConversationPrecondition.ConversationState | ConversationPrecondition.ConversationMode | ConversationPrecondition.IntelligentField;
|
|
14
15
|
interface Tags extends TagsPrecondition.Raw {
|
|
15
16
|
conversationPreconditionType: "tags";
|
|
16
17
|
}
|
|
@@ -29,6 +30,9 @@ export declare namespace ConversationPrecondition {
|
|
|
29
30
|
interface ConversationState extends ConversationStatePrecondition.Raw {
|
|
30
31
|
conversationPreconditionType: "conversationState";
|
|
31
32
|
}
|
|
33
|
+
interface ConversationMode extends ConversationModePrecondition.Raw {
|
|
34
|
+
conversationPreconditionType: "conversationMode";
|
|
35
|
+
}
|
|
32
36
|
interface IntelligentField extends IntelligentFieldPrecondition.Raw {
|
|
33
37
|
conversationPreconditionType: "intelligentField";
|
|
34
38
|
}
|
|
@@ -38,6 +38,7 @@ exports.ConversationPrecondition = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const AppPrecondition_1 = require("./AppPrecondition");
|
|
40
40
|
const ConversationExecutedActionPrecondition_1 = require("./ConversationExecutedActionPrecondition");
|
|
41
|
+
const ConversationModePrecondition_1 = require("./ConversationModePrecondition");
|
|
41
42
|
const ConversationStatePrecondition_1 = require("./ConversationStatePrecondition");
|
|
42
43
|
const IntelligentFieldPrecondition_1 = require("./IntelligentFieldPrecondition");
|
|
43
44
|
const MetadataPrecondition_1 = require("./MetadataPrecondition");
|
|
@@ -51,6 +52,7 @@ exports.ConversationPrecondition = core.serialization
|
|
|
51
52
|
responseConfig: ResponseConfigPrecondition_1.ResponseConfigPrecondition,
|
|
52
53
|
app: AppPrecondition_1.AppPrecondition,
|
|
53
54
|
conversationState: ConversationStatePrecondition_1.ConversationStatePrecondition,
|
|
55
|
+
conversationMode: ConversationModePrecondition_1.ConversationModePrecondition,
|
|
54
56
|
intelligentField: IntelligentFieldPrecondition_1.IntelligentFieldPrecondition,
|
|
55
57
|
})
|
|
56
58
|
.transform({
|
|
@@ -3,6 +3,7 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { AppPrecondition } from "./AppPrecondition";
|
|
5
5
|
import { ConversationExecutedActionPrecondition } from "./ConversationExecutedActionPrecondition";
|
|
6
|
+
import { ConversationModePrecondition } from "./ConversationModePrecondition";
|
|
6
7
|
import { ConversationStatePrecondition } from "./ConversationStatePrecondition";
|
|
7
8
|
import { IntelligentFieldPreconditionResponse } from "./IntelligentFieldPreconditionResponse";
|
|
8
9
|
import { MetadataPrecondition } from "./MetadataPrecondition";
|
|
@@ -10,7 +11,7 @@ import { ResponseConfigPrecondition } from "./ResponseConfigPrecondition";
|
|
|
10
11
|
import { TagsPrecondition } from "./TagsPrecondition";
|
|
11
12
|
export declare const ConversationPreconditionResponse: core.serialization.Schema<serializers.ConversationPreconditionResponse.Raw, MavenAGI.ConversationPreconditionResponse>;
|
|
12
13
|
export declare namespace ConversationPreconditionResponse {
|
|
13
|
-
type Raw = ConversationPreconditionResponse.Tags | ConversationPreconditionResponse.Metadata | ConversationPreconditionResponse.ActionExecuted | ConversationPreconditionResponse.ResponseConfig | ConversationPreconditionResponse.App | ConversationPreconditionResponse.ConversationState | ConversationPreconditionResponse.IntelligentField;
|
|
14
|
+
type Raw = ConversationPreconditionResponse.Tags | ConversationPreconditionResponse.Metadata | ConversationPreconditionResponse.ActionExecuted | ConversationPreconditionResponse.ResponseConfig | ConversationPreconditionResponse.App | ConversationPreconditionResponse.ConversationState | ConversationPreconditionResponse.ConversationMode | ConversationPreconditionResponse.IntelligentField;
|
|
14
15
|
interface Tags extends TagsPrecondition.Raw {
|
|
15
16
|
conversationPreconditionType: "tags";
|
|
16
17
|
}
|
|
@@ -29,6 +30,9 @@ export declare namespace ConversationPreconditionResponse {
|
|
|
29
30
|
interface ConversationState extends ConversationStatePrecondition.Raw {
|
|
30
31
|
conversationPreconditionType: "conversationState";
|
|
31
32
|
}
|
|
33
|
+
interface ConversationMode extends ConversationModePrecondition.Raw {
|
|
34
|
+
conversationPreconditionType: "conversationMode";
|
|
35
|
+
}
|
|
32
36
|
interface IntelligentField extends IntelligentFieldPreconditionResponse.Raw {
|
|
33
37
|
conversationPreconditionType: "intelligentField";
|
|
34
38
|
}
|
|
@@ -38,6 +38,7 @@ exports.ConversationPreconditionResponse = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const AppPrecondition_1 = require("./AppPrecondition");
|
|
40
40
|
const ConversationExecutedActionPrecondition_1 = require("./ConversationExecutedActionPrecondition");
|
|
41
|
+
const ConversationModePrecondition_1 = require("./ConversationModePrecondition");
|
|
41
42
|
const ConversationStatePrecondition_1 = require("./ConversationStatePrecondition");
|
|
42
43
|
const IntelligentFieldPreconditionResponse_1 = require("./IntelligentFieldPreconditionResponse");
|
|
43
44
|
const MetadataPrecondition_1 = require("./MetadataPrecondition");
|
|
@@ -51,6 +52,7 @@ exports.ConversationPreconditionResponse = core.serialization
|
|
|
51
52
|
responseConfig: ResponseConfigPrecondition_1.ResponseConfigPrecondition,
|
|
52
53
|
app: AppPrecondition_1.AppPrecondition,
|
|
53
54
|
conversationState: ConversationStatePrecondition_1.ConversationStatePrecondition,
|
|
55
|
+
conversationMode: ConversationModePrecondition_1.ConversationModePrecondition,
|
|
54
56
|
intelligentField: IntelligentFieldPreconditionResponse_1.IntelligentFieldPreconditionResponse,
|
|
55
57
|
})
|
|
56
58
|
.transform({
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { IntelligentFieldCondition } from "./IntelligentFieldCondition";
|
|
5
|
+
export declare const KeyValueEntryCondition: core.serialization.ObjectSchema<serializers.KeyValueEntryCondition.Raw, MavenAGI.KeyValueEntryCondition>;
|
|
6
|
+
export declare namespace KeyValueEntryCondition {
|
|
7
|
+
interface Raw {
|
|
8
|
+
path: string;
|
|
9
|
+
condition: IntelligentFieldCondition.Raw;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.KeyValueEntryCondition = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const IntelligentFieldCondition_1 = require("./IntelligentFieldCondition");
|
|
40
|
+
exports.KeyValueEntryCondition = core.serialization.object({
|
|
41
|
+
path: core.serialization.string(),
|
|
42
|
+
condition: IntelligentFieldCondition_1.IntelligentFieldCondition,
|
|
43
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { KeyValueEntryCondition } from "./KeyValueEntryCondition";
|
|
5
|
+
export declare const ObjectCondition: core.serialization.Schema<serializers.ObjectCondition.Raw, MavenAGI.ObjectCondition>;
|
|
6
|
+
export declare namespace ObjectCondition {
|
|
7
|
+
type Raw = ObjectCondition.Entry;
|
|
8
|
+
interface Entry extends KeyValueEntryCondition.Raw {
|
|
9
|
+
objectConditionType: "entry";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.ObjectCondition = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const KeyValueEntryCondition_1 = require("./KeyValueEntryCondition");
|
|
40
|
+
exports.ObjectCondition = core.serialization
|
|
41
|
+
.union("objectConditionType", {
|
|
42
|
+
entry: KeyValueEntryCondition_1.KeyValueEntryCondition,
|
|
43
|
+
})
|
|
44
|
+
.transform({
|
|
45
|
+
transform: (value) => value,
|
|
46
|
+
untransform: (value) => value,
|
|
47
|
+
});
|
|
@@ -65,6 +65,8 @@ export * from "./ConversationKickoffExecutionResponse";
|
|
|
65
65
|
export * from "./ConversationKickoffStatus";
|
|
66
66
|
export * from "./ConversationMessageBase";
|
|
67
67
|
export * from "./ConversationMessageResponse";
|
|
68
|
+
export * from "./ConversationMode";
|
|
69
|
+
export * from "./ConversationModePrecondition";
|
|
68
70
|
export * from "./ConversationPrecondition";
|
|
69
71
|
export * from "./ConversationPreconditionResponse";
|
|
70
72
|
export * from "./ConversationPreview";
|
|
@@ -122,6 +124,7 @@ export * from "./IntelligentFieldPreconditionResponse";
|
|
|
122
124
|
export * from "./IntelligentFieldValueResponse";
|
|
123
125
|
export * from "./IpInfo";
|
|
124
126
|
export * from "./JsonSchemaSettingsSchemaEntry";
|
|
127
|
+
export * from "./KeyValueEntryCondition";
|
|
125
128
|
export * from "./KnowledgeContextByEntities";
|
|
126
129
|
export * from "./KnowledgeContextByEntityTypes";
|
|
127
130
|
export * from "./KnowledgeContextFilter";
|
|
@@ -143,6 +146,7 @@ export * from "./NumericMembershipCondition";
|
|
|
143
146
|
export * from "./NumericMembershipOperator";
|
|
144
147
|
export * from "./OAuthAuthenticationMethod";
|
|
145
148
|
export * from "./OAuthSettingsSchemaEntry";
|
|
149
|
+
export * from "./ObjectCondition";
|
|
146
150
|
export * from "./OneOfSettingsSchemaEntry";
|
|
147
151
|
export * from "./OsInfo";
|
|
148
152
|
export * from "./OsType";
|
|
@@ -81,6 +81,8 @@ __exportStar(require("./ConversationKickoffExecutionResponse"), exports);
|
|
|
81
81
|
__exportStar(require("./ConversationKickoffStatus"), exports);
|
|
82
82
|
__exportStar(require("./ConversationMessageBase"), exports);
|
|
83
83
|
__exportStar(require("./ConversationMessageResponse"), exports);
|
|
84
|
+
__exportStar(require("./ConversationMode"), exports);
|
|
85
|
+
__exportStar(require("./ConversationModePrecondition"), exports);
|
|
84
86
|
__exportStar(require("./ConversationPrecondition"), exports);
|
|
85
87
|
__exportStar(require("./ConversationPreconditionResponse"), exports);
|
|
86
88
|
__exportStar(require("./ConversationPreview"), exports);
|
|
@@ -138,6 +140,7 @@ __exportStar(require("./IntelligentFieldPreconditionResponse"), exports);
|
|
|
138
140
|
__exportStar(require("./IntelligentFieldValueResponse"), exports);
|
|
139
141
|
__exportStar(require("./IpInfo"), exports);
|
|
140
142
|
__exportStar(require("./JsonSchemaSettingsSchemaEntry"), exports);
|
|
143
|
+
__exportStar(require("./KeyValueEntryCondition"), exports);
|
|
141
144
|
__exportStar(require("./KnowledgeContextByEntities"), exports);
|
|
142
145
|
__exportStar(require("./KnowledgeContextByEntityTypes"), exports);
|
|
143
146
|
__exportStar(require("./KnowledgeContextFilter"), exports);
|
|
@@ -159,6 +162,7 @@ __exportStar(require("./NumericMembershipCondition"), exports);
|
|
|
159
162
|
__exportStar(require("./NumericMembershipOperator"), exports);
|
|
160
163
|
__exportStar(require("./OAuthAuthenticationMethod"), exports);
|
|
161
164
|
__exportStar(require("./OAuthSettingsSchemaEntry"), exports);
|
|
165
|
+
__exportStar(require("./ObjectCondition"), exports);
|
|
162
166
|
__exportStar(require("./OneOfSettingsSchemaEntry"), exports);
|
|
163
167
|
__exportStar(require("./OsInfo"), exports);
|
|
164
168
|
__exportStar(require("./OsType"), exports);
|
|
@@ -5,6 +5,7 @@ import { EntityIdWithoutAgent } from "../../commons/types/EntityIdWithoutAgent";
|
|
|
5
5
|
export declare const CancelKnowledgeBaseVersionRequest: core.serialization.ObjectSchema<serializers.CancelKnowledgeBaseVersionRequest.Raw, MavenAGI.CancelKnowledgeBaseVersionRequest>;
|
|
6
6
|
export declare namespace CancelKnowledgeBaseVersionRequest {
|
|
7
7
|
interface Raw {
|
|
8
|
+
appId?: string | null;
|
|
8
9
|
versionId?: EntityIdWithoutAgent.Raw | null;
|
|
9
10
|
}
|
|
10
11
|
}
|
|
@@ -38,5 +38,6 @@ exports.CancelKnowledgeBaseVersionRequest = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const EntityIdWithoutAgent_1 = require("../../commons/types/EntityIdWithoutAgent");
|
|
40
40
|
exports.CancelKnowledgeBaseVersionRequest = core.serialization.object({
|
|
41
|
+
appId: core.serialization.string().optional(),
|
|
41
42
|
versionId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
42
43
|
});
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
export declare const KnowledgeBaseVersionFinalizeStatus: core.serialization.Schema<serializers.KnowledgeBaseVersionFinalizeStatus.Raw, MavenAGI.KnowledgeBaseVersionFinalizeStatus>;
|
|
5
5
|
export declare namespace KnowledgeBaseVersionFinalizeStatus {
|
|
6
|
-
type Raw = "SUCCEEDED" | "FAILED";
|
|
6
|
+
type Raw = "SUCCEEDED" | "FAILED" | "CANCELED";
|
|
7
7
|
}
|
|
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.KnowledgeBaseVersionFinalizeStatus = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
exports.KnowledgeBaseVersionFinalizeStatus = core.serialization.forwardCompatibleEnum_(["SUCCEEDED", "FAILED"]);
|
|
39
|
+
exports.KnowledgeBaseVersionFinalizeStatus = core.serialization.forwardCompatibleEnum_(["SUCCEEDED", "FAILED", "CANCELED"]);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
export declare const KnowledgeBaseVersionStatus: core.serialization.Schema<serializers.KnowledgeBaseVersionStatus.Raw, MavenAGI.KnowledgeBaseVersionStatus>;
|
|
5
5
|
export declare namespace KnowledgeBaseVersionStatus {
|
|
6
|
-
type Raw = "SUCCEEDED" | "FAILED" | "IN_PROGRESS";
|
|
6
|
+
type Raw = "SUCCEEDED" | "FAILED" | "IN_PROGRESS" | "CANCELED";
|
|
7
7
|
}
|
|
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.KnowledgeBaseVersionStatus = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
exports.KnowledgeBaseVersionStatus = core.serialization.forwardCompatibleEnum_(["SUCCEEDED", "FAILED", "IN_PROGRESS"]);
|
|
39
|
+
exports.KnowledgeBaseVersionStatus = core.serialization.forwardCompatibleEnum_(["SUCCEEDED", "FAILED", "IN_PROGRESS", "CANCELED"]);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.56";
|
package/version.js
CHANGED