mavenagi 1.2.59 → 1.2.61
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.d.ts +12 -0
- package/BaseClient.js +5 -3
- package/Client.d.ts +3 -0
- package/Client.js +33 -28
- package/api/resources/actions/client/Client.d.ts +10 -0
- package/api/resources/actions/client/Client.js +14 -3
- package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +2 -3
- package/api/resources/agents/client/Client.d.ts +12 -0
- package/api/resources/agents/client/Client.js +16 -3
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +7 -3
- package/api/resources/agents/types/AgentPrompting.d.ts +7 -3
- package/api/resources/analytics/client/Client.d.ts +21 -1
- package/api/resources/analytics/client/Client.js +29 -8
- package/api/resources/analytics/types/ConversationMedian.d.ts +4 -0
- package/api/resources/analytics/types/ConversationPercentile.d.ts +4 -0
- package/api/resources/analytics/types/RowBase.d.ts +5 -1
- package/api/resources/analytics/types/Series.d.ts +4 -1
- package/api/resources/analytics/types/TimeSeries.d.ts +5 -1
- package/api/resources/appDirectory/client/Client.d.ts +12 -0
- package/api/resources/appDirectory/client/Client.js +16 -3
- package/api/resources/appSettings/client/Client.d.ts +6 -0
- package/api/resources/appSettings/client/Client.js +8 -1
- package/api/resources/assets/client/Client.d.ts +4 -0
- package/api/resources/assets/client/Client.js +7 -2
- package/api/resources/charters/client/Client.d.ts +245 -0
- package/api/resources/charters/client/Client.js +884 -0
- package/api/resources/charters/client/index.d.ts +1 -0
- package/api/resources/charters/client/index.js +17 -0
- package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +20 -0
- package/api/resources/charters/client/requests/CharterDeleteRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +8 -0
- package/api/resources/charters/client/requests/CharterGetAncestorsRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterGetRequest.d.ts +8 -0
- package/api/resources/charters/client/requests/CharterGetRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +67 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.js +3 -0
- package/api/resources/charters/client/requests/index.d.ts +4 -0
- package/api/resources/charters/client/requests/index.js +2 -0
- package/api/resources/charters/exports.d.ts +2 -0
- package/api/resources/charters/exports.js +21 -0
- package/api/resources/charters/index.d.ts +1 -0
- package/api/resources/charters/index.js +1 -0
- package/api/resources/charters/types/CharterAncestorsResponse.d.ts +8 -0
- package/api/resources/charters/types/CharterAncestorsResponse.js +3 -0
- package/api/resources/charters/types/CharterBase.d.ts +14 -0
- package/api/resources/charters/types/CharterBase.js +3 -0
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +1 -1
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +1 -1
- package/api/resources/charters/types/CharterChildrenGroup.d.ts +18 -0
- package/api/resources/charters/types/CharterChildrenGroup.js +3 -0
- package/api/resources/charters/types/CharterContent.d.ts +60 -0
- package/api/resources/charters/types/CharterContent.js +3 -0
- package/api/resources/charters/types/CharterKnowledgeBaseReference.d.ts +16 -0
- package/api/resources/charters/types/CharterKnowledgeBaseReference.js +3 -0
- package/api/resources/charters/types/CharterListChildrenRequest.d.ts +18 -0
- package/api/resources/charters/types/CharterListChildrenRequest.js +3 -0
- package/api/resources/charters/types/CharterListChildrenResponse.d.ts +55 -0
- package/api/resources/charters/types/CharterListChildrenResponse.js +3 -0
- package/api/resources/charters/types/CharterPatchReferences.d.ts +22 -0
- package/api/resources/charters/types/CharterPatchReferences.js +3 -0
- package/api/resources/charters/types/CharterReferences.d.ts +21 -0
- package/api/resources/charters/types/CharterReferences.js +3 -0
- package/api/resources/charters/types/CharterRequest.d.ts +36 -0
- package/api/resources/charters/types/CharterRequest.js +3 -0
- package/api/resources/charters/types/CharterResponse.d.ts +66 -0
- package/api/resources/charters/types/CharterResponse.js +3 -0
- package/api/resources/charters/types/CharterSearchField.d.ts +5 -0
- package/api/resources/charters/types/CharterSearchField.js +8 -0
- package/api/resources/charters/types/CharterSearchFilter.d.ts +15 -0
- package/api/resources/charters/types/CharterSearchFilter.js +3 -0
- package/api/resources/charters/types/CharterSearchRequest.d.ts +5 -0
- package/api/resources/charters/types/CharterSearchRequest.js +3 -0
- package/api/resources/charters/types/CharterSearchResponse.d.ts +36 -0
- package/api/resources/charters/types/CharterSearchResponse.js +3 -0
- package/api/resources/charters/types/CharterStatus.d.ts +2 -2
- package/api/resources/charters/types/CharterStatus.js +2 -2
- package/api/resources/charters/types/CharterSummary.d.ts +2 -5
- package/api/resources/charters/types/CharterType.d.ts +4 -4
- package/api/resources/charters/types/CharterType.js +4 -4
- package/api/resources/charters/types/index.d.ts +15 -0
- package/api/resources/charters/types/index.js +15 -0
- package/api/resources/commons/errors/BadRequestError.d.ts +1 -0
- package/api/resources/commons/errors/BadRequestError.js +1 -1
- package/api/resources/commons/errors/NotFoundError.d.ts +1 -0
- package/api/resources/commons/errors/NotFoundError.js +1 -1
- package/api/resources/commons/errors/PayloadTooLargeError.d.ts +1 -0
- package/api/resources/commons/errors/PayloadTooLargeError.js +1 -1
- package/api/resources/commons/errors/ServerError.d.ts +1 -0
- package/api/resources/commons/errors/ServerError.js +1 -1
- package/api/resources/commons/errors/TooManyRequestsError.d.ts +1 -0
- package/api/resources/commons/errors/TooManyRequestsError.js +1 -1
- package/api/resources/commons/types/ActionProperties.d.ts +5 -1
- package/api/resources/commons/types/ActionResponse.d.ts +3 -3
- package/api/resources/commons/types/AskType.d.ts +2 -2
- package/api/resources/commons/types/AskType.js +2 -2
- package/api/resources/commons/types/BotObjectResponse.d.ts +1 -1
- package/api/resources/commons/types/ConversationRound.d.ts +1 -1
- package/api/resources/commons/types/ConversationRound.js +1 -1
- package/api/resources/commons/types/EventFilter.d.ts +5 -0
- package/api/resources/commons/types/EventTriggerType.d.ts +2 -0
- package/api/resources/commons/types/EventTriggerType.js +2 -0
- package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +0 -4
- package/api/resources/commons/types/KnowledgeContextByEntities.d.ts +11 -0
- package/api/resources/commons/types/KnowledgeContextByEntityTypes.d.ts +3 -0
- package/api/resources/commons/types/KnowledgeContextFilter.d.ts +6 -1
- package/api/resources/commons/types/LlmPersona.d.ts +1 -0
- package/api/resources/commons/types/LlmPersona.js +1 -0
- package/api/resources/commons/types/MetadataComparisonCondition.d.ts +10 -0
- package/api/resources/commons/types/MetadataComparisonCondition.js +3 -0
- package/api/resources/commons/types/MetadataComparisonOperator.d.ts +22 -0
- package/api/resources/commons/types/MetadataComparisonOperator.js +25 -0
- package/api/resources/commons/types/MetadataCondition.d.ts +21 -0
- package/api/resources/commons/types/MetadataCondition.js +3 -0
- package/api/resources/commons/types/MetadataEntryCondition.d.ts +10 -0
- package/api/resources/commons/types/MetadataEntryCondition.js +3 -0
- package/api/resources/commons/types/MetadataFilter.d.ts +41 -0
- package/api/resources/commons/types/MetadataFilter.js +3 -0
- package/api/resources/commons/types/MetadataFilterGroup.d.ts +14 -0
- package/api/resources/commons/types/MetadataFilterGroup.js +3 -0
- package/api/resources/commons/types/NovelUserEvent.d.ts +4 -1
- package/api/resources/commons/types/ResponseConfig.d.ts +9 -3
- package/api/resources/commons/types/SimulationContext.d.ts +3 -3
- package/api/resources/commons/types/SystemEventName.d.ts +27 -0
- package/api/resources/commons/types/SystemEventName.js +27 -0
- package/api/resources/commons/types/UserEvent.d.ts +4 -1
- package/api/resources/commons/types/UserEventName.d.ts +84 -0
- package/api/resources/commons/types/UserEventName.js +84 -0
- package/api/resources/commons/types/UserMessage.d.ts +7 -0
- package/api/resources/commons/types/index.d.ts +6 -0
- package/api/resources/commons/types/index.js +6 -0
- package/api/resources/conversation/client/Client.d.ts +35 -1
- package/api/resources/conversation/client/Client.js +51 -18
- package/api/resources/conversation/types/AskRequest.d.ts +10 -10
- package/api/resources/conversation/types/ConversationFilter.d.ts +10 -4
- package/api/resources/customers/client/Client.d.ts +8 -0
- package/api/resources/customers/client/Client.js +12 -3
- package/api/resources/events/client/Client.d.ts +8 -0
- package/api/resources/events/client/Client.js +12 -3
- package/api/resources/inbox/client/Client.d.ts +16 -0
- package/api/resources/inbox/client/Client.js +22 -5
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/integrations/client/Client.d.ts +2 -0
- package/api/resources/integrations/client/Client.js +4 -1
- package/api/resources/intelligentFields/client/Client.d.ts +28 -3
- package/api/resources/intelligentFields/client/Client.js +36 -8
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +4 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +13 -4
- package/api/resources/intelligentFields/types/EnumOption.d.ts +3 -1
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +12 -11
- package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +4 -1
- package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +4 -1
- package/api/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +8 -1
- package/api/resources/intelligentFields/types/IntelligentFieldStatus.js +8 -1
- package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +10 -0
- package/api/resources/intelligentFields/types/IntelligentFieldType.js +10 -0
- package/api/resources/knowledge/client/Client.d.ts +32 -0
- package/api/resources/knowledge/client/Client.js +47 -16
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +18 -10
- package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +6 -1
- package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +5 -1
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +10 -6
- package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +13 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +16 -1
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +33 -9
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +7 -1
- package/api/resources/organizations/client/Client.d.ts +12 -0
- package/api/resources/organizations/client/Client.js +17 -4
- package/api/resources/segments/client/Client.d.ts +20 -0
- package/api/resources/segments/client/Client.js +24 -3
- package/api/resources/translations/client/Client.d.ts +2 -0
- package/api/resources/translations/client/Client.js +4 -1
- package/api/resources/triggers/client/Client.d.ts +10 -0
- package/api/resources/triggers/client/Client.js +14 -3
- package/api/resources/triggers/types/EventTriggerBase.d.ts +3 -1
- package/api/resources/users/client/Client.d.ts +10 -0
- package/api/resources/users/client/Client.js +13 -2
- package/api/resources/voice/client/Client.d.ts +2 -0
- package/api/resources/voice/client/Client.js +4 -1
- package/api/resources/voiceConversations/client/Client.d.ts +4 -1
- package/api/resources/voiceConversations/client/Client.js +2 -1
- package/api/resources/voiceConversations/client/Socket.d.ts +11 -0
- package/api/resources/voiceConversations/client/Socket.js +15 -0
- package/core/fetcher/Fetcher.js +9 -92
- package/core/fetcher/getResponseBody.js +11 -0
- package/core/fetcher/makePassthroughRequest.js +26 -4
- package/core/fetcher/redactUrl.d.ts +2 -0
- package/core/fetcher/redactUrl.js +88 -0
- package/core/fetcher/signals.js +9 -1
- package/core/file/file.js +3 -0
- package/core/form-data-utils/FormDataWrapper.js +3 -0
- package/core/requestBody.d.ts +12 -0
- package/core/requestBody.js +26 -0
- package/core/runtime/index.d.ts +1 -1
- package/core/runtime/index.js +2 -1
- package/core/runtime/runtime.d.ts +19 -0
- package/core/runtime/runtime.js +74 -2
- package/core/schemas/builders/schema-utils/JsonError.js +2 -2
- package/core/schemas/builders/schema-utils/ParseError.js +2 -2
- package/core/stream/Stream.d.ts +45 -1
- package/core/stream/Stream.js +323 -84
- package/core/stream/index.d.ts +1 -0
- package/core/url/qs.js +2 -2
- package/core/websocket/ws.d.ts +6 -0
- package/core/websocket/ws.js +14 -1
- package/errors/MavenAGIError.d.ts +1 -0
- package/errors/MavenAGIError.js +5 -1
- package/errors/MavenAGITimeoutError.d.ts +2 -2
- package/errors/MavenAGITimeoutError.js +40 -6
- package/package.json +2 -2
- package/reference.md +595 -5
- package/serialization/resources/charters/client/index.d.ts +1 -0
- package/serialization/resources/charters/client/index.js +17 -0
- package/serialization/resources/charters/client/requests/CharterPatchRequest.d.ts +24 -0
- package/serialization/resources/charters/client/requests/CharterPatchRequest.js +57 -0
- package/serialization/resources/charters/client/requests/index.d.ts +1 -0
- package/serialization/resources/charters/client/requests/index.js +5 -0
- package/serialization/resources/charters/index.d.ts +1 -0
- package/serialization/resources/charters/index.js +1 -0
- package/serialization/resources/charters/types/CharterAncestorsResponse.d.ts +10 -0
- package/serialization/resources/charters/types/CharterAncestorsResponse.js +42 -0
- package/serialization/resources/charters/types/CharterBase.d.ts +11 -0
- package/serialization/resources/charters/types/CharterBase.js +43 -0
- package/serialization/resources/charters/types/CharterChildrenGroup.d.ts +13 -0
- package/serialization/resources/charters/types/CharterChildrenGroup.js +45 -0
- package/serialization/resources/charters/types/CharterContent.d.ts +19 -0
- package/serialization/resources/charters/types/CharterContent.js +54 -0
- package/serialization/resources/charters/types/CharterKnowledgeBaseReference.d.ts +11 -0
- package/serialization/resources/charters/types/CharterKnowledgeBaseReference.js +44 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +11 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.js +45 -0
- package/serialization/resources/charters/types/CharterListChildrenResponse.d.ts +11 -0
- package/serialization/resources/charters/types/CharterListChildrenResponse.js +45 -0
- package/serialization/resources/charters/types/CharterPatchReferences.d.ts +12 -0
- package/serialization/resources/charters/types/CharterPatchReferences.js +44 -0
- package/serialization/resources/charters/types/CharterReferences.d.ts +12 -0
- package/serialization/resources/charters/types/CharterReferences.js +44 -0
- package/serialization/resources/charters/types/CharterRequest.d.ts +13 -0
- package/serialization/resources/charters/types/CharterRequest.js +47 -0
- package/serialization/resources/charters/types/CharterResponse.d.ts +25 -0
- package/serialization/resources/charters/types/CharterResponse.js +60 -0
- package/serialization/resources/charters/types/CharterSearchField.d.ts +7 -0
- package/serialization/resources/charters/types/CharterSearchField.js +39 -0
- package/serialization/resources/charters/types/CharterSearchFilter.d.ts +11 -0
- package/serialization/resources/charters/types/CharterSearchFilter.js +43 -0
- package/serialization/resources/charters/types/CharterSearchRequest.d.ts +13 -0
- package/serialization/resources/charters/types/CharterSearchRequest.js +47 -0
- package/serialization/resources/charters/types/CharterSearchResponse.d.ts +11 -0
- package/serialization/resources/charters/types/CharterSearchResponse.js +45 -0
- package/serialization/resources/charters/types/CharterSummary.d.ts +2 -3
- package/serialization/resources/charters/types/CharterSummary.js +2 -2
- package/serialization/resources/charters/types/index.d.ts +15 -0
- package/serialization/resources/charters/types/index.js +15 -0
- package/serialization/resources/commons/types/MetadataComparisonCondition.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataComparisonCondition.js +43 -0
- package/serialization/resources/commons/types/MetadataComparisonOperator.d.ts +7 -0
- package/serialization/resources/commons/types/MetadataComparisonOperator.js +39 -0
- package/serialization/resources/commons/types/MetadataCondition.d.ts +19 -0
- package/serialization/resources/commons/types/MetadataCondition.js +51 -0
- package/serialization/resources/commons/types/MetadataEntryCondition.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataEntryCondition.js +43 -0
- package/serialization/resources/commons/types/MetadataFilter.d.ts +14 -0
- package/serialization/resources/commons/types/MetadataFilter.js +49 -0
- package/serialization/resources/commons/types/MetadataFilterGroup.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataFilterGroup.js +44 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +14 -1
- package/serialization/resources/commons/types/UserEventName.d.ts +1 -1
- package/serialization/resources/commons/types/UserEventName.js +28 -0
- package/serialization/resources/commons/types/UserMessage.d.ts +1 -0
- package/serialization/resources/commons/types/UserMessage.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +6 -0
- package/serialization/resources/commons/types/index.js +6 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +1 -0
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +0 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +0 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* A predicate over a string-to-string metadata map: either a condition on the value
|
|
4
|
+
* under one key, or a group of predicates combined with a logical operator.
|
|
5
|
+
*
|
|
6
|
+
* Kept small on purpose: at most 3 levels of nesting and 10 nodes in total, counting
|
|
7
|
+
* groups as well as entries. A filter is meant to narrow a knowledge base to a
|
|
8
|
+
* recognisable slice, not to encode a query language. Exceeding either is a 400.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* {
|
|
12
|
+
* metadataFilterType: "group",
|
|
13
|
+
* operator: MavenAGI.PreconditionGroupOperator.Or,
|
|
14
|
+
* filters: [{
|
|
15
|
+
* metadataFilterType: "entry",
|
|
16
|
+
* key: "category",
|
|
17
|
+
* condition: {
|
|
18
|
+
* opType: "comparison",
|
|
19
|
+
* operator: MavenAGI.MetadataComparisonOperator.Eq,
|
|
20
|
+
* value: "billing"
|
|
21
|
+
* }
|
|
22
|
+
* }, {
|
|
23
|
+
* metadataFilterType: "entry",
|
|
24
|
+
* key: "locale",
|
|
25
|
+
* condition: {
|
|
26
|
+
* opType: "membership",
|
|
27
|
+
* operator: MavenAGI.StringMembershipOperator.In,
|
|
28
|
+
* values: ["en-US", "en-GB"]
|
|
29
|
+
* }
|
|
30
|
+
* }]
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
33
|
+
export type MetadataFilter = MavenAGI.MetadataFilter.Entry | MavenAGI.MetadataFilter.Group;
|
|
34
|
+
export declare namespace MetadataFilter {
|
|
35
|
+
interface Entry extends MavenAGI.MetadataEntryCondition {
|
|
36
|
+
metadataFilterType: "entry";
|
|
37
|
+
}
|
|
38
|
+
interface Group extends MavenAGI.MetadataFilterGroup {
|
|
39
|
+
metadataFilterType: "group";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Combines metadata filters with a logical operator. Groups nest, so `(a AND b) OR c`
|
|
4
|
+
* is a group whose filters are a group and an entry.
|
|
5
|
+
*/
|
|
6
|
+
export interface MetadataFilterGroup {
|
|
7
|
+
/** How to combine `filters`. */
|
|
8
|
+
operator: MavenAGI.PreconditionGroupOperator;
|
|
9
|
+
/**
|
|
10
|
+
* The filters to combine. At least one is required -- a group with no filters constrains
|
|
11
|
+
* nothing, and omitting the filter altogether already means every document.
|
|
12
|
+
*/
|
|
13
|
+
filters: MavenAGI.MetadataFilter[];
|
|
14
|
+
}
|
|
@@ -8,7 +8,10 @@ export interface NovelUserEvent extends MavenAGI.EventBaseNoId {
|
|
|
8
8
|
userInfo: MavenAGI.EventUserInfoBase;
|
|
9
9
|
/** Information about any CSAT associated with the event */
|
|
10
10
|
csatInfo?: MavenAGI.CsatInfo;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Any rating carried by the event. A `BUTTON_CLICKED` thumbs up or down sets a single entry
|
|
13
|
+
* with `thumbUp` true or false.
|
|
14
|
+
*/
|
|
12
15
|
feedbackInfo?: MavenAGI.FeedbackInfo[];
|
|
13
16
|
/** Information about the page on which the event occurred */
|
|
14
17
|
pageInfo?: MavenAGI.PageInfo;
|
|
@@ -16,9 +16,15 @@ export interface ResponseConfig {
|
|
|
16
16
|
/** The desired response length. Defaults to ResponseLength.MEDIUM. */
|
|
17
17
|
responseLength: MavenAGI.ResponseLength;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* Widens the knowledge retrieval candidate pool to include documents scoped to the given
|
|
20
|
+
* entities, in addition to the agent's own knowledge.
|
|
21
|
+
*
|
|
22
|
+
* Knowledge documents are scoped by setting `relevantEntities` on the document. A document
|
|
23
|
+
* with no `relevantEntities` belongs to the agent and is always a retrieval candidate;
|
|
24
|
+
* naming entities here additionally makes documents scoped to those entities retrievable.
|
|
25
|
+
* Omitting this field restricts retrieval to the agent's own knowledge.
|
|
26
|
+
*
|
|
27
|
+
* Only the `byEntities` variant is supported today - see `byEntityTypes`.
|
|
22
28
|
*/
|
|
23
29
|
contextFilter?: MavenAGI.KnowledgeContextFilter;
|
|
24
30
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface SimulationContext {
|
|
3
3
|
/**
|
|
4
|
+
* Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
|
|
5
|
+
*
|
|
4
6
|
* If provided, overrides the agent's default additional prompt text during the simulation.
|
|
5
|
-
* Note that this field is provided for backwards compatibility and will be removed in a future release.
|
|
6
|
-
* Instead please use the `availableKnowledgeBases` field to include a knowledge base with a document `llmInclusionStatus` set to `ALWAYS`.
|
|
7
7
|
*/
|
|
8
8
|
additionalPromptText?: string;
|
|
9
|
-
/**
|
|
9
|
+
/** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
|
|
10
10
|
persona?: MavenAGI.LlmPersona;
|
|
11
11
|
/** If provided, knowledge search will be restricted to the provided list of knowledge bases. Otherwise, all active knowledge bases will be used. An empty list means no knowledge bases will be used. */
|
|
12
12
|
availableKnowledgeBases?: MavenAGI.EntityId[];
|
|
@@ -8,5 +8,32 @@ export declare const SystemEventName: {
|
|
|
8
8
|
/**
|
|
9
9
|
* An app was updated */
|
|
10
10
|
readonly AppUpdated: "APP_UPDATED";
|
|
11
|
+
/**
|
|
12
|
+
* An outbound notification was sent to a user */
|
|
13
|
+
readonly NotificationSent: "NOTIFICATION_SENT";
|
|
14
|
+
/**
|
|
15
|
+
* An outbound notification reached the user */
|
|
16
|
+
readonly NotificationDelivered: "NOTIFICATION_DELIVERED";
|
|
17
|
+
/**
|
|
18
|
+
* An outbound notification could not be delivered */
|
|
19
|
+
readonly NotificationFailed: "NOTIFICATION_FAILED";
|
|
20
|
+
/**
|
|
21
|
+
* An external system was connected */
|
|
22
|
+
readonly IntegrationConnected: "INTEGRATION_CONNECTED";
|
|
23
|
+
/**
|
|
24
|
+
* An external system was disconnected */
|
|
25
|
+
readonly IntegrationDisconnected: "INTEGRATION_DISCONNECTED";
|
|
26
|
+
/**
|
|
27
|
+
* A data sync with an external system began */
|
|
28
|
+
readonly SyncStarted: "SYNC_STARTED";
|
|
29
|
+
/**
|
|
30
|
+
* A data sync with an external system finished */
|
|
31
|
+
readonly SyncCompleted: "SYNC_COMPLETED";
|
|
32
|
+
/**
|
|
33
|
+
* A data sync with an external system failed */
|
|
34
|
+
readonly SyncFailed: "SYNC_FAILED";
|
|
35
|
+
/**
|
|
36
|
+
* An intelligent field's value on a conversation was set or changed. `references` carries the conversation and the field; `contextInfo.additionalData` carries `fieldReferenceId`, `fieldAppId`, the new `value` and the `previousValue`, both as JSON strings. An undetermined value is the JSON string `null` on either key. `previousValue` is absent only when the field was set for the first time and had no previous value at all. */
|
|
37
|
+
readonly IntelligentFieldValueChanged: "INTELLIGENT_FIELD_VALUE_CHANGED";
|
|
11
38
|
};
|
|
12
39
|
export type SystemEventName = (typeof SystemEventName)[keyof typeof SystemEventName] | string;
|
|
@@ -12,4 +12,31 @@ exports.SystemEventName = {
|
|
|
12
12
|
/**
|
|
13
13
|
* An app was updated */
|
|
14
14
|
AppUpdated: "APP_UPDATED",
|
|
15
|
+
/**
|
|
16
|
+
* An outbound notification was sent to a user */
|
|
17
|
+
NotificationSent: "NOTIFICATION_SENT",
|
|
18
|
+
/**
|
|
19
|
+
* An outbound notification reached the user */
|
|
20
|
+
NotificationDelivered: "NOTIFICATION_DELIVERED",
|
|
21
|
+
/**
|
|
22
|
+
* An outbound notification could not be delivered */
|
|
23
|
+
NotificationFailed: "NOTIFICATION_FAILED",
|
|
24
|
+
/**
|
|
25
|
+
* An external system was connected */
|
|
26
|
+
IntegrationConnected: "INTEGRATION_CONNECTED",
|
|
27
|
+
/**
|
|
28
|
+
* An external system was disconnected */
|
|
29
|
+
IntegrationDisconnected: "INTEGRATION_DISCONNECTED",
|
|
30
|
+
/**
|
|
31
|
+
* A data sync with an external system began */
|
|
32
|
+
SyncStarted: "SYNC_STARTED",
|
|
33
|
+
/**
|
|
34
|
+
* A data sync with an external system finished */
|
|
35
|
+
SyncCompleted: "SYNC_COMPLETED",
|
|
36
|
+
/**
|
|
37
|
+
* A data sync with an external system failed */
|
|
38
|
+
SyncFailed: "SYNC_FAILED",
|
|
39
|
+
/**
|
|
40
|
+
* An intelligent field's value on a conversation was set or changed. `references` carries the conversation and the field; `contextInfo.additionalData` carries `fieldReferenceId`, `fieldAppId`, the new `value` and the `previousValue`, both as JSON strings. An undetermined value is the JSON string `null` on either key. `previousValue` is absent only when the field was set for the first time and had no previous value at all. */
|
|
41
|
+
IntelligentFieldValueChanged: "INTELLIGENT_FIELD_VALUE_CHANGED",
|
|
15
42
|
};
|
|
@@ -8,7 +8,10 @@ export interface UserEvent extends MavenAGI.EventBaseNoId {
|
|
|
8
8
|
eventName: MavenAGI.UserEventName;
|
|
9
9
|
/** Information about the user who triggered the event */
|
|
10
10
|
userInfo: MavenAGI.EventUserInfo;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Any rating carried by the event. A `BUTTON_CLICKED` thumbs up or down sets a single entry
|
|
13
|
+
* with `thumbUp` true or false.
|
|
14
|
+
*/
|
|
12
15
|
feedbackInfo?: MavenAGI.FeedbackInfo[];
|
|
13
16
|
/** Information about any CSAT survey associated with the event */
|
|
14
17
|
csatInfo?: MavenAGI.CsatInfo;
|
|
@@ -17,5 +17,89 @@ export declare const UserEventName: {
|
|
|
17
17
|
/**
|
|
18
18
|
* A CSAT rating was submitted */
|
|
19
19
|
readonly CsatSubmitted: "CSAT_SUBMITTED";
|
|
20
|
+
/**
|
|
21
|
+
* A page or screen was viewed. Record which one in `pageInfo`. */
|
|
22
|
+
readonly PageViewed: "PAGE_VIEWED";
|
|
23
|
+
/**
|
|
24
|
+
* A suggested or popular question was clicked instead of being typed */
|
|
25
|
+
readonly SuggestionClicked: "SUGGESTION_CLICKED";
|
|
26
|
+
/**
|
|
27
|
+
* The user ended the conversation */
|
|
28
|
+
readonly ConversationEnded: "CONVERSATION_ENDED";
|
|
29
|
+
/**
|
|
30
|
+
* The user asked to be transferred to a human agent */
|
|
31
|
+
readonly HandoffRequested: "HANDOFF_REQUESTED";
|
|
32
|
+
/**
|
|
33
|
+
* The user opened a support ticket or case */
|
|
34
|
+
readonly TicketCreated: "TICKET_CREATED";
|
|
35
|
+
/**
|
|
36
|
+
* Text from a response was copied */
|
|
37
|
+
readonly TextCopied: "TEXT_COPIED";
|
|
38
|
+
/**
|
|
39
|
+
* Content was translated into another language */
|
|
40
|
+
readonly ContentTranslated: "CONTENT_TRANSLATED";
|
|
41
|
+
/**
|
|
42
|
+
* A search query was submitted */
|
|
43
|
+
readonly SearchSubmitted: "SEARCH_SUBMITTED";
|
|
44
|
+
/**
|
|
45
|
+
* A search result was opened */
|
|
46
|
+
readonly SearchResultClicked: "SEARCH_RESULT_CLICKED";
|
|
47
|
+
/**
|
|
48
|
+
* A help article or knowledge document was read */
|
|
49
|
+
readonly ArticleViewed: "ARTICLE_VIEWED";
|
|
50
|
+
/**
|
|
51
|
+
* The user uploaded a file or attachment */
|
|
52
|
+
readonly FileUploaded: "FILE_UPLOADED";
|
|
53
|
+
/**
|
|
54
|
+
* The user downloaded a file or attachment */
|
|
55
|
+
readonly FileDownloaded: "FILE_DOWNLOADED";
|
|
56
|
+
/**
|
|
57
|
+
* The user began filling out a form */
|
|
58
|
+
readonly FormStarted: "FORM_STARTED";
|
|
59
|
+
/**
|
|
60
|
+
* A form was submitted */
|
|
61
|
+
readonly FormSubmitted: "FORM_SUBMITTED";
|
|
62
|
+
/**
|
|
63
|
+
* The user left a form without submitting it */
|
|
64
|
+
readonly FormAbandoned: "FORM_ABANDONED";
|
|
65
|
+
/**
|
|
66
|
+
* The user entered a multi-step flow, such as onboarding or checkout */
|
|
67
|
+
readonly FlowStarted: "FLOW_STARTED";
|
|
68
|
+
/**
|
|
69
|
+
* The user finished one step of a multi-step flow */
|
|
70
|
+
readonly FlowStepCompleted: "FLOW_STEP_COMPLETED";
|
|
71
|
+
/**
|
|
72
|
+
* The user finished a multi-step flow */
|
|
73
|
+
readonly FlowCompleted: "FLOW_COMPLETED";
|
|
74
|
+
/**
|
|
75
|
+
* The user left a multi-step flow partway through. Pair with an `EVENT_CREATED` trigger to follow up on an onboarding or checkout that was never finished. Name the flow and the step it stopped on in `contextInfo.additionalData`. */
|
|
76
|
+
readonly FlowAbandoned: "FLOW_ABANDONED";
|
|
77
|
+
/**
|
|
78
|
+
* The user created an account */
|
|
79
|
+
readonly AccountCreated: "ACCOUNT_CREATED";
|
|
80
|
+
/**
|
|
81
|
+
* The user signed in */
|
|
82
|
+
readonly SignedIn: "SIGNED_IN";
|
|
83
|
+
/**
|
|
84
|
+
* The user signed out */
|
|
85
|
+
readonly SignedOut: "SIGNED_OUT";
|
|
86
|
+
/**
|
|
87
|
+
* The user started a subscription or plan */
|
|
88
|
+
readonly SubscriptionStarted: "SUBSCRIPTION_STARTED";
|
|
89
|
+
/**
|
|
90
|
+
* The user cancelled a subscription or plan */
|
|
91
|
+
readonly SubscriptionCancelled: "SUBSCRIPTION_CANCELLED";
|
|
92
|
+
/**
|
|
93
|
+
* The user placed an order */
|
|
94
|
+
readonly OrderPlaced: "ORDER_PLACED";
|
|
95
|
+
/**
|
|
96
|
+
* The user cancelled an order */
|
|
97
|
+
readonly OrderCancelled: "ORDER_CANCELLED";
|
|
98
|
+
/**
|
|
99
|
+
* A payment the user attempted did not go through */
|
|
100
|
+
readonly PaymentFailed: "PAYMENT_FAILED";
|
|
101
|
+
/**
|
|
102
|
+
* The user was shown an error */
|
|
103
|
+
readonly ErrorDisplayed: "ERROR_DISPLAYED";
|
|
20
104
|
};
|
|
21
105
|
export type UserEventName = (typeof UserEventName)[keyof typeof UserEventName] | string;
|
|
@@ -21,4 +21,88 @@ exports.UserEventName = {
|
|
|
21
21
|
/**
|
|
22
22
|
* A CSAT rating was submitted */
|
|
23
23
|
CsatSubmitted: "CSAT_SUBMITTED",
|
|
24
|
+
/**
|
|
25
|
+
* A page or screen was viewed. Record which one in `pageInfo`. */
|
|
26
|
+
PageViewed: "PAGE_VIEWED",
|
|
27
|
+
/**
|
|
28
|
+
* A suggested or popular question was clicked instead of being typed */
|
|
29
|
+
SuggestionClicked: "SUGGESTION_CLICKED",
|
|
30
|
+
/**
|
|
31
|
+
* The user ended the conversation */
|
|
32
|
+
ConversationEnded: "CONVERSATION_ENDED",
|
|
33
|
+
/**
|
|
34
|
+
* The user asked to be transferred to a human agent */
|
|
35
|
+
HandoffRequested: "HANDOFF_REQUESTED",
|
|
36
|
+
/**
|
|
37
|
+
* The user opened a support ticket or case */
|
|
38
|
+
TicketCreated: "TICKET_CREATED",
|
|
39
|
+
/**
|
|
40
|
+
* Text from a response was copied */
|
|
41
|
+
TextCopied: "TEXT_COPIED",
|
|
42
|
+
/**
|
|
43
|
+
* Content was translated into another language */
|
|
44
|
+
ContentTranslated: "CONTENT_TRANSLATED",
|
|
45
|
+
/**
|
|
46
|
+
* A search query was submitted */
|
|
47
|
+
SearchSubmitted: "SEARCH_SUBMITTED",
|
|
48
|
+
/**
|
|
49
|
+
* A search result was opened */
|
|
50
|
+
SearchResultClicked: "SEARCH_RESULT_CLICKED",
|
|
51
|
+
/**
|
|
52
|
+
* A help article or knowledge document was read */
|
|
53
|
+
ArticleViewed: "ARTICLE_VIEWED",
|
|
54
|
+
/**
|
|
55
|
+
* The user uploaded a file or attachment */
|
|
56
|
+
FileUploaded: "FILE_UPLOADED",
|
|
57
|
+
/**
|
|
58
|
+
* The user downloaded a file or attachment */
|
|
59
|
+
FileDownloaded: "FILE_DOWNLOADED",
|
|
60
|
+
/**
|
|
61
|
+
* The user began filling out a form */
|
|
62
|
+
FormStarted: "FORM_STARTED",
|
|
63
|
+
/**
|
|
64
|
+
* A form was submitted */
|
|
65
|
+
FormSubmitted: "FORM_SUBMITTED",
|
|
66
|
+
/**
|
|
67
|
+
* The user left a form without submitting it */
|
|
68
|
+
FormAbandoned: "FORM_ABANDONED",
|
|
69
|
+
/**
|
|
70
|
+
* The user entered a multi-step flow, such as onboarding or checkout */
|
|
71
|
+
FlowStarted: "FLOW_STARTED",
|
|
72
|
+
/**
|
|
73
|
+
* The user finished one step of a multi-step flow */
|
|
74
|
+
FlowStepCompleted: "FLOW_STEP_COMPLETED",
|
|
75
|
+
/**
|
|
76
|
+
* The user finished a multi-step flow */
|
|
77
|
+
FlowCompleted: "FLOW_COMPLETED",
|
|
78
|
+
/**
|
|
79
|
+
* The user left a multi-step flow partway through. Pair with an `EVENT_CREATED` trigger to follow up on an onboarding or checkout that was never finished. Name the flow and the step it stopped on in `contextInfo.additionalData`. */
|
|
80
|
+
FlowAbandoned: "FLOW_ABANDONED",
|
|
81
|
+
/**
|
|
82
|
+
* The user created an account */
|
|
83
|
+
AccountCreated: "ACCOUNT_CREATED",
|
|
84
|
+
/**
|
|
85
|
+
* The user signed in */
|
|
86
|
+
SignedIn: "SIGNED_IN",
|
|
87
|
+
/**
|
|
88
|
+
* The user signed out */
|
|
89
|
+
SignedOut: "SIGNED_OUT",
|
|
90
|
+
/**
|
|
91
|
+
* The user started a subscription or plan */
|
|
92
|
+
SubscriptionStarted: "SUBSCRIPTION_STARTED",
|
|
93
|
+
/**
|
|
94
|
+
* The user cancelled a subscription or plan */
|
|
95
|
+
SubscriptionCancelled: "SUBSCRIPTION_CANCELLED",
|
|
96
|
+
/**
|
|
97
|
+
* The user placed an order */
|
|
98
|
+
OrderPlaced: "ORDER_PLACED",
|
|
99
|
+
/**
|
|
100
|
+
* The user cancelled an order */
|
|
101
|
+
OrderCancelled: "ORDER_CANCELLED",
|
|
102
|
+
/**
|
|
103
|
+
* A payment the user attempted did not go through */
|
|
104
|
+
PaymentFailed: "PAYMENT_FAILED",
|
|
105
|
+
/**
|
|
106
|
+
* The user was shown an error */
|
|
107
|
+
ErrorDisplayed: "ERROR_DISPLAYED",
|
|
24
108
|
};
|
|
@@ -28,4 +28,11 @@ export interface UserMessage extends MavenAGI.UserMessageBase {
|
|
|
28
28
|
* - `LLM_DISABLED`: An answer was requested for this user message and the LLM was disabled.
|
|
29
29
|
*/
|
|
30
30
|
responseState?: MavenAGI.UserMessageResponseState;
|
|
31
|
+
/**
|
|
32
|
+
* The timezone supplied with the creating request and used for the message's time-based
|
|
33
|
+
* operations, normally an IANA identifier (e.g. "America/New_York", "Europe/London").
|
|
34
|
+
* Absent when the request did not supply one, in which case the agent's default timezone
|
|
35
|
+
* applied.
|
|
36
|
+
*/
|
|
37
|
+
timezone?: string;
|
|
31
38
|
}
|
|
@@ -134,6 +134,12 @@ export * from "./LanguageInfo";
|
|
|
134
134
|
export * from "./LlmInclusionStatus";
|
|
135
135
|
export * from "./LlmPersona";
|
|
136
136
|
export * from "./MessageStatus";
|
|
137
|
+
export * from "./MetadataComparisonCondition";
|
|
138
|
+
export * from "./MetadataComparisonOperator";
|
|
139
|
+
export * from "./MetadataCondition";
|
|
140
|
+
export * from "./MetadataEntryCondition";
|
|
141
|
+
export * from "./MetadataFilter";
|
|
142
|
+
export * from "./MetadataFilterGroup";
|
|
137
143
|
export * from "./MetadataPrecondition";
|
|
138
144
|
export * from "./MultilineSettingsSchemaEntry";
|
|
139
145
|
export * from "./NovelSystemEvent";
|
|
@@ -150,6 +150,12 @@ __exportStar(require("./LanguageInfo"), exports);
|
|
|
150
150
|
__exportStar(require("./LlmInclusionStatus"), exports);
|
|
151
151
|
__exportStar(require("./LlmPersona"), exports);
|
|
152
152
|
__exportStar(require("./MessageStatus"), exports);
|
|
153
|
+
__exportStar(require("./MetadataComparisonCondition"), exports);
|
|
154
|
+
__exportStar(require("./MetadataComparisonOperator"), exports);
|
|
155
|
+
__exportStar(require("./MetadataCondition"), exports);
|
|
156
|
+
__exportStar(require("./MetadataEntryCondition"), exports);
|
|
157
|
+
__exportStar(require("./MetadataFilter"), exports);
|
|
158
|
+
__exportStar(require("./MetadataFilterGroup"), exports);
|
|
153
159
|
__exportStar(require("./MetadataPrecondition"), exports);
|
|
154
160
|
__exportStar(require("./MultilineSettingsSchemaEntry"), exports);
|
|
155
161
|
__exportStar(require("./NovelSystemEvent"), exports);
|
|
@@ -28,6 +28,8 @@ export declare class ConversationClient {
|
|
|
28
28
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
29
29
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
30
30
|
* @throws {@link MavenAGI.ServerError}
|
|
31
|
+
* @throws {@link errors.MavenAGIError}
|
|
32
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
31
33
|
*
|
|
32
34
|
* @example
|
|
33
35
|
* await client.conversation.initialize({
|
|
@@ -72,6 +74,8 @@ export declare class ConversationClient {
|
|
|
72
74
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
73
75
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
74
76
|
* @throws {@link MavenAGI.ServerError}
|
|
77
|
+
* @throws {@link errors.MavenAGIError}
|
|
78
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
75
79
|
*
|
|
76
80
|
* @example
|
|
77
81
|
* await client.conversation.patch("conversation-0", {
|
|
@@ -92,6 +96,8 @@ export declare class ConversationClient {
|
|
|
92
96
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
93
97
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
94
98
|
* @throws {@link MavenAGI.ServerError}
|
|
99
|
+
* @throws {@link errors.MavenAGIError}
|
|
100
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
95
101
|
*
|
|
96
102
|
* @example
|
|
97
103
|
* await client.conversation.get("conversationId")
|
|
@@ -119,6 +125,8 @@ export declare class ConversationClient {
|
|
|
119
125
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
120
126
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
121
127
|
* @throws {@link MavenAGI.ServerError}
|
|
128
|
+
* @throws {@link errors.MavenAGIError}
|
|
129
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
122
130
|
*
|
|
123
131
|
* @example
|
|
124
132
|
* await client.conversation.delete("conversation-0", {
|
|
@@ -139,6 +147,8 @@ export declare class ConversationClient {
|
|
|
139
147
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
140
148
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
141
149
|
* @throws {@link MavenAGI.ServerError}
|
|
150
|
+
* @throws {@link errors.MavenAGIError}
|
|
151
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
142
152
|
*
|
|
143
153
|
* @example
|
|
144
154
|
* await client.conversation.appendNewMessages("conversationId", [{
|
|
@@ -183,6 +193,8 @@ export declare class ConversationClient {
|
|
|
183
193
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
184
194
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
185
195
|
* @throws {@link MavenAGI.ServerError}
|
|
196
|
+
* @throws {@link errors.MavenAGIError}
|
|
197
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
186
198
|
*
|
|
187
199
|
* @example
|
|
188
200
|
* await client.conversation.ask("conversation-0", {
|
|
@@ -236,6 +248,8 @@ export declare class ConversationClient {
|
|
|
236
248
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
237
249
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
238
250
|
* @throws {@link MavenAGI.ServerError}
|
|
251
|
+
* @throws {@link errors.MavenAGIError}
|
|
252
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
239
253
|
*
|
|
240
254
|
* @example
|
|
241
255
|
* await client.conversation.categorize("conversationId")
|
|
@@ -245,7 +259,9 @@ export declare class ConversationClient {
|
|
|
245
259
|
/**
|
|
246
260
|
* @deprecated
|
|
247
261
|
*
|
|
248
|
-
*
|
|
262
|
+
* Deprecated. Use the Create events API instead, which records feedback as a user event:
|
|
263
|
+
* emit a `USER` event with an `eventName` of `BUTTON_CLICKED` for thumbs up/down or
|
|
264
|
+
* `TEXT_INSERTED` for inserts.
|
|
249
265
|
*
|
|
250
266
|
* Update feedback or create it if it doesn't exist.
|
|
251
267
|
*
|
|
@@ -257,6 +273,8 @@ export declare class ConversationClient {
|
|
|
257
273
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
258
274
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
259
275
|
* @throws {@link MavenAGI.ServerError}
|
|
276
|
+
* @throws {@link errors.MavenAGIError}
|
|
277
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
260
278
|
*
|
|
261
279
|
* @example
|
|
262
280
|
* await client.conversation.createFeedback({
|
|
@@ -294,6 +312,8 @@ export declare class ConversationClient {
|
|
|
294
312
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
295
313
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
296
314
|
* @throws {@link MavenAGI.ServerError}
|
|
315
|
+
* @throws {@link errors.MavenAGIError}
|
|
316
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
297
317
|
*
|
|
298
318
|
* @example
|
|
299
319
|
* await client.conversation.submitActionForm("conversationId", {
|
|
@@ -323,6 +343,8 @@ export declare class ConversationClient {
|
|
|
323
343
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
324
344
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
325
345
|
* @throws {@link MavenAGI.ServerError}
|
|
346
|
+
* @throws {@link errors.MavenAGIError}
|
|
347
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
326
348
|
*
|
|
327
349
|
* @example
|
|
328
350
|
* await client.conversation.addConversationMetadata("conversationId", {
|
|
@@ -349,6 +371,8 @@ export declare class ConversationClient {
|
|
|
349
371
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
350
372
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
351
373
|
* @throws {@link MavenAGI.ServerError}
|
|
374
|
+
* @throws {@link errors.MavenAGIError}
|
|
375
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
352
376
|
*
|
|
353
377
|
* @example
|
|
354
378
|
* await client.conversation.updateConversationMetadata("conversation-0", {
|
|
@@ -371,6 +395,8 @@ export declare class ConversationClient {
|
|
|
371
395
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
372
396
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
373
397
|
* @throws {@link MavenAGI.ServerError}
|
|
398
|
+
* @throws {@link errors.MavenAGIError}
|
|
399
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
374
400
|
*
|
|
375
401
|
* @example
|
|
376
402
|
* await client.conversation.search({})
|
|
@@ -398,6 +424,8 @@ export declare class ConversationClient {
|
|
|
398
424
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
399
425
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
400
426
|
* @throws {@link MavenAGI.ServerError}
|
|
427
|
+
* @throws {@link errors.MavenAGIError}
|
|
428
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
401
429
|
*
|
|
402
430
|
* @example
|
|
403
431
|
* await client.conversation.searchCursor({})
|
|
@@ -417,6 +445,8 @@ export declare class ConversationClient {
|
|
|
417
445
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
418
446
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
419
447
|
* @throws {@link MavenAGI.ServerError}
|
|
448
|
+
* @throws {@link errors.MavenAGIError}
|
|
449
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
420
450
|
*/
|
|
421
451
|
export(request: MavenAGI.ConversationsSearchRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
422
452
|
private __export;
|
|
@@ -438,6 +468,8 @@ export declare class ConversationClient {
|
|
|
438
468
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
439
469
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
440
470
|
* @throws {@link MavenAGI.ServerError}
|
|
471
|
+
* @throws {@link errors.MavenAGIError}
|
|
472
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
441
473
|
*/
|
|
442
474
|
importSimulations(file: core.file.Uploadable, request: MavenAGI.SimulationImportRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
443
475
|
private __importSimulations;
|
|
@@ -459,6 +491,8 @@ export declare class ConversationClient {
|
|
|
459
491
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
460
492
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
461
493
|
* @throws {@link MavenAGI.ServerError}
|
|
494
|
+
* @throws {@link errors.MavenAGIError}
|
|
495
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
462
496
|
*
|
|
463
497
|
* @example
|
|
464
498
|
* await client.conversation.deliverMessage({
|