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.
Files changed (167) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/commons/types/BooleanCondition.d.ts +7 -0
  3. package/api/resources/commons/types/BooleanCondition.js +3 -0
  4. package/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
  5. package/api/resources/commons/types/IntelligentFieldCondition.d.ts +33 -0
  6. package/api/resources/commons/types/IntelligentFieldCondition.js +3 -0
  7. package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +16 -0
  8. package/api/resources/commons/types/IntelligentFieldPrecondition.js +3 -0
  9. package/api/resources/commons/types/NumericComparisonCondition.d.ts +10 -0
  10. package/api/resources/commons/types/NumericComparisonCondition.js +3 -0
  11. package/api/resources/commons/types/NumericComparisonOperator.d.ts +22 -0
  12. package/api/resources/commons/types/NumericComparisonOperator.js +25 -0
  13. package/api/resources/commons/types/NumericCondition.d.ts +13 -0
  14. package/api/resources/commons/types/NumericCondition.js +3 -0
  15. package/api/resources/commons/types/NumericMembershipCondition.d.ts +10 -0
  16. package/api/resources/commons/types/NumericMembershipCondition.js +3 -0
  17. package/api/resources/commons/types/NumericMembershipOperator.d.ts +10 -0
  18. package/api/resources/commons/types/NumericMembershipOperator.js +13 -0
  19. package/api/resources/commons/types/Precondition.d.ts +16 -0
  20. package/api/resources/commons/types/SetCondition.d.ts +13 -0
  21. package/api/resources/commons/types/SetCondition.js +3 -0
  22. package/api/resources/commons/types/SetElementCondition.d.ts +10 -0
  23. package/api/resources/commons/types/SetElementCondition.js +3 -0
  24. package/api/resources/commons/types/SetElementOperator.d.ts +10 -0
  25. package/api/resources/commons/types/SetElementOperator.js +13 -0
  26. package/api/resources/commons/types/SetRelationCondition.d.ts +10 -0
  27. package/api/resources/commons/types/SetRelationCondition.js +3 -0
  28. package/api/resources/commons/types/SetRelationOperator.d.ts +28 -0
  29. package/api/resources/commons/types/SetRelationOperator.js +31 -0
  30. package/api/resources/commons/types/StringComparisonCondition.d.ts +10 -0
  31. package/api/resources/commons/types/StringComparisonCondition.js +3 -0
  32. package/api/resources/commons/types/StringComparisonOperator.d.ts +10 -0
  33. package/api/resources/commons/types/StringComparisonOperator.js +13 -0
  34. package/api/resources/commons/types/StringCondition.d.ts +13 -0
  35. package/api/resources/commons/types/StringCondition.js +3 -0
  36. package/api/resources/commons/types/StringMembershipCondition.d.ts +10 -0
  37. package/api/resources/commons/types/StringMembershipCondition.js +3 -0
  38. package/api/resources/commons/types/StringMembershipOperator.d.ts +10 -0
  39. package/api/resources/commons/types/StringMembershipOperator.js +13 -0
  40. package/api/resources/commons/types/index.d.ts +18 -0
  41. package/api/resources/commons/types/index.js +18 -0
  42. package/dist/Client.js +2 -2
  43. package/dist/api/resources/commons/types/BooleanCondition.d.ts +7 -0
  44. package/dist/api/resources/commons/types/BooleanCondition.js +3 -0
  45. package/dist/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
  46. package/dist/api/resources/commons/types/IntelligentFieldCondition.d.ts +33 -0
  47. package/dist/api/resources/commons/types/IntelligentFieldCondition.js +3 -0
  48. package/dist/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +16 -0
  49. package/dist/api/resources/commons/types/IntelligentFieldPrecondition.js +3 -0
  50. package/dist/api/resources/commons/types/NumericComparisonCondition.d.ts +10 -0
  51. package/dist/api/resources/commons/types/NumericComparisonCondition.js +3 -0
  52. package/dist/api/resources/commons/types/NumericComparisonOperator.d.ts +22 -0
  53. package/dist/api/resources/commons/types/NumericComparisonOperator.js +25 -0
  54. package/dist/api/resources/commons/types/NumericCondition.d.ts +13 -0
  55. package/dist/api/resources/commons/types/NumericCondition.js +3 -0
  56. package/dist/api/resources/commons/types/NumericMembershipCondition.d.ts +10 -0
  57. package/dist/api/resources/commons/types/NumericMembershipCondition.js +3 -0
  58. package/dist/api/resources/commons/types/NumericMembershipOperator.d.ts +10 -0
  59. package/dist/api/resources/commons/types/NumericMembershipOperator.js +13 -0
  60. package/dist/api/resources/commons/types/Precondition.d.ts +16 -0
  61. package/dist/api/resources/commons/types/SetCondition.d.ts +13 -0
  62. package/dist/api/resources/commons/types/SetCondition.js +3 -0
  63. package/dist/api/resources/commons/types/SetElementCondition.d.ts +10 -0
  64. package/dist/api/resources/commons/types/SetElementCondition.js +3 -0
  65. package/dist/api/resources/commons/types/SetElementOperator.d.ts +10 -0
  66. package/dist/api/resources/commons/types/SetElementOperator.js +13 -0
  67. package/dist/api/resources/commons/types/SetRelationCondition.d.ts +10 -0
  68. package/dist/api/resources/commons/types/SetRelationCondition.js +3 -0
  69. package/dist/api/resources/commons/types/SetRelationOperator.d.ts +28 -0
  70. package/dist/api/resources/commons/types/SetRelationOperator.js +31 -0
  71. package/dist/api/resources/commons/types/StringComparisonCondition.d.ts +10 -0
  72. package/dist/api/resources/commons/types/StringComparisonCondition.js +3 -0
  73. package/dist/api/resources/commons/types/StringComparisonOperator.d.ts +10 -0
  74. package/dist/api/resources/commons/types/StringComparisonOperator.js +13 -0
  75. package/dist/api/resources/commons/types/StringCondition.d.ts +13 -0
  76. package/dist/api/resources/commons/types/StringCondition.js +3 -0
  77. package/dist/api/resources/commons/types/StringMembershipCondition.d.ts +10 -0
  78. package/dist/api/resources/commons/types/StringMembershipCondition.js +3 -0
  79. package/dist/api/resources/commons/types/StringMembershipOperator.d.ts +10 -0
  80. package/dist/api/resources/commons/types/StringMembershipOperator.js +13 -0
  81. package/dist/api/resources/commons/types/index.d.ts +18 -0
  82. package/dist/api/resources/commons/types/index.js +18 -0
  83. package/dist/serialization/resources/commons/types/BooleanCondition.d.ts +9 -0
  84. package/dist/serialization/resources/commons/types/BooleanCondition.js +41 -0
  85. package/dist/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
  86. package/dist/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
  87. package/dist/serialization/resources/commons/types/IntelligentFieldCondition.d.ts +26 -0
  88. package/dist/serialization/resources/commons/types/IntelligentFieldCondition.js +59 -0
  89. package/dist/serialization/resources/commons/types/IntelligentFieldPrecondition.d.ts +12 -0
  90. package/dist/serialization/resources/commons/types/IntelligentFieldPrecondition.js +44 -0
  91. package/dist/serialization/resources/commons/types/NumericComparisonCondition.d.ts +11 -0
  92. package/dist/serialization/resources/commons/types/NumericComparisonCondition.js +43 -0
  93. package/dist/serialization/resources/commons/types/NumericComparisonOperator.d.ts +7 -0
  94. package/dist/serialization/resources/commons/types/NumericComparisonOperator.js +39 -0
  95. package/dist/serialization/resources/commons/types/NumericCondition.d.ts +15 -0
  96. package/dist/serialization/resources/commons/types/NumericCondition.js +49 -0
  97. package/dist/serialization/resources/commons/types/NumericMembershipCondition.d.ts +11 -0
  98. package/dist/serialization/resources/commons/types/NumericMembershipCondition.js +43 -0
  99. package/dist/serialization/resources/commons/types/NumericMembershipOperator.d.ts +7 -0
  100. package/dist/serialization/resources/commons/types/NumericMembershipOperator.js +39 -0
  101. package/dist/serialization/resources/commons/types/SetCondition.d.ts +15 -0
  102. package/dist/serialization/resources/commons/types/SetCondition.js +49 -0
  103. package/dist/serialization/resources/commons/types/SetElementCondition.d.ts +11 -0
  104. package/dist/serialization/resources/commons/types/SetElementCondition.js +43 -0
  105. package/dist/serialization/resources/commons/types/SetElementOperator.d.ts +7 -0
  106. package/dist/serialization/resources/commons/types/SetElementOperator.js +39 -0
  107. package/dist/serialization/resources/commons/types/SetRelationCondition.d.ts +11 -0
  108. package/dist/serialization/resources/commons/types/SetRelationCondition.js +43 -0
  109. package/dist/serialization/resources/commons/types/SetRelationOperator.d.ts +7 -0
  110. package/dist/serialization/resources/commons/types/SetRelationOperator.js +48 -0
  111. package/dist/serialization/resources/commons/types/StringComparisonCondition.d.ts +11 -0
  112. package/dist/serialization/resources/commons/types/StringComparisonCondition.js +43 -0
  113. package/dist/serialization/resources/commons/types/StringComparisonOperator.d.ts +7 -0
  114. package/dist/serialization/resources/commons/types/StringComparisonOperator.js +39 -0
  115. package/dist/serialization/resources/commons/types/StringCondition.d.ts +15 -0
  116. package/dist/serialization/resources/commons/types/StringCondition.js +49 -0
  117. package/dist/serialization/resources/commons/types/StringMembershipCondition.d.ts +11 -0
  118. package/dist/serialization/resources/commons/types/StringMembershipCondition.js +43 -0
  119. package/dist/serialization/resources/commons/types/StringMembershipOperator.d.ts +7 -0
  120. package/dist/serialization/resources/commons/types/StringMembershipOperator.js +39 -0
  121. package/dist/serialization/resources/commons/types/index.d.ts +18 -0
  122. package/dist/serialization/resources/commons/types/index.js +18 -0
  123. package/dist/version.d.ts +1 -1
  124. package/dist/version.js +1 -1
  125. package/package.json +1 -1
  126. package/serialization/resources/commons/types/BooleanCondition.d.ts +9 -0
  127. package/serialization/resources/commons/types/BooleanCondition.js +41 -0
  128. package/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
  129. package/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
  130. package/serialization/resources/commons/types/IntelligentFieldCondition.d.ts +26 -0
  131. package/serialization/resources/commons/types/IntelligentFieldCondition.js +59 -0
  132. package/serialization/resources/commons/types/IntelligentFieldPrecondition.d.ts +12 -0
  133. package/serialization/resources/commons/types/IntelligentFieldPrecondition.js +44 -0
  134. package/serialization/resources/commons/types/NumericComparisonCondition.d.ts +11 -0
  135. package/serialization/resources/commons/types/NumericComparisonCondition.js +43 -0
  136. package/serialization/resources/commons/types/NumericComparisonOperator.d.ts +7 -0
  137. package/serialization/resources/commons/types/NumericComparisonOperator.js +39 -0
  138. package/serialization/resources/commons/types/NumericCondition.d.ts +15 -0
  139. package/serialization/resources/commons/types/NumericCondition.js +49 -0
  140. package/serialization/resources/commons/types/NumericMembershipCondition.d.ts +11 -0
  141. package/serialization/resources/commons/types/NumericMembershipCondition.js +43 -0
  142. package/serialization/resources/commons/types/NumericMembershipOperator.d.ts +7 -0
  143. package/serialization/resources/commons/types/NumericMembershipOperator.js +39 -0
  144. package/serialization/resources/commons/types/SetCondition.d.ts +15 -0
  145. package/serialization/resources/commons/types/SetCondition.js +49 -0
  146. package/serialization/resources/commons/types/SetElementCondition.d.ts +11 -0
  147. package/serialization/resources/commons/types/SetElementCondition.js +43 -0
  148. package/serialization/resources/commons/types/SetElementOperator.d.ts +7 -0
  149. package/serialization/resources/commons/types/SetElementOperator.js +39 -0
  150. package/serialization/resources/commons/types/SetRelationCondition.d.ts +11 -0
  151. package/serialization/resources/commons/types/SetRelationCondition.js +43 -0
  152. package/serialization/resources/commons/types/SetRelationOperator.d.ts +7 -0
  153. package/serialization/resources/commons/types/SetRelationOperator.js +48 -0
  154. package/serialization/resources/commons/types/StringComparisonCondition.d.ts +11 -0
  155. package/serialization/resources/commons/types/StringComparisonCondition.js +43 -0
  156. package/serialization/resources/commons/types/StringComparisonOperator.d.ts +7 -0
  157. package/serialization/resources/commons/types/StringComparisonOperator.js +39 -0
  158. package/serialization/resources/commons/types/StringCondition.d.ts +15 -0
  159. package/serialization/resources/commons/types/StringCondition.js +49 -0
  160. package/serialization/resources/commons/types/StringMembershipCondition.d.ts +11 -0
  161. package/serialization/resources/commons/types/StringMembershipCondition.js +43 -0
  162. package/serialization/resources/commons/types/StringMembershipOperator.d.ts +7 -0
  163. package/serialization/resources/commons/types/StringMembershipOperator.js +39 -0
  164. package/serialization/resources/commons/types/index.d.ts +18 -0
  165. package/serialization/resources/commons/types/index.js +18 -0
  166. package/version.d.ts +1 -1
  167. 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.15",
66
- "User-Agent": "mavenagi/1.2.15",
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) });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Condition for boolean values
3
+ */
4
+ export interface BooleanCondition {
5
+ /** The expected boolean value (true or false) */
6
+ value: boolean;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.15",
66
- "User-Agent": "mavenagi/1.2.15",
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) });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Condition for boolean values
3
+ */
4
+ export interface BooleanCondition {
5
+ /** The expected boolean value (true or false) */
6
+ value: boolean;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });