mavenagi 1.2.73 → 1.2.74

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 (172) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +3 -0
  3. package/Client.js +41 -36
  4. package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -0
  5. package/api/resources/actions/types/ActionRequest.d.ts +5 -0
  6. package/api/resources/agentVariants/types/AgentVariantResponse.d.ts +3 -1
  7. package/api/resources/agents/client/Client.d.ts +22 -12
  8. package/api/resources/agents/client/Client.js +22 -12
  9. package/api/resources/agents/types/AgentMigrations.d.ts +1 -1
  10. package/api/resources/agents/types/AgentSettingName.d.ts +1 -1
  11. package/api/resources/agents/types/AgentSettingName.js +1 -1
  12. package/api/resources/agents/types/VersionedAgentSettings.d.ts +1 -1
  13. package/api/resources/appDirectory/client/Client.d.ts +6 -2
  14. package/api/resources/appDirectory/client/Client.js +6 -2
  15. package/api/resources/apps/client/Client.d.ts +139 -0
  16. package/api/resources/apps/client/Client.js +504 -0
  17. package/api/resources/apps/client/index.d.ts +1 -0
  18. package/api/resources/apps/client/index.js +2 -0
  19. package/api/resources/apps/exports.d.ts +2 -0
  20. package/api/resources/apps/exports.js +21 -0
  21. package/api/resources/apps/index.d.ts +2 -0
  22. package/api/resources/apps/index.js +18 -0
  23. package/api/resources/apps/types/AppPatchRequest.d.ts +26 -0
  24. package/api/resources/apps/types/AppPatchRequest.js +3 -0
  25. package/api/resources/apps/types/AppRequest.d.ts +38 -0
  26. package/api/resources/apps/types/AppRequest.js +3 -0
  27. package/api/resources/apps/types/AppResponse.d.ts +29 -0
  28. package/api/resources/apps/types/AppResponse.js +3 -0
  29. package/api/resources/apps/types/AppsSearchRequest.d.ts +3 -0
  30. package/api/resources/apps/types/AppsSearchRequest.js +3 -0
  31. package/api/resources/apps/types/AppsSearchResponse.d.ts +5 -0
  32. package/api/resources/apps/types/AppsSearchResponse.js +3 -0
  33. package/api/resources/apps/types/index.d.ts +5 -0
  34. package/api/resources/apps/types/index.js +21 -0
  35. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +7 -0
  36. package/api/resources/commons/types/ActionResponse.d.ts +2 -0
  37. package/api/resources/commons/types/AttachmentNotSentToModelReason.d.ts +11 -0
  38. package/api/resources/commons/types/AttachmentNotSentToModelReason.js +14 -0
  39. package/api/resources/commons/types/AttachmentNotSentToModelWarning.d.ts +10 -0
  40. package/api/resources/commons/types/AttachmentNotSentToModelWarning.js +3 -0
  41. package/api/resources/commons/types/BaseConversationResponse.d.ts +4 -0
  42. package/api/resources/commons/types/BotMessage.d.ts +9 -0
  43. package/api/resources/commons/types/BotMessageWarning.d.ts +13 -0
  44. package/api/resources/commons/types/BotMessageWarning.js +3 -0
  45. package/api/resources/commons/types/ChangeAuthor.d.ts +1 -1
  46. package/api/resources/commons/types/EntityType.d.ts +3 -0
  47. package/api/resources/commons/types/EntityType.js +3 -0
  48. package/api/resources/commons/types/ErrorMessage.d.ts +2 -0
  49. package/api/resources/commons/types/ErrorReason.d.ts +7 -1
  50. package/api/resources/commons/types/ErrorReason.js +7 -1
  51. package/api/resources/commons/types/Feedback.d.ts +8 -0
  52. package/api/resources/commons/types/FieldError.d.ts +6 -0
  53. package/api/resources/commons/types/FieldError.js +3 -0
  54. package/api/resources/commons/types/InboxItemBase.d.ts +13 -0
  55. package/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +13 -1
  56. package/api/resources/commons/types/UserEvent.d.ts +8 -0
  57. package/api/resources/commons/types/UserMessage.d.ts +4 -0
  58. package/api/resources/commons/types/index.d.ts +4 -0
  59. package/api/resources/commons/types/index.js +4 -0
  60. package/api/resources/conversation/client/Client.d.ts +1 -1
  61. package/api/resources/conversation/client/Client.js +1 -1
  62. package/api/resources/conversation/types/AskRequestFields.d.ts +3 -2
  63. package/api/resources/conversation/types/ConversationFilter.d.ts +2 -2
  64. package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -1
  65. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +5 -0
  66. package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +2 -0
  67. package/api/resources/developersCommons/types/AppDirectoryDetails.d.ts +23 -0
  68. package/api/resources/developersCommons/types/AppDirectoryDetails.js +3 -0
  69. package/api/resources/developersCommons/types/AppDirectoryListing.d.ts +14 -0
  70. package/api/resources/developersCommons/types/AppDirectoryListing.js +3 -0
  71. package/api/resources/developersCommons/types/BaseApp.d.ts +1 -9
  72. package/api/resources/developersCommons/types/BaseDetailApp.d.ts +1 -18
  73. package/api/resources/developersCommons/types/MarketplaceAppDetail.d.ts +5 -2
  74. package/api/resources/developersCommons/types/index.d.ts +2 -0
  75. package/api/resources/developersCommons/types/index.js +2 -0
  76. package/api/resources/events/client/Client.d.ts +1 -1
  77. package/api/resources/events/client/Client.js +1 -1
  78. package/api/resources/index.d.ts +2 -0
  79. package/api/resources/index.js +3 -1
  80. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +4 -1
  81. package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +5 -0
  82. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  83. package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +5 -0
  84. package/api/resources/triggers/types/EventTriggerRequest.d.ts +5 -0
  85. package/api/resources/triggers/types/EventTriggerResponse.d.ts +2 -0
  86. package/api/resources/users/types/AgentUser.d.ts +13 -0
  87. package/package.json +1 -1
  88. package/reference.md +340 -16
  89. package/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +4 -0
  90. package/serialization/resources/actions/client/requests/ActionPatchRequest.js +4 -0
  91. package/serialization/resources/actions/types/ActionRequest.d.ts +2 -0
  92. package/serialization/resources/actions/types/ActionRequest.js +2 -0
  93. package/serialization/resources/agentVariants/types/AgentVariantResponse.d.ts +1 -0
  94. package/serialization/resources/agentVariants/types/AgentVariantResponse.js +1 -0
  95. package/serialization/resources/apps/index.d.ts +1 -0
  96. package/serialization/resources/apps/index.js +17 -0
  97. package/serialization/resources/apps/types/AppPatchRequest.d.ts +21 -0
  98. package/serialization/resources/apps/types/AppPatchRequest.js +54 -0
  99. package/serialization/resources/apps/types/AppRequest.d.ts +13 -0
  100. package/serialization/resources/apps/types/AppRequest.js +48 -0
  101. package/serialization/resources/apps/types/AppResponse.d.ts +11 -0
  102. package/serialization/resources/apps/types/AppResponse.js +45 -0
  103. package/serialization/resources/apps/types/AppsSearchRequest.d.ts +9 -0
  104. package/serialization/resources/apps/types/AppsSearchRequest.js +40 -0
  105. package/serialization/resources/apps/types/AppsSearchResponse.d.ts +11 -0
  106. package/serialization/resources/apps/types/AppsSearchResponse.js +45 -0
  107. package/serialization/resources/apps/types/index.d.ts +5 -0
  108. package/serialization/resources/apps/types/index.js +21 -0
  109. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -0
  110. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +2 -0
  111. package/serialization/resources/commons/types/ActionResponse.d.ts +2 -0
  112. package/serialization/resources/commons/types/ActionResponse.js +2 -0
  113. package/serialization/resources/commons/types/AttachmentNotSentToModelReason.d.ts +7 -0
  114. package/serialization/resources/commons/types/AttachmentNotSentToModelReason.js +39 -0
  115. package/serialization/resources/commons/types/AttachmentNotSentToModelWarning.d.ts +13 -0
  116. package/serialization/resources/commons/types/AttachmentNotSentToModelWarning.js +45 -0
  117. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +3 -0
  118. package/serialization/resources/commons/types/BaseConversationResponse.js +3 -0
  119. package/serialization/resources/commons/types/BotMessage.d.ts +5 -0
  120. package/serialization/resources/commons/types/BotMessage.js +5 -0
  121. package/serialization/resources/commons/types/BotMessageWarning.d.ts +11 -0
  122. package/serialization/resources/commons/types/BotMessageWarning.js +47 -0
  123. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  124. package/serialization/resources/commons/types/EntityType.js +1 -0
  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 +1 -1
  128. package/serialization/resources/commons/types/ErrorReason.js +2 -0
  129. package/serialization/resources/commons/types/Feedback.d.ts +2 -0
  130. package/serialization/resources/commons/types/Feedback.js +2 -0
  131. package/serialization/resources/commons/types/FieldError.d.ts +10 -0
  132. package/serialization/resources/commons/types/FieldError.js +42 -0
  133. package/serialization/resources/commons/types/InboxItemBase.d.ts +3 -0
  134. package/serialization/resources/commons/types/InboxItemBase.js +3 -0
  135. package/serialization/resources/commons/types/IntelligentFieldValueResponse.d.ts +2 -0
  136. package/serialization/resources/commons/types/IntelligentFieldValueResponse.js +2 -0
  137. package/serialization/resources/commons/types/UserEvent.d.ts +2 -0
  138. package/serialization/resources/commons/types/UserEvent.js +2 -0
  139. package/serialization/resources/commons/types/UserMessage.d.ts +3 -0
  140. package/serialization/resources/commons/types/UserMessage.js +3 -0
  141. package/serialization/resources/commons/types/index.d.ts +4 -0
  142. package/serialization/resources/commons/types/index.js +4 -0
  143. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +2 -0
  144. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +2 -0
  145. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +2 -0
  146. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +2 -0
  147. package/serialization/resources/developersCommons/types/AppDirectoryDetails.d.ts +13 -0
  148. package/serialization/resources/developersCommons/types/AppDirectoryDetails.js +46 -0
  149. package/serialization/resources/developersCommons/types/AppDirectoryListing.d.ts +14 -0
  150. package/serialization/resources/developersCommons/types/AppDirectoryListing.js +46 -0
  151. package/serialization/resources/developersCommons/types/BaseApp.d.ts +2 -7
  152. package/serialization/resources/developersCommons/types/BaseApp.js +5 -8
  153. package/serialization/resources/developersCommons/types/BaseDetailApp.d.ts +3 -7
  154. package/serialization/resources/developersCommons/types/BaseDetailApp.js +3 -7
  155. package/serialization/resources/developersCommons/types/index.d.ts +2 -0
  156. package/serialization/resources/developersCommons/types/index.js +2 -0
  157. package/serialization/resources/index.d.ts +2 -0
  158. package/serialization/resources/index.js +3 -1
  159. package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +2 -0
  160. package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +2 -0
  161. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
  162. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
  163. package/serialization/resources/triggers/client/requests/PartialUpdateRequest.d.ts +2 -0
  164. package/serialization/resources/triggers/client/requests/PartialUpdateRequest.js +2 -0
  165. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
  166. package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
  167. package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +2 -0
  168. package/serialization/resources/triggers/types/EventTriggerResponse.js +2 -0
  169. package/serialization/resources/users/types/AgentUser.d.ts +3 -0
  170. package/serialization/resources/users/types/AgentUser.js +3 -0
  171. package/version.d.ts +1 -1
  172. package/version.js +1 -1
@@ -2,27 +2,10 @@ import type * as MavenAGI from "../../../index";
2
2
  /**
3
3
  * An app with the extra detail needed to render its page and drive installation.
4
4
  */
5
- export interface BaseDetailApp extends MavenAGI.BaseApp {
6
- /**
7
- * Guidance shown while installing the app, for example how to obtain the credentials it asks for.
8
- * May use [placeholders](https://developers.mavenagi.com/docs/documentation/configuration-and-integration/placeholders) such as `${agentId}`.
9
- */
10
- installationInstructions?: string;
11
- /** Guidance shown once the app is installed. May use [placeholders](https://developers.mavenagi.com/docs/documentation/configuration-and-integration/placeholders), settings included. */
12
- instructions?: string;
5
+ export interface BaseDetailApp extends MavenAGI.BaseApp, MavenAGI.AppDirectoryDetails {
13
6
  /**
14
7
  * URL of a preview image or demo for the app's detail page. May use [placeholders](https://developers.mavenagi.com/docs/documentation/configuration-and-integration/placeholders) such as
15
8
  * `${appHost}` and `${settings.region}`.
16
9
  */
17
10
  previewUrl?: string;
18
- /**
19
- * Supporting links published by the author, such as documentation or a privacy policy. Their URLs
20
- * may use [placeholders](https://developers.mavenagi.com/docs/documentation/configuration-and-integration/placeholders) such as `${appHost}`, but never settings: links are public.
21
- */
22
- links: MavenAGI.Link[];
23
- /**
24
- * The settings the app accepts. Drives the install form, and describes which values are files
25
- * rather than plain values.
26
- */
27
- settingsSchema: MavenAGI.SettingsSchema;
28
11
  }
@@ -11,7 +11,8 @@ export interface MarketplaceAppDetail extends MavenAGI.BaseDetailApp {
11
11
  /**
12
12
  * The installation's stored configuration, as an object keyed by setting key. Present only
13
13
  * when the app is installed on this agent. The keys mirror the app's `settingsSchema`, and a
14
- * key is absent when it has never been set.
14
+ * key is absent when it has never been set, except `image` and `section` keys, which are
15
+ * always present.
15
16
  *
16
17
  * Values nest the way the schema does: a `section` entry holds an object of its fields, a
17
18
  * `oneOf` entry an object of the selected option's fields alongside its `type` discriminator,
@@ -19,7 +20,9 @@ export interface MarketplaceAppDetail extends MavenAGI.BaseDetailApp {
19
20
  *
20
21
  * Two entry types do not return what is stored:
21
22
  *
22
- * - `image` entries return a short-lived presigned download URL, never the file's bytes.
23
+ * - `image` entries return a short-lived presigned download URL, never the file's bytes. The
24
+ * URL is returned whether or not a file was ever uploaded, so it does not show that an
25
+ * image is set. Only an image that was removed returns an empty string.
23
26
  * - `oauth` entries return `accessToken` redacted, with `scopes` and `status` intact, so the
24
27
  * connection still reads as connected without exposing the token.
25
28
  *
@@ -1,5 +1,7 @@
1
1
  export * from "./AppCapability";
2
2
  export * from "./AppCategory";
3
+ export * from "./AppDirectoryDetails";
4
+ export * from "./AppDirectoryListing";
3
5
  export * from "./AppInstalled";
4
6
  export * from "./AppsFilter";
5
7
  export * from "./AppsResponse";
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AppCapability"), exports);
18
18
  __exportStar(require("./AppCategory"), exports);
19
+ __exportStar(require("./AppDirectoryDetails"), exports);
20
+ __exportStar(require("./AppDirectoryListing"), exports);
19
21
  __exportStar(require("./AppInstalled"), exports);
20
22
  __exportStar(require("./AppsFilter"), exports);
21
23
  __exportStar(require("./AppsResponse"), exports);
@@ -95,7 +95,7 @@ export declare class EventsClient {
95
95
  /**
96
96
  * Export events to a CSV file.
97
97
  *
98
- * This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
98
+ * This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers. The CSV's `createdBy` column is the display name of the user the event is about, not the event's `createdBy`, which names who recorded it.
99
99
  *
100
100
  * <Note>**Required permission:** `read:events`</Note>
101
101
  *
@@ -393,7 +393,7 @@ class EventsClient {
393
393
  /**
394
394
  * Export events to a CSV file.
395
395
  *
396
- * This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
396
+ * This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers. The CSV's `createdBy` column is the display name of the user the event is about, not the event's `createdBy`, which names who recorded it.
397
397
  *
398
398
  * <Note>**Required permission:** `read:events`</Note>
399
399
  *
@@ -15,6 +15,8 @@ export * from "./appDirectory/types";
15
15
  export * as appSettings from "./appSettings";
16
16
  export * from "./appSettings/client/requests";
17
17
  export * from "./appSettings/types";
18
+ export * as apps from "./apps";
19
+ export * from "./apps/types";
18
20
  export * as assets from "./assets";
19
21
  export * from "./assets/types";
20
22
  export * as capabilities from "./capabilities";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.workingSet = exports.voiceConversations = exports.voice = exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.intelligentFields = exports.integrations = exports.inbox = exports.events = exports.developersCommons = exports.customers = exports.conversationKickoffs = exports.conversation = exports.commons = exports.charters = exports.capabilities = exports.assets = exports.appSettings = exports.appDirectory = exports.analytics = exports.agentVariants = exports.agents = exports.actions = void 0;
39
+ exports.workingSet = exports.voiceConversations = exports.voice = exports.users = exports.triggers = exports.translations = exports.segments = exports.organizations = exports.knowledge = exports.intelligentFields = exports.integrations = exports.inbox = exports.events = exports.developersCommons = exports.customers = exports.conversationKickoffs = exports.conversation = exports.commons = exports.charters = exports.capabilities = exports.assets = exports.apps = exports.appSettings = exports.appDirectory = exports.analytics = exports.agentVariants = exports.agents = exports.actions = void 0;
40
40
  exports.actions = __importStar(require("./actions"));
41
41
  __exportStar(require("./actions/client/requests"), exports);
42
42
  __exportStar(require("./actions/types"), exports);
@@ -54,6 +54,8 @@ __exportStar(require("./appDirectory/types"), exports);
54
54
  exports.appSettings = __importStar(require("./appSettings"));
55
55
  __exportStar(require("./appSettings/client/requests"), exports);
56
56
  __exportStar(require("./appSettings/types"), exports);
57
+ exports.apps = __importStar(require("./apps"));
58
+ __exportStar(require("./apps/types"), exports);
57
59
  exports.assets = __importStar(require("./assets"));
58
60
  __exportStar(require("./assets/types"), exports);
59
61
  exports.capabilities = __importStar(require("./capabilities"));
@@ -21,7 +21,10 @@ import type * as MavenAGI from "../../../index";
21
21
  * value: "HIGH",
22
22
  * confidence: 0.95,
23
23
  * rationale: "The conversation mentions a production outage affecting multiple customers, indicating high urgency and impact.",
24
- * createdAt: new Date("2024-01-15T10:30:00.000Z")
24
+ * createdAt: new Date("2024-01-15T10:30:00.000Z"),
25
+ * createdBy: {
26
+ * name: "Maven AGI"
27
+ * }
25
28
  * }],
26
29
  * totalElements: 1,
27
30
  * totalPages: 1,
@@ -50,4 +50,9 @@ export interface KnowledgeBasePatchRequest {
50
50
  segmentIds?: MavenAGI.EntityId[];
51
51
  /** How often the knowledge base should be refreshed. */
52
52
  refreshFrequency?: MavenAGI.KnowledgeBaseRefreshFrequency;
53
+ /**
54
+ * The Function versions that sync this knowledge base. A null value unbinds it, so the
55
+ * app's own handler syncs it again.
56
+ */
57
+ functionBindings?: MavenAGI.KnowledgeBaseFunctionBindings | null;
53
58
  }
@@ -96,4 +96,6 @@ export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties
96
96
  * Only populated while the latest version is in progress - absent once it has completed.
97
97
  */
98
98
  progress?: MavenAGI.KnowledgeBaseVersionProgress;
99
+ /** The Function versions that sync this knowledge base. Absent when the app's own handler syncs it. */
100
+ functionBindings?: MavenAGI.KnowledgeBaseFunctionBindings;
99
101
  }
@@ -16,4 +16,9 @@ export interface PartialUpdateRequest {
16
16
  wait?: MavenAGI.TriggerWait | null;
17
17
  /** Caps how often the trigger is delivered. Omitted leaves the rate limit alone; an explicit null removes it. */
18
18
  rateLimit?: MavenAGI.TriggerRateLimit | null;
19
+ /**
20
+ * The Function version to bind this trigger to. A null value unbinds it, so the app's
21
+ * own handler runs it again.
22
+ */
23
+ functionBinding?: MavenAGI.FunctionVersionBinding | null;
19
24
  }
@@ -16,4 +16,9 @@ export interface EventTriggerRequest extends MavenAGI.EventTriggerBase {
16
16
  description: string;
17
17
  /** ID that uniquely identifies this event trigger */
18
18
  triggerId: MavenAGI.EntityIdBase;
19
+ /**
20
+ * The Function version to bind this trigger to. A bound trigger runs exactly this version.
21
+ * Omitting it keeps the trigger's existing binding.
22
+ */
23
+ functionBinding?: MavenAGI.FunctionVersionBinding;
19
24
  }
@@ -27,6 +27,8 @@ export interface EventTriggerResponse extends MavenAGI.EventTriggerBase, MavenAG
27
27
  * Whether this trigger will be called by Maven.
28
28
  */
29
29
  enabled: boolean;
30
+ /** The Function version this trigger runs. Absent when the app's own handler runs it. */
31
+ functionBinding?: MavenAGI.FunctionVersionBinding;
30
32
  /**
31
33
  * When a scheduled trigger is next due, approximately. Absent for event triggers, for a
32
34
  * disabled or uninstalled trigger, and for a schedule that has ended (past `endAt`, or
@@ -48,6 +48,19 @@ export interface AgentUser {
48
48
  createdAt: Date;
49
49
  /** The date and time the agent user was last updated */
50
50
  updatedAt: Date;
51
+ /**
52
+ * Who created the agent user: the caller of the first request that named one of its app users,
53
+ * either `users.createOrUpdate` or, for an anonymous user, a conversation, event, or feedback
54
+ * request naming a user Maven didn't know yet. Absent when no one was recorded.
55
+ */
56
+ createdBy?: MavenAGI.ChangeAuthor;
57
+ /**
58
+ * Who last changed the agent user, as `updatedAt` dates it. A `users.createOrUpdate` that
59
+ * identifies a user who was anonymous changes it; a change to an app user's data or identifiers
60
+ * doesn't.
61
+ * Absent when no one was recorded.
62
+ */
63
+ updatedBy?: MavenAGI.ChangeAuthor;
51
64
  /** All identifiers for the agent user. This is a merged set of identifiers from the app created users. */
52
65
  identifiers: MavenAGI.AppUserIdentifier[];
53
66
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.73",
3
+ "version": "1.2.74",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -2075,12 +2075,18 @@ await client.agents.delete("organizationReferenceId", "agentReferenceId");
2075
2075
  <dl>
2076
2076
  <dd>
2077
2077
 
2078
- Get the agent's settings that can be versioned per agent variant (see `AgentSettingName`).
2078
+ Get the agent's system fallback message and content-safety reply instructions.
2079
2079
 
2080
- Name a variant exactly when a setting is versioned on the agent (listed in its
2081
- `migrations.versionedEntityTypes`); otherwise it is a 400, with reason `VARIANT_REQUIRED` when no
2082
- variant is named. Each versioned setting is returned as the variant sees it, its staged
2083
- edit over its published snapshot; the rest as the agent holds them.
2080
+ Maven can turn on versioning for either setting. A versioned setting is listed in the
2081
+ agent's `migrations.versionedEntityTypes`, and its changes go through agent variants
2082
+ instead of applying to the agent directly.
2083
+
2084
+ - If either setting is versioned, name a variant. Each versioned setting comes back as
2085
+ that variant has it: its staged edit if there is one, otherwise what was last
2086
+ published; a setting that isn't versioned comes back as the agent has it. Without a
2087
+ variant, the request is rejected with reason `VARIANT_REQUIRED`.
2088
+ - If neither setting is versioned, don't name a variant. Both come back as the agent has
2089
+ them. Naming a variant is a 400.
2084
2090
 
2085
2091
  <Note>**Required permission:** `read:agents`</Note>
2086
2092
  </dd>
@@ -2161,14 +2167,18 @@ await client.agents.getVersionedSettings("organizationReferenceId", "agentRefere
2161
2167
  <dl>
2162
2168
  <dd>
2163
2169
 
2164
- Update the agent's settings that can be versioned per agent variant (see `AgentSettingName`).
2165
- Only the specified fields change; a null value clears one.
2170
+ Update the agent's system fallback message and content-safety reply instructions. Only the
2171
+ fields you send change; send null to clear one.
2172
+
2173
+ - A versioned setting (listed in `migrations.versionedEntityTypes`) is staged in the
2174
+ variant you name, and goes live when that variant is published.
2175
+ - A setting that isn't versioned is updated on the agent right away.
2166
2176
 
2167
- A specified setting that is versioned on the agent is staged in the named variant, live once
2168
- the variant is published; the rest are updated on the agent directly. The variant rule of
2169
- `getVersionedSettings` applies to the specified settings (to all, when none is specified).
2170
- The response is what `getVersionedSettings` returns for the same variant; with none named,
2171
- versioned settings are omitted.
2177
+ Name a variant if any setting you send is versioned (or, when you send none, if either
2178
+ is versioned), and don't name one otherwise, as for `getVersionedSettings`.
2179
+
2180
+ Returns what `getVersionedSettings` returns for the same variant. Without a variant,
2181
+ versioned settings are left out of the response.
2172
2182
 
2173
2183
  <Note>**Required permission:** `edit:agents`</Note>
2174
2184
  </dd>
@@ -2881,8 +2891,12 @@ await client.appDirectory.get("appId");
2881
2891
  <dl>
2882
2892
  <dd>
2883
2893
 
2884
- Installs the app on the agent, or updates settings for an existing installation. Re-runs the
2885
- postInstall lifecycle hook on each call. Returns the app as `get` does once the install is
2894
+ Installs the app on the agent, or updates settings for an existing installation. Runs the
2895
+ app's preInstall hook first: the app may store different settings than the ones sent, or
2896
+ reject them with a 400. When the app names the rejected settings, the 400's `reason` is
2897
+ `INVALID_SETTINGS` and its `fieldErrors` name each one; otherwise it has no `reason`. If the app returned settings and the stored settings changed while
2898
+ the hook ran, answers 409; reload them and retry. Re-runs the postInstall lifecycle hook on
2899
+ each call. Returns the app as `get` does once the install is
2886
2900
  done, with its settings and post-install `instructions` filled in for the agent.
2887
2901
 
2888
2902
  The app may not work yet. Finish its setup as `get` describes: follow `instructions`, hand
@@ -3381,6 +3395,316 @@ await client.appSettings.update({
3381
3395
  </dl>
3382
3396
 
3383
3397
 
3398
+ </dd>
3399
+ </dl>
3400
+ </details>
3401
+
3402
+ ## Apps
3403
+ <details><summary><code>client.apps.<a href="/src/api/resources/apps/client/Client.ts">createOrUpdate</a>({ ...params }) -> MavenAGI.AppResponse</code></summary>
3404
+ <dl>
3405
+ <dd>
3406
+
3407
+ #### 📝 Description
3408
+
3409
+ <dl>
3410
+ <dd>
3411
+
3412
+ <dl>
3413
+ <dd>
3414
+
3415
+ Create an app your organization owns, or replace one it already owns: every field the request
3416
+ leaves out is cleared. To change only some fields, use `patch`. Send `categories`,
3417
+ `capabilities`, `links` and `settingsSchema` every time, as `[]` when the app has none.
3418
+
3419
+ App IDs are unique across Maven, so an ID another organization uses, or a deleted app used, is a
3420
+ 409. Requesting a permission you don't hold is a 403.
3421
+
3422
+ A new app is in development: only your organization can see it in the app directory, and install
3423
+ it on its agents with the app directory's install (`POST /v1/directory/{appId}/install`). Its code
3424
+ runs as Functions, which you add with the Functions API. Making the app public, sharing it with
3425
+ other organizations, and setting its logo can't be done through this API.
3426
+
3427
+ It can't change an app with a hosted deployment, made in App Studio, or an agent's own app (409),
3428
+ and it can't change the permissions of an app other organizations can install, because the change
3429
+ would reach them with no consent (409).
3430
+
3431
+ <Note>**Required permission:** `edit:apps`</Note>
3432
+ </dd>
3433
+ </dl>
3434
+ </dd>
3435
+ </dl>
3436
+
3437
+ #### 🔌 Usage
3438
+
3439
+ <dl>
3440
+ <dd>
3441
+
3442
+ <dl>
3443
+ <dd>
3444
+
3445
+ ```typescript
3446
+ await client.apps.createOrUpdate({
3447
+ id: "order-lookup",
3448
+ name: "Order lookup",
3449
+ shortDescription: "Looks up an order's status.",
3450
+ categories: ["CUSTOMER_SUPPORT"],
3451
+ capabilities: ["ACTIONS"],
3452
+ links: [],
3453
+ settingsSchema: [{
3454
+ type: "text",
3455
+ key: "apiKey",
3456
+ displayName: "API key"
3457
+ }],
3458
+ requestedPermissions: ["read:conversations"]
3459
+ });
3460
+
3461
+ ```
3462
+ </dd>
3463
+ </dl>
3464
+ </dd>
3465
+ </dl>
3466
+
3467
+ #### ⚙️ Parameters
3468
+
3469
+ <dl>
3470
+ <dd>
3471
+
3472
+ <dl>
3473
+ <dd>
3474
+
3475
+ **request:** `MavenAGI.AppRequest`
3476
+
3477
+ </dd>
3478
+ </dl>
3479
+
3480
+ <dl>
3481
+ <dd>
3482
+
3483
+ **requestOptions:** `AppsClient.RequestOptions`
3484
+
3485
+ </dd>
3486
+ </dl>
3487
+ </dd>
3488
+ </dl>
3489
+
3490
+
3491
+ </dd>
3492
+ </dl>
3493
+ </details>
3494
+
3495
+ <details><summary><code>client.apps.<a href="/src/api/resources/apps/client/Client.ts">patch</a>(appId, { ...params }) -> MavenAGI.AppResponse</code></summary>
3496
+ <dl>
3497
+ <dd>
3498
+
3499
+ #### 📝 Description
3500
+
3501
+ <dl>
3502
+ <dd>
3503
+
3504
+ <dl>
3505
+ <dd>
3506
+
3507
+ Change some fields of an app your organization owns. Fields the request leaves out keep their
3508
+ values. Set a text field to null to clear it; send `[]` to empty a list.
3509
+
3510
+ An app your organization doesn't own, or that doesn't exist, is a 403. Requesting a permission
3511
+ you don't hold is a 403. It can't change an app with a hosted deployment, made in App Studio, or
3512
+ an agent's own app (409), and it can't change the permissions of an app other organizations can
3513
+ install, because the change would reach them with no consent (409).
3514
+
3515
+ <Note>**Required permission:** `edit:apps`</Note>
3516
+ </dd>
3517
+ </dl>
3518
+ </dd>
3519
+ </dl>
3520
+
3521
+ #### 🔌 Usage
3522
+
3523
+ <dl>
3524
+ <dd>
3525
+
3526
+ <dl>
3527
+ <dd>
3528
+
3529
+ ```typescript
3530
+ await client.apps.patch("appId", {});
3531
+
3532
+ ```
3533
+ </dd>
3534
+ </dl>
3535
+ </dd>
3536
+ </dl>
3537
+
3538
+ #### ⚙️ Parameters
3539
+
3540
+ <dl>
3541
+ <dd>
3542
+
3543
+ <dl>
3544
+ <dd>
3545
+
3546
+ **appId:** `string` — The ID of the app to change.
3547
+
3548
+ </dd>
3549
+ </dl>
3550
+
3551
+ <dl>
3552
+ <dd>
3553
+
3554
+ **request:** `MavenAGI.AppPatchRequest`
3555
+
3556
+ </dd>
3557
+ </dl>
3558
+
3559
+ <dl>
3560
+ <dd>
3561
+
3562
+ **requestOptions:** `AppsClient.RequestOptions`
3563
+
3564
+ </dd>
3565
+ </dl>
3566
+ </dd>
3567
+ </dl>
3568
+
3569
+
3570
+ </dd>
3571
+ </dl>
3572
+ </details>
3573
+
3574
+ <details><summary><code>client.apps.<a href="/src/api/resources/apps/client/Client.ts">search</a>({ ...params }) -> MavenAGI.AppsSearchResponse</code></summary>
3575
+ <dl>
3576
+ <dd>
3577
+
3578
+ #### 📝 Description
3579
+
3580
+ <dl>
3581
+ <dd>
3582
+
3583
+ <dl>
3584
+ <dd>
3585
+
3586
+ Search the apps your organization owns, newest first unless `sortDesc` is false, with how many
3587
+ agents each is installed on. Leaves out each agent's own app.
3588
+
3589
+ <Note>**Required permission:** `read:apps`</Note>
3590
+ </dd>
3591
+ </dl>
3592
+ </dd>
3593
+ </dl>
3594
+
3595
+ #### 🔌 Usage
3596
+
3597
+ <dl>
3598
+ <dd>
3599
+
3600
+ <dl>
3601
+ <dd>
3602
+
3603
+ ```typescript
3604
+ await client.apps.search({});
3605
+
3606
+ ```
3607
+ </dd>
3608
+ </dl>
3609
+ </dd>
3610
+ </dl>
3611
+
3612
+ #### ⚙️ Parameters
3613
+
3614
+ <dl>
3615
+ <dd>
3616
+
3617
+ <dl>
3618
+ <dd>
3619
+
3620
+ **request:** `MavenAGI.AppsSearchRequest`
3621
+
3622
+ </dd>
3623
+ </dl>
3624
+
3625
+ <dl>
3626
+ <dd>
3627
+
3628
+ **requestOptions:** `AppsClient.RequestOptions`
3629
+
3630
+ </dd>
3631
+ </dl>
3632
+ </dd>
3633
+ </dl>
3634
+
3635
+
3636
+ </dd>
3637
+ </dl>
3638
+ </details>
3639
+
3640
+ <details><summary><code>client.apps.<a href="/src/api/resources/apps/client/Client.ts">delete</a>(appId) -> void</code></summary>
3641
+ <dl>
3642
+ <dd>
3643
+
3644
+ #### 📝 Description
3645
+
3646
+ <dl>
3647
+ <dd>
3648
+
3649
+ <dl>
3650
+ <dd>
3651
+
3652
+ Delete an app your organization owns. An app your organization doesn't own, or that doesn't exist,
3653
+ is a 403.
3654
+
3655
+ An app that is still installed on any agent can't be deleted: uninstall it everywhere first, or
3656
+ the request fails with a 409. Its `installCount` says how many agents have it, and the app
3657
+ directory shows whether a given agent does; uninstall it from each with the app directory's
3658
+ uninstall (`DELETE /v1/directory/{appId}/install`). That includes agents in other organizations
3659
+ an app is public or shared with, which only those organizations can uninstall.
3660
+
3661
+ <Note>**Required permission:** `edit:apps`</Note>
3662
+ </dd>
3663
+ </dl>
3664
+ </dd>
3665
+ </dl>
3666
+
3667
+ #### 🔌 Usage
3668
+
3669
+ <dl>
3670
+ <dd>
3671
+
3672
+ <dl>
3673
+ <dd>
3674
+
3675
+ ```typescript
3676
+ await client.apps.delete("appId");
3677
+
3678
+ ```
3679
+ </dd>
3680
+ </dl>
3681
+ </dd>
3682
+ </dl>
3683
+
3684
+ #### ⚙️ Parameters
3685
+
3686
+ <dl>
3687
+ <dd>
3688
+
3689
+ <dl>
3690
+ <dd>
3691
+
3692
+ **appId:** `string` — The ID of the app to delete.
3693
+
3694
+ </dd>
3695
+ </dl>
3696
+
3697
+ <dl>
3698
+ <dd>
3699
+
3700
+ **requestOptions:** `AppsClient.RequestOptions`
3701
+
3702
+ </dd>
3703
+ </dl>
3704
+ </dd>
3705
+ </dl>
3706
+
3707
+
3384
3708
  </dd>
3385
3709
  </dl>
3386
3710
  </details>
@@ -4981,7 +5305,7 @@ Non-simulation conversations remain visible; they cannot be fully removed from t
4981
5305
 
4982
5306
  <Warning>This is a destructive operation and cannot be undone. <br/><br/>
4983
5307
  What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
4984
- Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
5308
+ Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments and attachment warnings, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
4985
5309
  Evaluation results for the conversation are deleted, the payloads recorded on its trigger and action executions are cleared, and the message recorded on each of its Conversation Kickoff executions is cleared. <br/><br/>
4986
5310
  What is kept: the conversation's metadata, each message's charts, structured answer and app-supplied metadata, the conversation's intelligent field values, its feedback and events, and the users who took part. To wipe a user's data, use `DELETE /users/{userId}` or `DELETE /agentusers/{agentUserId}`.</Warning>
4987
5311
 
@@ -6613,7 +6937,7 @@ await client.events.get("eventId", {
6613
6937
 
6614
6938
  Export events to a CSV file.
6615
6939
 
6616
- This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
6940
+ This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers. The CSV's `createdBy` column is the display name of the user the event is about, not the event's `createdBy`, which names who recorded it.
6617
6941
 
6618
6942
  <Note>**Required permission:** `read:events`</Note>
6619
6943
  </dd>
@@ -1,7 +1,9 @@
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 { ActionParameter } from "../../../commons/types/ActionParameter";
4
5
  import { EntityId } from "../../../commons/types/EntityId";
6
+ import { FunctionVersionBinding } from "../../../commons/types/FunctionVersionBinding";
5
7
  import { LlmInclusionStatus } from "../../../commons/types/LlmInclusionStatus";
6
8
  import { SideEffects } from "../../../commons/types/SideEffects";
7
9
  export declare const ActionPatchRequest: core.serialization.Schema<serializers.ActionPatchRequest.Raw, MavenAGI.ActionPatchRequest>;
@@ -12,5 +14,7 @@ export declare namespace ActionPatchRequest {
12
14
  llmInclusionStatus?: LlmInclusionStatus.Raw | null;
13
15
  segmentId?: (EntityId.Raw | null | undefined) | null;
14
16
  sideEffects?: (SideEffects.Raw | null | undefined) | null;
17
+ functionBinding?: (FunctionVersionBinding.Raw | null | undefined) | null;
18
+ userFormParameters?: ActionParameter.Raw[] | null;
15
19
  }
16
20
  }
@@ -36,7 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ActionPatchRequest = void 0;
38
38
  const core = __importStar(require("../../../../../core"));
39
+ const ActionParameter_1 = require("../../../commons/types/ActionParameter");
39
40
  const EntityId_1 = require("../../../commons/types/EntityId");
41
+ const FunctionVersionBinding_1 = require("../../../commons/types/FunctionVersionBinding");
40
42
  const LlmInclusionStatus_1 = require("../../../commons/types/LlmInclusionStatus");
41
43
  const SideEffects_1 = require("../../../commons/types/SideEffects");
42
44
  exports.ActionPatchRequest = core.serialization.object({
@@ -45,4 +47,6 @@ exports.ActionPatchRequest = core.serialization.object({
45
47
  llmInclusionStatus: LlmInclusionStatus_1.LlmInclusionStatus.optional(),
46
48
  segmentId: EntityId_1.EntityId.optionalNullable(),
47
49
  sideEffects: SideEffects_1.SideEffects.optionalNullable(),
50
+ functionBinding: FunctionVersionBinding_1.FunctionVersionBinding.optionalNullable(),
51
+ userFormParameters: core.serialization.list(ActionParameter_1.ActionParameter).optional(),
48
52
  });