mavenagi 1.2.35 → 1.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +2 -2
- package/api/resources/commons/types/ConversationPreconditionResponse.d.ts +22 -0
- package/api/resources/commons/types/ConversationPreconditionResponse.js +3 -0
- package/api/resources/commons/types/IntelligentFieldPreconditionResponse.d.ts +13 -0
- package/api/resources/commons/types/IntelligentFieldPreconditionResponse.js +3 -0
- package/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +1 -1
- package/api/resources/commons/types/PreconditionGroupResponse.d.ts +5 -0
- package/api/resources/commons/types/PreconditionGroupResponse.js +3 -0
- package/api/resources/commons/types/PreconditionResponse.d.ts +28 -0
- package/api/resources/commons/types/PreconditionResponse.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/segments/types/SegmentBase.d.ts +0 -3
- package/api/resources/segments/types/SegmentRequest.d.ts +2 -0
- package/api/resources/segments/types/SegmentResponse.d.ts +2 -0
- package/dist/Client.js +2 -2
- package/dist/api/resources/commons/types/ConversationPreconditionResponse.d.ts +22 -0
- package/dist/api/resources/commons/types/ConversationPreconditionResponse.js +3 -0
- package/dist/api/resources/commons/types/IntelligentFieldPreconditionResponse.d.ts +13 -0
- package/dist/api/resources/commons/types/IntelligentFieldPreconditionResponse.js +3 -0
- package/dist/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +1 -1
- package/dist/api/resources/commons/types/PreconditionGroupResponse.d.ts +5 -0
- package/dist/api/resources/commons/types/PreconditionGroupResponse.js +3 -0
- package/dist/api/resources/commons/types/PreconditionResponse.d.ts +28 -0
- package/dist/api/resources/commons/types/PreconditionResponse.js +3 -0
- package/dist/api/resources/commons/types/index.d.ts +4 -0
- package/dist/api/resources/commons/types/index.js +4 -0
- package/dist/api/resources/segments/types/SegmentBase.d.ts +0 -3
- package/dist/api/resources/segments/types/SegmentRequest.d.ts +2 -0
- package/dist/api/resources/segments/types/SegmentResponse.d.ts +2 -0
- package/dist/serialization/resources/commons/types/ConversationPreconditionResponse.d.ts +31 -0
- package/dist/serialization/resources/commons/types/ConversationPreconditionResponse.js +57 -0
- package/dist/serialization/resources/commons/types/IntelligentFieldPreconditionResponse.d.ts +13 -0
- package/dist/serialization/resources/commons/types/IntelligentFieldPreconditionResponse.js +45 -0
- package/dist/serialization/resources/commons/types/PreconditionGroupResponse.d.ts +11 -0
- package/dist/serialization/resources/commons/types/PreconditionGroupResponse.js +44 -0
- package/dist/serialization/resources/commons/types/PreconditionResponse.d.ts +19 -0
- package/dist/serialization/resources/commons/types/PreconditionResponse.js +53 -0
- package/dist/serialization/resources/commons/types/index.d.ts +4 -0
- package/dist/serialization/resources/commons/types/index.js +4 -0
- package/dist/serialization/resources/segments/types/SegmentBase.d.ts +1 -2
- package/dist/serialization/resources/segments/types/SegmentBase.js +0 -2
- package/dist/serialization/resources/segments/types/SegmentRequest.d.ts +2 -1
- package/dist/serialization/resources/segments/types/SegmentRequest.js +2 -0
- package/dist/serialization/resources/segments/types/SegmentResponse.d.ts +2 -1
- package/dist/serialization/resources/segments/types/SegmentResponse.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/commons/types/ConversationPreconditionResponse.d.ts +31 -0
- package/serialization/resources/commons/types/ConversationPreconditionResponse.js +57 -0
- package/serialization/resources/commons/types/IntelligentFieldPreconditionResponse.d.ts +13 -0
- package/serialization/resources/commons/types/IntelligentFieldPreconditionResponse.js +45 -0
- package/serialization/resources/commons/types/PreconditionGroupResponse.d.ts +11 -0
- package/serialization/resources/commons/types/PreconditionGroupResponse.js +44 -0
- package/serialization/resources/commons/types/PreconditionResponse.d.ts +19 -0
- package/serialization/resources/commons/types/PreconditionResponse.js +53 -0
- package/serialization/resources/commons/types/index.d.ts +4 -0
- package/serialization/resources/commons/types/index.js +4 -0
- package/serialization/resources/segments/types/SegmentBase.d.ts +1 -2
- package/serialization/resources/segments/types/SegmentBase.js +0 -2
- package/serialization/resources/segments/types/SegmentRequest.d.ts +2 -1
- package/serialization/resources/segments/types/SegmentRequest.js +2 -0
- package/serialization/resources/segments/types/SegmentResponse.d.ts +2 -1
- package/serialization/resources/segments/types/SegmentResponse.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/Client.js
CHANGED
|
@@ -62,8 +62,8 @@ class MavenAGIClient {
|
|
|
62
62
|
"X-Agent-Id": _options === null || _options === void 0 ? void 0 : _options.agentId,
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "mavenagi",
|
|
65
|
-
"X-Fern-SDK-Version": "1.2.
|
|
66
|
-
"User-Agent": "mavenagi/1.2.
|
|
65
|
+
"X-Fern-SDK-Version": "1.2.36",
|
|
66
|
+
"User-Agent": "mavenagi/1.2.36",
|
|
67
67
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
68
68
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
69
69
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -0,0 +1,22 @@
|
|
|
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.IntelligentField;
|
|
3
|
+
export declare namespace ConversationPreconditionResponse {
|
|
4
|
+
interface Tags extends MavenAGI.TagsPrecondition {
|
|
5
|
+
conversationPreconditionType: "tags";
|
|
6
|
+
}
|
|
7
|
+
interface Metadata extends MavenAGI.MetadataPrecondition {
|
|
8
|
+
conversationPreconditionType: "metadata";
|
|
9
|
+
}
|
|
10
|
+
interface ActionExecuted extends MavenAGI.ConversationExecutedActionPrecondition {
|
|
11
|
+
conversationPreconditionType: "actionExecuted";
|
|
12
|
+
}
|
|
13
|
+
interface ResponseConfig extends MavenAGI.ResponseConfigPrecondition {
|
|
14
|
+
conversationPreconditionType: "responseConfig";
|
|
15
|
+
}
|
|
16
|
+
interface App extends MavenAGI.AppPrecondition {
|
|
17
|
+
conversationPreconditionType: "app";
|
|
18
|
+
}
|
|
19
|
+
interface IntelligentField extends MavenAGI.IntelligentFieldPreconditionResponse {
|
|
20
|
+
conversationPreconditionType: "intelligentField";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Response variant of IntelligentFieldPrecondition.
|
|
4
|
+
* Includes the resolved display name of the intelligent field.
|
|
5
|
+
*/
|
|
6
|
+
export interface IntelligentFieldPreconditionResponse {
|
|
7
|
+
/** The ID of the intelligent field. */
|
|
8
|
+
fieldIdWithoutAgent: MavenAGI.EntityIdWithoutAgent;
|
|
9
|
+
/** Human-readable display name of the intelligent field. Resolved server-side. */
|
|
10
|
+
name?: string;
|
|
11
|
+
/** The condition to evaluate against the field's value. */
|
|
12
|
+
fieldCondition: MavenAGI.IntelligentFieldCondition;
|
|
13
|
+
}
|
|
@@ -9,7 +9,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
9
9
|
* appId: "zendesk",
|
|
10
10
|
* organizationId: "acme",
|
|
11
11
|
* agentId: "support",
|
|
12
|
-
* type: MavenAGI.EntityType.
|
|
12
|
+
* type: MavenAGI.EntityType.IntelligentField
|
|
13
13
|
* },
|
|
14
14
|
* name: "Ticket Priority",
|
|
15
15
|
* entityId: {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* preconditionType: "group",
|
|
6
|
+
* operator: MavenAGI.PreconditionGroupOperator.And,
|
|
7
|
+
* preconditions: [{
|
|
8
|
+
* preconditionType: "user",
|
|
9
|
+
* key: "userKey"
|
|
10
|
+
* }, {
|
|
11
|
+
* preconditionType: "user",
|
|
12
|
+
* key: "userKey2"
|
|
13
|
+
* }]
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export type PreconditionResponse = MavenAGI.PreconditionResponse.User | MavenAGI.PreconditionResponse.Conversation | MavenAGI.PreconditionResponse.Group;
|
|
17
|
+
export declare namespace PreconditionResponse {
|
|
18
|
+
interface User extends MavenAGI.MetadataPrecondition {
|
|
19
|
+
preconditionType: "user";
|
|
20
|
+
}
|
|
21
|
+
interface Conversation {
|
|
22
|
+
preconditionType: "conversation";
|
|
23
|
+
value: MavenAGI.ConversationPreconditionResponse;
|
|
24
|
+
}
|
|
25
|
+
interface Group extends MavenAGI.PreconditionGroupResponse {
|
|
26
|
+
preconditionType: "group";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -61,6 +61,7 @@ export * from "./ConversationInformation";
|
|
|
61
61
|
export * from "./ConversationMessageBase";
|
|
62
62
|
export * from "./ConversationMessageResponse";
|
|
63
63
|
export * from "./ConversationPrecondition";
|
|
64
|
+
export * from "./ConversationPreconditionResponse";
|
|
64
65
|
export * from "./ConversationPreview";
|
|
65
66
|
export * from "./ConversationResponse";
|
|
66
67
|
export * from "./ConversationSummary";
|
|
@@ -108,6 +109,7 @@ export * from "./InboxItemStatus";
|
|
|
108
109
|
export * from "./InboxItemType";
|
|
109
110
|
export * from "./IntelligentFieldCondition";
|
|
110
111
|
export * from "./IntelligentFieldPrecondition";
|
|
112
|
+
export * from "./IntelligentFieldPreconditionResponse";
|
|
111
113
|
export * from "./IntelligentFieldValueResponse";
|
|
112
114
|
export * from "./IpInfo";
|
|
113
115
|
export * from "./KnowledgeContextByEntities";
|
|
@@ -141,7 +143,9 @@ export * from "./Precondition";
|
|
|
141
143
|
export * from "./PreconditionBase";
|
|
142
144
|
export * from "./PreconditionGroup";
|
|
143
145
|
export * from "./PreconditionGroupOperator";
|
|
146
|
+
export * from "./PreconditionGroupResponse";
|
|
144
147
|
export * from "./PreconditionOperator";
|
|
148
|
+
export * from "./PreconditionResponse";
|
|
145
149
|
export * from "./Quality";
|
|
146
150
|
export * from "./QualityReason";
|
|
147
151
|
export * from "./ResponseConfig";
|
|
@@ -77,6 +77,7 @@ __exportStar(require("./ConversationInformation"), exports);
|
|
|
77
77
|
__exportStar(require("./ConversationMessageBase"), exports);
|
|
78
78
|
__exportStar(require("./ConversationMessageResponse"), exports);
|
|
79
79
|
__exportStar(require("./ConversationPrecondition"), exports);
|
|
80
|
+
__exportStar(require("./ConversationPreconditionResponse"), exports);
|
|
80
81
|
__exportStar(require("./ConversationPreview"), exports);
|
|
81
82
|
__exportStar(require("./ConversationResponse"), exports);
|
|
82
83
|
__exportStar(require("./ConversationSummary"), exports);
|
|
@@ -124,6 +125,7 @@ __exportStar(require("./InboxItemStatus"), exports);
|
|
|
124
125
|
__exportStar(require("./InboxItemType"), exports);
|
|
125
126
|
__exportStar(require("./IntelligentFieldCondition"), exports);
|
|
126
127
|
__exportStar(require("./IntelligentFieldPrecondition"), exports);
|
|
128
|
+
__exportStar(require("./IntelligentFieldPreconditionResponse"), exports);
|
|
127
129
|
__exportStar(require("./IntelligentFieldValueResponse"), exports);
|
|
128
130
|
__exportStar(require("./IpInfo"), exports);
|
|
129
131
|
__exportStar(require("./KnowledgeContextByEntities"), exports);
|
|
@@ -157,7 +159,9 @@ __exportStar(require("./Precondition"), exports);
|
|
|
157
159
|
__exportStar(require("./PreconditionBase"), exports);
|
|
158
160
|
__exportStar(require("./PreconditionGroup"), exports);
|
|
159
161
|
__exportStar(require("./PreconditionGroupOperator"), exports);
|
|
162
|
+
__exportStar(require("./PreconditionGroupResponse"), exports);
|
|
160
163
|
__exportStar(require("./PreconditionOperator"), exports);
|
|
164
|
+
__exportStar(require("./PreconditionResponse"), exports);
|
|
161
165
|
__exportStar(require("./Quality"), exports);
|
|
162
166
|
__exportStar(require("./QualityReason"), exports);
|
|
163
167
|
__exportStar(require("./ResponseConfig"), exports);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type * as MavenAGI from "../../../index";
|
|
2
1
|
export interface SegmentBase {
|
|
3
2
|
/** The name of the segment. */
|
|
4
3
|
name: string;
|
|
5
4
|
/** A plain text description of the segment. */
|
|
6
5
|
description?: string;
|
|
7
|
-
/** The precondition that must be met for a conversation message to be included in the segment. */
|
|
8
|
-
precondition: MavenAGI.Precondition;
|
|
9
6
|
}
|
|
@@ -22,6 +22,8 @@ import type * as MavenAGI from "../../../index";
|
|
|
22
22
|
export interface SegmentRequest extends MavenAGI.SegmentBase {
|
|
23
23
|
/** ID that uniquely identifies this segment */
|
|
24
24
|
segmentId: MavenAGI.EntityIdBase;
|
|
25
|
+
/** The precondition that must be met for a conversation message to be included in the segment. */
|
|
26
|
+
precondition: MavenAGI.Precondition;
|
|
25
27
|
/** Desired status for the segment. If omitted, defaults to ACTIVE. In the future this will become required, so specify ACTIVE or INACTIVE if possible. */
|
|
26
28
|
status?: MavenAGI.SegmentStatus;
|
|
27
29
|
}
|
|
@@ -32,6 +32,8 @@ import type * as MavenAGI from "../../../index";
|
|
|
32
32
|
export interface SegmentResponse extends MavenAGI.SegmentBase {
|
|
33
33
|
/** ID that uniquely identifies this segment */
|
|
34
34
|
segmentId: MavenAGI.EntityId;
|
|
35
|
+
/** The precondition that must be met for a conversation message to be included in the segment. */
|
|
36
|
+
precondition: MavenAGI.PreconditionResponse;
|
|
35
37
|
/** The date and time when the segment was created. */
|
|
36
38
|
createdAt: Date;
|
|
37
39
|
/** The date and time when the segment was last updated. */
|
package/dist/Client.js
CHANGED
|
@@ -62,8 +62,8 @@ class MavenAGIClient {
|
|
|
62
62
|
"X-Agent-Id": _options === null || _options === void 0 ? void 0 : _options.agentId,
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "mavenagi",
|
|
65
|
-
"X-Fern-SDK-Version": "1.2.
|
|
66
|
-
"User-Agent": "mavenagi/1.2.
|
|
65
|
+
"X-Fern-SDK-Version": "1.2.36",
|
|
66
|
+
"User-Agent": "mavenagi/1.2.36",
|
|
67
67
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
68
68
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
69
69
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -0,0 +1,22 @@
|
|
|
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.IntelligentField;
|
|
3
|
+
export declare namespace ConversationPreconditionResponse {
|
|
4
|
+
interface Tags extends MavenAGI.TagsPrecondition {
|
|
5
|
+
conversationPreconditionType: "tags";
|
|
6
|
+
}
|
|
7
|
+
interface Metadata extends MavenAGI.MetadataPrecondition {
|
|
8
|
+
conversationPreconditionType: "metadata";
|
|
9
|
+
}
|
|
10
|
+
interface ActionExecuted extends MavenAGI.ConversationExecutedActionPrecondition {
|
|
11
|
+
conversationPreconditionType: "actionExecuted";
|
|
12
|
+
}
|
|
13
|
+
interface ResponseConfig extends MavenAGI.ResponseConfigPrecondition {
|
|
14
|
+
conversationPreconditionType: "responseConfig";
|
|
15
|
+
}
|
|
16
|
+
interface App extends MavenAGI.AppPrecondition {
|
|
17
|
+
conversationPreconditionType: "app";
|
|
18
|
+
}
|
|
19
|
+
interface IntelligentField extends MavenAGI.IntelligentFieldPreconditionResponse {
|
|
20
|
+
conversationPreconditionType: "intelligentField";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Response variant of IntelligentFieldPrecondition.
|
|
4
|
+
* Includes the resolved display name of the intelligent field.
|
|
5
|
+
*/
|
|
6
|
+
export interface IntelligentFieldPreconditionResponse {
|
|
7
|
+
/** The ID of the intelligent field. */
|
|
8
|
+
fieldIdWithoutAgent: MavenAGI.EntityIdWithoutAgent;
|
|
9
|
+
/** Human-readable display name of the intelligent field. Resolved server-side. */
|
|
10
|
+
name?: string;
|
|
11
|
+
/** The condition to evaluate against the field's value. */
|
|
12
|
+
fieldCondition: MavenAGI.IntelligentFieldCondition;
|
|
13
|
+
}
|
|
@@ -9,7 +9,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
9
9
|
* appId: "zendesk",
|
|
10
10
|
* organizationId: "acme",
|
|
11
11
|
* agentId: "support",
|
|
12
|
-
* type: MavenAGI.EntityType.
|
|
12
|
+
* type: MavenAGI.EntityType.IntelligentField
|
|
13
13
|
* },
|
|
14
14
|
* name: "Ticket Priority",
|
|
15
15
|
* entityId: {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* preconditionType: "group",
|
|
6
|
+
* operator: MavenAGI.PreconditionGroupOperator.And,
|
|
7
|
+
* preconditions: [{
|
|
8
|
+
* preconditionType: "user",
|
|
9
|
+
* key: "userKey"
|
|
10
|
+
* }, {
|
|
11
|
+
* preconditionType: "user",
|
|
12
|
+
* key: "userKey2"
|
|
13
|
+
* }]
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export type PreconditionResponse = MavenAGI.PreconditionResponse.User | MavenAGI.PreconditionResponse.Conversation | MavenAGI.PreconditionResponse.Group;
|
|
17
|
+
export declare namespace PreconditionResponse {
|
|
18
|
+
interface User extends MavenAGI.MetadataPrecondition {
|
|
19
|
+
preconditionType: "user";
|
|
20
|
+
}
|
|
21
|
+
interface Conversation {
|
|
22
|
+
preconditionType: "conversation";
|
|
23
|
+
value: MavenAGI.ConversationPreconditionResponse;
|
|
24
|
+
}
|
|
25
|
+
interface Group extends MavenAGI.PreconditionGroupResponse {
|
|
26
|
+
preconditionType: "group";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -61,6 +61,7 @@ export * from "./ConversationInformation";
|
|
|
61
61
|
export * from "./ConversationMessageBase";
|
|
62
62
|
export * from "./ConversationMessageResponse";
|
|
63
63
|
export * from "./ConversationPrecondition";
|
|
64
|
+
export * from "./ConversationPreconditionResponse";
|
|
64
65
|
export * from "./ConversationPreview";
|
|
65
66
|
export * from "./ConversationResponse";
|
|
66
67
|
export * from "./ConversationSummary";
|
|
@@ -108,6 +109,7 @@ export * from "./InboxItemStatus";
|
|
|
108
109
|
export * from "./InboxItemType";
|
|
109
110
|
export * from "./IntelligentFieldCondition";
|
|
110
111
|
export * from "./IntelligentFieldPrecondition";
|
|
112
|
+
export * from "./IntelligentFieldPreconditionResponse";
|
|
111
113
|
export * from "./IntelligentFieldValueResponse";
|
|
112
114
|
export * from "./IpInfo";
|
|
113
115
|
export * from "./KnowledgeContextByEntities";
|
|
@@ -141,7 +143,9 @@ export * from "./Precondition";
|
|
|
141
143
|
export * from "./PreconditionBase";
|
|
142
144
|
export * from "./PreconditionGroup";
|
|
143
145
|
export * from "./PreconditionGroupOperator";
|
|
146
|
+
export * from "./PreconditionGroupResponse";
|
|
144
147
|
export * from "./PreconditionOperator";
|
|
148
|
+
export * from "./PreconditionResponse";
|
|
145
149
|
export * from "./Quality";
|
|
146
150
|
export * from "./QualityReason";
|
|
147
151
|
export * from "./ResponseConfig";
|
|
@@ -77,6 +77,7 @@ __exportStar(require("./ConversationInformation"), exports);
|
|
|
77
77
|
__exportStar(require("./ConversationMessageBase"), exports);
|
|
78
78
|
__exportStar(require("./ConversationMessageResponse"), exports);
|
|
79
79
|
__exportStar(require("./ConversationPrecondition"), exports);
|
|
80
|
+
__exportStar(require("./ConversationPreconditionResponse"), exports);
|
|
80
81
|
__exportStar(require("./ConversationPreview"), exports);
|
|
81
82
|
__exportStar(require("./ConversationResponse"), exports);
|
|
82
83
|
__exportStar(require("./ConversationSummary"), exports);
|
|
@@ -124,6 +125,7 @@ __exportStar(require("./InboxItemStatus"), exports);
|
|
|
124
125
|
__exportStar(require("./InboxItemType"), exports);
|
|
125
126
|
__exportStar(require("./IntelligentFieldCondition"), exports);
|
|
126
127
|
__exportStar(require("./IntelligentFieldPrecondition"), exports);
|
|
128
|
+
__exportStar(require("./IntelligentFieldPreconditionResponse"), exports);
|
|
127
129
|
__exportStar(require("./IntelligentFieldValueResponse"), exports);
|
|
128
130
|
__exportStar(require("./IpInfo"), exports);
|
|
129
131
|
__exportStar(require("./KnowledgeContextByEntities"), exports);
|
|
@@ -157,7 +159,9 @@ __exportStar(require("./Precondition"), exports);
|
|
|
157
159
|
__exportStar(require("./PreconditionBase"), exports);
|
|
158
160
|
__exportStar(require("./PreconditionGroup"), exports);
|
|
159
161
|
__exportStar(require("./PreconditionGroupOperator"), exports);
|
|
162
|
+
__exportStar(require("./PreconditionGroupResponse"), exports);
|
|
160
163
|
__exportStar(require("./PreconditionOperator"), exports);
|
|
164
|
+
__exportStar(require("./PreconditionResponse"), exports);
|
|
161
165
|
__exportStar(require("./Quality"), exports);
|
|
162
166
|
__exportStar(require("./QualityReason"), exports);
|
|
163
167
|
__exportStar(require("./ResponseConfig"), exports);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type * as MavenAGI from "../../../index";
|
|
2
1
|
export interface SegmentBase {
|
|
3
2
|
/** The name of the segment. */
|
|
4
3
|
name: string;
|
|
5
4
|
/** A plain text description of the segment. */
|
|
6
5
|
description?: string;
|
|
7
|
-
/** The precondition that must be met for a conversation message to be included in the segment. */
|
|
8
|
-
precondition: MavenAGI.Precondition;
|
|
9
6
|
}
|
|
@@ -22,6 +22,8 @@ import type * as MavenAGI from "../../../index";
|
|
|
22
22
|
export interface SegmentRequest extends MavenAGI.SegmentBase {
|
|
23
23
|
/** ID that uniquely identifies this segment */
|
|
24
24
|
segmentId: MavenAGI.EntityIdBase;
|
|
25
|
+
/** The precondition that must be met for a conversation message to be included in the segment. */
|
|
26
|
+
precondition: MavenAGI.Precondition;
|
|
25
27
|
/** Desired status for the segment. If omitted, defaults to ACTIVE. In the future this will become required, so specify ACTIVE or INACTIVE if possible. */
|
|
26
28
|
status?: MavenAGI.SegmentStatus;
|
|
27
29
|
}
|
|
@@ -32,6 +32,8 @@ import type * as MavenAGI from "../../../index";
|
|
|
32
32
|
export interface SegmentResponse extends MavenAGI.SegmentBase {
|
|
33
33
|
/** ID that uniquely identifies this segment */
|
|
34
34
|
segmentId: MavenAGI.EntityId;
|
|
35
|
+
/** The precondition that must be met for a conversation message to be included in the segment. */
|
|
36
|
+
precondition: MavenAGI.PreconditionResponse;
|
|
35
37
|
/** The date and time when the segment was created. */
|
|
36
38
|
createdAt: Date;
|
|
37
39
|
/** The date and time when the segment was last updated. */
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { AppPrecondition } from "./AppPrecondition";
|
|
5
|
+
import { ConversationExecutedActionPrecondition } from "./ConversationExecutedActionPrecondition";
|
|
6
|
+
import { IntelligentFieldPreconditionResponse } from "./IntelligentFieldPreconditionResponse";
|
|
7
|
+
import { MetadataPrecondition } from "./MetadataPrecondition";
|
|
8
|
+
import { ResponseConfigPrecondition } from "./ResponseConfigPrecondition";
|
|
9
|
+
import { TagsPrecondition } from "./TagsPrecondition";
|
|
10
|
+
export declare const ConversationPreconditionResponse: core.serialization.Schema<serializers.ConversationPreconditionResponse.Raw, MavenAGI.ConversationPreconditionResponse>;
|
|
11
|
+
export declare namespace ConversationPreconditionResponse {
|
|
12
|
+
type Raw = ConversationPreconditionResponse.Tags | ConversationPreconditionResponse.Metadata | ConversationPreconditionResponse.ActionExecuted | ConversationPreconditionResponse.ResponseConfig | ConversationPreconditionResponse.App | ConversationPreconditionResponse.IntelligentField;
|
|
13
|
+
interface Tags extends TagsPrecondition.Raw {
|
|
14
|
+
conversationPreconditionType: "tags";
|
|
15
|
+
}
|
|
16
|
+
interface Metadata extends MetadataPrecondition.Raw {
|
|
17
|
+
conversationPreconditionType: "metadata";
|
|
18
|
+
}
|
|
19
|
+
interface ActionExecuted extends ConversationExecutedActionPrecondition.Raw {
|
|
20
|
+
conversationPreconditionType: "actionExecuted";
|
|
21
|
+
}
|
|
22
|
+
interface ResponseConfig extends ResponseConfigPrecondition.Raw {
|
|
23
|
+
conversationPreconditionType: "responseConfig";
|
|
24
|
+
}
|
|
25
|
+
interface App extends AppPrecondition.Raw {
|
|
26
|
+
conversationPreconditionType: "app";
|
|
27
|
+
}
|
|
28
|
+
interface IntelligentField extends IntelligentFieldPreconditionResponse.Raw {
|
|
29
|
+
conversationPreconditionType: "intelligentField";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.ConversationPreconditionResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const AppPrecondition_1 = require("./AppPrecondition");
|
|
40
|
+
const ConversationExecutedActionPrecondition_1 = require("./ConversationExecutedActionPrecondition");
|
|
41
|
+
const IntelligentFieldPreconditionResponse_1 = require("./IntelligentFieldPreconditionResponse");
|
|
42
|
+
const MetadataPrecondition_1 = require("./MetadataPrecondition");
|
|
43
|
+
const ResponseConfigPrecondition_1 = require("./ResponseConfigPrecondition");
|
|
44
|
+
const TagsPrecondition_1 = require("./TagsPrecondition");
|
|
45
|
+
exports.ConversationPreconditionResponse = core.serialization
|
|
46
|
+
.union("conversationPreconditionType", {
|
|
47
|
+
tags: TagsPrecondition_1.TagsPrecondition,
|
|
48
|
+
metadata: MetadataPrecondition_1.MetadataPrecondition,
|
|
49
|
+
actionExecuted: ConversationExecutedActionPrecondition_1.ConversationExecutedActionPrecondition,
|
|
50
|
+
responseConfig: ResponseConfigPrecondition_1.ResponseConfigPrecondition,
|
|
51
|
+
app: AppPrecondition_1.AppPrecondition,
|
|
52
|
+
intelligentField: IntelligentFieldPreconditionResponse_1.IntelligentFieldPreconditionResponse,
|
|
53
|
+
})
|
|
54
|
+
.transform({
|
|
55
|
+
transform: (value) => value,
|
|
56
|
+
untransform: (value) => value,
|
|
57
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { EntityIdWithoutAgent } from "./EntityIdWithoutAgent";
|
|
5
|
+
import { IntelligentFieldCondition } from "./IntelligentFieldCondition";
|
|
6
|
+
export declare const IntelligentFieldPreconditionResponse: core.serialization.ObjectSchema<serializers.IntelligentFieldPreconditionResponse.Raw, MavenAGI.IntelligentFieldPreconditionResponse>;
|
|
7
|
+
export declare namespace IntelligentFieldPreconditionResponse {
|
|
8
|
+
interface Raw {
|
|
9
|
+
fieldIdWithoutAgent: EntityIdWithoutAgent.Raw;
|
|
10
|
+
name?: string | null;
|
|
11
|
+
fieldCondition: IntelligentFieldCondition.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -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.IntelligentFieldPreconditionResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const EntityIdWithoutAgent_1 = require("./EntityIdWithoutAgent");
|
|
40
|
+
const IntelligentFieldCondition_1 = require("./IntelligentFieldCondition");
|
|
41
|
+
exports.IntelligentFieldPreconditionResponse = core.serialization.object({
|
|
42
|
+
fieldIdWithoutAgent: EntityIdWithoutAgent_1.EntityIdWithoutAgent,
|
|
43
|
+
name: core.serialization.string().optional(),
|
|
44
|
+
fieldCondition: IntelligentFieldCondition_1.IntelligentFieldCondition,
|
|
45
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import * as serializers from "../../../index";
|
|
4
|
+
import { PreconditionGroupOperator } from "./PreconditionGroupOperator";
|
|
5
|
+
export declare const PreconditionGroupResponse: core.serialization.ObjectSchema<serializers.PreconditionGroupResponse.Raw, MavenAGI.PreconditionGroupResponse>;
|
|
6
|
+
export declare namespace PreconditionGroupResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
operator: PreconditionGroupOperator.Raw;
|
|
9
|
+
preconditions: serializers.PreconditionResponse.Raw[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.PreconditionGroupResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const serializers = __importStar(require("../../../index"));
|
|
40
|
+
const PreconditionGroupOperator_1 = require("./PreconditionGroupOperator");
|
|
41
|
+
exports.PreconditionGroupResponse = core.serialization.object({
|
|
42
|
+
operator: PreconditionGroupOperator_1.PreconditionGroupOperator,
|
|
43
|
+
preconditions: core.serialization.list(core.serialization.lazy(() => serializers.PreconditionResponse)),
|
|
44
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import * as serializers from "../../../index";
|
|
4
|
+
import { ConversationPreconditionResponse } from "./ConversationPreconditionResponse";
|
|
5
|
+
import { MetadataPrecondition } from "./MetadataPrecondition";
|
|
6
|
+
export declare const PreconditionResponse: core.serialization.Schema<serializers.PreconditionResponse.Raw, MavenAGI.PreconditionResponse>;
|
|
7
|
+
export declare namespace PreconditionResponse {
|
|
8
|
+
type Raw = PreconditionResponse.User | PreconditionResponse.Conversation | PreconditionResponse.Group;
|
|
9
|
+
interface User extends MetadataPrecondition.Raw {
|
|
10
|
+
preconditionType: "user";
|
|
11
|
+
}
|
|
12
|
+
interface Conversation {
|
|
13
|
+
preconditionType: "conversation";
|
|
14
|
+
value: ConversationPreconditionResponse.Raw;
|
|
15
|
+
}
|
|
16
|
+
interface Group extends serializers.PreconditionGroupResponse.Raw {
|
|
17
|
+
preconditionType: "group";
|
|
18
|
+
}
|
|
19
|
+
}
|