mavenagi 1.2.61 → 1.2.63
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/Client.d.ts +6 -0
- package/Client.js +40 -30
- package/api/resources/actions/client/Client.d.ts +16 -0
- package/api/resources/actions/client/Client.js +16 -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 +118 -0
- package/api/resources/capabilities/client/Client.js +521 -0
- package/api/resources/capabilities/client/index.d.ts +1 -0
- package/api/resources/capabilities/client/index.js +17 -0
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +38 -0
- package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.d.ts +18 -0
- package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +22 -0
- package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +24 -0
- package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/index.d.ts +4 -0
- package/api/resources/capabilities/client/requests/index.js +2 -0
- package/api/resources/capabilities/exports.d.ts +2 -0
- package/api/resources/capabilities/exports.js +21 -0
- package/api/resources/capabilities/index.d.ts +2 -0
- package/api/resources/capabilities/index.js +18 -0
- package/api/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +43 -0
- package/api/resources/capabilities/types/CapabilitiesSearchResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
- package/api/resources/capabilities/types/CapabilityResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
- package/api/resources/capabilities/types/CapabilitySortField.js +10 -0
- package/api/resources/capabilities/types/CapabilitySummary.d.ts +28 -0
- package/api/resources/capabilities/types/CapabilitySummary.js +3 -0
- package/api/resources/capabilities/types/index.d.ts +4 -0
- package/api/resources/capabilities/types/index.js +20 -0
- package/api/resources/charters/client/Client.js +3 -1
- package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +1 -1
- package/api/resources/charters/client/requests/CharterGetRequest.d.ts +4 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +1 -1
- package/api/resources/charters/types/CharterBase.d.ts +9 -0
- package/api/resources/charters/types/CharterRequest.d.ts +0 -8
- package/api/resources/charters/types/CharterSearchFilter.d.ts +14 -9
- package/api/resources/commons/types/ActionResponse.d.ts +11 -2
- 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 +7 -0
- package/api/resources/commons/types/CapabilityBase.d.ts +23 -0
- package/api/resources/commons/types/CapabilityBase.js +3 -0
- package/api/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +6 -3
- package/api/resources/{intelligentFields/types/IntelligentFieldStatus.js → commons/types/CapabilityStatus.js} +6 -3
- package/api/resources/commons/types/CapabilityType.d.ts +8 -0
- package/api/resources/commons/types/CapabilityType.js +11 -0
- package/api/resources/commons/types/EntityType.d.ts +5 -1
- package/api/resources/commons/types/EntityType.js +5 -1
- package/api/resources/commons/types/ErrorMessage.d.ts +3 -0
- package/api/resources/commons/types/ErrorReason.d.ts +34 -0
- package/api/resources/commons/types/ErrorReason.js +37 -0
- 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 +13 -0
- package/api/resources/commons/types/index.js +13 -0
- package/api/resources/conversation/client/Client.d.ts +16 -0
- package/api/resources/conversation/client/Client.js +16 -0
- 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/conversationKickoffs/client/Client.d.ts +45 -0
- package/api/resources/conversationKickoffs/client/Client.js +175 -0
- package/api/resources/conversationKickoffs/client/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/client/index.js +17 -0
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +22 -0
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +3 -0
- package/api/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/client/requests/index.js +2 -0
- package/api/resources/conversationKickoffs/exports.d.ts +2 -0
- package/api/resources/conversationKickoffs/exports.js +21 -0
- package/api/resources/conversationKickoffs/index.d.ts +2 -0
- package/api/resources/conversationKickoffs/index.js +18 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +27 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.js +3 -0
- package/api/resources/conversationKickoffs/types/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/types/index.js +17 -0
- 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/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/intelligentFields/client/Client.d.ts +23 -3
- package/api/resources/intelligentFields/client/Client.js +23 -3
- package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +1 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +1 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +4 -4
- package/api/resources/intelligentFields/types/EnumOption.d.ts +5 -0
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +2 -2
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -4
- package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +6 -1
- package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -8
- package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +9 -1
- package/api/resources/intelligentFields/types/index.d.ts +0 -1
- package/api/resources/intelligentFields/types/index.js +0 -1
- package/api/resources/knowledge/client/Client.d.ts +3 -0
- package/api/resources/knowledge/client/Client.js +3 -0
- 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 +22 -5
- package/api/resources/triggers/client/Client.js +38 -10
- package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +5 -4
- package/api/resources/triggers/types/EventTriggerBase.d.ts +8 -4
- package/api/resources/triggers/types/EventTriggerRequest.d.ts +4 -0
- package/api/resources/triggers/types/EventTriggerResponse.d.ts +11 -3
- 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 +489 -8
- package/serialization/resources/capabilities/client/index.d.ts +1 -0
- package/serialization/resources/capabilities/client/index.js +17 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +23 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +57 -0
- package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +10 -0
- package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +42 -0
- package/serialization/resources/capabilities/client/requests/index.d.ts +2 -0
- package/serialization/resources/capabilities/client/requests/index.js +7 -0
- package/serialization/resources/capabilities/index.d.ts +2 -0
- package/serialization/resources/capabilities/index.js +18 -0
- package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.js +45 -0
- package/serialization/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
- package/serialization/resources/capabilities/types/CapabilityResponse.js +53 -0
- package/serialization/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
- package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.js → capabilities/types/CapabilitySortField.js} +2 -2
- package/serialization/resources/capabilities/types/CapabilitySummary.d.ts +13 -0
- package/serialization/resources/capabilities/types/CapabilitySummary.js +47 -0
- package/serialization/resources/capabilities/types/index.d.ts +4 -0
- package/serialization/resources/capabilities/types/index.js +20 -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/CharterRequest.d.ts +0 -2
- package/serialization/resources/charters/types/CharterRequest.js +0 -2
- package/serialization/resources/charters/types/CharterSearchFilter.d.ts +3 -0
- package/serialization/resources/charters/types/CharterSearchFilter.js +3 -0
- package/serialization/resources/commons/types/ActionResponse.d.ts +3 -2
- package/serialization/resources/commons/types/ActionResponse.js +4 -2
- package/serialization/resources/commons/types/AdditionalDataKey.d.ts +7 -0
- package/serialization/resources/commons/types/AdditionalDataKey.js +57 -0
- package/serialization/resources/commons/types/BaseConversationResponse.d.ts +1 -0
- package/serialization/resources/commons/types/BaseConversationResponse.js +1 -0
- package/serialization/resources/commons/types/CapabilityBase.d.ts +14 -0
- package/serialization/resources/commons/types/CapabilityBase.js +46 -0
- package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +2 -2
- package/serialization/resources/{triggers/types/TriggerPartialUpdate.js → commons/types/CapabilityStatus.js} +2 -4
- package/serialization/resources/commons/types/CapabilityType.d.ts +7 -0
- package/serialization/resources/commons/types/CapabilityType.js +39 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -1
- package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
- package/serialization/resources/commons/types/ErrorMessage.js +2 -0
- package/serialization/resources/commons/types/ErrorReason.d.ts +7 -0
- package/serialization/resources/commons/types/ErrorReason.js +50 -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 +13 -0
- package/serialization/resources/commons/types/index.js +13 -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/conversationKickoffs/client/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/client/index.js +17 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +12 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +44 -0
- package/serialization/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/client/requests/index.js +5 -0
- package/serialization/resources/conversationKickoffs/index.d.ts +2 -0
- package/serialization/resources/conversationKickoffs/index.js +18 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +11 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +45 -0
- package/serialization/resources/conversationKickoffs/types/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/types/index.js +17 -0
- 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 +7 -0
- package/serialization/resources/index.js +8 -1
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +4 -4
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +4 -4
- package/serialization/resources/intelligentFields/types/EnumOption.d.ts +1 -0
- package/serialization/resources/intelligentFields/types/EnumOption.js +1 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -2
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +0 -2
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +2 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +2 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -5
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -5
- package/serialization/resources/intelligentFields/types/index.d.ts +0 -1
- package/serialization/resources/intelligentFields/types/index.js +0 -1
- 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 -3
- package/serialization/resources/triggers/types/EventTriggerBase.js +2 -2
- package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +2 -1
- package/serialization/resources/triggers/types/EventTriggerResponse.js +3 -1
- 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/CapabilitiesSearchRequest.js} +0 -0
- /package/api/resources/{conversation/types/IntelligentFieldSearchCondition.js → capabilities/client/requests/DeleteCapabilityByTypeRequest.js} +0 -0
- /package/api/resources/{triggers/types/TriggerPartialUpdate.js → capabilities/client/requests/GetCapabilityByTypeRequest.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
package/reference.md
CHANGED
|
@@ -4,6 +4,22 @@
|
|
|
4
4
|
<dl>
|
|
5
5
|
<dd>
|
|
6
6
|
|
|
7
|
+
#### 📝 Description
|
|
8
|
+
|
|
9
|
+
<dl>
|
|
10
|
+
<dd>
|
|
11
|
+
|
|
12
|
+
<dl>
|
|
13
|
+
<dd>
|
|
14
|
+
|
|
15
|
+
Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
|
|
16
|
+
at once. It returns the fields every capability shares rather than the whole Action;
|
|
17
|
+
fetch one by its kind and reference ID for the rest.
|
|
18
|
+
</dd>
|
|
19
|
+
</dl>
|
|
20
|
+
</dd>
|
|
21
|
+
</dl>
|
|
22
|
+
|
|
7
23
|
#### 🔌 Usage
|
|
8
24
|
|
|
9
25
|
<dl>
|
|
@@ -144,6 +160,9 @@ await client.actions.createOrUpdate({
|
|
|
144
160
|
<dl>
|
|
145
161
|
<dd>
|
|
146
162
|
|
|
163
|
+
Deprecated. Use `GET /v1/capabilities/ACTION/{referenceId}`, which returns this same
|
|
164
|
+
object for an action and the equivalent for every other kind of capability.
|
|
165
|
+
|
|
147
166
|
Get an action by its supplied ID
|
|
148
167
|
</dd>
|
|
149
168
|
</dl>
|
|
@@ -299,6 +318,9 @@ await client.actions.patch("get-balance", {
|
|
|
299
318
|
<dl>
|
|
300
319
|
<dd>
|
|
301
320
|
|
|
321
|
+
Deprecated. Use `DELETE /v1/capabilities/ACTION/{referenceId}`, which deletes any kind of
|
|
322
|
+
capability the same way.
|
|
323
|
+
|
|
302
324
|
Delete an action
|
|
303
325
|
</dd>
|
|
304
326
|
</dl>
|
|
@@ -2098,6 +2120,330 @@ await client.assets.commitUpload("assetReferenceId", {});
|
|
|
2098
2120
|
</dl>
|
|
2099
2121
|
|
|
2100
2122
|
|
|
2123
|
+
</dd>
|
|
2124
|
+
</dl>
|
|
2125
|
+
</details>
|
|
2126
|
+
|
|
2127
|
+
## Capabilities
|
|
2128
|
+
<details><summary><code>client.capabilities.<a href="/src/api/resources/capabilities/client/Client.ts">getCapability</a>(capabilityType, referenceId, { ...params }) -> MavenAGI.CapabilityResponse</code></summary>
|
|
2129
|
+
<dl>
|
|
2130
|
+
<dd>
|
|
2131
|
+
|
|
2132
|
+
#### 📝 Description
|
|
2133
|
+
|
|
2134
|
+
<dl>
|
|
2135
|
+
<dd>
|
|
2136
|
+
|
|
2137
|
+
<dl>
|
|
2138
|
+
<dd>
|
|
2139
|
+
|
|
2140
|
+
Fetch one of an agent's capabilities by its type and reference ID.
|
|
2141
|
+
|
|
2142
|
+
The response carries the same fields the capability's own API returns, so an Action read
|
|
2143
|
+
here and an Action read from the Actions API are the same object. Intelligent Fields are the
|
|
2144
|
+
one exception: their own API also returns the charters referencing the field, which this
|
|
2145
|
+
endpoint leaves out.
|
|
2146
|
+
</dd>
|
|
2147
|
+
</dl>
|
|
2148
|
+
</dd>
|
|
2149
|
+
</dl>
|
|
2150
|
+
|
|
2151
|
+
#### 🔌 Usage
|
|
2152
|
+
|
|
2153
|
+
<dl>
|
|
2154
|
+
<dd>
|
|
2155
|
+
|
|
2156
|
+
<dl>
|
|
2157
|
+
<dd>
|
|
2158
|
+
|
|
2159
|
+
```typescript
|
|
2160
|
+
await client.capabilities.getCapability("ACTION", "referenceId");
|
|
2161
|
+
|
|
2162
|
+
```
|
|
2163
|
+
</dd>
|
|
2164
|
+
</dl>
|
|
2165
|
+
</dd>
|
|
2166
|
+
</dl>
|
|
2167
|
+
|
|
2168
|
+
#### ⚙️ Parameters
|
|
2169
|
+
|
|
2170
|
+
<dl>
|
|
2171
|
+
<dd>
|
|
2172
|
+
|
|
2173
|
+
<dl>
|
|
2174
|
+
<dd>
|
|
2175
|
+
|
|
2176
|
+
**capabilityType:** `MavenAGI.CapabilityType` — Which kind of capability to fetch.
|
|
2177
|
+
|
|
2178
|
+
</dd>
|
|
2179
|
+
</dl>
|
|
2180
|
+
|
|
2181
|
+
<dl>
|
|
2182
|
+
<dd>
|
|
2183
|
+
|
|
2184
|
+
**referenceId:** `string` — The capability's reference ID, unique within its type and app.
|
|
2185
|
+
|
|
2186
|
+
</dd>
|
|
2187
|
+
</dl>
|
|
2188
|
+
|
|
2189
|
+
<dl>
|
|
2190
|
+
<dd>
|
|
2191
|
+
|
|
2192
|
+
**request:** `MavenAGI.GetCapabilityByTypeRequest`
|
|
2193
|
+
|
|
2194
|
+
</dd>
|
|
2195
|
+
</dl>
|
|
2196
|
+
|
|
2197
|
+
<dl>
|
|
2198
|
+
<dd>
|
|
2199
|
+
|
|
2200
|
+
**requestOptions:** `CapabilitiesClient.RequestOptions`
|
|
2201
|
+
|
|
2202
|
+
</dd>
|
|
2203
|
+
</dl>
|
|
2204
|
+
</dd>
|
|
2205
|
+
</dl>
|
|
2206
|
+
|
|
2207
|
+
|
|
2208
|
+
</dd>
|
|
2209
|
+
</dl>
|
|
2210
|
+
</details>
|
|
2211
|
+
|
|
2212
|
+
<details><summary><code>client.capabilities.<a href="/src/api/resources/capabilities/client/Client.ts">patchCapability</a>(capabilityType, referenceId, { ...params }) -> MavenAGI.CapabilityResponse</code></summary>
|
|
2213
|
+
<dl>
|
|
2214
|
+
<dd>
|
|
2215
|
+
|
|
2216
|
+
#### 📝 Description
|
|
2217
|
+
|
|
2218
|
+
<dl>
|
|
2219
|
+
<dd>
|
|
2220
|
+
|
|
2221
|
+
<dl>
|
|
2222
|
+
<dd>
|
|
2223
|
+
|
|
2224
|
+
Set whether the agent uses a capability, whatever kind it is. This is the publish and
|
|
2225
|
+
unpublish operation, and it works the same way for every capability type.
|
|
2226
|
+
|
|
2227
|
+
Everything else about a capability -- its name, its description, and any settings
|
|
2228
|
+
particular to its kind -- is changed through that capability's own API.
|
|
2229
|
+
</dd>
|
|
2230
|
+
</dl>
|
|
2231
|
+
</dd>
|
|
2232
|
+
</dl>
|
|
2233
|
+
|
|
2234
|
+
#### 🔌 Usage
|
|
2235
|
+
|
|
2236
|
+
<dl>
|
|
2237
|
+
<dd>
|
|
2238
|
+
|
|
2239
|
+
<dl>
|
|
2240
|
+
<dd>
|
|
2241
|
+
|
|
2242
|
+
```typescript
|
|
2243
|
+
await client.capabilities.patchCapability("ACTION", "referenceId");
|
|
2244
|
+
|
|
2245
|
+
```
|
|
2246
|
+
</dd>
|
|
2247
|
+
</dl>
|
|
2248
|
+
</dd>
|
|
2249
|
+
</dl>
|
|
2250
|
+
|
|
2251
|
+
#### ⚙️ Parameters
|
|
2252
|
+
|
|
2253
|
+
<dl>
|
|
2254
|
+
<dd>
|
|
2255
|
+
|
|
2256
|
+
<dl>
|
|
2257
|
+
<dd>
|
|
2258
|
+
|
|
2259
|
+
**capabilityType:** `MavenAGI.CapabilityType` — Which kind of capability to update.
|
|
2260
|
+
|
|
2261
|
+
</dd>
|
|
2262
|
+
</dl>
|
|
2263
|
+
|
|
2264
|
+
<dl>
|
|
2265
|
+
<dd>
|
|
2266
|
+
|
|
2267
|
+
**referenceId:** `string` — The capability's reference ID, unique within its type and app.
|
|
2268
|
+
|
|
2269
|
+
</dd>
|
|
2270
|
+
</dl>
|
|
2271
|
+
|
|
2272
|
+
<dl>
|
|
2273
|
+
<dd>
|
|
2274
|
+
|
|
2275
|
+
**request:** `MavenAGI.PatchCapabilityByTypeRequest`
|
|
2276
|
+
|
|
2277
|
+
</dd>
|
|
2278
|
+
</dl>
|
|
2279
|
+
|
|
2280
|
+
<dl>
|
|
2281
|
+
<dd>
|
|
2282
|
+
|
|
2283
|
+
**requestOptions:** `CapabilitiesClient.RequestOptions`
|
|
2284
|
+
|
|
2285
|
+
</dd>
|
|
2286
|
+
</dl>
|
|
2287
|
+
</dd>
|
|
2288
|
+
</dl>
|
|
2289
|
+
|
|
2290
|
+
|
|
2291
|
+
</dd>
|
|
2292
|
+
</dl>
|
|
2293
|
+
</details>
|
|
2294
|
+
|
|
2295
|
+
<details><summary><code>client.capabilities.<a href="/src/api/resources/capabilities/client/Client.ts">deleteCapability</a>(capabilityType, referenceId, { ...params }) -> void</code></summary>
|
|
2296
|
+
<dl>
|
|
2297
|
+
<dd>
|
|
2298
|
+
|
|
2299
|
+
#### 📝 Description
|
|
2300
|
+
|
|
2301
|
+
<dl>
|
|
2302
|
+
<dd>
|
|
2303
|
+
|
|
2304
|
+
<dl>
|
|
2305
|
+
<dd>
|
|
2306
|
+
|
|
2307
|
+
Delete one of an agent's capabilities. The agent stops using it, and it stops being
|
|
2308
|
+
addressable: a later get, patch or delete of the same capability is a 404, and it no longer
|
|
2309
|
+
appears in search.
|
|
2310
|
+
|
|
2311
|
+
With `variantReferenceId`, an intelligent field's delete is staged in that variant instead,
|
|
2312
|
+
and takes effect when the variant is committed. Until then the agent keeps using the field,
|
|
2313
|
+
and only a later patch or delete through the same variant is a 404.
|
|
2314
|
+
</dd>
|
|
2315
|
+
</dl>
|
|
2316
|
+
</dd>
|
|
2317
|
+
</dl>
|
|
2318
|
+
|
|
2319
|
+
#### 🔌 Usage
|
|
2320
|
+
|
|
2321
|
+
<dl>
|
|
2322
|
+
<dd>
|
|
2323
|
+
|
|
2324
|
+
<dl>
|
|
2325
|
+
<dd>
|
|
2326
|
+
|
|
2327
|
+
```typescript
|
|
2328
|
+
await client.capabilities.deleteCapability("ACTION", "referenceId");
|
|
2329
|
+
|
|
2330
|
+
```
|
|
2331
|
+
</dd>
|
|
2332
|
+
</dl>
|
|
2333
|
+
</dd>
|
|
2334
|
+
</dl>
|
|
2335
|
+
|
|
2336
|
+
#### ⚙️ Parameters
|
|
2337
|
+
|
|
2338
|
+
<dl>
|
|
2339
|
+
<dd>
|
|
2340
|
+
|
|
2341
|
+
<dl>
|
|
2342
|
+
<dd>
|
|
2343
|
+
|
|
2344
|
+
**capabilityType:** `MavenAGI.CapabilityType` — Which kind of capability to delete.
|
|
2345
|
+
|
|
2346
|
+
</dd>
|
|
2347
|
+
</dl>
|
|
2348
|
+
|
|
2349
|
+
<dl>
|
|
2350
|
+
<dd>
|
|
2351
|
+
|
|
2352
|
+
**referenceId:** `string` — The capability's reference ID, unique within its type and app.
|
|
2353
|
+
|
|
2354
|
+
</dd>
|
|
2355
|
+
</dl>
|
|
2356
|
+
|
|
2357
|
+
<dl>
|
|
2358
|
+
<dd>
|
|
2359
|
+
|
|
2360
|
+
**request:** `MavenAGI.DeleteCapabilityByTypeRequest`
|
|
2361
|
+
|
|
2362
|
+
</dd>
|
|
2363
|
+
</dl>
|
|
2364
|
+
|
|
2365
|
+
<dl>
|
|
2366
|
+
<dd>
|
|
2367
|
+
|
|
2368
|
+
**requestOptions:** `CapabilitiesClient.RequestOptions`
|
|
2369
|
+
|
|
2370
|
+
</dd>
|
|
2371
|
+
</dl>
|
|
2372
|
+
</dd>
|
|
2373
|
+
</dl>
|
|
2374
|
+
|
|
2375
|
+
|
|
2376
|
+
</dd>
|
|
2377
|
+
</dl>
|
|
2378
|
+
</details>
|
|
2379
|
+
|
|
2380
|
+
<details><summary><code>client.capabilities.<a href="/src/api/resources/capabilities/client/Client.ts">searchCapabilities</a>({ ...params }) -> MavenAGI.CapabilitiesSearchResponse</code></summary>
|
|
2381
|
+
<dl>
|
|
2382
|
+
<dd>
|
|
2383
|
+
|
|
2384
|
+
#### 📝 Description
|
|
2385
|
+
|
|
2386
|
+
<dl>
|
|
2387
|
+
<dd>
|
|
2388
|
+
|
|
2389
|
+
<dl>
|
|
2390
|
+
<dd>
|
|
2391
|
+
|
|
2392
|
+
Search an agent's capabilities of every kind at once, newest first by default.
|
|
2393
|
+
|
|
2394
|
+
Returns the fields every capability shares. Fetch one by its type and reference ID for the
|
|
2395
|
+
settings particular to its kind.
|
|
2396
|
+
|
|
2397
|
+
Sorting by `NAME` or `TYPE` instead orders ascending unless `sortDesc` says otherwise;
|
|
2398
|
+
`sortDesc` overrides the default either way.
|
|
2399
|
+
|
|
2400
|
+
Deleted capabilities are never returned.
|
|
2401
|
+
</dd>
|
|
2402
|
+
</dl>
|
|
2403
|
+
</dd>
|
|
2404
|
+
</dl>
|
|
2405
|
+
|
|
2406
|
+
#### 🔌 Usage
|
|
2407
|
+
|
|
2408
|
+
<dl>
|
|
2409
|
+
<dd>
|
|
2410
|
+
|
|
2411
|
+
<dl>
|
|
2412
|
+
<dd>
|
|
2413
|
+
|
|
2414
|
+
```typescript
|
|
2415
|
+
await client.capabilities.searchCapabilities();
|
|
2416
|
+
|
|
2417
|
+
```
|
|
2418
|
+
</dd>
|
|
2419
|
+
</dl>
|
|
2420
|
+
</dd>
|
|
2421
|
+
</dl>
|
|
2422
|
+
|
|
2423
|
+
#### ⚙️ Parameters
|
|
2424
|
+
|
|
2425
|
+
<dl>
|
|
2426
|
+
<dd>
|
|
2427
|
+
|
|
2428
|
+
<dl>
|
|
2429
|
+
<dd>
|
|
2430
|
+
|
|
2431
|
+
**request:** `MavenAGI.CapabilitiesSearchRequest`
|
|
2432
|
+
|
|
2433
|
+
</dd>
|
|
2434
|
+
</dl>
|
|
2435
|
+
|
|
2436
|
+
<dl>
|
|
2437
|
+
<dd>
|
|
2438
|
+
|
|
2439
|
+
**requestOptions:** `CapabilitiesClient.RequestOptions`
|
|
2440
|
+
|
|
2441
|
+
</dd>
|
|
2442
|
+
</dl>
|
|
2443
|
+
</dd>
|
|
2444
|
+
</dl>
|
|
2445
|
+
|
|
2446
|
+
|
|
2101
2447
|
</dd>
|
|
2102
2448
|
</dl>
|
|
2103
2449
|
</details>
|
|
@@ -2667,6 +3013,83 @@ await client.charters.listChildren({
|
|
|
2667
3013
|
</dl>
|
|
2668
3014
|
|
|
2669
3015
|
|
|
3016
|
+
</dd>
|
|
3017
|
+
</dl>
|
|
3018
|
+
</details>
|
|
3019
|
+
|
|
3020
|
+
## ConversationKickoffs
|
|
3021
|
+
<details><summary><code>client.conversationKickoffs.<a href="/src/api/resources/conversationKickoffs/client/Client.ts">createOrUpdate</a>({ ...params }) -> MavenAGI.ConversationKickoff</code></summary>
|
|
3022
|
+
<dl>
|
|
3023
|
+
<dd>
|
|
3024
|
+
|
|
3025
|
+
#### 📝 Description
|
|
3026
|
+
|
|
3027
|
+
<dl>
|
|
3028
|
+
<dd>
|
|
3029
|
+
|
|
3030
|
+
<dl>
|
|
3031
|
+
<dd>
|
|
3032
|
+
|
|
3033
|
+
Register or update one of the calling app's Conversation Kickoffs for this agent. An app may
|
|
3034
|
+
hold multiple independent installs, and any number of an agent's kickoffs may run at once.
|
|
3035
|
+
|
|
3036
|
+
A newly installed kickoff starts inactive, so installing one never changes an agent's
|
|
3037
|
+
behaviour on its own. Updating an existing one rewrites its name and description and leaves
|
|
3038
|
+
its status alone, so re-registering on every install refresh never deactivates a kickoff
|
|
3039
|
+
that is already live. Use the capability APIs to activate it, and to read, search or delete
|
|
3040
|
+
it afterwards.
|
|
3041
|
+
</dd>
|
|
3042
|
+
</dl>
|
|
3043
|
+
</dd>
|
|
3044
|
+
</dl>
|
|
3045
|
+
|
|
3046
|
+
#### 🔌 Usage
|
|
3047
|
+
|
|
3048
|
+
<dl>
|
|
3049
|
+
<dd>
|
|
3050
|
+
|
|
3051
|
+
<dl>
|
|
3052
|
+
<dd>
|
|
3053
|
+
|
|
3054
|
+
```typescript
|
|
3055
|
+
await client.conversationKickoffs.createOrUpdate({
|
|
3056
|
+
kickoffId: {
|
|
3057
|
+
referenceId: "greet-returning-customer"
|
|
3058
|
+
},
|
|
3059
|
+
name: "Greet returning customer",
|
|
3060
|
+
description: "Looks up the customer's open orders before the agent's first reply"
|
|
3061
|
+
});
|
|
3062
|
+
|
|
3063
|
+
```
|
|
3064
|
+
</dd>
|
|
3065
|
+
</dl>
|
|
3066
|
+
</dd>
|
|
3067
|
+
</dl>
|
|
3068
|
+
|
|
3069
|
+
#### ⚙️ Parameters
|
|
3070
|
+
|
|
3071
|
+
<dl>
|
|
3072
|
+
<dd>
|
|
3073
|
+
|
|
3074
|
+
<dl>
|
|
3075
|
+
<dd>
|
|
3076
|
+
|
|
3077
|
+
**request:** `MavenAGI.CreateConversationKickoffRequest`
|
|
3078
|
+
|
|
3079
|
+
</dd>
|
|
3080
|
+
</dl>
|
|
3081
|
+
|
|
3082
|
+
<dl>
|
|
3083
|
+
<dd>
|
|
3084
|
+
|
|
3085
|
+
**requestOptions:** `ConversationKickoffsClient.RequestOptions`
|
|
3086
|
+
|
|
3087
|
+
</dd>
|
|
3088
|
+
</dl>
|
|
3089
|
+
</dd>
|
|
3090
|
+
</dl>
|
|
3091
|
+
|
|
3092
|
+
|
|
2670
3093
|
</dd>
|
|
2671
3094
|
</dl>
|
|
2672
3095
|
</details>
|
|
@@ -2781,6 +3204,9 @@ Update mutable conversation fields.
|
|
|
2781
3204
|
|
|
2782
3205
|
The `appId` field can be provided to update a conversation owned by a different app.
|
|
2783
3206
|
All other fields will overwrite the existing value on the conversation only if provided.
|
|
3207
|
+
|
|
3208
|
+
A closed conversation (`open` set to false) cannot be reopened: a patch setting `open` to true
|
|
3209
|
+
returns a 400. Its other fields can still be patched.
|
|
2784
3210
|
</dd>
|
|
2785
3211
|
</dl>
|
|
2786
3212
|
</dd>
|
|
@@ -2927,6 +3353,7 @@ await client.conversation.get("conversationId");
|
|
|
2927
3353
|
Wipes a conversation of all user data.
|
|
2928
3354
|
The conversation ID will still exist and non-user specific data will still be retained.
|
|
2929
3355
|
Attempts to modify or add messages to the conversation will throw an error.
|
|
3356
|
+
The conversation is sealed against further writes as soon as this call returns. A `202 Accepted` response means the wipe is still completing and will finish on its own.
|
|
2930
3357
|
|
|
2931
3358
|
Simulation conversations will no longer be visible in search results nor metrics.
|
|
2932
3359
|
Non-simulation conversations will remain visible - they can not be fully removed from the system.
|
|
@@ -3007,6 +3434,8 @@ await client.conversation.delete("conversation-0", {
|
|
|
3007
3434
|
<dd>
|
|
3008
3435
|
|
|
3009
3436
|
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.
|
|
3437
|
+
|
|
3438
|
+
A closed conversation (`open` set to false) takes no new messages and returns a 400.
|
|
3010
3439
|
</dd>
|
|
3011
3440
|
</dl>
|
|
3012
3441
|
</dd>
|
|
@@ -3098,6 +3527,8 @@ await client.conversation.appendNewMessages("conversationId", [{
|
|
|
3098
3527
|
Get an answer from Maven for a given user question. If the user question or its answer already exists,
|
|
3099
3528
|
they will be reused and will not be updated. Messages do not allow modification once generated.
|
|
3100
3529
|
|
|
3530
|
+
A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
3531
|
+
|
|
3101
3532
|
Concurrency Behavior:
|
|
3102
3533
|
- If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
3103
3534
|
- 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.
|
|
@@ -3198,6 +3629,8 @@ Action and metadata events should overwrite past data and do not need concatenat
|
|
|
3198
3629
|
If the user question or its answer already exists, they will be reused and will not be updated.
|
|
3199
3630
|
Messages do not allow modification once generated.
|
|
3200
3631
|
|
|
3632
|
+
A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
3633
|
+
|
|
3201
3634
|
Concurrency Behavior:
|
|
3202
3635
|
- If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
3203
3636
|
- 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.
|
|
@@ -3444,6 +3877,8 @@ Action forms can not be submitted more than once, attempting to do so will resul
|
|
|
3444
3877
|
|
|
3445
3878
|
Additionally, form submission is only allowed when the form is the last message in the conversation.
|
|
3446
3879
|
Forms should be disabled in surface UI if a conversation continues and they remain unsubmitted.
|
|
3880
|
+
|
|
3881
|
+
A form cannot be submitted on a closed conversation (`open` set to false): that returns a 400.
|
|
3447
3882
|
</dd>
|
|
3448
3883
|
</dl>
|
|
3449
3884
|
</dd>
|
|
@@ -3524,6 +3959,8 @@ await client.conversation.submitActionForm("conversationId", {
|
|
|
3524
3959
|
Replaced by `updateConversationMetadata`.
|
|
3525
3960
|
|
|
3526
3961
|
Adds metadata to an existing conversation. If a metadata field already exists, it will be overwritten.
|
|
3962
|
+
|
|
3963
|
+
A closed conversation (`open` set to false) takes no new metadata and returns a 400.
|
|
3527
3964
|
</dd>
|
|
3528
3965
|
</dl>
|
|
3529
3966
|
</dd>
|
|
@@ -3603,6 +4040,8 @@ If a metadata field already exists for the calling app, it will be overwritten.
|
|
|
3603
4040
|
If it does not exist, it will be added. Will not remove metadata fields.
|
|
3604
4041
|
|
|
3605
4042
|
Returns all metadata saved by any app on the conversation.
|
|
4043
|
+
|
|
4044
|
+
A closed conversation (`open` set to false) takes no new metadata and returns a 400.
|
|
3606
4045
|
</dd>
|
|
3607
4046
|
</dl>
|
|
3608
4047
|
</dd>
|
|
@@ -4231,7 +4670,7 @@ await client.customers.patch("customerReferenceId", {});
|
|
|
4231
4670
|
<dl>
|
|
4232
4671
|
<dd>
|
|
4233
4672
|
|
|
4234
|
-
Create a new event
|
|
4673
|
+
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.
|
|
4235
4674
|
</dd>
|
|
4236
4675
|
</dl>
|
|
4237
4676
|
</dd>
|
|
@@ -5192,7 +5631,15 @@ Create a new intelligent field, or replace it if one already exists with the sam
|
|
|
5192
5631
|
entities such as conversations.
|
|
5193
5632
|
|
|
5194
5633
|
New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
5195
|
-
with the patch endpoint. `
|
|
5634
|
+
with the patch endpoint. A new field created in a `variantId` starts `ACTIVE` instead,
|
|
5635
|
+
since it is evaluated only once that variant is published and given traffic; it starts
|
|
5636
|
+
`INACTIVE` while the agent is at its limit of active fields. `definition` is limited
|
|
5637
|
+
to 5,000 characters.
|
|
5638
|
+
|
|
5639
|
+
A replace that names a `variantId` must keep the field's `validationType` as that
|
|
5640
|
+
variant has it, or it is rejected with reason `INTELLIGENT_FIELD_TYPE_CHANGED`. To use
|
|
5641
|
+
a different type, create a new field. A field deleted in the variant may be recreated
|
|
5642
|
+
with any type.
|
|
5196
5643
|
</dd>
|
|
5197
5644
|
</dl>
|
|
5198
5645
|
</dd>
|
|
@@ -5217,7 +5664,8 @@ await client.intelligentFields.createOrUpdate({
|
|
|
5217
5664
|
validationType: "STRING",
|
|
5218
5665
|
enumOptions: [{
|
|
5219
5666
|
value: "HIGH",
|
|
5220
|
-
label: "High Priority"
|
|
5667
|
+
label: "High Priority",
|
|
5668
|
+
description: "The customer is blocked or reports an outage."
|
|
5221
5669
|
}, {
|
|
5222
5670
|
value: "MEDIUM",
|
|
5223
5671
|
label: "Medium Priority"
|
|
@@ -5274,6 +5722,10 @@ await client.intelligentFields.createOrUpdate({
|
|
|
5274
5722
|
<dl>
|
|
5275
5723
|
<dd>
|
|
5276
5724
|
|
|
5725
|
+
Deprecated. Use `GET /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which reads any
|
|
5726
|
+
kind of capability the same way. It does not carry `referencingCharters`; search
|
|
5727
|
+
charters to find the ones that reference a capability.
|
|
5728
|
+
|
|
5277
5729
|
Get an intelligent field by its supplied ID
|
|
5278
5730
|
</dd>
|
|
5279
5731
|
</dl>
|
|
@@ -5423,11 +5875,14 @@ await client.intelligentFields.patch("ticket-priority", {
|
|
|
5423
5875
|
<dl>
|
|
5424
5876
|
<dd>
|
|
5425
5877
|
|
|
5878
|
+
Deprecated. Use `DELETE /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which
|
|
5879
|
+
deletes any kind of capability the same way. That endpoint returns no body.
|
|
5880
|
+
|
|
5426
5881
|
Soft delete an intelligent field. Only INACTIVE fields can be deleted.
|
|
5427
5882
|
|
|
5428
5883
|
Deleted fields are excluded from search results but can still be retrieved by ID.
|
|
5429
5884
|
Creating a new field with the same referenceId as a deleted field will overwrite
|
|
5430
|
-
the deleted field and restore it
|
|
5885
|
+
the deleted field and restore it with the status a new field gets.
|
|
5431
5886
|
|
|
5432
5887
|
Deleted fields cannot be modified.
|
|
5433
5888
|
</dd>
|
|
@@ -6097,6 +6552,9 @@ await client.knowledge.patchKnowledgeBase("help-center", {
|
|
|
6097
6552
|
Create a new knowledge base version.
|
|
6098
6553
|
|
|
6099
6554
|
If an existing version is in progress, then that version will be finalized in an error state.
|
|
6555
|
+
|
|
6556
|
+
If another version create for the same knowledge base is still in progress, this request may
|
|
6557
|
+
return 503 with a `Retry-After` header. Nothing is changed in that case, so it is safe to retry.
|
|
6100
6558
|
</dd>
|
|
6101
6559
|
</dl>
|
|
6102
6560
|
</dd>
|
|
@@ -7680,6 +8138,22 @@ await client.translations.translate({
|
|
|
7680
8138
|
<dl>
|
|
7681
8139
|
<dd>
|
|
7682
8140
|
|
|
8141
|
+
#### 📝 Description
|
|
8142
|
+
|
|
8143
|
+
<dl>
|
|
8144
|
+
<dd>
|
|
8145
|
+
|
|
8146
|
+
<dl>
|
|
8147
|
+
<dd>
|
|
8148
|
+
|
|
8149
|
+
Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
|
|
8150
|
+
at once. It returns the fields every capability shares rather than the whole Event
|
|
8151
|
+
Trigger; fetch one by its kind and reference ID for the rest.
|
|
8152
|
+
</dd>
|
|
8153
|
+
</dl>
|
|
8154
|
+
</dd>
|
|
8155
|
+
</dl>
|
|
8156
|
+
|
|
7683
8157
|
#### 🔌 Usage
|
|
7684
8158
|
|
|
7685
8159
|
<dl>
|
|
@@ -7806,6 +8280,9 @@ await client.triggers.createOrUpdate({
|
|
|
7806
8280
|
<dl>
|
|
7807
8281
|
<dd>
|
|
7808
8282
|
|
|
8283
|
+
Deprecated. Use `GET /v1/capabilities/TRIGGER/{referenceId}`, which returns this same
|
|
8284
|
+
object for a trigger and the equivalent for every other kind of capability.
|
|
8285
|
+
|
|
7809
8286
|
Get an event trigger by its supplied ID
|
|
7810
8287
|
</dd>
|
|
7811
8288
|
</dl>
|
|
@@ -7869,6 +8346,9 @@ await client.triggers.get("store-in-snowflake");
|
|
|
7869
8346
|
<dl>
|
|
7870
8347
|
<dd>
|
|
7871
8348
|
|
|
8349
|
+
Deprecated. Use `DELETE /v1/capabilities/TRIGGER/{referenceId}`, which deletes any kind
|
|
8350
|
+
of capability the same way.
|
|
8351
|
+
|
|
7872
8352
|
Delete an event trigger
|
|
7873
8353
|
</dd>
|
|
7874
8354
|
</dl>
|
|
@@ -7932,7 +8412,10 @@ await client.triggers.delete("store-in-snowflake");
|
|
|
7932
8412
|
<dl>
|
|
7933
8413
|
<dd>
|
|
7934
8414
|
|
|
7935
|
-
Updates an event trigger.
|
|
8415
|
+
Updates an event trigger. `enabled` and `condition` are the editable fields.
|
|
8416
|
+
|
|
8417
|
+
`PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status` also turns a trigger on and
|
|
8418
|
+
off, the same way it publishes and unpublishes any kind of capability.
|
|
7936
8419
|
</dd>
|
|
7937
8420
|
</dl>
|
|
7938
8421
|
</dd>
|
|
@@ -7947,9 +8430,7 @@ Updates an event trigger. Only the enabled field is editable.
|
|
|
7947
8430
|
<dd>
|
|
7948
8431
|
|
|
7949
8432
|
```typescript
|
|
7950
|
-
await client.triggers.partialUpdate("triggerReferenceId"
|
|
7951
|
-
body: {}
|
|
7952
|
-
});
|
|
8433
|
+
await client.triggers.partialUpdate("triggerReferenceId");
|
|
7953
8434
|
|
|
7954
8435
|
```
|
|
7955
8436
|
</dd>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../../api/index";
|
|
2
|
+
import * as core from "../../../../../core";
|
|
3
|
+
import type * as serializers from "../../../../index";
|
|
4
|
+
import { BaseCappedPaginatedRequest } from "../../../commons/types/BaseCappedPaginatedRequest";
|
|
5
|
+
import { CapabilityStatus } from "../../../commons/types/CapabilityStatus";
|
|
6
|
+
import { CapabilityType } from "../../../commons/types/CapabilityType";
|
|
7
|
+
import { EntityIdWithoutAgent } from "../../../commons/types/EntityIdWithoutAgent";
|
|
8
|
+
import { CapabilitySortField } from "../../types/CapabilitySortField";
|
|
9
|
+
export declare const CapabilitiesSearchRequest: core.serialization.Schema<serializers.CapabilitiesSearchRequest.Raw, MavenAGI.CapabilitiesSearchRequest>;
|
|
10
|
+
export declare namespace CapabilitiesSearchRequest {
|
|
11
|
+
interface Raw extends BaseCappedPaginatedRequest.Raw {
|
|
12
|
+
capabilityTypes?: CapabilityType.Raw[] | null;
|
|
13
|
+
statuses?: CapabilityStatus.Raw[] | null;
|
|
14
|
+
appIds?: string[] | null;
|
|
15
|
+
name?: string | null;
|
|
16
|
+
description?: string | null;
|
|
17
|
+
userInteractionRequired?: boolean | null;
|
|
18
|
+
sortId?: CapabilitySortField.Raw | null;
|
|
19
|
+
variantId?: EntityIdWithoutAgent.Raw | null;
|
|
20
|
+
variantReferenceId?: string | null;
|
|
21
|
+
variantAppId?: string | null;
|
|
22
|
+
}
|
|
23
|
+
}
|