mavenagi 1.2.67 → 1.2.69

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 (156) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/actions/client/Client.d.ts +14 -0
  3. package/api/resources/actions/client/Client.js +14 -0
  4. package/api/resources/agents/client/Client.d.ts +10 -12
  5. package/api/resources/agents/client/Client.js +10 -12
  6. package/api/resources/analytics/client/Client.d.ts +10 -0
  7. package/api/resources/analytics/client/Client.js +10 -0
  8. package/api/resources/appDirectory/client/Client.d.ts +3 -1
  9. package/api/resources/appDirectory/client/Client.js +3 -1
  10. package/api/resources/assets/client/Client.d.ts +4 -0
  11. package/api/resources/assets/client/Client.js +4 -0
  12. package/api/resources/capabilities/client/Client.d.ts +20 -0
  13. package/api/resources/capabilities/client/Client.js +20 -0
  14. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +4 -0
  15. package/api/resources/charters/client/Client.d.ts +18 -0
  16. package/api/resources/charters/client/Client.js +18 -0
  17. package/api/resources/commons/types/MetadataComparisonOperator.d.ts +4 -4
  18. package/api/resources/commons/types/MetadataComparisonOperator.js +4 -4
  19. package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +1 -1
  20. package/api/resources/commons/types/MetadataFilter.d.ts +6 -1
  21. package/api/resources/commons/types/SimulationContext.d.ts +9 -0
  22. package/api/resources/commons/types/SystemEventName.d.ts +3 -0
  23. package/api/resources/commons/types/SystemEventName.js +3 -0
  24. package/api/resources/conversation/client/Client.d.ts +42 -3
  25. package/api/resources/conversation/client/Client.js +42 -3
  26. package/api/resources/conversation/types/AskRequest.d.ts +1 -62
  27. package/api/resources/conversation/types/AskRequestBase.d.ts +67 -0
  28. package/api/resources/conversation/types/index.d.ts +1 -0
  29. package/api/resources/conversation/types/index.js +1 -0
  30. package/api/resources/conversationKickoffs/client/Client.d.ts +2 -0
  31. package/api/resources/conversationKickoffs/client/Client.js +2 -0
  32. package/api/resources/customers/client/Client.d.ts +14 -0
  33. package/api/resources/customers/client/Client.js +14 -0
  34. package/api/resources/events/client/Client.d.ts +16 -3
  35. package/api/resources/events/client/Client.js +16 -3
  36. package/api/resources/inbox/client/Client.d.ts +20 -0
  37. package/api/resources/inbox/client/Client.js +20 -0
  38. package/api/resources/intelligentFields/client/Client.d.ts +10 -0
  39. package/api/resources/intelligentFields/client/Client.js +10 -0
  40. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +1 -1
  41. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +2 -1
  42. package/api/resources/knowledge/client/Client.d.ts +40 -0
  43. package/api/resources/knowledge/client/Client.js +40 -0
  44. package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -1
  45. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
  46. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
  47. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -5
  48. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
  49. package/api/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +4 -0
  50. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -3
  51. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -2
  52. package/api/resources/knowledge/types/index.d.ts +1 -0
  53. package/api/resources/knowledge/types/index.js +1 -0
  54. package/api/resources/segments/client/Client.d.ts +16 -0
  55. package/api/resources/segments/client/Client.js +16 -0
  56. package/api/resources/translations/client/Client.d.ts +2 -0
  57. package/api/resources/translations/client/Client.js +2 -0
  58. package/api/resources/triggers/client/Client.d.ts +10 -0
  59. package/api/resources/triggers/client/Client.js +10 -0
  60. package/api/resources/users/client/Client.d.ts +16 -0
  61. package/api/resources/users/client/Client.js +16 -0
  62. package/api/resources/voice/client/Client.d.ts +3 -2
  63. package/api/resources/voice/client/Client.js +3 -2
  64. package/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +14 -3
  65. package/api/resources/voice/types/VoiceSessionTokenResponse.d.ts +11 -1
  66. package/api/resources/voice/types/VoiceWebRtcTransport.d.ts +10 -0
  67. package/api/resources/voice/types/VoiceWebRtcTransport.js +13 -0
  68. package/api/resources/voice/types/index.d.ts +1 -0
  69. package/api/resources/voice/types/index.js +1 -0
  70. package/api/resources/voiceConversations/client/Client.d.ts +5 -2
  71. package/api/resources/voiceConversations/client/Client.js +6 -3
  72. package/api/resources/voiceConversations/client/Socket.d.ts +2 -1
  73. package/api/resources/voiceConversations/client/Socket.js +10 -0
  74. package/api/resources/voiceConversations/types/AgentAudioChunk.d.ts +1 -1
  75. package/api/resources/voiceConversations/types/AudioFormat.d.ts +13 -0
  76. package/api/resources/voiceConversations/types/AudioFormat.js +13 -0
  77. package/api/resources/voiceConversations/types/ClientMark.d.ts +10 -0
  78. package/api/resources/voiceConversations/types/Config.d.ts +2 -6
  79. package/api/resources/voiceConversations/types/ConversationReady.d.ts +5 -2
  80. package/api/resources/voiceConversations/types/Error_.d.ts +8 -0
  81. package/api/resources/voiceConversations/types/Mark.d.ts +9 -0
  82. package/api/resources/voiceConversations/types/ServerEventBase.d.ts +3 -2
  83. package/api/resources/voiceConversations/types/Transcript.d.ts +11 -0
  84. package/api/resources/voiceConversations/types/TranscriptRole.d.ts +5 -0
  85. package/api/resources/voiceConversations/types/TranscriptRole.js +8 -0
  86. package/api/resources/voiceConversations/types/VadSpeechStarted.d.ts +8 -0
  87. package/api/resources/voiceConversations/types/VadSpeechStarted.js +3 -0
  88. package/api/resources/voiceConversations/types/VadSpeechStopped.d.ts +7 -0
  89. package/api/resources/voiceConversations/types/VadSpeechStopped.js +3 -0
  90. package/api/resources/voiceConversations/types/index.d.ts +6 -5
  91. package/api/resources/voiceConversations/types/index.js +6 -5
  92. package/package.json +1 -1
  93. package/reference.md +292 -21
  94. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +2 -0
  95. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +2 -0
  96. package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
  97. package/serialization/resources/commons/types/SimulationContext.js +1 -0
  98. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  99. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  100. package/serialization/resources/conversation/types/AskRequest.d.ts +2 -12
  101. package/serialization/resources/conversation/types/AskRequest.js +5 -13
  102. package/serialization/resources/conversation/types/AskRequestBase.d.ts +20 -0
  103. package/serialization/resources/conversation/types/AskRequestBase.js +52 -0
  104. package/serialization/resources/conversation/types/index.d.ts +1 -0
  105. package/serialization/resources/conversation/types/index.js +1 -0
  106. package/serialization/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +7 -0
  107. package/serialization/resources/{voiceConversations/types/UserTranscript.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +5 -8
  108. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -1
  109. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
  110. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -1
  111. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
  112. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  113. package/serialization/resources/knowledge/types/index.js +1 -0
  114. package/serialization/resources/voice/types/VoiceSessionTokenRequest.d.ts +2 -0
  115. package/serialization/resources/voice/types/VoiceSessionTokenRequest.js +2 -0
  116. package/serialization/resources/voice/types/VoiceSessionTokenResponse.d.ts +1 -0
  117. package/serialization/resources/voice/types/VoiceSessionTokenResponse.js +1 -0
  118. package/serialization/resources/voice/types/VoiceWebRtcTransport.d.ts +7 -0
  119. package/serialization/resources/voice/types/VoiceWebRtcTransport.js +39 -0
  120. package/serialization/resources/voice/types/index.d.ts +1 -0
  121. package/serialization/resources/voice/types/index.js +1 -0
  122. package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.d.ts +6 -7
  123. package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.js +8 -10
  124. package/serialization/resources/voiceConversations/types/ClientMark.d.ts +10 -0
  125. package/serialization/resources/voiceConversations/types/ClientMark.js +42 -0
  126. package/serialization/resources/voiceConversations/types/Config.d.ts +0 -2
  127. package/serialization/resources/voiceConversations/types/Config.js +0 -2
  128. package/serialization/resources/voiceConversations/types/ConversationReady.d.ts +3 -1
  129. package/serialization/resources/voiceConversations/types/ConversationReady.js +6 -2
  130. package/serialization/resources/voiceConversations/types/{ConversationEnded.d.ts → Mark.d.ts} +4 -3
  131. package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +4 -3
  132. package/serialization/resources/voiceConversations/types/ServerEventBase.d.ts +1 -1
  133. package/serialization/resources/voiceConversations/types/ServerEventBase.js +1 -1
  134. package/serialization/resources/voiceConversations/types/{AgentTranscript.d.ts → Transcript.d.ts} +5 -3
  135. package/serialization/resources/voiceConversations/types/{AgentTranscript.js → Transcript.js} +5 -3
  136. package/serialization/resources/voiceConversations/types/TranscriptRole.d.ts +7 -0
  137. package/serialization/resources/voiceConversations/types/TranscriptRole.js +39 -0
  138. package/serialization/resources/voiceConversations/types/{UserTranscript.d.ts → VadSpeechStarted.d.ts} +3 -4
  139. package/serialization/resources/voiceConversations/types/{ConversationEnded.js → VadSpeechStarted.js} +3 -3
  140. package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.d.ts → VadSpeechStopped.d.ts} +3 -3
  141. package/serialization/resources/voiceConversations/types/{UserFinishedSpeaking.js → VadSpeechStopped.js} +3 -3
  142. package/serialization/resources/voiceConversations/types/index.d.ts +6 -5
  143. package/serialization/resources/voiceConversations/types/index.js +6 -5
  144. package/version.d.ts +1 -1
  145. package/version.js +1 -1
  146. package/api/resources/voiceConversations/types/AgentTranscript.d.ts +0 -9
  147. package/api/resources/voiceConversations/types/ConversationEnded.d.ts +0 -7
  148. package/api/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -7
  149. package/api/resources/voiceConversations/types/UserStartedSpeaking.d.ts +0 -7
  150. package/api/resources/voiceConversations/types/UserTranscript.d.ts +0 -9
  151. package/serialization/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -10
  152. /package/api/resources/{voiceConversations/types/AgentTranscript.js → conversation/types/AskRequestBase.js} +0 -0
  153. /package/api/resources/{voiceConversations/types/ConversationEnded.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +0 -0
  154. /package/api/resources/voiceConversations/types/{UserFinishedSpeaking.js → ClientMark.js} +0 -0
  155. /package/api/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +0 -0
  156. /package/api/resources/voiceConversations/types/{UserTranscript.js → Transcript.js} +0 -0
@@ -58,6 +58,14 @@ class CustomersClient {
58
58
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
59
59
  }
60
60
  /**
61
+ * Search customers of an agent.
62
+ *
63
+ * Pagination is limited to the first 10,000 matching customers: `(page + 1) * size` must not
64
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
65
+ * later results.
66
+ *
67
+ * <Note>**Required permission:** `read:agents`</Note>
68
+ *
61
69
  * @param {MavenAGI.CustomersSearchRequest} request
62
70
  * @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
63
71
  *
@@ -159,6 +167,8 @@ class CustomersClient {
159
167
  /**
160
168
  * Update a customer of an agent or create it if it doesn't exist. In case of an update, fields not provided (e.g., description, status) will be preserved.
161
169
  *
170
+ * <Note>**Required permission:** `edit:agents`</Note>
171
+ *
162
172
  * @param {MavenAGI.CustomerRequest} request
163
173
  * @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
164
174
  *
@@ -265,6 +275,8 @@ class CustomersClient {
265
275
  /**
266
276
  * Get a customer by its supplied ID
267
277
  *
278
+ * <Note>**Required permission:** `read:agents`</Note>
279
+ *
268
280
  * @param {string} customerReferenceId - The reference ID of the customer to get. All other entity ID fields are inferred from the request.
269
281
  * @param {MavenAGI.CustomerGetRequest} request
270
282
  * @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -375,6 +387,8 @@ class CustomersClient {
375
387
  * The `appId` field can be provided to update a customer owned by a different app.
376
388
  * All other fields will overwrite the existing value on the customer only if provided.
377
389
  *
390
+ * <Note>**Required permission:** `edit:agents`</Note>
391
+ *
378
392
  * @param {string} customerReferenceId - The reference ID of the customer to update. All other entity ID fields are inferred from the request.
379
393
  * @param {MavenAGI.CustomerPatchRequest} request
380
394
  * @param {CustomersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -11,7 +11,10 @@ export declare class EventsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
12
12
  constructor(options: EventsClient.Options);
13
13
  /**
14
- * Create a new event. Events are immutable, so a create that reuses the `referenceId` of an existing event in the same app is rejected with a 409 and leaves that event unchanged.
14
+ * Create a new event. Events are immutable, so a create that reuses the `referenceId` of an
15
+ * existing event in the same app is rejected with a 409 and leaves that event unchanged.
16
+ *
17
+ * <Note>**Required permission:** `ask:agent`. An event with `executionMode: SIMULATION` also needs `create:simulations`.</Note>
15
18
  *
16
19
  * @param {MavenAGI.EventRequest} request
17
20
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -41,7 +44,13 @@ export declare class EventsClient {
41
44
  create(request: MavenAGI.EventRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.EventResponse>;
42
45
  private __create;
43
46
  /**
44
- * Search events
47
+ * Search events.
48
+ *
49
+ * Pagination is limited to the first 10,000 matching events: `(page + 1) * size` must not
50
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
51
+ * later results.
52
+ *
53
+ * <Note>**Required permission:** `read:events`</Note>
45
54
  *
46
55
  * @param {MavenAGI.EventsSearchRequest} request
47
56
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -62,6 +71,8 @@ export declare class EventsClient {
62
71
  /**
63
72
  * Retrieve details of a specific Event item by its ID.
64
73
  *
74
+ * <Note>**Required permission:** `read:events`</Note>
75
+ *
65
76
  * @param {string} eventId - The ID of the Event to get.
66
77
  * @param {MavenAGI.EventGetRequest} request
67
78
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -84,7 +95,9 @@ export declare class EventsClient {
84
95
  /**
85
96
  * Export events to a CSV file.
86
97
  *
87
- * This will output a summary of each event that matches the supplied filter. A maximum of 10,000 events can be exported at a time. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
98
+ * This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
99
+ *
100
+ * <Note>**Required permission:** `read:events`</Note>
88
101
  *
89
102
  * @throws {@link MavenAGI.NotFoundError}
90
103
  * @throws {@link MavenAGI.BadRequestError}
@@ -58,7 +58,10 @@ class EventsClient {
58
58
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
59
59
  }
60
60
  /**
61
- * Create a new event. Events are immutable, so a create that reuses the `referenceId` of an existing event in the same app is rejected with a 409 and leaves that event unchanged.
61
+ * Create a new event. Events are immutable, so a create that reuses the `referenceId` of an
62
+ * existing event in the same app is rejected with a 409 and leaves that event unchanged.
63
+ *
64
+ * <Note>**Required permission:** `ask:agent`. An event with `executionMode: SIMULATION` also needs `create:simulations`.</Note>
62
65
  *
63
66
  * @param {MavenAGI.EventRequest} request
64
67
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -170,7 +173,13 @@ class EventsClient {
170
173
  });
171
174
  }
172
175
  /**
173
- * Search events
176
+ * Search events.
177
+ *
178
+ * Pagination is limited to the first 10,000 matching events: `(page + 1) * size` must not
179
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
180
+ * later results.
181
+ *
182
+ * <Note>**Required permission:** `read:events`</Note>
174
183
  *
175
184
  * @param {MavenAGI.EventsSearchRequest} request
176
185
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -273,6 +282,8 @@ class EventsClient {
273
282
  /**
274
283
  * Retrieve details of a specific Event item by its ID.
275
284
  *
285
+ * <Note>**Required permission:** `read:events`</Note>
286
+ *
276
287
  * @param {string} eventId - The ID of the Event to get.
277
288
  * @param {MavenAGI.EventGetRequest} request
278
289
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -382,7 +393,9 @@ class EventsClient {
382
393
  /**
383
394
  * Export events to a CSV file.
384
395
  *
385
- * This will output a summary of each event that matches the supplied filter. A maximum of 10,000 events can be exported at a time. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
396
+ * This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
397
+ *
398
+ * <Note>**Required permission:** `read:events`</Note>
386
399
  *
387
400
  * @throws {@link MavenAGI.NotFoundError}
388
401
  * @throws {@link MavenAGI.BadRequestError}
@@ -13,6 +13,12 @@ export declare class InboxClient {
13
13
  /**
14
14
  * Retrieve a paginated list of inbox items for an agent.
15
15
  *
16
+ * Pagination is limited to the first 10,000 matching inbox items: `(page + 1) * size` must not
17
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
18
+ * later results.
19
+ *
20
+ * <Note>**Required permission:** `read:agents`. A search whose results include a Duplicate Documents item also needs `read:documents`.</Note>
21
+ *
16
22
  * @param {MavenAGI.InboxSearchRequest} request
17
23
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
18
24
  *
@@ -32,6 +38,8 @@ export declare class InboxClient {
32
38
  /**
33
39
  * Update an inbox item or create it if it doesn't exist.
34
40
  *
41
+ * <Note>**Required permission:** `edit:agents`</Note>
42
+ *
35
43
  * @param {MavenAGI.InboxItemCreateRequest} request
36
44
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
37
45
  *
@@ -82,6 +90,8 @@ export declare class InboxClient {
82
90
  * The `appId` field can be provided to update a inbox item owned by a different app.
83
91
  * All other fields will overwrite the existing value on the inbox item only if provided.
84
92
  *
93
+ * <Note>**Required permission:** `edit:agents`. Patching a Duplicate Documents item also needs `read:documents`.</Note>
94
+ *
85
95
  * @param {string} inboxItemId - The ID of the inbox item to patch
86
96
  * @param {MavenAGI.InboxItemPatchRequest} request
87
97
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -109,6 +119,8 @@ export declare class InboxClient {
109
119
  *
110
120
  * Update inbox item tag fields. All tags provided will overwrite the existing tags on the inbox item.
111
121
  *
122
+ * <Note>**Required permission:** `edit:agents`. Updating tags on a Missing Knowledge or Duplicate Documents item also needs `read:agents`, and on a Duplicate Documents item `read:documents` too.</Note>
123
+ *
112
124
  * @param {string} inboxItemId - The ID of the inbox item to add tags to.
113
125
  * @param {MavenAGI.InboxItemApplyTagsRequest} request
114
126
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -131,6 +143,8 @@ export declare class InboxClient {
131
143
  /**
132
144
  * Retrieve details of a specific inbox item by its ID.
133
145
  *
146
+ * <Note>**Required permission:** `read:agents`. Getting a Duplicate Documents item also needs `read:documents`.</Note>
147
+ *
134
148
  * @param {string} inboxItemId - The ID of the inbox item to get. All other entity ID fields are inferred from the request.
135
149
  * @param {MavenAGI.InboxItemRequest} request
136
150
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -153,6 +167,8 @@ export declare class InboxClient {
153
167
  /**
154
168
  * Retrieve a suggested fix. Includes document information if the fix is a Missing Knowledge suggestion.
155
169
  *
170
+ * <Note>**Required permission:** `read:agents`. Getting a Duplicate Documents fix also needs `read:documents`.</Note>
171
+ *
156
172
  * @param {string} inboxItemFixId - Unique identifier for the inbox fix.
157
173
  * @param {MavenAGI.InboxItemFixRequest} request
158
174
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -175,6 +191,8 @@ export declare class InboxClient {
175
191
  /**
176
192
  * Apply a list of fixes belonging to an inbox item.
177
193
  *
194
+ * <Note>**Required permission:** `edit:agents`. Applying fixes also needs `read:agents`. A Missing Knowledge fix also needs `create:documents`, and a Duplicate Documents fix also needs `read:documents`, `edit:documents` and `create:documents`.</Note>
195
+ *
178
196
  * @param {string} inboxItemId - Unique identifier for the inbox item.
179
197
  * @param {MavenAGI.ApplyFixesRequest} request
180
198
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -198,6 +216,8 @@ export declare class InboxClient {
198
216
  /**
199
217
  * Ignore a specific inbox item by its ID.
200
218
  *
219
+ * <Note>**Required permission:** `edit:agents`</Note>
220
+ *
201
221
  * @param {string} inboxItemId - Unique identifier for the inbox item.
202
222
  * @param {MavenAGI.InboxItemIgnoreRequest} request
203
223
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -60,6 +60,12 @@ class InboxClient {
60
60
  /**
61
61
  * Retrieve a paginated list of inbox items for an agent.
62
62
  *
63
+ * Pagination is limited to the first 10,000 matching inbox items: `(page + 1) * size` must not
64
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
65
+ * later results.
66
+ *
67
+ * <Note>**Required permission:** `read:agents`. A search whose results include a Duplicate Documents item also needs `read:documents`.</Note>
68
+ *
63
69
  * @param {MavenAGI.InboxSearchRequest} request
64
70
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
65
71
  *
@@ -161,6 +167,8 @@ class InboxClient {
161
167
  /**
162
168
  * Update an inbox item or create it if it doesn't exist.
163
169
  *
170
+ * <Note>**Required permission:** `edit:agents`</Note>
171
+ *
164
172
  * @param {MavenAGI.InboxItemCreateRequest} request
165
173
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
166
174
  *
@@ -293,6 +301,8 @@ class InboxClient {
293
301
  * The `appId` field can be provided to update a inbox item owned by a different app.
294
302
  * All other fields will overwrite the existing value on the inbox item only if provided.
295
303
  *
304
+ * <Note>**Required permission:** `edit:agents`. Patching a Duplicate Documents item also needs `read:documents`.</Note>
305
+ *
296
306
  * @param {string} inboxItemId - The ID of the inbox item to patch
297
307
  * @param {MavenAGI.InboxItemPatchRequest} request
298
308
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -402,6 +412,8 @@ class InboxClient {
402
412
  *
403
413
  * Update inbox item tag fields. All tags provided will overwrite the existing tags on the inbox item.
404
414
  *
415
+ * <Note>**Required permission:** `edit:agents`. Updating tags on a Missing Knowledge or Duplicate Documents item also needs `read:agents`, and on a Duplicate Documents item `read:documents` too.</Note>
416
+ *
405
417
  * @param {string} inboxItemId - The ID of the inbox item to add tags to.
406
418
  * @param {MavenAGI.InboxItemApplyTagsRequest} request
407
419
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -506,6 +518,8 @@ class InboxClient {
506
518
  /**
507
519
  * Retrieve details of a specific inbox item by its ID.
508
520
  *
521
+ * <Note>**Required permission:** `read:agents`. Getting a Duplicate Documents item also needs `read:documents`.</Note>
522
+ *
509
523
  * @param {string} inboxItemId - The ID of the inbox item to get. All other entity ID fields are inferred from the request.
510
524
  * @param {MavenAGI.InboxItemRequest} request
511
525
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -615,6 +629,8 @@ class InboxClient {
615
629
  /**
616
630
  * Retrieve a suggested fix. Includes document information if the fix is a Missing Knowledge suggestion.
617
631
  *
632
+ * <Note>**Required permission:** `read:agents`. Getting a Duplicate Documents fix also needs `read:documents`.</Note>
633
+ *
618
634
  * @param {string} inboxItemFixId - Unique identifier for the inbox fix.
619
635
  * @param {MavenAGI.InboxItemFixRequest} request
620
636
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -724,6 +740,8 @@ class InboxClient {
724
740
  /**
725
741
  * Apply a list of fixes belonging to an inbox item.
726
742
  *
743
+ * <Note>**Required permission:** `edit:agents`. Applying fixes also needs `read:agents`. A Missing Knowledge fix also needs `create:documents`, and a Duplicate Documents fix also needs `read:documents`, `edit:documents` and `create:documents`.</Note>
744
+ *
727
745
  * @param {string} inboxItemId - Unique identifier for the inbox item.
728
746
  * @param {MavenAGI.ApplyFixesRequest} request
729
747
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -821,6 +839,8 @@ class InboxClient {
821
839
  /**
822
840
  * Ignore a specific inbox item by its ID.
823
841
  *
842
+ * <Note>**Required permission:** `edit:agents`</Note>
843
+ *
824
844
  * @param {string} inboxItemId - Unique identifier for the inbox item.
825
845
  * @param {MavenAGI.InboxItemIgnoreRequest} request
826
846
  * @param {InboxClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -26,6 +26,8 @@ export declare class IntelligentFieldsClient {
26
26
  * a different type, create a new field. A field deleted in the variant may be recreated
27
27
  * with any type.
28
28
  *
29
+ * <Note>**Required permission:** `edit:agents`</Note>
30
+ *
29
31
  * @param {MavenAGI.IntelligentFieldRequest} request
30
32
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
31
33
  *
@@ -71,6 +73,8 @@ export declare class IntelligentFieldsClient {
71
73
  *
72
74
  * Get an intelligent field by its supplied ID
73
75
  *
76
+ * <Note>**Required permission:** `read:agents`</Note>
77
+ *
74
78
  * @param {string} fieldReferenceId - The reference ID of the intelligent field to get. All other entity ID fields are inferred from the request.
75
79
  * @param {MavenAGI.IntelligentFieldGetRequest} request
76
80
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -96,6 +100,8 @@ export declare class IntelligentFieldsClient {
96
100
  * start evaluating it, or `INACTIVE` to stop. `name`, `entityType`, and `validationType`
97
101
  * cannot be changed after creation.
98
102
  *
103
+ * <Note>**Required permission:** `edit:agents`</Note>
104
+ *
99
105
  * @param {string} fieldReferenceId - The reference ID of the intelligent field to patch.
100
106
  * @param {MavenAGI.IntelligentFieldPatchRequest} request
101
107
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -135,6 +141,8 @@ export declare class IntelligentFieldsClient {
135
141
  *
136
142
  * Deleted fields cannot be modified.
137
143
  *
144
+ * <Note>**Required permission:** `edit:agents`</Note>
145
+ *
138
146
  * @param {string} fieldReferenceId - The reference ID of the intelligent field to delete.
139
147
  * @param {MavenAGI.IntelligentFieldDeleteRequest} request
140
148
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -160,6 +168,8 @@ export declare class IntelligentFieldsClient {
160
168
  * Values only exist for fields that were ACTIVE when the entity was evaluated, so a
161
169
  * newly activated field returns nothing until evaluation has run.
162
170
  *
171
+ * <Note>**Required permission:** `read:agents`</Note>
172
+ *
163
173
  * @param {MavenAGI.IntelligentFieldValueSearchRequest} request
164
174
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
165
175
  *
@@ -73,6 +73,8 @@ class IntelligentFieldsClient {
73
73
  * a different type, create a new field. A field deleted in the variant may be recreated
74
74
  * with any type.
75
75
  *
76
+ * <Note>**Required permission:** `edit:agents`</Note>
77
+ *
76
78
  * @param {MavenAGI.IntelligentFieldRequest} request
77
79
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
78
80
  *
@@ -200,6 +202,8 @@ class IntelligentFieldsClient {
200
202
  *
201
203
  * Get an intelligent field by its supplied ID
202
204
  *
205
+ * <Note>**Required permission:** `read:agents`</Note>
206
+ *
203
207
  * @param {string} fieldReferenceId - The reference ID of the intelligent field to get. All other entity ID fields are inferred from the request.
204
208
  * @param {MavenAGI.IntelligentFieldGetRequest} request
205
209
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -314,6 +318,8 @@ class IntelligentFieldsClient {
314
318
  * start evaluating it, or `INACTIVE` to stop. `name`, `entityType`, and `validationType`
315
319
  * cannot be changed after creation.
316
320
  *
321
+ * <Note>**Required permission:** `edit:agents`</Note>
322
+ *
317
323
  * @param {string} fieldReferenceId - The reference ID of the intelligent field to patch.
318
324
  * @param {MavenAGI.IntelligentFieldPatchRequest} request
319
325
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -435,6 +441,8 @@ class IntelligentFieldsClient {
435
441
  *
436
442
  * Deleted fields cannot be modified.
437
443
  *
444
+ * <Note>**Required permission:** `edit:agents`</Note>
445
+ *
438
446
  * @param {string} fieldReferenceId - The reference ID of the intelligent field to delete.
439
447
  * @param {MavenAGI.IntelligentFieldDeleteRequest} request
440
448
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -549,6 +557,8 @@ class IntelligentFieldsClient {
549
557
  * Values only exist for fields that were ACTIVE when the entity was evaluated, so a
550
558
  * newly activated field returns nothing until evaluation has run.
551
559
  *
560
+ * <Note>**Required permission:** `read:agents`</Note>
561
+ *
552
562
  * @param {MavenAGI.IntelligentFieldValueSearchRequest} request
553
563
  * @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
554
564
  *
@@ -26,7 +26,7 @@ export interface IntelligentFieldPatchRequest {
26
26
  status?: MavenAGI.CapabilityStatus;
27
27
  /** A plain text description of the intelligent field. */
28
28
  description?: string;
29
- /** Updated enum options for fields that constrain the LLM to a finite set. Omit to leave unchanged. The new list must be a superset of the existing options (add-only; removals are rejected). */
29
+ /** Updated enum options for fields that constrain the LLM to a finite set. Omit to leave unchanged. The list replaces the existing options: an option left out is removed and is no longer offered to the LLM, while values already computed with it are kept. A field that has options must keep at least one, so an empty list is rejected. An option kept from the existing list must keep its `label`; changing it is rejected. */
30
30
  enumOptions?: MavenAGI.EnumOption[];
31
31
  /** The agent variant to stage this patch in. Required on an agent with versioned intelligent fields; a patch that omits it there is rejected with reason `VARIANT_REQUIRED`. */
32
32
  variantId?: MavenAGI.EntityIdWithoutAgent;
@@ -21,7 +21,8 @@ export interface IntelligentFieldCore {
21
21
  definition: string;
22
22
  /**
23
23
  * The finite set of values this field may take. Omit to let the LLM produce any value of
24
- * the `validationType`. Options may be added later with the patch endpoint, but not removed.
24
+ * the `validationType`. Options may be added or removed later with the patch endpoint, as long
25
+ * as at least one remains.
25
26
  *
26
27
  * Shown in Agent Designer as "Select Options".
27
28
  */
@@ -13,6 +13,12 @@ export declare class KnowledgeClient {
13
13
  /**
14
14
  * Search knowledge bases
15
15
  *
16
+ * Pagination is limited to the first 10,000 matching knowledge bases: `(page + 1) * size` must
17
+ * not exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to
18
+ * reach later results.
19
+ *
20
+ * <Note>**Required permission:** `read:agents`</Note>
21
+ *
16
22
  * @param {MavenAGI.KnowledgeBaseSearchRequest} request
17
23
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
18
24
  *
@@ -32,6 +38,8 @@ export declare class KnowledgeClient {
32
38
  /**
33
39
  * Update a knowledge base or create it if it doesn't exist.
34
40
  *
41
+ * <Note>**Required permission:** `edit:agents`</Note>
42
+ *
35
43
  * @param {MavenAGI.KnowledgeBaseRequest} request
36
44
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
37
45
  *
@@ -56,6 +64,8 @@ export declare class KnowledgeClient {
56
64
  /**
57
65
  * Get an existing knowledge base by its supplied ID
58
66
  *
67
+ * <Note>**Required permission:** `read:agents`</Note>
68
+ *
59
69
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to get. All other entity ID fields are inferred from the request.
60
70
  * @param {MavenAGI.KnowledgeBaseGetRequest} request
61
71
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -79,6 +89,8 @@ export declare class KnowledgeClient {
79
89
  * Knowledge bases refresh on a schedule determined by the `refreshFrequency` field.
80
90
  * They can also be refreshed on demand by calling this endpoint.
81
91
  *
92
+ * <Note>**Required permission:** `edit:agents`</Note>
93
+ *
82
94
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to refresh. All other entity ID fields are inferred from the request.
83
95
  * @param {MavenAGI.KnowledgeBaseRefreshRequest} request
84
96
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -107,6 +119,8 @@ export declare class KnowledgeClient {
107
119
  * An app still refreshing that version finds out on its next write to it: adding or
108
120
  * removing a document on a canceled version is rejected rather than succeeding.
109
121
  *
122
+ * <Note>**Required permission:** `edit:agents`</Note>
123
+ *
110
124
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to cancel ingestion for. All other entity ID fields are inferred from the request.
111
125
  * @param {MavenAGI.CancelKnowledgeBaseVersionRequest} request
112
126
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -127,6 +141,8 @@ export declare class KnowledgeClient {
127
141
  /**
128
142
  * Rolls the knowledge base back to its previous published version.
129
143
  *
144
+ * <Note>**Required permission:** `edit:agents`</Note>
145
+ *
130
146
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to roll back. All other entity ID fields are inferred from the request.
131
147
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
132
148
  *
@@ -149,6 +165,8 @@ export declare class KnowledgeClient {
149
165
  * The `appId` field can be provided to update a knowledge base owned by a different app.
150
166
  * All other fields will overwrite the existing value on the knowledge base only if provided.
151
167
  *
168
+ * <Note>**Required permission:** `edit:agents`</Note>
169
+ *
152
170
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to patch.
153
171
  * @param {MavenAGI.KnowledgeBasePatchRequest} request
154
172
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -184,6 +202,8 @@ export declare class KnowledgeClient {
184
202
  * If another version create for the same knowledge base is still in progress, this request may
185
203
  * return 503 with a `Retry-After` header. Nothing is changed in that case, so it is safe to retry.
186
204
  *
205
+ * <Note>**Required permission:** `edit:agents`</Note>
206
+ *
187
207
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a version for. All other entity ID fields are inferred from the request.
188
208
  * @param {MavenAGI.KnowledgeBaseVersionRequest} request
189
209
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -206,6 +226,8 @@ export declare class KnowledgeClient {
206
226
  /**
207
227
  * Finalize the latest knowledge base version. Required to indicate the version is complete. Will throw an exception if the latest version is not in progress.
208
228
  *
229
+ * <Note>**Required permission:** `edit:agents`</Note>
230
+ *
209
231
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to finalize a version for. All other entity ID fields are inferred from the request.
210
232
  * @param {MavenAGI.FinalizeKnowledgeBaseVersionRequest} request
211
233
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -237,6 +259,8 @@ export declare class KnowledgeClient {
237
259
  * version's entire progress state - no history is kept, only the most recent value is
238
260
  * retained. Will throw an exception if the target version is not in progress.
239
261
  *
262
+ * <Note>**Required permission:** `edit:agents`</Note>
263
+ *
240
264
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to report progress for. All other entity ID fields are inferred from the request.
241
265
  * @param {MavenAGI.KnowledgeBaseVersionProgressRequest} request
242
266
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -268,6 +292,8 @@ export declare class KnowledgeClient {
268
292
  /**
269
293
  * List all active versions for a knowledge base. Returns the most recent versions first.
270
294
  *
295
+ * <Note>**Required permission:** `read:agents`</Note>
296
+ *
271
297
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to list versions for. All other entity ID fields are inferred from the request.
272
298
  * @param {MavenAGI.KnowledgeBaseVersionsListRequest} request
273
299
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -288,6 +314,12 @@ export declare class KnowledgeClient {
288
314
  /**
289
315
  * Search knowledge documents
290
316
  *
317
+ * Pagination is limited to the first 10,000 matching knowledge documents: `(page + 1) * size`
318
+ * must not exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter
319
+ * to reach later results.
320
+ *
321
+ * <Note>**Required permission:** `read:documents`</Note>
322
+ *
291
323
  * @param {MavenAGI.KnowledgeDocumentSearchRequest} request
292
324
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
293
325
  *
@@ -313,6 +345,8 @@ export declare class KnowledgeClient {
313
345
  * have changed, a new document version will not be created. The existing version will be reused.
314
346
  * </Tip>
315
347
  *
348
+ * <Note>**Required permission:** `create:documents`</Note>
349
+ *
316
350
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a document for. All other entity ID fields are inferred from the request.
317
351
  * @param {MavenAGI.KnowledgeDocumentRequest} request
318
352
  * @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -351,6 +385,8 @@ export declare class KnowledgeClient {
351
385
  * Delete knowledge document from a specific version.
352
386
  * Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the version is not in progress.
353
387
  *
388
+ * <Note>**Required permission:** `delete:documents`</Note>
389
+ *
354
390
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base that contains the document to delete. All other entity ID fields are inferred from the request
355
391
  * @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to delete. All other entity ID fields are inferred from the request.
356
392
  * @param {MavenAGI.KnowledgeDeleteRequest} request
@@ -378,6 +414,8 @@ export declare class KnowledgeClient {
378
414
  /**
379
415
  * Get a knowledge document by its supplied version and document IDs. Response includes document content in markdown format.
380
416
  *
417
+ * <Note>**Required permission:** `read:documents`</Note>
418
+ *
381
419
  * @param {string} knowledgeBaseVersionReferenceId - The reference ID of the knowledge base version that contains the document. All other entity ID fields are inferred from the request.
382
420
  * @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to get. All other entity ID fields are inferred from the request.
383
421
  * @param {MavenAGI.KnowledgeDocumentGetRequest} request
@@ -406,6 +444,8 @@ export declare class KnowledgeClient {
406
444
  * The `knowledgeBaseAppId` field can be provided to update a knowledge document in a knowledge base owned by a different app.
407
445
  * All other fields will overwrite the existing value on the knowledge document only if provided.
408
446
  *
447
+ * <Note>**Required permission:** `edit:documents`</Note>
448
+ *
409
449
  * @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to patch.
410
450
  * @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to patch.
411
451
  * @param {MavenAGI.KnowledgeDocumentPatchRequest} request