mavenagi 1.2.38 → 1.2.39

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 (67) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/commons/types/BaseCappedPaginatedRequest.d.ts +14 -0
  3. package/api/resources/commons/types/BaseCappedPaginatedRequest.js +3 -0
  4. package/api/resources/commons/types/index.d.ts +1 -0
  5. package/api/resources/commons/types/index.js +1 -0
  6. package/api/resources/conversation/types/ConversationFilter.d.ts +2 -0
  7. package/api/resources/conversation/types/IntelligentFieldFilter.d.ts +8 -0
  8. package/api/resources/conversation/types/IntelligentFieldFilter.js +3 -0
  9. package/api/resources/conversation/types/IntelligentFieldOperator.d.ts +13 -0
  10. package/api/resources/conversation/types/IntelligentFieldOperator.js +16 -0
  11. package/api/resources/conversation/types/IntelligentFieldSearchCondition.d.ts +12 -0
  12. package/api/resources/conversation/types/IntelligentFieldSearchCondition.js +3 -0
  13. package/api/resources/conversation/types/index.d.ts +3 -0
  14. package/api/resources/conversation/types/index.js +3 -0
  15. package/api/resources/segments/types/SegmentsSearchRequest.d.ts +1 -1
  16. package/dist/Client.js +2 -2
  17. package/dist/api/resources/commons/types/BaseCappedPaginatedRequest.d.ts +14 -0
  18. package/dist/api/resources/commons/types/BaseCappedPaginatedRequest.js +3 -0
  19. package/dist/api/resources/commons/types/index.d.ts +1 -0
  20. package/dist/api/resources/commons/types/index.js +1 -0
  21. package/dist/api/resources/conversation/types/ConversationFilter.d.ts +2 -0
  22. package/dist/api/resources/conversation/types/IntelligentFieldFilter.d.ts +8 -0
  23. package/dist/api/resources/conversation/types/IntelligentFieldFilter.js +3 -0
  24. package/dist/api/resources/conversation/types/IntelligentFieldOperator.d.ts +13 -0
  25. package/dist/api/resources/conversation/types/IntelligentFieldOperator.js +16 -0
  26. package/dist/api/resources/conversation/types/IntelligentFieldSearchCondition.d.ts +12 -0
  27. package/dist/api/resources/conversation/types/IntelligentFieldSearchCondition.js +3 -0
  28. package/dist/api/resources/conversation/types/index.d.ts +3 -0
  29. package/dist/api/resources/conversation/types/index.js +3 -0
  30. package/dist/api/resources/segments/types/SegmentsSearchRequest.d.ts +1 -1
  31. package/dist/serialization/resources/commons/types/BaseCappedPaginatedRequest.d.ts +11 -0
  32. package/dist/serialization/resources/commons/types/BaseCappedPaginatedRequest.js +43 -0
  33. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  34. package/dist/serialization/resources/commons/types/index.js +1 -0
  35. package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -0
  36. package/dist/serialization/resources/conversation/types/ConversationFilter.js +2 -0
  37. package/dist/serialization/resources/conversation/types/IntelligentFieldFilter.d.ts +10 -0
  38. package/dist/serialization/resources/conversation/types/IntelligentFieldFilter.js +42 -0
  39. package/dist/serialization/resources/conversation/types/IntelligentFieldOperator.d.ts +7 -0
  40. package/dist/serialization/resources/conversation/types/IntelligentFieldOperator.js +39 -0
  41. package/dist/serialization/resources/conversation/types/IntelligentFieldSearchCondition.d.ts +13 -0
  42. package/dist/serialization/resources/conversation/types/IntelligentFieldSearchCondition.js +45 -0
  43. package/dist/serialization/resources/conversation/types/index.d.ts +3 -0
  44. package/dist/serialization/resources/conversation/types/index.js +3 -0
  45. package/dist/serialization/resources/segments/types/SegmentsSearchRequest.d.ts +2 -2
  46. package/dist/serialization/resources/segments/types/SegmentsSearchRequest.js +2 -2
  47. package/dist/version.d.ts +1 -1
  48. package/dist/version.js +1 -1
  49. package/package.json +1 -1
  50. package/serialization/resources/commons/types/BaseCappedPaginatedRequest.d.ts +11 -0
  51. package/serialization/resources/commons/types/BaseCappedPaginatedRequest.js +43 -0
  52. package/serialization/resources/commons/types/index.d.ts +1 -0
  53. package/serialization/resources/commons/types/index.js +1 -0
  54. package/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -0
  55. package/serialization/resources/conversation/types/ConversationFilter.js +2 -0
  56. package/serialization/resources/conversation/types/IntelligentFieldFilter.d.ts +10 -0
  57. package/serialization/resources/conversation/types/IntelligentFieldFilter.js +42 -0
  58. package/serialization/resources/conversation/types/IntelligentFieldOperator.d.ts +7 -0
  59. package/serialization/resources/conversation/types/IntelligentFieldOperator.js +39 -0
  60. package/serialization/resources/conversation/types/IntelligentFieldSearchCondition.d.ts +13 -0
  61. package/serialization/resources/conversation/types/IntelligentFieldSearchCondition.js +45 -0
  62. package/serialization/resources/conversation/types/index.d.ts +3 -0
  63. package/serialization/resources/conversation/types/index.js +3 -0
  64. package/serialization/resources/segments/types/SegmentsSearchRequest.d.ts +2 -2
  65. package/serialization/resources/segments/types/SegmentsSearchRequest.js +2 -2
  66. package/version.d.ts +1 -1
  67. 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.38",
66
- "User-Agent": "mavenagi/1.2.38",
65
+ "X-Fern-SDK-Version": "1.2.39",
66
+ "User-Agent": "mavenagi/1.2.39",
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,14 @@
1
+ /**
2
+ * Pagination parameters for endpoints that enforce a tighter page-size ceiling (max 1000)
3
+ * than the default BasePaginatedRequest (max 10000). Defined as a sibling of
4
+ * BasePaginatedRequest (not a subtype) so the tight bound is the only max constraint
5
+ * applied at request validation.
6
+ */
7
+ export interface BaseCappedPaginatedRequest {
8
+ /** Page number to return, defaults to 0 */
9
+ page?: number;
10
+ /** The size of the page to return, defaults to 20. Max 1000. */
11
+ size?: number;
12
+ /** Whether to sort descending, defaults to true */
13
+ sortDesc?: boolean;
14
+ }
@@ -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 });
@@ -19,6 +19,7 @@ export * from "./AttachmentRequest";
19
19
  export * from "./AttachmentResponse";
20
20
  export * from "./AttachmentStatus";
21
21
  export * from "./BaseAttachment";
22
+ export * from "./BaseCappedPaginatedRequest";
22
23
  export * from "./BaseConversationResponse";
23
24
  export * from "./BasePaginatedRequest";
24
25
  export * from "./BaseSearchRequest";
@@ -35,6 +35,7 @@ __exportStar(require("./AttachmentRequest"), exports);
35
35
  __exportStar(require("./AttachmentResponse"), exports);
36
36
  __exportStar(require("./AttachmentStatus"), exports);
37
37
  __exportStar(require("./BaseAttachment"), exports);
38
+ __exportStar(require("./BaseCappedPaginatedRequest"), exports);
38
39
  __exportStar(require("./BaseConversationResponse"), exports);
39
40
  __exportStar(require("./BasePaginatedRequest"), exports);
40
41
  __exportStar(require("./BaseSearchRequest"), exports);
@@ -72,4 +72,6 @@ export interface ConversationFilter {
72
72
  inboxItemIds?: MavenAGI.EntityIdFilter[];
73
73
  /** Whether to include simulation conversations in search results. Defaults to only non-simulation conversations. */
74
74
  simulationFilter?: MavenAGI.SimulationFilter;
75
+ /** Filter by intelligent field values. All conditions are ANDed together. */
76
+ intelligentFields?: MavenAGI.IntelligentFieldFilter;
75
77
  }
@@ -0,0 +1,8 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Filter conversations by intelligent field values. All conditions are ANDed.
4
+ */
5
+ export interface IntelligentFieldFilter {
6
+ /** List of conditions to filter by. All conditions must match (AND logic). */
7
+ conditions: MavenAGI.IntelligentFieldSearchCondition[];
8
+ }
@@ -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
+ /** Comparison operators for intelligent field filtering. */
2
+ export declare const IntelligentFieldOperator: {
3
+ readonly Eq: "EQ";
4
+ readonly Neq: "NEQ";
5
+ readonly Contains: "CONTAINS";
6
+ readonly Gt: "GT";
7
+ readonly Gte: "GTE";
8
+ readonly Lt: "LT";
9
+ readonly Lte: "LTE";
10
+ readonly Exists: "EXISTS";
11
+ readonly NotExists: "NOT_EXISTS";
12
+ };
13
+ export type IntelligentFieldOperator = (typeof IntelligentFieldOperator)[keyof typeof IntelligentFieldOperator];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.IntelligentFieldOperator = void 0;
5
+ /** Comparison operators for intelligent field filtering. */
6
+ exports.IntelligentFieldOperator = {
7
+ Eq: "EQ",
8
+ Neq: "NEQ",
9
+ Contains: "CONTAINS",
10
+ Gt: "GT",
11
+ Gte: "GTE",
12
+ Lt: "LT",
13
+ Lte: "LTE",
14
+ Exists: "EXISTS",
15
+ NotExists: "NOT_EXISTS",
16
+ };
@@ -0,0 +1,12 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A single condition on an intelligent field value.
4
+ */
5
+ export interface IntelligentFieldSearchCondition {
6
+ /** The intelligent field to filter on (referenceId + appId) */
7
+ fieldId: MavenAGI.EntityIdFilter;
8
+ /** The comparison operator to apply */
9
+ operator: MavenAGI.IntelligentFieldOperator;
10
+ /** The value to compare against. Required for all operators except EXISTS and NOT_EXISTS. For BOOLEAN fields use "true" or "false". For NUMBER fields use a numeric string. */
11
+ value?: string;
12
+ }
@@ -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 });
@@ -25,6 +25,9 @@ export * from "./DeliveryStatus";
25
25
  export * from "./FeedbackField";
26
26
  export * from "./FeedbackFilter";
27
27
  export * from "./FeedbackRequest";
28
+ export * from "./IntelligentFieldFilter";
29
+ export * from "./IntelligentFieldOperator";
30
+ export * from "./IntelligentFieldSearchCondition";
28
31
  export * from "./NumericConversationField";
29
32
  export * from "./ResolutionStatus";
30
33
  export * from "./SimulationFilter";
@@ -41,6 +41,9 @@ __exportStar(require("./DeliveryStatus"), exports);
41
41
  __exportStar(require("./FeedbackField"), exports);
42
42
  __exportStar(require("./FeedbackFilter"), exports);
43
43
  __exportStar(require("./FeedbackRequest"), exports);
44
+ __exportStar(require("./IntelligentFieldFilter"), exports);
45
+ __exportStar(require("./IntelligentFieldOperator"), exports);
46
+ __exportStar(require("./IntelligentFieldSearchCondition"), exports);
44
47
  __exportStar(require("./NumericConversationField"), exports);
45
48
  __exportStar(require("./ResolutionStatus"), exports);
46
49
  __exportStar(require("./SimulationFilter"), exports);
@@ -1,5 +1,5 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export interface SegmentsSearchRequest extends MavenAGI.BasePaginatedRequest {
2
+ export interface SegmentsSearchRequest extends MavenAGI.BaseCappedPaginatedRequest {
3
3
  /** The field to sort by, defaults to created timestamp */
4
4
  sort?: MavenAGI.SegmentField;
5
5
  /** The filter to apply to the segments. */
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.38",
66
- "User-Agent": "mavenagi/1.2.38",
65
+ "X-Fern-SDK-Version": "1.2.39",
66
+ "User-Agent": "mavenagi/1.2.39",
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,14 @@
1
+ /**
2
+ * Pagination parameters for endpoints that enforce a tighter page-size ceiling (max 1000)
3
+ * than the default BasePaginatedRequest (max 10000). Defined as a sibling of
4
+ * BasePaginatedRequest (not a subtype) so the tight bound is the only max constraint
5
+ * applied at request validation.
6
+ */
7
+ export interface BaseCappedPaginatedRequest {
8
+ /** Page number to return, defaults to 0 */
9
+ page?: number;
10
+ /** The size of the page to return, defaults to 20. Max 1000. */
11
+ size?: number;
12
+ /** Whether to sort descending, defaults to true */
13
+ sortDesc?: boolean;
14
+ }
@@ -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 });
@@ -19,6 +19,7 @@ export * from "./AttachmentRequest";
19
19
  export * from "./AttachmentResponse";
20
20
  export * from "./AttachmentStatus";
21
21
  export * from "./BaseAttachment";
22
+ export * from "./BaseCappedPaginatedRequest";
22
23
  export * from "./BaseConversationResponse";
23
24
  export * from "./BasePaginatedRequest";
24
25
  export * from "./BaseSearchRequest";
@@ -35,6 +35,7 @@ __exportStar(require("./AttachmentRequest"), exports);
35
35
  __exportStar(require("./AttachmentResponse"), exports);
36
36
  __exportStar(require("./AttachmentStatus"), exports);
37
37
  __exportStar(require("./BaseAttachment"), exports);
38
+ __exportStar(require("./BaseCappedPaginatedRequest"), exports);
38
39
  __exportStar(require("./BaseConversationResponse"), exports);
39
40
  __exportStar(require("./BasePaginatedRequest"), exports);
40
41
  __exportStar(require("./BaseSearchRequest"), exports);
@@ -72,4 +72,6 @@ export interface ConversationFilter {
72
72
  inboxItemIds?: MavenAGI.EntityIdFilter[];
73
73
  /** Whether to include simulation conversations in search results. Defaults to only non-simulation conversations. */
74
74
  simulationFilter?: MavenAGI.SimulationFilter;
75
+ /** Filter by intelligent field values. All conditions are ANDed together. */
76
+ intelligentFields?: MavenAGI.IntelligentFieldFilter;
75
77
  }
@@ -0,0 +1,8 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Filter conversations by intelligent field values. All conditions are ANDed.
4
+ */
5
+ export interface IntelligentFieldFilter {
6
+ /** List of conditions to filter by. All conditions must match (AND logic). */
7
+ conditions: MavenAGI.IntelligentFieldSearchCondition[];
8
+ }
@@ -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
+ /** Comparison operators for intelligent field filtering. */
2
+ export declare const IntelligentFieldOperator: {
3
+ readonly Eq: "EQ";
4
+ readonly Neq: "NEQ";
5
+ readonly Contains: "CONTAINS";
6
+ readonly Gt: "GT";
7
+ readonly Gte: "GTE";
8
+ readonly Lt: "LT";
9
+ readonly Lte: "LTE";
10
+ readonly Exists: "EXISTS";
11
+ readonly NotExists: "NOT_EXISTS";
12
+ };
13
+ export type IntelligentFieldOperator = (typeof IntelligentFieldOperator)[keyof typeof IntelligentFieldOperator];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.IntelligentFieldOperator = void 0;
5
+ /** Comparison operators for intelligent field filtering. */
6
+ exports.IntelligentFieldOperator = {
7
+ Eq: "EQ",
8
+ Neq: "NEQ",
9
+ Contains: "CONTAINS",
10
+ Gt: "GT",
11
+ Gte: "GTE",
12
+ Lt: "LT",
13
+ Lte: "LTE",
14
+ Exists: "EXISTS",
15
+ NotExists: "NOT_EXISTS",
16
+ };
@@ -0,0 +1,12 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A single condition on an intelligent field value.
4
+ */
5
+ export interface IntelligentFieldSearchCondition {
6
+ /** The intelligent field to filter on (referenceId + appId) */
7
+ fieldId: MavenAGI.EntityIdFilter;
8
+ /** The comparison operator to apply */
9
+ operator: MavenAGI.IntelligentFieldOperator;
10
+ /** The value to compare against. Required for all operators except EXISTS and NOT_EXISTS. For BOOLEAN fields use "true" or "false". For NUMBER fields use a numeric string. */
11
+ value?: string;
12
+ }
@@ -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 });
@@ -25,6 +25,9 @@ export * from "./DeliveryStatus";
25
25
  export * from "./FeedbackField";
26
26
  export * from "./FeedbackFilter";
27
27
  export * from "./FeedbackRequest";
28
+ export * from "./IntelligentFieldFilter";
29
+ export * from "./IntelligentFieldOperator";
30
+ export * from "./IntelligentFieldSearchCondition";
28
31
  export * from "./NumericConversationField";
29
32
  export * from "./ResolutionStatus";
30
33
  export * from "./SimulationFilter";
@@ -41,6 +41,9 @@ __exportStar(require("./DeliveryStatus"), exports);
41
41
  __exportStar(require("./FeedbackField"), exports);
42
42
  __exportStar(require("./FeedbackFilter"), exports);
43
43
  __exportStar(require("./FeedbackRequest"), exports);
44
+ __exportStar(require("./IntelligentFieldFilter"), exports);
45
+ __exportStar(require("./IntelligentFieldOperator"), exports);
46
+ __exportStar(require("./IntelligentFieldSearchCondition"), exports);
44
47
  __exportStar(require("./NumericConversationField"), exports);
45
48
  __exportStar(require("./ResolutionStatus"), exports);
46
49
  __exportStar(require("./SimulationFilter"), exports);
@@ -1,5 +1,5 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export interface SegmentsSearchRequest extends MavenAGI.BasePaginatedRequest {
2
+ export interface SegmentsSearchRequest extends MavenAGI.BaseCappedPaginatedRequest {
3
3
  /** The field to sort by, defaults to created timestamp */
4
4
  sort?: MavenAGI.SegmentField;
5
5
  /** The filter to apply to the segments. */
@@ -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
+ export declare const BaseCappedPaginatedRequest: core.serialization.ObjectSchema<serializers.BaseCappedPaginatedRequest.Raw, MavenAGI.BaseCappedPaginatedRequest>;
5
+ export declare namespace BaseCappedPaginatedRequest {
6
+ interface Raw {
7
+ page?: number | null;
8
+ size?: number | null;
9
+ sortDesc?: boolean | null;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.BaseCappedPaginatedRequest = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.BaseCappedPaginatedRequest = core.serialization.object({
40
+ page: core.serialization.number().optional(),
41
+ size: core.serialization.number().optional(),
42
+ sortDesc: core.serialization.boolean().optional(),
43
+ });
@@ -19,6 +19,7 @@ export * from "./AttachmentRequest";
19
19
  export * from "./AttachmentResponse";
20
20
  export * from "./AttachmentStatus";
21
21
  export * from "./BaseAttachment";
22
+ export * from "./BaseCappedPaginatedRequest";
22
23
  export * from "./BaseConversationResponse";
23
24
  export * from "./BasePaginatedRequest";
24
25
  export * from "./BaseSearchRequest";
@@ -35,6 +35,7 @@ __exportStar(require("./AttachmentRequest"), exports);
35
35
  __exportStar(require("./AttachmentResponse"), exports);
36
36
  __exportStar(require("./AttachmentStatus"), exports);
37
37
  __exportStar(require("./BaseAttachment"), exports);
38
+ __exportStar(require("./BaseCappedPaginatedRequest"), exports);
38
39
  __exportStar(require("./BaseConversationResponse"), exports);
39
40
  __exportStar(require("./BasePaginatedRequest"), exports);
40
41
  __exportStar(require("./BaseSearchRequest"), exports);
@@ -8,6 +8,7 @@ import { Quality } from "../../commons/types/Quality";
8
8
  import { QualityReason } from "../../commons/types/QualityReason";
9
9
  import { ResponseLength } from "../../commons/types/ResponseLength";
10
10
  import { Sentiment } from "../../commons/types/Sentiment";
11
+ import { IntelligentFieldFilter } from "./IntelligentFieldFilter";
11
12
  import { ResolutionStatus } from "./ResolutionStatus";
12
13
  import { SimulationFilter } from "./SimulationFilter";
13
14
  export declare const ConversationFilter: core.serialization.ObjectSchema<serializers.ConversationFilter.Raw, MavenAGI.ConversationFilter>;
@@ -37,5 +38,6 @@ export declare namespace ConversationFilter {
37
38
  matchedSegmentIds?: EntityIdFilter.Raw[] | null;
38
39
  inboxItemIds?: EntityIdFilter.Raw[] | null;
39
40
  simulationFilter?: SimulationFilter.Raw | null;
41
+ intelligentFields?: IntelligentFieldFilter.Raw | null;
40
42
  }
41
43
  }
@@ -43,6 +43,7 @@ const Quality_1 = require("../../commons/types/Quality");
43
43
  const QualityReason_1 = require("../../commons/types/QualityReason");
44
44
  const ResponseLength_1 = require("../../commons/types/ResponseLength");
45
45
  const Sentiment_1 = require("../../commons/types/Sentiment");
46
+ const IntelligentFieldFilter_1 = require("./IntelligentFieldFilter");
46
47
  const ResolutionStatus_1 = require("./ResolutionStatus");
47
48
  const SimulationFilter_1 = require("./SimulationFilter");
48
49
  exports.ConversationFilter = core.serialization.object({
@@ -70,4 +71,5 @@ exports.ConversationFilter = core.serialization.object({
70
71
  matchedSegmentIds: core.serialization.list(EntityIdFilter_1.EntityIdFilter).optional(),
71
72
  inboxItemIds: core.serialization.list(EntityIdFilter_1.EntityIdFilter).optional(),
72
73
  simulationFilter: SimulationFilter_1.SimulationFilter.optional(),
74
+ intelligentFields: IntelligentFieldFilter_1.IntelligentFieldFilter.optional(),
73
75
  });
@@ -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 { IntelligentFieldSearchCondition } from "./IntelligentFieldSearchCondition";
5
+ export declare const IntelligentFieldFilter: core.serialization.ObjectSchema<serializers.IntelligentFieldFilter.Raw, MavenAGI.IntelligentFieldFilter>;
6
+ export declare namespace IntelligentFieldFilter {
7
+ interface Raw {
8
+ conditions: IntelligentFieldSearchCondition.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.IntelligentFieldFilter = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const IntelligentFieldSearchCondition_1 = require("./IntelligentFieldSearchCondition");
40
+ exports.IntelligentFieldFilter = core.serialization.object({
41
+ conditions: core.serialization.list(IntelligentFieldSearchCondition_1.IntelligentFieldSearchCondition),
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 IntelligentFieldOperator: core.serialization.Schema<serializers.IntelligentFieldOperator.Raw, MavenAGI.IntelligentFieldOperator>;
5
+ export declare namespace IntelligentFieldOperator {
6
+ type Raw = "EQ" | "NEQ" | "CONTAINS" | "GT" | "GTE" | "LT" | "LTE" | "EXISTS" | "NOT_EXISTS";
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.IntelligentFieldOperator = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.IntelligentFieldOperator = core.serialization.enum_(["EQ", "NEQ", "CONTAINS", "GT", "GTE", "LT", "LTE", "EXISTS", "NOT_EXISTS"]);
@@ -0,0 +1,13 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { EntityIdFilter } from "../../commons/types/EntityIdFilter";
5
+ import { IntelligentFieldOperator } from "./IntelligentFieldOperator";
6
+ export declare const IntelligentFieldSearchCondition: core.serialization.ObjectSchema<serializers.IntelligentFieldSearchCondition.Raw, MavenAGI.IntelligentFieldSearchCondition>;
7
+ export declare namespace IntelligentFieldSearchCondition {
8
+ interface Raw {
9
+ fieldId: EntityIdFilter.Raw;
10
+ operator: IntelligentFieldOperator.Raw;
11
+ value?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.IntelligentFieldSearchCondition = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EntityIdFilter_1 = require("../../commons/types/EntityIdFilter");
40
+ const IntelligentFieldOperator_1 = require("./IntelligentFieldOperator");
41
+ exports.IntelligentFieldSearchCondition = core.serialization.object({
42
+ fieldId: EntityIdFilter_1.EntityIdFilter,
43
+ operator: IntelligentFieldOperator_1.IntelligentFieldOperator,
44
+ value: core.serialization.string().optional(),
45
+ });
@@ -25,6 +25,9 @@ export * from "./DeliveryStatus";
25
25
  export * from "./FeedbackField";
26
26
  export * from "./FeedbackFilter";
27
27
  export * from "./FeedbackRequest";
28
+ export * from "./IntelligentFieldFilter";
29
+ export * from "./IntelligentFieldOperator";
30
+ export * from "./IntelligentFieldSearchCondition";
28
31
  export * from "./NumericConversationField";
29
32
  export * from "./ResolutionStatus";
30
33
  export * from "./SimulationFilter";
@@ -41,6 +41,9 @@ __exportStar(require("./DeliveryStatus"), exports);
41
41
  __exportStar(require("./FeedbackField"), exports);
42
42
  __exportStar(require("./FeedbackFilter"), exports);
43
43
  __exportStar(require("./FeedbackRequest"), exports);
44
+ __exportStar(require("./IntelligentFieldFilter"), exports);
45
+ __exportStar(require("./IntelligentFieldOperator"), exports);
46
+ __exportStar(require("./IntelligentFieldSearchCondition"), exports);
44
47
  __exportStar(require("./NumericConversationField"), exports);
45
48
  __exportStar(require("./ResolutionStatus"), exports);
46
49
  __exportStar(require("./SimulationFilter"), exports);
@@ -1,12 +1,12 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
- import { BasePaginatedRequest } from "../../commons/types/BasePaginatedRequest";
4
+ import { BaseCappedPaginatedRequest } from "../../commons/types/BaseCappedPaginatedRequest";
5
5
  import { SegmentField } from "./SegmentField";
6
6
  import { SegmentFilter } from "./SegmentFilter";
7
7
  export declare const SegmentsSearchRequest: core.serialization.ObjectSchema<serializers.SegmentsSearchRequest.Raw, MavenAGI.SegmentsSearchRequest>;
8
8
  export declare namespace SegmentsSearchRequest {
9
- interface Raw extends BasePaginatedRequest.Raw {
9
+ interface Raw extends BaseCappedPaginatedRequest.Raw {
10
10
  sort?: SegmentField.Raw | null;
11
11
  filter?: SegmentFilter.Raw | null;
12
12
  }
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SegmentsSearchRequest = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- const BasePaginatedRequest_1 = require("../../commons/types/BasePaginatedRequest");
39
+ const BaseCappedPaginatedRequest_1 = require("../../commons/types/BaseCappedPaginatedRequest");
40
40
  const SegmentField_1 = require("./SegmentField");
41
41
  const SegmentFilter_1 = require("./SegmentFilter");
42
42
  exports.SegmentsSearchRequest = core.serialization
@@ -44,4 +44,4 @@ exports.SegmentsSearchRequest = core.serialization
44
44
  sort: SegmentField_1.SegmentField.optional(),
45
45
  filter: SegmentFilter_1.SegmentFilter.optional(),
46
46
  })
47
- .extend(BasePaginatedRequest_1.BasePaginatedRequest);
47
+ .extend(BaseCappedPaginatedRequest_1.BaseCappedPaginatedRequest);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.38";
1
+ export declare const SDK_VERSION = "1.2.39";
package/dist/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.38";
4
+ exports.SDK_VERSION = "1.2.39";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.38",
3
+ "version": "1.2.39",
4
4
  "private": false,
5
5
  "repository": "github:mavenagi/mavenagi-node",
6
6
  "main": "./index.js",
@@ -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
+ export declare const BaseCappedPaginatedRequest: core.serialization.ObjectSchema<serializers.BaseCappedPaginatedRequest.Raw, MavenAGI.BaseCappedPaginatedRequest>;
5
+ export declare namespace BaseCappedPaginatedRequest {
6
+ interface Raw {
7
+ page?: number | null;
8
+ size?: number | null;
9
+ sortDesc?: boolean | null;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.BaseCappedPaginatedRequest = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.BaseCappedPaginatedRequest = core.serialization.object({
40
+ page: core.serialization.number().optional(),
41
+ size: core.serialization.number().optional(),
42
+ sortDesc: core.serialization.boolean().optional(),
43
+ });
@@ -19,6 +19,7 @@ export * from "./AttachmentRequest";
19
19
  export * from "./AttachmentResponse";
20
20
  export * from "./AttachmentStatus";
21
21
  export * from "./BaseAttachment";
22
+ export * from "./BaseCappedPaginatedRequest";
22
23
  export * from "./BaseConversationResponse";
23
24
  export * from "./BasePaginatedRequest";
24
25
  export * from "./BaseSearchRequest";
@@ -35,6 +35,7 @@ __exportStar(require("./AttachmentRequest"), exports);
35
35
  __exportStar(require("./AttachmentResponse"), exports);
36
36
  __exportStar(require("./AttachmentStatus"), exports);
37
37
  __exportStar(require("./BaseAttachment"), exports);
38
+ __exportStar(require("./BaseCappedPaginatedRequest"), exports);
38
39
  __exportStar(require("./BaseConversationResponse"), exports);
39
40
  __exportStar(require("./BasePaginatedRequest"), exports);
40
41
  __exportStar(require("./BaseSearchRequest"), exports);
@@ -8,6 +8,7 @@ import { Quality } from "../../commons/types/Quality";
8
8
  import { QualityReason } from "../../commons/types/QualityReason";
9
9
  import { ResponseLength } from "../../commons/types/ResponseLength";
10
10
  import { Sentiment } from "../../commons/types/Sentiment";
11
+ import { IntelligentFieldFilter } from "./IntelligentFieldFilter";
11
12
  import { ResolutionStatus } from "./ResolutionStatus";
12
13
  import { SimulationFilter } from "./SimulationFilter";
13
14
  export declare const ConversationFilter: core.serialization.ObjectSchema<serializers.ConversationFilter.Raw, MavenAGI.ConversationFilter>;
@@ -37,5 +38,6 @@ export declare namespace ConversationFilter {
37
38
  matchedSegmentIds?: EntityIdFilter.Raw[] | null;
38
39
  inboxItemIds?: EntityIdFilter.Raw[] | null;
39
40
  simulationFilter?: SimulationFilter.Raw | null;
41
+ intelligentFields?: IntelligentFieldFilter.Raw | null;
40
42
  }
41
43
  }
@@ -43,6 +43,7 @@ const Quality_1 = require("../../commons/types/Quality");
43
43
  const QualityReason_1 = require("../../commons/types/QualityReason");
44
44
  const ResponseLength_1 = require("../../commons/types/ResponseLength");
45
45
  const Sentiment_1 = require("../../commons/types/Sentiment");
46
+ const IntelligentFieldFilter_1 = require("./IntelligentFieldFilter");
46
47
  const ResolutionStatus_1 = require("./ResolutionStatus");
47
48
  const SimulationFilter_1 = require("./SimulationFilter");
48
49
  exports.ConversationFilter = core.serialization.object({
@@ -70,4 +71,5 @@ exports.ConversationFilter = core.serialization.object({
70
71
  matchedSegmentIds: core.serialization.list(EntityIdFilter_1.EntityIdFilter).optional(),
71
72
  inboxItemIds: core.serialization.list(EntityIdFilter_1.EntityIdFilter).optional(),
72
73
  simulationFilter: SimulationFilter_1.SimulationFilter.optional(),
74
+ intelligentFields: IntelligentFieldFilter_1.IntelligentFieldFilter.optional(),
73
75
  });
@@ -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 { IntelligentFieldSearchCondition } from "./IntelligentFieldSearchCondition";
5
+ export declare const IntelligentFieldFilter: core.serialization.ObjectSchema<serializers.IntelligentFieldFilter.Raw, MavenAGI.IntelligentFieldFilter>;
6
+ export declare namespace IntelligentFieldFilter {
7
+ interface Raw {
8
+ conditions: IntelligentFieldSearchCondition.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.IntelligentFieldFilter = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const IntelligentFieldSearchCondition_1 = require("./IntelligentFieldSearchCondition");
40
+ exports.IntelligentFieldFilter = core.serialization.object({
41
+ conditions: core.serialization.list(IntelligentFieldSearchCondition_1.IntelligentFieldSearchCondition),
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 IntelligentFieldOperator: core.serialization.Schema<serializers.IntelligentFieldOperator.Raw, MavenAGI.IntelligentFieldOperator>;
5
+ export declare namespace IntelligentFieldOperator {
6
+ type Raw = "EQ" | "NEQ" | "CONTAINS" | "GT" | "GTE" | "LT" | "LTE" | "EXISTS" | "NOT_EXISTS";
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.IntelligentFieldOperator = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.IntelligentFieldOperator = core.serialization.enum_(["EQ", "NEQ", "CONTAINS", "GT", "GTE", "LT", "LTE", "EXISTS", "NOT_EXISTS"]);
@@ -0,0 +1,13 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { EntityIdFilter } from "../../commons/types/EntityIdFilter";
5
+ import { IntelligentFieldOperator } from "./IntelligentFieldOperator";
6
+ export declare const IntelligentFieldSearchCondition: core.serialization.ObjectSchema<serializers.IntelligentFieldSearchCondition.Raw, MavenAGI.IntelligentFieldSearchCondition>;
7
+ export declare namespace IntelligentFieldSearchCondition {
8
+ interface Raw {
9
+ fieldId: EntityIdFilter.Raw;
10
+ operator: IntelligentFieldOperator.Raw;
11
+ value?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.IntelligentFieldSearchCondition = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EntityIdFilter_1 = require("../../commons/types/EntityIdFilter");
40
+ const IntelligentFieldOperator_1 = require("./IntelligentFieldOperator");
41
+ exports.IntelligentFieldSearchCondition = core.serialization.object({
42
+ fieldId: EntityIdFilter_1.EntityIdFilter,
43
+ operator: IntelligentFieldOperator_1.IntelligentFieldOperator,
44
+ value: core.serialization.string().optional(),
45
+ });
@@ -25,6 +25,9 @@ export * from "./DeliveryStatus";
25
25
  export * from "./FeedbackField";
26
26
  export * from "./FeedbackFilter";
27
27
  export * from "./FeedbackRequest";
28
+ export * from "./IntelligentFieldFilter";
29
+ export * from "./IntelligentFieldOperator";
30
+ export * from "./IntelligentFieldSearchCondition";
28
31
  export * from "./NumericConversationField";
29
32
  export * from "./ResolutionStatus";
30
33
  export * from "./SimulationFilter";
@@ -41,6 +41,9 @@ __exportStar(require("./DeliveryStatus"), exports);
41
41
  __exportStar(require("./FeedbackField"), exports);
42
42
  __exportStar(require("./FeedbackFilter"), exports);
43
43
  __exportStar(require("./FeedbackRequest"), exports);
44
+ __exportStar(require("./IntelligentFieldFilter"), exports);
45
+ __exportStar(require("./IntelligentFieldOperator"), exports);
46
+ __exportStar(require("./IntelligentFieldSearchCondition"), exports);
44
47
  __exportStar(require("./NumericConversationField"), exports);
45
48
  __exportStar(require("./ResolutionStatus"), exports);
46
49
  __exportStar(require("./SimulationFilter"), exports);
@@ -1,12 +1,12 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
- import { BasePaginatedRequest } from "../../commons/types/BasePaginatedRequest";
4
+ import { BaseCappedPaginatedRequest } from "../../commons/types/BaseCappedPaginatedRequest";
5
5
  import { SegmentField } from "./SegmentField";
6
6
  import { SegmentFilter } from "./SegmentFilter";
7
7
  export declare const SegmentsSearchRequest: core.serialization.ObjectSchema<serializers.SegmentsSearchRequest.Raw, MavenAGI.SegmentsSearchRequest>;
8
8
  export declare namespace SegmentsSearchRequest {
9
- interface Raw extends BasePaginatedRequest.Raw {
9
+ interface Raw extends BaseCappedPaginatedRequest.Raw {
10
10
  sort?: SegmentField.Raw | null;
11
11
  filter?: SegmentFilter.Raw | null;
12
12
  }
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SegmentsSearchRequest = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- const BasePaginatedRequest_1 = require("../../commons/types/BasePaginatedRequest");
39
+ const BaseCappedPaginatedRequest_1 = require("../../commons/types/BaseCappedPaginatedRequest");
40
40
  const SegmentField_1 = require("./SegmentField");
41
41
  const SegmentFilter_1 = require("./SegmentFilter");
42
42
  exports.SegmentsSearchRequest = core.serialization
@@ -44,4 +44,4 @@ exports.SegmentsSearchRequest = core.serialization
44
44
  sort: SegmentField_1.SegmentField.optional(),
45
45
  filter: SegmentFilter_1.SegmentFilter.optional(),
46
46
  })
47
- .extend(BasePaginatedRequest_1.BasePaginatedRequest);
47
+ .extend(BaseCappedPaginatedRequest_1.BaseCappedPaginatedRequest);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.38";
1
+ export declare const SDK_VERSION = "1.2.39";
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.38";
4
+ exports.SDK_VERSION = "1.2.39";