mavenagi 1.2.7 → 1.2.9

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 (81) hide show
  1. package/Client.js +2 -2
  2. package/README.md +21 -1
  3. package/api/resources/commons/types/EntityIdBase.d.ts +12 -1
  4. package/api/resources/commons/types/InboxItem.d.ts +24 -1
  5. package/api/resources/commons/types/InboxItemCustom.d.ts +5 -0
  6. package/api/resources/commons/types/InboxItemCustom.js +3 -0
  7. package/api/resources/commons/types/index.d.ts +1 -0
  8. package/api/resources/commons/types/index.js +1 -0
  9. package/api/resources/conversation/client/Client.d.ts +12 -12
  10. package/api/resources/conversation/client/Client.js +12 -12
  11. package/api/resources/events/client/Client.d.ts +2 -2
  12. package/api/resources/events/client/Client.js +2 -2
  13. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +5 -2
  14. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +13 -1
  15. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +12 -0
  16. package/api/resources/knowledge/types/KnowledgeDocumentStatus.d.ts +6 -0
  17. package/api/resources/knowledge/types/KnowledgeDocumentStatus.js +9 -0
  18. package/api/resources/knowledge/types/index.d.ts +1 -0
  19. package/api/resources/knowledge/types/index.js +1 -0
  20. package/api/resources/users/types/AgentUserFilter.d.ts +5 -0
  21. package/dist/Client.js +2 -2
  22. package/dist/api/resources/commons/types/EntityIdBase.d.ts +12 -1
  23. package/dist/api/resources/commons/types/InboxItem.d.ts +24 -1
  24. package/dist/api/resources/commons/types/InboxItemCustom.d.ts +5 -0
  25. package/dist/api/resources/commons/types/InboxItemCustom.js +3 -0
  26. package/dist/api/resources/commons/types/index.d.ts +1 -0
  27. package/dist/api/resources/commons/types/index.js +1 -0
  28. package/dist/api/resources/conversation/client/Client.d.ts +12 -12
  29. package/dist/api/resources/conversation/client/Client.js +12 -12
  30. package/dist/api/resources/events/client/Client.d.ts +2 -2
  31. package/dist/api/resources/events/client/Client.js +2 -2
  32. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +5 -2
  33. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +13 -1
  34. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +12 -0
  35. package/dist/api/resources/knowledge/types/KnowledgeDocumentStatus.d.ts +6 -0
  36. package/dist/api/resources/knowledge/types/KnowledgeDocumentStatus.js +9 -0
  37. package/dist/api/resources/knowledge/types/index.d.ts +1 -0
  38. package/dist/api/resources/knowledge/types/index.js +1 -0
  39. package/dist/api/resources/users/types/AgentUserFilter.d.ts +5 -0
  40. package/dist/serialization/resources/commons/types/InboxItem.d.ts +5 -1
  41. package/dist/serialization/resources/commons/types/InboxItem.js +2 -0
  42. package/dist/serialization/resources/commons/types/InboxItemCustom.d.ts +10 -0
  43. package/dist/serialization/resources/commons/types/InboxItemCustom.js +44 -0
  44. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  45. package/dist/serialization/resources/commons/types/index.js +1 -0
  46. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -1
  47. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
  48. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +4 -0
  49. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  50. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  51. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +2 -0
  52. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentStatus.d.ts +7 -0
  53. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentStatus.js +39 -0
  54. package/dist/serialization/resources/knowledge/types/index.d.ts +1 -0
  55. package/dist/serialization/resources/knowledge/types/index.js +1 -0
  56. package/dist/serialization/resources/users/types/AgentUserFilter.d.ts +1 -0
  57. package/dist/serialization/resources/users/types/AgentUserFilter.js +1 -0
  58. package/dist/version.d.ts +1 -1
  59. package/dist/version.js +1 -1
  60. package/package.json +1 -1
  61. package/reference.md +17 -17
  62. package/serialization/resources/commons/types/InboxItem.d.ts +5 -1
  63. package/serialization/resources/commons/types/InboxItem.js +2 -0
  64. package/serialization/resources/commons/types/InboxItemCustom.d.ts +10 -0
  65. package/serialization/resources/commons/types/InboxItemCustom.js +44 -0
  66. package/serialization/resources/commons/types/index.d.ts +1 -0
  67. package/serialization/resources/commons/types/index.js +1 -0
  68. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -1
  69. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
  70. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +4 -0
  71. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  72. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  73. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +2 -0
  74. package/serialization/resources/knowledge/types/KnowledgeDocumentStatus.d.ts +7 -0
  75. package/serialization/resources/knowledge/types/KnowledgeDocumentStatus.js +39 -0
  76. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  77. package/serialization/resources/knowledge/types/index.js +1 -0
  78. package/serialization/resources/users/types/AgentUserFilter.d.ts +1 -0
  79. package/serialization/resources/users/types/AgentUserFilter.js +1 -0
  80. package/version.d.ts +1 -1
  81. package/version.js +1 -1
@@ -75,23 +75,23 @@ class Conversation {
75
75
  * @example
76
76
  * await client.conversation.initialize({
77
77
  * conversationId: {
78
- * referenceId: "referenceId"
78
+ * referenceId: "x"
79
79
  * },
80
80
  * messages: [{
81
81
  * conversationMessageId: {
82
- * referenceId: "referenceId"
82
+ * referenceId: "x"
83
83
  * },
84
84
  * userId: {
85
- * referenceId: "referenceId"
85
+ * referenceId: "x"
86
86
  * },
87
87
  * text: "text",
88
88
  * userMessageType: "USER"
89
89
  * }, {
90
90
  * conversationMessageId: {
91
- * referenceId: "referenceId"
91
+ * referenceId: "x"
92
92
  * },
93
93
  * userId: {
94
- * referenceId: "referenceId"
94
+ * referenceId: "x"
95
95
  * },
96
96
  * text: "text",
97
97
  * userMessageType: "USER"
@@ -498,19 +498,19 @@ class Conversation {
498
498
  * @example
499
499
  * await client.conversation.appendNewMessages("conversationId", [{
500
500
  * conversationMessageId: {
501
- * referenceId: "referenceId"
501
+ * referenceId: "x"
502
502
  * },
503
503
  * userId: {
504
- * referenceId: "referenceId"
504
+ * referenceId: "x"
505
505
  * },
506
506
  * text: "text",
507
507
  * userMessageType: "USER"
508
508
  * }, {
509
509
  * conversationMessageId: {
510
- * referenceId: "referenceId"
510
+ * referenceId: "x"
511
511
  * },
512
512
  * userId: {
513
- * referenceId: "referenceId"
513
+ * referenceId: "x"
514
514
  * },
515
515
  * text: "text",
516
516
  * userMessageType: "USER"
@@ -1750,14 +1750,14 @@ class Conversation {
1750
1750
  * userId: {
1751
1751
  * type: "AGENT",
1752
1752
  * appId: "appId",
1753
- * referenceId: "referenceId"
1753
+ * referenceId: "x"
1754
1754
  * },
1755
1755
  * message: {
1756
1756
  * conversationMessageId: {
1757
- * referenceId: "referenceId"
1757
+ * referenceId: "x"
1758
1758
  * },
1759
1759
  * userId: {
1760
- * referenceId: "referenceId"
1760
+ * referenceId: "x"
1761
1761
  * },
1762
1762
  * text: "text",
1763
1763
  * userMessageType: "USER"
@@ -50,12 +50,12 @@ export declare class Events {
50
50
  * await client.events.create({
51
51
  * eventType: "userEvent",
52
52
  * id: {
53
- * referenceId: "referenceId"
53
+ * referenceId: "x"
54
54
  * },
55
55
  * eventName: "BUTTON_CLICKED",
56
56
  * userInfo: {
57
57
  * id: {
58
- * referenceId: "referenceId"
58
+ * referenceId: "x"
59
59
  * }
60
60
  * }
61
61
  * })
@@ -68,12 +68,12 @@ class Events {
68
68
  * await client.events.create({
69
69
  * eventType: "userEvent",
70
70
  * id: {
71
- * referenceId: "referenceId"
71
+ * referenceId: "x"
72
72
  * },
73
73
  * eventName: "BUTTON_CLICKED",
74
74
  * userInfo: {
75
75
  * id: {
76
- * referenceId: "referenceId"
76
+ * referenceId: "x"
77
77
  * }
78
78
  * }
79
79
  * })
@@ -23,11 +23,14 @@ export interface KnowledgeDocumentRequest extends MavenAGI.BaseKnowledgeDocument
23
23
  knowledgeDocumentId: MavenAGI.EntityIdBase;
24
24
  /** ID that uniquely identifies which knowledge base version to create the document in. If not provided will use the most recent version of the knowledge base. */
25
25
  versionId?: MavenAGI.EntityIdWithoutAgent;
26
+ /** Type of knowledge document content, if content is provided. This does not need to be set if content is not provided */
26
27
  contentType: MavenAGI.KnowledgeDocumentContentType;
27
28
  /** The title of the document. Will be shown as part of answers. */
28
29
  title: string;
29
- /** The content of the document. Not shown directly to users. May be provided in HTML or markdown. HTML will be converted to markdown automatically. Images are not currently supported and will be ignored. */
30
- content: string;
30
+ /** ID of the asset associated with this document. This asset will be transformed into text and set as the content of the document. The following types are supported: `application/pdf`, `text/plain`. Either this or content is required, but not both */
31
+ assetId?: MavenAGI.EntityIdBase;
32
+ /** The content of the document. Not shown directly to users. May be provided in HTML or markdown. HTML will be converted to markdown automatically. Images are not currently supported and will be ignored. Either this or assetId is required, but not both */
33
+ content?: string;
31
34
  /** Metadata for the knowledge document. */
32
35
  metadata?: Record<string, string>;
33
36
  /** The time at which this document was created. */
@@ -16,6 +16,13 @@ import * as MavenAGI from "../../../index";
16
16
  * agentId: "support",
17
17
  * type: MavenAGI.EntityType.KnowledgeBaseVersion
18
18
  * },
19
+ * knowledgeBaseId: {
20
+ * referenceId: "help-docs",
21
+ * appId: "help-center",
22
+ * organizationId: "acme",
23
+ * agentId: "support",
24
+ * type: MavenAGI.EntityType.KnowledgeBase
25
+ * },
19
26
  * content: "## Getting started This is a getting started guide for the help center.",
20
27
  * title: "Getting started",
21
28
  * metadata: {
@@ -23,12 +30,17 @@ import * as MavenAGI from "../../../index";
23
30
  * },
24
31
  * createdAt: new Date("2024-01-01T00:00:00.000Z"),
25
32
  * updatedAt: new Date("2024-02-02T00:00:00.000Z"),
26
- * llmInclusionStatus: MavenAGI.LlmInclusionStatus.WhenRelevant
33
+ * llmInclusionStatus: MavenAGI.LlmInclusionStatus.WhenRelevant,
34
+ * knowledgeBaseLlmInclusionStatus: MavenAGI.LlmInclusionStatus.WhenRelevant
27
35
  * }
28
36
  */
29
37
  export interface KnowledgeDocumentResponse extends MavenAGI.KnowledgeDocumentSearchResponse {
38
+ /** The current processing status of the knowledge document */
39
+ processingStatus?: MavenAGI.KnowledgeDocumentStatus;
30
40
  /** The content of the document in markdown format. Not shown directly to users. */
31
41
  content: string;
42
+ /** If the document is associated with an asset, this will contain the asset metadata */
43
+ asset?: MavenAGI.AttachmentResponse;
32
44
  /** Metadata for the knowledge document. */
33
45
  metadata: Record<string, string>;
34
46
  }
@@ -16,8 +16,16 @@ import * as MavenAGI from "../../../index";
16
16
  * agentId: "support",
17
17
  * type: MavenAGI.EntityType.KnowledgeBaseVersion
18
18
  * },
19
+ * knowledgeBaseId: {
20
+ * referenceId: "help-docs",
21
+ * appId: "help-center",
22
+ * organizationId: "acme",
23
+ * agentId: "support",
24
+ * type: MavenAGI.EntityType.KnowledgeBase
25
+ * },
19
26
  * title: "How it works",
20
27
  * llmInclusionStatus: MavenAGI.LlmInclusionStatus.WhenRelevant,
28
+ * knowledgeBaseLlmInclusionStatus: MavenAGI.LlmInclusionStatus.Never,
21
29
  * url: "https://help-center.acme.com/how-it-works",
22
30
  * createdAt: new Date("2024-01-01T00:00:00.000Z"),
23
31
  * updatedAt: new Date("2024-02-02T00:00:00.000Z")
@@ -31,10 +39,14 @@ export interface KnowledgeDocumentSearchResponse extends MavenAGI.BaseKnowledgeD
31
39
  * This may be missing on legacy documents.
32
40
  */
33
41
  knowledgeBaseVersionId?: MavenAGI.EntityId;
42
+ /** ID that uniquely identifies the knowledge base that contains this document. */
43
+ knowledgeBaseId: MavenAGI.EntityId;
34
44
  /** The title of the document. Will be shown as part of answers. May be missing on legacy documents. */
35
45
  title?: string;
36
46
  /** Whether the document is included in the agent's knowledge. */
37
47
  llmInclusionStatus: MavenAGI.LlmInclusionStatus;
48
+ /** Whether the knowledge base is included in the agent's knowledge. */
49
+ knowledgeBaseLlmInclusionStatus: MavenAGI.LlmInclusionStatus;
38
50
  /** The time at which this document was created. */
39
51
  createdAt: Date;
40
52
  /** The time at which this document was last modified. */
@@ -0,0 +1,6 @@
1
+ /** The current processing status of the knowledge document */
2
+ export declare const KnowledgeDocumentStatus: {
3
+ readonly Succeeded: "SUCCEEDED";
4
+ readonly InProgress: "IN_PROGRESS";
5
+ };
6
+ export type KnowledgeDocumentStatus = (typeof KnowledgeDocumentStatus)[keyof typeof KnowledgeDocumentStatus];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.KnowledgeDocumentStatus = void 0;
5
+ /** The current processing status of the knowledge document */
6
+ exports.KnowledgeDocumentStatus = {
7
+ Succeeded: "SUCCEEDED",
8
+ InProgress: "IN_PROGRESS",
9
+ };
@@ -14,6 +14,7 @@ export * from "./KnowledgeDocumentContentType";
14
14
  export * from "./KnowledgeDeleteRequest";
15
15
  export * from "./KnowledgeDocumentRequest";
16
16
  export * from "./KnowledgeDocumentResponse";
17
+ export * from "./KnowledgeDocumentStatus";
17
18
  export * from "./KnowledgeBaseField";
18
19
  export * from "./KnowledgeDocumentField";
19
20
  export * from "./KnowledgeBaseFilter";
@@ -30,6 +30,7 @@ __exportStar(require("./KnowledgeDocumentContentType"), exports);
30
30
  __exportStar(require("./KnowledgeDeleteRequest"), exports);
31
31
  __exportStar(require("./KnowledgeDocumentRequest"), exports);
32
32
  __exportStar(require("./KnowledgeDocumentResponse"), exports);
33
+ __exportStar(require("./KnowledgeDocumentStatus"), exports);
33
34
  __exportStar(require("./KnowledgeBaseField"), exports);
34
35
  __exportStar(require("./KnowledgeDocumentField"), exports);
35
36
  __exportStar(require("./KnowledgeBaseFilter"), exports);
@@ -6,6 +6,11 @@ export interface AgentUserFilter {
6
6
  search?: string;
7
7
  /** Filter by identifiers */
8
8
  identifiers?: string[];
9
+ /**
10
+ * Full-text search query for matching agent users by display name.
11
+ * When you search with this parameter, you're performing a full-text search across the user display names.
12
+ */
13
+ displayName?: string;
9
14
  /**
10
15
  * Filter by anonymous users. When true, only anonymous users are returned.
11
16
  * When false, only non-anonymous users are returned. An anonymous user is one without any identifiers or name data.
@@ -3,13 +3,17 @@ import * as MavenAGI from "../../../../api/index";
3
3
  import * as core from "../../../../core";
4
4
  import { InboxItemDuplicateDocuments } from "./InboxItemDuplicateDocuments";
5
5
  import { InboxItemMissingKnowledge } from "./InboxItemMissingKnowledge";
6
+ import { InboxItemCustom } from "./InboxItemCustom";
6
7
  export declare const InboxItem: core.serialization.Schema<serializers.InboxItem.Raw, MavenAGI.InboxItem>;
7
8
  export declare namespace InboxItem {
8
- type Raw = InboxItem.DuplicateDocuments | InboxItem.MissingKnowledge;
9
+ type Raw = InboxItem.DuplicateDocuments | InboxItem.MissingKnowledge | InboxItem.Custom;
9
10
  interface DuplicateDocuments extends InboxItemDuplicateDocuments.Raw {
10
11
  type: "duplicateDocuments";
11
12
  }
12
13
  interface MissingKnowledge extends InboxItemMissingKnowledge.Raw {
13
14
  type: "missingKnowledge";
14
15
  }
16
+ interface Custom extends InboxItemCustom.Raw {
17
+ type: "custom";
18
+ }
15
19
  }
@@ -38,10 +38,12 @@ exports.InboxItem = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const InboxItemDuplicateDocuments_1 = require("./InboxItemDuplicateDocuments");
40
40
  const InboxItemMissingKnowledge_1 = require("./InboxItemMissingKnowledge");
41
+ const InboxItemCustom_1 = require("./InboxItemCustom");
41
42
  exports.InboxItem = core.serialization
42
43
  .union("type", {
43
44
  duplicateDocuments: InboxItemDuplicateDocuments_1.InboxItemDuplicateDocuments,
44
45
  missingKnowledge: InboxItemMissingKnowledge_1.InboxItemMissingKnowledge,
46
+ custom: InboxItemCustom_1.InboxItemCustom,
45
47
  })
46
48
  .transform({
47
49
  transform: (value) => value,
@@ -0,0 +1,10 @@
1
+ import * as serializers from "../../../index";
2
+ import * as MavenAGI from "../../../../api/index";
3
+ import * as core from "../../../../core";
4
+ import { InboxItemBase } from "./InboxItemBase";
5
+ export declare const InboxItemCustom: core.serialization.ObjectSchema<serializers.InboxItemCustom.Raw, MavenAGI.InboxItemCustom>;
6
+ export declare namespace InboxItemCustom {
7
+ interface Raw extends InboxItemBase.Raw {
8
+ metadata: Record<string, string>;
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.InboxItemCustom = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const InboxItemBase_1 = require("./InboxItemBase");
40
+ exports.InboxItemCustom = core.serialization
41
+ .object({
42
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
43
+ })
44
+ .extend(InboxItemBase_1.InboxItemBase);
@@ -125,6 +125,7 @@ export * from "./InboxItemType";
125
125
  export * from "./InboxItemSeverity";
126
126
  export * from "./InboxItem";
127
127
  export * from "./InboxItemBase";
128
+ export * from "./InboxItemCustom";
128
129
  export * from "./InboxItemDuplicateDocuments";
129
130
  export * from "./InboxItemMissingKnowledge";
130
131
  export * from "./InboxItemFix";
@@ -141,6 +141,7 @@ __exportStar(require("./InboxItemType"), exports);
141
141
  __exportStar(require("./InboxItemSeverity"), exports);
142
142
  __exportStar(require("./InboxItem"), exports);
143
143
  __exportStar(require("./InboxItemBase"), exports);
144
+ __exportStar(require("./InboxItemCustom"), exports);
144
145
  __exportStar(require("./InboxItemDuplicateDocuments"), exports);
145
146
  __exportStar(require("./InboxItemMissingKnowledge"), exports);
146
147
  __exportStar(require("./InboxItemFix"), exports);
@@ -12,7 +12,8 @@ export declare namespace KnowledgeDocumentRequest {
12
12
  versionId?: EntityIdWithoutAgent.Raw | null;
13
13
  contentType: KnowledgeDocumentContentType.Raw;
14
14
  title: string;
15
- content: string;
15
+ assetId?: EntityIdBase.Raw | null;
16
+ content?: string | null;
16
17
  metadata?: Record<string, string> | null;
17
18
  createdAt?: string | null;
18
19
  updatedAt?: string | null;
@@ -46,7 +46,8 @@ exports.KnowledgeDocumentRequest = core.serialization
46
46
  versionId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
47
47
  contentType: KnowledgeDocumentContentType_1.KnowledgeDocumentContentType,
48
48
  title: core.serialization.string(),
49
- content: core.serialization.string(),
49
+ assetId: EntityIdBase_1.EntityIdBase.optional(),
50
+ content: core.serialization.string().optional(),
50
51
  metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
51
52
  createdAt: core.serialization.date().optional(),
52
53
  updatedAt: core.serialization.date().optional(),
@@ -1,11 +1,15 @@
1
1
  import * as serializers from "../../../index";
2
2
  import * as MavenAGI from "../../../../api/index";
3
3
  import * as core from "../../../../core";
4
+ import { KnowledgeDocumentStatus } from "./KnowledgeDocumentStatus";
5
+ import { AttachmentResponse } from "../../commons/types/AttachmentResponse";
4
6
  import { KnowledgeDocumentSearchResponse } from "./KnowledgeDocumentSearchResponse";
5
7
  export declare const KnowledgeDocumentResponse: core.serialization.ObjectSchema<serializers.KnowledgeDocumentResponse.Raw, MavenAGI.KnowledgeDocumentResponse>;
6
8
  export declare namespace KnowledgeDocumentResponse {
7
9
  interface Raw extends KnowledgeDocumentSearchResponse.Raw {
10
+ processingStatus?: KnowledgeDocumentStatus.Raw | null;
8
11
  content: string;
12
+ asset?: AttachmentResponse.Raw | null;
9
13
  metadata: Record<string, string>;
10
14
  }
11
15
  }
@@ -36,10 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.KnowledgeDocumentResponse = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
+ const KnowledgeDocumentStatus_1 = require("./KnowledgeDocumentStatus");
40
+ const AttachmentResponse_1 = require("../../commons/types/AttachmentResponse");
39
41
  const KnowledgeDocumentSearchResponse_1 = require("./KnowledgeDocumentSearchResponse");
40
42
  exports.KnowledgeDocumentResponse = core.serialization
41
43
  .object({
44
+ processingStatus: KnowledgeDocumentStatus_1.KnowledgeDocumentStatus.optional(),
42
45
  content: core.serialization.string(),
46
+ asset: AttachmentResponse_1.AttachmentResponse.optional(),
43
47
  metadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
44
48
  })
45
49
  .extend(KnowledgeDocumentSearchResponse_1.KnowledgeDocumentSearchResponse);
@@ -9,8 +9,10 @@ export declare namespace KnowledgeDocumentSearchResponse {
9
9
  interface Raw extends BaseKnowledgeDocument.Raw {
10
10
  knowledgeDocumentId: EntityId.Raw;
11
11
  knowledgeBaseVersionId?: EntityId.Raw | null;
12
+ knowledgeBaseId: EntityId.Raw;
12
13
  title?: string | null;
13
14
  llmInclusionStatus: LlmInclusionStatus.Raw;
15
+ knowledgeBaseLlmInclusionStatus: LlmInclusionStatus.Raw;
14
16
  createdAt: string;
15
17
  updatedAt: string;
16
18
  }
@@ -43,8 +43,10 @@ exports.KnowledgeDocumentSearchResponse = core.serialization
43
43
  .object({
44
44
  knowledgeDocumentId: EntityId_1.EntityId,
45
45
  knowledgeBaseVersionId: EntityId_1.EntityId.optional(),
46
+ knowledgeBaseId: EntityId_1.EntityId,
46
47
  title: core.serialization.string().optional(),
47
48
  llmInclusionStatus: LlmInclusionStatus_1.LlmInclusionStatus,
49
+ knowledgeBaseLlmInclusionStatus: LlmInclusionStatus_1.LlmInclusionStatus,
48
50
  createdAt: core.serialization.date(),
49
51
  updatedAt: core.serialization.date(),
50
52
  })
@@ -0,0 +1,7 @@
1
+ import * as serializers from "../../../index";
2
+ import * as MavenAGI from "../../../../api/index";
3
+ import * as core from "../../../../core";
4
+ export declare const KnowledgeDocumentStatus: core.serialization.Schema<serializers.KnowledgeDocumentStatus.Raw, MavenAGI.KnowledgeDocumentStatus>;
5
+ export declare namespace KnowledgeDocumentStatus {
6
+ type Raw = "SUCCEEDED" | "IN_PROGRESS";
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.KnowledgeDocumentStatus = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.KnowledgeDocumentStatus = core.serialization.enum_(["SUCCEEDED", "IN_PROGRESS"]);
@@ -14,6 +14,7 @@ export * from "./KnowledgeDocumentContentType";
14
14
  export * from "./KnowledgeDeleteRequest";
15
15
  export * from "./KnowledgeDocumentRequest";
16
16
  export * from "./KnowledgeDocumentResponse";
17
+ export * from "./KnowledgeDocumentStatus";
17
18
  export * from "./KnowledgeBaseField";
18
19
  export * from "./KnowledgeDocumentField";
19
20
  export * from "./KnowledgeBaseFilter";
@@ -30,6 +30,7 @@ __exportStar(require("./KnowledgeDocumentContentType"), exports);
30
30
  __exportStar(require("./KnowledgeDeleteRequest"), exports);
31
31
  __exportStar(require("./KnowledgeDocumentRequest"), exports);
32
32
  __exportStar(require("./KnowledgeDocumentResponse"), exports);
33
+ __exportStar(require("./KnowledgeDocumentStatus"), exports);
33
34
  __exportStar(require("./KnowledgeBaseField"), exports);
34
35
  __exportStar(require("./KnowledgeDocumentField"), exports);
35
36
  __exportStar(require("./KnowledgeBaseFilter"), exports);
@@ -6,6 +6,7 @@ export declare namespace AgentUserFilter {
6
6
  interface Raw {
7
7
  search?: string | null;
8
8
  identifiers?: string[] | null;
9
+ displayName?: string | null;
9
10
  isAnonymous?: boolean | null;
10
11
  }
11
12
  }
@@ -39,5 +39,6 @@ const core = __importStar(require("../../../../core"));
39
39
  exports.AgentUserFilter = core.serialization.object({
40
40
  search: core.serialization.string().optional(),
41
41
  identifiers: core.serialization.list(core.serialization.string()).optional(),
42
+ displayName: core.serialization.string().optional(),
42
43
  isAnonymous: core.serialization.boolean().optional(),
43
44
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.7";
1
+ export declare const SDK_VERSION = "1.2.9";
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.7";
4
+ exports.SDK_VERSION = "1.2.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "private": false,
5
5
  "repository": "github:mavenagi/mavenagi-node",
6
6
  "main": "./index.js",