mavenagi 1.2.4 → 1.2.5

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 (167) 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/agents/client/Client.d.ts +2 -2
  7. package/api/resources/agents/client/Client.js +5 -5
  8. package/api/resources/agents/client/index.d.ts +1 -0
  9. package/api/resources/agents/client/index.js +15 -0
  10. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
  11. package/api/resources/agents/client/requests/index.d.ts +1 -0
  12. package/api/resources/agents/client/requests/index.js +2 -0
  13. package/api/resources/agents/types/Agent.d.ts +8 -0
  14. package/api/resources/agents/types/AgentPrompting.d.ts +23 -0
  15. package/api/resources/agents/types/index.d.ts +1 -1
  16. package/api/resources/agents/types/index.js +1 -1
  17. package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
  18. package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
  19. package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
  20. package/api/resources/commons/types/ActionResponse.d.ts +7 -0
  21. package/api/resources/commons/types/SimulationContext.d.ts +6 -0
  22. package/api/resources/conversation/client/Client.d.ts +18 -1
  23. package/api/resources/conversation/client/Client.js +91 -1
  24. package/api/resources/events/client/Client.d.ts +10 -0
  25. package/api/resources/events/client/Client.js +83 -0
  26. package/api/resources/index.d.ts +1 -0
  27. package/api/resources/index.js +1 -0
  28. package/api/resources/knowledge/client/Client.d.ts +32 -1
  29. package/api/resources/knowledge/client/Client.js +104 -1
  30. package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
  31. package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  32. package/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
  33. package/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
  34. package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
  35. package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
  36. package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
  37. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
  38. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
  39. package/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
  40. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
  41. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  42. package/api/resources/knowledge/types/index.d.ts +1 -0
  43. package/api/resources/knowledge/types/index.js +1 -0
  44. package/dist/Client.js +2 -2
  45. package/dist/api/resources/actions/client/Client.d.ts +11 -1
  46. package/dist/api/resources/actions/client/Client.js +11 -1
  47. package/dist/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
  48. package/dist/api/resources/agents/client/Client.d.ts +2 -2
  49. package/dist/api/resources/agents/client/Client.js +5 -5
  50. package/dist/api/resources/agents/client/index.d.ts +1 -0
  51. package/dist/api/resources/agents/client/index.js +15 -0
  52. package/dist/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
  53. package/dist/api/resources/agents/client/requests/AgentPatchRequest.js +3 -0
  54. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  55. package/dist/api/resources/agents/client/requests/index.js +2 -0
  56. package/dist/api/resources/agents/types/Agent.d.ts +8 -0
  57. package/dist/api/resources/agents/types/AgentPrompting.d.ts +23 -0
  58. package/dist/api/resources/agents/types/AgentPrompting.js +3 -0
  59. package/dist/api/resources/agents/types/index.d.ts +1 -1
  60. package/dist/api/resources/agents/types/index.js +1 -1
  61. package/dist/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
  62. package/dist/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
  63. package/dist/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
  64. package/dist/api/resources/commons/types/ActionResponse.d.ts +7 -0
  65. package/dist/api/resources/commons/types/SimulationContext.d.ts +6 -0
  66. package/dist/api/resources/conversation/client/Client.d.ts +18 -1
  67. package/dist/api/resources/conversation/client/Client.js +91 -1
  68. package/dist/api/resources/events/client/Client.d.ts +10 -0
  69. package/dist/api/resources/events/client/Client.js +83 -0
  70. package/dist/api/resources/index.d.ts +1 -0
  71. package/dist/api/resources/index.js +1 -0
  72. package/dist/api/resources/knowledge/client/Client.d.ts +32 -1
  73. package/dist/api/resources/knowledge/client/Client.js +104 -1
  74. package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
  75. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  76. package/dist/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
  77. package/dist/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
  78. package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
  79. package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
  80. package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
  81. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
  82. package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
  83. package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
  84. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
  85. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  86. package/dist/api/resources/knowledge/types/index.d.ts +1 -0
  87. package/dist/api/resources/knowledge/types/index.js +1 -0
  88. package/dist/serialization/resources/agents/client/index.d.ts +1 -0
  89. package/dist/serialization/resources/agents/client/index.js +4 -0
  90. package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
  91. package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
  92. package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
  93. package/dist/serialization/resources/agents/client/requests/index.js +5 -0
  94. package/dist/serialization/resources/agents/types/Agent.d.ts +3 -0
  95. package/dist/serialization/resources/agents/types/Agent.js +3 -0
  96. package/dist/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
  97. package/dist/serialization/resources/agents/types/AgentPrompting.js +46 -0
  98. package/dist/serialization/resources/agents/types/index.d.ts +1 -1
  99. package/dist/serialization/resources/agents/types/index.js +1 -1
  100. package/dist/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
  101. package/dist/serialization/resources/commons/types/SimulationContext.js +1 -0
  102. package/dist/serialization/resources/index.d.ts +1 -0
  103. package/dist/serialization/resources/index.js +1 -0
  104. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
  105. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
  106. package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
  107. package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
  108. package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
  109. package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
  110. package/dist/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
  111. package/dist/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
  112. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
  113. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
  114. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  115. package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
  116. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
  117. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
  118. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
  119. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
  120. package/dist/serialization/resources/knowledge/types/index.d.ts +1 -0
  121. package/dist/serialization/resources/knowledge/types/index.js +1 -0
  122. package/dist/version.d.ts +1 -1
  123. package/dist/version.js +1 -1
  124. package/package.json +1 -1
  125. package/reference.md +237 -4
  126. package/serialization/resources/agents/client/index.d.ts +1 -0
  127. package/serialization/resources/agents/client/index.js +4 -0
  128. package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
  129. package/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
  130. package/serialization/resources/agents/client/requests/index.d.ts +1 -0
  131. package/serialization/resources/agents/client/requests/index.js +5 -0
  132. package/serialization/resources/agents/types/Agent.d.ts +3 -0
  133. package/serialization/resources/agents/types/Agent.js +3 -0
  134. package/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
  135. package/serialization/resources/agents/types/AgentPrompting.js +46 -0
  136. package/serialization/resources/agents/types/index.d.ts +1 -1
  137. package/serialization/resources/agents/types/index.js +1 -1
  138. package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
  139. package/serialization/resources/commons/types/SimulationContext.js +1 -0
  140. package/serialization/resources/index.d.ts +1 -0
  141. package/serialization/resources/index.js +1 -0
  142. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
  143. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
  144. package/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
  145. package/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
  146. package/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
  147. package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
  148. package/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
  149. package/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
  150. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
  151. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
  152. package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  153. package/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
  154. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
  155. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
  156. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
  157. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
  158. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  159. package/serialization/resources/knowledge/types/index.js +1 -0
  160. package/version.d.ts +1 -1
  161. package/version.js +1 -1
  162. package/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
  163. package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
  164. package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
  165. package/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
  166. /package/api/resources/agents/{types → client/requests}/AgentPatchRequest.js +0 -0
  167. /package/{dist/api/resources/agents/types/AgentPatchRequest.js → api/resources/agents/types/AgentPrompting.js} +0 -0
@@ -0,0 +1,46 @@
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.AgentPrompting = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const LlmPersona_1 = require("../../commons/types/LlmPersona");
40
+ exports.AgentPrompting = core.serialization.object({
41
+ persona: LlmPersona_1.LlmPersona,
42
+ additionalPromptText: core.serialization.string().optional(),
43
+ categoryGenerationPromptText: core.serialization.string().optional(),
44
+ contentSafetyViolationResponsePromptText: core.serialization.string().optional(),
45
+ rejectQuestionsWithoutKnowledge: core.serialization.boolean(),
46
+ });
@@ -2,8 +2,8 @@ export * from "./PiiCategory";
2
2
  export * from "./AgentEnvironment";
3
3
  export * from "./Agent";
4
4
  export * from "./CreateAgentRequest";
5
- export * from "./AgentPatchRequest";
6
5
  export * from "./AgentsSearchRequest";
7
6
  export * from "./AgentField";
8
7
  export * from "./AgentFilter";
9
8
  export * from "./AgentsSearchResponse";
9
+ export * from "./AgentPrompting";
@@ -18,8 +18,8 @@ __exportStar(require("./PiiCategory"), exports);
18
18
  __exportStar(require("./AgentEnvironment"), exports);
19
19
  __exportStar(require("./Agent"), exports);
20
20
  __exportStar(require("./CreateAgentRequest"), exports);
21
- __exportStar(require("./AgentPatchRequest"), exports);
22
21
  __exportStar(require("./AgentsSearchRequest"), exports);
23
22
  __exportStar(require("./AgentField"), exports);
24
23
  __exportStar(require("./AgentFilter"), exports);
25
24
  __exportStar(require("./AgentsSearchResponse"), exports);
25
+ __exportStar(require("./AgentPrompting"), exports);
@@ -6,6 +6,7 @@ import { EntityId } from "./EntityId";
6
6
  export declare const SimulationContext: core.serialization.ObjectSchema<serializers.SimulationContext.Raw, MavenAGI.SimulationContext>;
7
7
  export declare namespace SimulationContext {
8
8
  interface Raw {
9
+ additionalPromptText?: string | null;
9
10
  persona?: LlmPersona.Raw | null;
10
11
  availableKnowledgeBases?: EntityId.Raw[] | null;
11
12
  }
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core"));
39
39
  const LlmPersona_1 = require("./LlmPersona");
40
40
  const EntityId_1 = require("./EntityId");
41
41
  exports.SimulationContext = core.serialization.object({
42
+ additionalPromptText: core.serialization.string().optional(),
42
43
  persona: LlmPersona_1.LlmPersona.optional(),
43
44
  availableKnowledgeBases: core.serialization.list(EntityId_1.EntityId).optional(),
44
45
  });
@@ -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.5";
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.5";
@@ -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
- }