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,24 @@
1
+ import type * as MavenAGI from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface PatchCapabilityByTypeRequest {
7
+ /** The app that owns the capability. Defaults to the calling app. */
8
+ appId?: string;
9
+ /**
10
+ * The agent variant to stage an intelligent field's status change in, by reference ID.
11
+ * Required for an intelligent field on an agent with versioned intelligent fields; a
12
+ * request that omits it there is rejected with reason `VARIANT_REQUIRED`.
13
+ * The other capability types aren't versioned and are the same in every variant,
14
+ * though a named variant must still exist.
15
+ */
16
+ variantReferenceId?: string;
17
+ /** The app that owns the agent variant. Defaults to the calling app. */
18
+ variantAppId?: string;
19
+ /**
20
+ * Whether the agent uses this capability. Use ACTIVE to start and INACTIVE to stop;
21
+ * deleting is done through the delete endpoint, so DELETED is rejected here.
22
+ */
23
+ status?: MavenAGI.CapabilityStatus;
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export type { CapabilitiesSearchRequest } from "./CapabilitiesSearchRequest";
2
+ export type { DeleteCapabilityByTypeRequest } from "./DeleteCapabilityByTypeRequest";
3
+ export type { GetCapabilityByTypeRequest } from "./GetCapabilityByTypeRequest";
4
+ export type { PatchCapabilityByTypeRequest } from "./PatchCapabilityByTypeRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { CapabilitiesClient } from "./client/Client";
2
+ export * from "./client/index";
@@ -0,0 +1,21 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CapabilitiesClient = void 0;
19
+ var Client_1 = require("./client/Client");
20
+ Object.defineProperty(exports, "CapabilitiesClient", { enumerable: true, get: function () { return Client_1.CapabilitiesClient; } });
21
+ __exportStar(require("./client/index"), exports);
@@ -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,43 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * number: 0,
6
+ * size: 2,
7
+ * totalElements: 2,
8
+ * totalPages: 1,
9
+ * capabilities: [{
10
+ * capabilityId: {
11
+ * referenceId: "ticket-priority",
12
+ * appId: "my-billing-system",
13
+ * organizationId: "acme",
14
+ * agentId: "support",
15
+ * type: MavenAGI.EntityType.IntelligentField
16
+ * },
17
+ * capabilityType: MavenAGI.CapabilityType.IntelligentField,
18
+ * name: "Ticket priority",
19
+ * description: "How urgent the conversation is",
20
+ * status: MavenAGI.CapabilityStatus.Inactive,
21
+ * createdAt: new Date("2026-01-16T08:00:00.000Z"),
22
+ * updatedAt: new Date("2026-01-16T08:00:00.000Z")
23
+ * }, {
24
+ * capabilityId: {
25
+ * referenceId: "get-balance",
26
+ * appId: "my-billing-system",
27
+ * organizationId: "acme",
28
+ * agentId: "support",
29
+ * type: MavenAGI.EntityType.Action
30
+ * },
31
+ * capabilityType: MavenAGI.CapabilityType.Action,
32
+ * name: "Check balance",
33
+ * description: "Looks up the customer's current account balance",
34
+ * status: MavenAGI.CapabilityStatus.Active,
35
+ * createdAt: new Date("2026-01-15T10:30:00.000Z"),
36
+ * updatedAt: new Date("2026-01-15T10:30:00.000Z")
37
+ * }]
38
+ * }
39
+ */
40
+ export interface CapabilitiesSearchResponse extends MavenAGI.Page {
41
+ /** The capabilities on this page, in the order the request asked for. */
42
+ capabilities: MavenAGI.CapabilitySummary[];
43
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * One of an agent's capabilities, of whichever kind. Each variant is the very type that
4
+ * capability's own API returns, so nothing is redefined here.
5
+ *
6
+ * The discriminant is `capabilityType` rather than `type` because an event trigger already has
7
+ * a `type` of its own. Naming it apart is what lets each variant keep its own fields unchanged.
8
+ */
9
+ export type CapabilityResponse = MavenAGI.CapabilityResponse.Action | MavenAGI.CapabilityResponse.Trigger | MavenAGI.CapabilityResponse.IntelligentField | MavenAGI.CapabilityResponse.ConversationKickoff;
10
+ export declare namespace CapabilityResponse {
11
+ interface Action extends MavenAGI.ActionResponse {
12
+ capabilityType: "ACTION";
13
+ }
14
+ interface Trigger extends MavenAGI.EventTriggerResponse {
15
+ capabilityType: "TRIGGER";
16
+ }
17
+ interface IntelligentField extends MavenAGI.IntelligentFieldResponse {
18
+ capabilityType: "INTELLIGENT_FIELD";
19
+ }
20
+ interface ConversationKickoff extends MavenAGI.ConversationKickoff {
21
+ capabilityType: "CONVERSATION_KICKOFF";
22
+ }
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /** The fields a capability search can be ordered by. */
2
+ export declare const CapabilitySortField: {
3
+ readonly CreatedAt: "CreatedAt";
4
+ readonly Name: "Name";
5
+ readonly Type: "Type";
6
+ };
7
+ export type CapabilitySortField = (typeof CapabilitySortField)[keyof typeof CapabilitySortField] | string;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CapabilitySortField = void 0;
5
+ /** The fields a capability search can be ordered by. */
6
+ exports.CapabilitySortField = {
7
+ CreatedAt: "CreatedAt",
8
+ Name: "Name",
9
+ Type: "Type",
10
+ };
@@ -0,0 +1,28 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * What every capability has in common, whatever kind it is, plus which kind it is and how to
4
+ * address it.
5
+ *
6
+ * @example
7
+ * {
8
+ * capabilityId: {
9
+ * referenceId: "get-balance",
10
+ * appId: "my-billing-system",
11
+ * organizationId: "acme",
12
+ * agentId: "support",
13
+ * type: MavenAGI.EntityType.Action
14
+ * },
15
+ * capabilityType: MavenAGI.CapabilityType.Action,
16
+ * name: "Check balance",
17
+ * description: "Looks up the customer's current account balance",
18
+ * status: MavenAGI.CapabilityStatus.Active,
19
+ * createdAt: new Date("2026-01-15T10:30:00.000Z"),
20
+ * updatedAt: new Date("2026-01-15T10:30:00.000Z")
21
+ * }
22
+ */
23
+ export interface CapabilitySummary extends MavenAGI.CapabilityBase {
24
+ /** ID that uniquely identifies this capability. */
25
+ capabilityId: MavenAGI.EntityId;
26
+ /** Which kind of capability this is, and the path segment that addresses it. */
27
+ capabilityType: MavenAGI.CapabilityType;
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
@@ -1,15 +1,18 @@
1
1
  import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Filters combine with AND: a charter must match every filter given. Within one filter, a
4
+ * charter matches if it references any of the listed IDs. An empty list is the same as
5
+ * omitting the filter.
6
+ */
2
7
  export interface CharterSearchFilter {
3
- /**
4
- * Filter to charters that reference any of the specified actions (OR within this field).
5
- * When combined with knowledgeBaseIds, both filters must match (AND across fields).
6
- * An empty list is equivalent to omitting the field. Maximum 50 IDs.
7
- */
8
+ /** Only return charters referencing these actions. At most 50. */
8
9
  actionIds?: MavenAGI.EntityId[];
10
+ /** Only return charters referencing these knowledge bases. At most 50. */
11
+ knowledgeBaseIds?: MavenAGI.EntityId[];
9
12
  /**
10
- * Filter to charters that reference any of the specified knowledge bases (OR within this field).
11
- * When combined with actionIds, both filters must match (AND across fields).
12
- * An empty list is equivalent to omitting the field. Maximum 50 IDs.
13
+ * Only return charters whose precondition references these intelligent fields. At most 50.
14
+ * A charter reaches an intelligent field through its precondition, not by referencing it
15
+ * directly the way it does an action or a knowledge base.
13
16
  */
14
- knowledgeBaseIds?: MavenAGI.EntityId[];
17
+ intelligentFieldIds?: MavenAGI.EntityId[];
15
18
  }
@@ -2,6 +2,9 @@ import type * as MavenAGI from "../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
+ * createdAt: new Date("2026-01-15T10:30:00.000Z"),
6
+ * updatedAt: new Date("2026-01-15T10:30:00.000Z"),
7
+ * status: MavenAGI.CapabilityStatus.Active,
5
8
  * actionId: {
6
9
  * referenceId: "get-balance",
7
10
  * appId: "my-billing-system",
@@ -37,7 +40,7 @@ import type * as MavenAGI from "../../../index";
37
40
  * deleted: false
38
41
  * }
39
42
  */
40
- export interface ActionResponse extends MavenAGI.ActionBase {
43
+ export interface ActionResponse extends MavenAGI.ActionProperties, MavenAGI.CapabilityBase {
41
44
  /** ID that uniquely identifies this action */
42
45
  actionId: MavenAGI.EntityId;
43
46
  /**
@@ -46,6 +49,8 @@ export interface ActionResponse extends MavenAGI.ActionBase {
46
49
  */
47
50
  instructions?: string;
48
51
  /**
52
+ * Deprecated. Superseded by `status`, which says the same thing for every capability type.
53
+ *
49
54
  * Determines whether the action is sent to the LLM as part of a conversation.
50
55
  *
51
56
  * - `ALWAYS`: The action is always available for use in conversations, textual relevance is not considered.
@@ -61,6 +66,10 @@ export interface ActionResponse extends MavenAGI.ActionBase {
61
66
  segmentId?: MavenAGI.EntityId;
62
67
  /** No longer populated. This field is always absent and will be removed in a future release. */
63
68
  preconditionExplanation?: string;
64
- /** Whether the action has been deleted. Deleted actions will not sent to the LLM nor returned in search results. */
69
+ /**
70
+ * Deprecated. Superseded by `status`, where a deleted action is `DELETED`.
71
+ *
72
+ * Whether the action has been deleted. Deleted actions will not sent to the LLM nor returned in search results.
73
+ */
65
74
  deleted: boolean;
66
75
  }
@@ -52,4 +52,10 @@ export interface BaseConversationResponse {
52
52
  * it cannot be supplied when creating or updating a conversation.
53
53
  */
54
54
  conversationMode?: MavenAGI.ConversationMode;
55
+ /**
56
+ * The agent variant this conversation is pinned to. Chosen by the agent's traffic rules when
57
+ * the conversation is created and fixed for its lifetime. Absent when the conversation was
58
+ * not routed to a variant, for example one created before the agent had variants.
59
+ */
60
+ variantId?: MavenAGI.EntityId;
55
61
  }
@@ -0,0 +1,23 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * The fields every capability has, whatever kind it is: Actions, Event Triggers, Intelligent
4
+ * Fields and Conversation Kickoffs all carry these.
5
+ */
6
+ export interface CapabilityBase {
7
+ /**
8
+ * The capability's display name, shown to whoever manages the agent. A trigger registered
9
+ * without one is named after the app that registered it and the event it fires on.
10
+ */
11
+ name: string;
12
+ /**
13
+ * What the capability does. Shown to whoever manages the agent, and for the types the LLM
14
+ * can choose between, used to decide when the capability applies.
15
+ */
16
+ description?: string;
17
+ /** When the capability was created. */
18
+ createdAt: Date;
19
+ /** When the capability was last modified. */
20
+ updatedAt: Date;
21
+ /** Whether the agent uses this capability, and whether it still exists. */
22
+ status: MavenAGI.CapabilityStatus;
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,8 @@
1
- /** Lifecycle state for whether this field is evaluated */
2
- export declare const IntelligentFieldStatus: {
1
+ /**
2
+ * Whether an agent uses a capability, and whether it still exists. Applies to every capability
3
+ * type.
4
+ */
5
+ export declare const CapabilityStatus: {
3
6
  /**
4
7
  * The field is evaluated, and values are computed for matching entities. */
5
8
  readonly Active: "ACTIVE";
@@ -11,4 +14,4 @@ export declare const IntelligentFieldStatus: {
11
14
  * rather than by a patch. */
12
15
  readonly Deleted: "DELETED";
13
16
  };
14
- export type IntelligentFieldStatus = (typeof IntelligentFieldStatus)[keyof typeof IntelligentFieldStatus] | string;
17
+ export type CapabilityStatus = (typeof CapabilityStatus)[keyof typeof CapabilityStatus] | string;
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.IntelligentFieldStatus = void 0;
5
- /** Lifecycle state for whether this field is evaluated */
6
- exports.IntelligentFieldStatus = {
4
+ exports.CapabilityStatus = void 0;
5
+ /**
6
+ * Whether an agent uses a capability, and whether it still exists. Applies to every capability
7
+ * type.
8
+ */
9
+ exports.CapabilityStatus = {
7
10
  /**
8
11
  * The field is evaluated, and values are computed for matching entities. */
9
12
  Active: "ACTIVE",
@@ -0,0 +1,8 @@
1
+ /** Which kind of capability an entity is, and the path segment that addresses it. */
2
+ export declare const CapabilityType: {
3
+ readonly Action: "ACTION";
4
+ readonly Trigger: "TRIGGER";
5
+ readonly IntelligentField: "INTELLIGENT_FIELD";
6
+ readonly ConversationKickoff: "CONVERSATION_KICKOFF";
7
+ };
8
+ export type CapabilityType = (typeof CapabilityType)[keyof typeof CapabilityType] | string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CapabilityType = void 0;
5
+ /** Which kind of capability an entity is, and the path segment that addresses it. */
6
+ exports.CapabilityType = {
7
+ Action: "ACTION",
8
+ Trigger: "TRIGGER",
9
+ IntelligentField: "INTELLIGENT_FIELD",
10
+ ConversationKickoff: "CONVERSATION_KICKOFF",
11
+ };
@@ -9,7 +9,12 @@ export declare const EntityType: {
9
9
  readonly User: "USER";
10
10
  readonly Event: "EVENT";
11
11
  readonly EventTrigger: "EVENT_TRIGGER";
12
+ /**
13
+ * Deprecated. Use `USER` instead. */
12
14
  readonly UserProfile: "USER_PROFILE";
15
+ /**
16
+ * A user merged across apps. `referenceId` is the agent user id (`AgentUser.id`). */
17
+ readonly AgentUser: "AGENT_USER";
13
18
  readonly Feedback: "FEEDBACK";
14
19
  readonly InboxItem: "INBOX_ITEM";
15
20
  readonly InboxItemFix: "INBOX_ITEM_FIX";
@@ -19,7 +24,6 @@ export declare const EntityType: {
19
24
  readonly Charter: "CHARTER";
20
25
  readonly ConversationKickoff: "CONVERSATION_KICKOFF";
21
26
  readonly AgentVariant: "AGENT_VARIANT";
22
- readonly ConfigSnapshot: "CONFIG_SNAPSHOT";
23
27
  readonly Asset: "ASSET";
24
28
  readonly TrafficConfig: "TRAFFIC_CONFIG";
25
29
  };
@@ -13,7 +13,12 @@ exports.EntityType = {
13
13
  User: "USER",
14
14
  Event: "EVENT",
15
15
  EventTrigger: "EVENT_TRIGGER",
16
+ /**
17
+ * Deprecated. Use `USER` instead. */
16
18
  UserProfile: "USER_PROFILE",
19
+ /**
20
+ * A user merged across apps. `referenceId` is the agent user id (`AgentUser.id`). */
21
+ AgentUser: "AGENT_USER",
17
22
  Feedback: "FEEDBACK",
18
23
  InboxItem: "INBOX_ITEM",
19
24
  InboxItemFix: "INBOX_ITEM_FIX",
@@ -23,7 +28,6 @@ exports.EntityType = {
23
28
  Charter: "CHARTER",
24
29
  ConversationKickoff: "CONVERSATION_KICKOFF",
25
30
  AgentVariant: "AGENT_VARIANT",
26
- ConfigSnapshot: "CONFIG_SNAPSHOT",
27
31
  Asset: "ASSET",
28
32
  TrafficConfig: "TRAFFIC_CONFIG",
29
33
  };
@@ -1,3 +1,4 @@
1
+ import type * as MavenAGI from "../../../index";
1
2
  export interface ErrorMessage {
2
3
  /** HTTP status code returned by the API. */
3
4
  status?: number;
@@ -5,4 +6,6 @@ export interface ErrorMessage {
5
6
  error?: string;
6
7
  /** Human-readable error details. */
7
8
  message?: string;
9
+ /** Machine-readable reason for the failure, when the API defines one. Match on this rather than on `message`, whose wording may change. */
10
+ reason?: MavenAGI.ErrorReason;
8
11
  }
@@ -0,0 +1,31 @@
1
+ /** Why a request was rejected. Values are UPPER_SNAKE_CASE, at most 63 characters. New values may be added, so treat an unrecognized one as a generic error. All current values come from agent-variant operations. */
2
+ export declare const ErrorReason: {
3
+ /**
4
+ * The variant is receiving live traffic, so it can't be edited. Fork a working variant and edit that instead. */
5
+ readonly VariantLive: "VARIANT_LIVE";
6
+ /**
7
+ * The variant is archived or deleted. */
8
+ readonly VariantNotActive: "VARIANT_NOT_ACTIVE";
9
+ /**
10
+ * The traffic config changed since it was last read. Re-read it and retry. */
11
+ readonly StaleTrafficRevision: "STALE_TRAFFIC_REVISION";
12
+ /**
13
+ * The variant's working set changed since it was last read (its `workingSetRevision` moved). Re-read it and retry. */
14
+ readonly StaleWorkingSet: "STALE_WORKING_SET";
15
+ /**
16
+ * The variant's staged edits don't change its configuration, so there is nothing to commit. */
17
+ readonly NothingToCommit: "NOTHING_TO_COMMIT";
18
+ /**
19
+ * The ID requested for a new variant is already taken. */
20
+ readonly VariantAlreadyExists: "VARIANT_ALREADY_EXISTS";
21
+ /**
22
+ * The variant is receiving live traffic, so it can't be archived or deleted. Move its traffic elsewhere first. */
23
+ readonly CannotArchiveLiveVariant: "CANNOT_ARCHIVE_LIVE_VARIANT";
24
+ /**
25
+ * A traffic rule names a variant with staged edits. Publish or discard them first. */
26
+ readonly VariantHasStagedEdits: "VARIANT_HAS_STAGED_EDITS";
27
+ /**
28
+ * The entity type is versioned on this agent, so the request must name the agent variant to read or write. Pass the variant's reference ID, and its owning app where the endpoint takes one; a request that names none is rejected. */
29
+ readonly VariantRequired: "VARIANT_REQUIRED";
30
+ };
31
+ export type ErrorReason = (typeof ErrorReason)[keyof typeof ErrorReason] | string;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ErrorReason = void 0;
5
+ /** Why a request was rejected. Values are UPPER_SNAKE_CASE, at most 63 characters. New values may be added, so treat an unrecognized one as a generic error. All current values come from agent-variant operations. */
6
+ exports.ErrorReason = {
7
+ /**
8
+ * The variant is receiving live traffic, so it can't be edited. Fork a working variant and edit that instead. */
9
+ VariantLive: "VARIANT_LIVE",
10
+ /**
11
+ * The variant is archived or deleted. */
12
+ VariantNotActive: "VARIANT_NOT_ACTIVE",
13
+ /**
14
+ * The traffic config changed since it was last read. Re-read it and retry. */
15
+ StaleTrafficRevision: "STALE_TRAFFIC_REVISION",
16
+ /**
17
+ * The variant's working set changed since it was last read (its `workingSetRevision` moved). Re-read it and retry. */
18
+ StaleWorkingSet: "STALE_WORKING_SET",
19
+ /**
20
+ * The variant's staged edits don't change its configuration, so there is nothing to commit. */
21
+ NothingToCommit: "NOTHING_TO_COMMIT",
22
+ /**
23
+ * The ID requested for a new variant is already taken. */
24
+ VariantAlreadyExists: "VARIANT_ALREADY_EXISTS",
25
+ /**
26
+ * The variant is receiving live traffic, so it can't be archived or deleted. Move its traffic elsewhere first. */
27
+ CannotArchiveLiveVariant: "CANNOT_ARCHIVE_LIVE_VARIANT",
28
+ /**
29
+ * A traffic rule names a variant with staged edits. Publish or discard them first. */
30
+ VariantHasStagedEdits: "VARIANT_HAS_STAGED_EDITS",
31
+ /**
32
+ * The entity type is versioned on this agent, so the request must name the agent variant to read or write. Pass the variant's reference ID, and its owning app where the endpoint takes one; a request that names none is rejected. */
33
+ VariantRequired: "VARIANT_REQUIRED",
34
+ };
@@ -54,6 +54,9 @@ export * from "./BotTextResponse";
54
54
  export * from "./BrowserInfo";
55
55
  export * from "./BrowserType";
56
56
  export * from "./Capability";
57
+ export * from "./CapabilityBase";
58
+ export * from "./CapabilityStatus";
59
+ export * from "./CapabilityType";
57
60
  export * from "./ChartSpecSchema";
58
61
  export * from "./CheckboxSettingsSchemaEntry";
59
62
  export * from "./ColorSettingsSchemaEntry";
@@ -89,6 +92,7 @@ export * from "./EntityIdWithoutAgent";
89
92
  export * from "./EntityResult";
90
93
  export * from "./EntityType";
91
94
  export * from "./ErrorMessage";
95
+ export * from "./ErrorReason";
92
96
  export * from "./EventBaseNoId";
93
97
  export * from "./EventField";
94
98
  export * from "./EventFilter";
@@ -70,6 +70,9 @@ __exportStar(require("./BotTextResponse"), exports);
70
70
  __exportStar(require("./BrowserInfo"), exports);
71
71
  __exportStar(require("./BrowserType"), exports);
72
72
  __exportStar(require("./Capability"), exports);
73
+ __exportStar(require("./CapabilityBase"), exports);
74
+ __exportStar(require("./CapabilityStatus"), exports);
75
+ __exportStar(require("./CapabilityType"), exports);
73
76
  __exportStar(require("./ChartSpecSchema"), exports);
74
77
  __exportStar(require("./CheckboxSettingsSchemaEntry"), exports);
75
78
  __exportStar(require("./ColorSettingsSchemaEntry"), exports);
@@ -105,6 +108,7 @@ __exportStar(require("./EntityIdWithoutAgent"), exports);
105
108
  __exportStar(require("./EntityResult"), exports);
106
109
  __exportStar(require("./EntityType"), exports);
107
110
  __exportStar(require("./ErrorMessage"), exports);
111
+ __exportStar(require("./ErrorReason"), exports);
108
112
  __exportStar(require("./EventBaseNoId"), exports);
109
113
  __exportStar(require("./EventField"), exports);
110
114
  __exportStar(require("./EventFilter"), exports);
@@ -108,6 +108,7 @@ export declare class ConversationClient {
108
108
  * Wipes a conversation of all user data.
109
109
  * The conversation ID will still exist and non-user specific data will still be retained.
110
110
  * Attempts to modify or add messages to the conversation will throw an error.
111
+ * The conversation is sealed against further writes as soon as this call returns. A `202 Accepted` response means the wipe is still completing and will finish on its own.
111
112
  *
112
113
  * Simulation conversations will no longer be visible in search results nor metrics.
113
114
  * Non-simulation conversations will remain visible - they can not be fully removed from the system.
@@ -408,6 +408,7 @@ class ConversationClient {
408
408
  * Wipes a conversation of all user data.
409
409
  * The conversation ID will still exist and non-user specific data will still be retained.
410
410
  * Attempts to modify or add messages to the conversation will throw an error.
411
+ * The conversation is sealed against further writes as soon as this call returns. A `202 Accepted` response means the wipe is still completing and will finish on its own.
411
412
  *
412
413
  * Simulation conversations will no longer be visible in search results nor metrics.
413
414
  * Non-simulation conversations will remain visible - they can not be fully removed from the system.