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.
Files changed (140) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +4 -0
  3. package/api/resources/analytics/types/ConversationBasicMetric.d.ts +4 -1
  4. package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +2 -0
  5. package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +2 -0
  6. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +3 -1
  7. package/api/resources/charters/client/Client.js +3 -1
  8. package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +1 -1
  9. package/api/resources/charters/client/requests/CharterGetRequest.d.ts +4 -0
  10. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +1 -1
  11. package/api/resources/charters/types/CharterBase.d.ts +9 -0
  12. package/api/resources/charters/types/CharterRequest.d.ts +0 -8
  13. package/api/resources/charters/types/CharterSearchFilter.d.ts +2 -0
  14. package/api/resources/commons/types/AdditionalDataKey.d.ts +63 -0
  15. package/api/resources/commons/types/AdditionalDataKey.js +66 -0
  16. package/api/resources/commons/types/BaseConversationResponse.d.ts +4 -3
  17. package/api/resources/commons/types/ErrorReason.d.ts +4 -1
  18. package/api/resources/commons/types/ErrorReason.js +4 -1
  19. package/api/resources/commons/types/EventCondition.d.ts +35 -0
  20. package/api/resources/commons/types/EventConditionGroup.d.ts +11 -0
  21. package/api/resources/commons/types/EventReferencesCondition.d.ts +13 -0
  22. package/api/resources/{conversation → commons}/types/IntelligentFieldFilter.d.ts +1 -1
  23. package/api/resources/commons/types/IntelligentFieldFilter.js +3 -0
  24. package/api/resources/commons/types/IntelligentFieldSearchCondition.js +3 -0
  25. package/api/resources/commons/types/SimulationContext.d.ts +12 -0
  26. package/api/resources/commons/types/SystemEventName.d.ts +4 -1
  27. package/api/resources/commons/types/SystemEventName.js +4 -1
  28. package/api/resources/commons/types/SystemEventNameCondition.d.ts +10 -0
  29. package/api/resources/commons/types/SystemEventNameCondition.js +3 -0
  30. package/api/resources/commons/types/UserEventNameCondition.d.ts +10 -0
  31. package/api/resources/commons/types/UserEventNameCondition.js +3 -0
  32. package/api/resources/commons/types/index.d.ts +9 -0
  33. package/api/resources/commons/types/index.js +9 -0
  34. package/api/resources/conversation/client/Client.d.ts +15 -0
  35. package/api/resources/conversation/client/Client.js +15 -0
  36. package/api/resources/conversation/types/ConversationField.d.ts +22 -1
  37. package/api/resources/conversation/types/ConversationField.js +22 -1
  38. package/api/resources/conversation/types/ConversationFilter.d.ts +18 -0
  39. package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
  40. package/api/resources/conversation/types/ConversationsSearchRequest.d.ts +2 -2
  41. package/api/resources/conversation/types/index.d.ts +0 -3
  42. package/api/resources/conversation/types/index.js +0 -3
  43. package/api/resources/events/client/Client.d.ts +1 -1
  44. package/api/resources/events/client/Client.js +1 -1
  45. package/api/resources/inbox/types/InboxFilter.d.ts +11 -0
  46. package/api/resources/intelligentFields/client/Client.d.ts +10 -2
  47. package/api/resources/intelligentFields/client/Client.js +10 -2
  48. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +3 -3
  49. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +2 -2
  50. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +9 -1
  51. package/api/resources/segments/client/Client.js +1 -3
  52. package/api/resources/segments/client/requests/SegmentDeleteRequest.d.ts +0 -12
  53. package/api/resources/segments/types/SegmentPatchRequest.d.ts +0 -8
  54. package/api/resources/segments/types/SegmentRequest.d.ts +0 -8
  55. package/api/resources/triggers/client/Client.d.ts +5 -9
  56. package/api/resources/triggers/client/Client.js +21 -14
  57. package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +5 -4
  58. package/api/resources/triggers/types/EventTriggerBase.d.ts +8 -0
  59. package/api/resources/triggers/types/index.d.ts +0 -1
  60. package/api/resources/triggers/types/index.js +0 -1
  61. package/api/resources/users/types/AgentUser.d.ts +2 -0
  62. package/api/resources/users/types/AgentUserFilter.d.ts +3 -0
  63. package/package.json +1 -1
  64. package/reference.md +30 -9
  65. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +2 -0
  66. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +2 -0
  67. package/serialization/resources/charters/types/CharterBase.d.ts +2 -0
  68. package/serialization/resources/charters/types/CharterBase.js +2 -0
  69. package/serialization/resources/charters/types/CharterRequest.d.ts +0 -2
  70. package/serialization/resources/charters/types/CharterRequest.js +0 -2
  71. package/serialization/resources/charters/types/CharterSearchFilter.d.ts +2 -0
  72. package/serialization/resources/charters/types/CharterSearchFilter.js +2 -0
  73. package/serialization/resources/commons/types/AdditionalDataKey.d.ts +7 -0
  74. package/serialization/resources/commons/types/AdditionalDataKey.js +57 -0
  75. package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
  76. package/serialization/resources/commons/types/ErrorReason.js +1 -0
  77. package/serialization/resources/commons/types/EventCondition.d.ts +26 -0
  78. package/serialization/resources/commons/types/EventCondition.js +55 -0
  79. package/serialization/resources/commons/types/EventConditionGroup.d.ts +11 -0
  80. package/serialization/resources/commons/types/EventConditionGroup.js +44 -0
  81. package/serialization/resources/commons/types/EventReferencesCondition.d.ts +12 -0
  82. package/serialization/resources/commons/types/EventReferencesCondition.js +44 -0
  83. package/serialization/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.d.ts +1 -1
  84. package/serialization/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.js +1 -1
  85. package/serialization/resources/commons/types/SimulationContext.d.ts +2 -0
  86. package/serialization/resources/commons/types/SimulationContext.js +2 -0
  87. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  88. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  89. package/serialization/resources/commons/types/SystemEventNameCondition.d.ts +12 -0
  90. package/serialization/resources/commons/types/SystemEventNameCondition.js +44 -0
  91. package/serialization/resources/commons/types/UserEventNameCondition.d.ts +12 -0
  92. package/serialization/resources/commons/types/UserEventNameCondition.js +44 -0
  93. package/serialization/resources/commons/types/index.d.ts +9 -0
  94. package/serialization/resources/commons/types/index.js +9 -0
  95. package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  96. package/serialization/resources/conversation/types/ConversationField.js +2 -0
  97. package/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -1
  98. package/serialization/resources/conversation/types/ConversationFilter.js +3 -1
  99. package/serialization/resources/conversation/types/index.d.ts +0 -3
  100. package/serialization/resources/conversation/types/index.js +0 -3
  101. package/serialization/resources/inbox/types/InboxFilter.d.ts +2 -0
  102. package/serialization/resources/inbox/types/InboxFilter.js +2 -0
  103. package/serialization/resources/index.d.ts +1 -0
  104. package/serialization/resources/index.js +1 -0
  105. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +2 -2
  106. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +2 -2
  107. package/serialization/resources/segments/types/SegmentPatchRequest.d.ts +0 -2
  108. package/serialization/resources/segments/types/SegmentPatchRequest.js +0 -2
  109. package/serialization/resources/segments/types/SegmentRequest.d.ts +0 -2
  110. package/serialization/resources/segments/types/SegmentRequest.js +0 -2
  111. package/serialization/resources/triggers/client/index.d.ts +1 -0
  112. package/serialization/resources/triggers/client/index.js +17 -0
  113. package/serialization/resources/triggers/client/requests/PartialUpdateRequest.d.ts +10 -0
  114. package/serialization/resources/triggers/{types/TriggerPartialUpdate.js → client/requests/PartialUpdateRequest.js} +5 -3
  115. package/serialization/resources/triggers/client/requests/index.d.ts +1 -0
  116. package/serialization/resources/triggers/client/requests/index.js +5 -0
  117. package/serialization/resources/triggers/index.d.ts +1 -0
  118. package/serialization/resources/triggers/index.js +1 -0
  119. package/serialization/resources/triggers/types/EventTriggerBase.d.ts +2 -1
  120. package/serialization/resources/triggers/types/EventTriggerBase.js +2 -0
  121. package/serialization/resources/triggers/types/index.d.ts +0 -1
  122. package/serialization/resources/triggers/types/index.js +0 -1
  123. package/serialization/resources/users/types/AgentUser.d.ts +2 -0
  124. package/serialization/resources/users/types/AgentUser.js +2 -0
  125. package/serialization/resources/users/types/AgentUserFilter.d.ts +2 -0
  126. package/serialization/resources/users/types/AgentUserFilter.js +2 -0
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
  129. package/api/resources/triggers/types/TriggerPartialUpdate.d.ts +0 -4
  130. package/serialization/resources/triggers/types/TriggerPartialUpdate.d.ts +0 -9
  131. /package/api/resources/{conversation/types/IntelligentFieldFilter.js → commons/types/EventCondition.js} +0 -0
  132. /package/api/resources/{conversation/types/IntelligentFieldSearchCondition.js → commons/types/EventConditionGroup.js} +0 -0
  133. /package/api/resources/{triggers/types/TriggerPartialUpdate.js → commons/types/EventReferencesCondition.js} +0 -0
  134. /package/api/resources/{conversation → commons}/types/IntelligentFieldOperator.d.ts +0 -0
  135. /package/api/resources/{conversation → commons}/types/IntelligentFieldOperator.js +0 -0
  136. /package/api/resources/{conversation → commons}/types/IntelligentFieldSearchCondition.d.ts +0 -0
  137. /package/serialization/resources/{conversation → commons}/types/IntelligentFieldFilter.d.ts +0 -0
  138. /package/serialization/resources/{conversation → commons}/types/IntelligentFieldFilter.js +0 -0
  139. /package/serialization/resources/{conversation → commons}/types/IntelligentFieldOperator.d.ts +0 -0
  140. /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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.62",
3
+ "version": "1.2.63",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
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. `definition` is limited to 5,000 characters.
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 to INACTIVE status.
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
- Deprecated. Use `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status`, which
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
- Updates an event trigger. Only the enabled field is editable.
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
  }
@@ -46,4 +46,5 @@ exports.ErrorReason = core.serialization.forwardCompatibleEnum_([
46
46
  "CANNOT_ARCHIVE_LIVE_VARIANT",
47
47
  "VARIANT_HAS_STAGED_EDITS",
48
48
  "VARIANT_REQUIRED",
49
+ "INTELLIGENT_FIELD_TYPE_CHANGED",
49
50
  ]);
@@ -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
+ });
@@ -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 "../../commons/types/EntityIdFilter";
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 {
@@ -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("../../commons/types/EntityIdFilter");
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
  }
@@ -48,5 +48,6 @@ exports.SystemEventName = core.serialization.forwardCompatibleEnum_([
48
48
  "SYNC_STARTED",
49
49
  "SYNC_COMPLETED",
50
50
  "SYNC_FAILED",
51
+ "CONVERSATION_CLOSED",
51
52
  "INTELLIGENT_FIELD_VALUE_CHANGED",
52
53
  ]);
@@ -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
+ }