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.
- package/BaseClient.js +2 -2
- package/api/resources/actions/client/Client.d.ts +14 -0
- package/api/resources/actions/client/Client.js +14 -0
- package/api/resources/agents/client/Client.d.ts +10 -12
- package/api/resources/agents/client/Client.js +10 -12
- package/api/resources/analytics/client/Client.d.ts +10 -0
- package/api/resources/analytics/client/Client.js +10 -0
- package/api/resources/appDirectory/client/Client.d.ts +3 -1
- package/api/resources/appDirectory/client/Client.js +3 -1
- package/api/resources/assets/client/Client.d.ts +4 -0
- package/api/resources/assets/client/Client.js +4 -0
- package/api/resources/capabilities/client/Client.d.ts +20 -0
- package/api/resources/capabilities/client/Client.js +20 -0
- package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +4 -0
- package/api/resources/charters/client/Client.d.ts +18 -0
- package/api/resources/charters/client/Client.js +18 -0
- package/api/resources/commons/types/MetadataComparisonOperator.d.ts +4 -4
- package/api/resources/commons/types/MetadataComparisonOperator.js +4 -4
- package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +1 -1
- package/api/resources/commons/types/MetadataFilter.d.ts +6 -1
- package/api/resources/commons/types/SimulationContext.d.ts +9 -0
- package/api/resources/commons/types/SystemEventName.d.ts +3 -0
- package/api/resources/commons/types/SystemEventName.js +3 -0
- package/api/resources/conversation/client/Client.d.ts +42 -3
- package/api/resources/conversation/client/Client.js +42 -3
- package/api/resources/conversation/types/AskRequest.d.ts +1 -62
- package/api/resources/conversation/types/AskRequestBase.d.ts +67 -0
- package/api/resources/conversation/types/index.d.ts +1 -0
- package/api/resources/conversation/types/index.js +1 -0
- package/api/resources/conversationKickoffs/client/Client.d.ts +2 -0
- package/api/resources/conversationKickoffs/client/Client.js +2 -0
- package/api/resources/customers/client/Client.d.ts +14 -0
- package/api/resources/customers/client/Client.js +14 -0
- package/api/resources/events/client/Client.d.ts +16 -3
- package/api/resources/events/client/Client.js +16 -3
- package/api/resources/inbox/client/Client.d.ts +20 -0
- package/api/resources/inbox/client/Client.js +20 -0
- package/api/resources/intelligentFields/client/Client.d.ts +10 -0
- package/api/resources/intelligentFields/client/Client.js +10 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +2 -1
- package/api/resources/knowledge/client/Client.d.ts +40 -0
- package/api/resources/knowledge/client/Client.js +40 -0
- package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -1
- package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -5
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +4 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -3
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -2
- package/api/resources/knowledge/types/index.d.ts +1 -0
- package/api/resources/knowledge/types/index.js +1 -0
- package/api/resources/segments/client/Client.d.ts +16 -0
- package/api/resources/segments/client/Client.js +16 -0
- package/api/resources/translations/client/Client.d.ts +2 -0
- package/api/resources/translations/client/Client.js +2 -0
- package/api/resources/triggers/client/Client.d.ts +10 -0
- package/api/resources/triggers/client/Client.js +10 -0
- package/api/resources/users/client/Client.d.ts +16 -0
- package/api/resources/users/client/Client.js +16 -0
- package/api/resources/voice/client/Client.d.ts +3 -2
- package/api/resources/voice/client/Client.js +3 -2
- package/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +14 -3
- package/api/resources/voice/types/VoiceSessionTokenResponse.d.ts +11 -1
- package/api/resources/voice/types/VoiceWebRtcTransport.d.ts +10 -0
- package/api/resources/voice/types/VoiceWebRtcTransport.js +13 -0
- package/api/resources/voice/types/index.d.ts +1 -0
- package/api/resources/voice/types/index.js +1 -0
- package/api/resources/voiceConversations/client/Client.d.ts +5 -2
- package/api/resources/voiceConversations/client/Client.js +6 -3
- package/api/resources/voiceConversations/client/Socket.d.ts +2 -1
- package/api/resources/voiceConversations/client/Socket.js +10 -0
- package/api/resources/voiceConversations/types/AgentAudioChunk.d.ts +1 -1
- package/api/resources/voiceConversations/types/AudioFormat.d.ts +13 -0
- package/api/resources/voiceConversations/types/AudioFormat.js +13 -0
- package/api/resources/voiceConversations/types/ClientMark.d.ts +10 -0
- package/api/resources/voiceConversations/types/Config.d.ts +2 -6
- package/api/resources/voiceConversations/types/ConversationReady.d.ts +5 -2
- package/api/resources/voiceConversations/types/Error_.d.ts +8 -0
- package/api/resources/voiceConversations/types/Mark.d.ts +9 -0
- package/api/resources/voiceConversations/types/ServerEventBase.d.ts +3 -2
- package/api/resources/voiceConversations/types/Transcript.d.ts +11 -0
- package/api/resources/voiceConversations/types/TranscriptRole.d.ts +5 -0
- package/api/resources/voiceConversations/types/TranscriptRole.js +8 -0
- package/api/resources/voiceConversations/types/VadSpeechStarted.d.ts +8 -0
- package/api/resources/voiceConversations/types/VadSpeechStarted.js +3 -0
- package/api/resources/voiceConversations/types/VadSpeechStopped.d.ts +7 -0
- package/api/resources/voiceConversations/types/VadSpeechStopped.js +3 -0
- package/api/resources/voiceConversations/types/index.d.ts +6 -5
- package/api/resources/voiceConversations/types/index.js +6 -5
- package/package.json +1 -1
- package/reference.md +292 -21
- package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +2 -0
- package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +2 -0
- package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
- package/serialization/resources/commons/types/SimulationContext.js +1 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +1 -0
- package/serialization/resources/conversation/types/AskRequest.d.ts +2 -12
- package/serialization/resources/conversation/types/AskRequest.js +5 -13
- package/serialization/resources/conversation/types/AskRequestBase.d.ts +20 -0
- package/serialization/resources/conversation/types/AskRequestBase.js +52 -0
- package/serialization/resources/conversation/types/index.d.ts +1 -0
- package/serialization/resources/conversation/types/index.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +7 -0
- package/serialization/resources/{voiceConversations/types/UserTranscript.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +5 -8
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
- package/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/serialization/resources/knowledge/types/index.js +1 -0
- package/serialization/resources/voice/types/VoiceSessionTokenRequest.d.ts +2 -0
- package/serialization/resources/voice/types/VoiceSessionTokenRequest.js +2 -0
- package/serialization/resources/voice/types/VoiceSessionTokenResponse.d.ts +1 -0
- package/serialization/resources/voice/types/VoiceSessionTokenResponse.js +1 -0
- package/serialization/resources/voice/types/VoiceWebRtcTransport.d.ts +7 -0
- package/serialization/resources/voice/types/VoiceWebRtcTransport.js +39 -0
- package/serialization/resources/voice/types/index.d.ts +1 -0
- package/serialization/resources/voice/types/index.js +1 -0
- package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.d.ts +6 -7
- package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.js +8 -10
- package/serialization/resources/voiceConversations/types/ClientMark.d.ts +10 -0
- package/serialization/resources/voiceConversations/types/ClientMark.js +42 -0
- package/serialization/resources/voiceConversations/types/Config.d.ts +0 -2
- package/serialization/resources/voiceConversations/types/Config.js +0 -2
- package/serialization/resources/voiceConversations/types/ConversationReady.d.ts +3 -1
- package/serialization/resources/voiceConversations/types/ConversationReady.js +6 -2
- package/serialization/resources/voiceConversations/types/{ConversationEnded.d.ts → Mark.d.ts} +4 -3
- package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +4 -3
- package/serialization/resources/voiceConversations/types/ServerEventBase.d.ts +1 -1
- package/serialization/resources/voiceConversations/types/ServerEventBase.js +1 -1
- package/serialization/resources/voiceConversations/types/{AgentTranscript.d.ts → Transcript.d.ts} +5 -3
- package/serialization/resources/voiceConversations/types/{AgentTranscript.js → Transcript.js} +5 -3
- package/serialization/resources/voiceConversations/types/TranscriptRole.d.ts +7 -0
- package/serialization/resources/voiceConversations/types/TranscriptRole.js +39 -0
- package/serialization/resources/voiceConversations/types/{UserTranscript.d.ts → VadSpeechStarted.d.ts} +3 -4
- package/serialization/resources/voiceConversations/types/{ConversationEnded.js → VadSpeechStarted.js} +3 -3
- package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.d.ts → VadSpeechStopped.d.ts} +3 -3
- package/serialization/resources/voiceConversations/types/{UserFinishedSpeaking.js → VadSpeechStopped.js} +3 -3
- package/serialization/resources/voiceConversations/types/index.d.ts +6 -5
- package/serialization/resources/voiceConversations/types/index.js +6 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/voiceConversations/types/AgentTranscript.d.ts +0 -9
- package/api/resources/voiceConversations/types/ConversationEnded.d.ts +0 -7
- package/api/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -7
- package/api/resources/voiceConversations/types/UserStartedSpeaking.d.ts +0 -7
- package/api/resources/voiceConversations/types/UserTranscript.d.ts +0 -9
- package/serialization/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -10
- /package/api/resources/{voiceConversations/types/AgentTranscript.js → conversation/types/AskRequestBase.js} +0 -0
- /package/api/resources/{voiceConversations/types/ConversationEnded.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +0 -0
- /package/api/resources/voiceConversations/types/{UserFinishedSpeaking.js → ClientMark.js} +0 -0
- /package/api/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +0 -0
- /package/api/resources/voiceConversations/types/{UserTranscript.js → Transcript.js} +0 -0
|
@@ -60,6 +60,12 @@ class KnowledgeClient {
|
|
|
60
60
|
/**
|
|
61
61
|
* Search knowledge bases
|
|
62
62
|
*
|
|
63
|
+
* Pagination is limited to the first 10,000 matching knowledge bases: `(page + 1) * size` must
|
|
64
|
+
* not exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to
|
|
65
|
+
* reach later results.
|
|
66
|
+
*
|
|
67
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
68
|
+
*
|
|
63
69
|
* @param {MavenAGI.KnowledgeBaseSearchRequest} request
|
|
64
70
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
71
|
*
|
|
@@ -161,6 +167,8 @@ class KnowledgeClient {
|
|
|
161
167
|
/**
|
|
162
168
|
* Update a knowledge base or create it if it doesn't exist.
|
|
163
169
|
*
|
|
170
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
171
|
+
*
|
|
164
172
|
* @param {MavenAGI.KnowledgeBaseRequest} request
|
|
165
173
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
174
|
*
|
|
@@ -267,6 +275,8 @@ class KnowledgeClient {
|
|
|
267
275
|
/**
|
|
268
276
|
* Get an existing knowledge base by its supplied ID
|
|
269
277
|
*
|
|
278
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
279
|
+
*
|
|
270
280
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to get. All other entity ID fields are inferred from the request.
|
|
271
281
|
* @param {MavenAGI.KnowledgeBaseGetRequest} request
|
|
272
282
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -377,6 +387,8 @@ class KnowledgeClient {
|
|
|
377
387
|
* Knowledge bases refresh on a schedule determined by the `refreshFrequency` field.
|
|
378
388
|
* They can also be refreshed on demand by calling this endpoint.
|
|
379
389
|
*
|
|
390
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
391
|
+
*
|
|
380
392
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to refresh. All other entity ID fields are inferred from the request.
|
|
381
393
|
* @param {MavenAGI.KnowledgeBaseRefreshRequest} request
|
|
382
394
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -479,6 +491,8 @@ class KnowledgeClient {
|
|
|
479
491
|
* An app still refreshing that version finds out on its next write to it: adding or
|
|
480
492
|
* removing a document on a canceled version is rejected rather than succeeding.
|
|
481
493
|
*
|
|
494
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
495
|
+
*
|
|
482
496
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to cancel ingestion for. All other entity ID fields are inferred from the request.
|
|
483
497
|
* @param {MavenAGI.CancelKnowledgeBaseVersionRequest} request
|
|
484
498
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -573,6 +587,8 @@ class KnowledgeClient {
|
|
|
573
587
|
/**
|
|
574
588
|
* Rolls the knowledge base back to its previous published version.
|
|
575
589
|
*
|
|
590
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
591
|
+
*
|
|
576
592
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to roll back. All other entity ID fields are inferred from the request.
|
|
577
593
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
578
594
|
*
|
|
@@ -666,6 +682,8 @@ class KnowledgeClient {
|
|
|
666
682
|
* The `appId` field can be provided to update a knowledge base owned by a different app.
|
|
667
683
|
* All other fields will overwrite the existing value on the knowledge base only if provided.
|
|
668
684
|
*
|
|
685
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
686
|
+
*
|
|
669
687
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to patch.
|
|
670
688
|
* @param {MavenAGI.KnowledgeBasePatchRequest} request
|
|
671
689
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -783,6 +801,8 @@ class KnowledgeClient {
|
|
|
783
801
|
* If another version create for the same knowledge base is still in progress, this request may
|
|
784
802
|
* return 503 with a `Retry-After` header. Nothing is changed in that case, so it is safe to retry.
|
|
785
803
|
*
|
|
804
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
805
|
+
*
|
|
786
806
|
* @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.
|
|
787
807
|
* @param {MavenAGI.KnowledgeBaseVersionRequest} request
|
|
788
808
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -887,6 +907,8 @@ class KnowledgeClient {
|
|
|
887
907
|
/**
|
|
888
908
|
* 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.
|
|
889
909
|
*
|
|
910
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
911
|
+
*
|
|
890
912
|
* @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.
|
|
891
913
|
* @param {MavenAGI.FinalizeKnowledgeBaseVersionRequest} request
|
|
892
914
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1002,6 +1024,8 @@ class KnowledgeClient {
|
|
|
1002
1024
|
* version's entire progress state - no history is kept, only the most recent value is
|
|
1003
1025
|
* retained. Will throw an exception if the target version is not in progress.
|
|
1004
1026
|
*
|
|
1027
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
1028
|
+
*
|
|
1005
1029
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to report progress for. All other entity ID fields are inferred from the request.
|
|
1006
1030
|
* @param {MavenAGI.KnowledgeBaseVersionProgressRequest} request
|
|
1007
1031
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1117,6 +1141,8 @@ class KnowledgeClient {
|
|
|
1117
1141
|
/**
|
|
1118
1142
|
* List all active versions for a knowledge base. Returns the most recent versions first.
|
|
1119
1143
|
*
|
|
1144
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
1145
|
+
*
|
|
1120
1146
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to list versions for. All other entity ID fields are inferred from the request.
|
|
1121
1147
|
* @param {MavenAGI.KnowledgeBaseVersionsListRequest} request
|
|
1122
1148
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1224,6 +1250,12 @@ class KnowledgeClient {
|
|
|
1224
1250
|
/**
|
|
1225
1251
|
* Search knowledge documents
|
|
1226
1252
|
*
|
|
1253
|
+
* Pagination is limited to the first 10,000 matching knowledge documents: `(page + 1) * size`
|
|
1254
|
+
* must not exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter
|
|
1255
|
+
* to reach later results.
|
|
1256
|
+
*
|
|
1257
|
+
* <Note>**Required permission:** `read:documents`</Note>
|
|
1258
|
+
*
|
|
1227
1259
|
* @param {MavenAGI.KnowledgeDocumentSearchRequest} request
|
|
1228
1260
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1229
1261
|
*
|
|
@@ -1331,6 +1363,8 @@ class KnowledgeClient {
|
|
|
1331
1363
|
* have changed, a new document version will not be created. The existing version will be reused.
|
|
1332
1364
|
* </Tip>
|
|
1333
1365
|
*
|
|
1366
|
+
* <Note>**Required permission:** `create:documents`</Note>
|
|
1367
|
+
*
|
|
1334
1368
|
* @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.
|
|
1335
1369
|
* @param {MavenAGI.KnowledgeDocumentRequest} request
|
|
1336
1370
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1451,6 +1485,8 @@ class KnowledgeClient {
|
|
|
1451
1485
|
* Delete knowledge document from a specific version.
|
|
1452
1486
|
* Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the version is not in progress.
|
|
1453
1487
|
*
|
|
1488
|
+
* <Note>**Required permission:** `delete:documents`</Note>
|
|
1489
|
+
*
|
|
1454
1490
|
* @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
|
|
1455
1491
|
* @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to delete. All other entity ID fields are inferred from the request.
|
|
1456
1492
|
* @param {MavenAGI.KnowledgeDeleteRequest} request
|
|
@@ -1552,6 +1588,8 @@ class KnowledgeClient {
|
|
|
1552
1588
|
/**
|
|
1553
1589
|
* Get a knowledge document by its supplied version and document IDs. Response includes document content in markdown format.
|
|
1554
1590
|
*
|
|
1591
|
+
* <Note>**Required permission:** `read:documents`</Note>
|
|
1592
|
+
*
|
|
1555
1593
|
* @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.
|
|
1556
1594
|
* @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to get. All other entity ID fields are inferred from the request.
|
|
1557
1595
|
* @param {MavenAGI.KnowledgeDocumentGetRequest} request
|
|
@@ -1667,6 +1705,8 @@ class KnowledgeClient {
|
|
|
1667
1705
|
* The `knowledgeBaseAppId` field can be provided to update a knowledge document in a knowledge base owned by a different app.
|
|
1668
1706
|
* All other fields will overwrite the existing value on the knowledge document only if provided.
|
|
1669
1707
|
*
|
|
1708
|
+
* <Note>**Required permission:** `edit:documents`</Note>
|
|
1709
|
+
*
|
|
1670
1710
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to patch.
|
|
1671
1711
|
* @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to patch.
|
|
1672
1712
|
* @param {MavenAGI.KnowledgeDocumentPatchRequest} request
|
|
@@ -25,7 +25,11 @@ export interface KnowledgeBaseFilter {
|
|
|
25
25
|
appIds?: string[];
|
|
26
26
|
/** Filter by knowledge base type. */
|
|
27
27
|
types?: MavenAGI.KnowledgeBaseType[];
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Deprecated. Do not use this filter: it does not filter on the status of the most recent
|
|
30
|
+
* version and its results are often inaccurate. To check a knowledge base's latest refresh,
|
|
31
|
+
* call `listKnowledgeBaseVersions`.
|
|
32
|
+
*/
|
|
29
33
|
mostRecentVersionStatus?: MavenAGI.KnowledgeBaseVersionStatus[];
|
|
30
34
|
/** Filter knowledge bases by the LLM inclusion status */
|
|
31
35
|
llmInclusionStatus?: MavenAGI.LlmInclusionStatus;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** The indexing status of the knowledge base version. In the Agent Designer "
|
|
1
|
+
/** The indexing status of the knowledge base version. In the Agent Designer "Version history", `BUILDING`, `INDEXING` and `INDEXED` show as "Syncing", `PUBLISHED` as "Synced", and `SUPERSEDED`, `ROLLING_BACK` and `ROLLED_BACK` as "Interrupted". */
|
|
2
2
|
export declare const KnowledgeBaseIndexingStatus: {
|
|
3
3
|
readonly Building: "BUILDING";
|
|
4
4
|
readonly Indexing: "INDEXING";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.KnowledgeBaseIndexingStatus = void 0;
|
|
5
|
-
/** The indexing status of the knowledge base version. In the Agent Designer "
|
|
5
|
+
/** The indexing status of the knowledge base version. In the Agent Designer "Version history", `BUILDING`, `INDEXING` and `INDEXED` show as "Syncing", `PUBLISHED` as "Synced", and `SUPERSEDED`, `ROLLING_BACK` and `ROLLED_BACK` as "Interrupted". */
|
|
6
6
|
exports.KnowledgeBaseIndexingStatus = {
|
|
7
7
|
Building: "BUILDING",
|
|
8
8
|
Indexing: "INDEXING",
|
|
@@ -52,11 +52,9 @@ export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties
|
|
|
52
52
|
/** ID of the knowledge base version that is currently active. Documents can be fetched using this version ID. */
|
|
53
53
|
activeVersionId?: MavenAGI.EntityId;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* Shown in Agent Designer as "Refresh status".
|
|
55
|
+
* Deprecated. Do not use this field: it is not the status of the most recent version and is
|
|
56
|
+
* often inaccurate. To get the status of the latest refresh, call
|
|
57
|
+
* `listKnowledgeBaseVersions` and read the first version.
|
|
60
58
|
*/
|
|
61
59
|
mostRecentVersionStatus: MavenAGI.KnowledgeBaseVersionStatus;
|
|
62
60
|
/** The type of the knowledge base. Can not be changed once created. Shown in Agent Designer as "Source". */
|
|
@@ -50,10 +50,16 @@ export interface KnowledgeDocumentRequest extends MavenAGI.BaseKnowledgeDocument
|
|
|
50
50
|
* for storing additional information about the object in a structured format, and querying for
|
|
51
51
|
* objects via API or the dashboard.
|
|
52
52
|
*
|
|
53
|
-
* Keys are strings with a maximum length of 64 characters.
|
|
54
|
-
*
|
|
53
|
+
* Keys are strings with a maximum length of 64 characters. A value is a string, or a list of up
|
|
54
|
+
* to 100 strings for a document with several values under one key (for example the states it
|
|
55
|
+
* applies to). A list is a set: it is stored sorted and without duplicates, so reordering it
|
|
56
|
+
* doesn't change the document. Each string has a maximum length of 512 characters.
|
|
57
|
+
*
|
|
58
|
+
* A charter document filter treats a list as "contains": `EQ` and `IN` match when any value in
|
|
59
|
+
* the list matches, and `NEQ` and `NOT_IN` match when none does. An empty list is the same as
|
|
60
|
+
* no value.
|
|
55
61
|
*/
|
|
56
|
-
metadata?: Record<string,
|
|
62
|
+
metadata?: Record<string, MavenAGI.KnowledgeDocumentMetadataValue>;
|
|
57
63
|
/** The time at which this document was created. */
|
|
58
64
|
createdAt?: Date;
|
|
59
65
|
/** The time at which this document was last modified. */
|
|
@@ -83,6 +83,6 @@ export interface KnowledgeDocumentResponse extends MavenAGI.KnowledgeDocumentSea
|
|
|
83
83
|
content?: string;
|
|
84
84
|
/** If the document is associated with an asset, this will contain the asset metadata */
|
|
85
85
|
asset?: MavenAGI.AttachmentResponse;
|
|
86
|
-
/** Metadata for the knowledge document. */
|
|
87
|
-
metadata: Record<string,
|
|
86
|
+
/** Metadata for the knowledge document. A value is a string or a list of strings. */
|
|
87
|
+
metadata: Record<string, MavenAGI.KnowledgeDocumentMetadataValue>;
|
|
88
88
|
}
|
|
@@ -27,6 +27,7 @@ export * from "./KnowledgeDeleteRequest";
|
|
|
27
27
|
export * from "./KnowledgeDocumentContentType";
|
|
28
28
|
export * from "./KnowledgeDocumentField";
|
|
29
29
|
export * from "./KnowledgeDocumentFilter";
|
|
30
|
+
export * from "./KnowledgeDocumentMetadataValue";
|
|
30
31
|
export * from "./KnowledgeDocumentRequest";
|
|
31
32
|
export * from "./KnowledgeDocumentResponse";
|
|
32
33
|
export * from "./KnowledgeDocumentSearchRequest";
|
|
@@ -43,6 +43,7 @@ __exportStar(require("./KnowledgeDeleteRequest"), exports);
|
|
|
43
43
|
__exportStar(require("./KnowledgeDocumentContentType"), exports);
|
|
44
44
|
__exportStar(require("./KnowledgeDocumentField"), exports);
|
|
45
45
|
__exportStar(require("./KnowledgeDocumentFilter"), exports);
|
|
46
|
+
__exportStar(require("./KnowledgeDocumentMetadataValue"), exports);
|
|
46
47
|
__exportStar(require("./KnowledgeDocumentRequest"), exports);
|
|
47
48
|
__exportStar(require("./KnowledgeDocumentResponse"), exports);
|
|
48
49
|
__exportStar(require("./KnowledgeDocumentSearchRequest"), exports);
|
|
@@ -13,6 +13,14 @@ export declare class SegmentsClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* @deprecated
|
|
15
15
|
*
|
|
16
|
+
* Search segments.
|
|
17
|
+
*
|
|
18
|
+
* Pagination is limited to the first 10,000 matching segments: `(page + 1) * size` must not
|
|
19
|
+
* exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
|
|
20
|
+
* later results.
|
|
21
|
+
*
|
|
22
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
23
|
+
*
|
|
16
24
|
* @param {MavenAGI.SegmentsSearchRequest} request
|
|
17
25
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
26
|
*
|
|
@@ -34,6 +42,8 @@ export declare class SegmentsClient {
|
|
|
34
42
|
*
|
|
35
43
|
* Update a segment or create it if it doesn't exist.
|
|
36
44
|
*
|
|
45
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
46
|
+
*
|
|
37
47
|
* @param {MavenAGI.SegmentRequest} request
|
|
38
48
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
49
|
*
|
|
@@ -71,6 +81,8 @@ export declare class SegmentsClient {
|
|
|
71
81
|
*
|
|
72
82
|
* Get a segment by its supplied ID
|
|
73
83
|
*
|
|
84
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
85
|
+
*
|
|
74
86
|
* @param {string} segmentReferenceId - The reference ID of the segment to get. All other entity ID fields are inferred from the request.
|
|
75
87
|
* @param {MavenAGI.SegmentGetRequest} request
|
|
76
88
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -96,6 +108,8 @@ export declare class SegmentsClient {
|
|
|
96
108
|
* The `appId` field can be provided to update a segment owned by a different app.
|
|
97
109
|
* All other fields will overwrite the existing value on the segment only if provided.
|
|
98
110
|
*
|
|
111
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
112
|
+
*
|
|
99
113
|
* @param {string} segmentReferenceId - The reference ID of the segment to update. All other entity ID fields are inferred from the request.
|
|
100
114
|
* @param {MavenAGI.SegmentPatchRequest} request
|
|
101
115
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -122,6 +136,8 @@ export declare class SegmentsClient {
|
|
|
122
136
|
*
|
|
123
137
|
* Deleted segments cannot be modified.
|
|
124
138
|
*
|
|
139
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
140
|
+
*
|
|
125
141
|
* @param {string} segmentReferenceId - The reference ID of the segment to delete. All other entity ID fields are inferred from the request.
|
|
126
142
|
* @param {MavenAGI.SegmentDeleteRequest} request
|
|
127
143
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -60,6 +60,14 @@ class SegmentsClient {
|
|
|
60
60
|
/**
|
|
61
61
|
* @deprecated
|
|
62
62
|
*
|
|
63
|
+
* Search segments.
|
|
64
|
+
*
|
|
65
|
+
* Pagination is limited to the first 10,000 matching segments: `(page + 1) * size` must not
|
|
66
|
+
* exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
|
|
67
|
+
* later results.
|
|
68
|
+
*
|
|
69
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
70
|
+
*
|
|
63
71
|
* @param {MavenAGI.SegmentsSearchRequest} request
|
|
64
72
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
73
|
*
|
|
@@ -163,6 +171,8 @@ class SegmentsClient {
|
|
|
163
171
|
*
|
|
164
172
|
* Update a segment or create it if it doesn't exist.
|
|
165
173
|
*
|
|
174
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
175
|
+
*
|
|
166
176
|
* @param {MavenAGI.SegmentRequest} request
|
|
167
177
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
168
178
|
*
|
|
@@ -282,6 +292,8 @@ class SegmentsClient {
|
|
|
282
292
|
*
|
|
283
293
|
* Get a segment by its supplied ID
|
|
284
294
|
*
|
|
295
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
296
|
+
*
|
|
285
297
|
* @param {string} segmentReferenceId - The reference ID of the segment to get. All other entity ID fields are inferred from the request.
|
|
286
298
|
* @param {MavenAGI.SegmentGetRequest} request
|
|
287
299
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -394,6 +406,8 @@ class SegmentsClient {
|
|
|
394
406
|
* The `appId` field can be provided to update a segment owned by a different app.
|
|
395
407
|
* All other fields will overwrite the existing value on the segment only if provided.
|
|
396
408
|
*
|
|
409
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
410
|
+
*
|
|
397
411
|
* @param {string} segmentReferenceId - The reference ID of the segment to update. All other entity ID fields are inferred from the request.
|
|
398
412
|
* @param {MavenAGI.SegmentPatchRequest} request
|
|
399
413
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -502,6 +516,8 @@ class SegmentsClient {
|
|
|
502
516
|
*
|
|
503
517
|
* Deleted segments cannot be modified.
|
|
504
518
|
*
|
|
519
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
520
|
+
*
|
|
505
521
|
* @param {string} segmentReferenceId - The reference ID of the segment to delete. All other entity ID fields are inferred from the request.
|
|
506
522
|
* @param {MavenAGI.SegmentDeleteRequest} request
|
|
507
523
|
* @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -13,6 +13,8 @@ export declare class TranslationsClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Translate text from one language to another
|
|
15
15
|
*
|
|
16
|
+
* <Note>**Required permission:** `ask:agent`</Note>
|
|
17
|
+
*
|
|
16
18
|
* @param {MavenAGI.TranslationRequest} request
|
|
17
19
|
* @param {TranslationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
20
|
*
|
|
@@ -60,6 +60,8 @@ class TranslationsClient {
|
|
|
60
60
|
/**
|
|
61
61
|
* Translate text from one language to another
|
|
62
62
|
*
|
|
63
|
+
* <Note>**Required permission:** `ask:agent`</Note>
|
|
64
|
+
*
|
|
63
65
|
* @param {MavenAGI.TranslationRequest} request
|
|
64
66
|
* @param {TranslationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
67
|
*
|
|
@@ -17,6 +17,8 @@ export declare class TriggersClient {
|
|
|
17
17
|
* at once. It returns the fields every capability shares rather than the whole Event
|
|
18
18
|
* Trigger; fetch one by its kind and reference ID for the rest.
|
|
19
19
|
*
|
|
20
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
21
|
+
*
|
|
20
22
|
* @param {MavenAGI.EventTriggersSearchRequest} request
|
|
21
23
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
22
24
|
*
|
|
@@ -36,6 +38,8 @@ export declare class TriggersClient {
|
|
|
36
38
|
/**
|
|
37
39
|
* Update an event trigger or create it if it doesn't exist.
|
|
38
40
|
*
|
|
41
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
42
|
+
*
|
|
39
43
|
* @param {MavenAGI.EventTriggerRequest} request
|
|
40
44
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
45
|
*
|
|
@@ -66,6 +70,8 @@ export declare class TriggersClient {
|
|
|
66
70
|
*
|
|
67
71
|
* Get an event trigger by its supplied ID
|
|
68
72
|
*
|
|
73
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
74
|
+
*
|
|
69
75
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to get. All other entity ID fields are inferred from the request.
|
|
70
76
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
77
|
*
|
|
@@ -90,6 +96,8 @@ export declare class TriggersClient {
|
|
|
90
96
|
*
|
|
91
97
|
* Delete an event trigger
|
|
92
98
|
*
|
|
99
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
100
|
+
*
|
|
93
101
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
|
|
94
102
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
95
103
|
*
|
|
@@ -112,6 +120,8 @@ export declare class TriggersClient {
|
|
|
112
120
|
* `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status` also turns a trigger on and
|
|
113
121
|
* off, the same way it publishes and unpublishes any kind of capability.
|
|
114
122
|
*
|
|
123
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
124
|
+
*
|
|
115
125
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to update. All other entity ID fields are inferred from the request.
|
|
116
126
|
* @param {MavenAGI.PartialUpdateRequest} request
|
|
117
127
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -75,6 +75,8 @@ class TriggersClient {
|
|
|
75
75
|
* at once. It returns the fields every capability shares rather than the whole Event
|
|
76
76
|
* Trigger; fetch one by its kind and reference ID for the rest.
|
|
77
77
|
*
|
|
78
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
79
|
+
*
|
|
78
80
|
* @param {MavenAGI.EventTriggersSearchRequest} request
|
|
79
81
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
82
|
*
|
|
@@ -176,6 +178,8 @@ class TriggersClient {
|
|
|
176
178
|
/**
|
|
177
179
|
* Update an event trigger or create it if it doesn't exist.
|
|
178
180
|
*
|
|
181
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
182
|
+
*
|
|
179
183
|
* @param {MavenAGI.EventTriggerRequest} request
|
|
180
184
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
181
185
|
*
|
|
@@ -288,6 +292,8 @@ class TriggersClient {
|
|
|
288
292
|
*
|
|
289
293
|
* Get an event trigger by its supplied ID
|
|
290
294
|
*
|
|
295
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
296
|
+
*
|
|
291
297
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to get. All other entity ID fields are inferred from the request.
|
|
292
298
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
293
299
|
*
|
|
@@ -391,6 +397,8 @@ class TriggersClient {
|
|
|
391
397
|
*
|
|
392
398
|
* Delete an event trigger
|
|
393
399
|
*
|
|
400
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
401
|
+
*
|
|
394
402
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
|
|
395
403
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
396
404
|
*
|
|
@@ -484,6 +492,8 @@ class TriggersClient {
|
|
|
484
492
|
* `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status` also turns a trigger on and
|
|
485
493
|
* off, the same way it publishes and unpublishes any kind of capability.
|
|
486
494
|
*
|
|
495
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
496
|
+
*
|
|
487
497
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to update. All other entity ID fields are inferred from the request.
|
|
488
498
|
* @param {MavenAGI.PartialUpdateRequest} request
|
|
489
499
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -15,6 +15,12 @@ export declare class UsersClient {
|
|
|
15
15
|
*
|
|
16
16
|
* Agent users are a merged view of the users created by individual apps.
|
|
17
17
|
*
|
|
18
|
+
* Pagination is limited to the first 10,000 matching agent users: `(page + 1) * size` must not
|
|
19
|
+
* exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
|
|
20
|
+
* later results.
|
|
21
|
+
*
|
|
22
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
23
|
+
*
|
|
18
24
|
* @param {MavenAGI.AgentUserSearchRequest} request
|
|
19
25
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
26
|
*
|
|
@@ -36,6 +42,8 @@ export declare class UsersClient {
|
|
|
36
42
|
*
|
|
37
43
|
* Agent users are a merged view of the users created by individual apps.
|
|
38
44
|
*
|
|
45
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
46
|
+
*
|
|
39
47
|
* @param {string} agentUserId - The ID of the agent user to get.
|
|
40
48
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
49
|
*
|
|
@@ -72,6 +80,8 @@ export declare class UsersClient {
|
|
|
72
80
|
* The agent user's intelligent field values are deleted too, and removed from their `INTELLIGENT_FIELD_VALUE_CHANGED` events; the events themselves are kept.
|
|
73
81
|
* Unlike `DELETE /users/{userId}`, the wipe does not recompute the values. They can be computed again later from the user's remaining conversations, for example after the user sends another message; wipe those conversations first to prevent that.
|
|
74
82
|
*
|
|
83
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
84
|
+
*
|
|
75
85
|
* @param {string} agentUserId - The ID of the agent user to wipe.
|
|
76
86
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
87
|
*
|
|
@@ -91,6 +101,8 @@ export declare class UsersClient {
|
|
|
91
101
|
/**
|
|
92
102
|
* Update an app user or create it if it doesn't exist.
|
|
93
103
|
*
|
|
104
|
+
* <Note>**Required permission:** `edit:agents`. A user with `executionMode` `SIMULATION` also needs `create:simulations`.</Note>
|
|
105
|
+
*
|
|
94
106
|
* @param {MavenAGI.AppUserRequest} request
|
|
95
107
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
108
|
*
|
|
@@ -124,6 +136,8 @@ export declare class UsersClient {
|
|
|
124
136
|
/**
|
|
125
137
|
* Get an app user by its supplied ID
|
|
126
138
|
*
|
|
139
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
140
|
+
*
|
|
127
141
|
* @param {string} userId - The reference ID of the app user to get. All other entity ID fields are inferred from the request.
|
|
128
142
|
* @param {MavenAGI.UserGetRequest} request
|
|
129
143
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -154,6 +168,8 @@ export declare class UsersClient {
|
|
|
154
168
|
*
|
|
155
169
|
* <Warning>This is a destructive operation and cannot be undone.</Warning>
|
|
156
170
|
*
|
|
171
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
172
|
+
*
|
|
157
173
|
* @param {string} userId - The reference ID of the app user to delete. All other entity ID fields are inferred from the request.
|
|
158
174
|
* @param {MavenAGI.UserDeleteRequest} request
|
|
159
175
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -62,6 +62,12 @@ class UsersClient {
|
|
|
62
62
|
*
|
|
63
63
|
* Agent users are a merged view of the users created by individual apps.
|
|
64
64
|
*
|
|
65
|
+
* Pagination is limited to the first 10,000 matching agent users: `(page + 1) * size` must not
|
|
66
|
+
* exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
|
|
67
|
+
* later results.
|
|
68
|
+
*
|
|
69
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
70
|
+
*
|
|
65
71
|
* @param {MavenAGI.AgentUserSearchRequest} request
|
|
66
72
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
73
|
*
|
|
@@ -165,6 +171,8 @@ class UsersClient {
|
|
|
165
171
|
*
|
|
166
172
|
* Agent users are a merged view of the users created by individual apps.
|
|
167
173
|
*
|
|
174
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
175
|
+
*
|
|
168
176
|
* @param {string} agentUserId - The ID of the agent user to get.
|
|
169
177
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
170
178
|
*
|
|
@@ -280,6 +288,8 @@ class UsersClient {
|
|
|
280
288
|
* The agent user's intelligent field values are deleted too, and removed from their `INTELLIGENT_FIELD_VALUE_CHANGED` events; the events themselves are kept.
|
|
281
289
|
* Unlike `DELETE /users/{userId}`, the wipe does not recompute the values. They can be computed again later from the user's remaining conversations, for example after the user sends another message; wipe those conversations first to prevent that.
|
|
282
290
|
*
|
|
291
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
292
|
+
*
|
|
283
293
|
* @param {string} agentUserId - The ID of the agent user to wipe.
|
|
284
294
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
285
295
|
*
|
|
@@ -370,6 +380,8 @@ class UsersClient {
|
|
|
370
380
|
/**
|
|
371
381
|
* Update an app user or create it if it doesn't exist.
|
|
372
382
|
*
|
|
383
|
+
* <Note>**Required permission:** `edit:agents`. A user with `executionMode` `SIMULATION` also needs `create:simulations`.</Note>
|
|
384
|
+
*
|
|
373
385
|
* @param {MavenAGI.AppUserRequest} request
|
|
374
386
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
375
387
|
*
|
|
@@ -485,6 +497,8 @@ class UsersClient {
|
|
|
485
497
|
/**
|
|
486
498
|
* Get an app user by its supplied ID
|
|
487
499
|
*
|
|
500
|
+
* <Note>**Required permission:** `read:agents`</Note>
|
|
501
|
+
*
|
|
488
502
|
* @param {string} userId - The reference ID of the app user to get. All other entity ID fields are inferred from the request.
|
|
489
503
|
* @param {MavenAGI.UserGetRequest} request
|
|
490
504
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -602,6 +616,8 @@ class UsersClient {
|
|
|
602
616
|
*
|
|
603
617
|
* <Warning>This is a destructive operation and cannot be undone.</Warning>
|
|
604
618
|
*
|
|
619
|
+
* <Note>**Required permission:** `edit:agents`</Note>
|
|
620
|
+
*
|
|
605
621
|
* @param {string} userId - The reference ID of the app user to delete. All other entity ID fields are inferred from the request.
|
|
606
622
|
* @param {MavenAGI.UserDeleteRequest} request
|
|
607
623
|
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -14,8 +14,9 @@ export declare class VoiceClient {
|
|
|
14
14
|
* Creates a short-lived session token for authenticating voice connections.
|
|
15
15
|
*
|
|
16
16
|
* Supports two token types:
|
|
17
|
-
* - **webrtc**: A
|
|
18
|
-
*
|
|
17
|
+
* - **webrtc**: A token for browser-based WebRTC calls. The `transport` field selects the token format:
|
|
18
|
+
* a token for the Maven telephony gateway (default) or a Twilio access token.
|
|
19
|
+
* - **websocket**: An ES256 JWT for direct WebSocket connections to /v1/realtime/conversations
|
|
19
20
|
*
|
|
20
21
|
* Session tokens are required before establishing any voice connection.
|
|
21
22
|
*
|
|
@@ -61,8 +61,9 @@ class VoiceClient {
|
|
|
61
61
|
* Creates a short-lived session token for authenticating voice connections.
|
|
62
62
|
*
|
|
63
63
|
* Supports two token types:
|
|
64
|
-
* - **webrtc**: A
|
|
65
|
-
*
|
|
64
|
+
* - **webrtc**: A token for browser-based WebRTC calls. The `transport` field selects the token format:
|
|
65
|
+
* a token for the Maven telephony gateway (default) or a Twilio access token.
|
|
66
|
+
* - **websocket**: An ES256 JWT for direct WebSocket connections to /v1/realtime/conversations
|
|
66
67
|
*
|
|
67
68
|
* Session tokens are required before establishing any voice connection.
|
|
68
69
|
*
|