mavenagi 1.2.61 → 1.2.62

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 (164) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +6 -0
  3. package/Client.js +40 -30
  4. package/api/resources/actions/client/Client.d.ts +16 -0
  5. package/api/resources/actions/client/Client.js +16 -0
  6. package/api/resources/capabilities/client/Client.d.ts +118 -0
  7. package/api/resources/capabilities/client/Client.js +521 -0
  8. package/api/resources/capabilities/client/index.d.ts +1 -0
  9. package/api/resources/capabilities/client/index.js +17 -0
  10. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +36 -0
  11. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +3 -0
  12. package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.d.ts +18 -0
  13. package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.js +3 -0
  14. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +22 -0
  15. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.js +3 -0
  16. package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +24 -0
  17. package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +3 -0
  18. package/api/resources/capabilities/client/requests/index.d.ts +4 -0
  19. package/api/resources/capabilities/client/requests/index.js +2 -0
  20. package/api/resources/capabilities/exports.d.ts +2 -0
  21. package/api/resources/capabilities/exports.js +21 -0
  22. package/api/resources/capabilities/index.d.ts +2 -0
  23. package/api/resources/capabilities/index.js +18 -0
  24. package/api/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +43 -0
  25. package/api/resources/capabilities/types/CapabilitiesSearchResponse.js +3 -0
  26. package/api/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
  27. package/api/resources/capabilities/types/CapabilityResponse.js +3 -0
  28. package/api/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
  29. package/api/resources/capabilities/types/CapabilitySortField.js +10 -0
  30. package/api/resources/capabilities/types/CapabilitySummary.d.ts +28 -0
  31. package/api/resources/capabilities/types/CapabilitySummary.js +3 -0
  32. package/api/resources/capabilities/types/index.d.ts +4 -0
  33. package/api/resources/capabilities/types/index.js +20 -0
  34. package/api/resources/charters/types/CharterSearchFilter.d.ts +12 -9
  35. package/api/resources/commons/types/ActionResponse.d.ts +11 -2
  36. package/api/resources/commons/types/BaseConversationResponse.d.ts +6 -0
  37. package/api/resources/commons/types/CapabilityBase.d.ts +23 -0
  38. package/api/resources/commons/types/CapabilityBase.js +3 -0
  39. package/api/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +6 -3
  40. package/api/resources/{intelligentFields/types/IntelligentFieldStatus.js → commons/types/CapabilityStatus.js} +6 -3
  41. package/api/resources/commons/types/CapabilityType.d.ts +8 -0
  42. package/api/resources/commons/types/CapabilityType.js +11 -0
  43. package/api/resources/commons/types/EntityType.d.ts +5 -1
  44. package/api/resources/commons/types/EntityType.js +5 -1
  45. package/api/resources/commons/types/ErrorMessage.d.ts +3 -0
  46. package/api/resources/commons/types/ErrorReason.d.ts +31 -0
  47. package/api/resources/commons/types/ErrorReason.js +34 -0
  48. package/api/resources/commons/types/index.d.ts +4 -0
  49. package/api/resources/commons/types/index.js +4 -0
  50. package/api/resources/conversation/client/Client.d.ts +1 -0
  51. package/api/resources/conversation/client/Client.js +1 -0
  52. package/api/resources/conversationKickoffs/client/Client.d.ts +45 -0
  53. package/api/resources/conversationKickoffs/client/Client.js +175 -0
  54. package/api/resources/conversationKickoffs/client/index.d.ts +1 -0
  55. package/api/resources/conversationKickoffs/client/index.js +17 -0
  56. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +22 -0
  57. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +3 -0
  58. package/api/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
  59. package/api/resources/conversationKickoffs/client/requests/index.js +2 -0
  60. package/api/resources/conversationKickoffs/exports.d.ts +2 -0
  61. package/api/resources/conversationKickoffs/exports.js +21 -0
  62. package/api/resources/conversationKickoffs/index.d.ts +2 -0
  63. package/api/resources/conversationKickoffs/index.js +18 -0
  64. package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +27 -0
  65. package/api/resources/conversationKickoffs/types/ConversationKickoff.js +3 -0
  66. package/api/resources/conversationKickoffs/types/index.d.ts +1 -0
  67. package/api/resources/conversationKickoffs/types/index.js +17 -0
  68. package/api/resources/index.d.ts +6 -0
  69. package/api/resources/index.js +7 -1
  70. package/api/resources/intelligentFields/client/Client.d.ts +13 -1
  71. package/api/resources/intelligentFields/client/Client.js +13 -1
  72. package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +1 -1
  73. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +1 -1
  74. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +2 -2
  75. package/api/resources/intelligentFields/types/EnumOption.d.ts +5 -0
  76. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -4
  77. package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +1 -1
  78. package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +6 -1
  79. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -8
  80. package/api/resources/intelligentFields/types/index.d.ts +0 -1
  81. package/api/resources/intelligentFields/types/index.js +0 -1
  82. package/api/resources/knowledge/client/Client.d.ts +3 -0
  83. package/api/resources/knowledge/client/Client.js +3 -0
  84. package/api/resources/triggers/client/Client.d.ts +21 -0
  85. package/api/resources/triggers/client/Client.js +21 -0
  86. package/api/resources/triggers/types/EventTriggerBase.d.ts +0 -4
  87. package/api/resources/triggers/types/EventTriggerRequest.d.ts +4 -0
  88. package/api/resources/triggers/types/EventTriggerResponse.d.ts +11 -3
  89. package/package.json +1 -1
  90. package/reference.md +461 -1
  91. package/serialization/resources/capabilities/client/index.d.ts +1 -0
  92. package/serialization/resources/capabilities/client/index.js +17 -0
  93. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +21 -0
  94. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +55 -0
  95. package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +10 -0
  96. package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +42 -0
  97. package/serialization/resources/capabilities/client/requests/index.d.ts +2 -0
  98. package/serialization/resources/capabilities/client/requests/index.js +7 -0
  99. package/serialization/resources/capabilities/index.d.ts +2 -0
  100. package/serialization/resources/capabilities/index.js +18 -0
  101. package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +11 -0
  102. package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.js +45 -0
  103. package/serialization/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
  104. package/serialization/resources/capabilities/types/CapabilityResponse.js +53 -0
  105. package/serialization/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
  106. package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.js → capabilities/types/CapabilitySortField.js} +2 -2
  107. package/serialization/resources/capabilities/types/CapabilitySummary.d.ts +13 -0
  108. package/serialization/resources/capabilities/types/CapabilitySummary.js +47 -0
  109. package/serialization/resources/capabilities/types/index.d.ts +4 -0
  110. package/serialization/resources/capabilities/types/index.js +20 -0
  111. package/serialization/resources/charters/types/CharterSearchFilter.d.ts +1 -0
  112. package/serialization/resources/charters/types/CharterSearchFilter.js +1 -0
  113. package/serialization/resources/commons/types/ActionResponse.d.ts +3 -2
  114. package/serialization/resources/commons/types/ActionResponse.js +4 -2
  115. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +1 -0
  116. package/serialization/resources/commons/types/BaseConversationResponse.js +1 -0
  117. package/serialization/resources/commons/types/CapabilityBase.d.ts +14 -0
  118. package/serialization/resources/commons/types/CapabilityBase.js +46 -0
  119. package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +2 -2
  120. package/serialization/resources/commons/types/CapabilityStatus.js +39 -0
  121. package/serialization/resources/commons/types/CapabilityType.d.ts +7 -0
  122. package/serialization/resources/commons/types/CapabilityType.js +39 -0
  123. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  124. package/serialization/resources/commons/types/EntityType.js +1 -1
  125. package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
  126. package/serialization/resources/commons/types/ErrorMessage.js +2 -0
  127. package/serialization/resources/commons/types/ErrorReason.d.ts +7 -0
  128. package/serialization/resources/commons/types/ErrorReason.js +49 -0
  129. package/serialization/resources/commons/types/index.d.ts +4 -0
  130. package/serialization/resources/commons/types/index.js +4 -0
  131. package/serialization/resources/conversationKickoffs/client/index.d.ts +1 -0
  132. package/serialization/resources/conversationKickoffs/client/index.js +17 -0
  133. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +12 -0
  134. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +44 -0
  135. package/serialization/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
  136. package/serialization/resources/conversationKickoffs/client/requests/index.js +5 -0
  137. package/serialization/resources/conversationKickoffs/index.d.ts +2 -0
  138. package/serialization/resources/conversationKickoffs/index.js +18 -0
  139. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +11 -0
  140. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +45 -0
  141. package/serialization/resources/conversationKickoffs/types/index.d.ts +1 -0
  142. package/serialization/resources/conversationKickoffs/types/index.js +17 -0
  143. package/serialization/resources/index.d.ts +6 -0
  144. package/serialization/resources/index.js +7 -1
  145. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +2 -2
  146. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +2 -2
  147. package/serialization/resources/intelligentFields/types/EnumOption.d.ts +1 -0
  148. package/serialization/resources/intelligentFields/types/EnumOption.js +1 -0
  149. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -2
  150. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +0 -2
  151. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +2 -0
  152. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +2 -0
  153. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -5
  154. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -5
  155. package/serialization/resources/intelligentFields/types/index.d.ts +0 -1
  156. package/serialization/resources/intelligentFields/types/index.js +0 -1
  157. package/serialization/resources/triggers/types/EventTriggerBase.d.ts +0 -2
  158. package/serialization/resources/triggers/types/EventTriggerBase.js +0 -2
  159. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
  160. package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
  161. package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +2 -1
  162. package/serialization/resources/triggers/types/EventTriggerResponse.js +3 -1
  163. package/version.d.ts +1 -1
  164. package/version.js +1 -1
@@ -0,0 +1,2 @@
1
+ export { CapabilitiesSearchRequest } from "./CapabilitiesSearchRequest";
2
+ export { PatchCapabilityByTypeRequest } from "./PatchCapabilityByTypeRequest";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PatchCapabilityByTypeRequest = exports.CapabilitiesSearchRequest = void 0;
4
+ var CapabilitiesSearchRequest_1 = require("./CapabilitiesSearchRequest");
5
+ Object.defineProperty(exports, "CapabilitiesSearchRequest", { enumerable: true, get: function () { return CapabilitiesSearchRequest_1.CapabilitiesSearchRequest; } });
6
+ var PatchCapabilityByTypeRequest_1 = require("./PatchCapabilityByTypeRequest");
7
+ Object.defineProperty(exports, "PatchCapabilityByTypeRequest", { enumerable: true, get: function () { return PatchCapabilityByTypeRequest_1.PatchCapabilityByTypeRequest; } });
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * from "./types";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,11 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { Page } from "../../commons/types/Page";
5
+ import { CapabilitySummary } from "./CapabilitySummary";
6
+ export declare const CapabilitiesSearchResponse: core.serialization.ObjectSchema<serializers.CapabilitiesSearchResponse.Raw, MavenAGI.CapabilitiesSearchResponse>;
7
+ export declare namespace CapabilitiesSearchResponse {
8
+ interface Raw extends Page.Raw {
9
+ capabilities: CapabilitySummary.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.CapabilitiesSearchResponse = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const Page_1 = require("../../commons/types/Page");
40
+ const CapabilitySummary_1 = require("./CapabilitySummary");
41
+ exports.CapabilitiesSearchResponse = core.serialization
42
+ .object({
43
+ capabilities: core.serialization.list(CapabilitySummary_1.CapabilitySummary),
44
+ })
45
+ .extend(Page_1.Page);
@@ -0,0 +1,23 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { ActionResponse } from "../../commons/types/ActionResponse";
5
+ import { ConversationKickoff } from "../../conversationKickoffs/types/ConversationKickoff";
6
+ import { IntelligentFieldResponse } from "../../intelligentFields/types/IntelligentFieldResponse";
7
+ import { EventTriggerResponse } from "../../triggers/types/EventTriggerResponse";
8
+ export declare const CapabilityResponse: core.serialization.Schema<serializers.CapabilityResponse.Raw, MavenAGI.CapabilityResponse>;
9
+ export declare namespace CapabilityResponse {
10
+ type Raw = CapabilityResponse.Action | CapabilityResponse.Trigger | CapabilityResponse.IntelligentField | CapabilityResponse.ConversationKickoff;
11
+ interface Action extends ActionResponse.Raw {
12
+ capabilityType: "ACTION";
13
+ }
14
+ interface Trigger extends EventTriggerResponse.Raw {
15
+ capabilityType: "TRIGGER";
16
+ }
17
+ interface IntelligentField extends IntelligentFieldResponse.Raw {
18
+ capabilityType: "INTELLIGENT_FIELD";
19
+ }
20
+ interface ConversationKickoff extends ConversationKickoff.Raw {
21
+ capabilityType: "CONVERSATION_KICKOFF";
22
+ }
23
+ }
@@ -0,0 +1,53 @@
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.CapabilityResponse = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ActionResponse_1 = require("../../commons/types/ActionResponse");
40
+ const ConversationKickoff_1 = require("../../conversationKickoffs/types/ConversationKickoff");
41
+ const IntelligentFieldResponse_1 = require("../../intelligentFields/types/IntelligentFieldResponse");
42
+ const EventTriggerResponse_1 = require("../../triggers/types/EventTriggerResponse");
43
+ exports.CapabilityResponse = core.serialization
44
+ .union("capabilityType", {
45
+ ACTION: ActionResponse_1.ActionResponse,
46
+ TRIGGER: EventTriggerResponse_1.EventTriggerResponse,
47
+ INTELLIGENT_FIELD: IntelligentFieldResponse_1.IntelligentFieldResponse,
48
+ CONVERSATION_KICKOFF: ConversationKickoff_1.ConversationKickoff,
49
+ })
50
+ .transform({
51
+ transform: (value) => value,
52
+ untransform: (value) => value,
53
+ });
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const CapabilitySortField: core.serialization.Schema<serializers.CapabilitySortField.Raw, MavenAGI.CapabilitySortField>;
5
+ export declare namespace CapabilitySortField {
6
+ type Raw = "CreatedAt" | "Name" | "Type";
7
+ }
@@ -34,6 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.IntelligentFieldStatus = void 0;
37
+ exports.CapabilitySortField = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- exports.IntelligentFieldStatus = core.serialization.forwardCompatibleEnum_(["ACTIVE", "INACTIVE", "DELETED"]);
39
+ exports.CapabilitySortField = core.serialization.forwardCompatibleEnum_(["CreatedAt", "Name", "Type"]);
@@ -0,0 +1,13 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { CapabilityBase } from "../../commons/types/CapabilityBase";
5
+ import { CapabilityType } from "../../commons/types/CapabilityType";
6
+ import { EntityId } from "../../commons/types/EntityId";
7
+ export declare const CapabilitySummary: core.serialization.ObjectSchema<serializers.CapabilitySummary.Raw, MavenAGI.CapabilitySummary>;
8
+ export declare namespace CapabilitySummary {
9
+ interface Raw extends CapabilityBase.Raw {
10
+ capabilityId: EntityId.Raw;
11
+ capabilityType: CapabilityType.Raw;
12
+ }
13
+ }
@@ -0,0 +1,47 @@
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.CapabilitySummary = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const CapabilityBase_1 = require("../../commons/types/CapabilityBase");
40
+ const CapabilityType_1 = require("../../commons/types/CapabilityType");
41
+ const EntityId_1 = require("../../commons/types/EntityId");
42
+ exports.CapabilitySummary = core.serialization
43
+ .object({
44
+ capabilityId: EntityId_1.EntityId,
45
+ capabilityType: CapabilityType_1.CapabilityType,
46
+ })
47
+ .extend(CapabilityBase_1.CapabilityBase);
@@ -0,0 +1,4 @@
1
+ export * from "./CapabilitiesSearchResponse";
2
+ export * from "./CapabilityResponse";
3
+ export * from "./CapabilitySortField";
4
+ export * from "./CapabilitySummary";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CapabilitiesSearchResponse"), exports);
18
+ __exportStar(require("./CapabilityResponse"), exports);
19
+ __exportStar(require("./CapabilitySortField"), exports);
20
+ __exportStar(require("./CapabilitySummary"), exports);
@@ -7,5 +7,6 @@ export declare namespace CharterSearchFilter {
7
7
  interface Raw {
8
8
  actionIds?: EntityId.Raw[] | null;
9
9
  knowledgeBaseIds?: EntityId.Raw[] | null;
10
+ intelligentFieldIds?: EntityId.Raw[] | null;
10
11
  }
11
12
  }
@@ -40,4 +40,5 @@ const EntityId_1 = require("../../commons/types/EntityId");
40
40
  exports.CharterSearchFilter = core.serialization.object({
41
41
  actionIds: core.serialization.list(EntityId_1.EntityId).optional(),
42
42
  knowledgeBaseIds: core.serialization.list(EntityId_1.EntityId).optional(),
43
+ intelligentFieldIds: core.serialization.list(EntityId_1.EntityId).optional(),
43
44
  });
@@ -1,12 +1,13 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
- import { ActionBase } from "./ActionBase";
4
+ import { ActionProperties } from "./ActionProperties";
5
+ import { CapabilityBase } from "./CapabilityBase";
5
6
  import { EntityId } from "./EntityId";
6
7
  import { LlmInclusionStatus } from "./LlmInclusionStatus";
7
8
  export declare const ActionResponse: core.serialization.ObjectSchema<serializers.ActionResponse.Raw, MavenAGI.ActionResponse>;
8
9
  export declare namespace ActionResponse {
9
- interface Raw extends ActionBase.Raw {
10
+ interface Raw extends ActionProperties.Raw, CapabilityBase.Raw {
10
11
  actionId: EntityId.Raw;
11
12
  instructions?: string | null;
12
13
  llmInclusionStatus: LlmInclusionStatus.Raw;
@@ -36,7 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ActionResponse = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- const ActionBase_1 = require("./ActionBase");
39
+ const ActionProperties_1 = require("./ActionProperties");
40
+ const CapabilityBase_1 = require("./CapabilityBase");
40
41
  const EntityId_1 = require("./EntityId");
41
42
  const LlmInclusionStatus_1 = require("./LlmInclusionStatus");
42
43
  exports.ActionResponse = core.serialization
@@ -48,4 +49,5 @@ exports.ActionResponse = core.serialization
48
49
  preconditionExplanation: core.serialization.string().optional(),
49
50
  deleted: core.serialization.boolean(),
50
51
  })
51
- .extend(ActionBase_1.ActionBase);
52
+ .extend(ActionProperties_1.ActionProperties)
53
+ .extend(CapabilityBase_1.CapabilityBase);
@@ -28,5 +28,6 @@ export declare namespace BaseConversationResponse {
28
28
  simulationContext?: SimulationContext.Raw | null;
29
29
  relatedEntities?: Record<RelationshipType.Raw, EntityId.Raw[] | null | undefined> | null;
30
30
  conversationMode?: ConversationMode.Raw | null;
31
+ variantId?: EntityId.Raw | null;
31
32
  }
32
33
  }
@@ -63,4 +63,5 @@ exports.BaseConversationResponse = core.serialization.object({
63
63
  .partialRecord(RelationshipType_1.RelationshipType, core.serialization.list(EntityId_1.EntityId).optional())
64
64
  .optional(),
65
65
  conversationMode: ConversationMode_1.ConversationMode.optional(),
66
+ variantId: EntityId_1.EntityId.optional(),
66
67
  });
@@ -0,0 +1,14 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { CapabilityStatus } from "./CapabilityStatus";
5
+ export declare const CapabilityBase: core.serialization.ObjectSchema<serializers.CapabilityBase.Raw, MavenAGI.CapabilityBase>;
6
+ export declare namespace CapabilityBase {
7
+ interface Raw {
8
+ name: string;
9
+ description?: string | null;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ status: CapabilityStatus.Raw;
13
+ }
14
+ }
@@ -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.CapabilityBase = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const CapabilityStatus_1 = require("./CapabilityStatus");
40
+ exports.CapabilityBase = core.serialization.object({
41
+ name: core.serialization.string(),
42
+ description: core.serialization.string().optional(),
43
+ createdAt: core.serialization.date(),
44
+ updatedAt: core.serialization.date(),
45
+ status: CapabilityStatus_1.CapabilityStatus,
46
+ });
@@ -1,7 +1,7 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
- export declare const IntelligentFieldStatus: core.serialization.Schema<serializers.IntelligentFieldStatus.Raw, MavenAGI.IntelligentFieldStatus>;
5
- export declare namespace IntelligentFieldStatus {
4
+ export declare const CapabilityStatus: core.serialization.Schema<serializers.CapabilityStatus.Raw, MavenAGI.CapabilityStatus>;
5
+ export declare namespace CapabilityStatus {
6
6
  type Raw = "ACTIVE" | "INACTIVE" | "DELETED";
7
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.CapabilityStatus = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.CapabilityStatus = core.serialization.forwardCompatibleEnum_(["ACTIVE", "INACTIVE", "DELETED"]);
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const CapabilityType: core.serialization.Schema<serializers.CapabilityType.Raw, MavenAGI.CapabilityType>;
5
+ export declare namespace CapabilityType {
6
+ type Raw = "ACTION" | "TRIGGER" | "INTELLIGENT_FIELD" | "CONVERSATION_KICKOFF";
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.CapabilityType = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.CapabilityType = core.serialization.forwardCompatibleEnum_(["ACTION", "TRIGGER", "INTELLIGENT_FIELD", "CONVERSATION_KICKOFF"]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const EntityType: core.serialization.Schema<serializers.EntityType.Raw, MavenAGI.EntityType>;
5
5
  export declare namespace EntityType {
6
- type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER" | "INTELLIGENT_FIELD" | "CHARTER" | "CONVERSATION_KICKOFF" | "AGENT_VARIANT" | "CONFIG_SNAPSHOT" | "ASSET" | "TRAFFIC_CONFIG";
6
+ type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "AGENT_USER" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER" | "INTELLIGENT_FIELD" | "CHARTER" | "CONVERSATION_KICKOFF" | "AGENT_VARIANT" | "ASSET" | "TRAFFIC_CONFIG";
7
7
  }
@@ -48,6 +48,7 @@ exports.EntityType = core.serialization.forwardCompatibleEnum_([
48
48
  "EVENT",
49
49
  "EVENT_TRIGGER",
50
50
  "USER_PROFILE",
51
+ "AGENT_USER",
51
52
  "FEEDBACK",
52
53
  "INBOX_ITEM",
53
54
  "INBOX_ITEM_FIX",
@@ -57,7 +58,6 @@ exports.EntityType = core.serialization.forwardCompatibleEnum_([
57
58
  "CHARTER",
58
59
  "CONVERSATION_KICKOFF",
59
60
  "AGENT_VARIANT",
60
- "CONFIG_SNAPSHOT",
61
61
  "ASSET",
62
62
  "TRAFFIC_CONFIG",
63
63
  ]);
@@ -1,11 +1,13 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
+ import { ErrorReason } from "./ErrorReason";
4
5
  export declare const ErrorMessage: core.serialization.ObjectSchema<serializers.ErrorMessage.Raw, MavenAGI.ErrorMessage>;
5
6
  export declare namespace ErrorMessage {
6
7
  interface Raw {
7
8
  status?: number | null;
8
9
  error?: string | null;
9
10
  message?: string | null;
11
+ reason?: ErrorReason.Raw | null;
10
12
  }
11
13
  }
@@ -36,8 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ErrorMessage = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
+ const ErrorReason_1 = require("./ErrorReason");
39
40
  exports.ErrorMessage = core.serialization.object({
40
41
  status: core.serialization.number().optional(),
41
42
  error: core.serialization.string().optional(),
42
43
  message: core.serialization.string().optional(),
44
+ reason: ErrorReason_1.ErrorReason.optional(),
43
45
  });
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const ErrorReason: core.serialization.Schema<serializers.ErrorReason.Raw, MavenAGI.ErrorReason>;
5
+ export declare namespace ErrorReason {
6
+ type Raw = "VARIANT_LIVE" | "VARIANT_NOT_ACTIVE" | "STALE_TRAFFIC_REVISION" | "STALE_WORKING_SET" | "NOTHING_TO_COMMIT" | "VARIANT_ALREADY_EXISTS" | "CANNOT_ARCHIVE_LIVE_VARIANT" | "VARIANT_HAS_STAGED_EDITS" | "VARIANT_REQUIRED";
7
+ }
@@ -0,0 +1,49 @@
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.ErrorReason = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.ErrorReason = core.serialization.forwardCompatibleEnum_([
40
+ "VARIANT_LIVE",
41
+ "VARIANT_NOT_ACTIVE",
42
+ "STALE_TRAFFIC_REVISION",
43
+ "STALE_WORKING_SET",
44
+ "NOTHING_TO_COMMIT",
45
+ "VARIANT_ALREADY_EXISTS",
46
+ "CANNOT_ARCHIVE_LIVE_VARIANT",
47
+ "VARIANT_HAS_STAGED_EDITS",
48
+ "VARIANT_REQUIRED",
49
+ ]);