mavenagi 1.2.62 → 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/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/requests/CapabilitiesSearchRequest.d.ts +3 -1
- 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 +2 -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/ErrorReason.d.ts +4 -1
- package/api/resources/commons/types/ErrorReason.js +4 -1
- package/api/resources/commons/types/EventCondition.d.ts +35 -0
- package/api/resources/commons/types/EventConditionGroup.d.ts +11 -0
- package/api/resources/commons/types/EventReferencesCondition.d.ts +13 -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 +15 -0
- package/api/resources/conversation/client/Client.js +15 -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/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 +10 -2
- package/api/resources/intelligentFields/client/Client.js +10 -2
- 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 +9 -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 +30 -9
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +2 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +2 -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 +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 +1 -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/{types/TriggerPartialUpdate.js → client/requests/PartialUpdateRequest.js} +5 -3
- 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 → commons/types/EventCondition.js} +0 -0
- /package/api/resources/{conversation/types/IntelligentFieldSearchCondition.js → commons/types/EventConditionGroup.js} +0 -0
- /package/api/resources/{triggers/types/TriggerPartialUpdate.js → commons/types/EventReferencesCondition.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
|
@@ -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
|
@@ -3204,6 +3204,9 @@ Update mutable conversation fields.
|
|
|
3204
3204
|
|
|
3205
3205
|
The `appId` field can be provided to update a conversation owned by a different app.
|
|
3206
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.
|
|
3207
3210
|
</dd>
|
|
3208
3211
|
</dl>
|
|
3209
3212
|
</dd>
|
|
@@ -3431,6 +3434,8 @@ await client.conversation.delete("conversation-0", {
|
|
|
3431
3434
|
<dd>
|
|
3432
3435
|
|
|
3433
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.
|
|
3434
3439
|
</dd>
|
|
3435
3440
|
</dl>
|
|
3436
3441
|
</dd>
|
|
@@ -3522,6 +3527,8 @@ await client.conversation.appendNewMessages("conversationId", [{
|
|
|
3522
3527
|
Get an answer from Maven for a given user question. If the user question or its answer already exists,
|
|
3523
3528
|
they will be reused and will not be updated. Messages do not allow modification once generated.
|
|
3524
3529
|
|
|
3530
|
+
A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
3531
|
+
|
|
3525
3532
|
Concurrency Behavior:
|
|
3526
3533
|
- If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
3527
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.
|
|
@@ -3622,6 +3629,8 @@ Action and metadata events should overwrite past data and do not need concatenat
|
|
|
3622
3629
|
If the user question or its answer already exists, they will be reused and will not be updated.
|
|
3623
3630
|
Messages do not allow modification once generated.
|
|
3624
3631
|
|
|
3632
|
+
A closed conversation (`open` set to false) takes no new questions and returns a 400.
|
|
3633
|
+
|
|
3625
3634
|
Concurrency Behavior:
|
|
3626
3635
|
- If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
3627
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.
|
|
@@ -3868,6 +3877,8 @@ Action forms can not be submitted more than once, attempting to do so will resul
|
|
|
3868
3877
|
|
|
3869
3878
|
Additionally, form submission is only allowed when the form is the last message in the conversation.
|
|
3870
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.
|
|
3871
3882
|
</dd>
|
|
3872
3883
|
</dl>
|
|
3873
3884
|
</dd>
|
|
@@ -3948,6 +3959,8 @@ await client.conversation.submitActionForm("conversationId", {
|
|
|
3948
3959
|
Replaced by `updateConversationMetadata`.
|
|
3949
3960
|
|
|
3950
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.
|
|
3951
3964
|
</dd>
|
|
3952
3965
|
</dl>
|
|
3953
3966
|
</dd>
|
|
@@ -4027,6 +4040,8 @@ If a metadata field already exists for the calling app, it will be overwritten.
|
|
|
4027
4040
|
If it does not exist, it will be added. Will not remove metadata fields.
|
|
4028
4041
|
|
|
4029
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.
|
|
4030
4045
|
</dd>
|
|
4031
4046
|
</dl>
|
|
4032
4047
|
</dd>
|
|
@@ -4655,7 +4670,7 @@ await client.customers.patch("customerReferenceId", {});
|
|
|
4655
4670
|
<dl>
|
|
4656
4671
|
<dd>
|
|
4657
4672
|
|
|
4658
|
-
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.
|
|
4659
4674
|
</dd>
|
|
4660
4675
|
</dl>
|
|
4661
4676
|
</dd>
|
|
@@ -5616,7 +5631,15 @@ Create a new intelligent field, or replace it if one already exists with the sam
|
|
|
5616
5631
|
entities such as conversations.
|
|
5617
5632
|
|
|
5618
5633
|
New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
5619
|
-
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.
|
|
5620
5643
|
</dd>
|
|
5621
5644
|
</dl>
|
|
5622
5645
|
</dd>
|
|
@@ -5859,7 +5882,7 @@ Soft delete an intelligent field. Only INACTIVE fields can be deleted.
|
|
|
5859
5882
|
|
|
5860
5883
|
Deleted fields are excluded from search results but can still be retrieved by ID.
|
|
5861
5884
|
Creating a new field with the same referenceId as a deleted field will overwrite
|
|
5862
|
-
the deleted field and restore it
|
|
5885
|
+
the deleted field and restore it with the status a new field gets.
|
|
5863
5886
|
|
|
5864
5887
|
Deleted fields cannot be modified.
|
|
5865
5888
|
</dd>
|
|
@@ -8389,10 +8412,10 @@ await client.triggers.delete("store-in-snowflake");
|
|
|
8389
8412
|
<dl>
|
|
8390
8413
|
<dd>
|
|
8391
8414
|
|
|
8392
|
-
|
|
8393
|
-
publishes and unpublishes any kind of capability the same way.
|
|
8415
|
+
Updates an event trigger. `enabled` and `condition` are the editable fields.
|
|
8394
8416
|
|
|
8395
|
-
|
|
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.
|
|
8396
8419
|
</dd>
|
|
8397
8420
|
</dl>
|
|
8398
8421
|
</dd>
|
|
@@ -8407,9 +8430,7 @@ Updates an event trigger. Only the enabled field is editable.
|
|
|
8407
8430
|
<dd>
|
|
8408
8431
|
|
|
8409
8432
|
```typescript
|
|
8410
|
-
await client.triggers.partialUpdate("triggerReferenceId"
|
|
8411
|
-
body: {}
|
|
8412
|
-
});
|
|
8433
|
+
await client.triggers.partialUpdate("triggerReferenceId");
|
|
8413
8434
|
|
|
8414
8435
|
```
|
|
8415
8436
|
</dd>
|
|
@@ -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
|
})
|
|
@@ -1,10 +1,12 @@
|
|
|
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
|
export declare const CharterBase: core.serialization.ObjectSchema<serializers.CharterBase.Raw, MavenAGI.CharterBase>;
|
|
5
6
|
export declare namespace CharterBase {
|
|
6
7
|
interface Raw {
|
|
7
8
|
name: string;
|
|
9
|
+
variantId?: EntityIdWithoutAgent.Raw | null;
|
|
8
10
|
description?: string | null;
|
|
9
11
|
manual?: string | null;
|
|
10
12
|
}
|
|
@@ -36,8 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.CharterBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const EntityIdWithoutAgent_1 = require("../../commons/types/EntityIdWithoutAgent");
|
|
39
40
|
exports.CharterBase = core.serialization.object({
|
|
40
41
|
name: core.serialization.string(),
|
|
42
|
+
variantId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
41
43
|
description: core.serialization.string().optional(),
|
|
42
44
|
manual: core.serialization.string().optional(),
|
|
43
45
|
});
|
|
@@ -2,12 +2,10 @@ 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 { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
5
|
-
import { EntityIdWithoutAgent } from "../../commons/types/EntityIdWithoutAgent";
|
|
6
5
|
import { CharterContent } from "./CharterContent";
|
|
7
6
|
export declare const CharterRequest: core.serialization.ObjectSchema<serializers.CharterRequest.Raw, MavenAGI.CharterRequest>;
|
|
8
7
|
export declare namespace CharterRequest {
|
|
9
8
|
interface Raw extends CharterContent.Raw {
|
|
10
9
|
charterId: EntityIdBase.Raw;
|
|
11
|
-
variantId?: EntityIdWithoutAgent.Raw | null;
|
|
12
10
|
}
|
|
13
11
|
}
|
|
@@ -37,11 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.CharterRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const EntityIdBase_1 = require("../../commons/types/EntityIdBase");
|
|
40
|
-
const EntityIdWithoutAgent_1 = require("../../commons/types/EntityIdWithoutAgent");
|
|
41
40
|
const CharterContent_1 = require("./CharterContent");
|
|
42
41
|
exports.CharterRequest = core.serialization
|
|
43
42
|
.object({
|
|
44
43
|
charterId: EntityIdBase_1.EntityIdBase,
|
|
45
|
-
variantId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
46
44
|
})
|
|
47
45
|
.extend(CharterContent_1.CharterContent);
|
|
@@ -2,11 +2,13 @@ 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
|
export declare const CharterSearchFilter: core.serialization.ObjectSchema<serializers.CharterSearchFilter.Raw, MavenAGI.CharterSearchFilter>;
|
|
6
7
|
export declare namespace CharterSearchFilter {
|
|
7
8
|
interface Raw {
|
|
8
9
|
actionIds?: EntityId.Raw[] | null;
|
|
9
10
|
knowledgeBaseIds?: EntityId.Raw[] | null;
|
|
10
11
|
intelligentFieldIds?: EntityId.Raw[] | null;
|
|
12
|
+
variantId?: EntityIdWithoutAgent.Raw | null;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -37,8 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.CharterSearchFilter = 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
|
exports.CharterSearchFilter = core.serialization.object({
|
|
41
42
|
actionIds: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
42
43
|
knowledgeBaseIds: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
43
44
|
intelligentFieldIds: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
45
|
+
variantId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
44
46
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
export declare const AdditionalDataKey: core.serialization.Schema<serializers.AdditionalDataKey.Raw, MavenAGI.AdditionalDataKey>;
|
|
5
|
+
export declare namespace AdditionalDataKey {
|
|
6
|
+
type Raw = "value" | "previousValue" | "name" | "step" | "reason" | "errorCode" | "errorMessage" | "url" | "query" | "position" | "amount" | "currency" | "channel" | "sourceLanguage" | "targetLanguage" | "mimeType" | "sizeBytes";
|
|
7
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.AdditionalDataKey = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
exports.AdditionalDataKey = core.serialization.forwardCompatibleEnum_([
|
|
40
|
+
"value",
|
|
41
|
+
"previousValue",
|
|
42
|
+
"name",
|
|
43
|
+
"step",
|
|
44
|
+
"reason",
|
|
45
|
+
"errorCode",
|
|
46
|
+
"errorMessage",
|
|
47
|
+
"url",
|
|
48
|
+
"query",
|
|
49
|
+
"position",
|
|
50
|
+
"amount",
|
|
51
|
+
"currency",
|
|
52
|
+
"channel",
|
|
53
|
+
"sourceLanguage",
|
|
54
|
+
"targetLanguage",
|
|
55
|
+
"mimeType",
|
|
56
|
+
"sizeBytes",
|
|
57
|
+
]);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
export declare const ErrorReason: core.serialization.Schema<serializers.ErrorReason.Raw, MavenAGI.ErrorReason>;
|
|
5
5
|
export declare namespace ErrorReason {
|
|
6
|
-
type Raw = "VARIANT_LIVE" | "VARIANT_NOT_ACTIVE" | "STALE_TRAFFIC_REVISION" | "STALE_WORKING_SET" | "NOTHING_TO_COMMIT" | "VARIANT_ALREADY_EXISTS" | "CANNOT_ARCHIVE_LIVE_VARIANT" | "VARIANT_HAS_STAGED_EDITS" | "VARIANT_REQUIRED";
|
|
6
|
+
type Raw = "VARIANT_LIVE" | "VARIANT_NOT_ACTIVE" | "STALE_TRAFFIC_REVISION" | "STALE_WORKING_SET" | "NOTHING_TO_COMMIT" | "VARIANT_ALREADY_EXISTS" | "CANNOT_ARCHIVE_LIVE_VARIANT" | "VARIANT_HAS_STAGED_EDITS" | "VARIANT_REQUIRED" | "INTELLIGENT_FIELD_TYPE_CHANGED";
|
|
7
7
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import * as serializers from "../../../index";
|
|
4
|
+
import { EventReferencesCondition } from "./EventReferencesCondition";
|
|
5
|
+
import { MetadataEntryCondition } from "./MetadataEntryCondition";
|
|
6
|
+
import { SystemEventNameCondition } from "./SystemEventNameCondition";
|
|
7
|
+
import { UserEventNameCondition } from "./UserEventNameCondition";
|
|
8
|
+
export declare const EventCondition: core.serialization.Schema<serializers.EventCondition.Raw, MavenAGI.EventCondition>;
|
|
9
|
+
export declare namespace EventCondition {
|
|
10
|
+
type Raw = EventCondition.UserEventName | EventCondition.SystemEventName | EventCondition.Data | EventCondition.References | EventCondition.Group;
|
|
11
|
+
interface UserEventName extends UserEventNameCondition.Raw {
|
|
12
|
+
eventConditionType: "userEventName";
|
|
13
|
+
}
|
|
14
|
+
interface SystemEventName extends SystemEventNameCondition.Raw {
|
|
15
|
+
eventConditionType: "systemEventName";
|
|
16
|
+
}
|
|
17
|
+
interface Data extends MetadataEntryCondition.Raw {
|
|
18
|
+
eventConditionType: "data";
|
|
19
|
+
}
|
|
20
|
+
interface References extends EventReferencesCondition.Raw {
|
|
21
|
+
eventConditionType: "references";
|
|
22
|
+
}
|
|
23
|
+
interface Group extends serializers.EventConditionGroup.Raw {
|
|
24
|
+
eventConditionType: "group";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.EventCondition = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const serializers = __importStar(require("../../../index"));
|
|
40
|
+
const EventReferencesCondition_1 = require("./EventReferencesCondition");
|
|
41
|
+
const MetadataEntryCondition_1 = require("./MetadataEntryCondition");
|
|
42
|
+
const SystemEventNameCondition_1 = require("./SystemEventNameCondition");
|
|
43
|
+
const UserEventNameCondition_1 = require("./UserEventNameCondition");
|
|
44
|
+
exports.EventCondition = core.serialization
|
|
45
|
+
.union("eventConditionType", {
|
|
46
|
+
userEventName: UserEventNameCondition_1.UserEventNameCondition,
|
|
47
|
+
systemEventName: SystemEventNameCondition_1.SystemEventNameCondition,
|
|
48
|
+
data: MetadataEntryCondition_1.MetadataEntryCondition,
|
|
49
|
+
references: EventReferencesCondition_1.EventReferencesCondition,
|
|
50
|
+
group: core.serialization.lazyObject(() => serializers.EventConditionGroup),
|
|
51
|
+
})
|
|
52
|
+
.transform({
|
|
53
|
+
transform: (value) => value,
|
|
54
|
+
untransform: (value) => value,
|
|
55
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import * as serializers from "../../../index";
|
|
4
|
+
import { PreconditionGroupOperator } from "./PreconditionGroupOperator";
|
|
5
|
+
export declare const EventConditionGroup: core.serialization.ObjectSchema<serializers.EventConditionGroup.Raw, MavenAGI.EventConditionGroup>;
|
|
6
|
+
export declare namespace EventConditionGroup {
|
|
7
|
+
interface Raw {
|
|
8
|
+
operator: PreconditionGroupOperator.Raw;
|
|
9
|
+
conditions: serializers.EventCondition.Raw[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.EventConditionGroup = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const serializers = __importStar(require("../../../index"));
|
|
40
|
+
const PreconditionGroupOperator_1 = require("./PreconditionGroupOperator");
|
|
41
|
+
exports.EventConditionGroup = core.serialization.object({
|
|
42
|
+
operator: PreconditionGroupOperator_1.PreconditionGroupOperator,
|
|
43
|
+
conditions: core.serialization.list(core.serialization.lazy(() => serializers.EventCondition)),
|
|
44
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { ScopedEntity } from "./ScopedEntity";
|
|
5
|
+
import { SetRelationOperator } from "./SetRelationOperator";
|
|
6
|
+
export declare const EventReferencesCondition: core.serialization.ObjectSchema<serializers.EventReferencesCondition.Raw, MavenAGI.EventReferencesCondition>;
|
|
7
|
+
export declare namespace EventReferencesCondition {
|
|
8
|
+
interface Raw {
|
|
9
|
+
operator: SetRelationOperator.Raw;
|
|
10
|
+
references: ScopedEntity.Raw[];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.EventReferencesCondition = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const ScopedEntity_1 = require("./ScopedEntity");
|
|
40
|
+
const SetRelationOperator_1 = require("./SetRelationOperator");
|
|
41
|
+
exports.EventReferencesCondition = core.serialization.object({
|
|
42
|
+
operator: SetRelationOperator_1.SetRelationOperator,
|
|
43
|
+
references: core.serialization.list(ScopedEntity_1.ScopedEntity),
|
|
44
|
+
});
|
package/serialization/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.d.ts
RENAMED
|
@@ -1,7 +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 { EntityIdFilter } from "
|
|
4
|
+
import { EntityIdFilter } from "./EntityIdFilter";
|
|
5
5
|
import { IntelligentFieldOperator } from "./IntelligentFieldOperator";
|
|
6
6
|
export declare const IntelligentFieldSearchCondition: core.serialization.ObjectSchema<serializers.IntelligentFieldSearchCondition.Raw, MavenAGI.IntelligentFieldSearchCondition>;
|
|
7
7
|
export declare namespace IntelligentFieldSearchCondition {
|
package/serialization/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.js
RENAMED
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.IntelligentFieldSearchCondition = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
|
-
const EntityIdFilter_1 = require("
|
|
39
|
+
const EntityIdFilter_1 = require("./EntityIdFilter");
|
|
40
40
|
const IntelligentFieldOperator_1 = require("./IntelligentFieldOperator");
|
|
41
41
|
exports.IntelligentFieldSearchCondition = core.serialization.object({
|
|
42
42
|
fieldId: EntityIdFilter_1.EntityIdFilter,
|
|
@@ -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 "./EntityId";
|
|
5
|
+
import { EntityIdWithoutAgent } from "./EntityIdWithoutAgent";
|
|
5
6
|
import { LlmPersona } from "./LlmPersona";
|
|
6
7
|
export declare const SimulationContext: core.serialization.ObjectSchema<serializers.SimulationContext.Raw, MavenAGI.SimulationContext>;
|
|
7
8
|
export declare namespace SimulationContext {
|
|
@@ -9,5 +10,6 @@ export declare namespace SimulationContext {
|
|
|
9
10
|
additionalPromptText?: string | null;
|
|
10
11
|
persona?: LlmPersona.Raw | null;
|
|
11
12
|
availableKnowledgeBases?: EntityId.Raw[] | null;
|
|
13
|
+
variantId?: EntityIdWithoutAgent.Raw | null;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -37,9 +37,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.SimulationContext = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const EntityId_1 = require("./EntityId");
|
|
40
|
+
const EntityIdWithoutAgent_1 = require("./EntityIdWithoutAgent");
|
|
40
41
|
const LlmPersona_1 = require("./LlmPersona");
|
|
41
42
|
exports.SimulationContext = core.serialization.object({
|
|
42
43
|
additionalPromptText: core.serialization.string().optional(),
|
|
43
44
|
persona: LlmPersona_1.LlmPersona.optional(),
|
|
44
45
|
availableKnowledgeBases: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
46
|
+
variantId: EntityIdWithoutAgent_1.EntityIdWithoutAgent.optional(),
|
|
45
47
|
});
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
4
|
export declare const SystemEventName: core.serialization.Schema<serializers.SystemEventName.Raw, MavenAGI.SystemEventName>;
|
|
5
5
|
export declare namespace SystemEventName {
|
|
6
|
-
type Raw = "APP_INSTALLED" | "APP_UNINSTALLED" | "APP_UPDATED" | "NOTIFICATION_SENT" | "NOTIFICATION_DELIVERED" | "NOTIFICATION_FAILED" | "INTEGRATION_CONNECTED" | "INTEGRATION_DISCONNECTED" | "SYNC_STARTED" | "SYNC_COMPLETED" | "SYNC_FAILED" | "INTELLIGENT_FIELD_VALUE_CHANGED";
|
|
6
|
+
type Raw = "APP_INSTALLED" | "APP_UNINSTALLED" | "APP_UPDATED" | "NOTIFICATION_SENT" | "NOTIFICATION_DELIVERED" | "NOTIFICATION_FAILED" | "INTEGRATION_CONNECTED" | "INTEGRATION_DISCONNECTED" | "SYNC_STARTED" | "SYNC_COMPLETED" | "SYNC_FAILED" | "CONVERSATION_CLOSED" | "INTELLIGENT_FIELD_VALUE_CHANGED";
|
|
7
7
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { StringMembershipOperator } from "./StringMembershipOperator";
|
|
5
|
+
import { SystemEventName } from "./SystemEventName";
|
|
6
|
+
export declare const SystemEventNameCondition: core.serialization.ObjectSchema<serializers.SystemEventNameCondition.Raw, MavenAGI.SystemEventNameCondition>;
|
|
7
|
+
export declare namespace SystemEventNameCondition {
|
|
8
|
+
interface Raw {
|
|
9
|
+
operator: StringMembershipOperator.Raw;
|
|
10
|
+
names: SystemEventName.Raw[];
|
|
11
|
+
}
|
|
12
|
+
}
|