mavenagi 1.2.15 → 1.2.16
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/BooleanCondition.d.ts +7 -0
- package/api/resources/commons/types/BooleanCondition.js +3 -0
- package/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
- package/api/resources/commons/types/IntelligentFieldCondition.d.ts +33 -0
- package/api/resources/commons/types/IntelligentFieldCondition.js +3 -0
- package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +16 -0
- package/api/resources/commons/types/IntelligentFieldPrecondition.js +3 -0
- package/api/resources/commons/types/NumericComparisonCondition.d.ts +10 -0
- package/api/resources/commons/types/NumericComparisonCondition.js +3 -0
- package/api/resources/commons/types/NumericComparisonOperator.d.ts +22 -0
- package/api/resources/commons/types/NumericComparisonOperator.js +25 -0
- package/api/resources/commons/types/NumericCondition.d.ts +13 -0
- package/api/resources/commons/types/NumericCondition.js +3 -0
- package/api/resources/commons/types/NumericMembershipCondition.d.ts +10 -0
- package/api/resources/commons/types/NumericMembershipCondition.js +3 -0
- package/api/resources/commons/types/NumericMembershipOperator.d.ts +10 -0
- package/api/resources/commons/types/NumericMembershipOperator.js +13 -0
- package/api/resources/commons/types/Precondition.d.ts +16 -0
- package/api/resources/commons/types/SetCondition.d.ts +13 -0
- package/api/resources/commons/types/SetCondition.js +3 -0
- package/api/resources/commons/types/SetElementCondition.d.ts +10 -0
- package/api/resources/commons/types/SetElementCondition.js +3 -0
- package/api/resources/commons/types/SetElementOperator.d.ts +10 -0
- package/api/resources/commons/types/SetElementOperator.js +13 -0
- package/api/resources/commons/types/SetRelationCondition.d.ts +10 -0
- package/api/resources/commons/types/SetRelationCondition.js +3 -0
- package/api/resources/commons/types/SetRelationOperator.d.ts +28 -0
- package/api/resources/commons/types/SetRelationOperator.js +31 -0
- package/api/resources/commons/types/StringComparisonCondition.d.ts +10 -0
- package/api/resources/commons/types/StringComparisonCondition.js +3 -0
- package/api/resources/commons/types/StringComparisonOperator.d.ts +10 -0
- package/api/resources/commons/types/StringComparisonOperator.js +13 -0
- package/api/resources/commons/types/StringCondition.d.ts +13 -0
- package/api/resources/commons/types/StringCondition.js +3 -0
- package/api/resources/commons/types/StringMembershipCondition.d.ts +10 -0
- package/api/resources/commons/types/StringMembershipCondition.js +3 -0
- package/api/resources/commons/types/StringMembershipOperator.d.ts +10 -0
- package/api/resources/commons/types/StringMembershipOperator.js +13 -0
- package/api/resources/commons/types/index.d.ts +18 -0
- package/api/resources/commons/types/index.js +18 -0
- package/dist/Client.js +2 -2
- package/dist/api/resources/commons/types/BooleanCondition.d.ts +7 -0
- package/dist/api/resources/commons/types/BooleanCondition.js +3 -0
- package/dist/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
- package/dist/api/resources/commons/types/IntelligentFieldCondition.d.ts +33 -0
- package/dist/api/resources/commons/types/IntelligentFieldCondition.js +3 -0
- package/dist/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +16 -0
- package/dist/api/resources/commons/types/IntelligentFieldPrecondition.js +3 -0
- package/dist/api/resources/commons/types/NumericComparisonCondition.d.ts +10 -0
- package/dist/api/resources/commons/types/NumericComparisonCondition.js +3 -0
- package/dist/api/resources/commons/types/NumericComparisonOperator.d.ts +22 -0
- package/dist/api/resources/commons/types/NumericComparisonOperator.js +25 -0
- package/dist/api/resources/commons/types/NumericCondition.d.ts +13 -0
- package/dist/api/resources/commons/types/NumericCondition.js +3 -0
- package/dist/api/resources/commons/types/NumericMembershipCondition.d.ts +10 -0
- package/dist/api/resources/commons/types/NumericMembershipCondition.js +3 -0
- package/dist/api/resources/commons/types/NumericMembershipOperator.d.ts +10 -0
- package/dist/api/resources/commons/types/NumericMembershipOperator.js +13 -0
- package/dist/api/resources/commons/types/Precondition.d.ts +16 -0
- package/dist/api/resources/commons/types/SetCondition.d.ts +13 -0
- package/dist/api/resources/commons/types/SetCondition.js +3 -0
- package/dist/api/resources/commons/types/SetElementCondition.d.ts +10 -0
- package/dist/api/resources/commons/types/SetElementCondition.js +3 -0
- package/dist/api/resources/commons/types/SetElementOperator.d.ts +10 -0
- package/dist/api/resources/commons/types/SetElementOperator.js +13 -0
- package/dist/api/resources/commons/types/SetRelationCondition.d.ts +10 -0
- package/dist/api/resources/commons/types/SetRelationCondition.js +3 -0
- package/dist/api/resources/commons/types/SetRelationOperator.d.ts +28 -0
- package/dist/api/resources/commons/types/SetRelationOperator.js +31 -0
- package/dist/api/resources/commons/types/StringComparisonCondition.d.ts +10 -0
- package/dist/api/resources/commons/types/StringComparisonCondition.js +3 -0
- package/dist/api/resources/commons/types/StringComparisonOperator.d.ts +10 -0
- package/dist/api/resources/commons/types/StringComparisonOperator.js +13 -0
- package/dist/api/resources/commons/types/StringCondition.d.ts +13 -0
- package/dist/api/resources/commons/types/StringCondition.js +3 -0
- package/dist/api/resources/commons/types/StringMembershipCondition.d.ts +10 -0
- package/dist/api/resources/commons/types/StringMembershipCondition.js +3 -0
- package/dist/api/resources/commons/types/StringMembershipOperator.d.ts +10 -0
- package/dist/api/resources/commons/types/StringMembershipOperator.js +13 -0
- package/dist/api/resources/commons/types/index.d.ts +18 -0
- package/dist/api/resources/commons/types/index.js +18 -0
- package/dist/serialization/resources/commons/types/BooleanCondition.d.ts +9 -0
- package/dist/serialization/resources/commons/types/BooleanCondition.js +41 -0
- package/dist/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
- package/dist/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
- package/dist/serialization/resources/commons/types/IntelligentFieldCondition.d.ts +26 -0
- package/dist/serialization/resources/commons/types/IntelligentFieldCondition.js +59 -0
- package/dist/serialization/resources/commons/types/IntelligentFieldPrecondition.d.ts +12 -0
- package/dist/serialization/resources/commons/types/IntelligentFieldPrecondition.js +44 -0
- package/dist/serialization/resources/commons/types/NumericComparisonCondition.d.ts +11 -0
- package/dist/serialization/resources/commons/types/NumericComparisonCondition.js +43 -0
- package/dist/serialization/resources/commons/types/NumericComparisonOperator.d.ts +7 -0
- package/dist/serialization/resources/commons/types/NumericComparisonOperator.js +39 -0
- package/dist/serialization/resources/commons/types/NumericCondition.d.ts +15 -0
- package/dist/serialization/resources/commons/types/NumericCondition.js +49 -0
- package/dist/serialization/resources/commons/types/NumericMembershipCondition.d.ts +11 -0
- package/dist/serialization/resources/commons/types/NumericMembershipCondition.js +43 -0
- package/dist/serialization/resources/commons/types/NumericMembershipOperator.d.ts +7 -0
- package/dist/serialization/resources/commons/types/NumericMembershipOperator.js +39 -0
- package/dist/serialization/resources/commons/types/SetCondition.d.ts +15 -0
- package/dist/serialization/resources/commons/types/SetCondition.js +49 -0
- package/dist/serialization/resources/commons/types/SetElementCondition.d.ts +11 -0
- package/dist/serialization/resources/commons/types/SetElementCondition.js +43 -0
- package/dist/serialization/resources/commons/types/SetElementOperator.d.ts +7 -0
- package/dist/serialization/resources/commons/types/SetElementOperator.js +39 -0
- package/dist/serialization/resources/commons/types/SetRelationCondition.d.ts +11 -0
- package/dist/serialization/resources/commons/types/SetRelationCondition.js +43 -0
- package/dist/serialization/resources/commons/types/SetRelationOperator.d.ts +7 -0
- package/dist/serialization/resources/commons/types/SetRelationOperator.js +48 -0
- package/dist/serialization/resources/commons/types/StringComparisonCondition.d.ts +11 -0
- package/dist/serialization/resources/commons/types/StringComparisonCondition.js +43 -0
- package/dist/serialization/resources/commons/types/StringComparisonOperator.d.ts +7 -0
- package/dist/serialization/resources/commons/types/StringComparisonOperator.js +39 -0
- package/dist/serialization/resources/commons/types/StringCondition.d.ts +15 -0
- package/dist/serialization/resources/commons/types/StringCondition.js +49 -0
- package/dist/serialization/resources/commons/types/StringMembershipCondition.d.ts +11 -0
- package/dist/serialization/resources/commons/types/StringMembershipCondition.js +43 -0
- package/dist/serialization/resources/commons/types/StringMembershipOperator.d.ts +7 -0
- package/dist/serialization/resources/commons/types/StringMembershipOperator.js +39 -0
- package/dist/serialization/resources/commons/types/index.d.ts +18 -0
- package/dist/serialization/resources/commons/types/index.js +18 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/commons/types/BooleanCondition.d.ts +9 -0
- package/serialization/resources/commons/types/BooleanCondition.js +41 -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/IntelligentFieldCondition.d.ts +26 -0
- package/serialization/resources/commons/types/IntelligentFieldCondition.js +59 -0
- package/serialization/resources/commons/types/IntelligentFieldPrecondition.d.ts +12 -0
- package/serialization/resources/commons/types/IntelligentFieldPrecondition.js +44 -0
- package/serialization/resources/commons/types/NumericComparisonCondition.d.ts +11 -0
- package/serialization/resources/commons/types/NumericComparisonCondition.js +43 -0
- package/serialization/resources/commons/types/NumericComparisonOperator.d.ts +7 -0
- package/serialization/resources/commons/types/NumericComparisonOperator.js +39 -0
- package/serialization/resources/commons/types/NumericCondition.d.ts +15 -0
- package/serialization/resources/commons/types/NumericCondition.js +49 -0
- package/serialization/resources/commons/types/NumericMembershipCondition.d.ts +11 -0
- package/serialization/resources/commons/types/NumericMembershipCondition.js +43 -0
- package/serialization/resources/commons/types/NumericMembershipOperator.d.ts +7 -0
- package/serialization/resources/commons/types/NumericMembershipOperator.js +39 -0
- package/serialization/resources/commons/types/SetCondition.d.ts +15 -0
- package/serialization/resources/commons/types/SetCondition.js +49 -0
- package/serialization/resources/commons/types/SetElementCondition.d.ts +11 -0
- package/serialization/resources/commons/types/SetElementCondition.js +43 -0
- package/serialization/resources/commons/types/SetElementOperator.d.ts +7 -0
- package/serialization/resources/commons/types/SetElementOperator.js +39 -0
- package/serialization/resources/commons/types/SetRelationCondition.d.ts +11 -0
- package/serialization/resources/commons/types/SetRelationCondition.js +43 -0
- package/serialization/resources/commons/types/SetRelationOperator.d.ts +7 -0
- package/serialization/resources/commons/types/SetRelationOperator.js +48 -0
- package/serialization/resources/commons/types/StringComparisonCondition.d.ts +11 -0
- package/serialization/resources/commons/types/StringComparisonCondition.js +43 -0
- package/serialization/resources/commons/types/StringComparisonOperator.d.ts +7 -0
- package/serialization/resources/commons/types/StringComparisonOperator.js +39 -0
- package/serialization/resources/commons/types/StringCondition.d.ts +15 -0
- package/serialization/resources/commons/types/StringCondition.js +49 -0
- package/serialization/resources/commons/types/StringMembershipCondition.d.ts +11 -0
- package/serialization/resources/commons/types/StringMembershipCondition.js +43 -0
- package/serialization/resources/commons/types/StringMembershipOperator.d.ts +7 -0
- package/serialization/resources/commons/types/StringMembershipOperator.js +39 -0
- package/serialization/resources/commons/types/index.d.ts +18 -0
- package/serialization/resources/commons/types/index.js +18 -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.16",
|
|
66
|
+
"User-Agent": "mavenagi/1.2.16",
|
|
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) });
|
|
@@ -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;
|
|
2
|
+
export type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted | MavenAGI.ConversationPrecondition.ResponseConfig | MavenAGI.ConversationPrecondition.App | MavenAGI.ConversationPrecondition.IntelligentField;
|
|
3
3
|
export declare namespace ConversationPrecondition {
|
|
4
4
|
interface Tags extends MavenAGI.TagsPrecondition {
|
|
5
5
|
conversationPreconditionType: "tags";
|
|
@@ -16,4 +16,7 @@ export declare namespace ConversationPrecondition {
|
|
|
16
16
|
interface App extends MavenAGI.AppPrecondition {
|
|
17
17
|
conversationPreconditionType: "app";
|
|
18
18
|
}
|
|
19
|
+
interface IntelligentField extends MavenAGI.IntelligentFieldPrecondition {
|
|
20
|
+
conversationPreconditionType: "intelligentField";
|
|
21
|
+
}
|
|
19
22
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The condition to evaluate against an intelligent field's value.
|
|
4
|
+
* Use the appropriate type based on the field's validationType:
|
|
5
|
+
* - `string`: For STRING and MULTILINE fields
|
|
6
|
+
* - `numeric`: For NUMBER fields
|
|
7
|
+
* - `boolean`: For BOOLEAN fields
|
|
8
|
+
* - `set`: For MULTI_SELECT fields (unordered set of values)
|
|
9
|
+
*
|
|
10
|
+
* Note: single select fields are represented as STRING/NUMBER with a list of
|
|
11
|
+
* enumOptions.
|
|
12
|
+
*
|
|
13
|
+
* The caller is responsible for querying the validationType and enumOptions
|
|
14
|
+
* from the intelligent field API to ensure the values are valid enumOptions.
|
|
15
|
+
*/
|
|
16
|
+
export type IntelligentFieldCondition = MavenAGI.IntelligentFieldCondition.String | MavenAGI.IntelligentFieldCondition.Numeric | MavenAGI.IntelligentFieldCondition.Boolean | MavenAGI.IntelligentFieldCondition.Set;
|
|
17
|
+
export declare namespace IntelligentFieldCondition {
|
|
18
|
+
interface String {
|
|
19
|
+
fieldValidationType: "string";
|
|
20
|
+
value: MavenAGI.StringCondition;
|
|
21
|
+
}
|
|
22
|
+
interface Numeric {
|
|
23
|
+
fieldValidationType: "numeric";
|
|
24
|
+
value: MavenAGI.NumericCondition;
|
|
25
|
+
}
|
|
26
|
+
interface Boolean extends MavenAGI.BooleanCondition {
|
|
27
|
+
fieldValidationType: "boolean";
|
|
28
|
+
}
|
|
29
|
+
interface Set {
|
|
30
|
+
fieldValidationType: "set";
|
|
31
|
+
value: MavenAGI.SetCondition;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A precondition based on the computed value of an intelligent field on the conversation.
|
|
4
|
+
*
|
|
5
|
+
* Note: in early beta, only opt-in apps and organizations/agents can
|
|
6
|
+
* specify intelligent field preconditions. Otherwise, the request will be
|
|
7
|
+
* rejected.
|
|
8
|
+
*/
|
|
9
|
+
export interface IntelligentFieldPrecondition {
|
|
10
|
+
/** The referenceId of the intelligent field. */
|
|
11
|
+
fieldReferenceId: string;
|
|
12
|
+
/** The appId of the intelligent field. If not provided, the calling appId will be used. */
|
|
13
|
+
fieldAppId?: string;
|
|
14
|
+
/** The condition to evaluate against the field's value. */
|
|
15
|
+
fieldCondition: MavenAGI.IntelligentFieldCondition;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Condition comparing against a single numeric value
|
|
4
|
+
*/
|
|
5
|
+
export interface NumericComparisonCondition {
|
|
6
|
+
/** The comparison operator to apply */
|
|
7
|
+
operator: MavenAGI.NumericComparisonOperator;
|
|
8
|
+
/** The numeric value to compare against */
|
|
9
|
+
value: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Operators for single numeric value comparisons */
|
|
2
|
+
export declare const NumericComparisonOperator: {
|
|
3
|
+
/**
|
|
4
|
+
* Equals (=) */
|
|
5
|
+
readonly Eq: "EQ";
|
|
6
|
+
/**
|
|
7
|
+
* Not equals (!=) */
|
|
8
|
+
readonly Neq: "NEQ";
|
|
9
|
+
/**
|
|
10
|
+
* Less than (<) */
|
|
11
|
+
readonly Lt: "LT";
|
|
12
|
+
/**
|
|
13
|
+
* Less than or equals (<=) */
|
|
14
|
+
readonly Le: "LE";
|
|
15
|
+
/**
|
|
16
|
+
* Greater than (>) */
|
|
17
|
+
readonly Gt: "GT";
|
|
18
|
+
/**
|
|
19
|
+
* Greater than or equals (>=) */
|
|
20
|
+
readonly Ge: "GE";
|
|
21
|
+
};
|
|
22
|
+
export type NumericComparisonOperator = (typeof NumericComparisonOperator)[keyof typeof NumericComparisonOperator];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.NumericComparisonOperator = void 0;
|
|
5
|
+
/** Operators for single numeric value comparisons */
|
|
6
|
+
exports.NumericComparisonOperator = {
|
|
7
|
+
/**
|
|
8
|
+
* Equals (=) */
|
|
9
|
+
Eq: "EQ",
|
|
10
|
+
/**
|
|
11
|
+
* Not equals (!=) */
|
|
12
|
+
Neq: "NEQ",
|
|
13
|
+
/**
|
|
14
|
+
* Less than (<) */
|
|
15
|
+
Lt: "LT",
|
|
16
|
+
/**
|
|
17
|
+
* Less than or equals (<=) */
|
|
18
|
+
Le: "LE",
|
|
19
|
+
/**
|
|
20
|
+
* Greater than (>) */
|
|
21
|
+
Gt: "GT",
|
|
22
|
+
/**
|
|
23
|
+
* Greater than or equals (>=) */
|
|
24
|
+
Ge: "GE",
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Condition for numeric values
|
|
4
|
+
*/
|
|
5
|
+
export type NumericCondition = MavenAGI.NumericCondition.Comparison | MavenAGI.NumericCondition.Membership;
|
|
6
|
+
export declare namespace NumericCondition {
|
|
7
|
+
interface Comparison extends MavenAGI.NumericComparisonCondition {
|
|
8
|
+
opType: "comparison";
|
|
9
|
+
}
|
|
10
|
+
interface Membership extends MavenAGI.NumericMembershipCondition {
|
|
11
|
+
opType: "membership";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Condition checking membership in a set of numbers
|
|
4
|
+
*/
|
|
5
|
+
export interface NumericMembershipCondition {
|
|
6
|
+
/** The comparison operator to apply */
|
|
7
|
+
operator: MavenAGI.NumericMembershipOperator;
|
|
8
|
+
/** The set of numeric values to compare against */
|
|
9
|
+
values: number[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Operators for numeric set membership */
|
|
2
|
+
export declare const NumericMembershipOperator: {
|
|
3
|
+
/**
|
|
4
|
+
* Value is in the set (∈) */
|
|
5
|
+
readonly In: "IN";
|
|
6
|
+
/**
|
|
7
|
+
* Value is not in the set (∉) */
|
|
8
|
+
readonly NotIn: "NOT_IN";
|
|
9
|
+
};
|
|
10
|
+
export type NumericMembershipOperator = (typeof NumericMembershipOperator)[keyof typeof NumericMembershipOperator];
|
|
@@ -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.NumericMembershipOperator = void 0;
|
|
5
|
+
/** Operators for numeric set membership */
|
|
6
|
+
exports.NumericMembershipOperator = {
|
|
7
|
+
/**
|
|
8
|
+
* Value is in the set (∈) */
|
|
9
|
+
In: "IN",
|
|
10
|
+
/**
|
|
11
|
+
* Value is not in the set (∉) */
|
|
12
|
+
NotIn: "NOT_IN",
|
|
13
|
+
};
|
|
@@ -12,6 +12,22 @@ import type * as MavenAGI from "../../../index";
|
|
|
12
12
|
* key: "userKey2"
|
|
13
13
|
* }]
|
|
14
14
|
* }
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* {
|
|
18
|
+
* preconditionType: "conversation",
|
|
19
|
+
* value: {
|
|
20
|
+
* conversationPreconditionType: "intelligentField"
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* {
|
|
26
|
+
* preconditionType: "conversation",
|
|
27
|
+
* value: {
|
|
28
|
+
* conversationPreconditionType: "intelligentField"
|
|
29
|
+
* }
|
|
30
|
+
* }
|
|
15
31
|
*/
|
|
16
32
|
export type Precondition = MavenAGI.Precondition.User | MavenAGI.Precondition.Conversation | MavenAGI.Precondition.Group;
|
|
17
33
|
export declare namespace Precondition {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Condition for set values (e.g., MULTI_SELECT fields)
|
|
4
|
+
*/
|
|
5
|
+
export type SetCondition = MavenAGI.SetCondition.Element | MavenAGI.SetCondition.Relation;
|
|
6
|
+
export declare namespace SetCondition {
|
|
7
|
+
interface Element extends MavenAGI.SetElementCondition {
|
|
8
|
+
opType: "element";
|
|
9
|
+
}
|
|
10
|
+
interface Relation extends MavenAGI.SetRelationCondition {
|
|
11
|
+
opType: "relation";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Condition checking if set contains a single element
|
|
4
|
+
*/
|
|
5
|
+
export interface SetElementCondition {
|
|
6
|
+
/** The comparison operator to apply */
|
|
7
|
+
operator: MavenAGI.SetElementOperator;
|
|
8
|
+
/** The value to check for */
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Operators for checking single element in a set */
|
|
2
|
+
export declare const SetElementOperator: {
|
|
3
|
+
/**
|
|
4
|
+
* Set contains the value (∋) */
|
|
5
|
+
readonly Contains: "CONTAINS";
|
|
6
|
+
/**
|
|
7
|
+
* Set does not contain the value (∌) */
|
|
8
|
+
readonly NotContains: "NOT_CONTAINS";
|
|
9
|
+
};
|
|
10
|
+
export type SetElementOperator = (typeof SetElementOperator)[keyof typeof SetElementOperator];
|
|
@@ -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.SetElementOperator = void 0;
|
|
5
|
+
/** Operators for checking single element in a set */
|
|
6
|
+
exports.SetElementOperator = {
|
|
7
|
+
/**
|
|
8
|
+
* Set contains the value (∋) */
|
|
9
|
+
Contains: "CONTAINS",
|
|
10
|
+
/**
|
|
11
|
+
* Set does not contain the value (∌) */
|
|
12
|
+
NotContains: "NOT_CONTAINS",
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Condition comparing set against another set of values
|
|
4
|
+
*/
|
|
5
|
+
export interface SetRelationCondition {
|
|
6
|
+
/** The comparison operator to apply */
|
|
7
|
+
operator: MavenAGI.SetRelationOperator;
|
|
8
|
+
/** The (unordered) set of values to compare against */
|
|
9
|
+
values: Set<string>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Operators for set relation operations */
|
|
2
|
+
export declare const SetRelationOperator: {
|
|
3
|
+
/**
|
|
4
|
+
* Set equals the specified set (=) */
|
|
5
|
+
readonly Eq: "EQ";
|
|
6
|
+
/**
|
|
7
|
+
* Set does not equal the specified set (≠) */
|
|
8
|
+
readonly Neq: "NEQ";
|
|
9
|
+
/**
|
|
10
|
+
* Set contains any of the values (A ∩ B ≠ ∅) */
|
|
11
|
+
readonly ContainsAny: "CONTAINS_ANY";
|
|
12
|
+
/**
|
|
13
|
+
* Set contains none of the values (A ∩ B = ∅) */
|
|
14
|
+
readonly NotContainsAny: "NOT_CONTAINS_ANY";
|
|
15
|
+
/**
|
|
16
|
+
* Set contains all of the values (A ⊇ B) */
|
|
17
|
+
readonly ContainsAll: "CONTAINS_ALL";
|
|
18
|
+
/**
|
|
19
|
+
* Set does not contain all of the values (A ⊉ B) */
|
|
20
|
+
readonly NotContainsAll: "NOT_CONTAINS_ALL";
|
|
21
|
+
/**
|
|
22
|
+
* Set is a subset of the values (A ⊆ B) */
|
|
23
|
+
readonly SubsetOf: "SUBSET_OF";
|
|
24
|
+
/**
|
|
25
|
+
* Set is not a subset of the values (A ⊈ B) */
|
|
26
|
+
readonly NotSubsetOf: "NOT_SUBSET_OF";
|
|
27
|
+
};
|
|
28
|
+
export type SetRelationOperator = (typeof SetRelationOperator)[keyof typeof SetRelationOperator];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SetRelationOperator = void 0;
|
|
5
|
+
/** Operators for set relation operations */
|
|
6
|
+
exports.SetRelationOperator = {
|
|
7
|
+
/**
|
|
8
|
+
* Set equals the specified set (=) */
|
|
9
|
+
Eq: "EQ",
|
|
10
|
+
/**
|
|
11
|
+
* Set does not equal the specified set (≠) */
|
|
12
|
+
Neq: "NEQ",
|
|
13
|
+
/**
|
|
14
|
+
* Set contains any of the values (A ∩ B ≠ ∅) */
|
|
15
|
+
ContainsAny: "CONTAINS_ANY",
|
|
16
|
+
/**
|
|
17
|
+
* Set contains none of the values (A ∩ B = ∅) */
|
|
18
|
+
NotContainsAny: "NOT_CONTAINS_ANY",
|
|
19
|
+
/**
|
|
20
|
+
* Set contains all of the values (A ⊇ B) */
|
|
21
|
+
ContainsAll: "CONTAINS_ALL",
|
|
22
|
+
/**
|
|
23
|
+
* Set does not contain all of the values (A ⊉ B) */
|
|
24
|
+
NotContainsAll: "NOT_CONTAINS_ALL",
|
|
25
|
+
/**
|
|
26
|
+
* Set is a subset of the values (A ⊆ B) */
|
|
27
|
+
SubsetOf: "SUBSET_OF",
|
|
28
|
+
/**
|
|
29
|
+
* Set is not a subset of the values (A ⊈ B) */
|
|
30
|
+
NotSubsetOf: "NOT_SUBSET_OF",
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Condition comparing against a single string value
|
|
4
|
+
*/
|
|
5
|
+
export interface StringComparisonCondition {
|
|
6
|
+
/** The comparison operator to apply */
|
|
7
|
+
operator: MavenAGI.StringComparisonOperator;
|
|
8
|
+
/** The string value to compare against */
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Operators for single string value comparisons */
|
|
2
|
+
export declare const StringComparisonOperator: {
|
|
3
|
+
/**
|
|
4
|
+
* Equals (=) */
|
|
5
|
+
readonly Eq: "EQ";
|
|
6
|
+
/**
|
|
7
|
+
* Not equals (!=) */
|
|
8
|
+
readonly Neq: "NEQ";
|
|
9
|
+
};
|
|
10
|
+
export type StringComparisonOperator = (typeof StringComparisonOperator)[keyof typeof StringComparisonOperator];
|
|
@@ -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.StringComparisonOperator = void 0;
|
|
5
|
+
/** Operators for single string value comparisons */
|
|
6
|
+
exports.StringComparisonOperator = {
|
|
7
|
+
/**
|
|
8
|
+
* Equals (=) */
|
|
9
|
+
Eq: "EQ",
|
|
10
|
+
/**
|
|
11
|
+
* Not equals (!=) */
|
|
12
|
+
Neq: "NEQ",
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Condition for string values
|
|
4
|
+
*/
|
|
5
|
+
export type StringCondition = MavenAGI.StringCondition.Comparison | MavenAGI.StringCondition.Membership;
|
|
6
|
+
export declare namespace StringCondition {
|
|
7
|
+
interface Comparison extends MavenAGI.StringComparisonCondition {
|
|
8
|
+
opType: "comparison";
|
|
9
|
+
}
|
|
10
|
+
interface Membership extends MavenAGI.StringMembershipCondition {
|
|
11
|
+
opType: "membership";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Condition checking membership in a set of strings
|
|
4
|
+
*/
|
|
5
|
+
export interface StringMembershipCondition {
|
|
6
|
+
/** The comparison operator to apply */
|
|
7
|
+
operator: MavenAGI.StringMembershipOperator;
|
|
8
|
+
/** The set of string values to compare against */
|
|
9
|
+
values: string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Operators for string set membership */
|
|
2
|
+
export declare const StringMembershipOperator: {
|
|
3
|
+
/**
|
|
4
|
+
* Value is in the set (∈) */
|
|
5
|
+
readonly In: "IN";
|
|
6
|
+
/**
|
|
7
|
+
* Value is not in the set (∉) */
|
|
8
|
+
readonly NotIn: "NOT_IN";
|
|
9
|
+
};
|
|
10
|
+
export type StringMembershipOperator = (typeof StringMembershipOperator)[keyof typeof StringMembershipOperator];
|
|
@@ -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.StringMembershipOperator = void 0;
|
|
5
|
+
/** Operators for string set membership */
|
|
6
|
+
exports.StringMembershipOperator = {
|
|
7
|
+
/**
|
|
8
|
+
* Value is in the set (∈) */
|
|
9
|
+
In: "IN",
|
|
10
|
+
/**
|
|
11
|
+
* Value is not in the set (∉) */
|
|
12
|
+
NotIn: "NOT_IN",
|
|
13
|
+
};
|
|
@@ -22,6 +22,7 @@ export * from "./BaseAttachment";
|
|
|
22
22
|
export * from "./BaseConversationResponse";
|
|
23
23
|
export * from "./BasePaginatedRequest";
|
|
24
24
|
export * from "./BaseSearchRequest";
|
|
25
|
+
export * from "./BooleanCondition";
|
|
25
26
|
export * from "./BotActionFormResponse";
|
|
26
27
|
export * from "./BotChartResponse";
|
|
27
28
|
export * from "./BotConversationMessageType";
|
|
@@ -101,6 +102,8 @@ export * from "./InboxItemMissingKnowledge";
|
|
|
101
102
|
export * from "./InboxItemSeverity";
|
|
102
103
|
export * from "./InboxItemStatus";
|
|
103
104
|
export * from "./InboxItemType";
|
|
105
|
+
export * from "./IntelligentFieldCondition";
|
|
106
|
+
export * from "./IntelligentFieldPrecondition";
|
|
104
107
|
export * from "./IpInfo";
|
|
105
108
|
export * from "./KnowledgeContextByEntities";
|
|
106
109
|
export * from "./KnowledgeContextByEntityTypes";
|
|
@@ -116,6 +119,11 @@ export * from "./NovelSystemEventNoId";
|
|
|
116
119
|
export * from "./NovelUserEvent";
|
|
117
120
|
export * from "./NumberRange";
|
|
118
121
|
export * from "./NumberSettingsSchemaEntry";
|
|
122
|
+
export * from "./NumericComparisonCondition";
|
|
123
|
+
export * from "./NumericComparisonOperator";
|
|
124
|
+
export * from "./NumericCondition";
|
|
125
|
+
export * from "./NumericMembershipCondition";
|
|
126
|
+
export * from "./NumericMembershipOperator";
|
|
119
127
|
export * from "./OAuthAuthenticationMethod";
|
|
120
128
|
export * from "./OAuthSettingsSchemaEntry";
|
|
121
129
|
export * from "./OneOfSettingsSchemaEntry";
|
|
@@ -139,6 +147,11 @@ export * from "./ScopedEntity";
|
|
|
139
147
|
export * from "./SectionSettingsSchemaEntry";
|
|
140
148
|
export * from "./Sentiment";
|
|
141
149
|
export * from "./SessionInfo";
|
|
150
|
+
export * from "./SetCondition";
|
|
151
|
+
export * from "./SetElementCondition";
|
|
152
|
+
export * from "./SetElementOperator";
|
|
153
|
+
export * from "./SetRelationCondition";
|
|
154
|
+
export * from "./SetRelationOperator";
|
|
142
155
|
export * from "./SettingsSchema";
|
|
143
156
|
export * from "./SettingsSchemaDiscriminatedUnionOption";
|
|
144
157
|
export * from "./SettingsSchemaDiscriminatedUnionOptions";
|
|
@@ -149,6 +162,11 @@ export * from "./SimulationContext";
|
|
|
149
162
|
export * from "./Source";
|
|
150
163
|
export * from "./SourceInfo";
|
|
151
164
|
export * from "./SourceType";
|
|
165
|
+
export * from "./StringComparisonCondition";
|
|
166
|
+
export * from "./StringComparisonOperator";
|
|
167
|
+
export * from "./StringCondition";
|
|
168
|
+
export * from "./StringMembershipCondition";
|
|
169
|
+
export * from "./StringMembershipOperator";
|
|
152
170
|
export * from "./SurveyInfo";
|
|
153
171
|
export * from "./SystemEvent";
|
|
154
172
|
export * from "./SystemEventName";
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./BaseAttachment"), exports);
|
|
|
38
38
|
__exportStar(require("./BaseConversationResponse"), exports);
|
|
39
39
|
__exportStar(require("./BasePaginatedRequest"), exports);
|
|
40
40
|
__exportStar(require("./BaseSearchRequest"), exports);
|
|
41
|
+
__exportStar(require("./BooleanCondition"), exports);
|
|
41
42
|
__exportStar(require("./BotActionFormResponse"), exports);
|
|
42
43
|
__exportStar(require("./BotChartResponse"), exports);
|
|
43
44
|
__exportStar(require("./BotConversationMessageType"), exports);
|
|
@@ -117,6 +118,8 @@ __exportStar(require("./InboxItemMissingKnowledge"), exports);
|
|
|
117
118
|
__exportStar(require("./InboxItemSeverity"), exports);
|
|
118
119
|
__exportStar(require("./InboxItemStatus"), exports);
|
|
119
120
|
__exportStar(require("./InboxItemType"), exports);
|
|
121
|
+
__exportStar(require("./IntelligentFieldCondition"), exports);
|
|
122
|
+
__exportStar(require("./IntelligentFieldPrecondition"), exports);
|
|
120
123
|
__exportStar(require("./IpInfo"), exports);
|
|
121
124
|
__exportStar(require("./KnowledgeContextByEntities"), exports);
|
|
122
125
|
__exportStar(require("./KnowledgeContextByEntityTypes"), exports);
|
|
@@ -132,6 +135,11 @@ __exportStar(require("./NovelSystemEventNoId"), exports);
|
|
|
132
135
|
__exportStar(require("./NovelUserEvent"), exports);
|
|
133
136
|
__exportStar(require("./NumberRange"), exports);
|
|
134
137
|
__exportStar(require("./NumberSettingsSchemaEntry"), exports);
|
|
138
|
+
__exportStar(require("./NumericComparisonCondition"), exports);
|
|
139
|
+
__exportStar(require("./NumericComparisonOperator"), exports);
|
|
140
|
+
__exportStar(require("./NumericCondition"), exports);
|
|
141
|
+
__exportStar(require("./NumericMembershipCondition"), exports);
|
|
142
|
+
__exportStar(require("./NumericMembershipOperator"), exports);
|
|
135
143
|
__exportStar(require("./OAuthAuthenticationMethod"), exports);
|
|
136
144
|
__exportStar(require("./OAuthSettingsSchemaEntry"), exports);
|
|
137
145
|
__exportStar(require("./OneOfSettingsSchemaEntry"), exports);
|
|
@@ -155,6 +163,11 @@ __exportStar(require("./ScopedEntity"), exports);
|
|
|
155
163
|
__exportStar(require("./SectionSettingsSchemaEntry"), exports);
|
|
156
164
|
__exportStar(require("./Sentiment"), exports);
|
|
157
165
|
__exportStar(require("./SessionInfo"), exports);
|
|
166
|
+
__exportStar(require("./SetCondition"), exports);
|
|
167
|
+
__exportStar(require("./SetElementCondition"), exports);
|
|
168
|
+
__exportStar(require("./SetElementOperator"), exports);
|
|
169
|
+
__exportStar(require("./SetRelationCondition"), exports);
|
|
170
|
+
__exportStar(require("./SetRelationOperator"), exports);
|
|
158
171
|
__exportStar(require("./SettingsSchema"), exports);
|
|
159
172
|
__exportStar(require("./SettingsSchemaDiscriminatedUnionOption"), exports);
|
|
160
173
|
__exportStar(require("./SettingsSchemaDiscriminatedUnionOptions"), exports);
|
|
@@ -165,6 +178,11 @@ __exportStar(require("./SimulationContext"), exports);
|
|
|
165
178
|
__exportStar(require("./Source"), exports);
|
|
166
179
|
__exportStar(require("./SourceInfo"), exports);
|
|
167
180
|
__exportStar(require("./SourceType"), exports);
|
|
181
|
+
__exportStar(require("./StringComparisonCondition"), exports);
|
|
182
|
+
__exportStar(require("./StringComparisonOperator"), exports);
|
|
183
|
+
__exportStar(require("./StringCondition"), exports);
|
|
184
|
+
__exportStar(require("./StringMembershipCondition"), exports);
|
|
185
|
+
__exportStar(require("./StringMembershipOperator"), exports);
|
|
168
186
|
__exportStar(require("./SurveyInfo"), exports);
|
|
169
187
|
__exportStar(require("./SystemEvent"), exports);
|
|
170
188
|
__exportStar(require("./SystemEventName"), exports);
|
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.16",
|
|
66
|
+
"User-Agent": "mavenagi/1.2.16",
|
|
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) });
|