mavenagi 1.2.49 → 1.2.50

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 (38) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/commons/types/IntelligentFieldCondition.d.ts +5 -1
  3. package/api/resources/commons/types/JsonSchemaSettingsSchemaEntry.d.ts +6 -0
  4. package/api/resources/commons/types/JsonSchemaSettingsSchemaEntry.js +3 -0
  5. package/api/resources/commons/types/PresenceCondition.d.ts +9 -0
  6. package/api/resources/commons/types/PresenceCondition.js +3 -0
  7. package/api/resources/commons/types/PresenceOperator.d.ts +15 -0
  8. package/api/resources/commons/types/PresenceOperator.js +18 -0
  9. package/api/resources/commons/types/SettingsSchemaEntry.d.ts +7 -1
  10. package/api/resources/commons/types/SwitchSettingsSchemaEntry.d.ts +4 -0
  11. package/api/resources/commons/types/SwitchSettingsSchemaEntry.js +3 -0
  12. package/api/resources/commons/types/UniversalCondition.d.ts +13 -0
  13. package/api/resources/commons/types/UniversalCondition.js +3 -0
  14. package/api/resources/commons/types/index.d.ts +5 -0
  15. package/api/resources/commons/types/index.js +5 -0
  16. package/api/resources/conversation/types/ConversationField.d.ts +1 -0
  17. package/api/resources/conversation/types/ConversationField.js +1 -0
  18. package/package.json +1 -1
  19. package/serialization/resources/commons/types/IntelligentFieldCondition.d.ts +6 -1
  20. package/serialization/resources/commons/types/IntelligentFieldCondition.js +4 -0
  21. package/serialization/resources/commons/types/JsonSchemaSettingsSchemaEntry.d.ts +11 -0
  22. package/serialization/resources/commons/types/JsonSchemaSettingsSchemaEntry.js +45 -0
  23. package/serialization/resources/commons/types/PresenceCondition.d.ts +10 -0
  24. package/serialization/resources/commons/types/PresenceCondition.js +42 -0
  25. package/serialization/resources/commons/types/PresenceOperator.d.ts +7 -0
  26. package/serialization/resources/commons/types/PresenceOperator.js +39 -0
  27. package/serialization/resources/commons/types/SettingsSchemaEntry.d.ts +9 -1
  28. package/serialization/resources/commons/types/SettingsSchemaEntry.js +4 -0
  29. package/serialization/resources/commons/types/SwitchSettingsSchemaEntry.d.ts +10 -0
  30. package/serialization/resources/commons/types/SwitchSettingsSchemaEntry.js +44 -0
  31. package/serialization/resources/commons/types/UniversalCondition.d.ts +11 -0
  32. package/serialization/resources/commons/types/UniversalCondition.js +47 -0
  33. package/serialization/resources/commons/types/index.d.ts +5 -0
  34. package/serialization/resources/commons/types/index.js +5 -0
  35. package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  36. package/serialization/resources/conversation/types/ConversationField.js +1 -0
  37. package/version.d.ts +1 -1
  38. package/version.js +1 -1
package/BaseClient.js CHANGED
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "mavenagi",
46
- "X-Fern-SDK-Version": "1.2.49",
47
- "User-Agent": "mavenagi/1.2.49",
46
+ "X-Fern-SDK-Version": "1.2.50",
47
+ "User-Agent": "mavenagi/1.2.50",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
@@ -13,7 +13,7 @@ import type * as MavenAGI from "../../../index";
13
13
  * The caller is responsible for querying the validationType and enumOptions
14
14
  * from the intelligent field API to ensure the values are valid enumOptions.
15
15
  */
16
- export type IntelligentFieldCondition = MavenAGI.IntelligentFieldCondition.String | MavenAGI.IntelligentFieldCondition.Numeric | MavenAGI.IntelligentFieldCondition.Boolean | MavenAGI.IntelligentFieldCondition.Set;
16
+ export type IntelligentFieldCondition = MavenAGI.IntelligentFieldCondition.String | MavenAGI.IntelligentFieldCondition.Numeric | MavenAGI.IntelligentFieldCondition.Boolean | MavenAGI.IntelligentFieldCondition.Set | MavenAGI.IntelligentFieldCondition.Universal;
17
17
  export declare namespace IntelligentFieldCondition {
18
18
  interface String {
19
19
  fieldValidationType: "string";
@@ -30,4 +30,8 @@ export declare namespace IntelligentFieldCondition {
30
30
  fieldValidationType: "set";
31
31
  value: MavenAGI.SetCondition;
32
32
  }
33
+ interface Universal {
34
+ fieldValidationType: "universal";
35
+ value: MavenAGI.UniversalCondition;
36
+ }
33
37
  }
@@ -0,0 +1,6 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface JsonSchemaSettingsSchemaEntry extends MavenAGI.SettingsSchemaEntryBase {
3
+ /** JSON Schema (as a JSON string) describing the expected shape of this setting's value. */
4
+ jsonSchema: string;
5
+ defaultValue?: unknown;
6
+ }
@@ -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,9 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A type-independent check on whether an intelligent field is determined or
4
+ * undetermined. Works for every field validationType.
5
+ */
6
+ export interface PresenceCondition {
7
+ /** The presence operator to apply */
8
+ operator: MavenAGI.PresenceOperator;
9
+ }
@@ -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,15 @@
1
+ /**
2
+ * Type-independent operators that check whether an intelligent field has a
3
+ * determined value on the conversation, rather than comparing its value.
4
+ */
5
+ export declare const PresenceOperator: {
6
+ /**
7
+ * The field has no determined value — the LLM could not determine one, the
8
+ * computation failed, is still running, or has not run. Surfaced to authors as
9
+ * the special "Undetermined" value. */
10
+ readonly IsUndetermined: "IS_UNDETERMINED";
11
+ /**
12
+ * The field has a determined (non-null) value. */
13
+ readonly IsDetermined: "IS_DETERMINED";
14
+ };
15
+ export type PresenceOperator = (typeof PresenceOperator)[keyof typeof PresenceOperator] | string;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PresenceOperator = void 0;
5
+ /**
6
+ * Type-independent operators that check whether an intelligent field has a
7
+ * determined value on the conversation, rather than comparing its value.
8
+ */
9
+ exports.PresenceOperator = {
10
+ /**
11
+ * The field has no determined value — the LLM could not determine one, the
12
+ * computation failed, is still running, or has not run. Surfaced to authors as
13
+ * the special "Undetermined" value. */
14
+ IsUndetermined: "IS_UNDETERMINED",
15
+ /**
16
+ * The field has a determined (non-null) value. */
17
+ IsDetermined: "IS_DETERMINED",
18
+ };
@@ -1,5 +1,5 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export type SettingsSchemaEntry = MavenAGI.SettingsSchemaEntry.Text | MavenAGI.SettingsSchemaEntry.Multiline | MavenAGI.SettingsSchemaEntry.Array | MavenAGI.SettingsSchemaEntry.Complexarray | MavenAGI.SettingsSchemaEntry.Color | MavenAGI.SettingsSchemaEntry.Image | MavenAGI.SettingsSchemaEntry.Checkbox | MavenAGI.SettingsSchemaEntry.Dropdown | MavenAGI.SettingsSchemaEntry.Section | MavenAGI.SettingsSchemaEntry.Oauth | MavenAGI.SettingsSchemaEntry.Number | MavenAGI.SettingsSchemaEntry.OneOf;
2
+ export type SettingsSchemaEntry = MavenAGI.SettingsSchemaEntry.Text | MavenAGI.SettingsSchemaEntry.Multiline | MavenAGI.SettingsSchemaEntry.Array | MavenAGI.SettingsSchemaEntry.Complexarray | MavenAGI.SettingsSchemaEntry.Color | MavenAGI.SettingsSchemaEntry.Image | MavenAGI.SettingsSchemaEntry.Checkbox | MavenAGI.SettingsSchemaEntry.Switch | MavenAGI.SettingsSchemaEntry.Dropdown | MavenAGI.SettingsSchemaEntry.Section | MavenAGI.SettingsSchemaEntry.Oauth | MavenAGI.SettingsSchemaEntry.Number | MavenAGI.SettingsSchemaEntry.OneOf | MavenAGI.SettingsSchemaEntry.JsonSchema;
3
3
  export declare namespace SettingsSchemaEntry {
4
4
  interface Text extends MavenAGI.TextSettingsSchemaEntry {
5
5
  type: "text";
@@ -22,6 +22,9 @@ export declare namespace SettingsSchemaEntry {
22
22
  interface Checkbox extends MavenAGI.CheckboxSettingsSchemaEntry {
23
23
  type: "checkbox";
24
24
  }
25
+ interface Switch extends MavenAGI.SwitchSettingsSchemaEntry {
26
+ type: "switch";
27
+ }
25
28
  interface Dropdown extends MavenAGI.DropdownSettingsSchemaEntry {
26
29
  type: "dropdown";
27
30
  }
@@ -37,4 +40,7 @@ export declare namespace SettingsSchemaEntry {
37
40
  interface OneOf extends MavenAGI.OneOfSettingsSchemaEntry {
38
41
  type: "oneOf";
39
42
  }
43
+ interface JsonSchema extends MavenAGI.JsonSchemaSettingsSchemaEntry {
44
+ type: "jsonSchema";
45
+ }
40
46
  }
@@ -0,0 +1,4 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface SwitchSettingsSchemaEntry extends MavenAGI.SettingsSchemaEntryBase {
3
+ defaultValue?: boolean;
4
+ }
@@ -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,13 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Type-independent conditions that apply to any intelligent field regardless of its
4
+ * validationType. Currently only a presence (determined/undetermined) check. Modeled as
5
+ * its own discriminated union so future type-independent operators can be added without
6
+ * changing the top-level IntelligentFieldCondition union.
7
+ */
8
+ export type UniversalCondition = MavenAGI.UniversalCondition.Presence;
9
+ export declare namespace UniversalCondition {
10
+ interface Presence extends MavenAGI.PresenceCondition {
11
+ opType: "presence";
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 });
@@ -116,6 +116,7 @@ export * from "./IntelligentFieldPrecondition";
116
116
  export * from "./IntelligentFieldPreconditionResponse";
117
117
  export * from "./IntelligentFieldValueResponse";
118
118
  export * from "./IpInfo";
119
+ export * from "./JsonSchemaSettingsSchemaEntry";
119
120
  export * from "./KnowledgeContextByEntities";
120
121
  export * from "./KnowledgeContextByEntityTypes";
121
122
  export * from "./KnowledgeContextFilter";
@@ -150,6 +151,8 @@ export * from "./PreconditionGroupOperator";
150
151
  export * from "./PreconditionGroupResponse";
151
152
  export * from "./PreconditionOperator";
152
153
  export * from "./PreconditionResponse";
154
+ export * from "./PresenceCondition";
155
+ export * from "./PresenceOperator";
153
156
  export * from "./Quality";
154
157
  export * from "./QualityReason";
155
158
  export * from "./ResolutionStatus";
@@ -182,10 +185,12 @@ export * from "./StringCondition";
182
185
  export * from "./StringMembershipCondition";
183
186
  export * from "./StringMembershipOperator";
184
187
  export * from "./SurveyInfo";
188
+ export * from "./SwitchSettingsSchemaEntry";
185
189
  export * from "./SystemEvent";
186
190
  export * from "./SystemEventName";
187
191
  export * from "./TagsPrecondition";
188
192
  export * from "./TextSettingsSchemaEntry";
193
+ export * from "./UniversalCondition";
189
194
  export * from "./UserConversationMessageType";
190
195
  export * from "./UserData";
191
196
  export * from "./UserDataWithReference";
@@ -132,6 +132,7 @@ __exportStar(require("./IntelligentFieldPrecondition"), exports);
132
132
  __exportStar(require("./IntelligentFieldPreconditionResponse"), exports);
133
133
  __exportStar(require("./IntelligentFieldValueResponse"), exports);
134
134
  __exportStar(require("./IpInfo"), exports);
135
+ __exportStar(require("./JsonSchemaSettingsSchemaEntry"), exports);
135
136
  __exportStar(require("./KnowledgeContextByEntities"), exports);
136
137
  __exportStar(require("./KnowledgeContextByEntityTypes"), exports);
137
138
  __exportStar(require("./KnowledgeContextFilter"), exports);
@@ -166,6 +167,8 @@ __exportStar(require("./PreconditionGroupOperator"), exports);
166
167
  __exportStar(require("./PreconditionGroupResponse"), exports);
167
168
  __exportStar(require("./PreconditionOperator"), exports);
168
169
  __exportStar(require("./PreconditionResponse"), exports);
170
+ __exportStar(require("./PresenceCondition"), exports);
171
+ __exportStar(require("./PresenceOperator"), exports);
169
172
  __exportStar(require("./Quality"), exports);
170
173
  __exportStar(require("./QualityReason"), exports);
171
174
  __exportStar(require("./ResolutionStatus"), exports);
@@ -198,10 +201,12 @@ __exportStar(require("./StringCondition"), exports);
198
201
  __exportStar(require("./StringMembershipCondition"), exports);
199
202
  __exportStar(require("./StringMembershipOperator"), exports);
200
203
  __exportStar(require("./SurveyInfo"), exports);
204
+ __exportStar(require("./SwitchSettingsSchemaEntry"), exports);
201
205
  __exportStar(require("./SystemEvent"), exports);
202
206
  __exportStar(require("./SystemEventName"), exports);
203
207
  __exportStar(require("./TagsPrecondition"), exports);
204
208
  __exportStar(require("./TextSettingsSchemaEntry"), exports);
209
+ __exportStar(require("./UniversalCondition"), exports);
205
210
  __exportStar(require("./UserConversationMessageType"), exports);
206
211
  __exportStar(require("./UserData"), exports);
207
212
  __exportStar(require("./UserDataWithReference"), exports);
@@ -21,6 +21,7 @@ export declare const ConversationField: {
21
21
  readonly Languages: "Languages";
22
22
  readonly Actions: "Actions";
23
23
  readonly IncompleteActions: "IncompleteActions";
24
+ readonly Charters: "Charters";
24
25
  readonly Sources: "Sources";
25
26
  readonly CreatedAt: "CreatedAt";
26
27
  readonly PredictedNps: "PredictedNPS";
@@ -25,6 +25,7 @@ exports.ConversationField = {
25
25
  Languages: "Languages",
26
26
  Actions: "Actions",
27
27
  IncompleteActions: "IncompleteActions",
28
+ Charters: "Charters",
28
29
  Sources: "Sources",
29
30
  CreatedAt: "CreatedAt",
30
31
  PredictedNps: "PredictedNPS",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.49",
3
+ "version": "1.2.50",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -5,9 +5,10 @@ import { BooleanCondition } from "./BooleanCondition";
5
5
  import { NumericCondition } from "./NumericCondition";
6
6
  import { SetCondition } from "./SetCondition";
7
7
  import { StringCondition } from "./StringCondition";
8
+ import { UniversalCondition } from "./UniversalCondition";
8
9
  export declare const IntelligentFieldCondition: core.serialization.Schema<serializers.IntelligentFieldCondition.Raw, MavenAGI.IntelligentFieldCondition>;
9
10
  export declare namespace IntelligentFieldCondition {
10
- type Raw = IntelligentFieldCondition.String | IntelligentFieldCondition.Numeric | IntelligentFieldCondition.Boolean | IntelligentFieldCondition.Set;
11
+ type Raw = IntelligentFieldCondition.String | IntelligentFieldCondition.Numeric | IntelligentFieldCondition.Boolean | IntelligentFieldCondition.Set | IntelligentFieldCondition.Universal;
11
12
  interface String {
12
13
  fieldValidationType: "string";
13
14
  value: StringCondition.Raw;
@@ -23,4 +24,8 @@ export declare namespace IntelligentFieldCondition {
23
24
  fieldValidationType: "set";
24
25
  value: SetCondition.Raw;
25
26
  }
27
+ interface Universal {
28
+ fieldValidationType: "universal";
29
+ value: UniversalCondition.Raw;
30
+ }
26
31
  }
@@ -40,6 +40,7 @@ const BooleanCondition_1 = require("./BooleanCondition");
40
40
  const NumericCondition_1 = require("./NumericCondition");
41
41
  const SetCondition_1 = require("./SetCondition");
42
42
  const StringCondition_1 = require("./StringCondition");
43
+ const UniversalCondition_1 = require("./UniversalCondition");
43
44
  exports.IntelligentFieldCondition = core.serialization
44
45
  .union("fieldValidationType", {
45
46
  string: core.serialization.object({
@@ -52,6 +53,9 @@ exports.IntelligentFieldCondition = core.serialization
52
53
  set: core.serialization.object({
53
54
  value: SetCondition_1.SetCondition,
54
55
  }),
56
+ universal: core.serialization.object({
57
+ value: UniversalCondition_1.UniversalCondition,
58
+ }),
55
59
  })
56
60
  .transform({
57
61
  transform: (value) => value,
@@ -0,0 +1,11 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { SettingsSchemaEntryBase } from "./SettingsSchemaEntryBase";
5
+ export declare const JsonSchemaSettingsSchemaEntry: core.serialization.ObjectSchema<serializers.JsonSchemaSettingsSchemaEntry.Raw, MavenAGI.JsonSchemaSettingsSchemaEntry>;
6
+ export declare namespace JsonSchemaSettingsSchemaEntry {
7
+ interface Raw extends SettingsSchemaEntryBase.Raw {
8
+ jsonSchema: string;
9
+ defaultValue?: unknown | null;
10
+ }
11
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.JsonSchemaSettingsSchemaEntry = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const SettingsSchemaEntryBase_1 = require("./SettingsSchemaEntryBase");
40
+ exports.JsonSchemaSettingsSchemaEntry = core.serialization
41
+ .object({
42
+ jsonSchema: core.serialization.string(),
43
+ defaultValue: core.serialization.unknown().optional(),
44
+ })
45
+ .extend(SettingsSchemaEntryBase_1.SettingsSchemaEntryBase);
@@ -0,0 +1,10 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { PresenceOperator } from "./PresenceOperator";
5
+ export declare const PresenceCondition: core.serialization.ObjectSchema<serializers.PresenceCondition.Raw, MavenAGI.PresenceCondition>;
6
+ export declare namespace PresenceCondition {
7
+ interface Raw {
8
+ operator: PresenceOperator.Raw;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
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.PresenceCondition = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const PresenceOperator_1 = require("./PresenceOperator");
40
+ exports.PresenceCondition = core.serialization.object({
41
+ operator: PresenceOperator_1.PresenceOperator,
42
+ });
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const PresenceOperator: core.serialization.Schema<serializers.PresenceOperator.Raw, MavenAGI.PresenceOperator>;
5
+ export declare namespace PresenceOperator {
6
+ type Raw = "IS_UNDETERMINED" | "IS_DETERMINED";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.PresenceOperator = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.PresenceOperator = core.serialization.forwardCompatibleEnum_(["IS_UNDETERMINED", "IS_DETERMINED"]);
@@ -6,13 +6,15 @@ import { CheckboxSettingsSchemaEntry } from "./CheckboxSettingsSchemaEntry";
6
6
  import { ColorSettingsSchemaEntry } from "./ColorSettingsSchemaEntry";
7
7
  import { DropdownSettingsSchemaEntry } from "./DropdownSettingsSchemaEntry";
8
8
  import { ImageSettingsSchemaEntry } from "./ImageSettingsSchemaEntry";
9
+ import { JsonSchemaSettingsSchemaEntry } from "./JsonSchemaSettingsSchemaEntry";
9
10
  import { MultilineSettingsSchemaEntry } from "./MultilineSettingsSchemaEntry";
10
11
  import { NumberSettingsSchemaEntry } from "./NumberSettingsSchemaEntry";
11
12
  import { OAuthSettingsSchemaEntry } from "./OAuthSettingsSchemaEntry";
13
+ import { SwitchSettingsSchemaEntry } from "./SwitchSettingsSchemaEntry";
12
14
  import { TextSettingsSchemaEntry } from "./TextSettingsSchemaEntry";
13
15
  export declare const SettingsSchemaEntry: core.serialization.Schema<serializers.SettingsSchemaEntry.Raw, MavenAGI.SettingsSchemaEntry>;
14
16
  export declare namespace SettingsSchemaEntry {
15
- type Raw = SettingsSchemaEntry.Text | SettingsSchemaEntry.Multiline | SettingsSchemaEntry.Array | SettingsSchemaEntry.Complexarray | SettingsSchemaEntry.Color | SettingsSchemaEntry.Image | SettingsSchemaEntry.Checkbox | SettingsSchemaEntry.Dropdown | SettingsSchemaEntry.Section | SettingsSchemaEntry.Oauth | SettingsSchemaEntry.Number | SettingsSchemaEntry.OneOf;
17
+ type Raw = SettingsSchemaEntry.Text | SettingsSchemaEntry.Multiline | SettingsSchemaEntry.Array | SettingsSchemaEntry.Complexarray | SettingsSchemaEntry.Color | SettingsSchemaEntry.Image | SettingsSchemaEntry.Checkbox | SettingsSchemaEntry.Switch | SettingsSchemaEntry.Dropdown | SettingsSchemaEntry.Section | SettingsSchemaEntry.Oauth | SettingsSchemaEntry.Number | SettingsSchemaEntry.OneOf | SettingsSchemaEntry.JsonSchema;
16
18
  interface Text extends TextSettingsSchemaEntry.Raw {
17
19
  type: "text";
18
20
  }
@@ -34,6 +36,9 @@ export declare namespace SettingsSchemaEntry {
34
36
  interface Checkbox extends CheckboxSettingsSchemaEntry.Raw {
35
37
  type: "checkbox";
36
38
  }
39
+ interface Switch extends SwitchSettingsSchemaEntry.Raw {
40
+ type: "switch";
41
+ }
37
42
  interface Dropdown extends DropdownSettingsSchemaEntry.Raw {
38
43
  type: "dropdown";
39
44
  }
@@ -49,4 +54,7 @@ export declare namespace SettingsSchemaEntry {
49
54
  interface OneOf extends serializers.OneOfSettingsSchemaEntry.Raw {
50
55
  type: "oneOf";
51
56
  }
57
+ interface JsonSchema extends JsonSchemaSettingsSchemaEntry.Raw {
58
+ type: "jsonSchema";
59
+ }
52
60
  }
@@ -42,9 +42,11 @@ const CheckboxSettingsSchemaEntry_1 = require("./CheckboxSettingsSchemaEntry");
42
42
  const ColorSettingsSchemaEntry_1 = require("./ColorSettingsSchemaEntry");
43
43
  const DropdownSettingsSchemaEntry_1 = require("./DropdownSettingsSchemaEntry");
44
44
  const ImageSettingsSchemaEntry_1 = require("./ImageSettingsSchemaEntry");
45
+ const JsonSchemaSettingsSchemaEntry_1 = require("./JsonSchemaSettingsSchemaEntry");
45
46
  const MultilineSettingsSchemaEntry_1 = require("./MultilineSettingsSchemaEntry");
46
47
  const NumberSettingsSchemaEntry_1 = require("./NumberSettingsSchemaEntry");
47
48
  const OAuthSettingsSchemaEntry_1 = require("./OAuthSettingsSchemaEntry");
49
+ const SwitchSettingsSchemaEntry_1 = require("./SwitchSettingsSchemaEntry");
48
50
  const TextSettingsSchemaEntry_1 = require("./TextSettingsSchemaEntry");
49
51
  exports.SettingsSchemaEntry = core.serialization
50
52
  .union("type", {
@@ -55,11 +57,13 @@ exports.SettingsSchemaEntry = core.serialization
55
57
  color: ColorSettingsSchemaEntry_1.ColorSettingsSchemaEntry,
56
58
  image: ImageSettingsSchemaEntry_1.ImageSettingsSchemaEntry,
57
59
  checkbox: CheckboxSettingsSchemaEntry_1.CheckboxSettingsSchemaEntry,
60
+ switch: SwitchSettingsSchemaEntry_1.SwitchSettingsSchemaEntry,
58
61
  dropdown: DropdownSettingsSchemaEntry_1.DropdownSettingsSchemaEntry,
59
62
  section: core.serialization.lazyObject(() => serializers.SectionSettingsSchemaEntry),
60
63
  oauth: OAuthSettingsSchemaEntry_1.OAuthSettingsSchemaEntry,
61
64
  number: NumberSettingsSchemaEntry_1.NumberSettingsSchemaEntry,
62
65
  oneOf: core.serialization.lazyObject(() => serializers.OneOfSettingsSchemaEntry),
66
+ jsonSchema: JsonSchemaSettingsSchemaEntry_1.JsonSchemaSettingsSchemaEntry,
63
67
  })
64
68
  .transform({
65
69
  transform: (value) => value,
@@ -0,0 +1,10 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { SettingsSchemaEntryBase } from "./SettingsSchemaEntryBase";
5
+ export declare const SwitchSettingsSchemaEntry: core.serialization.ObjectSchema<serializers.SwitchSettingsSchemaEntry.Raw, MavenAGI.SwitchSettingsSchemaEntry>;
6
+ export declare namespace SwitchSettingsSchemaEntry {
7
+ interface Raw extends SettingsSchemaEntryBase.Raw {
8
+ defaultValue?: boolean | null;
9
+ }
10
+ }
@@ -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.SwitchSettingsSchemaEntry = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const SettingsSchemaEntryBase_1 = require("./SettingsSchemaEntryBase");
40
+ exports.SwitchSettingsSchemaEntry = core.serialization
41
+ .object({
42
+ defaultValue: core.serialization.boolean().optional(),
43
+ })
44
+ .extend(SettingsSchemaEntryBase_1.SettingsSchemaEntryBase);
@@ -0,0 +1,11 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { PresenceCondition } from "./PresenceCondition";
5
+ export declare const UniversalCondition: core.serialization.Schema<serializers.UniversalCondition.Raw, MavenAGI.UniversalCondition>;
6
+ export declare namespace UniversalCondition {
7
+ type Raw = UniversalCondition.Presence;
8
+ interface Presence extends PresenceCondition.Raw {
9
+ opType: "presence";
10
+ }
11
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.UniversalCondition = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const PresenceCondition_1 = require("./PresenceCondition");
40
+ exports.UniversalCondition = core.serialization
41
+ .union("opType", {
42
+ presence: PresenceCondition_1.PresenceCondition,
43
+ })
44
+ .transform({
45
+ transform: (value) => value,
46
+ untransform: (value) => value,
47
+ });
@@ -116,6 +116,7 @@ export * from "./IntelligentFieldPrecondition";
116
116
  export * from "./IntelligentFieldPreconditionResponse";
117
117
  export * from "./IntelligentFieldValueResponse";
118
118
  export * from "./IpInfo";
119
+ export * from "./JsonSchemaSettingsSchemaEntry";
119
120
  export * from "./KnowledgeContextByEntities";
120
121
  export * from "./KnowledgeContextByEntityTypes";
121
122
  export * from "./KnowledgeContextFilter";
@@ -150,6 +151,8 @@ export * from "./PreconditionGroupOperator";
150
151
  export * from "./PreconditionGroupResponse";
151
152
  export * from "./PreconditionOperator";
152
153
  export * from "./PreconditionResponse";
154
+ export * from "./PresenceCondition";
155
+ export * from "./PresenceOperator";
153
156
  export * from "./Quality";
154
157
  export * from "./QualityReason";
155
158
  export * from "./ResolutionStatus";
@@ -182,10 +185,12 @@ export * from "./StringCondition";
182
185
  export * from "./StringMembershipCondition";
183
186
  export * from "./StringMembershipOperator";
184
187
  export * from "./SurveyInfo";
188
+ export * from "./SwitchSettingsSchemaEntry";
185
189
  export * from "./SystemEvent";
186
190
  export * from "./SystemEventName";
187
191
  export * from "./TagsPrecondition";
188
192
  export * from "./TextSettingsSchemaEntry";
193
+ export * from "./UniversalCondition";
189
194
  export * from "./UserConversationMessageType";
190
195
  export * from "./UserData";
191
196
  export * from "./UserDataWithReference";
@@ -132,6 +132,7 @@ __exportStar(require("./IntelligentFieldPrecondition"), exports);
132
132
  __exportStar(require("./IntelligentFieldPreconditionResponse"), exports);
133
133
  __exportStar(require("./IntelligentFieldValueResponse"), exports);
134
134
  __exportStar(require("./IpInfo"), exports);
135
+ __exportStar(require("./JsonSchemaSettingsSchemaEntry"), exports);
135
136
  __exportStar(require("./KnowledgeContextByEntities"), exports);
136
137
  __exportStar(require("./KnowledgeContextByEntityTypes"), exports);
137
138
  __exportStar(require("./KnowledgeContextFilter"), exports);
@@ -166,6 +167,8 @@ __exportStar(require("./PreconditionGroupOperator"), exports);
166
167
  __exportStar(require("./PreconditionGroupResponse"), exports);
167
168
  __exportStar(require("./PreconditionOperator"), exports);
168
169
  __exportStar(require("./PreconditionResponse"), exports);
170
+ __exportStar(require("./PresenceCondition"), exports);
171
+ __exportStar(require("./PresenceOperator"), exports);
169
172
  __exportStar(require("./Quality"), exports);
170
173
  __exportStar(require("./QualityReason"), exports);
171
174
  __exportStar(require("./ResolutionStatus"), exports);
@@ -198,10 +201,12 @@ __exportStar(require("./StringCondition"), exports);
198
201
  __exportStar(require("./StringMembershipCondition"), exports);
199
202
  __exportStar(require("./StringMembershipOperator"), exports);
200
203
  __exportStar(require("./SurveyInfo"), exports);
204
+ __exportStar(require("./SwitchSettingsSchemaEntry"), exports);
201
205
  __exportStar(require("./SystemEvent"), exports);
202
206
  __exportStar(require("./SystemEventName"), exports);
203
207
  __exportStar(require("./TagsPrecondition"), exports);
204
208
  __exportStar(require("./TextSettingsSchemaEntry"), exports);
209
+ __exportStar(require("./UniversalCondition"), exports);
205
210
  __exportStar(require("./UserConversationMessageType"), exports);
206
211
  __exportStar(require("./UserData"), exports);
207
212
  __exportStar(require("./UserDataWithReference"), exports);
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const ConversationField: core.serialization.Schema<serializers.ConversationField.Raw, MavenAGI.ConversationField>;
5
5
  export declare namespace ConversationField {
6
- type Raw = "Category" | "FirstResponseTime" | "HandleTime" | "HumanAgents" | "HumanAgentsWithInserts" | "App" | "Sentiment" | "QualityReason" | "ResolutionStatus" | "ResolvedByMaven" | "Quality" | "Users" | "ResponseLength" | "ThumbsUpCount" | "ThumbsDownCount" | "InsertCount" | "Tags" | "UserMessageCount" | "BotMessageCount" | "Languages" | "Actions" | "IncompleteActions" | "Sources" | "CreatedAt" | "PredictedNPS" | "Csat" | "OrganizationId" | "AgentId" | "InboxItems" | "InvolvedApps";
6
+ type Raw = "Category" | "FirstResponseTime" | "HandleTime" | "HumanAgents" | "HumanAgentsWithInserts" | "App" | "Sentiment" | "QualityReason" | "ResolutionStatus" | "ResolvedByMaven" | "Quality" | "Users" | "ResponseLength" | "ThumbsUpCount" | "ThumbsDownCount" | "InsertCount" | "Tags" | "UserMessageCount" | "BotMessageCount" | "Languages" | "Actions" | "IncompleteActions" | "Charters" | "Sources" | "CreatedAt" | "PredictedNPS" | "Csat" | "OrganizationId" | "AgentId" | "InboxItems" | "InvolvedApps";
7
7
  }
@@ -59,6 +59,7 @@ exports.ConversationField = core.serialization.forwardCompatibleEnum_([
59
59
  "Languages",
60
60
  "Actions",
61
61
  "IncompleteActions",
62
+ "Charters",
62
63
  "Sources",
63
64
  "CreatedAt",
64
65
  "PredictedNPS",
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.49";
1
+ export declare const SDK_VERSION = "1.2.50";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.49";
4
+ exports.SDK_VERSION = "1.2.50";