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
package/BaseClient.js CHANGED
@@ -46,8 +46,8 @@ function normalizeClientOptions(options) {
46
46
  const headers = (0, headers_1.mergeHeaders)({
47
47
  "X-Fern-Language": "JavaScript",
48
48
  "X-Fern-SDK-Name": "mavenagi",
49
- "X-Fern-SDK-Version": "1.2.73",
50
- "User-Agent": "mavenagi/1.2.73",
49
+ "X-Fern-SDK-Version": "1.2.74",
50
+ "User-Agent": "mavenagi/1.2.74",
51
51
  "X-Fern-Runtime": core.RUNTIME.type,
52
52
  "X-Fern-Runtime-Version": core.RUNTIME.version,
53
53
  "X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
package/Client.d.ts CHANGED
@@ -4,6 +4,7 @@ import { AgentVariantsClient } from "./api/resources/agentVariants/client/Client
4
4
  import { AnalyticsClient } from "./api/resources/analytics/client/Client";
5
5
  import { AppDirectoryClient } from "./api/resources/appDirectory/client/Client";
6
6
  import { AppSettingsClient } from "./api/resources/appSettings/client/Client";
7
+ import { AppsClient } from "./api/resources/apps/client/Client";
7
8
  import { AssetsClient } from "./api/resources/assets/client/Client";
8
9
  import { CapabilitiesClient } from "./api/resources/capabilities/client/Client";
9
10
  import { ChartersClient } from "./api/resources/charters/client/Client";
@@ -38,6 +39,7 @@ export declare class MavenAGIClient {
38
39
  protected _analytics: AnalyticsClient | undefined;
39
40
  protected _appDirectory: AppDirectoryClient | undefined;
40
41
  protected _appSettings: AppSettingsClient | undefined;
42
+ protected _apps: AppsClient | undefined;
41
43
  protected _assets: AssetsClient | undefined;
42
44
  protected _capabilities: CapabilitiesClient | undefined;
43
45
  protected _charters: ChartersClient | undefined;
@@ -63,6 +65,7 @@ export declare class MavenAGIClient {
63
65
  get analytics(): AnalyticsClient;
64
66
  get appDirectory(): AppDirectoryClient;
65
67
  get appSettings(): AppSettingsClient;
68
+ get apps(): AppsClient;
66
69
  get assets(): AssetsClient;
67
70
  get capabilities(): CapabilitiesClient;
68
71
  get charters(): ChartersClient;
package/Client.js CHANGED
@@ -50,24 +50,25 @@ const Client_3 = require("./api/resources/agentVariants/client/Client");
50
50
  const Client_4 = require("./api/resources/analytics/client/Client");
51
51
  const Client_5 = require("./api/resources/appDirectory/client/Client");
52
52
  const Client_6 = require("./api/resources/appSettings/client/Client");
53
- const Client_7 = require("./api/resources/assets/client/Client");
54
- const Client_8 = require("./api/resources/capabilities/client/Client");
55
- const Client_9 = require("./api/resources/charters/client/Client");
56
- const Client_10 = require("./api/resources/conversation/client/Client");
57
- const Client_11 = require("./api/resources/conversationKickoffs/client/Client");
58
- const Client_12 = require("./api/resources/customers/client/Client");
59
- const Client_13 = require("./api/resources/events/client/Client");
60
- const Client_14 = require("./api/resources/inbox/client/Client");
61
- const Client_15 = require("./api/resources/integrations/client/Client");
62
- const Client_16 = require("./api/resources/intelligentFields/client/Client");
63
- const Client_17 = require("./api/resources/knowledge/client/Client");
64
- const Client_18 = require("./api/resources/organizations/client/Client");
65
- const Client_19 = require("./api/resources/segments/client/Client");
66
- const Client_20 = require("./api/resources/translations/client/Client");
67
- const Client_21 = require("./api/resources/triggers/client/Client");
68
- const Client_22 = require("./api/resources/users/client/Client");
69
- const Client_23 = require("./api/resources/voice/client/Client");
70
- const Client_24 = require("./api/resources/voiceConversations/client/Client");
53
+ const Client_7 = require("./api/resources/apps/client/Client");
54
+ const Client_8 = require("./api/resources/assets/client/Client");
55
+ const Client_9 = require("./api/resources/capabilities/client/Client");
56
+ const Client_10 = require("./api/resources/charters/client/Client");
57
+ const Client_11 = require("./api/resources/conversation/client/Client");
58
+ const Client_12 = require("./api/resources/conversationKickoffs/client/Client");
59
+ const Client_13 = require("./api/resources/customers/client/Client");
60
+ const Client_14 = require("./api/resources/events/client/Client");
61
+ const Client_15 = require("./api/resources/inbox/client/Client");
62
+ const Client_16 = require("./api/resources/integrations/client/Client");
63
+ const Client_17 = require("./api/resources/intelligentFields/client/Client");
64
+ const Client_18 = require("./api/resources/knowledge/client/Client");
65
+ const Client_19 = require("./api/resources/organizations/client/Client");
66
+ const Client_20 = require("./api/resources/segments/client/Client");
67
+ const Client_21 = require("./api/resources/translations/client/Client");
68
+ const Client_22 = require("./api/resources/triggers/client/Client");
69
+ const Client_23 = require("./api/resources/users/client/Client");
70
+ const Client_24 = require("./api/resources/voice/client/Client");
71
+ const Client_25 = require("./api/resources/voiceConversations/client/Client");
71
72
  const BaseClient_1 = require("./BaseClient");
72
73
  const core = __importStar(require("./core"));
73
74
  class MavenAGIClient {
@@ -98,77 +99,81 @@ class MavenAGIClient {
98
99
  var _a;
99
100
  return ((_a = this._appSettings) !== null && _a !== void 0 ? _a : (this._appSettings = new Client_6.AppSettingsClient(this._options)));
100
101
  }
102
+ get apps() {
103
+ var _a;
104
+ return ((_a = this._apps) !== null && _a !== void 0 ? _a : (this._apps = new Client_7.AppsClient(this._options)));
105
+ }
101
106
  get assets() {
102
107
  var _a;
103
- return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_7.AssetsClient(this._options)));
108
+ return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_8.AssetsClient(this._options)));
104
109
  }
105
110
  get capabilities() {
106
111
  var _a;
107
- return ((_a = this._capabilities) !== null && _a !== void 0 ? _a : (this._capabilities = new Client_8.CapabilitiesClient(this._options)));
112
+ return ((_a = this._capabilities) !== null && _a !== void 0 ? _a : (this._capabilities = new Client_9.CapabilitiesClient(this._options)));
108
113
  }
109
114
  get charters() {
110
115
  var _a;
111
- return ((_a = this._charters) !== null && _a !== void 0 ? _a : (this._charters = new Client_9.ChartersClient(this._options)));
116
+ return ((_a = this._charters) !== null && _a !== void 0 ? _a : (this._charters = new Client_10.ChartersClient(this._options)));
112
117
  }
113
118
  get conversationKickoffs() {
114
119
  var _a;
115
- return ((_a = this._conversationKickoffs) !== null && _a !== void 0 ? _a : (this._conversationKickoffs = new Client_11.ConversationKickoffsClient(this._options)));
120
+ return ((_a = this._conversationKickoffs) !== null && _a !== void 0 ? _a : (this._conversationKickoffs = new Client_12.ConversationKickoffsClient(this._options)));
116
121
  }
117
122
  get conversation() {
118
123
  var _a;
119
- return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_10.ConversationClient(this._options)));
124
+ return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_11.ConversationClient(this._options)));
120
125
  }
121
126
  get customers() {
122
127
  var _a;
123
- return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new Client_12.CustomersClient(this._options)));
128
+ return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new Client_13.CustomersClient(this._options)));
124
129
  }
125
130
  get events() {
126
131
  var _a;
127
- return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_13.EventsClient(this._options)));
132
+ return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_14.EventsClient(this._options)));
128
133
  }
129
134
  get inbox() {
130
135
  var _a;
131
- return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_14.InboxClient(this._options)));
136
+ return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_15.InboxClient(this._options)));
132
137
  }
133
138
  get integrations() {
134
139
  var _a;
135
- return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_15.IntegrationsClient(this._options)));
140
+ return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_16.IntegrationsClient(this._options)));
136
141
  }
137
142
  get intelligentFields() {
138
143
  var _a;
139
- return ((_a = this._intelligentFields) !== null && _a !== void 0 ? _a : (this._intelligentFields = new Client_16.IntelligentFieldsClient(this._options)));
144
+ return ((_a = this._intelligentFields) !== null && _a !== void 0 ? _a : (this._intelligentFields = new Client_17.IntelligentFieldsClient(this._options)));
140
145
  }
141
146
  get knowledge() {
142
147
  var _a;
143
- return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_17.KnowledgeClient(this._options)));
148
+ return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_18.KnowledgeClient(this._options)));
144
149
  }
145
150
  get organizations() {
146
151
  var _a;
147
- return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_18.OrganizationsClient(this._options)));
152
+ return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_19.OrganizationsClient(this._options)));
148
153
  }
149
154
  get segments() {
150
155
  var _a;
151
- return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_19.SegmentsClient(this._options)));
156
+ return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_20.SegmentsClient(this._options)));
152
157
  }
153
158
  get translations() {
154
159
  var _a;
155
- return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_20.TranslationsClient(this._options)));
160
+ return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_21.TranslationsClient(this._options)));
156
161
  }
157
162
  get triggers() {
158
163
  var _a;
159
- return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_21.TriggersClient(this._options)));
164
+ return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_22.TriggersClient(this._options)));
160
165
  }
161
166
  get users() {
162
167
  var _a;
163
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_22.UsersClient(this._options)));
168
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_23.UsersClient(this._options)));
164
169
  }
165
170
  get voiceConversations() {
166
171
  var _a;
167
- return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_24.VoiceConversationsClient(this._options)));
172
+ return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_25.VoiceConversationsClient(this._options)));
168
173
  }
169
174
  get voice() {
170
175
  var _a;
171
- return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_23.VoiceClient(this._options)));
176
+ return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_24.VoiceClient(this._options)));
172
177
  }
173
178
  /**
174
179
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
@@ -32,4 +32,15 @@ export interface ActionPatchRequest {
32
32
  * A null value clears it back to undeclared.
33
33
  */
34
34
  sideEffects?: MavenAGI.SideEffects | null;
35
+ /**
36
+ * The Function version to bind this action to. A null value unbinds it, so the app's
37
+ * own handler runs it again.
38
+ */
39
+ functionBinding?: MavenAGI.FunctionVersionBinding | null;
40
+ /**
41
+ * The parameters the action collects. A bound action's parameters must match its
42
+ * Function version's exactly, so moving to a version that declares different
43
+ * parameters sends them with `functionBinding` in the same request.
44
+ */
45
+ userFormParameters?: MavenAGI.ActionParameter[];
35
46
  }
@@ -26,4 +26,9 @@ import type * as MavenAGI from "../../../index";
26
26
  export interface ActionRequest extends MavenAGI.ActionBase {
27
27
  /** ID that uniquely identifies this action */
28
28
  actionId: MavenAGI.EntityIdBase;
29
+ /**
30
+ * The Function version to bind this action to. A bound action runs exactly this version.
31
+ * Omitting it keeps the action's existing binding.
32
+ */
33
+ functionBinding?: MavenAGI.FunctionVersionBinding;
29
34
  }
@@ -38,6 +38,8 @@ export interface AgentVariantResponse {
38
38
  createdAt?: Date;
39
39
  /** Who created the agent variant. Absent when no one was recorded. A deleted variant brought back by `createOrUpdate` keeps its original creator. A variant made by `commit` names whoever made the commit. An agent's first variant names whoever's request set up versioning for it, or reads "Anonymous" when background setup created it, so for an agent created before versioning it is not necessarily the agent's creator. */
40
40
  createdBy?: MavenAGI.ChangeAuthor;
41
- /** The date and time the agent variant was last updated */
41
+ /** When the agent variant last changed. It moves when `createOrUpdate` or `patch` changes the variant's title, description, or status (archiving, unarchiving, or bringing back a deleted variant), when `delete` deletes it (including when it is a descendant of the deleted variant), and whenever `workingSetRevision` advances (a staged edit, an un-staged one, a discard, or a commit that clears its working set). A traffic change doesn't move it. A variant made by `commit` starts with its `createdAt`. */
42
42
  updatedAt?: Date;
43
+ /** Who last changed the agent variant, as `updatedAt` dates it, so it also names whoever last staged, un-staged, or discarded an edit in the variant. A variant made by `commit` starts with whoever made the commit. Absent when no one was recorded. */
44
+ updatedBy?: MavenAGI.ChangeAuthor;
43
45
  }
@@ -151,12 +151,18 @@ export declare class AgentsClient {
151
151
  /**
152
152
  * @beta This endpoint is in development and may change.
153
153
  *
154
- * Get the agent's settings that can be versioned per agent variant (see `AgentSettingName`).
154
+ * Get the agent's system fallback message and content-safety reply instructions.
155
155
  *
156
- * Name a variant exactly when a setting is versioned on the agent (listed in its
157
- * `migrations.versionedEntityTypes`); otherwise it is a 400, with reason `VARIANT_REQUIRED` when no
158
- * variant is named. Each versioned setting is returned as the variant sees it, its staged
159
- * edit over its published snapshot; the rest as the agent holds them.
156
+ * Maven can turn on versioning for either setting. A versioned setting is listed in the
157
+ * agent's `migrations.versionedEntityTypes`, and its changes go through agent variants
158
+ * instead of applying to the agent directly.
159
+ *
160
+ * - If either setting is versioned, name a variant. Each versioned setting comes back as
161
+ * that variant has it: its staged edit if there is one, otherwise what was last
162
+ * published; a setting that isn't versioned comes back as the agent has it. Without a
163
+ * variant, the request is rejected with reason `VARIANT_REQUIRED`.
164
+ * - If neither setting is versioned, don't name a variant. Both come back as the agent has
165
+ * them. Naming a variant is a 400.
160
166
  *
161
167
  * <Note>**Required permission:** `read:agents`</Note>
162
168
  *
@@ -181,14 +187,18 @@ export declare class AgentsClient {
181
187
  /**
182
188
  * @beta This endpoint is in development and may change.
183
189
  *
184
- * Update the agent's settings that can be versioned per agent variant (see `AgentSettingName`).
185
- * Only the specified fields change; a null value clears one.
190
+ * Update the agent's system fallback message and content-safety reply instructions. Only the
191
+ * fields you send change; send null to clear one.
192
+ *
193
+ * - A versioned setting (listed in `migrations.versionedEntityTypes`) is staged in the
194
+ * variant you name, and goes live when that variant is published.
195
+ * - A setting that isn't versioned is updated on the agent right away.
196
+ *
197
+ * Name a variant if any setting you send is versioned (or, when you send none, if either
198
+ * is versioned), and don't name one otherwise, as for `getVersionedSettings`.
186
199
  *
187
- * A specified setting that is versioned on the agent is staged in the named variant, live once
188
- * the variant is published; the rest are updated on the agent directly. The variant rule of
189
- * `getVersionedSettings` applies to the specified settings (to all, when none is specified).
190
- * The response is what `getVersionedSettings` returns for the same variant; with none named,
191
- * versioned settings are omitted.
200
+ * Returns what `getVersionedSettings` returns for the same variant. Without a variant,
201
+ * versioned settings are left out of the response.
192
202
  *
193
203
  * <Note>**Required permission:** `edit:agents`</Note>
194
204
  *
@@ -673,12 +673,18 @@ class AgentsClient {
673
673
  /**
674
674
  * @beta This endpoint is in development and may change.
675
675
  *
676
- * Get the agent's settings that can be versioned per agent variant (see `AgentSettingName`).
676
+ * Get the agent's system fallback message and content-safety reply instructions.
677
677
  *
678
- * Name a variant exactly when a setting is versioned on the agent (listed in its
679
- * `migrations.versionedEntityTypes`); otherwise it is a 400, with reason `VARIANT_REQUIRED` when no
680
- * variant is named. Each versioned setting is returned as the variant sees it, its staged
681
- * edit over its published snapshot; the rest as the agent holds them.
678
+ * Maven can turn on versioning for either setting. A versioned setting is listed in the
679
+ * agent's `migrations.versionedEntityTypes`, and its changes go through agent variants
680
+ * instead of applying to the agent directly.
681
+ *
682
+ * - If either setting is versioned, name a variant. Each versioned setting comes back as
683
+ * that variant has it: its staged edit if there is one, otherwise what was last
684
+ * published; a setting that isn't versioned comes back as the agent has it. Without a
685
+ * variant, the request is rejected with reason `VARIANT_REQUIRED`.
686
+ * - If neither setting is versioned, don't name a variant. Both come back as the agent has
687
+ * them. Naming a variant is a 400.
682
688
  *
683
689
  * <Note>**Required permission:** `read:agents`</Note>
684
690
  *
@@ -791,14 +797,18 @@ class AgentsClient {
791
797
  /**
792
798
  * @beta This endpoint is in development and may change.
793
799
  *
794
- * Update the agent's settings that can be versioned per agent variant (see `AgentSettingName`).
795
- * Only the specified fields change; a null value clears one.
800
+ * Update the agent's system fallback message and content-safety reply instructions. Only the
801
+ * fields you send change; send null to clear one.
802
+ *
803
+ * - A versioned setting (listed in `migrations.versionedEntityTypes`) is staged in the
804
+ * variant you name, and goes live when that variant is published.
805
+ * - A setting that isn't versioned is updated on the agent right away.
806
+ *
807
+ * Name a variant if any setting you send is versioned (or, when you send none, if either
808
+ * is versioned), and don't name one otherwise, as for `getVersionedSettings`.
796
809
  *
797
- * A specified setting that is versioned on the agent is staged in the named variant, live once
798
- * the variant is published; the rest are updated on the agent directly. The variant rule of
799
- * `getVersionedSettings` applies to the specified settings (to all, when none is specified).
800
- * The response is what `getVersionedSettings` returns for the same variant; with none named,
801
- * versioned settings are omitted.
810
+ * Returns what `getVersionedSettings` returns for the same variant. Without a variant,
811
+ * versioned settings are left out of the response.
802
812
  *
803
813
  * <Note>**Required permission:** `edit:agents`</Note>
804
814
  *
@@ -6,7 +6,7 @@ export interface AgentMigrations {
6
6
  /**
7
7
  * Whether the agent's charters decide how it answers. When false, chat conversations answer from the agent's pre-charters settings (such as the agent's `prompting.persona`, `prompting.additionalPromptText` and `prompting.rejectQuestionsWithoutKnowledge`) and skip charter evaluation. Voice calls on the consult-based voice runtime evaluate charters either way, and so do simulations that set `simulationContext.evaluateWithCharters`, where that setting is enabled. Charters can be read and edited in both states.
8
8
  *
9
- * True for agents created through `agents.create`.
9
+ * True for agents created through `agents.create`. Setting it to false while the agent is versioned (`versionedEntityTypes` isn't empty) is rejected with reason `CHARTER_MODE_REQUIRED`.
10
10
  *
11
11
  * Shown in Agent Designer as "Charters evaluation".
12
12
  */
@@ -1,4 +1,4 @@
1
- /** An agent setting that can be versioned per agent variant. */
1
+ /** An agent setting whose changes can go through agent variants, once Maven turns versioning on for it on the agent. */
2
2
  export declare const AgentSettingName: {
3
3
  readonly SystemFallbackMessage: "SYSTEM_FALLBACK_MESSAGE";
4
4
  readonly ContentSafetyViolationResponsePromptText: "CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT";
@@ -2,7 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.AgentSettingName = void 0;
5
- /** An agent setting that can be versioned per agent variant. */
5
+ /** An agent setting whose changes can go through agent variants, once Maven turns versioning on for it on the agent. */
6
6
  exports.AgentSettingName = {
7
7
  SystemFallbackMessage: "SYSTEM_FALLBACK_MESSAGE",
8
8
  ContentSafetyViolationResponsePromptText: "CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * An agent's settings that can be versioned per agent variant, one field per `AgentSettingName`.
2
+ * The agent settings whose changes can go through agent variants, one field per `AgentSettingName`.
3
3
  */
4
4
  export interface VersionedAgentSettings {
5
5
  /** Text shown to end users when the system encounters an error while generating a bot response message. */
@@ -74,8 +74,12 @@ export declare class AppDirectoryClient {
74
74
  get(appId: string, requestOptions?: AppDirectoryClient.RequestOptions): core.HttpResponsePromise<MavenAGI.MarketplaceAppDetail>;
75
75
  private __get;
76
76
  /**
77
- * Installs the app on the agent, or updates settings for an existing installation. Re-runs the
78
- * postInstall lifecycle hook on each call. Returns the app as `get` does once the install is
77
+ * Installs the app on the agent, or updates settings for an existing installation. Runs the
78
+ * app's preInstall hook first: the app may store different settings than the ones sent, or
79
+ * reject them with a 400. When the app names the rejected settings, the 400's `reason` is
80
+ * `INVALID_SETTINGS` and its `fieldErrors` name each one; otherwise it has no `reason`. If the app returned settings and the stored settings changed while
81
+ * the hook ran, answers 409; reload them and retry. Re-runs the postInstall lifecycle hook on
82
+ * each call. Returns the app as `get` does once the install is
79
83
  * done, with its settings and post-install `instructions` filled in for the agent.
80
84
  *
81
85
  * The app may not work yet. Finish its setup as `get` describes: follow `instructions`, hand
@@ -282,8 +282,12 @@ class AppDirectoryClient {
282
282
  });
283
283
  }
284
284
  /**
285
- * Installs the app on the agent, or updates settings for an existing installation. Re-runs the
286
- * postInstall lifecycle hook on each call. Returns the app as `get` does once the install is
285
+ * Installs the app on the agent, or updates settings for an existing installation. Runs the
286
+ * app's preInstall hook first: the app may store different settings than the ones sent, or
287
+ * reject them with a 400. When the app names the rejected settings, the 400's `reason` is
288
+ * `INVALID_SETTINGS` and its `fieldErrors` name each one; otherwise it has no `reason`. If the app returned settings and the stored settings changed while
289
+ * the hook ran, answers 409; reload them and retry. Re-runs the postInstall lifecycle hook on
290
+ * each call. Returns the app as `get` does once the install is
287
291
  * done, with its settings and post-install `instructions` filled in for the agent.
288
292
  *
289
293
  * The app may not work yet. Finish its setup as `get` describes: follow `instructions`, hand
@@ -0,0 +1,139 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
3
+ import * as core from "../../../../core";
4
+ import * as MavenAGI from "../../../index";
5
+ export declare namespace AppsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class AppsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<AppsClient.Options>;
12
+ constructor(options: AppsClient.Options);
13
+ /**
14
+ * Create an app your organization owns, or replace one it already owns: every field the request
15
+ * leaves out is cleared. To change only some fields, use `patch`. Send `categories`,
16
+ * `capabilities`, `links` and `settingsSchema` every time, as `[]` when the app has none.
17
+ *
18
+ * App IDs are unique across Maven, so an ID another organization uses, or a deleted app used, is a
19
+ * 409. Requesting a permission you don't hold is a 403.
20
+ *
21
+ * A new app is in development: only your organization can see it in the app directory, and install
22
+ * it on its agents with the app directory's install (`POST /v1/directory/{appId}/install`). Its code
23
+ * runs as Functions, which you add with the Functions API. Making the app public, sharing it with
24
+ * other organizations, and setting its logo can't be done through this API.
25
+ *
26
+ * It can't change an app with a hosted deployment, made in App Studio, or an agent's own app (409),
27
+ * and it can't change the permissions of an app other organizations can install, because the change
28
+ * would reach them with no consent (409).
29
+ *
30
+ * <Note>**Required permission:** `edit:apps`</Note>
31
+ *
32
+ * @param {MavenAGI.AppRequest} request
33
+ * @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @throws {@link MavenAGI.NotFoundError}
36
+ * @throws {@link MavenAGI.BadRequestError}
37
+ * @throws {@link MavenAGI.PayloadTooLargeError}
38
+ * @throws {@link MavenAGI.TooManyRequestsError}
39
+ * @throws {@link MavenAGI.ServerError}
40
+ * @throws {@link errors.MavenAGIError}
41
+ * @throws {@link errors.MavenAGITimeoutError}
42
+ *
43
+ * @example
44
+ * await client.apps.createOrUpdate({
45
+ * id: "order-lookup",
46
+ * name: "Order lookup",
47
+ * shortDescription: "Looks up an order's status.",
48
+ * categories: ["CUSTOMER_SUPPORT"],
49
+ * capabilities: ["ACTIONS"],
50
+ * links: [],
51
+ * settingsSchema: [{
52
+ * type: "text",
53
+ * key: "apiKey",
54
+ * displayName: "API key"
55
+ * }],
56
+ * requestedPermissions: ["read:conversations"]
57
+ * })
58
+ */
59
+ createOrUpdate(request: MavenAGI.AppRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.AppResponse>;
60
+ private __createOrUpdate;
61
+ /**
62
+ * Change some fields of an app your organization owns. Fields the request leaves out keep their
63
+ * values. Set a text field to null to clear it; send `[]` to empty a list.
64
+ *
65
+ * An app your organization doesn't own, or that doesn't exist, is a 403. Requesting a permission
66
+ * you don't hold is a 403. It can't change an app with a hosted deployment, made in App Studio, or
67
+ * an agent's own app (409), and it can't change the permissions of an app other organizations can
68
+ * install, because the change would reach them with no consent (409).
69
+ *
70
+ * <Note>**Required permission:** `edit:apps`</Note>
71
+ *
72
+ * @param {string} appId - The ID of the app to change.
73
+ * @param {MavenAGI.AppPatchRequest} request
74
+ * @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
75
+ *
76
+ * @throws {@link MavenAGI.NotFoundError}
77
+ * @throws {@link MavenAGI.BadRequestError}
78
+ * @throws {@link MavenAGI.PayloadTooLargeError}
79
+ * @throws {@link MavenAGI.TooManyRequestsError}
80
+ * @throws {@link MavenAGI.ServerError}
81
+ * @throws {@link errors.MavenAGIError}
82
+ * @throws {@link errors.MavenAGITimeoutError}
83
+ *
84
+ * @example
85
+ * await client.apps.patch("appId", {})
86
+ */
87
+ patch(appId: string, request: MavenAGI.AppPatchRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.AppResponse>;
88
+ private __patch;
89
+ /**
90
+ * Search the apps your organization owns, newest first unless `sortDesc` is false, with how many
91
+ * agents each is installed on. Leaves out each agent's own app.
92
+ *
93
+ * <Note>**Required permission:** `read:apps`</Note>
94
+ *
95
+ * @param {MavenAGI.AppsSearchRequest} request
96
+ * @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
97
+ *
98
+ * @throws {@link MavenAGI.NotFoundError}
99
+ * @throws {@link MavenAGI.BadRequestError}
100
+ * @throws {@link MavenAGI.PayloadTooLargeError}
101
+ * @throws {@link MavenAGI.TooManyRequestsError}
102
+ * @throws {@link MavenAGI.ServerError}
103
+ * @throws {@link errors.MavenAGIError}
104
+ * @throws {@link errors.MavenAGITimeoutError}
105
+ *
106
+ * @example
107
+ * await client.apps.search({})
108
+ */
109
+ search(request: MavenAGI.AppsSearchRequest, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.AppsSearchResponse>;
110
+ private __search;
111
+ /**
112
+ * Delete an app your organization owns. An app your organization doesn't own, or that doesn't exist,
113
+ * is a 403.
114
+ *
115
+ * An app that is still installed on any agent can't be deleted: uninstall it everywhere first, or
116
+ * the request fails with a 409. Its `installCount` says how many agents have it, and the app
117
+ * directory shows whether a given agent does; uninstall it from each with the app directory's
118
+ * uninstall (`DELETE /v1/directory/{appId}/install`). That includes agents in other organizations
119
+ * an app is public or shared with, which only those organizations can uninstall.
120
+ *
121
+ * <Note>**Required permission:** `edit:apps`</Note>
122
+ *
123
+ * @param {string} appId - The ID of the app to delete.
124
+ * @param {AppsClient.RequestOptions} requestOptions - Request-specific configuration.
125
+ *
126
+ * @throws {@link MavenAGI.NotFoundError}
127
+ * @throws {@link MavenAGI.BadRequestError}
128
+ * @throws {@link MavenAGI.PayloadTooLargeError}
129
+ * @throws {@link MavenAGI.TooManyRequestsError}
130
+ * @throws {@link MavenAGI.ServerError}
131
+ * @throws {@link errors.MavenAGIError}
132
+ * @throws {@link errors.MavenAGITimeoutError}
133
+ *
134
+ * @example
135
+ * await client.apps.delete("appId")
136
+ */
137
+ delete(appId: string, requestOptions?: AppsClient.RequestOptions): core.HttpResponsePromise<void>;
138
+ private __delete;
139
+ }