mavenagi 1.2.11 → 1.2.12

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 (33) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/commons/types/MetadataPrecondition.d.ts +3 -1
  3. package/api/resources/commons/types/PreconditionOperator.d.ts +20 -0
  4. package/api/resources/commons/types/PreconditionOperator.js +20 -0
  5. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  6. package/api/resources/segments/types/SegmentResponse.d.ts +6 -0
  7. package/dist/Client.js +2 -2
  8. package/dist/api/resources/commons/types/MetadataPrecondition.d.ts +3 -1
  9. package/dist/api/resources/commons/types/PreconditionOperator.d.ts +20 -0
  10. package/dist/api/resources/commons/types/PreconditionOperator.js +20 -0
  11. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  12. package/dist/api/resources/segments/types/SegmentResponse.d.ts +6 -0
  13. package/dist/serialization/resources/commons/types/MetadataPrecondition.d.ts +1 -0
  14. package/dist/serialization/resources/commons/types/MetadataPrecondition.js +1 -0
  15. package/dist/serialization/resources/commons/types/PreconditionOperator.d.ts +1 -1
  16. package/dist/serialization/resources/commons/types/PreconditionOperator.js +9 -1
  17. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -0
  18. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -0
  19. package/dist/serialization/resources/segments/types/SegmentResponse.d.ts +2 -0
  20. package/dist/serialization/resources/segments/types/SegmentResponse.js +2 -0
  21. package/dist/version.d.ts +1 -1
  22. package/dist/version.js +1 -1
  23. package/package.json +1 -1
  24. package/serialization/resources/commons/types/MetadataPrecondition.d.ts +1 -0
  25. package/serialization/resources/commons/types/MetadataPrecondition.js +1 -0
  26. package/serialization/resources/commons/types/PreconditionOperator.d.ts +1 -1
  27. package/serialization/resources/commons/types/PreconditionOperator.js +9 -1
  28. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -0
  29. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -0
  30. package/serialization/resources/segments/types/SegmentResponse.d.ts +2 -0
  31. package/serialization/resources/segments/types/SegmentResponse.js +2 -0
  32. package/version.d.ts +1 -1
  33. package/version.js +1 -1
package/Client.js CHANGED
@@ -61,8 +61,8 @@ class MavenAGIClient {
61
61
  "X-Agent-Id": _options === null || _options === void 0 ? void 0 : _options.agentId,
62
62
  "X-Fern-Language": "JavaScript",
63
63
  "X-Fern-SDK-Name": "mavenagi",
64
- "X-Fern-SDK-Version": "1.2.11",
65
- "User-Agent": "mavenagi/1.2.11",
64
+ "X-Fern-SDK-Version": "1.2.12",
65
+ "User-Agent": "mavenagi/1.2.12",
66
66
  "X-Fern-Runtime": core.RUNTIME.type,
67
67
  "X-Fern-Runtime-Version": core.RUNTIME.version,
68
68
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -2,6 +2,8 @@ import type * as MavenAGI from "../../../index";
2
2
  export interface MetadataPrecondition extends MavenAGI.PreconditionBase {
3
3
  /** The key that must be present in the metadata for a precondition to be met */
4
4
  key: string;
5
- /** If set, the value must match the metadata value for the given key */
5
+ /** Single value for CONTAINS operator or exact match */
6
6
  value?: string;
7
+ /** Multiple values for CONTAINS_ANY and CONTAINS_ALL operators */
8
+ values?: string[];
7
9
  }
@@ -1,4 +1,24 @@
1
1
  export declare const PreconditionOperator: {
2
+ /**
3
+ * Negation operator (can compose with any comparison operator) */
2
4
  readonly Not: "NOT";
5
+ /**
6
+ * Single value - check if value is in JSON array (x ∈ array) */
7
+ readonly Contains: "CONTAINS";
8
+ /**
9
+ * Single value - check if value is NOT in JSON array (x ∉ array) */
10
+ readonly NotContains: "NOT_CONTAINS";
11
+ /**
12
+ * Multiple values - check if ANY value is in JSON array ({x,y} ∩ array ≠ ∅) */
13
+ readonly ContainsAny: "CONTAINS_ANY";
14
+ /**
15
+ * Multiple values - check if NO values are in JSON array ({x,y} ∩ array = ∅) */
16
+ readonly NotContainsAny: "NOT_CONTAINS_ANY";
17
+ /**
18
+ * Multiple values - check if ALL values are in JSON array ({x,y} ⊆ array) */
19
+ readonly ContainsAll: "CONTAINS_ALL";
20
+ /**
21
+ * Multiple values - check if NOT ALL values are in JSON array ({x,y} ⊄ array) */
22
+ readonly NotContainsAll: "NOT_CONTAINS_ALL";
3
23
  };
4
24
  export type PreconditionOperator = (typeof PreconditionOperator)[keyof typeof PreconditionOperator];
@@ -3,5 +3,25 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.PreconditionOperator = void 0;
5
5
  exports.PreconditionOperator = {
6
+ /**
7
+ * Negation operator (can compose with any comparison operator) */
6
8
  Not: "NOT",
9
+ /**
10
+ * Single value - check if value is in JSON array (x ∈ array) */
11
+ Contains: "CONTAINS",
12
+ /**
13
+ * Single value - check if value is NOT in JSON array (x ∉ array) */
14
+ NotContains: "NOT_CONTAINS",
15
+ /**
16
+ * Multiple values - check if ANY value is in JSON array ({x,y} ∩ array ≠ ∅) */
17
+ ContainsAny: "CONTAINS_ANY",
18
+ /**
19
+ * Multiple values - check if NO values are in JSON array ({x,y} ∩ array = ∅) */
20
+ NotContainsAny: "NOT_CONTAINS_ANY",
21
+ /**
22
+ * Multiple values - check if ALL values are in JSON array ({x,y} ⊆ array) */
23
+ ContainsAll: "CONTAINS_ALL",
24
+ /**
25
+ * Multiple values - check if NOT ALL values are in JSON array ({x,y} ⊄ array) */
26
+ NotContainsAll: "NOT_CONTAINS_ALL",
7
27
  };
@@ -67,4 +67,6 @@ export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties
67
67
  * Inline precondition support will be removed in a future release.
68
68
  */
69
69
  segmentId?: MavenAGI.EntityId;
70
+ /** The source URL of URL and RSS knowledge bases that was used for crawl. */
71
+ url?: string;
70
72
  }
@@ -10,6 +10,8 @@ import type * as MavenAGI from "../../../index";
10
10
  * type: MavenAGI.EntityType.Segment
11
11
  * },
12
12
  * name: "Admin users",
13
+ * createdAt: new Date("2025-01-01T00:00:00.000Z"),
14
+ * updatedAt: new Date("2025-01-15T12:30:00.000Z"),
13
15
  * status: MavenAGI.SegmentStatus.Active,
14
16
  * precondition: {
15
17
  * preconditionType: "group",
@@ -27,6 +29,10 @@ import type * as MavenAGI from "../../../index";
27
29
  export interface SegmentResponse extends MavenAGI.SegmentBase {
28
30
  /** ID that uniquely identifies this segment */
29
31
  segmentId: MavenAGI.EntityId;
32
+ /** The date and time when the segment was created. */
33
+ createdAt: Date;
34
+ /** The date and time when the segment was last updated. */
35
+ updatedAt: Date;
30
36
  /**
31
37
  * Whether or not the segment is in active use. To preserve historical data, segments can not be deleted.
32
38
  *
package/dist/Client.js CHANGED
@@ -61,8 +61,8 @@ class MavenAGIClient {
61
61
  "X-Agent-Id": _options === null || _options === void 0 ? void 0 : _options.agentId,
62
62
  "X-Fern-Language": "JavaScript",
63
63
  "X-Fern-SDK-Name": "mavenagi",
64
- "X-Fern-SDK-Version": "1.2.11",
65
- "User-Agent": "mavenagi/1.2.11",
64
+ "X-Fern-SDK-Version": "1.2.12",
65
+ "User-Agent": "mavenagi/1.2.12",
66
66
  "X-Fern-Runtime": core.RUNTIME.type,
67
67
  "X-Fern-Runtime-Version": core.RUNTIME.version,
68
68
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -2,6 +2,8 @@ import type * as MavenAGI from "../../../index";
2
2
  export interface MetadataPrecondition extends MavenAGI.PreconditionBase {
3
3
  /** The key that must be present in the metadata for a precondition to be met */
4
4
  key: string;
5
- /** If set, the value must match the metadata value for the given key */
5
+ /** Single value for CONTAINS operator or exact match */
6
6
  value?: string;
7
+ /** Multiple values for CONTAINS_ANY and CONTAINS_ALL operators */
8
+ values?: string[];
7
9
  }
@@ -1,4 +1,24 @@
1
1
  export declare const PreconditionOperator: {
2
+ /**
3
+ * Negation operator (can compose with any comparison operator) */
2
4
  readonly Not: "NOT";
5
+ /**
6
+ * Single value - check if value is in JSON array (x ∈ array) */
7
+ readonly Contains: "CONTAINS";
8
+ /**
9
+ * Single value - check if value is NOT in JSON array (x ∉ array) */
10
+ readonly NotContains: "NOT_CONTAINS";
11
+ /**
12
+ * Multiple values - check if ANY value is in JSON array ({x,y} ∩ array ≠ ∅) */
13
+ readonly ContainsAny: "CONTAINS_ANY";
14
+ /**
15
+ * Multiple values - check if NO values are in JSON array ({x,y} ∩ array = ∅) */
16
+ readonly NotContainsAny: "NOT_CONTAINS_ANY";
17
+ /**
18
+ * Multiple values - check if ALL values are in JSON array ({x,y} ⊆ array) */
19
+ readonly ContainsAll: "CONTAINS_ALL";
20
+ /**
21
+ * Multiple values - check if NOT ALL values are in JSON array ({x,y} ⊄ array) */
22
+ readonly NotContainsAll: "NOT_CONTAINS_ALL";
3
23
  };
4
24
  export type PreconditionOperator = (typeof PreconditionOperator)[keyof typeof PreconditionOperator];
@@ -3,5 +3,25 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.PreconditionOperator = void 0;
5
5
  exports.PreconditionOperator = {
6
+ /**
7
+ * Negation operator (can compose with any comparison operator) */
6
8
  Not: "NOT",
9
+ /**
10
+ * Single value - check if value is in JSON array (x ∈ array) */
11
+ Contains: "CONTAINS",
12
+ /**
13
+ * Single value - check if value is NOT in JSON array (x ∉ array) */
14
+ NotContains: "NOT_CONTAINS",
15
+ /**
16
+ * Multiple values - check if ANY value is in JSON array ({x,y} ∩ array ≠ ∅) */
17
+ ContainsAny: "CONTAINS_ANY",
18
+ /**
19
+ * Multiple values - check if NO values are in JSON array ({x,y} ∩ array = ∅) */
20
+ NotContainsAny: "NOT_CONTAINS_ANY",
21
+ /**
22
+ * Multiple values - check if ALL values are in JSON array ({x,y} ⊆ array) */
23
+ ContainsAll: "CONTAINS_ALL",
24
+ /**
25
+ * Multiple values - check if NOT ALL values are in JSON array ({x,y} ⊄ array) */
26
+ NotContainsAll: "NOT_CONTAINS_ALL",
7
27
  };
@@ -67,4 +67,6 @@ export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties
67
67
  * Inline precondition support will be removed in a future release.
68
68
  */
69
69
  segmentId?: MavenAGI.EntityId;
70
+ /** The source URL of URL and RSS knowledge bases that was used for crawl. */
71
+ url?: string;
70
72
  }
@@ -10,6 +10,8 @@ import type * as MavenAGI from "../../../index";
10
10
  * type: MavenAGI.EntityType.Segment
11
11
  * },
12
12
  * name: "Admin users",
13
+ * createdAt: new Date("2025-01-01T00:00:00.000Z"),
14
+ * updatedAt: new Date("2025-01-15T12:30:00.000Z"),
13
15
  * status: MavenAGI.SegmentStatus.Active,
14
16
  * precondition: {
15
17
  * preconditionType: "group",
@@ -27,6 +29,10 @@ import type * as MavenAGI from "../../../index";
27
29
  export interface SegmentResponse extends MavenAGI.SegmentBase {
28
30
  /** ID that uniquely identifies this segment */
29
31
  segmentId: MavenAGI.EntityId;
32
+ /** The date and time when the segment was created. */
33
+ createdAt: Date;
34
+ /** The date and time when the segment was last updated. */
35
+ updatedAt: Date;
30
36
  /**
31
37
  * Whether or not the segment is in active use. To preserve historical data, segments can not be deleted.
32
38
  *
@@ -7,5 +7,6 @@ export declare namespace MetadataPrecondition {
7
7
  interface Raw extends PreconditionBase.Raw {
8
8
  key: string;
9
9
  value?: string | null;
10
+ values?: string[] | null;
10
11
  }
11
12
  }
@@ -41,5 +41,6 @@ exports.MetadataPrecondition = core.serialization
41
41
  .object({
42
42
  key: core.serialization.string(),
43
43
  value: core.serialization.string().optional(),
44
+ values: core.serialization.list(core.serialization.string()).optional(),
44
45
  })
45
46
  .extend(PreconditionBase_1.PreconditionBase);
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const PreconditionOperator: core.serialization.Schema<serializers.PreconditionOperator.Raw, MavenAGI.PreconditionOperator>;
5
5
  export declare namespace PreconditionOperator {
6
- type Raw = "NOT";
6
+ type Raw = "NOT" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_ANY" | "NOT_CONTAINS_ANY" | "CONTAINS_ALL" | "NOT_CONTAINS_ALL";
7
7
  }
@@ -36,4 +36,12 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.PreconditionOperator = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- exports.PreconditionOperator = core.serialization.enum_(["NOT"]);
39
+ exports.PreconditionOperator = core.serialization.enum_([
40
+ "NOT",
41
+ "CONTAINS",
42
+ "NOT_CONTAINS",
43
+ "CONTAINS_ANY",
44
+ "NOT_CONTAINS_ANY",
45
+ "CONTAINS_ALL",
46
+ "NOT_CONTAINS_ALL",
47
+ ]);
@@ -21,5 +21,6 @@ export declare namespace KnowledgeBaseResponse {
21
21
  llmInclusionStatus: LlmInclusionStatus.Raw;
22
22
  refreshFrequency: KnowledgeBaseRefreshFrequency.Raw;
23
23
  segmentId?: EntityId.Raw | null;
24
+ url?: string | null;
24
25
  }
25
26
  }
@@ -55,5 +55,6 @@ exports.KnowledgeBaseResponse = core.serialization
55
55
  llmInclusionStatus: LlmInclusionStatus_1.LlmInclusionStatus,
56
56
  refreshFrequency: KnowledgeBaseRefreshFrequency_1.KnowledgeBaseRefreshFrequency,
57
57
  segmentId: EntityId_1.EntityId.optional(),
58
+ url: core.serialization.string().optional(),
58
59
  })
59
60
  .extend(KnowledgeBaseProperties_1.KnowledgeBaseProperties);
@@ -8,6 +8,8 @@ export declare const SegmentResponse: core.serialization.ObjectSchema<serializer
8
8
  export declare namespace SegmentResponse {
9
9
  interface Raw extends SegmentBase.Raw {
10
10
  segmentId: EntityId.Raw;
11
+ createdAt: string;
12
+ updatedAt: string;
11
13
  status: SegmentStatus.Raw;
12
14
  }
13
15
  }
@@ -42,6 +42,8 @@ const SegmentStatus_1 = require("./SegmentStatus");
42
42
  exports.SegmentResponse = core.serialization
43
43
  .object({
44
44
  segmentId: EntityId_1.EntityId,
45
+ createdAt: core.serialization.date(),
46
+ updatedAt: core.serialization.date(),
45
47
  status: SegmentStatus_1.SegmentStatus,
46
48
  })
47
49
  .extend(SegmentBase_1.SegmentBase);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.11";
1
+ export declare const SDK_VERSION = "1.2.12";
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.11";
4
+ exports.SDK_VERSION = "1.2.12";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "private": false,
5
5
  "repository": "github:mavenagi/mavenagi-node",
6
6
  "main": "./index.js",
@@ -7,5 +7,6 @@ export declare namespace MetadataPrecondition {
7
7
  interface Raw extends PreconditionBase.Raw {
8
8
  key: string;
9
9
  value?: string | null;
10
+ values?: string[] | null;
10
11
  }
11
12
  }
@@ -41,5 +41,6 @@ exports.MetadataPrecondition = core.serialization
41
41
  .object({
42
42
  key: core.serialization.string(),
43
43
  value: core.serialization.string().optional(),
44
+ values: core.serialization.list(core.serialization.string()).optional(),
44
45
  })
45
46
  .extend(PreconditionBase_1.PreconditionBase);
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const PreconditionOperator: core.serialization.Schema<serializers.PreconditionOperator.Raw, MavenAGI.PreconditionOperator>;
5
5
  export declare namespace PreconditionOperator {
6
- type Raw = "NOT";
6
+ type Raw = "NOT" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_ANY" | "NOT_CONTAINS_ANY" | "CONTAINS_ALL" | "NOT_CONTAINS_ALL";
7
7
  }
@@ -36,4 +36,12 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.PreconditionOperator = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- exports.PreconditionOperator = core.serialization.enum_(["NOT"]);
39
+ exports.PreconditionOperator = core.serialization.enum_([
40
+ "NOT",
41
+ "CONTAINS",
42
+ "NOT_CONTAINS",
43
+ "CONTAINS_ANY",
44
+ "NOT_CONTAINS_ANY",
45
+ "CONTAINS_ALL",
46
+ "NOT_CONTAINS_ALL",
47
+ ]);
@@ -21,5 +21,6 @@ export declare namespace KnowledgeBaseResponse {
21
21
  llmInclusionStatus: LlmInclusionStatus.Raw;
22
22
  refreshFrequency: KnowledgeBaseRefreshFrequency.Raw;
23
23
  segmentId?: EntityId.Raw | null;
24
+ url?: string | null;
24
25
  }
25
26
  }
@@ -55,5 +55,6 @@ exports.KnowledgeBaseResponse = core.serialization
55
55
  llmInclusionStatus: LlmInclusionStatus_1.LlmInclusionStatus,
56
56
  refreshFrequency: KnowledgeBaseRefreshFrequency_1.KnowledgeBaseRefreshFrequency,
57
57
  segmentId: EntityId_1.EntityId.optional(),
58
+ url: core.serialization.string().optional(),
58
59
  })
59
60
  .extend(KnowledgeBaseProperties_1.KnowledgeBaseProperties);
@@ -8,6 +8,8 @@ export declare const SegmentResponse: core.serialization.ObjectSchema<serializer
8
8
  export declare namespace SegmentResponse {
9
9
  interface Raw extends SegmentBase.Raw {
10
10
  segmentId: EntityId.Raw;
11
+ createdAt: string;
12
+ updatedAt: string;
11
13
  status: SegmentStatus.Raw;
12
14
  }
13
15
  }
@@ -42,6 +42,8 @@ const SegmentStatus_1 = require("./SegmentStatus");
42
42
  exports.SegmentResponse = core.serialization
43
43
  .object({
44
44
  segmentId: EntityId_1.EntityId,
45
+ createdAt: core.serialization.date(),
46
+ updatedAt: core.serialization.date(),
45
47
  status: SegmentStatus_1.SegmentStatus,
46
48
  })
47
49
  .extend(SegmentBase_1.SegmentBase);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.11";
1
+ export declare const SDK_VERSION = "1.2.12";
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.11";
4
+ exports.SDK_VERSION = "1.2.12";