mavenagi 1.2.66 → 1.2.68

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 (143) 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 +1 -1
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +4 -2
  65. package/api/resources/voiceConversations/client/Client.d.ts +5 -2
  66. package/api/resources/voiceConversations/client/Client.js +6 -3
  67. package/api/resources/voiceConversations/client/Socket.d.ts +2 -1
  68. package/api/resources/voiceConversations/client/Socket.js +10 -0
  69. package/api/resources/voiceConversations/types/AgentAudioChunk.d.ts +1 -1
  70. package/api/resources/voiceConversations/types/AudioFormat.d.ts +13 -0
  71. package/api/resources/voiceConversations/types/AudioFormat.js +13 -0
  72. package/api/resources/voiceConversations/types/ClientMark.d.ts +10 -0
  73. package/api/resources/voiceConversations/types/Config.d.ts +2 -6
  74. package/api/resources/voiceConversations/types/ConversationReady.d.ts +5 -2
  75. package/api/resources/voiceConversations/types/Error_.d.ts +8 -0
  76. package/api/resources/voiceConversations/types/Mark.d.ts +9 -0
  77. package/api/resources/voiceConversations/types/ServerEventBase.d.ts +3 -2
  78. package/api/resources/voiceConversations/types/Transcript.d.ts +11 -0
  79. package/api/resources/voiceConversations/types/TranscriptRole.d.ts +5 -0
  80. package/api/resources/voiceConversations/types/TranscriptRole.js +8 -0
  81. package/api/resources/voiceConversations/types/VadSpeechStarted.d.ts +8 -0
  82. package/api/resources/voiceConversations/types/VadSpeechStarted.js +3 -0
  83. package/api/resources/voiceConversations/types/VadSpeechStopped.d.ts +7 -0
  84. package/api/resources/voiceConversations/types/VadSpeechStopped.js +3 -0
  85. package/api/resources/voiceConversations/types/index.d.ts +6 -5
  86. package/api/resources/voiceConversations/types/index.js +6 -5
  87. package/package.json +1 -1
  88. package/reference.md +290 -20
  89. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +2 -0
  90. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +2 -0
  91. package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
  92. package/serialization/resources/commons/types/SimulationContext.js +1 -0
  93. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  94. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  95. package/serialization/resources/conversation/types/AskRequest.d.ts +2 -12
  96. package/serialization/resources/conversation/types/AskRequest.js +5 -13
  97. package/serialization/resources/conversation/types/AskRequestBase.d.ts +20 -0
  98. package/serialization/resources/conversation/types/AskRequestBase.js +52 -0
  99. package/serialization/resources/conversation/types/index.d.ts +1 -0
  100. package/serialization/resources/conversation/types/index.js +1 -0
  101. package/serialization/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +7 -0
  102. package/serialization/resources/{voiceConversations/types/UserTranscript.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +5 -8
  103. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -1
  104. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
  105. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -1
  106. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
  107. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  108. package/serialization/resources/knowledge/types/index.js +1 -0
  109. package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.d.ts +6 -7
  110. package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.js +8 -10
  111. package/serialization/resources/voiceConversations/types/ClientMark.d.ts +10 -0
  112. package/serialization/resources/voiceConversations/types/ClientMark.js +42 -0
  113. package/serialization/resources/voiceConversations/types/Config.d.ts +0 -2
  114. package/serialization/resources/voiceConversations/types/Config.js +0 -2
  115. package/serialization/resources/voiceConversations/types/ConversationReady.d.ts +3 -1
  116. package/serialization/resources/voiceConversations/types/ConversationReady.js +6 -2
  117. package/serialization/resources/voiceConversations/types/{ConversationEnded.d.ts → Mark.d.ts} +4 -3
  118. package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +4 -3
  119. package/serialization/resources/voiceConversations/types/ServerEventBase.d.ts +1 -1
  120. package/serialization/resources/voiceConversations/types/ServerEventBase.js +1 -1
  121. package/serialization/resources/voiceConversations/types/{AgentTranscript.d.ts → Transcript.d.ts} +5 -3
  122. package/serialization/resources/voiceConversations/types/{AgentTranscript.js → Transcript.js} +5 -3
  123. package/serialization/resources/voiceConversations/types/TranscriptRole.d.ts +7 -0
  124. package/serialization/resources/voiceConversations/types/TranscriptRole.js +39 -0
  125. package/serialization/resources/voiceConversations/types/{UserTranscript.d.ts → VadSpeechStarted.d.ts} +3 -4
  126. package/serialization/resources/voiceConversations/types/{ConversationEnded.js → VadSpeechStarted.js} +3 -3
  127. package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.d.ts → VadSpeechStopped.d.ts} +3 -3
  128. package/serialization/resources/voiceConversations/types/{UserFinishedSpeaking.js → VadSpeechStopped.js} +3 -3
  129. package/serialization/resources/voiceConversations/types/index.d.ts +6 -5
  130. package/serialization/resources/voiceConversations/types/index.js +6 -5
  131. package/version.d.ts +1 -1
  132. package/version.js +1 -1
  133. package/api/resources/voiceConversations/types/AgentTranscript.d.ts +0 -9
  134. package/api/resources/voiceConversations/types/ConversationEnded.d.ts +0 -7
  135. package/api/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -7
  136. package/api/resources/voiceConversations/types/UserStartedSpeaking.d.ts +0 -7
  137. package/api/resources/voiceConversations/types/UserTranscript.d.ts +0 -9
  138. package/serialization/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -10
  139. /package/api/resources/{voiceConversations/types/AgentTranscript.js → conversation/types/AskRequestBase.js} +0 -0
  140. /package/api/resources/{voiceConversations/types/ConversationEnded.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +0 -0
  141. /package/api/resources/voiceConversations/types/{UserFinishedSpeaking.js → ClientMark.js} +0 -0
  142. /package/api/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +0 -0
  143. /package/api/resources/voiceConversations/types/{UserTranscript.js → Transcript.js} +0 -0
package/BaseClient.js CHANGED
@@ -46,8 +46,8 @@ function normalizeClientOptions(options) {
46
46
  const headers = (0, headers_1.mergeHeaders)({
47
47
  "X-Fern-Language": "JavaScript",
48
48
  "X-Fern-SDK-Name": "mavenagi",
49
- "X-Fern-SDK-Version": "1.2.66",
50
- "User-Agent": "mavenagi/1.2.66",
49
+ "X-Fern-SDK-Version": "1.2.68",
50
+ "User-Agent": "mavenagi/1.2.68",
51
51
  "X-Fern-Runtime": core.RUNTIME.type,
52
52
  "X-Fern-Runtime-Version": core.RUNTIME.version,
53
53
  "X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
@@ -17,6 +17,12 @@ export declare class ActionsClient {
17
17
  * at once. It returns the fields every capability shares rather than the whole Action;
18
18
  * fetch one by its kind and reference ID for the rest.
19
19
  *
20
+ * Pagination is limited to the first 10,000 matching actions: `(page + 1) * size` must not
21
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
22
+ * later results.
23
+ *
24
+ * <Note>**Required permission:** `read:agents`</Note>
25
+ *
20
26
  * @param {MavenAGI.ActionsSearchRequest} request
21
27
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
22
28
  *
@@ -36,6 +42,8 @@ export declare class ActionsClient {
36
42
  /**
37
43
  * Update an action or create it if it doesn't exist
38
44
  *
45
+ * <Note>**Required permission:** `edit:agents`</Note>
46
+ *
39
47
  * @param {MavenAGI.ActionRequest} request
40
48
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
41
49
  *
@@ -80,6 +88,8 @@ export declare class ActionsClient {
80
88
  *
81
89
  * Get an action by its supplied ID
82
90
  *
91
+ * <Note>**Required permission:** `read:agents`</Note>
92
+ *
83
93
  * @param {string} actionReferenceId - The reference ID of the action to get. All other entity ID fields are inferred from the request.
84
94
  * @param {MavenAGI.ActionGetRequest} request
85
95
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -103,6 +113,8 @@ export declare class ActionsClient {
103
113
  * The `appId` field can be provided to update an action owned by a different app.
104
114
  * All other fields will overwrite the existing value on the action only if provided.
105
115
  *
116
+ * <Note>**Required permission:** `edit:agents`</Note>
117
+ *
106
118
  * @param {string} actionReferenceId - The reference ID of the action to patch.
107
119
  * @param {MavenAGI.ActionPatchRequest} request
108
120
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -138,6 +150,8 @@ export declare class ActionsClient {
138
150
  *
139
151
  * Delete an action
140
152
  *
153
+ * <Note>**Required permission:** `edit:agents`</Note>
154
+ *
141
155
  * @param {string} actionReferenceId - The reference ID of the action to unregister. All other entity ID fields are inferred from the request.
142
156
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
143
157
  *
@@ -64,6 +64,12 @@ class ActionsClient {
64
64
  * at once. It returns the fields every capability shares rather than the whole Action;
65
65
  * fetch one by its kind and reference ID for the rest.
66
66
  *
67
+ * Pagination is limited to the first 10,000 matching actions: `(page + 1) * size` must not
68
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
69
+ * later results.
70
+ *
71
+ * <Note>**Required permission:** `read:agents`</Note>
72
+ *
67
73
  * @param {MavenAGI.ActionsSearchRequest} request
68
74
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
69
75
  *
@@ -165,6 +171,8 @@ class ActionsClient {
165
171
  /**
166
172
  * Update an action or create it if it doesn't exist
167
173
  *
174
+ * <Note>**Required permission:** `edit:agents`</Note>
175
+ *
168
176
  * @param {MavenAGI.ActionRequest} request
169
177
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
170
178
  *
@@ -291,6 +299,8 @@ class ActionsClient {
291
299
  *
292
300
  * Get an action by its supplied ID
293
301
  *
302
+ * <Note>**Required permission:** `read:agents`</Note>
303
+ *
294
304
  * @param {string} actionReferenceId - The reference ID of the action to get. All other entity ID fields are inferred from the request.
295
305
  * @param {MavenAGI.ActionGetRequest} request
296
306
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -401,6 +411,8 @@ class ActionsClient {
401
411
  * The `appId` field can be provided to update an action owned by a different app.
402
412
  * All other fields will overwrite the existing value on the action only if provided.
403
413
  *
414
+ * <Note>**Required permission:** `edit:agents`</Note>
415
+ *
404
416
  * @param {string} actionReferenceId - The reference ID of the action to patch.
405
417
  * @param {MavenAGI.ActionPatchRequest} request
406
418
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -518,6 +530,8 @@ class ActionsClient {
518
530
  *
519
531
  * Delete an action
520
532
  *
533
+ * <Note>**Required permission:** `edit:agents`</Note>
534
+ *
521
535
  * @param {string} actionReferenceId - The reference ID of the action to unregister. All other entity ID fields are inferred from the request.
522
536
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
523
537
  *
@@ -13,9 +13,9 @@ export declare class AgentsClient {
13
13
  /**
14
14
  * Search for agents across all organizations.
15
15
  *
16
- * <Tip>
17
- * This endpoint requires additional permissions. Contact support to request access.
18
- * </Tip>
16
+ * Only Maven staff hold this permission.
17
+ *
18
+ * <Note>**Required permission:** `read:all-organizations`</Note>
19
19
  *
20
20
  * @param {MavenAGI.AgentsSearchRequest} request
21
21
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -36,6 +36,8 @@ export declare class AgentsClient {
36
36
  /**
37
37
  * Lists all agents for an organization
38
38
  *
39
+ * <Note>**Required permission:** `read:agents`</Note>
40
+ *
39
41
  * @param {string} organizationReferenceId - The ID of the organization.
40
42
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
41
43
  *
@@ -55,9 +57,7 @@ export declare class AgentsClient {
55
57
  /**
56
58
  * Create a new agent
57
59
  *
58
- * <Tip>
59
- * This endpoint requires additional permissions. Contact support to request access.
60
- * </Tip>
60
+ * <Note>**Required permission:** `create:agents`</Note>
61
61
  *
62
62
  * @param {string} organizationReferenceId - The ID of the organization.
63
63
  * @param {string} agentReferenceId - The ID of the agent.
@@ -83,6 +83,8 @@ export declare class AgentsClient {
83
83
  /**
84
84
  * Get an agent
85
85
  *
86
+ * <Note>**Required permission:** `read:agents`</Note>
87
+ *
86
88
  * @param {string} organizationReferenceId - The ID of the organization.
87
89
  * @param {string} agentReferenceId - The ID of the agent.
88
90
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -104,9 +106,7 @@ export declare class AgentsClient {
104
106
  * Update mutable agent fields
105
107
  * All fields will overwrite the existing value on the agent only if provided.
106
108
  *
107
- * <Tip>
108
- * This endpoint requires additional permissions. Contact support to request access.
109
- * </Tip>
109
+ * <Note>**Required permission:** `edit:agents`</Note>
110
110
  *
111
111
  * @param {string} organizationReferenceId - The ID of the organization.
112
112
  * @param {string} agentReferenceId - The ID of the agent.
@@ -129,9 +129,7 @@ export declare class AgentsClient {
129
129
  /**
130
130
  * Delete an agent.
131
131
  *
132
- * <Tip>
133
- * This endpoint requires additional permissions. Contact support to request access.
134
- * </Tip>
132
+ * <Note>**Required permission:** `delete:agents`</Note>
135
133
  *
136
134
  * @param {string} organizationReferenceId - The ID of the organization.
137
135
  * @param {string} agentReferenceId - The ID of the agent.
@@ -60,9 +60,9 @@ class AgentsClient {
60
60
  /**
61
61
  * Search for agents across all organizations.
62
62
  *
63
- * <Tip>
64
- * This endpoint requires additional permissions. Contact support to request access.
65
- * </Tip>
63
+ * Only Maven staff hold this permission.
64
+ *
65
+ * <Note>**Required permission:** `read:all-organizations`</Note>
66
66
  *
67
67
  * @param {MavenAGI.AgentsSearchRequest} request
68
68
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -165,6 +165,8 @@ class AgentsClient {
165
165
  /**
166
166
  * Lists all agents for an organization
167
167
  *
168
+ * <Note>**Required permission:** `read:agents`</Note>
169
+ *
168
170
  * @param {string} organizationReferenceId - The ID of the organization.
169
171
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
170
172
  *
@@ -263,9 +265,7 @@ class AgentsClient {
263
265
  /**
264
266
  * Create a new agent
265
267
  *
266
- * <Tip>
267
- * This endpoint requires additional permissions. Contact support to request access.
268
- * </Tip>
268
+ * <Note>**Required permission:** `create:agents`</Note>
269
269
  *
270
270
  * @param {string} organizationReferenceId - The ID of the organization.
271
271
  * @param {string} agentReferenceId - The ID of the agent.
@@ -373,6 +373,8 @@ class AgentsClient {
373
373
  /**
374
374
  * Get an agent
375
375
  *
376
+ * <Note>**Required permission:** `read:agents`</Note>
377
+ *
376
378
  * @param {string} organizationReferenceId - The ID of the organization.
377
379
  * @param {string} agentReferenceId - The ID of the agent.
378
380
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -473,9 +475,7 @@ class AgentsClient {
473
475
  * Update mutable agent fields
474
476
  * All fields will overwrite the existing value on the agent only if provided.
475
477
  *
476
- * <Tip>
477
- * This endpoint requires additional permissions. Contact support to request access.
478
- * </Tip>
478
+ * <Note>**Required permission:** `edit:agents`</Note>
479
479
  *
480
480
  * @param {string} organizationReferenceId - The ID of the organization.
481
481
  * @param {string} agentReferenceId - The ID of the agent.
@@ -580,9 +580,7 @@ class AgentsClient {
580
580
  /**
581
581
  * Delete an agent.
582
582
  *
583
- * <Tip>
584
- * This endpoint requires additional permissions. Contact support to request access.
585
- * </Tip>
583
+ * <Note>**Required permission:** `delete:agents`</Note>
586
584
  *
587
585
  * @param {string} organizationReferenceId - The ID of the organization.
588
586
  * @param {string} agentReferenceId - The ID of the agent.
@@ -13,6 +13,8 @@ export declare class AnalyticsClient {
13
13
  /**
14
14
  * Retrieves structured conversation data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
15
15
  *
16
+ * <Note>**Required permission:** `read:conversations`</Note>
17
+ *
16
18
  * @param {MavenAGI.ConversationTableRequest} request
17
19
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
18
20
  *
@@ -59,6 +61,8 @@ export declare class AnalyticsClient {
59
61
  /**
60
62
  * Fetches conversation data visualized in a chart format. Supported chart types include pie chart, date histogram, and stacked bar charts.
61
63
  *
64
+ * <Note>**Required permission:** `read:conversations`</Note>
65
+ *
62
66
  * @param {MavenAGI.ConversationChartRequest} request
63
67
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
64
68
  *
@@ -123,6 +127,8 @@ export declare class AnalyticsClient {
123
127
  *
124
128
  * This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers. A maximum of 10,000 rows can be exported at a time.
125
129
  *
130
+ * <Note>**Required permission:** `read:conversations`</Note>
131
+ *
126
132
  * @throws {@link MavenAGI.NotFoundError}
127
133
  * @throws {@link MavenAGI.BadRequestError}
128
134
  * @throws {@link MavenAGI.PayloadTooLargeError}
@@ -135,6 +141,7 @@ export declare class AnalyticsClient {
135
141
  private __exportConversationTable;
136
142
  /**
137
143
  * Retrieves structured agent user data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
144
+ * <Note>**Required permission:** `read:agents`</Note>
138
145
  *
139
146
  * @param {MavenAGI.AgentUserTableRequest} request
140
147
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -164,6 +171,7 @@ export declare class AnalyticsClient {
164
171
  private __getAgentUserTable;
165
172
  /**
166
173
  * Retrieves structured event data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
174
+ * <Note>**Required permission:** `read:events`</Note>
167
175
  *
168
176
  * @param {MavenAGI.EventTableRequest} request
169
177
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -197,6 +205,8 @@ export declare class AnalyticsClient {
197
205
  /**
198
206
  * Fetches event data visualized in a chart format. Supported chart types include pie chart, date histogram, and stacked bar charts.
199
207
  *
208
+ * <Note>**Required permission:** `read:events`</Note>
209
+ *
200
210
  * @param {MavenAGI.EventChartRequest} request
201
211
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
202
212
  *
@@ -60,6 +60,8 @@ class AnalyticsClient {
60
60
  /**
61
61
  * Retrieves structured conversation data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
62
62
  *
63
+ * <Note>**Required permission:** `read:conversations`</Note>
64
+ *
63
65
  * @param {MavenAGI.ConversationTableRequest} request
64
66
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
65
67
  *
@@ -188,6 +190,8 @@ class AnalyticsClient {
188
190
  /**
189
191
  * Fetches conversation data visualized in a chart format. Supported chart types include pie chart, date histogram, and stacked bar charts.
190
192
  *
193
+ * <Note>**Required permission:** `read:conversations`</Note>
194
+ *
191
195
  * @param {MavenAGI.ConversationChartRequest} request
192
196
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
193
197
  *
@@ -334,6 +338,8 @@ class AnalyticsClient {
334
338
  *
335
339
  * This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers. A maximum of 10,000 rows can be exported at a time.
336
340
  *
341
+ * <Note>**Required permission:** `read:conversations`</Note>
342
+ *
337
343
  * @throws {@link MavenAGI.NotFoundError}
338
344
  * @throws {@link MavenAGI.BadRequestError}
339
345
  * @throws {@link MavenAGI.PayloadTooLargeError}
@@ -421,6 +427,7 @@ class AnalyticsClient {
421
427
  }
422
428
  /**
423
429
  * Retrieves structured agent user data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
430
+ * <Note>**Required permission:** `read:agents`</Note>
424
431
  *
425
432
  * @param {MavenAGI.AgentUserTableRequest} request
426
433
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -532,6 +539,7 @@ class AnalyticsClient {
532
539
  }
533
540
  /**
534
541
  * Retrieves structured event data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
542
+ * <Note>**Required permission:** `read:events`</Note>
535
543
  *
536
544
  * @param {MavenAGI.EventTableRequest} request
537
545
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -647,6 +655,8 @@ class AnalyticsClient {
647
655
  /**
648
656
  * Fetches event data visualized in a chart format. Supported chart types include pie chart, date histogram, and stacked bar charts.
649
657
  *
658
+ * <Note>**Required permission:** `read:events`</Note>
659
+ *
650
660
  * @param {MavenAGI.EventChartRequest} request
651
661
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
652
662
  *
@@ -73,7 +73,9 @@ export declare class AppDirectoryClient {
73
73
  install(appId: string, request: MavenAGI.InstallDirectoryAppRequest, requestOptions?: AppDirectoryClient.RequestOptions): core.HttpResponsePromise<void>;
74
74
  private __install;
75
75
  /**
76
- * Uninstalls the app from the agent.
76
+ * Uninstalls the app from the agent, and deletes the actions and triggers it created.
77
+ *
78
+ * <Note>**Required permission:** `install:apps`</Note>
77
79
  *
78
80
  * @param {string} appId
79
81
  * @param {AppDirectoryClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -355,7 +355,9 @@ class AppDirectoryClient {
355
355
  });
356
356
  }
357
357
  /**
358
- * Uninstalls the app from the agent.
358
+ * Uninstalls the app from the agent, and deletes the actions and triggers it created.
359
+ *
360
+ * <Note>**Required permission:** `install:apps`</Note>
359
361
  *
360
362
  * @param {string} appId
361
363
  * @param {AppDirectoryClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -14,6 +14,8 @@ export declare class AssetsClient {
14
14
  * Initiate an upload.
15
15
  * Returns a pre-signed URL for direct file upload and an asset ID for subsequent operations.
16
16
  *
17
+ * <Note>**Required permission:** `ask:agent`</Note>
18
+ *
17
19
  * @param {MavenAGI.InitiateAssetUploadRequest} request
18
20
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
19
21
  *
@@ -36,6 +38,8 @@ export declare class AssetsClient {
36
38
  * Commit an upload after successful file transfer.
37
39
  * Updates the asset status and makes it available for use.
38
40
  *
41
+ * <Note>**Required permission:** `ask:agent`</Note>
42
+ *
39
43
  * @param {string} assetReferenceId - The reference ID of the asset to commit (provided by the initiate call). All other entity ID fields are inferred from the API request.
40
44
  * @param {MavenAGI.CommitAssetUploadRequest} request
41
45
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -61,6 +61,8 @@ class AssetsClient {
61
61
  * Initiate an upload.
62
62
  * Returns a pre-signed URL for direct file upload and an asset ID for subsequent operations.
63
63
  *
64
+ * <Note>**Required permission:** `ask:agent`</Note>
65
+ *
64
66
  * @param {MavenAGI.InitiateAssetUploadRequest} request
65
67
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
66
68
  *
@@ -165,6 +167,8 @@ class AssetsClient {
165
167
  * Commit an upload after successful file transfer.
166
168
  * Updates the asset status and makes it available for use.
167
169
  *
170
+ * <Note>**Required permission:** `ask:agent`</Note>
171
+ *
168
172
  * @param {string} assetReferenceId - The reference ID of the asset to commit (provided by the initiate call). All other entity ID fields are inferred from the API request.
169
173
  * @param {MavenAGI.CommitAssetUploadRequest} request
170
174
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -18,6 +18,8 @@ export declare class CapabilitiesClient {
18
18
  * one exception: their own API also returns the charters referencing the field, which this
19
19
  * endpoint leaves out.
20
20
  *
21
+ * <Note>**Required permission:** `read:agents`</Note>
22
+ *
21
23
  * @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to fetch.
22
24
  * @param {string} referenceId - The capability's reference ID, unique within its type and app.
23
25
  * @param {MavenAGI.GetCapabilityByTypeRequest} request
@@ -43,6 +45,8 @@ export declare class CapabilitiesClient {
43
45
  * Everything else about a capability -- its name, its description, and any settings
44
46
  * particular to its kind -- is changed through that capability's own API.
45
47
  *
48
+ * <Note>**Required permission:** `edit:agents`</Note>
49
+ *
46
50
  * @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to update.
47
51
  * @param {string} referenceId - The capability's reference ID, unique within its type and app.
48
52
  * @param {MavenAGI.PatchCapabilityByTypeRequest} request
@@ -70,6 +74,8 @@ export declare class CapabilitiesClient {
70
74
  * and takes effect when the variant is committed. Until then the agent keeps using the field,
71
75
  * and only a later patch or delete through the same variant is a 404.
72
76
  *
77
+ * <Note>**Required permission:** `edit:agents`</Note>
78
+ *
73
79
  * @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to delete.
74
80
  * @param {string} referenceId - The capability's reference ID, unique within its type and app.
75
81
  * @param {MavenAGI.DeleteCapabilityByTypeRequest} request
@@ -99,6 +105,8 @@ export declare class CapabilitiesClient {
99
105
  * Only actions can be simulated today. Triggers and conversation kickoffs are rejected with a
100
106
  * 400 until they can run as simulations. Intelligent fields cannot be simulated.
101
107
  *
108
+ * <Note>**Required permission:** `create:simulations`</Note>
109
+ *
102
110
  * @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to simulate. Must match the body's `capabilityType`.
103
111
  * @param {string} referenceId - The capability's reference ID, unique within its type and app.
104
112
  * @param {MavenAGI.SimulateCapabilityByTypeRequest} request
@@ -132,6 +140,12 @@ export declare class CapabilitiesClient {
132
140
  *
133
141
  * Deleted capabilities are never returned.
134
142
  *
143
+ * Pagination is limited to the first 10,000 matching capabilities: `(page + 1) * size` must
144
+ * not exceed 10,000, and a request beyond that is rejected with a 400. Add filters to reach
145
+ * later results.
146
+ *
147
+ * <Note>**Required permission:** `read:agents`</Note>
148
+ *
135
149
  * @param {MavenAGI.CapabilitiesSearchRequest} request
136
150
  * @param {CapabilitiesClient.RequestOptions} requestOptions - Request-specific configuration.
137
151
  *
@@ -159,6 +173,12 @@ export declare class CapabilitiesClient {
159
173
  *
160
174
  * Results can trail a run by a few seconds. Executions are searchable for 90 days.
161
175
  *
176
+ * Pagination is limited to the first 10,000 matching executions: `(page + 1) * size` must not
177
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow `createdAfter` and
178
+ * `createdBefore` to reach later results.
179
+ *
180
+ * <Note>**Required permission:** `read:agents`</Note>
181
+ *
162
182
  * @param {MavenAGI.CapabilityExecutionsSearchRequest} request
163
183
  * @param {CapabilitiesClient.RequestOptions} requestOptions - Request-specific configuration.
164
184
  *
@@ -76,6 +76,8 @@ class CapabilitiesClient {
76
76
  * one exception: their own API also returns the charters referencing the field, which this
77
77
  * endpoint leaves out.
78
78
  *
79
+ * <Note>**Required permission:** `read:agents`</Note>
80
+ *
79
81
  * @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to fetch.
80
82
  * @param {string} referenceId - The capability's reference ID, unique within its type and app.
81
83
  * @param {MavenAGI.GetCapabilityByTypeRequest} request
@@ -190,6 +192,8 @@ class CapabilitiesClient {
190
192
  * Everything else about a capability -- its name, its description, and any settings
191
193
  * particular to its kind -- is changed through that capability's own API.
192
194
  *
195
+ * <Note>**Required permission:** `edit:agents`</Note>
196
+ *
193
197
  * @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to update.
194
198
  * @param {string} referenceId - The capability's reference ID, unique within its type and app.
195
199
  * @param {MavenAGI.PatchCapabilityByTypeRequest} request
@@ -309,6 +313,8 @@ class CapabilitiesClient {
309
313
  * and takes effect when the variant is committed. Until then the agent keeps using the field,
310
314
  * and only a later patch or delete through the same variant is a 404.
311
315
  *
316
+ * <Note>**Required permission:** `edit:agents`</Note>
317
+ *
312
318
  * @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to delete.
313
319
  * @param {string} referenceId - The capability's reference ID, unique within its type and app.
314
320
  * @param {MavenAGI.DeleteCapabilityByTypeRequest} request
@@ -419,6 +425,8 @@ class CapabilitiesClient {
419
425
  * Only actions can be simulated today. Triggers and conversation kickoffs are rejected with a
420
426
  * 400 until they can run as simulations. Intelligent fields cannot be simulated.
421
427
  *
428
+ * <Note>**Required permission:** `create:simulations`</Note>
429
+ *
422
430
  * @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to simulate. Must match the body's `capabilityType`.
423
431
  * @param {string} referenceId - The capability's reference ID, unique within its type and app.
424
432
  * @param {MavenAGI.SimulateCapabilityByTypeRequest} request
@@ -542,6 +550,12 @@ class CapabilitiesClient {
542
550
  *
543
551
  * Deleted capabilities are never returned.
544
552
  *
553
+ * Pagination is limited to the first 10,000 matching capabilities: `(page + 1) * size` must
554
+ * not exceed 10,000, and a request beyond that is rejected with a 400. Add filters to reach
555
+ * later results.
556
+ *
557
+ * <Note>**Required permission:** `read:agents`</Note>
558
+ *
545
559
  * @param {MavenAGI.CapabilitiesSearchRequest} request
546
560
  * @param {CapabilitiesClient.RequestOptions} requestOptions - Request-specific configuration.
547
561
  *
@@ -651,6 +665,12 @@ class CapabilitiesClient {
651
665
  *
652
666
  * Results can trail a run by a few seconds. Executions are searchable for 90 days.
653
667
  *
668
+ * Pagination is limited to the first 10,000 matching executions: `(page + 1) * size` must not
669
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow `createdAfter` and
670
+ * `createdBefore` to reach later results.
671
+ *
672
+ * <Note>**Required permission:** `read:agents`</Note>
673
+ *
654
674
  * @param {MavenAGI.CapabilityExecutionsSearchRequest} request
655
675
  * @param {CapabilitiesClient.RequestOptions} requestOptions - Request-specific configuration.
656
676
  *
@@ -38,4 +38,8 @@ export interface CapabilityExecutionsSearchRequest extends MavenAGI.BaseCappedPa
38
38
  * simulation conversation's executions are found by its ID like any other.
39
39
  */
40
40
  simulationFilter?: MavenAGI.SimulationFilter;
41
+ /** Only return executions whose `createdAt` is on or after this timestamp. */
42
+ createdAfter?: Date;
43
+ /** Only return executions whose `createdAt` is on or before this timestamp. */
44
+ createdBefore?: Date;
41
45
  }
@@ -26,6 +26,8 @@ export declare class ChartersClient {
26
26
  * pick only the highest ranked (lowest numerical value) leaf to include in
27
27
  * the round. userRank may have gaps.
28
28
  *
29
+ * <Note>**Required permission:** `edit:agents`</Note>
30
+ *
29
31
  * @param {MavenAGI.CharterRequest} request
30
32
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
31
33
  *
@@ -64,6 +66,8 @@ export declare class ChartersClient {
64
66
  /**
65
67
  * Get a charter by its reference ID.
66
68
  *
69
+ * <Note>**Required permission:** `read:agents`</Note>
70
+ *
67
71
  * @param {string} charterReferenceId - The reference ID of the charter to get. All other entity ID fields are inferred from the request.
68
72
  * @param {MavenAGI.CharterGetRequest} request
69
73
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -99,6 +103,8 @@ export declare class ChartersClient {
99
103
  * sibling, siblings at that rank and above are shifted up by 1 (like linked list semantics).
100
104
  * The caller does not need to manage uniqueness explicitly.
101
105
  *
106
+ * <Note>**Required permission:** `edit:agents`</Note>
107
+ *
102
108
  * @param {string} charterReferenceId - The reference ID of the charter to patch.
103
109
  * @param {MavenAGI.CharterPatchRequest} request
104
110
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -136,6 +142,8 @@ export declare class ChartersClient {
136
142
  *
137
143
  * Deleted charters cannot be modified.
138
144
  *
145
+ * <Note>**Required permission:** `edit:agents`</Note>
146
+ *
139
147
  * @param {string} charterReferenceId - The reference ID of the charter to delete.
140
148
  * @param {MavenAGI.CharterDeleteRequest} request
141
149
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -164,6 +172,12 @@ export declare class ChartersClient {
164
172
  * to control direction (defaults to descending). An empty filter list is
165
173
  * equivalent to omitting the field (no filter applied).
166
174
  *
175
+ * Pagination is limited to the first 10,000 matching charters: `(page + 1) * size` must not
176
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
177
+ * later results.
178
+ *
179
+ * <Note>**Required permission:** `read:agents`</Note>
180
+ *
167
181
  * @param {MavenAGI.CharterSearchRequest} request
168
182
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
169
183
  *
@@ -195,6 +209,8 @@ export declare class ChartersClient {
195
209
  *
196
210
  * Returns 404 if the charter does not exist or is deleted.
197
211
  *
212
+ * <Note>**Required permission:** `read:agents`</Note>
213
+ *
198
214
  * @param {string} charterReferenceId - The reference ID of the charter. All other entity ID fields are inferred from the request.
199
215
  * @param {MavenAGI.CharterGetAncestorsRequest} request
200
216
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -224,6 +240,8 @@ export declare class ChartersClient {
224
240
  *
225
241
  * DELETED charters are never returned.
226
242
  *
243
+ * <Note>**Required permission:** `read:agents`</Note>
244
+ *
227
245
  * @param {MavenAGI.CharterListChildrenRequest} request
228
246
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
229
247
  *
@@ -73,6 +73,8 @@ class ChartersClient {
73
73
  * pick only the highest ranked (lowest numerical value) leaf to include in
74
74
  * the round. userRank may have gaps.
75
75
  *
76
+ * <Note>**Required permission:** `edit:agents`</Note>
77
+ *
76
78
  * @param {MavenAGI.CharterRequest} request
77
79
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
78
80
  *
@@ -193,6 +195,8 @@ class ChartersClient {
193
195
  /**
194
196
  * Get a charter by its reference ID.
195
197
  *
198
+ * <Note>**Required permission:** `read:agents`</Note>
199
+ *
196
200
  * @param {string} charterReferenceId - The reference ID of the charter to get. All other entity ID fields are inferred from the request.
197
201
  * @param {MavenAGI.CharterGetRequest} request
198
202
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -317,6 +321,8 @@ class ChartersClient {
317
321
  * sibling, siblings at that rank and above are shifted up by 1 (like linked list semantics).
318
322
  * The caller does not need to manage uniqueness explicitly.
319
323
  *
324
+ * <Note>**Required permission:** `edit:agents`</Note>
325
+ *
320
326
  * @param {string} charterReferenceId - The reference ID of the charter to patch.
321
327
  * @param {MavenAGI.CharterPatchRequest} request
322
328
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -436,6 +442,8 @@ class ChartersClient {
436
442
  *
437
443
  * Deleted charters cannot be modified.
438
444
  *
445
+ * <Note>**Required permission:** `edit:agents`</Note>
446
+ *
439
447
  * @param {string} charterReferenceId - The reference ID of the charter to delete.
440
448
  * @param {MavenAGI.CharterDeleteRequest} request
441
449
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -553,6 +561,12 @@ class ChartersClient {
553
561
  * to control direction (defaults to descending). An empty filter list is
554
562
  * equivalent to omitting the field (no filter applied).
555
563
  *
564
+ * Pagination is limited to the first 10,000 matching charters: `(page + 1) * size` must not
565
+ * exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
566
+ * later results.
567
+ *
568
+ * <Note>**Required permission:** `read:agents`</Note>
569
+ *
556
570
  * @param {MavenAGI.CharterSearchRequest} request
557
571
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
558
572
  *
@@ -666,6 +680,8 @@ class ChartersClient {
666
680
  *
667
681
  * Returns 404 if the charter does not exist or is deleted.
668
682
  *
683
+ * <Note>**Required permission:** `read:agents`</Note>
684
+ *
669
685
  * @param {string} charterReferenceId - The reference ID of the charter. All other entity ID fields are inferred from the request.
670
686
  * @param {MavenAGI.CharterGetAncestorsRequest} request
671
687
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -784,6 +800,8 @@ class ChartersClient {
784
800
  *
785
801
  * DELETED charters are never returned.
786
802
  *
803
+ * <Note>**Required permission:** `read:agents`</Note>
804
+ *
787
805
  * @param {MavenAGI.CharterListChildrenRequest} request
788
806
  * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
789
807
  *