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
|
@@ -22,14 +22,6 @@ import type * as MavenAGI from "../../../index";
|
|
|
22
22
|
export interface SegmentRequest extends MavenAGI.SegmentBase {
|
|
23
23
|
/** ID that uniquely identifies this segment */
|
|
24
24
|
segmentId: MavenAGI.EntityIdBase;
|
|
25
|
-
/**
|
|
26
|
-
* The agent variant this write is scoped to. When set, the segment content is staged in
|
|
27
|
-
* that variant's working set instead of being applied to the agent's live configuration.
|
|
28
|
-
*
|
|
29
|
-
* Omit this field to write directly to the agent. Variant scoping is not active yet: a
|
|
30
|
-
* variant supplied today is accepted and ignored, and the write applies to the agent.
|
|
31
|
-
*/
|
|
32
|
-
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
33
25
|
/** The precondition that must be met for a conversation message to be included in the segment. */
|
|
34
26
|
precondition: MavenAGI.Precondition;
|
|
35
27
|
/** Desired status for the segment. If omitted, defaults to ACTIVE. In the future this will become required, so specify ACTIVE or INACTIVE if possible. */
|
|
@@ -107,12 +107,10 @@ export declare class TriggersClient {
|
|
|
107
107
|
delete(triggerReferenceId: string, requestOptions?: TriggersClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
108
108
|
private __delete;
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
* Deprecated. Use `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status`, which
|
|
113
|
-
* publishes and unpublishes any kind of capability the same way.
|
|
110
|
+
* Updates an event trigger. `enabled` and `condition` are the editable fields.
|
|
114
111
|
*
|
|
115
|
-
*
|
|
112
|
+
* `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status` also turns a trigger on and
|
|
113
|
+
* off, the same way it publishes and unpublishes any kind of capability.
|
|
116
114
|
*
|
|
117
115
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to update. All other entity ID fields are inferred from the request.
|
|
118
116
|
* @param {MavenAGI.PartialUpdateRequest} request
|
|
@@ -127,10 +125,8 @@ export declare class TriggersClient {
|
|
|
127
125
|
* @throws {@link errors.MavenAGITimeoutError}
|
|
128
126
|
*
|
|
129
127
|
* @example
|
|
130
|
-
* await client.triggers.partialUpdate("triggerReferenceId"
|
|
131
|
-
* body: {}
|
|
132
|
-
* })
|
|
128
|
+
* await client.triggers.partialUpdate("triggerReferenceId")
|
|
133
129
|
*/
|
|
134
|
-
partialUpdate(triggerReferenceId: string, request
|
|
130
|
+
partialUpdate(triggerReferenceId: string, request?: MavenAGI.PartialUpdateRequest, requestOptions?: TriggersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.EventTriggerResponse>;
|
|
135
131
|
private __partialUpdate;
|
|
136
132
|
}
|
|
@@ -42,6 +42,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
57
|
exports.TriggersClient = void 0;
|
|
47
58
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
@@ -468,12 +479,10 @@ class TriggersClient {
|
|
|
468
479
|
});
|
|
469
480
|
}
|
|
470
481
|
/**
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
* Deprecated. Use `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status`, which
|
|
474
|
-
* publishes and unpublishes any kind of capability the same way.
|
|
482
|
+
* Updates an event trigger. `enabled` and `condition` are the editable fields.
|
|
475
483
|
*
|
|
476
|
-
*
|
|
484
|
+
* `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status` also turns a trigger on and
|
|
485
|
+
* off, the same way it publishes and unpublishes any kind of capability.
|
|
477
486
|
*
|
|
478
487
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to update. All other entity ID fields are inferred from the request.
|
|
479
488
|
* @param {MavenAGI.PartialUpdateRequest} request
|
|
@@ -488,17 +497,15 @@ class TriggersClient {
|
|
|
488
497
|
* @throws {@link errors.MavenAGITimeoutError}
|
|
489
498
|
*
|
|
490
499
|
* @example
|
|
491
|
-
* await client.triggers.partialUpdate("triggerReferenceId"
|
|
492
|
-
* body: {}
|
|
493
|
-
* })
|
|
500
|
+
* await client.triggers.partialUpdate("triggerReferenceId")
|
|
494
501
|
*/
|
|
495
|
-
partialUpdate(triggerReferenceId, request, requestOptions) {
|
|
502
|
+
partialUpdate(triggerReferenceId, request = {}, requestOptions) {
|
|
496
503
|
return core.HttpResponsePromise.fromPromise(this.__partialUpdate(triggerReferenceId, request, requestOptions));
|
|
497
504
|
}
|
|
498
|
-
__partialUpdate(
|
|
499
|
-
return __awaiter(this,
|
|
505
|
+
__partialUpdate(triggerReferenceId_1) {
|
|
506
|
+
return __awaiter(this, arguments, void 0, function* (triggerReferenceId, request = {}, requestOptions) {
|
|
500
507
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
501
|
-
const { appId,
|
|
508
|
+
const { appId } = request, _body = __rest(request, ["appId"]);
|
|
502
509
|
const _queryParams = {
|
|
503
510
|
appId,
|
|
504
511
|
};
|
|
@@ -511,14 +518,14 @@ class TriggersClient {
|
|
|
511
518
|
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/triggers/${core.url.encodePathParam(triggerReferenceId)}`),
|
|
512
519
|
method: "PATCH",
|
|
513
520
|
headers: _headers,
|
|
514
|
-
contentType: "application/json",
|
|
521
|
+
contentType: "application/merge-patch+json",
|
|
515
522
|
queryString: core.url
|
|
516
523
|
.queryBuilder()
|
|
517
524
|
.addMany(_queryParams)
|
|
518
525
|
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
519
526
|
.build(),
|
|
520
527
|
requestType: "json",
|
|
521
|
-
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.
|
|
528
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.PartialUpdateRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
522
529
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
523
530
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
524
531
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../../index";
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
|
-
* {
|
|
5
|
-
* body: {}
|
|
6
|
-
* }
|
|
4
|
+
* {}
|
|
7
5
|
*/
|
|
8
6
|
export interface PartialUpdateRequest {
|
|
9
7
|
/** The App ID of the trigger to update. If not provided, the ID of the calling app will be used. */
|
|
10
8
|
appId?: string;
|
|
11
|
-
|
|
9
|
+
/** Whether the trigger will be called by Maven. */
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
/** Narrows which events fire this trigger. Omitted leaves the current condition alone; an explicit null removes it, so the trigger fires for every event again. */
|
|
12
|
+
condition?: MavenAGI.EventCondition | null;
|
|
12
13
|
}
|
|
@@ -11,4 +11,12 @@ export interface EventTriggerBase {
|
|
|
11
11
|
* Inbox triggers fire when an inbox item is created or updated.
|
|
12
12
|
*/
|
|
13
13
|
type: MavenAGI.EventTriggerType;
|
|
14
|
+
/**
|
|
15
|
+
* Narrows which events fire this trigger. Without one the trigger fires for every event on
|
|
16
|
+
* the agent. Re-registering writes whatever condition the request carries, so omitting it
|
|
17
|
+
* removes one; PATCH changes or removes a condition without re-registering.
|
|
18
|
+
*
|
|
19
|
+
* Only allowed on `EVENT_CREATED`; the other trigger types reject it.
|
|
20
|
+
*/
|
|
21
|
+
condition?: MavenAGI.EventCondition;
|
|
14
22
|
}
|
|
@@ -20,4 +20,3 @@ __exportStar(require("./EventTriggerResponse"), exports);
|
|
|
20
20
|
__exportStar(require("./EventTriggersSearchRequest"), exports);
|
|
21
21
|
__exportStar(require("./EventTriggersSearchResponse"), exports);
|
|
22
22
|
__exportStar(require("./TriggerField"), exports);
|
|
23
|
-
__exportStar(require("./TriggerPartialUpdate"), exports);
|
|
@@ -59,4 +59,6 @@ export interface AgentUser {
|
|
|
59
59
|
* If two apps create users with the same identifying properties, they will be merged into a single agent user.
|
|
60
60
|
*/
|
|
61
61
|
users: MavenAGI.AppUserSummary[];
|
|
62
|
+
/** Latest successful values of the agent user's intelligent fields. */
|
|
63
|
+
intelligentFieldValues?: MavenAGI.IntelligentFieldValueResponse[];
|
|
62
64
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
1
2
|
export interface AgentUserFilter {
|
|
2
3
|
/**
|
|
3
4
|
* Full-text search query for matching agent users by content.
|
|
@@ -16,4 +17,6 @@ export interface AgentUserFilter {
|
|
|
16
17
|
* When false, only non-anonymous users are returned. An anonymous user is one without any identifiers or name data.
|
|
17
18
|
*/
|
|
18
19
|
isAnonymous?: boolean;
|
|
20
|
+
/** Filter by intelligent field values. All conditions are ANDed together. */
|
|
21
|
+
intelligentFields?: MavenAGI.IntelligentFieldFilter;
|
|
19
22
|
}
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2444,6 +2444,85 @@ await client.capabilities.searchCapabilities();
|
|
|
2444
2444
|
</dl>
|
|
2445
2445
|
|
|
2446
2446
|
|
|
2447
|
+
</dd>
|
|
2448
|
+
</dl>
|
|
2449
|
+
</details>
|
|
2450
|
+
|
|
2451
|
+
<details><summary><code>client.capabilities.<a href="/src/api/resources/capabilities/client/Client.ts">searchCapabilityExecutions</a>({ ...params }) -> MavenAGI.CapabilityExecutionsSearchResponse</code></summary>
|
|
2452
|
+
<dl>
|
|
2453
|
+
<dd>
|
|
2454
|
+
|
|
2455
|
+
#### 📝 Description
|
|
2456
|
+
|
|
2457
|
+
<dl>
|
|
2458
|
+
<dd>
|
|
2459
|
+
|
|
2460
|
+
<dl>
|
|
2461
|
+
<dd>
|
|
2462
|
+
|
|
2463
|
+
Search the recorded runs of an agent's capabilities, newest first by default. An execution
|
|
2464
|
+
is one run of one capability for one subject, with its outcome and timing: an Event
|
|
2465
|
+
Trigger notifying its app, or a Conversation Kickoff running when a conversation started.
|
|
2466
|
+
|
|
2467
|
+
Pass a conversation in `subjectIds` to get the executions recorded against it. An
|
|
2468
|
+
`EVENT_CREATED` trigger records the event as its subject, so pass the event's ID to find
|
|
2469
|
+
those.
|
|
2470
|
+
|
|
2471
|
+
Results can trail a run by a few seconds. Executions are searchable for 90 days.
|
|
2472
|
+
</dd>
|
|
2473
|
+
</dl>
|
|
2474
|
+
</dd>
|
|
2475
|
+
</dl>
|
|
2476
|
+
|
|
2477
|
+
#### 🔌 Usage
|
|
2478
|
+
|
|
2479
|
+
<dl>
|
|
2480
|
+
<dd>
|
|
2481
|
+
|
|
2482
|
+
<dl>
|
|
2483
|
+
<dd>
|
|
2484
|
+
|
|
2485
|
+
```typescript
|
|
2486
|
+
await client.capabilities.searchCapabilityExecutions({
|
|
2487
|
+
subjectIds: [{
|
|
2488
|
+
referenceId: "conversation-123",
|
|
2489
|
+
appId: "zendesk",
|
|
2490
|
+
organizationId: "acme",
|
|
2491
|
+
agentId: "support",
|
|
2492
|
+
type: "CONVERSATION"
|
|
2493
|
+
}]
|
|
2494
|
+
});
|
|
2495
|
+
|
|
2496
|
+
```
|
|
2497
|
+
</dd>
|
|
2498
|
+
</dl>
|
|
2499
|
+
</dd>
|
|
2500
|
+
</dl>
|
|
2501
|
+
|
|
2502
|
+
#### ⚙️ Parameters
|
|
2503
|
+
|
|
2504
|
+
<dl>
|
|
2505
|
+
<dd>
|
|
2506
|
+
|
|
2507
|
+
<dl>
|
|
2508
|
+
<dd>
|
|
2509
|
+
|
|
2510
|
+
**request:** `MavenAGI.CapabilityExecutionsSearchRequest`
|
|
2511
|
+
|
|
2512
|
+
</dd>
|
|
2513
|
+
</dl>
|
|
2514
|
+
|
|
2515
|
+
<dl>
|
|
2516
|
+
<dd>
|
|
2517
|
+
|
|
2518
|
+
**requestOptions:** `CapabilitiesClient.RequestOptions`
|
|
2519
|
+
|
|
2520
|
+
</dd>
|
|
2521
|
+
</dl>
|
|
2522
|
+
</dd>
|
|
2523
|
+
</dl>
|
|
2524
|
+
|
|
2525
|
+
|
|
2447
2526
|
</dd>
|
|
2448
2527
|
</dl>
|
|
2449
2528
|
</details>
|
|
@@ -3204,6 +3283,9 @@ Update mutable conversation fields.
|
|
|
3204
3283
|
|
|
3205
3284
|
The `appId` field can be provided to update a conversation owned by a different app.
|
|
3206
3285
|
All other fields will overwrite the existing value on the conversation only if provided.
|
|
3286
|
+
|
|
3287
|
+
A closed conversation (`open` set to false) cannot be reopened: a patch setting `open` to true
|
|
3288
|
+
returns a 400. Its other fields can still be patched.
|
|
3207
3289
|
</dd>
|
|
3208
3290
|
</dl>
|
|
3209
3291
|
</dd>
|
|
@@ -3431,6 +3513,8 @@ await client.conversation.delete("conversation-0", {
|
|
|
3431
3513
|
<dd>
|
|
3432
3514
|
|
|
3433
3515
|
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.
|
|
3516
|
+
|
|
3517
|
+
A closed conversation (`open` set to false) takes no new messages and returns a 400.
|
|
3434
3518
|
</dd>
|
|
3435
3519
|
</dl>
|
|
3436
3520
|
</dd>
|
|
@@ -3522,6 +3606,8 @@ await client.conversation.appendNewMessages("conversationId", [{
|
|
|
3522
3606
|
Get an answer from Maven for a given user question. If the user question or its answer already exists,
|
|
3523
3607
|
they will be reused and will not be updated. Messages do not allow modification once generated.
|
|
3524
3608
|
|
|
3609
|
+
A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
3610
|
+
|
|
3525
3611
|
Concurrency Behavior:
|
|
3526
3612
|
- If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
3527
3613
|
- 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.
|
|
@@ -3622,6 +3708,8 @@ Action and metadata events should overwrite past data and do not need concatenat
|
|
|
3622
3708
|
If the user question or its answer already exists, they will be reused and will not be updated.
|
|
3623
3709
|
Messages do not allow modification once generated.
|
|
3624
3710
|
|
|
3711
|
+
A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
3712
|
+
|
|
3625
3713
|
Concurrency Behavior:
|
|
3626
3714
|
- If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
3627
3715
|
- 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.
|
|
@@ -3718,7 +3806,11 @@ for await (const item of response) {
|
|
|
3718
3806
|
<dl>
|
|
3719
3807
|
<dd>
|
|
3720
3808
|
|
|
3721
|
-
|
|
3809
|
+
Deprecated. Set the agent's `categoryIntelligentFieldId` and read that intelligent field's value instead.
|
|
3810
|
+
|
|
3811
|
+
Uses an LLM flow to categorize the conversation.
|
|
3812
|
+
|
|
3813
|
+
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.
|
|
3722
3814
|
</dd>
|
|
3723
3815
|
</dl>
|
|
3724
3816
|
</dd>
|
|
@@ -3868,6 +3960,8 @@ Action forms can not be submitted more than once, attempting to do so will resul
|
|
|
3868
3960
|
|
|
3869
3961
|
Additionally, form submission is only allowed when the form is the last message in the conversation.
|
|
3870
3962
|
Forms should be disabled in surface UI if a conversation continues and they remain unsubmitted.
|
|
3963
|
+
|
|
3964
|
+
A form cannot be submitted on a closed conversation (`open` set to false): that returns a 400.
|
|
3871
3965
|
</dd>
|
|
3872
3966
|
</dl>
|
|
3873
3967
|
</dd>
|
|
@@ -3948,6 +4042,8 @@ await client.conversation.submitActionForm("conversationId", {
|
|
|
3948
4042
|
Replaced by `updateConversationMetadata`.
|
|
3949
4043
|
|
|
3950
4044
|
Adds metadata to an existing conversation. If a metadata field already exists, it will be overwritten.
|
|
4045
|
+
|
|
4046
|
+
A closed conversation (`open` set to false) takes no new metadata and returns a 400.
|
|
3951
4047
|
</dd>
|
|
3952
4048
|
</dl>
|
|
3953
4049
|
</dd>
|
|
@@ -4027,6 +4123,8 @@ If a metadata field already exists for the calling app, it will be overwritten.
|
|
|
4027
4123
|
If it does not exist, it will be added. Will not remove metadata fields.
|
|
4028
4124
|
|
|
4029
4125
|
Returns all metadata saved by any app on the conversation.
|
|
4126
|
+
|
|
4127
|
+
A closed conversation (`open` set to false) takes no new metadata and returns a 400.
|
|
4030
4128
|
</dd>
|
|
4031
4129
|
</dl>
|
|
4032
4130
|
</dd>
|
|
@@ -4655,7 +4753,7 @@ await client.customers.patch("customerReferenceId", {});
|
|
|
4655
4753
|
<dl>
|
|
4656
4754
|
<dd>
|
|
4657
4755
|
|
|
4658
|
-
Create a new event
|
|
4756
|
+
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.
|
|
4659
4757
|
</dd>
|
|
4660
4758
|
</dl>
|
|
4661
4759
|
</dd>
|
|
@@ -5616,7 +5714,15 @@ Create a new intelligent field, or replace it if one already exists with the sam
|
|
|
5616
5714
|
entities such as conversations.
|
|
5617
5715
|
|
|
5618
5716
|
New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
5619
|
-
with the patch endpoint. `
|
|
5717
|
+
with the patch endpoint. A new field created in a `variantId` starts `ACTIVE` instead,
|
|
5718
|
+
since it is evaluated only once that variant is published and given traffic; it starts
|
|
5719
|
+
`INACTIVE` while the agent is at its limit of active fields. `definition` is limited
|
|
5720
|
+
to 5,000 characters.
|
|
5721
|
+
|
|
5722
|
+
A replace that names a `variantId` must keep the field's `validationType` as that
|
|
5723
|
+
variant has it, or it is rejected with reason `INTELLIGENT_FIELD_TYPE_CHANGED`. To use
|
|
5724
|
+
a different type, create a new field. A field deleted in the variant may be recreated
|
|
5725
|
+
with any type.
|
|
5620
5726
|
</dd>
|
|
5621
5727
|
</dl>
|
|
5622
5728
|
</dd>
|
|
@@ -5857,9 +5963,9 @@ deletes any kind of capability the same way. That endpoint returns no body.
|
|
|
5857
5963
|
|
|
5858
5964
|
Soft delete an intelligent field. Only INACTIVE fields can be deleted.
|
|
5859
5965
|
|
|
5860
|
-
Deleted fields are excluded from search results
|
|
5966
|
+
Deleted fields are excluded from search results, and getting one by ID returns 404.
|
|
5861
5967
|
Creating a new field with the same referenceId as a deleted field will overwrite
|
|
5862
|
-
the deleted field and restore it
|
|
5968
|
+
the deleted field and restore it with the status a new field gets.
|
|
5863
5969
|
|
|
5864
5970
|
Deleted fields cannot be modified.
|
|
5865
5971
|
</dd>
|
|
@@ -8389,10 +8495,10 @@ await client.triggers.delete("store-in-snowflake");
|
|
|
8389
8495
|
<dl>
|
|
8390
8496
|
<dd>
|
|
8391
8497
|
|
|
8392
|
-
|
|
8393
|
-
publishes and unpublishes any kind of capability the same way.
|
|
8498
|
+
Updates an event trigger. `enabled` and `condition` are the editable fields.
|
|
8394
8499
|
|
|
8395
|
-
|
|
8500
|
+
`PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status` also turns a trigger on and
|
|
8501
|
+
off, the same way it publishes and unpublishes any kind of capability.
|
|
8396
8502
|
</dd>
|
|
8397
8503
|
</dl>
|
|
8398
8504
|
</dd>
|
|
@@ -8407,9 +8513,7 @@ Updates an event trigger. Only the enabled field is editable.
|
|
|
8407
8513
|
<dd>
|
|
8408
8514
|
|
|
8409
8515
|
```typescript
|
|
8410
|
-
await client.triggers.partialUpdate("triggerReferenceId"
|
|
8411
|
-
body: {}
|
|
8412
|
-
});
|
|
8516
|
+
await client.triggers.partialUpdate("triggerReferenceId");
|
|
8413
8517
|
|
|
8414
8518
|
```
|
|
8415
8519
|
</dd>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../../../api/index";
|
|
2
2
|
import * as core from "../../../../../core";
|
|
3
3
|
import type * as serializers from "../../../../index";
|
|
4
|
+
import { EntityIdWithoutAgent } from "../../../commons/types/EntityIdWithoutAgent";
|
|
4
5
|
import { LlmPersona } from "../../../commons/types/LlmPersona";
|
|
5
6
|
import { PiiCategory } from "../../../commons/types/PiiCategory";
|
|
6
7
|
import { AgentEnvironment } from "../../types/AgentEnvironment";
|
|
@@ -15,6 +16,7 @@ export declare namespace AgentPatchRequest {
|
|
|
15
16
|
persona?: LlmPersona.Raw | null;
|
|
16
17
|
additionalPromptText?: (string | null | undefined) | null;
|
|
17
18
|
categoryGenerationPromptText?: (string | null | undefined) | null;
|
|
19
|
+
categoryIntelligentFieldId?: (EntityIdWithoutAgent.Raw | null | undefined) | null;
|
|
18
20
|
contentSafetyViolationResponsePromptText?: (string | null | undefined) | null;
|
|
19
21
|
rejectQuestionsWithoutKnowledge?: boolean | null;
|
|
20
22
|
}
|
|
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.AgentPatchRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core"));
|
|
39
|
+
const EntityIdWithoutAgent_1 = require("../../../commons/types/EntityIdWithoutAgent");
|
|
39
40
|
const LlmPersona_1 = require("../../../commons/types/LlmPersona");
|
|
40
41
|
const PiiCategory_1 = require("../../../commons/types/PiiCategory");
|
|
41
42
|
const AgentEnvironment_1 = require("../../types/AgentEnvironment");
|
|
@@ -48,6 +49,7 @@ exports.AgentPatchRequest = core.serialization.object({
|
|
|
48
49
|
persona: LlmPersona_1.LlmPersona.optional(),
|
|
49
50
|
additionalPromptText: core.serialization.string().optionalNullable(),
|
|
50
51
|
categoryGenerationPromptText: core.serialization.string().optionalNullable(),
|
|
52
|
+
categoryIntelligentFieldId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optionalNullable(),
|
|
51
53
|
contentSafetyViolationResponsePromptText: core.serialization.string().optionalNullable(),
|
|
52
54
|
rejectQuestionsWithoutKnowledge: core.serialization.boolean().optional(),
|
|
53
55
|
});
|
|
@@ -2,6 +2,7 @@ import type * as MavenAGI from "../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
import { EntityId } from "../../commons/types/EntityId";
|
|
5
|
+
import { EntityIdWithoutAgent } from "../../commons/types/EntityIdWithoutAgent";
|
|
5
6
|
import { PiiCategory } from "../../commons/types/PiiCategory";
|
|
6
7
|
import { AgentEnvironment } from "./AgentEnvironment";
|
|
7
8
|
import { AgentPrompting } from "./AgentPrompting";
|
|
@@ -16,5 +17,6 @@ export declare namespace Agent {
|
|
|
16
17
|
enabledPiiCategories: PiiCategory.Raw[];
|
|
17
18
|
systemFallbackMessage?: string | null;
|
|
18
19
|
prompting: AgentPrompting.Raw;
|
|
20
|
+
categoryIntelligentFieldId?: EntityIdWithoutAgent.Raw | null;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.Agent = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const EntityId_1 = require("../../commons/types/EntityId");
|
|
40
|
+
const EntityIdWithoutAgent_1 = require("../../commons/types/EntityIdWithoutAgent");
|
|
40
41
|
const PiiCategory_1 = require("../../commons/types/PiiCategory");
|
|
41
42
|
const AgentEnvironment_1 = require("./AgentEnvironment");
|
|
42
43
|
const AgentPrompting_1 = require("./AgentPrompting");
|
|
@@ -49,4 +50,5 @@ exports.Agent = core.serialization.object({
|
|
|
49
50
|
enabledPiiCategories: core.serialization.set(PiiCategory_1.PiiCategory),
|
|
50
51
|
systemFallbackMessage: core.serialization.string().optional(),
|
|
51
52
|
prompting: AgentPrompting_1.AgentPrompting,
|
|
53
|
+
categoryIntelligentFieldId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
52
54
|
});
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../../../../index";
|
|
|
4
4
|
import { BaseCappedPaginatedRequest } from "../../../commons/types/BaseCappedPaginatedRequest";
|
|
5
5
|
import { CapabilityStatus } from "../../../commons/types/CapabilityStatus";
|
|
6
6
|
import { CapabilityType } from "../../../commons/types/CapabilityType";
|
|
7
|
+
import { EntityIdWithoutAgent } from "../../../commons/types/EntityIdWithoutAgent";
|
|
7
8
|
import { CapabilitySortField } from "../../types/CapabilitySortField";
|
|
8
9
|
export declare const CapabilitiesSearchRequest: core.serialization.Schema<serializers.CapabilitiesSearchRequest.Raw, MavenAGI.CapabilitiesSearchRequest>;
|
|
9
10
|
export declare namespace CapabilitiesSearchRequest {
|
|
@@ -15,6 +16,7 @@ export declare namespace CapabilitiesSearchRequest {
|
|
|
15
16
|
description?: string | null;
|
|
16
17
|
userInteractionRequired?: boolean | null;
|
|
17
18
|
sortId?: CapabilitySortField.Raw | null;
|
|
19
|
+
variantId?: EntityIdWithoutAgent.Raw | null;
|
|
18
20
|
variantReferenceId?: string | null;
|
|
19
21
|
variantAppId?: string | null;
|
|
20
22
|
}
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../../core"));
|
|
|
39
39
|
const BaseCappedPaginatedRequest_1 = require("../../../commons/types/BaseCappedPaginatedRequest");
|
|
40
40
|
const CapabilityStatus_1 = require("../../../commons/types/CapabilityStatus");
|
|
41
41
|
const CapabilityType_1 = require("../../../commons/types/CapabilityType");
|
|
42
|
+
const EntityIdWithoutAgent_1 = require("../../../commons/types/EntityIdWithoutAgent");
|
|
42
43
|
const CapabilitySortField_1 = require("../../types/CapabilitySortField");
|
|
43
44
|
exports.CapabilitiesSearchRequest = core.serialization
|
|
44
45
|
.object({
|
|
@@ -49,6 +50,7 @@ exports.CapabilitiesSearchRequest = core.serialization
|
|
|
49
50
|
description: core.serialization.string().optional(),
|
|
50
51
|
userInteractionRequired: core.serialization.boolean().optional(),
|
|
51
52
|
sortId: CapabilitySortField_1.CapabilitySortField.optional(),
|
|
53
|
+
variantId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
52
54
|
variantReferenceId: core.serialization.string().optional(),
|
|
53
55
|
variantAppId: core.serialization.string().optional(),
|
|
54
56
|
})
|
package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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 { CapabilityType } from "../../../commons/types/CapabilityType";
|
|
6
|
+
import { EntityId } from "../../../commons/types/EntityId";
|
|
7
|
+
import { CapabilityExecutionStatus } from "../../types/CapabilityExecutionStatus";
|
|
8
|
+
export declare const CapabilityExecutionsSearchRequest: core.serialization.Schema<serializers.CapabilityExecutionsSearchRequest.Raw, MavenAGI.CapabilityExecutionsSearchRequest>;
|
|
9
|
+
export declare namespace CapabilityExecutionsSearchRequest {
|
|
10
|
+
interface Raw extends BaseCappedPaginatedRequest.Raw {
|
|
11
|
+
subjectIds?: EntityId.Raw[] | null;
|
|
12
|
+
capabilityTypes?: CapabilityType.Raw[] | null;
|
|
13
|
+
capabilityIds?: EntityId.Raw[] | null;
|
|
14
|
+
statuses?: CapabilityExecutionStatus.Raw[] | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.CapabilityExecutionsSearchRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core"));
|
|
39
|
+
const BaseCappedPaginatedRequest_1 = require("../../../commons/types/BaseCappedPaginatedRequest");
|
|
40
|
+
const CapabilityType_1 = require("../../../commons/types/CapabilityType");
|
|
41
|
+
const EntityId_1 = require("../../../commons/types/EntityId");
|
|
42
|
+
const CapabilityExecutionStatus_1 = require("../../types/CapabilityExecutionStatus");
|
|
43
|
+
exports.CapabilityExecutionsSearchRequest = core.serialization
|
|
44
|
+
.object({
|
|
45
|
+
subjectIds: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
46
|
+
capabilityTypes: core.serialization.list(CapabilityType_1.CapabilityType).optional(),
|
|
47
|
+
capabilityIds: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
48
|
+
statuses: core.serialization.list(CapabilityExecutionStatus_1.CapabilityExecutionStatus).optional(),
|
|
49
|
+
})
|
|
50
|
+
.extend(BaseCappedPaginatedRequest_1.BaseCappedPaginatedRequest);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PatchCapabilityByTypeRequest = exports.CapabilitiesSearchRequest = void 0;
|
|
3
|
+
exports.PatchCapabilityByTypeRequest = exports.CapabilityExecutionsSearchRequest = exports.CapabilitiesSearchRequest = void 0;
|
|
4
4
|
var CapabilitiesSearchRequest_1 = require("./CapabilitiesSearchRequest");
|
|
5
5
|
Object.defineProperty(exports, "CapabilitiesSearchRequest", { enumerable: true, get: function () { return CapabilitiesSearchRequest_1.CapabilitiesSearchRequest; } });
|
|
6
|
+
var CapabilityExecutionsSearchRequest_1 = require("./CapabilityExecutionsSearchRequest");
|
|
7
|
+
Object.defineProperty(exports, "CapabilityExecutionsSearchRequest", { enumerable: true, get: function () { return CapabilityExecutionsSearchRequest_1.CapabilityExecutionsSearchRequest; } });
|
|
6
8
|
var PatchCapabilityByTypeRequest_1 = require("./PatchCapabilityByTypeRequest");
|
|
7
9
|
Object.defineProperty(exports, "PatchCapabilityByTypeRequest", { enumerable: true, get: function () { return PatchCapabilityByTypeRequest_1.PatchCapabilityByTypeRequest; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { ConversationKickoffCapabilityExecution } from "./ConversationKickoffCapabilityExecution";
|
|
5
|
+
import { TriggerCapabilityExecution } from "./TriggerCapabilityExecution";
|
|
6
|
+
export declare const CapabilityExecution: core.serialization.Schema<serializers.CapabilityExecution.Raw, MavenAGI.CapabilityExecution>;
|
|
7
|
+
export declare namespace CapabilityExecution {
|
|
8
|
+
type Raw = CapabilityExecution.Trigger | CapabilityExecution.ConversationKickoff;
|
|
9
|
+
interface Trigger extends TriggerCapabilityExecution.Raw {
|
|
10
|
+
capabilityType: "TRIGGER";
|
|
11
|
+
}
|
|
12
|
+
interface ConversationKickoff extends ConversationKickoffCapabilityExecution.Raw {
|
|
13
|
+
capabilityType: "CONVERSATION_KICKOFF";
|
|
14
|
+
}
|
|
15
|
+
}
|