mavenagi 1.2.62 → 1.2.64
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/agents/client/requests/AgentPatchRequest.d.ts +13 -1
- package/api/resources/agents/types/Agent.d.ts +6 -0
- package/api/resources/agents/types/AgentPrompting.d.ts +2 -0
- package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +4 -0
- package/api/resources/analytics/types/ConversationBasicMetric.d.ts +4 -1
- package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +2 -0
- package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +2 -0
- package/api/resources/capabilities/client/Client.d.ts +35 -0
- package/api/resources/capabilities/client/Client.js +117 -0
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +7 -2
- package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +36 -0
- package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +4 -1
- package/api/resources/capabilities/client/requests/index.d.ts +1 -0
- package/api/resources/capabilities/types/CapabilityExecution.d.ts +14 -0
- package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +32 -0
- package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +36 -0
- package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.js +39 -0
- package/api/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +17 -0
- package/api/resources/capabilities/types/CapabilityExecutionRetryability.js +20 -0
- package/api/resources/capabilities/types/CapabilityExecutionStatus.d.ts +10 -0
- package/api/resources/capabilities/types/CapabilityExecutionStatus.js +13 -0
- package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +62 -0
- package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +3 -0
- package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +7 -0
- package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +3 -0
- package/api/resources/capabilities/types/TriggerCapabilityExecution.d.ts +19 -0
- package/api/resources/capabilities/types/TriggerCapabilityExecution.js +3 -0
- package/api/resources/capabilities/types/index.d.ts +8 -0
- package/api/resources/capabilities/types/index.js +8 -0
- package/api/resources/charters/client/Client.js +6 -2
- package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +6 -6
- package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +12 -0
- package/api/resources/charters/client/requests/CharterGetRequest.d.ts +12 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +5 -6
- package/api/resources/charters/types/CharterBase.d.ts +10 -0
- package/api/resources/charters/types/CharterListChildrenRequest.d.ts +10 -0
- package/api/resources/charters/types/CharterRequest.d.ts +0 -8
- package/api/resources/charters/types/CharterSearchFilter.d.ts +10 -0
- package/api/resources/commons/types/AdditionalDataKey.d.ts +63 -0
- package/api/resources/commons/types/AdditionalDataKey.js +66 -0
- package/api/resources/commons/types/BaseConversationResponse.d.ts +4 -3
- package/api/resources/commons/types/BotLogicCharterDetail.d.ts +1 -1
- package/api/resources/commons/types/BotLogicSegmentsItem.d.ts +3 -0
- package/api/resources/commons/types/ConversationAnalysis.d.ts +1 -1
- package/api/resources/commons/types/ErrorReason.d.ts +7 -1
- package/api/resources/commons/types/ErrorReason.js +7 -1
- package/api/resources/commons/types/EventCondition.d.ts +35 -0
- package/api/resources/commons/types/EventCondition.js +3 -0
- package/api/resources/commons/types/EventConditionGroup.d.ts +11 -0
- package/api/resources/commons/types/EventConditionGroup.js +3 -0
- package/api/resources/commons/types/EventReferencesCondition.d.ts +13 -0
- package/api/resources/commons/types/EventReferencesCondition.js +3 -0
- package/api/resources/{conversation → commons}/types/IntelligentFieldFilter.d.ts +1 -1
- package/api/resources/commons/types/IntelligentFieldFilter.js +3 -0
- package/api/resources/commons/types/IntelligentFieldSearchCondition.js +3 -0
- package/api/resources/commons/types/SimulationContext.d.ts +12 -0
- package/api/resources/commons/types/SystemEventName.d.ts +4 -1
- package/api/resources/commons/types/SystemEventName.js +4 -1
- package/api/resources/commons/types/SystemEventNameCondition.d.ts +10 -0
- package/api/resources/commons/types/SystemEventNameCondition.js +3 -0
- package/api/resources/commons/types/UserEventNameCondition.d.ts +10 -0
- package/api/resources/commons/types/UserEventNameCondition.js +3 -0
- package/api/resources/commons/types/index.d.ts +9 -0
- package/api/resources/commons/types/index.js +9 -0
- package/api/resources/conversation/client/Client.d.ts +21 -2
- package/api/resources/conversation/client/Client.js +21 -2
- package/api/resources/conversation/types/ConversationField.d.ts +22 -1
- package/api/resources/conversation/types/ConversationField.js +22 -1
- package/api/resources/conversation/types/ConversationFilter.d.ts +18 -0
- package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
- package/api/resources/conversation/types/ConversationsSearchRequest.d.ts +2 -2
- package/api/resources/conversation/types/index.d.ts +0 -3
- package/api/resources/conversation/types/index.js +0 -3
- package/api/resources/customers/types/CustomerFilter.d.ts +14 -1
- package/api/resources/events/client/Client.d.ts +1 -1
- package/api/resources/events/client/Client.js +1 -1
- package/api/resources/inbox/types/InboxFilter.d.ts +11 -0
- package/api/resources/intelligentFields/client/Client.d.ts +11 -3
- package/api/resources/intelligentFields/client/Client.js +11 -3
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +9 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +3 -3
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +2 -2
- package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +10 -1
- package/api/resources/segments/client/Client.js +1 -3
- package/api/resources/segments/client/requests/SegmentDeleteRequest.d.ts +0 -12
- package/api/resources/segments/types/SegmentPatchRequest.d.ts +0 -8
- package/api/resources/segments/types/SegmentRequest.d.ts +0 -8
- package/api/resources/triggers/client/Client.d.ts +5 -9
- package/api/resources/triggers/client/Client.js +21 -14
- package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +5 -4
- package/api/resources/triggers/types/EventTriggerBase.d.ts +8 -0
- package/api/resources/triggers/types/index.d.ts +0 -1
- package/api/resources/triggers/types/index.js +0 -1
- package/api/resources/users/types/AgentUser.d.ts +2 -0
- package/api/resources/users/types/AgentUserFilter.d.ts +3 -0
- package/package.json +1 -1
- package/reference.md +115 -11
- package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +2 -0
- package/serialization/resources/agents/client/requests/AgentPatchRequest.js +2 -0
- package/serialization/resources/agents/types/Agent.d.ts +2 -0
- package/serialization/resources/agents/types/Agent.js +2 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +2 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +2 -0
- package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +16 -0
- package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +50 -0
- package/serialization/resources/capabilities/client/requests/index.d.ts +1 -0
- package/serialization/resources/capabilities/client/requests/index.js +3 -1
- package/serialization/resources/capabilities/types/CapabilityExecution.d.ts +15 -0
- package/serialization/resources/capabilities/types/CapabilityExecution.js +49 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +20 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +52 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +7 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.js +50 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +7 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.js +39 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionStatus.d.ts +7 -0
- package/serialization/resources/{triggers/types/TriggerPartialUpdate.js → capabilities/types/CapabilityExecutionStatus.js} +2 -4
- package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +45 -0
- package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +9 -0
- package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +40 -0
- package/serialization/resources/capabilities/types/TriggerCapabilityExecution.d.ts +15 -0
- package/serialization/resources/capabilities/types/TriggerCapabilityExecution.js +49 -0
- package/serialization/resources/capabilities/types/index.d.ts +8 -0
- package/serialization/resources/capabilities/types/index.js +8 -0
- package/serialization/resources/charters/types/CharterBase.d.ts +2 -0
- package/serialization/resources/charters/types/CharterBase.js +2 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +2 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.js +2 -0
- package/serialization/resources/charters/types/CharterRequest.d.ts +0 -2
- package/serialization/resources/charters/types/CharterRequest.js +0 -2
- package/serialization/resources/charters/types/CharterSearchFilter.d.ts +2 -0
- package/serialization/resources/charters/types/CharterSearchFilter.js +2 -0
- package/serialization/resources/commons/types/AdditionalDataKey.d.ts +7 -0
- package/serialization/resources/commons/types/AdditionalDataKey.js +57 -0
- package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
- package/serialization/resources/commons/types/ErrorReason.js +2 -0
- package/serialization/resources/commons/types/EventCondition.d.ts +26 -0
- package/serialization/resources/commons/types/EventCondition.js +55 -0
- package/serialization/resources/commons/types/EventConditionGroup.d.ts +11 -0
- package/serialization/resources/commons/types/EventConditionGroup.js +44 -0
- package/serialization/resources/commons/types/EventReferencesCondition.d.ts +12 -0
- package/serialization/resources/commons/types/EventReferencesCondition.js +44 -0
- package/serialization/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.d.ts +1 -1
- package/serialization/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.js +1 -1
- package/serialization/resources/commons/types/SimulationContext.d.ts +2 -0
- package/serialization/resources/commons/types/SimulationContext.js +2 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +1 -0
- package/serialization/resources/commons/types/SystemEventNameCondition.d.ts +12 -0
- package/serialization/resources/commons/types/SystemEventNameCondition.js +44 -0
- package/serialization/resources/commons/types/UserEventNameCondition.d.ts +12 -0
- package/serialization/resources/commons/types/UserEventNameCondition.js +44 -0
- package/serialization/resources/commons/types/index.d.ts +9 -0
- package/serialization/resources/commons/types/index.js +9 -0
- package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
- package/serialization/resources/conversation/types/ConversationField.js +2 -0
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -1
- package/serialization/resources/conversation/types/ConversationFilter.js +3 -1
- package/serialization/resources/conversation/types/index.d.ts +0 -3
- package/serialization/resources/conversation/types/index.js +0 -3
- package/serialization/resources/inbox/types/InboxFilter.d.ts +2 -0
- package/serialization/resources/inbox/types/InboxFilter.js +2 -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 +2 -2
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +2 -2
- package/serialization/resources/segments/types/SegmentPatchRequest.d.ts +0 -2
- package/serialization/resources/segments/types/SegmentPatchRequest.js +0 -2
- package/serialization/resources/segments/types/SegmentRequest.d.ts +0 -2
- package/serialization/resources/segments/types/SegmentRequest.js +0 -2
- package/serialization/resources/triggers/client/index.d.ts +1 -0
- package/serialization/resources/triggers/client/index.js +17 -0
- package/serialization/resources/triggers/client/requests/PartialUpdateRequest.d.ts +10 -0
- package/serialization/resources/triggers/client/requests/PartialUpdateRequest.js +43 -0
- package/serialization/resources/triggers/client/requests/index.d.ts +1 -0
- package/serialization/resources/triggers/client/requests/index.js +5 -0
- package/serialization/resources/triggers/index.d.ts +1 -0
- package/serialization/resources/triggers/index.js +1 -0
- package/serialization/resources/triggers/types/EventTriggerBase.d.ts +2 -1
- package/serialization/resources/triggers/types/EventTriggerBase.js +2 -0
- package/serialization/resources/triggers/types/index.d.ts +0 -1
- package/serialization/resources/triggers/types/index.js +0 -1
- package/serialization/resources/users/types/AgentUser.d.ts +2 -0
- package/serialization/resources/users/types/AgentUser.js +2 -0
- package/serialization/resources/users/types/AgentUserFilter.d.ts +2 -0
- package/serialization/resources/users/types/AgentUserFilter.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/triggers/types/TriggerPartialUpdate.d.ts +0 -4
- package/serialization/resources/triggers/types/TriggerPartialUpdate.d.ts +0 -9
- /package/api/resources/{conversation/types/IntelligentFieldFilter.js → capabilities/client/requests/CapabilityExecutionsSearchRequest.js} +0 -0
- /package/api/resources/{conversation/types/IntelligentFieldSearchCondition.js → capabilities/types/CapabilityExecution.js} +0 -0
- /package/api/resources/{triggers/types/TriggerPartialUpdate.js → capabilities/types/CapabilityExecutionBase.js} +0 -0
- /package/api/resources/{conversation → commons}/types/IntelligentFieldOperator.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/IntelligentFieldOperator.js +0 -0
- /package/api/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/IntelligentFieldFilter.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/IntelligentFieldFilter.js +0 -0
- /package/serialization/resources/{conversation → commons}/types/IntelligentFieldOperator.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/IntelligentFieldOperator.js +0 -0
|
@@ -8,6 +8,7 @@ export * from "./ActionParameterType";
|
|
|
8
8
|
export * from "./ActionProperties";
|
|
9
9
|
export * from "./ActionResponse";
|
|
10
10
|
export * from "./ActionUser";
|
|
11
|
+
export * from "./AdditionalDataKey";
|
|
11
12
|
export * from "./AppPrecondition";
|
|
12
13
|
export * from "./AppUser";
|
|
13
14
|
export * from "./AppUserIdentifier";
|
|
@@ -94,8 +95,11 @@ export * from "./EntityType";
|
|
|
94
95
|
export * from "./ErrorMessage";
|
|
95
96
|
export * from "./ErrorReason";
|
|
96
97
|
export * from "./EventBaseNoId";
|
|
98
|
+
export * from "./EventCondition";
|
|
99
|
+
export * from "./EventConditionGroup";
|
|
97
100
|
export * from "./EventField";
|
|
98
101
|
export * from "./EventFilter";
|
|
102
|
+
export * from "./EventReferencesCondition";
|
|
99
103
|
export * from "./EventRequest";
|
|
100
104
|
export * from "./EventResponse";
|
|
101
105
|
export * from "./EventsSearchRequest";
|
|
@@ -125,8 +129,11 @@ export * from "./InboxItemSeverity";
|
|
|
125
129
|
export * from "./InboxItemStatus";
|
|
126
130
|
export * from "./InboxItemType";
|
|
127
131
|
export * from "./InitializeConversationResponse";
|
|
132
|
+
export * from "./IntelligentFieldFilter";
|
|
133
|
+
export * from "./IntelligentFieldOperator";
|
|
128
134
|
export * from "./IntelligentFieldPrecondition";
|
|
129
135
|
export * from "./IntelligentFieldPreconditionResponse";
|
|
136
|
+
export * from "./IntelligentFieldSearchCondition";
|
|
130
137
|
export * from "./IntelligentFieldValueResponse";
|
|
131
138
|
export * from "./IpInfo";
|
|
132
139
|
export * from "./JsonSchemaSettingsSchemaEntry";
|
|
@@ -211,6 +218,7 @@ export * from "./SurveyInfo";
|
|
|
211
218
|
export * from "./SwitchSettingsSchemaEntry";
|
|
212
219
|
export * from "./SystemEvent";
|
|
213
220
|
export * from "./SystemEventName";
|
|
221
|
+
export * from "./SystemEventNameCondition";
|
|
214
222
|
export * from "./TagsPrecondition";
|
|
215
223
|
export * from "./TextFormat";
|
|
216
224
|
export * from "./TextFormatJsonSchema";
|
|
@@ -222,6 +230,7 @@ export * from "./UserData";
|
|
|
222
230
|
export * from "./UserDataWithReference";
|
|
223
231
|
export * from "./UserEvent";
|
|
224
232
|
export * from "./UserEventName";
|
|
233
|
+
export * from "./UserEventNameCondition";
|
|
225
234
|
export * from "./UserMessage";
|
|
226
235
|
export * from "./UserMessageBase";
|
|
227
236
|
export * from "./UserMessageResponseState";
|
|
@@ -24,6 +24,7 @@ __exportStar(require("./ActionParameterType"), exports);
|
|
|
24
24
|
__exportStar(require("./ActionProperties"), exports);
|
|
25
25
|
__exportStar(require("./ActionResponse"), exports);
|
|
26
26
|
__exportStar(require("./ActionUser"), exports);
|
|
27
|
+
__exportStar(require("./AdditionalDataKey"), exports);
|
|
27
28
|
__exportStar(require("./AppPrecondition"), exports);
|
|
28
29
|
__exportStar(require("./AppUser"), exports);
|
|
29
30
|
__exportStar(require("./AppUserIdentifier"), exports);
|
|
@@ -110,8 +111,11 @@ __exportStar(require("./EntityType"), exports);
|
|
|
110
111
|
__exportStar(require("./ErrorMessage"), exports);
|
|
111
112
|
__exportStar(require("./ErrorReason"), exports);
|
|
112
113
|
__exportStar(require("./EventBaseNoId"), exports);
|
|
114
|
+
__exportStar(require("./EventCondition"), exports);
|
|
115
|
+
__exportStar(require("./EventConditionGroup"), exports);
|
|
113
116
|
__exportStar(require("./EventField"), exports);
|
|
114
117
|
__exportStar(require("./EventFilter"), exports);
|
|
118
|
+
__exportStar(require("./EventReferencesCondition"), exports);
|
|
115
119
|
__exportStar(require("./EventRequest"), exports);
|
|
116
120
|
__exportStar(require("./EventResponse"), exports);
|
|
117
121
|
__exportStar(require("./EventsSearchRequest"), exports);
|
|
@@ -141,8 +145,11 @@ __exportStar(require("./InboxItemSeverity"), exports);
|
|
|
141
145
|
__exportStar(require("./InboxItemStatus"), exports);
|
|
142
146
|
__exportStar(require("./InboxItemType"), exports);
|
|
143
147
|
__exportStar(require("./InitializeConversationResponse"), exports);
|
|
148
|
+
__exportStar(require("./IntelligentFieldFilter"), exports);
|
|
149
|
+
__exportStar(require("./IntelligentFieldOperator"), exports);
|
|
144
150
|
__exportStar(require("./IntelligentFieldPrecondition"), exports);
|
|
145
151
|
__exportStar(require("./IntelligentFieldPreconditionResponse"), exports);
|
|
152
|
+
__exportStar(require("./IntelligentFieldSearchCondition"), exports);
|
|
146
153
|
__exportStar(require("./IntelligentFieldValueResponse"), exports);
|
|
147
154
|
__exportStar(require("./IpInfo"), exports);
|
|
148
155
|
__exportStar(require("./JsonSchemaSettingsSchemaEntry"), exports);
|
|
@@ -227,6 +234,7 @@ __exportStar(require("./SurveyInfo"), exports);
|
|
|
227
234
|
__exportStar(require("./SwitchSettingsSchemaEntry"), exports);
|
|
228
235
|
__exportStar(require("./SystemEvent"), exports);
|
|
229
236
|
__exportStar(require("./SystemEventName"), exports);
|
|
237
|
+
__exportStar(require("./SystemEventNameCondition"), exports);
|
|
230
238
|
__exportStar(require("./TagsPrecondition"), exports);
|
|
231
239
|
__exportStar(require("./TextFormat"), exports);
|
|
232
240
|
__exportStar(require("./TextFormatJsonSchema"), exports);
|
|
@@ -238,6 +246,7 @@ __exportStar(require("./UserData"), exports);
|
|
|
238
246
|
__exportStar(require("./UserDataWithReference"), exports);
|
|
239
247
|
__exportStar(require("./UserEvent"), exports);
|
|
240
248
|
__exportStar(require("./UserEventName"), exports);
|
|
249
|
+
__exportStar(require("./UserEventNameCondition"), exports);
|
|
241
250
|
__exportStar(require("./UserMessage"), exports);
|
|
242
251
|
__exportStar(require("./UserMessageBase"), exports);
|
|
243
252
|
__exportStar(require("./UserMessageResponseState"), exports);
|
|
@@ -65,6 +65,9 @@ export declare class ConversationClient {
|
|
|
65
65
|
* The `appId` field can be provided to update a conversation owned by a different app.
|
|
66
66
|
* All other fields will overwrite the existing value on the conversation only if provided.
|
|
67
67
|
*
|
|
68
|
+
* A closed conversation (`open` set to false) cannot be reopened: a patch setting `open` to true
|
|
69
|
+
* returns a 400. Its other fields can still be patched.
|
|
70
|
+
*
|
|
68
71
|
* @param {string} conversationId - The ID of the conversation to patch
|
|
69
72
|
* @param {MavenAGI.ConversationPatchRequest} request
|
|
70
73
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -139,6 +142,8 @@ export declare class ConversationClient {
|
|
|
139
142
|
/**
|
|
140
143
|
* Append messages to an existing conversation. The conversation must be initialized first. If a message with the same ID already exists, it will be ignored. Messages do not allow modification.
|
|
141
144
|
*
|
|
145
|
+
* A closed conversation (`open` set to false) takes no new messages and returns a 400.
|
|
146
|
+
*
|
|
142
147
|
* @param {string} conversationId - The ID of the conversation to append messages to
|
|
143
148
|
* @param {MavenAGI.ConversationMessageRequest[]} request
|
|
144
149
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -178,6 +183,8 @@ export declare class ConversationClient {
|
|
|
178
183
|
* Get an answer from Maven for a given user question. If the user question or its answer already exists,
|
|
179
184
|
* they will be reused and will not be updated. Messages do not allow modification once generated.
|
|
180
185
|
*
|
|
186
|
+
* A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
187
|
+
*
|
|
181
188
|
* Concurrency Behavior:
|
|
182
189
|
* - If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
183
190
|
* - The second caller will receive a truncated or partial response depending on where the first stream is in its processing. The first caller's stream will remain unaffected and continue delivering the full response.
|
|
@@ -227,6 +234,8 @@ export declare class ConversationClient {
|
|
|
227
234
|
* If the user question or its answer already exists, they will be reused and will not be updated.
|
|
228
235
|
* Messages do not allow modification once generated.
|
|
229
236
|
*
|
|
237
|
+
* A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
238
|
+
*
|
|
230
239
|
* Concurrency Behavior:
|
|
231
240
|
* - If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
232
241
|
* - The second caller will receive a truncated or partial response depending on where the first stream is in its processing. The first caller's stream will remain unaffected and continue delivering the full response.
|
|
@@ -237,9 +246,13 @@ export declare class ConversationClient {
|
|
|
237
246
|
askStream(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<core.Stream<MavenAGI.StreamResponse>>;
|
|
238
247
|
private __askStream;
|
|
239
248
|
/**
|
|
240
|
-
* @
|
|
249
|
+
* @deprecated
|
|
241
250
|
*
|
|
242
|
-
*
|
|
251
|
+
* Deprecated. Set the agent's `categoryIntelligentFieldId` and read that intelligent field's value instead.
|
|
252
|
+
*
|
|
253
|
+
* Uses an LLM flow to categorize the conversation.
|
|
254
|
+
*
|
|
255
|
+
* Returns a 400 for new agents and for any agent with a `categoryIntelligentFieldId`. Their conversation categories come only from that intelligent field: read the field's value, or react to it changing with an `EVENT_CREATED` trigger on the `INTELLIGENT_FIELD_VALUE_CHANGED` system event.
|
|
243
256
|
*
|
|
244
257
|
* @param {string} conversationId - The ID of the conversation to categorize
|
|
245
258
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -304,6 +317,8 @@ export declare class ConversationClient {
|
|
|
304
317
|
* Additionally, form submission is only allowed when the form is the last message in the conversation.
|
|
305
318
|
* Forms should be disabled in surface UI if a conversation continues and they remain unsubmitted.
|
|
306
319
|
*
|
|
320
|
+
* A form cannot be submitted on a closed conversation (`open` set to false): that returns a 400.
|
|
321
|
+
*
|
|
307
322
|
* @param {string} conversationId - The ID of a conversation the form being submitted belongs to
|
|
308
323
|
* @param {MavenAGI.SubmitActionFormRequest} request
|
|
309
324
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -335,6 +350,8 @@ export declare class ConversationClient {
|
|
|
335
350
|
*
|
|
336
351
|
* Adds metadata to an existing conversation. If a metadata field already exists, it will be overwritten.
|
|
337
352
|
*
|
|
353
|
+
* A closed conversation (`open` set to false) takes no new metadata and returns a 400.
|
|
354
|
+
*
|
|
338
355
|
* @param {string} conversationId - The ID of a conversation the metadata being added belongs to
|
|
339
356
|
* @param {Record<string, string>} request
|
|
340
357
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -363,6 +380,8 @@ export declare class ConversationClient {
|
|
|
363
380
|
*
|
|
364
381
|
* Returns all metadata saved by any app on the conversation.
|
|
365
382
|
*
|
|
383
|
+
* A closed conversation (`open` set to false) takes no new metadata and returns a 400.
|
|
384
|
+
*
|
|
366
385
|
* @param {string} conversationId - The ID of the conversation to modify metadata for
|
|
367
386
|
* @param {MavenAGI.UpdateMetadataRequest} request
|
|
368
387
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -195,6 +195,9 @@ class ConversationClient {
|
|
|
195
195
|
* The `appId` field can be provided to update a conversation owned by a different app.
|
|
196
196
|
* All other fields will overwrite the existing value on the conversation only if provided.
|
|
197
197
|
*
|
|
198
|
+
* A closed conversation (`open` set to false) cannot be reopened: a patch setting `open` to true
|
|
199
|
+
* returns a 400. Its other fields can still be patched.
|
|
200
|
+
*
|
|
198
201
|
* @param {string} conversationId - The ID of the conversation to patch
|
|
199
202
|
* @param {MavenAGI.ConversationPatchRequest} request
|
|
200
203
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -519,6 +522,8 @@ class ConversationClient {
|
|
|
519
522
|
/**
|
|
520
523
|
* Append messages to an existing conversation. The conversation must be initialized first. If a message with the same ID already exists, it will be ignored. Messages do not allow modification.
|
|
521
524
|
*
|
|
525
|
+
* A closed conversation (`open` set to false) takes no new messages and returns a 400.
|
|
526
|
+
*
|
|
522
527
|
* @param {string} conversationId - The ID of the conversation to append messages to
|
|
523
528
|
* @param {MavenAGI.ConversationMessageRequest[]} request
|
|
524
529
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -642,6 +647,8 @@ class ConversationClient {
|
|
|
642
647
|
* Get an answer from Maven for a given user question. If the user question or its answer already exists,
|
|
643
648
|
* they will be reused and will not be updated. Messages do not allow modification once generated.
|
|
644
649
|
*
|
|
650
|
+
* A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
651
|
+
*
|
|
645
652
|
* Concurrency Behavior:
|
|
646
653
|
* - If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
647
654
|
* - The second caller will receive a truncated or partial response depending on where the first stream is in its processing. The first caller's stream will remain unaffected and continue delivering the full response.
|
|
@@ -773,6 +780,8 @@ class ConversationClient {
|
|
|
773
780
|
* If the user question or its answer already exists, they will be reused and will not be updated.
|
|
774
781
|
* Messages do not allow modification once generated.
|
|
775
782
|
*
|
|
783
|
+
* A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
784
|
+
*
|
|
776
785
|
* Concurrency Behavior:
|
|
777
786
|
* - If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
778
787
|
* - The second caller will receive a truncated or partial response depending on where the first stream is in its processing. The first caller's stream will remain unaffected and continue delivering the full response.
|
|
@@ -875,9 +884,13 @@ class ConversationClient {
|
|
|
875
884
|
});
|
|
876
885
|
}
|
|
877
886
|
/**
|
|
878
|
-
* @
|
|
887
|
+
* @deprecated
|
|
879
888
|
*
|
|
880
|
-
*
|
|
889
|
+
* Deprecated. Set the agent's `categoryIntelligentFieldId` and read that intelligent field's value instead.
|
|
890
|
+
*
|
|
891
|
+
* Uses an LLM flow to categorize the conversation.
|
|
892
|
+
*
|
|
893
|
+
* Returns a 400 for new agents and for any agent with a `categoryIntelligentFieldId`. Their conversation categories come only from that intelligent field: read the field's value, or react to it changing with an `EVENT_CREATED` trigger on the `INTELLIGENT_FIELD_VALUE_CHANGED` system event.
|
|
881
894
|
*
|
|
882
895
|
* @param {string} conversationId - The ID of the conversation to categorize
|
|
883
896
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1103,6 +1116,8 @@ class ConversationClient {
|
|
|
1103
1116
|
* Additionally, form submission is only allowed when the form is the last message in the conversation.
|
|
1104
1117
|
* Forms should be disabled in surface UI if a conversation continues and they remain unsubmitted.
|
|
1105
1118
|
*
|
|
1119
|
+
* A form cannot be submitted on a closed conversation (`open` set to false): that returns a 400.
|
|
1120
|
+
*
|
|
1106
1121
|
* @param {string} conversationId - The ID of a conversation the form being submitted belongs to
|
|
1107
1122
|
* @param {MavenAGI.SubmitActionFormRequest} request
|
|
1108
1123
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1216,6 +1231,8 @@ class ConversationClient {
|
|
|
1216
1231
|
*
|
|
1217
1232
|
* Adds metadata to an existing conversation. If a metadata field already exists, it will be overwritten.
|
|
1218
1233
|
*
|
|
1234
|
+
* A closed conversation (`open` set to false) takes no new metadata and returns a 400.
|
|
1235
|
+
*
|
|
1219
1236
|
* @param {string} conversationId - The ID of a conversation the metadata being added belongs to
|
|
1220
1237
|
* @param {Record<string, string>} request
|
|
1221
1238
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1328,6 +1345,8 @@ class ConversationClient {
|
|
|
1328
1345
|
*
|
|
1329
1346
|
* Returns all metadata saved by any app on the conversation.
|
|
1330
1347
|
*
|
|
1348
|
+
* A closed conversation (`open` set to false) takes no new metadata and returns a 400.
|
|
1349
|
+
*
|
|
1331
1350
|
* @param {string} conversationId - The ID of the conversation to modify metadata for
|
|
1332
1351
|
* @param {MavenAGI.UpdateMetadataRequest} request
|
|
1333
1352
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -37,9 +37,30 @@ export declare const ConversationField: {
|
|
|
37
37
|
readonly AgentEnvironment: "AgentEnvironment";
|
|
38
38
|
readonly InboxItems: "InboxItems";
|
|
39
39
|
readonly InvolvedApps: "InvolvedApps";
|
|
40
|
+
/**
|
|
41
|
+
* In development, part of agent versioning. The agent variant the conversation is pinned
|
|
42
|
+
* to (its `variantId`). A conversation from before the agent's conversations were pinned
|
|
43
|
+
* has none; grouping puts those under `BEFORE_VERSIONING`. In a table row a variant is an
|
|
44
|
+
* `entityId` value and `BEFORE_VERSIONING` a `string` value. */
|
|
45
|
+
readonly Variant: "Variant";
|
|
40
46
|
/**
|
|
41
47
|
* Selects an intelligent field rather than a built-in conversation field.
|
|
42
|
-
* When used, `intelligentFieldId` must also be set to identify which field.
|
|
48
|
+
* When used, `intelligentFieldId` must also be set to identify which field.
|
|
49
|
+
* Grouping by it splits that one field's conversations by value; to split conversations by
|
|
50
|
+
* which fields they have, use `IntelligentFields`. */
|
|
43
51
|
readonly IntelligentField: "IntelligentField";
|
|
52
|
+
/**
|
|
53
|
+
* Groups conversations by each intelligent field that has a value on them: one bucket per
|
|
54
|
+
* field, keyed by the field as an `entityId` value. A conversation with three fields counts
|
|
55
|
+
* once under each, as with `Actions`. A field counts when the conversation has a value for
|
|
56
|
+
* it, an undetermined one included: the same conversations an `intelligentFields`
|
|
57
|
+
* `EXISTS` condition matches. Only conversation-level fields are on a conversation.
|
|
58
|
+
*
|
|
59
|
+
* Unlike `IntelligentField`, it takes no `intelligentFieldId` and doesn't look at values.
|
|
60
|
+
* Combine it with `Variant` to see which fields each variant's conversations have.
|
|
61
|
+
*
|
|
62
|
+
* It only works as a grouping: a metric targeting it, such as a `distinctCount`, is
|
|
63
|
+
* rejected with a 400. */
|
|
64
|
+
readonly IntelligentFields: "IntelligentFields";
|
|
44
65
|
};
|
|
45
66
|
export type ConversationField = (typeof ConversationField)[keyof typeof ConversationField] | string;
|
|
@@ -41,8 +41,29 @@ exports.ConversationField = {
|
|
|
41
41
|
AgentEnvironment: "AgentEnvironment",
|
|
42
42
|
InboxItems: "InboxItems",
|
|
43
43
|
InvolvedApps: "InvolvedApps",
|
|
44
|
+
/**
|
|
45
|
+
* In development, part of agent versioning. The agent variant the conversation is pinned
|
|
46
|
+
* to (its `variantId`). A conversation from before the agent's conversations were pinned
|
|
47
|
+
* has none; grouping puts those under `BEFORE_VERSIONING`. In a table row a variant is an
|
|
48
|
+
* `entityId` value and `BEFORE_VERSIONING` a `string` value. */
|
|
49
|
+
Variant: "Variant",
|
|
44
50
|
/**
|
|
45
51
|
* Selects an intelligent field rather than a built-in conversation field.
|
|
46
|
-
* When used, `intelligentFieldId` must also be set to identify which field.
|
|
52
|
+
* When used, `intelligentFieldId` must also be set to identify which field.
|
|
53
|
+
* Grouping by it splits that one field's conversations by value; to split conversations by
|
|
54
|
+
* which fields they have, use `IntelligentFields`. */
|
|
47
55
|
IntelligentField: "IntelligentField",
|
|
56
|
+
/**
|
|
57
|
+
* Groups conversations by each intelligent field that has a value on them: one bucket per
|
|
58
|
+
* field, keyed by the field as an `entityId` value. A conversation with three fields counts
|
|
59
|
+
* once under each, as with `Actions`. A field counts when the conversation has a value for
|
|
60
|
+
* it, an undetermined one included: the same conversations an `intelligentFields`
|
|
61
|
+
* `EXISTS` condition matches. Only conversation-level fields are on a conversation.
|
|
62
|
+
*
|
|
63
|
+
* Unlike `IntelligentField`, it takes no `intelligentFieldId` and doesn't look at values.
|
|
64
|
+
* Combine it with `Variant` to see which fields each variant's conversations have.
|
|
65
|
+
*
|
|
66
|
+
* It only works as a grouping: a metric targeting it, such as a `distinctCount`, is
|
|
67
|
+
* rejected with a 400. */
|
|
68
|
+
IntelligentFields: "IntelligentFields",
|
|
48
69
|
};
|
|
@@ -62,6 +62,14 @@ export interface ConversationFilter {
|
|
|
62
62
|
* customer-writable.
|
|
63
63
|
*/
|
|
64
64
|
conversationMode?: MavenAGI.ConversationMode[];
|
|
65
|
+
/**
|
|
66
|
+
* Filter by whether the conversation has been deleted with `deleteConversation`. `true`
|
|
67
|
+
* returns only deleted conversations, `false` excludes them. When unset, both are returned.
|
|
68
|
+
*
|
|
69
|
+
* The filter reads the search index, which is updated shortly after a deletion. Use the
|
|
70
|
+
* `deleted` field on each result to confirm.
|
|
71
|
+
*/
|
|
72
|
+
deleted?: boolean;
|
|
65
73
|
/** Filter by tags applied to the conversation */
|
|
66
74
|
tags?: string[];
|
|
67
75
|
/** Filter by agent user IDs associated with the conversation */
|
|
@@ -106,6 +114,16 @@ export interface ConversationFilter {
|
|
|
106
114
|
anyMsgCharterMode?: boolean;
|
|
107
115
|
/** Filter by inbox item IDs associated with the conversation */
|
|
108
116
|
inboxItemIds?: MavenAGI.EntityIdFilter[];
|
|
117
|
+
/**
|
|
118
|
+
* Filter by the agent variant each conversation is pinned to (its `variantId`), by
|
|
119
|
+
* reference ID and owning app, resolved against the calling agent. Matches conversations
|
|
120
|
+
* pinned to any of them.
|
|
121
|
+
*
|
|
122
|
+
* Omit it to match every conversation in the window, whichever variant it ran on. A
|
|
123
|
+
* conversation from before the agent's conversations were pinned has no variant, so it
|
|
124
|
+
* matches no list; grouping by `Variant` reports those as `BEFORE_VERSIONING`.
|
|
125
|
+
*/
|
|
126
|
+
variantIds?: MavenAGI.EntityIdFilter[];
|
|
109
127
|
/** Whether to include simulation conversations in search results. Defaults to only non-simulation conversations. */
|
|
110
128
|
simulationFilter?: MavenAGI.SimulationFilter;
|
|
111
129
|
/** Filter by intelligent field values. All conditions are ANDed together. */
|
|
@@ -8,7 +8,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
8
8
|
export interface ConversationPatchRequest {
|
|
9
9
|
/** The App ID of the conversation to patch. If not provided the ID of the calling app will be used. */
|
|
10
10
|
appId?: string;
|
|
11
|
-
/** Whether the conversation is
|
|
11
|
+
/** Whether the conversation is open. Set it to false to close the conversation, which records a `CONVERSATION_CLOSED` system event. Closing is final: a closed conversation cannot be reopened and takes no new questions, form submissions, messages or metadata. It can still be read, deleted, and patched otherwise, for example to add attachments. For a conversation with the `ASYNC` capability, only an open conversation can receive asynchronous messages. */
|
|
12
12
|
open?: boolean;
|
|
13
13
|
/** Whether the LLM is enabled for this conversation. */
|
|
14
14
|
llmEnabled?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface ConversationsSearchRequest extends MavenAGI.BasePaginatedRequest {
|
|
3
3
|
/**
|
|
4
|
-
* Field to sort results by. `IntelligentField`
|
|
5
|
-
* by an intelligent field value is not available. Intelligent fields can be filtered on via
|
|
4
|
+
* Field to sort results by. `IntelligentField` and `IntelligentFields` are not supported
|
|
5
|
+
* here - sorting conversations by an intelligent field value is not available. Intelligent fields can be filtered on via
|
|
6
6
|
* `filter.intelligentFields`, and grouped or aggregated through the analytics APIs.
|
|
7
7
|
*/
|
|
8
8
|
sort?: MavenAGI.ConversationField;
|
|
@@ -29,9 +29,6 @@ export * from "./DeliveryStatus";
|
|
|
29
29
|
export * from "./FeedbackField";
|
|
30
30
|
export * from "./FeedbackFilter";
|
|
31
31
|
export * from "./FeedbackRequest";
|
|
32
|
-
export * from "./IntelligentFieldFilter";
|
|
33
|
-
export * from "./IntelligentFieldOperator";
|
|
34
|
-
export * from "./IntelligentFieldSearchCondition";
|
|
35
32
|
export * from "./NumericConversationField";
|
|
36
33
|
export * from "./SimulationFilter";
|
|
37
34
|
export * from "./StreamResponse";
|
|
@@ -45,9 +45,6 @@ __exportStar(require("./DeliveryStatus"), exports);
|
|
|
45
45
|
__exportStar(require("./FeedbackField"), exports);
|
|
46
46
|
__exportStar(require("./FeedbackFilter"), exports);
|
|
47
47
|
__exportStar(require("./FeedbackRequest"), exports);
|
|
48
|
-
__exportStar(require("./IntelligentFieldFilter"), exports);
|
|
49
|
-
__exportStar(require("./IntelligentFieldOperator"), exports);
|
|
50
|
-
__exportStar(require("./IntelligentFieldSearchCondition"), exports);
|
|
51
48
|
__exportStar(require("./NumericConversationField"), exports);
|
|
52
49
|
__exportStar(require("./SimulationFilter"), exports);
|
|
53
50
|
__exportStar(require("./StreamResponse"), exports);
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface CustomerFilter {
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* The search query to apply to the customers. Matches any part of a customer's name or
|
|
5
|
+
* description.
|
|
6
|
+
*
|
|
7
|
+
* This field also supports a syntax for advanced filtering the `metadata` field.
|
|
8
|
+
*
|
|
9
|
+
* Metadata examples:
|
|
10
|
+
* - `metadata:myvalue` - matches customers with any metadata field set to `myvalue`
|
|
11
|
+
* - `metadata.mykey:myvalue` - matches customers with a metadata field `mykey` set to `myvalue`
|
|
12
|
+
* - `metadata.mykey:(myvalue OR anothervalue)` - matches customers with a metadata field `mykey` set to `myvalue` or `anothervalue`
|
|
13
|
+
* - `metadata.mykey:*` - matches customers with a metadata field `mykey`
|
|
14
|
+
* - `-metadata:myvalue` - matches customers that do not have any metadata field set to `myvalue`
|
|
15
|
+
* - `_exists_:metadata` - matches customers that have any metadata field set
|
|
16
|
+
*/
|
|
4
17
|
search?: string;
|
|
5
18
|
/** The statuses to filter the customers by. */
|
|
6
19
|
statuses?: MavenAGI.CustomerStatus[];
|
|
@@ -11,7 +11,7 @@ export declare class EventsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
|
|
12
12
|
constructor(options: EventsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Create a new event
|
|
14
|
+
* Create a new event. Events are immutable, so a create that reuses the `referenceId` of an existing event in the same app is rejected with a 409 and leaves that event unchanged.
|
|
15
15
|
*
|
|
16
16
|
* @param {MavenAGI.EventRequest} request
|
|
17
17
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -58,7 +58,7 @@ class EventsClient {
|
|
|
58
58
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* Create a new event
|
|
61
|
+
* Create a new event. Events are immutable, so a create that reuses the `referenceId` of an existing event in the same app is rejected with a 409 and leaves that event unchanged.
|
|
62
62
|
*
|
|
63
63
|
* @param {MavenAGI.EventRequest} request
|
|
64
64
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -10,4 +10,15 @@ export interface InboxFilter {
|
|
|
10
10
|
createdAfter?: Date;
|
|
11
11
|
/** Filter for items created before this timestamp. */
|
|
12
12
|
createdBefore?: Date;
|
|
13
|
+
/**
|
|
14
|
+
* Filter for items raised from conversations pinned to any of these agent variants, by
|
|
15
|
+
* reference ID and owning app. Only missing-knowledge items are raised from
|
|
16
|
+
* conversations, so no other item type matches a variant. Simulation conversations don't
|
|
17
|
+
* count. Omit it to match items whatever variant their conversations ran on.
|
|
18
|
+
*
|
|
19
|
+
* Reads those conversations, so it needs permission to read conversations as well as the
|
|
20
|
+
* inbox. At most 10,000 items are considered: those referenced by the most of the
|
|
21
|
+
* variants' conversations.
|
|
22
|
+
*/
|
|
23
|
+
variantIds?: MavenAGI.EntityIdFilter[];
|
|
13
24
|
}
|
|
@@ -16,7 +16,15 @@ export declare class IntelligentFieldsClient {
|
|
|
16
16
|
* entities such as conversations.
|
|
17
17
|
*
|
|
18
18
|
* New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
19
|
-
* with the patch endpoint. `
|
|
19
|
+
* with the patch endpoint. A new field created in a `variantId` starts `ACTIVE` instead,
|
|
20
|
+
* since it is evaluated only once that variant is published and given traffic; it starts
|
|
21
|
+
* `INACTIVE` while the agent is at its limit of active fields. `definition` is limited
|
|
22
|
+
* to 5,000 characters.
|
|
23
|
+
*
|
|
24
|
+
* A replace that names a `variantId` must keep the field's `validationType` as that
|
|
25
|
+
* variant has it, or it is rejected with reason `INTELLIGENT_FIELD_TYPE_CHANGED`. To use
|
|
26
|
+
* a different type, create a new field. A field deleted in the variant may be recreated
|
|
27
|
+
* with any type.
|
|
20
28
|
*
|
|
21
29
|
* @param {MavenAGI.IntelligentFieldRequest} request
|
|
22
30
|
* @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -120,9 +128,9 @@ export declare class IntelligentFieldsClient {
|
|
|
120
128
|
*
|
|
121
129
|
* Soft delete an intelligent field. Only INACTIVE fields can be deleted.
|
|
122
130
|
*
|
|
123
|
-
* Deleted fields are excluded from search results
|
|
131
|
+
* Deleted fields are excluded from search results, and getting one by ID returns 404.
|
|
124
132
|
* Creating a new field with the same referenceId as a deleted field will overwrite
|
|
125
|
-
* the deleted field and restore it
|
|
133
|
+
* the deleted field and restore it with the status a new field gets.
|
|
126
134
|
*
|
|
127
135
|
* Deleted fields cannot be modified.
|
|
128
136
|
*
|
|
@@ -63,7 +63,15 @@ class IntelligentFieldsClient {
|
|
|
63
63
|
* entities such as conversations.
|
|
64
64
|
*
|
|
65
65
|
* New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
66
|
-
* with the patch endpoint. `
|
|
66
|
+
* with the patch endpoint. A new field created in a `variantId` starts `ACTIVE` instead,
|
|
67
|
+
* since it is evaluated only once that variant is published and given traffic; it starts
|
|
68
|
+
* `INACTIVE` while the agent is at its limit of active fields. `definition` is limited
|
|
69
|
+
* to 5,000 characters.
|
|
70
|
+
*
|
|
71
|
+
* A replace that names a `variantId` must keep the field's `validationType` as that
|
|
72
|
+
* variant has it, or it is rejected with reason `INTELLIGENT_FIELD_TYPE_CHANGED`. To use
|
|
73
|
+
* a different type, create a new field. A field deleted in the variant may be recreated
|
|
74
|
+
* with any type.
|
|
67
75
|
*
|
|
68
76
|
* @param {MavenAGI.IntelligentFieldRequest} request
|
|
69
77
|
* @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -420,9 +428,9 @@ class IntelligentFieldsClient {
|
|
|
420
428
|
*
|
|
421
429
|
* Soft delete an intelligent field. Only INACTIVE fields can be deleted.
|
|
422
430
|
*
|
|
423
|
-
* Deleted fields are excluded from search results
|
|
431
|
+
* Deleted fields are excluded from search results, and getting one by ID returns 404.
|
|
424
432
|
* Creating a new field with the same referenceId as a deleted field will overwrite
|
|
425
|
-
* the deleted field and restore it
|
|
433
|
+
* the deleted field and restore it with the status a new field gets.
|
|
426
434
|
*
|
|
427
435
|
* Deleted fields cannot be modified.
|
|
428
436
|
*
|
|
@@ -5,7 +5,15 @@
|
|
|
5
5
|
export interface IntelligentFieldGetRequest {
|
|
6
6
|
/** The App ID of the intelligent field to get. If not provided the ID of the calling app will be used. */
|
|
7
7
|
appId?: string;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The agent variant reference ID to resolve the intelligent field's version through.
|
|
10
|
+
* Required on an agent with versioned intelligent fields; a request that omits it there
|
|
11
|
+
* is rejected with reason `VARIANT_REQUIRED`. Otherwise, if omitted, the agent's only
|
|
12
|
+
* variant is used, as its snapshot has it. When a variant is named, its staged edits
|
|
13
|
+
* are included: a field with a staged edit is returned at that edit, a field created in
|
|
14
|
+
* the variant is returned, and a field deleted in the variant, whether the delete is
|
|
15
|
+
* staged or already in its snapshot, returns 404.
|
|
16
|
+
*/
|
|
9
17
|
variantReferenceId?: string;
|
|
10
18
|
/** The App ID of the agent variant reference. If not provided, the ID of the calling app will be used. */
|
|
11
19
|
variantAppId?: string;
|
|
@@ -28,8 +28,8 @@ export interface IntelligentFieldPatchRequest {
|
|
|
28
28
|
description?: string;
|
|
29
29
|
/** Updated enum options for fields that constrain the LLM to a finite set. Omit to leave unchanged. The new list must be a superset of the existing options (add-only; removals are rejected). */
|
|
30
30
|
enumOptions?: MavenAGI.EnumOption[];
|
|
31
|
-
/** The agent variant to stage this patch in
|
|
32
|
-
variantId?: MavenAGI.
|
|
33
|
-
/**
|
|
31
|
+
/** The agent variant to stage this patch in. Required on an agent with versioned intelligent fields; a patch that omits it there is rejected with reason `VARIANT_REQUIRED`. */
|
|
32
|
+
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
33
|
+
/** Deprecated, use `variantId.appId`, which wins when both are set. */
|
|
34
34
|
variantAppId?: string;
|
|
35
35
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface IntelligentFieldBase extends MavenAGI.IntelligentFieldCore {
|
|
3
|
-
/** Target entity type for evaluation.
|
|
3
|
+
/** Target entity type for evaluation. CONVERSATION is supported, and AGENT_USER is supported for agents with user-level intelligent fields enabled. The backend will return an error for other types. */
|
|
4
4
|
entityType: MavenAGI.EntityType;
|
|
5
|
-
/**
|
|
5
|
+
/** On a request, the agent variant to stage the write in. On a response, the variant the request named, if any; absent when it named none. */
|
|
6
6
|
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
7
7
|
}
|
|
@@ -12,6 +12,15 @@ export interface IntelligentFieldValueSearchRequest extends MavenAGI.BaseCappedP
|
|
|
12
12
|
includeUnknownValues?: boolean;
|
|
13
13
|
/** Field to sort by. Defaults to CREATED_AT. */
|
|
14
14
|
sort?: MavenAGI.IntelligentFieldValueSortField;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Returns values of the fields in this agent variant's scope: its snapshot with its staged
|
|
17
|
+
* edits applied, matched by field, so a field deleted in the variant, by a staged edit or in
|
|
18
|
+
* its snapshot, is left out. A
|
|
19
|
+
* value is included whichever variant's conversation produced it, and is named as this
|
|
20
|
+
* variant names the field. If not provided, returns values from all variants.
|
|
21
|
+
*
|
|
22
|
+
* To see values from the conversations pinned to a variant, filter conversations by
|
|
23
|
+
* `variantIds` in conversation search or the analytics APIs.
|
|
24
|
+
*/
|
|
16
25
|
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
17
26
|
}
|
|
@@ -523,11 +523,9 @@ class SegmentsClient {
|
|
|
523
523
|
__delete(segmentReferenceId_1) {
|
|
524
524
|
return __awaiter(this, arguments, void 0, function* (segmentReferenceId, request = {}, requestOptions) {
|
|
525
525
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
526
|
-
const { appId
|
|
526
|
+
const { appId } = request;
|
|
527
527
|
const _queryParams = {
|
|
528
528
|
appId,
|
|
529
|
-
variantReferenceId,
|
|
530
|
-
variantAppId,
|
|
531
529
|
};
|
|
532
530
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
533
531
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
@@ -5,16 +5,4 @@
|
|
|
5
5
|
export interface SegmentDeleteRequest {
|
|
6
6
|
/** The App ID of the segment to delete. If not provided, the ID of the calling app will be used. */
|
|
7
7
|
appId?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The reference ID of the agent variant this delete is scoped to. When set, the
|
|
10
|
-
* deletion is staged in that variant's working set instead of being applied to the
|
|
11
|
-
* agent's live configuration.
|
|
12
|
-
*
|
|
13
|
-
* Omit this parameter to delete directly from the agent. Variant scoping is not
|
|
14
|
-
* active yet: a variant supplied today is accepted and ignored, and the delete applies
|
|
15
|
-
* to the agent.
|
|
16
|
-
*/
|
|
17
|
-
variantReferenceId?: string;
|
|
18
|
-
/** The App ID of the agent variant named by `variantReferenceId`. If not provided, the ID of the calling app will be used. */
|
|
19
|
-
variantAppId?: string;
|
|
20
8
|
}
|
|
@@ -10,12 +10,4 @@ export interface SegmentPatchRequest {
|
|
|
10
10
|
precondition?: MavenAGI.Precondition;
|
|
11
11
|
/** The status of the segment. Segments can only be deactivated if they are not set on any actions or active knowledge bases. */
|
|
12
12
|
status?: MavenAGI.SegmentStatus;
|
|
13
|
-
/**
|
|
14
|
-
* The agent variant this patch is scoped to. When set, the patch is staged in that
|
|
15
|
-
* variant's working set instead of being applied to the agent's live configuration.
|
|
16
|
-
*
|
|
17
|
-
* Omit this field to patch the agent directly. Variant scoping is not active yet: a
|
|
18
|
-
* variant supplied today is accepted and ignored, and the patch applies to the agent.
|
|
19
|
-
*/
|
|
20
|
-
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
21
13
|
}
|