mavenagi 1.2.4 → 1.2.6

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 (203) hide show
  1. package/Client.js +2 -2
  2. package/README.md +390 -0
  3. package/api/resources/actions/client/Client.d.ts +11 -1
  4. package/api/resources/actions/client/Client.js +11 -1
  5. package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
  6. package/api/resources/agentCapabilities/types/ActionCapability.d.ts +1 -1
  7. package/api/resources/agents/client/Client.d.ts +2 -2
  8. package/api/resources/agents/client/Client.js +5 -5
  9. package/api/resources/agents/client/index.d.ts +1 -0
  10. package/api/resources/agents/client/index.js +15 -0
  11. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
  12. package/api/resources/agents/client/requests/index.d.ts +1 -0
  13. package/api/resources/agents/client/requests/index.js +2 -0
  14. package/api/resources/agents/types/Agent.d.ts +8 -0
  15. package/api/resources/agents/types/AgentPrompting.d.ts +23 -0
  16. package/api/resources/agents/types/index.d.ts +1 -1
  17. package/api/resources/agents/types/index.js +1 -1
  18. package/api/resources/analytics/client/Client.d.ts +10 -0
  19. package/api/resources/analytics/client/Client.js +83 -0
  20. package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
  21. package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
  22. package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
  23. package/api/resources/commons/types/ActionResponse.d.ts +7 -0
  24. package/api/resources/commons/types/AppUserResponse.d.ts +12 -0
  25. package/api/resources/commons/types/ConversationSummary.d.ts +4 -0
  26. package/api/resources/commons/types/SimulationContext.d.ts +6 -0
  27. package/api/resources/commons/types/UserDataWithReference.d.ts +5 -0
  28. package/api/resources/commons/types/UserDataWithReference.js +3 -0
  29. package/api/resources/commons/types/index.d.ts +1 -0
  30. package/api/resources/commons/types/index.js +1 -0
  31. package/api/resources/conversation/client/Client.d.ts +18 -1
  32. package/api/resources/conversation/client/Client.js +91 -1
  33. package/api/resources/events/client/Client.d.ts +10 -0
  34. package/api/resources/events/client/Client.js +83 -0
  35. package/api/resources/index.d.ts +1 -0
  36. package/api/resources/index.js +1 -0
  37. package/api/resources/knowledge/client/Client.d.ts +32 -1
  38. package/api/resources/knowledge/client/Client.js +104 -1
  39. package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
  40. package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  41. package/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
  42. package/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
  43. package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
  44. package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
  45. package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
  46. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
  47. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
  48. package/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
  49. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
  50. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  51. package/api/resources/knowledge/types/index.d.ts +1 -0
  52. package/api/resources/knowledge/types/index.js +1 -0
  53. package/dist/Client.js +2 -2
  54. package/dist/api/resources/actions/client/Client.d.ts +11 -1
  55. package/dist/api/resources/actions/client/Client.js +11 -1
  56. package/dist/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
  57. package/dist/api/resources/agentCapabilities/types/ActionCapability.d.ts +1 -1
  58. package/dist/api/resources/agents/client/Client.d.ts +2 -2
  59. package/dist/api/resources/agents/client/Client.js +5 -5
  60. package/dist/api/resources/agents/client/index.d.ts +1 -0
  61. package/dist/api/resources/agents/client/index.js +15 -0
  62. package/dist/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
  63. package/dist/api/resources/agents/client/requests/AgentPatchRequest.js +3 -0
  64. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  65. package/dist/api/resources/agents/client/requests/index.js +2 -0
  66. package/dist/api/resources/agents/types/Agent.d.ts +8 -0
  67. package/dist/api/resources/agents/types/AgentPrompting.d.ts +23 -0
  68. package/dist/api/resources/agents/types/AgentPrompting.js +3 -0
  69. package/dist/api/resources/agents/types/index.d.ts +1 -1
  70. package/dist/api/resources/agents/types/index.js +1 -1
  71. package/dist/api/resources/analytics/client/Client.d.ts +10 -0
  72. package/dist/api/resources/analytics/client/Client.js +83 -0
  73. package/dist/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
  74. package/dist/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
  75. package/dist/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
  76. package/dist/api/resources/commons/types/ActionResponse.d.ts +7 -0
  77. package/dist/api/resources/commons/types/AppUserResponse.d.ts +12 -0
  78. package/dist/api/resources/commons/types/ConversationSummary.d.ts +4 -0
  79. package/dist/api/resources/commons/types/SimulationContext.d.ts +6 -0
  80. package/dist/api/resources/commons/types/UserDataWithReference.d.ts +5 -0
  81. package/dist/api/resources/commons/types/UserDataWithReference.js +3 -0
  82. package/dist/api/resources/commons/types/index.d.ts +1 -0
  83. package/dist/api/resources/commons/types/index.js +1 -0
  84. package/dist/api/resources/conversation/client/Client.d.ts +18 -1
  85. package/dist/api/resources/conversation/client/Client.js +91 -1
  86. package/dist/api/resources/events/client/Client.d.ts +10 -0
  87. package/dist/api/resources/events/client/Client.js +83 -0
  88. package/dist/api/resources/index.d.ts +1 -0
  89. package/dist/api/resources/index.js +1 -0
  90. package/dist/api/resources/knowledge/client/Client.d.ts +32 -1
  91. package/dist/api/resources/knowledge/client/Client.js +104 -1
  92. package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
  93. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  94. package/dist/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
  95. package/dist/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
  96. package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
  97. package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
  98. package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
  99. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
  100. package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
  101. package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
  102. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
  103. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  104. package/dist/api/resources/knowledge/types/index.d.ts +1 -0
  105. package/dist/api/resources/knowledge/types/index.js +1 -0
  106. package/dist/serialization/resources/agentCapabilities/types/ActionCapability.js +1 -1
  107. package/dist/serialization/resources/agents/client/index.d.ts +1 -0
  108. package/dist/serialization/resources/agents/client/index.js +4 -0
  109. package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
  110. package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
  111. package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
  112. package/dist/serialization/resources/agents/client/requests/index.js +5 -0
  113. package/dist/serialization/resources/agents/types/Agent.d.ts +3 -0
  114. package/dist/serialization/resources/agents/types/Agent.js +3 -0
  115. package/dist/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
  116. package/dist/serialization/resources/agents/types/AgentPrompting.js +46 -0
  117. package/dist/serialization/resources/agents/types/index.d.ts +1 -1
  118. package/dist/serialization/resources/agents/types/index.js +1 -1
  119. package/dist/serialization/resources/commons/types/AppUserResponse.d.ts +2 -0
  120. package/dist/serialization/resources/commons/types/AppUserResponse.js +2 -0
  121. package/dist/serialization/resources/commons/types/ConversationSummary.d.ts +2 -0
  122. package/dist/serialization/resources/commons/types/ConversationSummary.js +2 -0
  123. package/dist/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
  124. package/dist/serialization/resources/commons/types/SimulationContext.js +1 -0
  125. package/dist/serialization/resources/commons/types/UserDataWithReference.d.ts +11 -0
  126. package/dist/serialization/resources/commons/types/UserDataWithReference.js +45 -0
  127. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  128. package/dist/serialization/resources/commons/types/index.js +1 -0
  129. package/dist/serialization/resources/index.d.ts +1 -0
  130. package/dist/serialization/resources/index.js +1 -0
  131. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
  132. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
  133. package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
  134. package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
  135. package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
  136. package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
  137. package/dist/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
  138. package/dist/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
  139. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
  140. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
  141. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  142. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
  143. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
  144. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
  145. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
  146. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
  147. package/dist/serialization/resources/knowledge/types/index.d.ts +1 -0
  148. package/dist/serialization/resources/knowledge/types/index.js +1 -0
  149. package/dist/version.d.ts +1 -1
  150. package/dist/version.js +1 -1
  151. package/package.json +1 -1
  152. package/reference.md +325 -4
  153. package/serialization/resources/agentCapabilities/types/ActionCapability.js +1 -1
  154. package/serialization/resources/agents/client/index.d.ts +1 -0
  155. package/serialization/resources/agents/client/index.js +4 -0
  156. package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
  157. package/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
  158. package/serialization/resources/agents/client/requests/index.d.ts +1 -0
  159. package/serialization/resources/agents/client/requests/index.js +5 -0
  160. package/serialization/resources/agents/types/Agent.d.ts +3 -0
  161. package/serialization/resources/agents/types/Agent.js +3 -0
  162. package/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
  163. package/serialization/resources/agents/types/AgentPrompting.js +46 -0
  164. package/serialization/resources/agents/types/index.d.ts +1 -1
  165. package/serialization/resources/agents/types/index.js +1 -1
  166. package/serialization/resources/commons/types/AppUserResponse.d.ts +2 -0
  167. package/serialization/resources/commons/types/AppUserResponse.js +2 -0
  168. package/serialization/resources/commons/types/ConversationSummary.d.ts +2 -0
  169. package/serialization/resources/commons/types/ConversationSummary.js +2 -0
  170. package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
  171. package/serialization/resources/commons/types/SimulationContext.js +1 -0
  172. package/serialization/resources/commons/types/UserDataWithReference.d.ts +11 -0
  173. package/serialization/resources/commons/types/UserDataWithReference.js +45 -0
  174. package/serialization/resources/commons/types/index.d.ts +1 -0
  175. package/serialization/resources/commons/types/index.js +1 -0
  176. package/serialization/resources/index.d.ts +1 -0
  177. package/serialization/resources/index.js +1 -0
  178. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
  179. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
  180. package/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
  181. package/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
  182. package/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
  183. package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
  184. package/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
  185. package/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
  186. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
  187. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
  188. package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  189. package/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
  190. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
  191. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
  192. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
  193. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
  194. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  195. package/serialization/resources/knowledge/types/index.js +1 -0
  196. package/version.d.ts +1 -1
  197. package/version.js +1 -1
  198. package/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
  199. package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
  200. package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
  201. package/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
  202. /package/api/resources/agents/{types → client/requests}/AgentPatchRequest.js +0 -0
  203. /package/{dist/api/resources/agents/types/AgentPatchRequest.js → api/resources/agents/types/AgentPrompting.js} +0 -0
@@ -0,0 +1,11 @@
1
+ import * as serializers from "../../../index";
2
+ import * as MavenAGI from "../../../../api/index";
3
+ import * as core from "../../../../core";
4
+ import { EntityIdFilter } from "./EntityIdFilter";
5
+ import { UserData } from "./UserData";
6
+ export declare const UserDataWithReference: core.serialization.ObjectSchema<serializers.UserDataWithReference.Raw, MavenAGI.UserDataWithReference>;
7
+ export declare namespace UserDataWithReference {
8
+ interface Raw extends UserData.Raw {
9
+ userId: EntityIdFilter.Raw;
10
+ }
11
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.UserDataWithReference = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EntityIdFilter_1 = require("./EntityIdFilter");
40
+ const UserData_1 = require("./UserData");
41
+ exports.UserDataWithReference = core.serialization
42
+ .object({
43
+ userId: EntityIdFilter_1.EntityIdFilter,
44
+ })
45
+ .extend(UserData_1.UserData);
@@ -46,6 +46,7 @@ export * from "./AppUserIdentifier";
46
46
  export * from "./AppUserIdentifyingPropertyType";
47
47
  export * from "./AppUser";
48
48
  export * from "./UserData";
49
+ export * from "./UserDataWithReference";
49
50
  export * from "./VisibilityType";
50
51
  export * from "./AppUserRequest";
51
52
  export * from "./AppUserResponse";
@@ -62,6 +62,7 @@ __exportStar(require("./AppUserIdentifier"), exports);
62
62
  __exportStar(require("./AppUserIdentifyingPropertyType"), exports);
63
63
  __exportStar(require("./AppUser"), exports);
64
64
  __exportStar(require("./UserData"), exports);
65
+ __exportStar(require("./UserDataWithReference"), exports);
65
66
  __exportStar(require("./VisibilityType"), exports);
66
67
  __exportStar(require("./AppUserRequest"), exports);
67
68
  __exportStar(require("./AppUserResponse"), exports);
@@ -29,4 +29,5 @@ export * from "./triggers/types";
29
29
  export * as users from "./users";
30
30
  export * from "./users/types";
31
31
  export * from "./actions/client/requests";
32
+ export * from "./agents/client/requests";
32
33
  export * from "./knowledge/client/requests";
@@ -68,4 +68,5 @@ __exportStar(require("./triggers/types"), exports);
68
68
  exports.users = __importStar(require("./users"));
69
69
  __exportStar(require("./users/types"), exports);
70
70
  __exportStar(require("./actions/client/requests"), exports);
71
+ __exportStar(require("./agents/client/requests"), exports);
71
72
  __exportStar(require("./knowledge/client/requests"), exports);
@@ -4,7 +4,6 @@ import * as core from "../../../../core";
4
4
  export declare const BaseKnowledgeDocument: core.serialization.ObjectSchema<serializers.BaseKnowledgeDocument.Raw, MavenAGI.BaseKnowledgeDocument>;
5
5
  export declare namespace BaseKnowledgeDocument {
6
6
  interface Raw {
7
- title: string;
8
7
  url?: string | null;
9
8
  language?: string | null;
10
9
  createdAt?: string | null;
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.BaseKnowledgeDocument = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  exports.BaseKnowledgeDocument = core.serialization.object({
40
- title: core.serialization.string(),
41
40
  url: core.serialization.string().optional(),
42
41
  language: core.serialization.string().optional(),
43
42
  createdAt: core.serialization.date().optional(),
@@ -3,5 +3,5 @@ import * as MavenAGI from "../../../../api/index";
3
3
  import * as core from "../../../../core";
4
4
  export declare const KnowledgeBaseField: core.serialization.Schema<serializers.KnowledgeBaseField.Raw, MavenAGI.KnowledgeBaseField>;
5
5
  export declare namespace KnowledgeBaseField {
6
- type Raw = "Title" | "UpdatedAt";
6
+ type Raw = "Title" | "CreatedAt" | "UpdatedAt";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.KnowledgeBaseField = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- exports.KnowledgeBaseField = core.serialization.enum_(["Title", "UpdatedAt"]);
39
+ exports.KnowledgeBaseField = core.serialization.enum_(["Title", "CreatedAt", "UpdatedAt"]);
@@ -1,6 +1,8 @@
1
1
  import * as serializers from "../../../index";
2
2
  import * as MavenAGI from "../../../../api/index";
3
3
  import * as core from "../../../../core";
4
+ import { KnowledgeBaseVersionStatus } from "./KnowledgeBaseVersionStatus";
5
+ import { LlmInclusionStatus } from "../../commons/types/LlmInclusionStatus";
4
6
  export declare const KnowledgeBaseFilter: core.serialization.ObjectSchema<serializers.KnowledgeBaseFilter.Raw, MavenAGI.KnowledgeBaseFilter>;
5
7
  export declare namespace KnowledgeBaseFilter {
6
8
  interface Raw {
@@ -9,5 +11,7 @@ export declare namespace KnowledgeBaseFilter {
9
11
  createdAfter?: string | null;
10
12
  createdBefore?: string | null;
11
13
  appIds?: string[] | null;
14
+ mostRecentVersionStatus?: KnowledgeBaseVersionStatus.Raw[] | null;
15
+ llmInclusionStatus?: LlmInclusionStatus.Raw | null;
12
16
  }
13
17
  }
@@ -36,10 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.KnowledgeBaseFilter = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
+ const KnowledgeBaseVersionStatus_1 = require("./KnowledgeBaseVersionStatus");
40
+ const LlmInclusionStatus_1 = require("../../commons/types/LlmInclusionStatus");
39
41
  exports.KnowledgeBaseFilter = core.serialization.object({
40
42
  search: core.serialization.string().optional(),
41
43
  title: core.serialization.string().optional(),
42
44
  createdAfter: core.serialization.date().optional(),
43
45
  createdBefore: core.serialization.date().optional(),
44
46
  appIds: core.serialization.list(core.serialization.string()).optional(),
47
+ mostRecentVersionStatus: core.serialization.list(KnowledgeBaseVersionStatus_1.KnowledgeBaseVersionStatus).optional(),
48
+ llmInclusionStatus: LlmInclusionStatus_1.LlmInclusionStatus.optional(),
45
49
  });
@@ -0,0 +1,9 @@
1
+ import * as serializers from "../../../index";
2
+ import * as MavenAGI from "../../../../api/index";
3
+ import * as core from "../../../../core";
4
+ export declare const KnowledgeBaseRefreshRequest: core.serialization.ObjectSchema<serializers.KnowledgeBaseRefreshRequest.Raw, MavenAGI.KnowledgeBaseRefreshRequest>;
5
+ export declare namespace KnowledgeBaseRefreshRequest {
6
+ interface Raw {
7
+ appId?: string | null;
8
+ }
9
+ }
@@ -34,13 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.AgentPatchRequest = void 0;
37
+ exports.KnowledgeBaseRefreshRequest = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- const AgentEnvironment_1 = require("./AgentEnvironment");
40
- const PiiCategory_1 = require("./PiiCategory");
41
- exports.AgentPatchRequest = core.serialization.object({
42
- name: core.serialization.string().optional(),
43
- environment: AgentEnvironment_1.AgentEnvironment.optional(),
44
- defaultTimezone: core.serialization.string().optional(),
45
- enabledPiiCategories: core.serialization.set(PiiCategory_1.PiiCategory).optional(),
39
+ exports.KnowledgeBaseRefreshRequest = core.serialization.object({
40
+ appId: core.serialization.string().optional(),
46
41
  });
@@ -2,6 +2,7 @@ import * as serializers from "../../../index";
2
2
  import * as MavenAGI from "../../../../api/index";
3
3
  import * as core from "../../../../core";
4
4
  import { EntityId } from "../../commons/types/EntityId";
5
+ import { KnowledgeBaseVersionStatus } from "./KnowledgeBaseVersionStatus";
5
6
  import { KnowledgeBaseType } from "./KnowledgeBaseType";
6
7
  import { LlmInclusionStatus } from "../../commons/types/LlmInclusionStatus";
7
8
  import { KnowledgeBaseRefreshFrequency } from "./KnowledgeBaseRefreshFrequency";
@@ -9,8 +10,11 @@ import { KnowledgeBaseProperties } from "./KnowledgeBaseProperties";
9
10
  export declare const KnowledgeBaseResponse: core.serialization.ObjectSchema<serializers.KnowledgeBaseResponse.Raw, MavenAGI.KnowledgeBaseResponse>;
10
11
  export declare namespace KnowledgeBaseResponse {
11
12
  interface Raw extends KnowledgeBaseProperties.Raw {
13
+ createdAt: string;
14
+ updatedAt: string;
12
15
  knowledgeBaseId: EntityId.Raw;
13
16
  activeVersionId?: EntityId.Raw | null;
17
+ mostRecentVersionStatus: KnowledgeBaseVersionStatus.Raw;
14
18
  type: KnowledgeBaseType.Raw;
15
19
  metadata: Record<string, string>;
16
20
  tags: string[];
@@ -37,14 +37,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.KnowledgeBaseResponse = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const EntityId_1 = require("../../commons/types/EntityId");
40
+ const KnowledgeBaseVersionStatus_1 = require("./KnowledgeBaseVersionStatus");
40
41
  const KnowledgeBaseType_1 = require("./KnowledgeBaseType");
41
42
  const LlmInclusionStatus_1 = require("../../commons/types/LlmInclusionStatus");
42
43
  const KnowledgeBaseRefreshFrequency_1 = require("./KnowledgeBaseRefreshFrequency");
43
44
  const KnowledgeBaseProperties_1 = require("./KnowledgeBaseProperties");
44
45
  exports.KnowledgeBaseResponse = core.serialization
45
46
  .object({
47
+ createdAt: core.serialization.date(),
48
+ updatedAt: core.serialization.date(),
46
49
  knowledgeBaseId: EntityId_1.EntityId,
47
50
  activeVersionId: EntityId_1.EntityId.optional(),
51
+ mostRecentVersionStatus: KnowledgeBaseVersionStatus_1.KnowledgeBaseVersionStatus,
48
52
  type: KnowledgeBaseType_1.KnowledgeBaseType,
49
53
  metadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
50
54
  tags: core.serialization.set(core.serialization.string()),
@@ -3,5 +3,5 @@ import * as MavenAGI from "../../../../api/index";
3
3
  import * as core from "../../../../core";
4
4
  export declare const KnowledgeBaseType: core.serialization.Schema<serializers.KnowledgeBaseType.Raw, MavenAGI.KnowledgeBaseType>;
5
5
  export declare namespace KnowledgeBaseType {
6
- type Raw = "API";
6
+ type Raw = "API" | "URL" | "MANUAL" | "RSS" | "LEGACY";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.KnowledgeBaseType = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- exports.KnowledgeBaseType = core.serialization.enum_(["API"]);
39
+ exports.KnowledgeBaseType = core.serialization.enum_(["API", "URL", "MANUAL", "RSS", "LEGACY"]);
@@ -11,6 +11,7 @@ export declare namespace KnowledgeDocumentRequest {
11
11
  knowledgeDocumentId: EntityIdBase.Raw;
12
12
  versionId?: EntityIdWithoutAgent.Raw | null;
13
13
  contentType: KnowledgeDocumentContentType.Raw;
14
+ title: string;
14
15
  content: string;
15
16
  metadata?: Record<string, string> | null;
16
17
  }
@@ -45,6 +45,7 @@ exports.KnowledgeDocumentRequest = core.serialization
45
45
  knowledgeDocumentId: EntityIdBase_1.EntityIdBase,
46
46
  versionId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
47
47
  contentType: KnowledgeDocumentContentType_1.KnowledgeDocumentContentType,
48
+ title: core.serialization.string(),
48
49
  content: core.serialization.string(),
49
50
  metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
50
51
  })
@@ -8,5 +8,6 @@ export declare namespace KnowledgeDocumentSearchResponse {
8
8
  interface Raw extends BaseKnowledgeDocument.Raw {
9
9
  knowledgeDocumentId: EntityId.Raw;
10
10
  knowledgeBaseVersionId?: EntityId.Raw | null;
11
+ title?: string | null;
11
12
  }
12
13
  }
@@ -42,5 +42,6 @@ exports.KnowledgeDocumentSearchResponse = core.serialization
42
42
  .object({
43
43
  knowledgeDocumentId: EntityId_1.EntityId,
44
44
  knowledgeBaseVersionId: EntityId_1.EntityId.optional(),
45
+ title: core.serialization.string().optional(),
45
46
  })
46
47
  .extend(BaseKnowledgeDocument_1.BaseKnowledgeDocument);
@@ -24,3 +24,4 @@ export * from "./KnowledgeDocumentSearchRequest";
24
24
  export * from "./KnowledgeDocumentSearchResponse";
25
25
  export * from "./KnowledgeDocumentsResponse";
26
26
  export * from "./KnowledgeBaseVersionsListResponse";
27
+ export * from "./KnowledgeBaseRefreshRequest";
@@ -40,3 +40,4 @@ __exportStar(require("./KnowledgeDocumentSearchRequest"), exports);
40
40
  __exportStar(require("./KnowledgeDocumentSearchResponse"), exports);
41
41
  __exportStar(require("./KnowledgeDocumentsResponse"), exports);
42
42
  __exportStar(require("./KnowledgeBaseVersionsListResponse"), exports);
43
+ __exportStar(require("./KnowledgeBaseRefreshRequest"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.4";
1
+ export declare const SDK_VERSION = "1.2.6";
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.4";
4
+ exports.SDK_VERSION = "1.2.6";
@@ -1,11 +0,0 @@
1
- import * as MavenAGI from "../../../index";
2
- export interface AgentPatchRequest {
3
- /** The name of the agent. */
4
- name?: string;
5
- /** The environment of the agent. */
6
- environment?: MavenAGI.AgentEnvironment;
7
- /** The agent's default timezone. This is used when a timezone is not set on a conversation. */
8
- defaultTimezone?: string;
9
- /** The PII categories that are enabled for the agent. */
10
- enabledPiiCategories?: Set<MavenAGI.PiiCategory>;
11
- }
@@ -1,11 +0,0 @@
1
- import * as MavenAGI from "../../../index";
2
- export interface AgentPatchRequest {
3
- /** The name of the agent. */
4
- name?: string;
5
- /** The environment of the agent. */
6
- environment?: MavenAGI.AgentEnvironment;
7
- /** The agent's default timezone. This is used when a timezone is not set on a conversation. */
8
- defaultTimezone?: string;
9
- /** The PII categories that are enabled for the agent. */
10
- enabledPiiCategories?: Set<MavenAGI.PiiCategory>;
11
- }
@@ -1,14 +0,0 @@
1
- import * as serializers from "../../../index";
2
- import * as MavenAGI from "../../../../api/index";
3
- import * as core from "../../../../core";
4
- import { AgentEnvironment } from "./AgentEnvironment";
5
- import { PiiCategory } from "./PiiCategory";
6
- export declare const AgentPatchRequest: core.serialization.ObjectSchema<serializers.AgentPatchRequest.Raw, MavenAGI.AgentPatchRequest>;
7
- export declare namespace AgentPatchRequest {
8
- interface Raw {
9
- name?: string | null;
10
- environment?: AgentEnvironment.Raw | null;
11
- defaultTimezone?: string | null;
12
- enabledPiiCategories?: PiiCategory.Raw[] | null;
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- import * as serializers from "../../../index";
2
- import * as MavenAGI from "../../../../api/index";
3
- import * as core from "../../../../core";
4
- import { AgentEnvironment } from "./AgentEnvironment";
5
- import { PiiCategory } from "./PiiCategory";
6
- export declare const AgentPatchRequest: core.serialization.ObjectSchema<serializers.AgentPatchRequest.Raw, MavenAGI.AgentPatchRequest>;
7
- export declare namespace AgentPatchRequest {
8
- interface Raw {
9
- name?: string | null;
10
- environment?: AgentEnvironment.Raw | null;
11
- defaultTimezone?: string | null;
12
- enabledPiiCategories?: PiiCategory.Raw[] | null;
13
- }
14
- }