mavenagi 1.2.72 → 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 (552) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +6 -0
  3. package/Client.js +52 -42
  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/client/Client.d.ts +484 -0
  7. package/api/resources/agentVariants/client/Client.js +1888 -0
  8. package/api/resources/agentVariants/client/index.d.ts +1 -0
  9. package/api/resources/agentVariants/client/index.js +17 -0
  10. package/api/resources/agentVariants/client/requests/AgentVariantBaseGetRequest.d.ts +8 -0
  11. package/api/resources/agentVariants/client/requests/AgentVariantBaseGetRequest.js +3 -0
  12. package/api/resources/agentVariants/client/requests/AgentVariantCommitRequest.d.ts +27 -0
  13. package/api/resources/agentVariants/client/requests/AgentVariantCommitRequest.js +3 -0
  14. package/api/resources/agentVariants/client/requests/AgentVariantDeleteRequest.d.ts +8 -0
  15. package/api/resources/agentVariants/client/requests/AgentVariantDeleteRequest.js +3 -0
  16. package/api/resources/agentVariants/client/requests/DiscardWorkingSetEditsRequest.d.ts +10 -0
  17. package/api/resources/agentVariants/client/requests/DiscardWorkingSetEditsRequest.js +3 -0
  18. package/api/resources/agentVariants/client/requests/GetEntityEditByIdRequest.d.ts +17 -0
  19. package/api/resources/agentVariants/client/requests/GetEntityEditByIdRequest.js +3 -0
  20. package/api/resources/agentVariants/client/requests/GetSettingEditRequest.d.ts +13 -0
  21. package/api/resources/agentVariants/client/requests/GetSettingEditRequest.js +3 -0
  22. package/api/resources/agentVariants/client/requests/GetTrafficConfigRequest.d.ts +8 -0
  23. package/api/resources/agentVariants/client/requests/GetTrafficConfigRequest.js +3 -0
  24. package/api/resources/agentVariants/client/requests/ListTrafficConfigsRequest.d.ts +12 -0
  25. package/api/resources/agentVariants/client/requests/ListTrafficConfigsRequest.js +3 -0
  26. package/api/resources/agentVariants/client/requests/PatchAgentVariantRequest.d.ts +15 -0
  27. package/api/resources/agentVariants/client/requests/PatchAgentVariantRequest.js +3 -0
  28. package/api/resources/agentVariants/client/requests/WorkingSetDiffRequest.d.ts +8 -0
  29. package/api/resources/agentVariants/client/requests/WorkingSetDiffRequest.js +3 -0
  30. package/api/resources/agentVariants/client/requests/index.d.ts +10 -0
  31. package/api/resources/agentVariants/client/requests/index.js +2 -0
  32. package/api/resources/agentVariants/exports.d.ts +2 -0
  33. package/api/resources/agentVariants/exports.js +21 -0
  34. package/api/resources/agentVariants/index.d.ts +2 -0
  35. package/api/resources/agentVariants/index.js +18 -0
  36. package/api/resources/agentVariants/types/AddedCharterDiff.d.ts +5 -0
  37. package/api/resources/agentVariants/types/AddedCharterDiff.js +3 -0
  38. package/api/resources/agentVariants/types/AddedIntelligentFieldDiff.d.ts +5 -0
  39. package/api/resources/agentVariants/types/AddedIntelligentFieldDiff.js +3 -0
  40. package/api/resources/agentVariants/types/AgentSettingEdits.d.ts +16 -0
  41. package/api/resources/agentVariants/types/AgentSettingEdits.js +3 -0
  42. package/api/resources/agentVariants/types/AgentSettingsDiff.d.ts +12 -0
  43. package/api/resources/agentVariants/types/AgentSettingsDiff.js +3 -0
  44. package/api/resources/agentVariants/types/AgentVariantCompareRequest.d.ts +14 -0
  45. package/api/resources/agentVariants/types/AgentVariantCompareRequest.js +3 -0
  46. package/api/resources/agentVariants/types/AgentVariantCompareResponse.d.ts +78 -0
  47. package/api/resources/agentVariants/types/AgentVariantCompareResponse.js +3 -0
  48. package/api/resources/agentVariants/types/AgentVariantDiff.d.ts +9 -0
  49. package/api/resources/agentVariants/types/AgentVariantDiff.js +3 -0
  50. package/api/resources/agentVariants/types/AgentVariantFilter.d.ts +9 -0
  51. package/api/resources/agentVariants/types/AgentVariantFilter.js +3 -0
  52. package/api/resources/agentVariants/types/AgentVariantListRequest.d.ts +3 -0
  53. package/api/resources/agentVariants/types/AgentVariantListRequest.js +3 -0
  54. package/api/resources/agentVariants/types/AgentVariantRequest.d.ts +28 -0
  55. package/api/resources/agentVariants/types/AgentVariantRequest.js +3 -0
  56. package/api/resources/agentVariants/types/AgentVariantResponse.d.ts +45 -0
  57. package/api/resources/agentVariants/types/AgentVariantResponse.js +3 -0
  58. package/api/resources/agentVariants/types/AgentVariantSearchResult.d.ts +7 -0
  59. package/api/resources/agentVariants/types/AgentVariantSearchResult.js +3 -0
  60. package/api/resources/agentVariants/types/AgentVariantSortField.d.ts +6 -0
  61. package/api/resources/agentVariants/types/AgentVariantSortField.js +9 -0
  62. package/api/resources/agentVariants/types/AgentVariantStatus.d.ts +9 -0
  63. package/api/resources/agentVariants/types/AgentVariantStatus.js +12 -0
  64. package/api/resources/agentVariants/types/AgentVariantTraffic.d.ts +7 -0
  65. package/api/resources/agentVariants/types/AgentVariantTraffic.js +3 -0
  66. package/api/resources/agentVariants/types/AgentVariantsSearchRequest.d.ts +6 -0
  67. package/api/resources/agentVariants/types/AgentVariantsSearchRequest.js +3 -0
  68. package/api/resources/agentVariants/types/AgentVariantsSearchResponse.d.ts +63 -0
  69. package/api/resources/agentVariants/types/AgentVariantsSearchResponse.js +3 -0
  70. package/api/resources/agentVariants/types/CharterDiff.d.ts +29 -0
  71. package/api/resources/agentVariants/types/CharterDiff.js +3 -0
  72. package/api/resources/agentVariants/types/CharterEntityEdit.d.ts +5 -0
  73. package/api/resources/agentVariants/types/CharterEntityEdit.js +3 -0
  74. package/api/resources/agentVariants/types/DeletedCharterDiff.d.ts +5 -0
  75. package/api/resources/agentVariants/types/DeletedCharterDiff.js +3 -0
  76. package/api/resources/agentVariants/types/DeletedIntelligentFieldDiff.d.ts +5 -0
  77. package/api/resources/agentVariants/types/DeletedIntelligentFieldDiff.js +3 -0
  78. package/api/resources/agentVariants/types/EntityEdit.d.ts +16 -0
  79. package/api/resources/agentVariants/types/EntityEdit.js +3 -0
  80. package/api/resources/agentVariants/types/EntityEditResponse.d.ts +7 -0
  81. package/api/resources/agentVariants/types/EntityEditResponse.js +3 -0
  82. package/api/resources/agentVariants/types/IntelligentFieldDiff.d.ts +27 -0
  83. package/api/resources/agentVariants/types/IntelligentFieldDiff.js +3 -0
  84. package/api/resources/agentVariants/types/IntelligentFieldEntityEdit.d.ts +5 -0
  85. package/api/resources/agentVariants/types/IntelligentFieldEntityEdit.js +3 -0
  86. package/api/resources/agentVariants/types/ListAgentVariantsResponse.d.ts +42 -0
  87. package/api/resources/agentVariants/types/ListAgentVariantsResponse.js +3 -0
  88. package/api/resources/agentVariants/types/ListTrafficConfigsResponse.d.ts +5 -0
  89. package/api/resources/agentVariants/types/ListTrafficConfigsResponse.js +3 -0
  90. package/api/resources/agentVariants/types/ModifiedCharterDiff.d.ts +7 -0
  91. package/api/resources/agentVariants/types/ModifiedCharterDiff.js +3 -0
  92. package/api/resources/agentVariants/types/ModifiedIntelligentFieldDiff.d.ts +7 -0
  93. package/api/resources/agentVariants/types/ModifiedIntelligentFieldDiff.js +3 -0
  94. package/api/resources/agentVariants/types/TrafficAllocation.d.ts +15 -0
  95. package/api/resources/agentVariants/types/TrafficAllocation.js +3 -0
  96. package/api/resources/agentVariants/types/TrafficConfigResponse.d.ts +16 -0
  97. package/api/resources/agentVariants/types/TrafficConfigResponse.js +3 -0
  98. package/api/resources/agentVariants/types/TrafficFraction.d.ts +4 -0
  99. package/api/resources/agentVariants/types/TrafficFraction.js +3 -0
  100. package/api/resources/agentVariants/types/TrafficRule.d.ts +9 -0
  101. package/api/resources/agentVariants/types/TrafficRule.js +3 -0
  102. package/api/resources/agentVariants/types/UpdateTrafficConfigRequest.d.ts +7 -0
  103. package/api/resources/agentVariants/types/UpdateTrafficConfigRequest.js +3 -0
  104. package/api/resources/agentVariants/types/WorkingSetDiffResponse.d.ts +12 -0
  105. package/api/resources/agentVariants/types/WorkingSetDiffResponse.js +3 -0
  106. package/api/resources/agentVariants/types/index.d.ts +35 -0
  107. package/api/resources/agentVariants/types/index.js +51 -0
  108. package/api/resources/agents/client/Client.d.ts +72 -0
  109. package/api/resources/agents/client/Client.js +244 -0
  110. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +8 -3
  111. package/api/resources/agents/client/requests/GetVersionedAgentSettingsRequest.d.ts +10 -0
  112. package/api/resources/agents/client/requests/GetVersionedAgentSettingsRequest.js +3 -0
  113. package/api/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.d.ts +17 -0
  114. package/api/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.js +3 -0
  115. package/api/resources/agents/client/requests/index.d.ts +2 -0
  116. package/api/resources/agents/types/Agent.d.ts +9 -1
  117. package/api/resources/agents/types/AgentMigrations.d.ts +20 -0
  118. package/api/resources/agents/types/AgentMigrations.js +3 -0
  119. package/api/resources/agents/types/AgentMigrationsPatch.d.ts +7 -0
  120. package/api/resources/agents/types/AgentMigrationsPatch.js +3 -0
  121. package/api/resources/agents/types/AgentPrompting.d.ts +1 -1
  122. package/api/resources/agents/types/AgentSettingName.d.ts +6 -0
  123. package/api/resources/agents/types/AgentSettingName.js +9 -0
  124. package/api/resources/agents/types/VersionedAgentSettings.d.ts +13 -0
  125. package/api/resources/agents/types/VersionedAgentSettings.js +3 -0
  126. package/api/resources/agents/types/VersionedEntityTypeOrSetting.d.ts +5 -0
  127. package/api/resources/agents/types/VersionedEntityTypeOrSetting.js +3 -0
  128. package/api/resources/agents/types/index.d.ts +5 -0
  129. package/api/resources/agents/types/index.js +5 -0
  130. package/api/resources/analytics/client/Client.d.ts +1 -1
  131. package/api/resources/analytics/client/Client.js +1 -1
  132. package/api/resources/analytics/types/AgentUserTableRequest.d.ts +2 -0
  133. package/api/resources/analytics/types/ConversationAnalyticsRequest.d.ts +7 -1
  134. package/api/resources/analytics/types/ConversationTableRequest.d.ts +7 -1
  135. package/api/resources/analytics/types/EventTableRequest.d.ts +1 -0
  136. package/api/resources/analytics/types/GroupByBase.d.ts +1 -1
  137. package/api/resources/analytics/types/TimeInterval.d.ts +11 -0
  138. package/api/resources/analytics/types/TimeInterval.js +11 -0
  139. package/api/resources/appDirectory/client/Client.d.ts +45 -2
  140. package/api/resources/appDirectory/client/Client.js +53 -2
  141. package/api/resources/appDirectory/types/InstallDirectoryAppRequest.d.ts +27 -5
  142. package/api/resources/appSettings/client/Client.d.ts +11 -4
  143. package/api/resources/appSettings/client/Client.js +11 -4
  144. package/api/resources/apps/client/Client.d.ts +139 -0
  145. package/api/resources/apps/client/Client.js +504 -0
  146. package/api/resources/apps/client/index.d.ts +1 -0
  147. package/api/resources/apps/client/index.js +2 -0
  148. package/api/resources/apps/exports.d.ts +2 -0
  149. package/api/resources/apps/exports.js +21 -0
  150. package/api/resources/apps/index.d.ts +2 -0
  151. package/api/resources/apps/index.js +18 -0
  152. package/api/resources/apps/types/AppPatchRequest.d.ts +26 -0
  153. package/api/resources/apps/types/AppPatchRequest.js +3 -0
  154. package/api/resources/apps/types/AppRequest.d.ts +38 -0
  155. package/api/resources/apps/types/AppRequest.js +3 -0
  156. package/api/resources/apps/types/AppResponse.d.ts +29 -0
  157. package/api/resources/apps/types/AppResponse.js +3 -0
  158. package/api/resources/apps/types/AppsSearchRequest.d.ts +3 -0
  159. package/api/resources/apps/types/AppsSearchRequest.js +3 -0
  160. package/api/resources/apps/types/AppsSearchResponse.d.ts +5 -0
  161. package/api/resources/apps/types/AppsSearchResponse.js +3 -0
  162. package/api/resources/apps/types/index.d.ts +5 -0
  163. package/api/resources/apps/types/index.js +21 -0
  164. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +7 -0
  165. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +4 -0
  166. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.js +4 -0
  167. package/api/resources/charters/client/Client.d.ts +8 -1
  168. package/api/resources/charters/client/Client.js +8 -1
  169. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +7 -4
  170. package/api/resources/charters/types/CharterBase.d.ts +5 -3
  171. package/api/resources/charters/types/CharterEdit.d.ts +18 -0
  172. package/api/resources/charters/types/CharterEdit.js +3 -0
  173. package/api/resources/charters/types/CharterPayload.d.ts +10 -0
  174. package/api/resources/charters/types/CharterPayload.js +3 -0
  175. package/api/resources/charters/types/CharterResponse.d.ts +17 -2
  176. package/api/resources/charters/types/CharterSummary.d.ts +17 -2
  177. package/api/resources/charters/types/index.d.ts +2 -0
  178. package/api/resources/charters/types/index.js +2 -0
  179. package/api/resources/commons/types/ActionResponse.d.ts +2 -0
  180. package/api/resources/commons/types/AttachmentNotSentToModelReason.d.ts +11 -0
  181. package/api/resources/commons/types/AttachmentNotSentToModelReason.js +14 -0
  182. package/api/resources/commons/types/AttachmentNotSentToModelWarning.d.ts +10 -0
  183. package/api/resources/commons/types/AttachmentNotSentToModelWarning.js +3 -0
  184. package/api/resources/commons/types/BaseConversationResponse.d.ts +4 -0
  185. package/api/resources/commons/types/BotLogicKnowledgeItem.d.ts +2 -0
  186. package/api/resources/commons/types/BotMessage.d.ts +9 -0
  187. package/api/resources/commons/types/BotMessageWarning.d.ts +13 -0
  188. package/api/resources/commons/types/BotMessageWarning.js +3 -0
  189. package/api/resources/commons/types/BotResponseMetadata.d.ts +5 -0
  190. package/api/resources/commons/types/CapabilityBase.d.ts +4 -0
  191. package/api/resources/commons/types/ChangeAuthor.d.ts +1 -1
  192. package/api/resources/commons/types/EntityType.d.ts +3 -0
  193. package/api/resources/commons/types/EntityType.js +3 -0
  194. package/api/resources/commons/types/ErrorMessage.d.ts +2 -0
  195. package/api/resources/commons/types/ErrorReason.d.ts +9 -3
  196. package/api/resources/commons/types/ErrorReason.js +9 -3
  197. package/api/resources/commons/types/Feedback.d.ts +8 -0
  198. package/api/resources/commons/types/FieldError.d.ts +6 -0
  199. package/api/resources/commons/types/FieldError.js +3 -0
  200. package/api/resources/commons/types/InboxItemBase.d.ts +13 -0
  201. package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +9 -1
  202. package/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +13 -1
  203. package/api/resources/commons/types/ResolutionStatus.d.ts +4 -4
  204. package/api/resources/commons/types/ResolutionStatus.js +4 -4
  205. package/api/resources/commons/types/SimulationSetupFields.d.ts +2 -3
  206. package/api/resources/commons/types/SystemEventName.d.ts +6 -0
  207. package/api/resources/commons/types/SystemEventName.js +6 -0
  208. package/api/resources/commons/types/UserEvent.d.ts +8 -0
  209. package/api/resources/commons/types/UserMessage.d.ts +4 -0
  210. package/api/resources/commons/types/index.d.ts +4 -0
  211. package/api/resources/commons/types/index.js +4 -0
  212. package/api/resources/conversation/client/Client.d.ts +20 -1
  213. package/api/resources/conversation/client/Client.js +20 -1
  214. package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +1 -1
  215. package/api/resources/conversation/types/AskRequestFields.d.ts +3 -2
  216. package/api/resources/conversation/types/BillableFilterField.d.ts +1 -1
  217. package/api/resources/conversation/types/BillableFilterField.js +1 -1
  218. package/api/resources/conversation/types/ConversationFilter.d.ts +2 -2
  219. package/api/resources/conversation/types/ConversationRequest.d.ts +2 -1
  220. package/api/resources/conversation/types/NumericConversationField.d.ts +13 -0
  221. package/api/resources/conversation/types/NumericConversationField.js +13 -0
  222. package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -1
  223. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +5 -0
  224. package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +2 -0
  225. package/api/resources/developersCommons/types/AppDirectoryDetails.d.ts +23 -0
  226. package/api/resources/developersCommons/types/AppDirectoryDetails.js +3 -0
  227. package/api/resources/developersCommons/types/AppDirectoryListing.d.ts +14 -0
  228. package/api/resources/developersCommons/types/AppDirectoryListing.js +3 -0
  229. package/api/resources/developersCommons/types/BaseApp.d.ts +1 -9
  230. package/api/resources/developersCommons/types/BaseDetailApp.d.ts +1 -18
  231. package/api/resources/developersCommons/types/MarketplaceAppDetail.d.ts +8 -4
  232. package/api/resources/developersCommons/types/index.d.ts +2 -0
  233. package/api/resources/developersCommons/types/index.js +2 -0
  234. package/api/resources/events/client/Client.d.ts +1 -1
  235. package/api/resources/events/client/Client.js +1 -1
  236. package/api/resources/index.d.ts +7 -0
  237. package/api/resources/index.js +8 -1
  238. package/api/resources/intelligentFields/client/Client.d.ts +13 -4
  239. package/api/resources/intelligentFields/client/Client.js +13 -4
  240. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
  241. package/api/resources/intelligentFields/types/IntelligentFieldEdit.d.ts +16 -0
  242. package/api/resources/intelligentFields/types/IntelligentFieldEdit.js +3 -0
  243. package/api/resources/intelligentFields/types/IntelligentFieldPayload.d.ts +12 -0
  244. package/api/resources/intelligentFields/types/IntelligentFieldPayload.js +3 -0
  245. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +3 -4
  246. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +4 -1
  247. package/api/resources/intelligentFields/types/index.d.ts +2 -0
  248. package/api/resources/intelligentFields/types/index.js +2 -0
  249. package/api/resources/knowledge/client/Client.d.ts +19 -2
  250. package/api/resources/knowledge/client/Client.js +19 -2
  251. package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +5 -0
  252. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +6 -0
  253. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
  254. package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
  255. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +4 -0
  256. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +4 -0
  257. package/api/resources/organizations/types/Organization.d.ts +8 -0
  258. package/api/resources/triggers/client/Client.d.ts +6 -1
  259. package/api/resources/triggers/client/Client.js +6 -1
  260. package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +11 -0
  261. package/api/resources/triggers/types/DebounceWait.d.ts +14 -0
  262. package/api/resources/triggers/types/DebounceWait.js +3 -0
  263. package/api/resources/triggers/types/DelayWait.d.ts +13 -0
  264. package/api/resources/triggers/types/DelayWait.js +3 -0
  265. package/api/resources/triggers/types/EventTriggerBase.d.ts +21 -0
  266. package/api/resources/triggers/types/EventTriggerRequest.d.ts +5 -0
  267. package/api/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
  268. package/api/resources/triggers/types/IntervalSchedule.d.ts +17 -0
  269. package/api/resources/triggers/types/IntervalSchedule.js +3 -0
  270. package/api/resources/triggers/types/ScheduleInterval.d.ts +9 -0
  271. package/api/resources/triggers/types/ScheduleInterval.js +12 -0
  272. package/api/resources/triggers/types/ScheduleSpec.d.ts +11 -0
  273. package/api/resources/triggers/types/ScheduleSpec.js +3 -0
  274. package/api/resources/triggers/types/TimeSpan.d.ts +10 -0
  275. package/api/resources/triggers/types/TimeSpan.js +3 -0
  276. package/api/resources/triggers/types/TimeSpanUnit.d.ts +7 -0
  277. package/api/resources/triggers/types/TimeSpanUnit.js +10 -0
  278. package/api/resources/triggers/types/TriggerRateLimit.d.ts +20 -0
  279. package/api/resources/triggers/types/TriggerRateLimit.js +3 -0
  280. package/api/resources/triggers/types/TriggerSchedule.d.ts +30 -0
  281. package/api/resources/triggers/types/TriggerSchedule.js +3 -0
  282. package/api/resources/triggers/types/TriggerWait.d.ts +16 -0
  283. package/api/resources/triggers/types/TriggerWait.js +3 -0
  284. package/api/resources/triggers/types/TriggerWaitBase.d.ts +9 -0
  285. package/api/resources/triggers/types/TriggerWaitBase.js +3 -0
  286. package/api/resources/triggers/types/index.d.ts +11 -0
  287. package/api/resources/triggers/types/index.js +11 -0
  288. package/api/resources/users/client/Client.d.ts +1 -3
  289. package/api/resources/users/client/Client.js +1 -3
  290. package/api/resources/users/types/AgentUser.d.ts +13 -0
  291. package/api/resources/workingSet/index.d.ts +1 -0
  292. package/api/resources/workingSet/index.js +17 -0
  293. package/api/resources/workingSet/types/VariantDebugInfo.d.ts +15 -0
  294. package/api/resources/workingSet/types/VariantDebugInfo.js +3 -0
  295. package/api/resources/workingSet/types/index.d.ts +1 -0
  296. package/api/resources/workingSet/types/index.js +17 -0
  297. package/package.json +1 -1
  298. package/reference.md +2138 -301
  299. package/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +4 -0
  300. package/serialization/resources/actions/client/requests/ActionPatchRequest.js +4 -0
  301. package/serialization/resources/actions/types/ActionRequest.d.ts +2 -0
  302. package/serialization/resources/actions/types/ActionRequest.js +2 -0
  303. package/serialization/resources/agentVariants/client/index.d.ts +1 -0
  304. package/serialization/resources/agentVariants/client/index.js +17 -0
  305. package/serialization/resources/agentVariants/client/requests/AgentVariantCommitRequest.d.ts +15 -0
  306. package/serialization/resources/agentVariants/client/requests/AgentVariantCommitRequest.js +47 -0
  307. package/serialization/resources/agentVariants/client/requests/GetEntityEditByIdRequest.d.ts +11 -0
  308. package/serialization/resources/agentVariants/client/requests/GetEntityEditByIdRequest.js +43 -0
  309. package/serialization/resources/agentVariants/client/requests/GetSettingEditRequest.d.ts +11 -0
  310. package/serialization/resources/agentVariants/client/requests/GetSettingEditRequest.js +43 -0
  311. package/serialization/resources/agentVariants/client/requests/PatchAgentVariantRequest.d.ts +13 -0
  312. package/serialization/resources/agentVariants/client/requests/PatchAgentVariantRequest.js +45 -0
  313. package/serialization/resources/agentVariants/client/requests/WorkingSetDiffRequest.d.ts +9 -0
  314. package/serialization/resources/agentVariants/client/requests/WorkingSetDiffRequest.js +41 -0
  315. package/serialization/resources/agentVariants/client/requests/index.d.ts +5 -0
  316. package/serialization/resources/agentVariants/client/requests/index.js +13 -0
  317. package/serialization/resources/agentVariants/index.d.ts +2 -0
  318. package/serialization/resources/agentVariants/index.js +18 -0
  319. package/serialization/resources/agentVariants/types/AddedCharterDiff.d.ts +10 -0
  320. package/serialization/resources/agentVariants/types/AddedCharterDiff.js +42 -0
  321. package/serialization/resources/agentVariants/types/AddedIntelligentFieldDiff.d.ts +10 -0
  322. package/serialization/resources/agentVariants/types/AddedIntelligentFieldDiff.js +42 -0
  323. package/serialization/resources/agentVariants/types/AgentSettingEdits.d.ts +17 -0
  324. package/serialization/resources/agentVariants/types/AgentSettingEdits.js +49 -0
  325. package/serialization/resources/agentVariants/types/AgentSettingsDiff.d.ts +13 -0
  326. package/serialization/resources/agentVariants/types/AgentSettingsDiff.js +45 -0
  327. package/serialization/resources/agentVariants/types/AgentVariantCompareRequest.d.ts +14 -0
  328. package/serialization/resources/agentVariants/types/AgentVariantCompareRequest.js +46 -0
  329. package/serialization/resources/agentVariants/types/AgentVariantCompareResponse.d.ts +13 -0
  330. package/serialization/resources/agentVariants/types/AgentVariantCompareResponse.js +45 -0
  331. package/serialization/resources/agentVariants/types/AgentVariantDiff.d.ts +14 -0
  332. package/serialization/resources/agentVariants/types/AgentVariantDiff.js +46 -0
  333. package/serialization/resources/agentVariants/types/AgentVariantFilter.d.ts +13 -0
  334. package/serialization/resources/agentVariants/types/AgentVariantFilter.js +45 -0
  335. package/serialization/resources/agentVariants/types/AgentVariantListRequest.d.ts +9 -0
  336. package/serialization/resources/agentVariants/types/AgentVariantListRequest.js +40 -0
  337. package/serialization/resources/agentVariants/types/AgentVariantRequest.d.ts +14 -0
  338. package/serialization/resources/agentVariants/types/AgentVariantRequest.js +46 -0
  339. package/serialization/resources/agentVariants/types/AgentVariantResponse.d.ts +22 -0
  340. package/serialization/resources/agentVariants/types/AgentVariantResponse.js +54 -0
  341. package/serialization/resources/agentVariants/types/AgentVariantSearchResult.d.ts +12 -0
  342. package/serialization/resources/agentVariants/types/AgentVariantSearchResult.js +46 -0
  343. package/serialization/resources/agentVariants/types/AgentVariantSortField.d.ts +7 -0
  344. package/serialization/resources/agentVariants/types/AgentVariantSortField.js +39 -0
  345. package/serialization/resources/agentVariants/types/AgentVariantStatus.d.ts +7 -0
  346. package/serialization/resources/agentVariants/types/AgentVariantStatus.js +39 -0
  347. package/serialization/resources/agentVariants/types/AgentVariantTraffic.d.ts +11 -0
  348. package/serialization/resources/agentVariants/types/AgentVariantTraffic.js +43 -0
  349. package/serialization/resources/agentVariants/types/AgentVariantsSearchRequest.d.ts +13 -0
  350. package/serialization/resources/agentVariants/types/AgentVariantsSearchRequest.js +47 -0
  351. package/serialization/resources/agentVariants/types/AgentVariantsSearchResponse.d.ts +11 -0
  352. package/serialization/resources/agentVariants/types/AgentVariantsSearchResponse.js +45 -0
  353. package/serialization/resources/agentVariants/types/CharterDiff.d.ts +19 -0
  354. package/serialization/resources/agentVariants/types/CharterDiff.js +51 -0
  355. package/serialization/resources/agentVariants/types/CharterEntityEdit.d.ts +10 -0
  356. package/serialization/resources/agentVariants/types/CharterEntityEdit.js +42 -0
  357. package/serialization/resources/agentVariants/types/DeletedCharterDiff.d.ts +10 -0
  358. package/serialization/resources/agentVariants/types/DeletedCharterDiff.js +42 -0
  359. package/serialization/resources/agentVariants/types/DeletedIntelligentFieldDiff.d.ts +10 -0
  360. package/serialization/resources/agentVariants/types/DeletedIntelligentFieldDiff.js +42 -0
  361. package/serialization/resources/agentVariants/types/EntityEdit.d.ts +15 -0
  362. package/serialization/resources/agentVariants/types/EntityEdit.js +49 -0
  363. package/serialization/resources/agentVariants/types/EntityEditResponse.d.ts +12 -0
  364. package/serialization/resources/agentVariants/types/EntityEditResponse.js +44 -0
  365. package/serialization/resources/agentVariants/types/IntelligentFieldDiff.d.ts +19 -0
  366. package/serialization/resources/agentVariants/types/IntelligentFieldDiff.js +51 -0
  367. package/serialization/resources/agentVariants/types/IntelligentFieldEntityEdit.d.ts +10 -0
  368. package/serialization/resources/agentVariants/types/IntelligentFieldEntityEdit.js +42 -0
  369. package/serialization/resources/agentVariants/types/ListAgentVariantsResponse.d.ts +11 -0
  370. package/serialization/resources/agentVariants/types/ListAgentVariantsResponse.js +45 -0
  371. package/serialization/resources/agentVariants/types/ListTrafficConfigsResponse.d.ts +11 -0
  372. package/serialization/resources/agentVariants/types/ListTrafficConfigsResponse.js +45 -0
  373. package/serialization/resources/agentVariants/types/ModifiedCharterDiff.d.ts +11 -0
  374. package/serialization/resources/agentVariants/types/ModifiedCharterDiff.js +43 -0
  375. package/serialization/resources/agentVariants/types/ModifiedIntelligentFieldDiff.d.ts +11 -0
  376. package/serialization/resources/agentVariants/types/ModifiedIntelligentFieldDiff.js +43 -0
  377. package/serialization/resources/agentVariants/types/TrafficAllocation.d.ts +11 -0
  378. package/serialization/resources/agentVariants/types/TrafficAllocation.js +47 -0
  379. package/serialization/resources/agentVariants/types/TrafficConfigResponse.d.ts +16 -0
  380. package/serialization/resources/agentVariants/types/TrafficConfigResponse.js +48 -0
  381. package/serialization/resources/agentVariants/types/TrafficFraction.d.ts +9 -0
  382. package/serialization/resources/agentVariants/types/TrafficFraction.js +41 -0
  383. package/serialization/resources/agentVariants/types/TrafficRule.d.ts +12 -0
  384. package/serialization/resources/agentVariants/types/TrafficRule.js +44 -0
  385. package/serialization/resources/agentVariants/types/UpdateTrafficConfigRequest.d.ts +11 -0
  386. package/serialization/resources/agentVariants/types/UpdateTrafficConfigRequest.js +43 -0
  387. package/serialization/resources/agentVariants/types/WorkingSetDiffResponse.d.ts +13 -0
  388. package/serialization/resources/agentVariants/types/WorkingSetDiffResponse.js +45 -0
  389. package/serialization/resources/agentVariants/types/index.d.ts +35 -0
  390. package/serialization/resources/agentVariants/types/index.js +51 -0
  391. package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +2 -0
  392. package/serialization/resources/agents/client/requests/AgentPatchRequest.js +2 -0
  393. package/serialization/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.d.ts +12 -0
  394. package/serialization/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.js +44 -0
  395. package/serialization/resources/agents/client/requests/index.d.ts +1 -0
  396. package/serialization/resources/agents/client/requests/index.js +3 -1
  397. package/serialization/resources/agents/types/Agent.d.ts +6 -0
  398. package/serialization/resources/agents/types/Agent.js +6 -0
  399. package/serialization/resources/agents/types/AgentMigrations.d.ts +11 -0
  400. package/serialization/resources/agents/types/AgentMigrations.js +43 -0
  401. package/serialization/resources/agents/types/AgentMigrationsPatch.d.ts +9 -0
  402. package/serialization/resources/agents/types/AgentMigrationsPatch.js +41 -0
  403. package/serialization/resources/agents/types/AgentSettingName.d.ts +7 -0
  404. package/serialization/resources/agents/types/AgentSettingName.js +42 -0
  405. package/serialization/resources/agents/types/VersionedAgentSettings.d.ts +10 -0
  406. package/serialization/resources/agents/types/VersionedAgentSettings.js +42 -0
  407. package/serialization/resources/agents/types/VersionedEntityTypeOrSetting.d.ts +9 -0
  408. package/serialization/resources/agents/types/VersionedEntityTypeOrSetting.js +41 -0
  409. package/serialization/resources/agents/types/index.d.ts +5 -0
  410. package/serialization/resources/agents/types/index.js +5 -0
  411. package/serialization/resources/apps/index.d.ts +1 -0
  412. package/serialization/resources/apps/index.js +17 -0
  413. package/serialization/resources/apps/types/AppPatchRequest.d.ts +21 -0
  414. package/serialization/resources/apps/types/AppPatchRequest.js +54 -0
  415. package/serialization/resources/apps/types/AppRequest.d.ts +13 -0
  416. package/serialization/resources/apps/types/AppRequest.js +48 -0
  417. package/serialization/resources/apps/types/AppResponse.d.ts +11 -0
  418. package/serialization/resources/apps/types/AppResponse.js +45 -0
  419. package/serialization/resources/apps/types/AppsSearchRequest.d.ts +9 -0
  420. package/serialization/resources/apps/types/AppsSearchRequest.js +40 -0
  421. package/serialization/resources/apps/types/AppsSearchResponse.d.ts +11 -0
  422. package/serialization/resources/apps/types/AppsSearchResponse.js +45 -0
  423. package/serialization/resources/apps/types/index.d.ts +5 -0
  424. package/serialization/resources/apps/types/index.js +21 -0
  425. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -0
  426. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +2 -0
  427. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +1 -1
  428. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.js +1 -0
  429. package/serialization/resources/charters/types/CharterEdit.d.ts +17 -0
  430. package/serialization/resources/charters/types/CharterEdit.js +49 -0
  431. package/serialization/resources/charters/types/CharterPayload.d.ts +11 -0
  432. package/serialization/resources/charters/types/CharterPayload.js +45 -0
  433. package/serialization/resources/charters/types/CharterResponse.d.ts +3 -0
  434. package/serialization/resources/charters/types/CharterResponse.js +3 -0
  435. package/serialization/resources/charters/types/CharterSummary.d.ts +3 -0
  436. package/serialization/resources/charters/types/CharterSummary.js +3 -0
  437. package/serialization/resources/charters/types/index.d.ts +2 -0
  438. package/serialization/resources/charters/types/index.js +2 -0
  439. package/serialization/resources/commons/types/ActionResponse.d.ts +2 -0
  440. package/serialization/resources/commons/types/ActionResponse.js +2 -0
  441. package/serialization/resources/commons/types/AttachmentNotSentToModelReason.d.ts +7 -0
  442. package/serialization/resources/commons/types/AttachmentNotSentToModelReason.js +39 -0
  443. package/serialization/resources/commons/types/AttachmentNotSentToModelWarning.d.ts +13 -0
  444. package/serialization/resources/commons/types/AttachmentNotSentToModelWarning.js +45 -0
  445. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +3 -0
  446. package/serialization/resources/commons/types/BaseConversationResponse.js +3 -0
  447. package/serialization/resources/commons/types/BotMessage.d.ts +5 -0
  448. package/serialization/resources/commons/types/BotMessage.js +5 -0
  449. package/serialization/resources/commons/types/BotMessageWarning.d.ts +11 -0
  450. package/serialization/resources/commons/types/BotMessageWarning.js +47 -0
  451. package/serialization/resources/commons/types/CapabilityBase.d.ts +3 -0
  452. package/serialization/resources/commons/types/CapabilityBase.js +3 -0
  453. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  454. package/serialization/resources/commons/types/EntityType.js +1 -0
  455. package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
  456. package/serialization/resources/commons/types/ErrorMessage.js +2 -0
  457. package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
  458. package/serialization/resources/commons/types/ErrorReason.js +2 -0
  459. package/serialization/resources/commons/types/Feedback.d.ts +2 -0
  460. package/serialization/resources/commons/types/Feedback.js +2 -0
  461. package/serialization/resources/commons/types/FieldError.d.ts +10 -0
  462. package/serialization/resources/commons/types/FieldError.js +42 -0
  463. package/serialization/resources/commons/types/InboxItemBase.d.ts +3 -0
  464. package/serialization/resources/commons/types/InboxItemBase.js +3 -0
  465. package/serialization/resources/commons/types/IntelligentFieldValueResponse.d.ts +2 -0
  466. package/serialization/resources/commons/types/IntelligentFieldValueResponse.js +2 -0
  467. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  468. package/serialization/resources/commons/types/SystemEventName.js +2 -0
  469. package/serialization/resources/commons/types/UserEvent.d.ts +2 -0
  470. package/serialization/resources/commons/types/UserEvent.js +2 -0
  471. package/serialization/resources/commons/types/UserMessage.d.ts +3 -0
  472. package/serialization/resources/commons/types/UserMessage.js +3 -0
  473. package/serialization/resources/commons/types/index.d.ts +4 -0
  474. package/serialization/resources/commons/types/index.js +4 -0
  475. package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
  476. package/serialization/resources/conversation/types/NumericConversationField.js +1 -0
  477. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +2 -0
  478. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +2 -0
  479. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +2 -0
  480. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +2 -0
  481. package/serialization/resources/developersCommons/types/AppDirectoryDetails.d.ts +13 -0
  482. package/serialization/resources/developersCommons/types/AppDirectoryDetails.js +46 -0
  483. package/serialization/resources/developersCommons/types/AppDirectoryListing.d.ts +14 -0
  484. package/serialization/resources/developersCommons/types/AppDirectoryListing.js +46 -0
  485. package/serialization/resources/developersCommons/types/BaseApp.d.ts +2 -7
  486. package/serialization/resources/developersCommons/types/BaseApp.js +5 -8
  487. package/serialization/resources/developersCommons/types/BaseDetailApp.d.ts +3 -7
  488. package/serialization/resources/developersCommons/types/BaseDetailApp.js +3 -7
  489. package/serialization/resources/developersCommons/types/index.d.ts +2 -0
  490. package/serialization/resources/developersCommons/types/index.js +2 -0
  491. package/serialization/resources/index.d.ts +7 -0
  492. package/serialization/resources/index.js +8 -1
  493. package/serialization/resources/intelligentFields/types/IntelligentFieldEdit.d.ts +17 -0
  494. package/serialization/resources/intelligentFields/types/IntelligentFieldEdit.js +49 -0
  495. package/serialization/resources/intelligentFields/types/IntelligentFieldPayload.d.ts +13 -0
  496. package/serialization/resources/intelligentFields/types/IntelligentFieldPayload.js +47 -0
  497. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +0 -3
  498. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +0 -3
  499. package/serialization/resources/intelligentFields/types/index.d.ts +2 -0
  500. package/serialization/resources/intelligentFields/types/index.js +2 -0
  501. package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +2 -0
  502. package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +2 -0
  503. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +5 -0
  504. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +5 -0
  505. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +3 -0
  506. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +3 -0
  507. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +3 -0
  508. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +3 -0
  509. package/serialization/resources/organizations/types/Organization.d.ts +5 -0
  510. package/serialization/resources/organizations/types/Organization.js +5 -0
  511. package/serialization/resources/triggers/client/requests/PartialUpdateRequest.d.ts +8 -0
  512. package/serialization/resources/triggers/client/requests/PartialUpdateRequest.js +8 -0
  513. package/serialization/resources/triggers/types/DebounceWait.d.ts +11 -0
  514. package/serialization/resources/triggers/types/DebounceWait.js +45 -0
  515. package/serialization/resources/triggers/types/DelayWait.d.ts +11 -0
  516. package/serialization/resources/triggers/types/DelayWait.js +45 -0
  517. package/serialization/resources/triggers/types/EventTriggerBase.d.ts +6 -0
  518. package/serialization/resources/triggers/types/EventTriggerBase.js +6 -0
  519. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
  520. package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
  521. package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +4 -0
  522. package/serialization/resources/triggers/types/EventTriggerResponse.js +4 -0
  523. package/serialization/resources/triggers/types/IntervalSchedule.d.ts +14 -0
  524. package/serialization/resources/triggers/types/IntervalSchedule.js +46 -0
  525. package/serialization/resources/triggers/types/ScheduleInterval.d.ts +7 -0
  526. package/serialization/resources/triggers/types/ScheduleInterval.js +39 -0
  527. package/serialization/resources/triggers/types/ScheduleSpec.d.ts +11 -0
  528. package/serialization/resources/triggers/types/ScheduleSpec.js +47 -0
  529. package/serialization/resources/triggers/types/TimeSpan.d.ts +11 -0
  530. package/serialization/resources/triggers/types/TimeSpan.js +43 -0
  531. package/serialization/resources/triggers/types/TimeSpanUnit.d.ts +7 -0
  532. package/serialization/resources/triggers/types/TimeSpanUnit.js +39 -0
  533. package/serialization/resources/triggers/types/TriggerRateLimit.d.ts +13 -0
  534. package/serialization/resources/triggers/types/TriggerRateLimit.js +45 -0
  535. package/serialization/resources/triggers/types/TriggerSchedule.d.ts +12 -0
  536. package/serialization/resources/triggers/types/TriggerSchedule.js +44 -0
  537. package/serialization/resources/triggers/types/TriggerWait.d.ts +15 -0
  538. package/serialization/resources/triggers/types/TriggerWait.js +49 -0
  539. package/serialization/resources/triggers/types/TriggerWaitBase.d.ts +10 -0
  540. package/serialization/resources/triggers/types/TriggerWaitBase.js +42 -0
  541. package/serialization/resources/triggers/types/index.d.ts +11 -0
  542. package/serialization/resources/triggers/types/index.js +11 -0
  543. package/serialization/resources/users/types/AgentUser.d.ts +3 -0
  544. package/serialization/resources/users/types/AgentUser.js +3 -0
  545. package/serialization/resources/workingSet/index.d.ts +1 -0
  546. package/serialization/resources/workingSet/index.js +17 -0
  547. package/serialization/resources/workingSet/types/VariantDebugInfo.d.ts +10 -0
  548. package/serialization/resources/workingSet/types/VariantDebugInfo.js +42 -0
  549. package/serialization/resources/workingSet/types/index.d.ts +1 -0
  550. package/serialization/resources/workingSet/types/index.js +17 -0
  551. package/version.d.ts +1 -1
  552. package/version.js +1 -1
@@ -32,6 +32,31 @@ export declare class AppDirectoryClient {
32
32
  /**
33
33
  * Gets an app and its installation status for the agent.
34
34
  *
35
+ * Before installing, read `installationInstructions` for what to gather and set up first, and
36
+ * `settingsSchema` for the settings `install` takes.
37
+ *
38
+ * Installing is often not the last step. Once the app is installed:
39
+ *
40
+ * 1. Follow `instructions`, the app's post-install steps, filled in for this agent. They can
41
+ * name changes to make in the other system, such as a webhook to add.
42
+ * 2. Each `settingsSchema` entry of type `oauth`, including one nested in a `section`, needs a
43
+ * person to sign in to the other system, which the API cannot do. Ask someone with access to
44
+ * it to open the agent in Agent Designer, go to **Apps**, open this app and click
45
+ * **Connect**. Its value sits at the same path in `settings` as the entry in the schema:
46
+ * `settings.<key>`, or `settings.<section key>.<key>` inside a section. It is connected once
47
+ * that value has an `accessToken` (returned redacted). `status.ok: false` means the
48
+ * connection failed and needs **Reconnect**; a missing value means it was never connected.
49
+ * Connecting re-runs the app's postInstall hook.
50
+ * 3. An app that imports knowledge creates knowledge bases under its own `appId`, often only
51
+ * once its connection works. Find them with `knowledge.searchKnowledgeBases`, request body
52
+ * `{"filter": {"appIds": [appId]}}`. Check each import with
53
+ * `knowledge.listKnowledgeBaseVersions`: pass the returned `knowledgeBaseId.referenceId` as
54
+ * `knowledgeBaseReferenceId` and the same `appId`. `IN_PROGRESS` is still running,
55
+ * `SUCCEEDED` is done, `FAILED` needs a look, and `CANCELED` was stopped by a cancel request.
56
+ * Both calls need `read:agents`, which a caller holding only app permissions lacks.
57
+ *
58
+ * <Note>**Required permission:** `read:apps`</Note>
59
+ *
35
60
  * @param {string} appId
36
61
  * @param {AppDirectoryClient.RequestOptions} requestOptions - Request-specific configuration.
37
62
  *
@@ -49,7 +74,19 @@ export declare class AppDirectoryClient {
49
74
  get(appId: string, requestOptions?: AppDirectoryClient.RequestOptions): core.HttpResponsePromise<MavenAGI.MarketplaceAppDetail>;
50
75
  private __get;
51
76
  /**
52
- * Installs the app on the agent, or updates settings for an existing installation. Re-runs the postInstall lifecycle hook on each call.
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
83
+ * done, with its settings and post-install `instructions` filled in for the agent.
84
+ *
85
+ * The app may not work yet. Finish its setup as `get` describes: follow `instructions`, hand
86
+ * each `oauth` setting to a person to connect in Agent Designer, and check any knowledge
87
+ * import.
88
+ *
89
+ * <Note>**Required permission:** `install:apps`</Note>
53
90
  *
54
91
  * @param {string} appId
55
92
  * @param {MavenAGI.InstallDirectoryAppRequest} request
@@ -70,7 +107,7 @@ export declare class AppDirectoryClient {
70
107
  * }
71
108
  * })
72
109
  */
73
- install(appId: string, request: MavenAGI.InstallDirectoryAppRequest, requestOptions?: AppDirectoryClient.RequestOptions): core.HttpResponsePromise<void>;
110
+ install(appId: string, request: MavenAGI.InstallDirectoryAppRequest, requestOptions?: AppDirectoryClient.RequestOptions): core.HttpResponsePromise<MavenAGI.MarketplaceAppDetail>;
74
111
  private __install;
75
112
  /**
76
113
  * Uninstalls the app from the agent, and deletes the actions and triggers it created.
@@ -115,6 +152,12 @@ export declare class AppDirectoryClient {
115
152
  private __getSettingDownloadUrl;
116
153
  /**
117
154
  * Gets a presigned url for uploading a file app setting before installation.
155
+ * Upload the file by sending its bytes in an HTTP PUT to the returned url.
156
+ * The file must be a PNG, JPEG or web font of at most 2 MB. Once uploaded, it is read back
157
+ * as the key's value, including for a key that was cleared.
158
+ *
159
+ * `settingsKey` is the setting's full path in the app's settings schema. For an image inside a
160
+ * `section`, join the section's key and the image's key with a dot, such as `branding.logo`.
118
161
  *
119
162
  * @param {string} appId
120
163
  * @param {string} settingsKey
@@ -161,6 +161,31 @@ class AppDirectoryClient {
161
161
  /**
162
162
  * Gets an app and its installation status for the agent.
163
163
  *
164
+ * Before installing, read `installationInstructions` for what to gather and set up first, and
165
+ * `settingsSchema` for the settings `install` takes.
166
+ *
167
+ * Installing is often not the last step. Once the app is installed:
168
+ *
169
+ * 1. Follow `instructions`, the app's post-install steps, filled in for this agent. They can
170
+ * name changes to make in the other system, such as a webhook to add.
171
+ * 2. Each `settingsSchema` entry of type `oauth`, including one nested in a `section`, needs a
172
+ * person to sign in to the other system, which the API cannot do. Ask someone with access to
173
+ * it to open the agent in Agent Designer, go to **Apps**, open this app and click
174
+ * **Connect**. Its value sits at the same path in `settings` as the entry in the schema:
175
+ * `settings.<key>`, or `settings.<section key>.<key>` inside a section. It is connected once
176
+ * that value has an `accessToken` (returned redacted). `status.ok: false` means the
177
+ * connection failed and needs **Reconnect**; a missing value means it was never connected.
178
+ * Connecting re-runs the app's postInstall hook.
179
+ * 3. An app that imports knowledge creates knowledge bases under its own `appId`, often only
180
+ * once its connection works. Find them with `knowledge.searchKnowledgeBases`, request body
181
+ * `{"filter": {"appIds": [appId]}}`. Check each import with
182
+ * `knowledge.listKnowledgeBaseVersions`: pass the returned `knowledgeBaseId.referenceId` as
183
+ * `knowledgeBaseReferenceId` and the same `appId`. `IN_PROGRESS` is still running,
184
+ * `SUCCEEDED` is done, `FAILED` needs a look, and `CANCELED` was stopped by a cancel request.
185
+ * Both calls need `read:agents`, which a caller holding only app permissions lacks.
186
+ *
187
+ * <Note>**Required permission:** `read:apps`</Note>
188
+ *
164
189
  * @param {string} appId
165
190
  * @param {AppDirectoryClient.RequestOptions} requestOptions - Request-specific configuration.
166
191
  *
@@ -257,7 +282,19 @@ class AppDirectoryClient {
257
282
  });
258
283
  }
259
284
  /**
260
- * Installs the app on the agent, or updates settings for an existing installation. Re-runs the postInstall lifecycle hook on each call.
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
291
+ * done, with its settings and post-install `instructions` filled in for the agent.
292
+ *
293
+ * The app may not work yet. Finish its setup as `get` describes: follow `instructions`, hand
294
+ * each `oauth` setting to a person to connect in Agent Designer, and check any knowledge
295
+ * import.
296
+ *
297
+ * <Note>**Required permission:** `install:apps`</Note>
261
298
  *
262
299
  * @param {string} appId
263
300
  * @param {MavenAGI.InstallDirectoryAppRequest} request
@@ -304,7 +341,15 @@ class AppDirectoryClient {
304
341
  logging: this._options.logging,
305
342
  });
306
343
  if (_response.ok) {
307
- return { data: undefined, rawResponse: _response.rawResponse };
344
+ return {
345
+ data: serializers.MarketplaceAppDetail.parseOrThrow(_response.body, {
346
+ unrecognizedObjectKeys: "passthrough",
347
+ allowUnrecognizedUnionMembers: true,
348
+ allowUnrecognizedEnumValues: true,
349
+ breadcrumbsPrefix: ["response"],
350
+ }),
351
+ rawResponse: _response.rawResponse,
352
+ };
308
353
  }
309
354
  if (_response.error.reason === "status-code") {
310
355
  switch (_response.error.statusCode) {
@@ -547,6 +592,12 @@ class AppDirectoryClient {
547
592
  }
548
593
  /**
549
594
  * Gets a presigned url for uploading a file app setting before installation.
595
+ * Upload the file by sending its bytes in an HTTP PUT to the returned url.
596
+ * The file must be a PNG, JPEG or web font of at most 2 MB. Once uploaded, it is read back
597
+ * as the key's value, including for a key that was cleared.
598
+ *
599
+ * `settingsKey` is the setting's full path in the app's settings schema. For an image inside a
600
+ * `section`, join the section's key and the image's key with a dot, such as `branding.logo`.
550
601
  *
551
602
  * @param {string} appId
552
603
  * @param {string} settingsKey
@@ -5,9 +5,28 @@ export interface InstallDirectoryAppRequest {
5
5
  * The keys and accepted values are defined by the app itself: fetch the app with
6
6
  * `get` and read its `settingsSchema`, where every entry carries a `key`, a `type`, and
7
7
  * whether it is `required`. Values are merged into the installation's existing settings:
8
- * keys you omit keep their stored value, and the server does not currently reject an unknown
9
- * key or require an entry the schema marks `required`. Sending an empty object installs an
10
- * app that declares no settings.
8
+ * keys you omit keep their stored value. The server does not currently reject an unknown key.
9
+ *
10
+ * After the merge, the settings must satisfy the schema, or the request fails with a 400 and
11
+ * nothing is saved. The error lists every problem as `<path>: <message>` (for example
12
+ * `Invalid settings: apiKey: required; auth.region: Must be us or eu`), with each entry
13
+ * named by its path (`apiKey`, `auth.region`, `rules[0].team`), so one corrected request
14
+ * can fix them all. The checks are:
15
+ *
16
+ * - Every entry marked `required` has a value. `null`, `""` and `[]` count as missing. An
17
+ * entry you leave out that has a `defaultValue` counts as set, but sending it empty does
18
+ * not. `oauth` and `image` entries are never required here, because they are set up
19
+ * apart from this request.
20
+ * - Every value matches each of its entry's `validations` patterns. The message is the
21
+ * pattern's `errorMessage`. For an `array`, each item is checked. Patterns run with RE2
22
+ * syntax, so one that uses a lookaround or a backreference is not checked here.
23
+ * - A `jsonSchema` entry's value is valid against the entry's `jsonSchema`. A schema that
24
+ * uses `pattern` or `patternProperties` anywhere is not checked here.
25
+ * - A `oneOf` value's `type` names one of the entry's options. The message lists them.
26
+ *
27
+ * Inside a `oneOf`, only the fields of the option its `type` selects are checked, and inside
28
+ * a `complexarray` each item's fields are. Sending an empty object installs an app with no
29
+ * required settings.
11
30
  *
12
31
  * Sensitive entries are returned redacted by `get`, and sending one back unchanged here is a
13
32
  * no-op that keeps the stored value, so a settings object can be read, edited and written
@@ -23,11 +42,14 @@ export interface InstallDirectoryAppRequest {
23
42
  * | `array` | list of strings |
24
43
  * | `complexarray` | list of objects |
25
44
  * | `oneOf`, `jsonSchema` | object matching the entry's schema |
26
- * | `image` | omitted — see below |
45
+ * | `section` | object keyed by the section's field keys |
46
+ * | `oauth`, `image` | omitted (see below) |
27
47
  *
28
48
  * `image` entries are file settings. Do not send their bytes here: upload them first with
29
49
  * `getSettingUploadUrl` using the same setting key, and the stored file is picked up
30
- * automatically. `section` entries are layout only and take no value.
50
+ * automatically. To remove an image, send an empty string for its key. A URL string sent for
51
+ * an `image` key is stored, but the next read replaces it with a link to a file that was never
52
+ * uploaded, so the image appears broken. A person connects `oauth` entries after install.
31
53
  *
32
54
  * ```json
33
55
  * {
@@ -11,10 +11,10 @@ export declare class AppSettingsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<AppSettingsClient.Options>;
12
12
  constructor(options: AppSettingsClient.Options);
13
13
  /**
14
- * @beta This endpoint is in development and may change.
15
- *
16
14
  * Search for app settings which have the `$index` key set to the provided value.
17
15
  *
16
+ * Searches only the installations of the calling app, the app whose credentials make the request.
17
+ *
18
18
  * You can set the `$index` key using the Update app settings API.
19
19
  *
20
20
  * <Warning>This API currently requires an organization ID and agent ID for any agent which is installed on the app. This requirement will be removed in a future update.</Warning>
@@ -38,7 +38,10 @@ export declare class AppSettingsClient {
38
38
  search(request: MavenAGI.SearchAppSettingsRequest, requestOptions?: AppSettingsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.SearchAppSettingsResponse>;
39
39
  private __search;
40
40
  /**
41
- * Get app settings set during installation
41
+ * Get the settings of the calling app's installation on the agent. The calling app is the app
42
+ * whose credentials make the request, so this cannot read another app's settings. Returns 404
43
+ * when the calling app is not installed on the agent. To read another app's settings, use the
44
+ * app directory `get` endpoint with that app's ID.
42
45
  *
43
46
  * @param {AppSettingsClient.RequestOptions} requestOptions - Request-specific configuration.
44
47
  *
@@ -56,7 +59,11 @@ export declare class AppSettingsClient {
56
59
  get(requestOptions?: AppSettingsClient.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
57
60
  private __get;
58
61
  /**
59
- * Update app settings. Performs a merge of the provided settings with the existing app settings.
62
+ * Update the settings of the calling app's installation on the agent. The calling app is the
63
+ * app whose credentials make the request, so this cannot change another app's settings. To
64
+ * change another app's settings, use the app directory `install` endpoint with that app's ID.
65
+ *
66
+ * Performs a merge of the provided settings with the existing app settings.
60
67
  *
61
68
  * - If a new key is provided, it will be added to the app settings.
62
69
  * - If an existing key is provided, it will be updated.
@@ -58,10 +58,10 @@ class AppSettingsClient {
58
58
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
59
59
  }
60
60
  /**
61
- * @beta This endpoint is in development and may change.
62
- *
63
61
  * Search for app settings which have the `$index` key set to the provided value.
64
62
  *
63
+ * Searches only the installations of the calling app, the app whose credentials make the request.
64
+ *
65
65
  * You can set the `$index` key using the Update app settings API.
66
66
  *
67
67
  * <Warning>This API currently requires an organization ID and agent ID for any agent which is installed on the app. This requirement will be removed in a future update.</Warning>
@@ -172,7 +172,10 @@ class AppSettingsClient {
172
172
  });
173
173
  }
174
174
  /**
175
- * Get app settings set during installation
175
+ * Get the settings of the calling app's installation on the agent. The calling app is the app
176
+ * whose credentials make the request, so this cannot read another app's settings. Returns 404
177
+ * when the calling app is not installed on the agent. To read another app's settings, use the
178
+ * app directory `get` endpoint with that app's ID.
176
179
  *
177
180
  * @param {AppSettingsClient.RequestOptions} requestOptions - Request-specific configuration.
178
181
  *
@@ -269,7 +272,11 @@ class AppSettingsClient {
269
272
  });
270
273
  }
271
274
  /**
272
- * Update app settings. Performs a merge of the provided settings with the existing app settings.
275
+ * Update the settings of the calling app's installation on the agent. The calling app is the
276
+ * app whose credentials make the request, so this cannot change another app's settings. To
277
+ * change another app's settings, use the app directory `install` endpoint with that app's ID.
278
+ *
279
+ * Performs a merge of the provided settings with the existing app settings.
273
280
  *
274
281
  * - If a new key is provided, it will be added to the app settings.
275
282
  * - If an existing key is provided, it will be updated.
@@ -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
+ }