mavenagi 1.2.59 → 1.2.60

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 (49) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +2 -3
  3. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +7 -3
  4. package/api/resources/agents/types/AgentPrompting.d.ts +7 -3
  5. package/api/resources/analytics/client/Client.d.ts +7 -1
  6. package/api/resources/analytics/client/Client.js +7 -1
  7. package/api/resources/charters/types/CharterSummary.d.ts +7 -2
  8. package/api/resources/commons/types/ActionProperties.d.ts +5 -1
  9. package/api/resources/commons/types/ActionResponse.d.ts +3 -3
  10. package/api/resources/commons/types/EventFilter.d.ts +5 -0
  11. package/api/resources/commons/types/EventTriggerType.d.ts +2 -0
  12. package/api/resources/commons/types/EventTriggerType.js +2 -0
  13. package/api/resources/commons/types/KnowledgeContextByEntities.d.ts +11 -0
  14. package/api/resources/commons/types/KnowledgeContextByEntityTypes.d.ts +3 -0
  15. package/api/resources/commons/types/KnowledgeContextFilter.d.ts +6 -1
  16. package/api/resources/commons/types/LlmPersona.d.ts +1 -0
  17. package/api/resources/commons/types/LlmPersona.js +1 -0
  18. package/api/resources/commons/types/NovelUserEvent.d.ts +4 -1
  19. package/api/resources/commons/types/ResponseConfig.d.ts +9 -3
  20. package/api/resources/commons/types/SimulationContext.d.ts +3 -3
  21. package/api/resources/commons/types/SystemEventName.d.ts +24 -0
  22. package/api/resources/commons/types/SystemEventName.js +24 -0
  23. package/api/resources/commons/types/UserEvent.d.ts +4 -1
  24. package/api/resources/commons/types/UserEventName.d.ts +84 -0
  25. package/api/resources/commons/types/UserEventName.js +84 -0
  26. package/api/resources/commons/types/UserMessage.d.ts +7 -0
  27. package/api/resources/conversation/client/Client.d.ts +3 -1
  28. package/api/resources/conversation/client/Client.js +3 -1
  29. package/api/resources/conversation/types/ConversationFilter.d.ts +4 -3
  30. package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +18 -10
  31. package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +6 -1
  32. package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +5 -1
  33. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +10 -6
  34. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +14 -1
  35. package/api/resources/segments/client/Client.d.ts +10 -0
  36. package/api/resources/segments/client/Client.js +10 -0
  37. package/api/resources/triggers/types/EventTriggerBase.d.ts +3 -1
  38. package/package.json +1 -1
  39. package/reference.md +8 -2
  40. package/serialization/resources/charters/types/CharterSummary.d.ts +2 -1
  41. package/serialization/resources/charters/types/CharterSummary.js +2 -0
  42. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  43. package/serialization/resources/commons/types/SystemEventName.js +13 -1
  44. package/serialization/resources/commons/types/UserEventName.d.ts +1 -1
  45. package/serialization/resources/commons/types/UserEventName.js +28 -0
  46. package/serialization/resources/commons/types/UserMessage.d.ts +1 -0
  47. package/serialization/resources/commons/types/UserMessage.js +1 -0
  48. package/version.d.ts +1 -1
  49. package/version.js +1 -1
package/BaseClient.js CHANGED
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "mavenagi",
46
- "X-Fern-SDK-Version": "1.2.59",
47
- "User-Agent": "mavenagi/1.2.59",
46
+ "X-Fern-SDK-Version": "1.2.60",
47
+ "User-Agent": "mavenagi/1.2.60",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
@@ -21,11 +21,10 @@ export interface ActionPatchRequest {
21
21
  /** Determines whether the action is sent to the LLM as part of a conversation. */
22
22
  llmInclusionStatus?: MavenAGI.LlmInclusionStatus;
23
23
  /**
24
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
25
+ *
24
26
  * The ID of the segment that must be matched for the action to be relevant to a conversation.
25
27
  * A null value will remove the segment from the action, it will be available on all conversations.
26
- *
27
- * Segments are replacing inline preconditions - an action may not have both an inline precondition and a segment.
28
- * Inline precondition support will be removed in a future release.
29
28
  */
30
29
  segmentId?: MavenAGI.EntityId | null;
31
30
  /**
@@ -14,14 +14,18 @@ export interface AgentPatchRequest {
14
14
  enabledPiiCategories?: Set<MavenAGI.PiiCategory>;
15
15
  /** The system fallback message. */
16
16
  systemFallbackMessage?: string | null;
17
- /** The overall persona of the agent. */
17
+ /** Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters. */
18
18
  persona?: MavenAGI.LlmPersona;
19
- /** Additional text directly appended to the prompt. */
19
+ /** Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters. */
20
20
  additionalPromptText?: string | null;
21
21
  /** LLM prompt for category generation. */
22
22
  categoryGenerationPromptText?: string | null;
23
23
  /** LLM prompt for generating a response when the user's question has been detected as unsafe. */
24
24
  contentSafetyViolationResponsePromptText?: string | null;
25
- /** Return the system fallback message on all questions that have no relevant knowledge bases or actions. */
25
+ /**
26
+ * Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters.
27
+ *
28
+ * Return the system fallback message on all questions that have no relevant knowledge bases or actions.
29
+ */
26
30
  rejectQuestionsWithoutKnowledge?: boolean;
27
31
  }
@@ -1,8 +1,8 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface AgentPrompting {
3
- /** The overall persona of the agent. */
3
+ /** Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters. */
4
4
  persona: MavenAGI.LlmPersona;
5
- /** Additional text directly appended to the prompt. This field is replaced by Knowledge Documents with `llmInclusionsStatus` set to `ALWAYS`. */
5
+ /** Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters. */
6
6
  additionalPromptText?: string;
7
7
  /**
8
8
  * LLM prompt for category generation.
@@ -18,6 +18,10 @@ export interface AgentPrompting {
18
18
  * When not set, the system fallback message will be used and replies will not be personalized by the LLM as it will not be involved.
19
19
  */
20
20
  contentSafetyViolationResponsePromptText?: string;
21
- /** Return the system fallback message on all questions that have no relevant knowledge bases or actions. */
21
+ /**
22
+ * Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters.
23
+ *
24
+ * Return the system fallback message on all questions that have no relevant knowledge bases or actions.
25
+ */
22
26
  rejectQuestionsWithoutKnowledge: boolean;
23
27
  }
@@ -128,7 +128,13 @@ export declare class AnalyticsClient {
128
128
  exportConversationTable(request: MavenAGI.ConversationTableRequest, requestOptions?: AnalyticsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
129
129
  private __exportConversationTable;
130
130
  /**
131
- * Retrieves structured feedback data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
131
+ * @deprecated
132
+ *
133
+ * Deprecated. Use `getEventTable` instead, which reports the same thumbs up/down and insert
134
+ * activity as user events.
135
+ *
136
+ * Retrieves structured feedback data formatted as a table, allowing users to group, filter,
137
+ * and define specific metrics to display as columns.
132
138
  *
133
139
  * @param {MavenAGI.FeedbackTableRequest} request
134
140
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -413,7 +413,13 @@ class AnalyticsClient {
413
413
  });
414
414
  }
415
415
  /**
416
- * Retrieves structured feedback data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
416
+ * @deprecated
417
+ *
418
+ * Deprecated. Use `getEventTable` instead, which reports the same thumbs up/down and insert
419
+ * activity as user events.
420
+ *
421
+ * Retrieves structured feedback data formatted as a table, allowing users to group, filter,
422
+ * and define specific metrics to display as columns.
417
423
  *
418
424
  * @param {MavenAGI.FeedbackTableRequest} request
419
425
  * @param {AnalyticsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -9,10 +9,15 @@ export interface CharterSummary {
9
9
  /** The display name of the charter. */
10
10
  name: string;
11
11
  /**
12
- * The segment controlling when this charter applies. Null means wildcard
13
- * (always matches).
12
+ * The segment backing this charter's rule. An implementation detail of `precondition`;
13
+ * read that instead.
14
14
  */
15
15
  segmentSummary: MavenAGI.SegmentSummary | null;
16
+ /**
17
+ * The rule controlling when this charter applies, read from the charter's backing
18
+ * segment. Null means wildcard (always matches).
19
+ */
20
+ precondition: MavenAGI.PreconditionResponse | null;
16
21
  /** The ID of the parent charter. Null for root-level charters. */
17
22
  parentCharterId: MavenAGI.EntityId | null;
18
23
  /** The lifecycle status of this charter. */
@@ -4,7 +4,11 @@ export interface ActionProperties {
4
4
  userInteractionRequired: boolean;
5
5
  /** When user interaction is required, the name of the button that is shown to the end user to confirm execution of the action. Defaults to "Submit" if not supplied. */
6
6
  buttonName?: string;
7
- /** The preconditions that must be met for an action to be relevant to a conversation. Can be used to restrict actions to certain types of users. */
7
+ /**
8
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
9
+ *
10
+ * The preconditions that must be met for an action to be relevant to a conversation.
11
+ */
8
12
  precondition?: MavenAGI.Precondition;
9
13
  /** The parameters that the action uses as input. An action will only be executed when all of the required parameters are provided. During execution, actions all have access to the full Conversation and User objects. Parameter values may be inferred from the user's conversation by the LLM. */
10
14
  userFormParameters: MavenAGI.ActionParameter[];
@@ -54,9 +54,9 @@ export interface ActionResponse extends MavenAGI.ActionBase {
54
54
  */
55
55
  llmInclusionStatus: MavenAGI.LlmInclusionStatus;
56
56
  /**
57
- * The IDs of the segment that must be matched for the action to be relevant to a conversation.
58
- * Segments are replacing inline preconditions - an Action may not have both an inline precondition and a segment.
59
- * Inline precondition support will be removed in a future release.
57
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
58
+ *
59
+ * The ID of the segment that must be matched for the action to be relevant to a conversation.
60
60
  */
61
61
  segmentId?: MavenAGI.EntityId;
62
62
  /** No longer populated. This field is always absent and will be removed in a future release. */
@@ -8,6 +8,11 @@ export interface EventFilter {
8
8
  userEventNames?: MavenAGI.UserEventName[];
9
9
  systemEventNames?: MavenAGI.SystemEventName[];
10
10
  agentUserIds?: string[];
11
+ /**
12
+ * Narrow to the events that carry a rating. `ThumbsUp` and `ThumbsDown` match `BUTTON_CLICKED`
13
+ * events by their `feedbackInfo.thumbUp` value, and `Insert` matches `TEXT_INSERTED` events.
14
+ * `Handoff` is no longer supported.
15
+ */
11
16
  legacyFeedbackTypes?: MavenAGI.FeedbackType[];
12
17
  hasEventText?: boolean;
13
18
  }
@@ -1,5 +1,7 @@
1
1
  export declare const EventTriggerType: {
2
2
  readonly ConversationCreated: "CONVERSATION_CREATED";
3
+ /**
4
+ * Deprecated. Use `EVENT_CREATED` instead. */
3
5
  readonly FeedbackCreated: "FEEDBACK_CREATED";
4
6
  readonly InboxItemCreated: "INBOX_ITEM_CREATED";
5
7
  readonly EventCreated: "EVENT_CREATED";
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.EventTriggerType = void 0;
5
5
  exports.EventTriggerType = {
6
6
  ConversationCreated: "CONVERSATION_CREATED",
7
+ /**
8
+ * Deprecated. Use `EVENT_CREATED` instead. */
7
9
  FeedbackCreated: "FEEDBACK_CREATED",
8
10
  InboxItemCreated: "INBOX_ITEM_CREATED",
9
11
  EventCreated: "EVENT_CREATED",
@@ -1,4 +1,15 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface KnowledgeContextByEntities {
3
+ /**
4
+ * The entities whose documents should be retrievable, in addition to the agent's own
5
+ * knowledge. Each `entityId` must be fully specified and must belong to the organization
6
+ * and agent the request is made against; one that does not is rejected. Entities are never
7
+ * silently dropped, which would omit exactly the documents the caller asked to bring into
8
+ * scope.
9
+ *
10
+ * `AGENT` and `FEEDBACK` are rejected: neither has an internal form to resolve to, and
11
+ * `AGENT` in particular is redundant here because the agent's own knowledge is always in
12
+ * scope. Every other `EntityType` is accepted.
13
+ */
3
14
  entities: MavenAGI.ScopedEntity[];
4
15
  }
@@ -1,4 +1,7 @@
1
1
  import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Not yet supported - see the `byEntityTypes` variant of `KnowledgeContextFilter`.
4
+ */
2
5
  export interface KnowledgeContextByEntityTypes {
3
6
  entityTypes: Set<MavenAGI.EntityType>;
4
7
  }
@@ -1,5 +1,10 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export type KnowledgeContextFilter = MavenAGI.KnowledgeContextFilter.ByEntities | MavenAGI.KnowledgeContextFilter.ByEntityTypes;
2
+ export type KnowledgeContextFilter = MavenAGI.KnowledgeContextFilter.ByEntities
3
+ /**
4
+ * Not yet supported. This variant is accepted but has no effect on retrieval - a
5
+ * conversation supplying it behaves as though no `contextFilter` were provided at all.
6
+ * Use `byEntities` to scope retrieval today. */
7
+ | MavenAGI.KnowledgeContextFilter.ByEntityTypes;
3
8
  export declare namespace KnowledgeContextFilter {
4
9
  interface ByEntities extends MavenAGI.KnowledgeContextByEntities {
5
10
  scopeType: "byEntities";
@@ -1,3 +1,4 @@
1
+ /** Deprecated. Superseded by charters, which determine agent behavior per turn. */
1
2
  export declare const LlmPersona: {
2
3
  readonly CasualBuddy: "CASUAL_BUDDY";
3
4
  readonly EmpatheticSupporter: "EMPATHETIC_SUPPORTER";
@@ -2,6 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.LlmPersona = void 0;
5
+ /** Deprecated. Superseded by charters, which determine agent behavior per turn. */
5
6
  exports.LlmPersona = {
6
7
  CasualBuddy: "CASUAL_BUDDY",
7
8
  EmpatheticSupporter: "EMPATHETIC_SUPPORTER",
@@ -8,7 +8,10 @@ export interface NovelUserEvent extends MavenAGI.EventBaseNoId {
8
8
  userInfo: MavenAGI.EventUserInfoBase;
9
9
  /** Information about any CSAT associated with the event */
10
10
  csatInfo?: MavenAGI.CsatInfo;
11
- /** Information about any feedback associated with the event */
11
+ /**
12
+ * Any rating carried by the event. A `BUTTON_CLICKED` thumbs up or down sets a single entry
13
+ * with `thumbUp` true or false.
14
+ */
12
15
  feedbackInfo?: MavenAGI.FeedbackInfo[];
13
16
  /** Information about the page on which the event occurred */
14
17
  pageInfo?: MavenAGI.PageInfo;
@@ -16,9 +16,15 @@ export interface ResponseConfig {
16
16
  /** The desired response length. Defaults to ResponseLength.MEDIUM. */
17
17
  responseLength: MavenAGI.ResponseLength;
18
18
  /**
19
- * Filters that restrict the knowledge retrieval candidate pool.
20
- * - entities: specific entities to scope by
21
- * - entityTypes: entity types to scope by (e.g., AGENT, CUSTOMER)
19
+ * Widens the knowledge retrieval candidate pool to include documents scoped to the given
20
+ * entities, in addition to the agent's own knowledge.
21
+ *
22
+ * Knowledge documents are scoped by setting `relevantEntities` on the document. A document
23
+ * with no `relevantEntities` belongs to the agent and is always a retrieval candidate;
24
+ * naming entities here additionally makes documents scoped to those entities retrievable.
25
+ * Omitting this field restricts retrieval to the agent's own knowledge.
26
+ *
27
+ * Only the `byEntities` variant is supported today - see `byEntityTypes`.
22
28
  */
23
29
  contextFilter?: MavenAGI.KnowledgeContextFilter;
24
30
  }
@@ -1,12 +1,12 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface SimulationContext {
3
3
  /**
4
+ * Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters.
5
+ *
4
6
  * If provided, overrides the agent's default additional prompt text during the simulation.
5
- * Note that this field is provided for backwards compatibility and will be removed in a future release.
6
- * Instead please use the `availableKnowledgeBases` field to include a knowledge base with a document `llmInclusionStatus` set to `ALWAYS`.
7
7
  */
8
8
  additionalPromptText?: string;
9
- /** The persona to use during the simulation. If not provided, the agent's default persona will be used. */
9
+ /** Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters. */
10
10
  persona?: MavenAGI.LlmPersona;
11
11
  /** If provided, knowledge search will be restricted to the provided list of knowledge bases. Otherwise, all active knowledge bases will be used. An empty list means no knowledge bases will be used. */
12
12
  availableKnowledgeBases?: MavenAGI.EntityId[];
@@ -8,5 +8,29 @@ export declare const SystemEventName: {
8
8
  /**
9
9
  * An app was updated */
10
10
  readonly AppUpdated: "APP_UPDATED";
11
+ /**
12
+ * An outbound notification was sent to a user */
13
+ readonly NotificationSent: "NOTIFICATION_SENT";
14
+ /**
15
+ * An outbound notification reached the user */
16
+ readonly NotificationDelivered: "NOTIFICATION_DELIVERED";
17
+ /**
18
+ * An outbound notification could not be delivered */
19
+ readonly NotificationFailed: "NOTIFICATION_FAILED";
20
+ /**
21
+ * An external system was connected */
22
+ readonly IntegrationConnected: "INTEGRATION_CONNECTED";
23
+ /**
24
+ * An external system was disconnected */
25
+ readonly IntegrationDisconnected: "INTEGRATION_DISCONNECTED";
26
+ /**
27
+ * A data sync with an external system began */
28
+ readonly SyncStarted: "SYNC_STARTED";
29
+ /**
30
+ * A data sync with an external system finished */
31
+ readonly SyncCompleted: "SYNC_COMPLETED";
32
+ /**
33
+ * A data sync with an external system failed */
34
+ readonly SyncFailed: "SYNC_FAILED";
11
35
  };
12
36
  export type SystemEventName = (typeof SystemEventName)[keyof typeof SystemEventName] | string;
@@ -12,4 +12,28 @@ exports.SystemEventName = {
12
12
  /**
13
13
  * An app was updated */
14
14
  AppUpdated: "APP_UPDATED",
15
+ /**
16
+ * An outbound notification was sent to a user */
17
+ NotificationSent: "NOTIFICATION_SENT",
18
+ /**
19
+ * An outbound notification reached the user */
20
+ NotificationDelivered: "NOTIFICATION_DELIVERED",
21
+ /**
22
+ * An outbound notification could not be delivered */
23
+ NotificationFailed: "NOTIFICATION_FAILED",
24
+ /**
25
+ * An external system was connected */
26
+ IntegrationConnected: "INTEGRATION_CONNECTED",
27
+ /**
28
+ * An external system was disconnected */
29
+ IntegrationDisconnected: "INTEGRATION_DISCONNECTED",
30
+ /**
31
+ * A data sync with an external system began */
32
+ SyncStarted: "SYNC_STARTED",
33
+ /**
34
+ * A data sync with an external system finished */
35
+ SyncCompleted: "SYNC_COMPLETED",
36
+ /**
37
+ * A data sync with an external system failed */
38
+ SyncFailed: "SYNC_FAILED",
15
39
  };
@@ -8,7 +8,10 @@ export interface UserEvent extends MavenAGI.EventBaseNoId {
8
8
  eventName: MavenAGI.UserEventName;
9
9
  /** Information about the user who triggered the event */
10
10
  userInfo: MavenAGI.EventUserInfo;
11
- /** Information about any feedback associated with the event */
11
+ /**
12
+ * Any rating carried by the event. A `BUTTON_CLICKED` thumbs up or down sets a single entry
13
+ * with `thumbUp` true or false.
14
+ */
12
15
  feedbackInfo?: MavenAGI.FeedbackInfo[];
13
16
  /** Information about any CSAT survey associated with the event */
14
17
  csatInfo?: MavenAGI.CsatInfo;
@@ -17,5 +17,89 @@ export declare const UserEventName: {
17
17
  /**
18
18
  * A CSAT rating was submitted */
19
19
  readonly CsatSubmitted: "CSAT_SUBMITTED";
20
+ /**
21
+ * A page or screen was viewed. Record which one in `pageInfo`. */
22
+ readonly PageViewed: "PAGE_VIEWED";
23
+ /**
24
+ * A suggested or popular question was clicked instead of being typed */
25
+ readonly SuggestionClicked: "SUGGESTION_CLICKED";
26
+ /**
27
+ * The user ended the conversation */
28
+ readonly ConversationEnded: "CONVERSATION_ENDED";
29
+ /**
30
+ * The user asked to be transferred to a human agent */
31
+ readonly HandoffRequested: "HANDOFF_REQUESTED";
32
+ /**
33
+ * The user opened a support ticket or case */
34
+ readonly TicketCreated: "TICKET_CREATED";
35
+ /**
36
+ * Text from a response was copied */
37
+ readonly TextCopied: "TEXT_COPIED";
38
+ /**
39
+ * Content was translated into another language */
40
+ readonly ContentTranslated: "CONTENT_TRANSLATED";
41
+ /**
42
+ * A search query was submitted */
43
+ readonly SearchSubmitted: "SEARCH_SUBMITTED";
44
+ /**
45
+ * A search result was opened */
46
+ readonly SearchResultClicked: "SEARCH_RESULT_CLICKED";
47
+ /**
48
+ * A help article or knowledge document was read */
49
+ readonly ArticleViewed: "ARTICLE_VIEWED";
50
+ /**
51
+ * The user uploaded a file or attachment */
52
+ readonly FileUploaded: "FILE_UPLOADED";
53
+ /**
54
+ * The user downloaded a file or attachment */
55
+ readonly FileDownloaded: "FILE_DOWNLOADED";
56
+ /**
57
+ * The user began filling out a form */
58
+ readonly FormStarted: "FORM_STARTED";
59
+ /**
60
+ * A form was submitted */
61
+ readonly FormSubmitted: "FORM_SUBMITTED";
62
+ /**
63
+ * The user left a form without submitting it */
64
+ readonly FormAbandoned: "FORM_ABANDONED";
65
+ /**
66
+ * The user entered a multi-step flow, such as onboarding or checkout */
67
+ readonly FlowStarted: "FLOW_STARTED";
68
+ /**
69
+ * The user finished one step of a multi-step flow */
70
+ readonly FlowStepCompleted: "FLOW_STEP_COMPLETED";
71
+ /**
72
+ * The user finished a multi-step flow */
73
+ readonly FlowCompleted: "FLOW_COMPLETED";
74
+ /**
75
+ * The user left a multi-step flow partway through. Pair with an `EVENT_CREATED` trigger to follow up on an onboarding or checkout that was never finished. Name the flow and the step it stopped on in `contextInfo.additionalData`. */
76
+ readonly FlowAbandoned: "FLOW_ABANDONED";
77
+ /**
78
+ * The user created an account */
79
+ readonly AccountCreated: "ACCOUNT_CREATED";
80
+ /**
81
+ * The user signed in */
82
+ readonly SignedIn: "SIGNED_IN";
83
+ /**
84
+ * The user signed out */
85
+ readonly SignedOut: "SIGNED_OUT";
86
+ /**
87
+ * The user started a subscription or plan */
88
+ readonly SubscriptionStarted: "SUBSCRIPTION_STARTED";
89
+ /**
90
+ * The user cancelled a subscription or plan */
91
+ readonly SubscriptionCancelled: "SUBSCRIPTION_CANCELLED";
92
+ /**
93
+ * The user placed an order */
94
+ readonly OrderPlaced: "ORDER_PLACED";
95
+ /**
96
+ * The user cancelled an order */
97
+ readonly OrderCancelled: "ORDER_CANCELLED";
98
+ /**
99
+ * A payment the user attempted did not go through */
100
+ readonly PaymentFailed: "PAYMENT_FAILED";
101
+ /**
102
+ * The user was shown an error */
103
+ readonly ErrorDisplayed: "ERROR_DISPLAYED";
20
104
  };
21
105
  export type UserEventName = (typeof UserEventName)[keyof typeof UserEventName] | string;
@@ -21,4 +21,88 @@ exports.UserEventName = {
21
21
  /**
22
22
  * A CSAT rating was submitted */
23
23
  CsatSubmitted: "CSAT_SUBMITTED",
24
+ /**
25
+ * A page or screen was viewed. Record which one in `pageInfo`. */
26
+ PageViewed: "PAGE_VIEWED",
27
+ /**
28
+ * A suggested or popular question was clicked instead of being typed */
29
+ SuggestionClicked: "SUGGESTION_CLICKED",
30
+ /**
31
+ * The user ended the conversation */
32
+ ConversationEnded: "CONVERSATION_ENDED",
33
+ /**
34
+ * The user asked to be transferred to a human agent */
35
+ HandoffRequested: "HANDOFF_REQUESTED",
36
+ /**
37
+ * The user opened a support ticket or case */
38
+ TicketCreated: "TICKET_CREATED",
39
+ /**
40
+ * Text from a response was copied */
41
+ TextCopied: "TEXT_COPIED",
42
+ /**
43
+ * Content was translated into another language */
44
+ ContentTranslated: "CONTENT_TRANSLATED",
45
+ /**
46
+ * A search query was submitted */
47
+ SearchSubmitted: "SEARCH_SUBMITTED",
48
+ /**
49
+ * A search result was opened */
50
+ SearchResultClicked: "SEARCH_RESULT_CLICKED",
51
+ /**
52
+ * A help article or knowledge document was read */
53
+ ArticleViewed: "ARTICLE_VIEWED",
54
+ /**
55
+ * The user uploaded a file or attachment */
56
+ FileUploaded: "FILE_UPLOADED",
57
+ /**
58
+ * The user downloaded a file or attachment */
59
+ FileDownloaded: "FILE_DOWNLOADED",
60
+ /**
61
+ * The user began filling out a form */
62
+ FormStarted: "FORM_STARTED",
63
+ /**
64
+ * A form was submitted */
65
+ FormSubmitted: "FORM_SUBMITTED",
66
+ /**
67
+ * The user left a form without submitting it */
68
+ FormAbandoned: "FORM_ABANDONED",
69
+ /**
70
+ * The user entered a multi-step flow, such as onboarding or checkout */
71
+ FlowStarted: "FLOW_STARTED",
72
+ /**
73
+ * The user finished one step of a multi-step flow */
74
+ FlowStepCompleted: "FLOW_STEP_COMPLETED",
75
+ /**
76
+ * The user finished a multi-step flow */
77
+ FlowCompleted: "FLOW_COMPLETED",
78
+ /**
79
+ * The user left a multi-step flow partway through. Pair with an `EVENT_CREATED` trigger to follow up on an onboarding or checkout that was never finished. Name the flow and the step it stopped on in `contextInfo.additionalData`. */
80
+ FlowAbandoned: "FLOW_ABANDONED",
81
+ /**
82
+ * The user created an account */
83
+ AccountCreated: "ACCOUNT_CREATED",
84
+ /**
85
+ * The user signed in */
86
+ SignedIn: "SIGNED_IN",
87
+ /**
88
+ * The user signed out */
89
+ SignedOut: "SIGNED_OUT",
90
+ /**
91
+ * The user started a subscription or plan */
92
+ SubscriptionStarted: "SUBSCRIPTION_STARTED",
93
+ /**
94
+ * The user cancelled a subscription or plan */
95
+ SubscriptionCancelled: "SUBSCRIPTION_CANCELLED",
96
+ /**
97
+ * The user placed an order */
98
+ OrderPlaced: "ORDER_PLACED",
99
+ /**
100
+ * The user cancelled an order */
101
+ OrderCancelled: "ORDER_CANCELLED",
102
+ /**
103
+ * A payment the user attempted did not go through */
104
+ PaymentFailed: "PAYMENT_FAILED",
105
+ /**
106
+ * The user was shown an error */
107
+ ErrorDisplayed: "ERROR_DISPLAYED",
24
108
  };
@@ -28,4 +28,11 @@ export interface UserMessage extends MavenAGI.UserMessageBase {
28
28
  * - `LLM_DISABLED`: An answer was requested for this user message and the LLM was disabled.
29
29
  */
30
30
  responseState?: MavenAGI.UserMessageResponseState;
31
+ /**
32
+ * The timezone supplied with the creating request and used for the message's time-based
33
+ * operations, normally an IANA identifier (e.g. "America/New_York", "Europe/London").
34
+ * Absent when the request did not supply one, in which case the agent's default timezone
35
+ * applied.
36
+ */
37
+ timezone?: string;
31
38
  }
@@ -245,7 +245,9 @@ export declare class ConversationClient {
245
245
  /**
246
246
  * @deprecated
247
247
  *
248
- * Replaced by the Create events API, which records feedback as a user event.
248
+ * Deprecated. Use the Create events API instead, which records feedback as a user event:
249
+ * emit a `USER` event with an `eventName` of `BUTTON_CLICKED` for thumbs up/down or
250
+ * `TEXT_INSERTED` for inserts.
249
251
  *
250
252
  * Update feedback or create it if it doesn't exist.
251
253
  *
@@ -961,7 +961,9 @@ class ConversationClient {
961
961
  /**
962
962
  * @deprecated
963
963
  *
964
- * Replaced by the Create events API, which records feedback as a user event.
964
+ * Deprecated. Use the Create events API instead, which records feedback as a user event:
965
+ * emit a `USER` event with an `eventName` of `BUTTON_CLICKED` for thumbs up/down or
966
+ * `TEXT_INSERTED` for inserts.
965
967
  *
966
968
  * Update feedback or create it if it doesn't exist.
967
969
  *
@@ -37,9 +37,10 @@ export interface ConversationFilter {
37
37
  /** Filter by actions that returned an error when executed in the conversation */
38
38
  erroredActions?: MavenAGI.EntityIdFilter[];
39
39
  /**
40
- * Filter by feedback types received in the conversation.
41
- * This is a legacy field that maps to Events saved in the system for `ThumbsUp`, `ThumbsDown`, and `Insert`.
42
- * The `Handoff` filter will pass if any bot responses on the conversation returned the system fallback message; there are no corresponding handoff events.
40
+ * Filter by the user events recorded on the conversation. `ThumbsUp` and `ThumbsDown` match
41
+ * `BUTTON_CLICKED` events by their `feedbackInfo.thumbUp` value, and `Insert` matches
42
+ * `TEXT_INSERTED` events. `Handoff` matches bot responses that returned the system fallback
43
+ * message.
43
44
  */
44
45
  feedback?: MavenAGI.FeedbackType[];
45
46
  /** Filter by human agents who participated in the conversation */
@@ -18,26 +18,34 @@ export interface KnowledgeBasePatchRequest {
18
18
  appId?: string;
19
19
  /** The name of the knowledge base. */
20
20
  name?: string;
21
- /** The tags of the knowledge base. */
21
+ /**
22
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
23
+ *
24
+ * The tags of the knowledge base.
25
+ */
22
26
  tags?: Set<string>;
23
27
  /** Determines whether documents in the knowledge base are sent to the LLM as part of a conversation. Note that at this time knowledge bases can not be set to `ALWAYS`. */
24
28
  llmInclusionStatus?: MavenAGI.LlmInclusionStatus;
25
- /** The preconditions that must be met for a knowledge base to be relevant to a conversation. Can be used to restrict knowledge bases to certain types of users. A null value will remove the precondition from the knowledge base, it will be available on all conversations. */
29
+ /**
30
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
31
+ *
32
+ * The preconditions that must be met for a knowledge base to be relevant to a conversation.
33
+ * A null value will remove the precondition from the knowledge base, it will be available on all conversations.
34
+ */
26
35
  precondition?: MavenAGI.Precondition | null;
27
36
  /**
37
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
38
+ *
28
39
  * The ID of a segment that must be matched for the knowledge base to be relevant to a conversation.
29
40
  * A null value will remove the segment from the knowledge base, it will be available on all conversations.
30
- *
31
- * Segments are replacing inline preconditions - a knowledge base may not have both an inline precondition and a segment.
32
- * Inline precondition support will be removed in a future release.
33
41
  */
34
42
  segmentId?: MavenAGI.EntityId | null;
35
43
  /**
36
- * The IDs of segment that should be matched (under an OR clause) for the knowledge base to be relevant to a
37
- * conversation. An empty list will remove segments from the knowledge base, it will be available on all
38
- * conversations.
39
- * Segments are replacing inline preconditions - a knowledge base may not have both an inline precondition and a segment.
40
- * Inline precondition support will be removed in a future release.
44
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
45
+ *
46
+ * The IDs of segments that should be matched (under an OR clause) for the knowledge base to be relevant
47
+ * to a conversation. An empty list will remove segments from the knowledge base, it will be available on
48
+ * all conversations.
41
49
  */
42
50
  segmentIds?: MavenAGI.EntityId[];
43
51
  /** How often the knowledge base should be refreshed. */
@@ -31,6 +31,11 @@ export interface KnowledgeBaseFilter {
31
31
  llmInclusionStatus?: MavenAGI.LlmInclusionStatus;
32
32
  /** Filter knowledge bases by the segment they are assigned to. */
33
33
  segmentId?: string;
34
- /** Filter knowledge bases by the segments they are assigned to. Uses OR semantics — returns knowledge bases assigned to any of the provided segments. */
34
+ /**
35
+ * Deprecated. Segment assignment on knowledge bases is superseded by charters.
36
+ *
37
+ * Filter knowledge bases by the segments they are assigned to. Uses OR semantics — returns knowledge bases
38
+ * assigned to any of the provided segments.
39
+ */
35
40
  segmentIds?: MavenAGI.EntityId[];
36
41
  }
@@ -2,6 +2,10 @@ import type * as MavenAGI from "../../../index";
2
2
  export interface KnowledgeBaseProperties {
3
3
  /** The name of the knowledge base */
4
4
  name: string;
5
- /** The preconditions that must be met for knowledge base be relevant to a conversation. Can be used to restrict knowledge bases to certain types of users. */
5
+ /**
6
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
7
+ *
8
+ * The preconditions that must be met for a knowledge base to be relevant to a conversation.
9
+ */
6
10
  precondition?: MavenAGI.Precondition;
7
11
  }
@@ -61,22 +61,26 @@ export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties
61
61
  type: MavenAGI.KnowledgeBaseType;
62
62
  /** Metadata for the knowledge base. */
63
63
  metadata: Record<string, string>;
64
- /** The tags of the knowledge base. */
64
+ /**
65
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
66
+ *
67
+ * The tags of the knowledge base.
68
+ */
65
69
  tags: Set<string>;
66
70
  /** Determines whether documents in the knowledge base are sent to the LLM as part of a conversation. */
67
71
  llmInclusionStatus: MavenAGI.LlmInclusionStatus;
68
72
  /** How often the knowledge base should be refreshed. */
69
73
  refreshFrequency: MavenAGI.KnowledgeBaseRefreshFrequency;
70
74
  /**
71
- * The IDs of the segment that must be matched for the knowledge base to be relevant to a conversation.
72
- * Segments are replacing inline preconditions - a Knowledge Base may not have both an inline precondition and a segment.
73
- * Inline precondition support will be removed in a future release.
75
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
76
+ *
77
+ * The ID of the segment that must be matched for the knowledge base to be relevant to a conversation.
74
78
  */
75
79
  segmentId?: MavenAGI.EntityId;
76
80
  /**
81
+ * Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
82
+ *
77
83
  * The IDs of the segments that should be matched for the knowledge base to be relevant to a conversation.
78
- * Segments are replacing inline preconditions - a Knowledge Base may not have both an inline precondition and a segment.
79
- * Inline precondition support will be removed in a future release.
80
84
  */
81
85
  segmentIds: MavenAGI.EntityId[];
82
86
  /** The source URL of URL and RSS knowledge bases that was used for crawl. */
@@ -58,6 +58,19 @@ export interface KnowledgeDocumentRequest extends MavenAGI.BaseKnowledgeDocument
58
58
  createdAt?: Date;
59
59
  /** The time at which this document was last modified. */
60
60
  updatedAt?: Date;
61
- /** Scoped entities this document is associated with for context-based filtering. By default, the document is associated with the agent. */
61
+ /**
62
+ * Narrows this document to the given entities. Omit it - the default - to make the document
63
+ * part of the agent's general knowledge, retrievable on every conversation.
64
+ *
65
+ * A document narrowed to entities is only retrieved on conversations whose
66
+ * `responseConfig.contextFilter` names one of them, so it never surfaces on unrelated
67
+ * conversations. Each `entityId` must be fully specified and must belong to the
68
+ * organization and agent the request is made against; one that does not, or that names an
69
+ * entity type with no internal form, is rejected rather than dropped - dropping the last
70
+ * entity would widen the document back to the whole agent.
71
+ *
72
+ * Changing the entities on an existing document is not supported yet: re-sending a
73
+ * document with different `relevantEntities` but unchanged content is a no-op.
74
+ */
62
75
  relevantEntities?: MavenAGI.ScopedEntity[];
63
76
  }
@@ -11,6 +11,8 @@ export declare class SegmentsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<SegmentsClient.Options>;
12
12
  constructor(options: SegmentsClient.Options);
13
13
  /**
14
+ * @deprecated
15
+ *
14
16
  * @param {MavenAGI.SegmentsSearchRequest} request
15
17
  * @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
16
18
  *
@@ -26,6 +28,8 @@ export declare class SegmentsClient {
26
28
  search(request: MavenAGI.SegmentsSearchRequest, requestOptions?: SegmentsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.SegmentsSearchResponse>;
27
29
  private __search;
28
30
  /**
31
+ * @deprecated
32
+ *
29
33
  * Update a segment or create it if it doesn't exist.
30
34
  *
31
35
  * @param {MavenAGI.SegmentRequest} request
@@ -59,6 +63,8 @@ export declare class SegmentsClient {
59
63
  createOrUpdate(request: MavenAGI.SegmentRequest, requestOptions?: SegmentsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.SegmentResponse>;
60
64
  private __createOrUpdate;
61
65
  /**
66
+ * @deprecated
67
+ *
62
68
  * Get a segment by its supplied ID
63
69
  *
64
70
  * @param {string} segmentReferenceId - The reference ID of the segment to get. All other entity ID fields are inferred from the request.
@@ -77,6 +83,8 @@ export declare class SegmentsClient {
77
83
  get(segmentReferenceId: string, request?: MavenAGI.SegmentGetRequest, requestOptions?: SegmentsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.SegmentResponse>;
78
84
  private __get;
79
85
  /**
86
+ * @deprecated
87
+ *
80
88
  * Update mutable segment fields
81
89
  *
82
90
  * The `appId` field can be provided to update a segment owned by a different app.
@@ -98,6 +106,8 @@ export declare class SegmentsClient {
98
106
  patch(segmentReferenceId: string, request: MavenAGI.SegmentPatchRequest, requestOptions?: SegmentsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.SegmentResponse>;
99
107
  private __patch;
100
108
  /**
109
+ * @deprecated
110
+ *
101
111
  * Soft delete a segment. Only INACTIVE segments can be deleted.
102
112
  *
103
113
  * Deleted segments are excluded from search results but can still be retrieved by ID for archival purposes. Creating a new segment with the same referenceId as a deleted segment will overwrite the deleted segment and restore it to ACTIVE status.
@@ -57,6 +57,8 @@ class SegmentsClient {
57
57
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
58
58
  }
59
59
  /**
60
+ * @deprecated
61
+ *
60
62
  * @param {MavenAGI.SegmentsSearchRequest} request
61
63
  * @param {SegmentsClient.RequestOptions} requestOptions - Request-specific configuration.
62
64
  *
@@ -154,6 +156,8 @@ class SegmentsClient {
154
156
  });
155
157
  }
156
158
  /**
159
+ * @deprecated
160
+ *
157
161
  * Update a segment or create it if it doesn't exist.
158
162
  *
159
163
  * @param {MavenAGI.SegmentRequest} request
@@ -269,6 +273,8 @@ class SegmentsClient {
269
273
  });
270
274
  }
271
275
  /**
276
+ * @deprecated
277
+ *
272
278
  * Get a segment by its supplied ID
273
279
  *
274
280
  * @param {string} segmentReferenceId - The reference ID of the segment to get. All other entity ID fields are inferred from the request.
@@ -374,6 +380,8 @@ class SegmentsClient {
374
380
  });
375
381
  }
376
382
  /**
383
+ * @deprecated
384
+ *
377
385
  * Update mutable segment fields
378
386
  *
379
387
  * The `appId` field can be provided to update a segment owned by a different app.
@@ -477,6 +485,8 @@ class SegmentsClient {
477
485
  });
478
486
  }
479
487
  /**
488
+ * @deprecated
489
+ *
480
490
  * Soft delete a segment. Only INACTIVE segments can be deleted.
481
491
  *
482
492
  * Deleted segments are excluded from search results but can still be retrieved by ID for archival purposes. Creating a new segment with the same referenceId as a deleted segment will overwrite the deleted segment and restore it to ACTIVE status.
@@ -10,7 +10,9 @@ export interface EventTriggerBase {
10
10
  * Conversation triggers fire when a conversation is created, after each additional message, and upon deletion events.
11
11
  * There is a small delay before trigger execution to allow time for conversation analysis to complete.
12
12
  *
13
- * Feedback can not be modified, so the feedback trigger fires immediately after feedback is created.
13
+ * Events are immutable, so an event trigger fires immediately after the event is created.
14
+ *
15
+ * Inbox triggers fire when an inbox item is created or updated.
14
16
  */
15
17
  type: MavenAGI.EventTriggerType;
16
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.59",
3
+ "version": "1.2.60",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -1056,7 +1056,11 @@ await client.analytics.exportConversationTable({
1056
1056
  <dl>
1057
1057
  <dd>
1058
1058
 
1059
- Retrieves structured feedback data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
1059
+ Deprecated. Use `getEventTable` instead, which reports the same thumbs up/down and insert
1060
+ activity as user events.
1061
+
1062
+ Retrieves structured feedback data formatted as a table, allowing users to group, filter,
1063
+ and define specific metrics to display as columns.
1060
1064
  </dd>
1061
1065
  </dl>
1062
1066
  </dd>
@@ -2784,7 +2788,9 @@ await client.conversation.categorize("conversationId");
2784
2788
  <dl>
2785
2789
  <dd>
2786
2790
 
2787
- Replaced by the Create events API, which records feedback as a user event.
2791
+ Deprecated. Use the Create events API instead, which records feedback as a user event:
2792
+ emit a `USER` event with an `eventName` of `BUTTON_CLICKED` for thumbs up/down or
2793
+ `TEXT_INSERTED` for inserts.
2788
2794
 
2789
2795
  Update feedback or create it if it doesn't exist.
2790
2796
  </dd>
@@ -1,6 +1,6 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
- import type * as serializers from "../../../index";
3
+ import * as serializers from "../../../index";
4
4
  import { EntityId } from "../../commons/types/EntityId";
5
5
  import { SegmentSummary } from "../../segments/types/SegmentSummary";
6
6
  import { CharterChildrenExclusionPolicy } from "./CharterChildrenExclusionPolicy";
@@ -12,6 +12,7 @@ export declare namespace CharterSummary {
12
12
  charterId: EntityId.Raw;
13
13
  name: string;
14
14
  segmentSummary?: SegmentSummary.Raw | null;
15
+ precondition?: serializers.PreconditionResponse.Raw | null;
15
16
  parentCharterId?: EntityId.Raw | null;
16
17
  status: CharterStatus.Raw;
17
18
  type?: CharterType.Raw | null;
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.CharterSummary = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
+ const serializers = __importStar(require("../../../index"));
39
40
  const EntityId_1 = require("../../commons/types/EntityId");
40
41
  const SegmentSummary_1 = require("../../segments/types/SegmentSummary");
41
42
  const CharterChildrenExclusionPolicy_1 = require("./CharterChildrenExclusionPolicy");
@@ -45,6 +46,7 @@ exports.CharterSummary = core.serialization.object({
45
46
  charterId: EntityId_1.EntityId,
46
47
  name: core.serialization.string(),
47
48
  segmentSummary: SegmentSummary_1.SegmentSummary.nullable(),
49
+ precondition: core.serialization.lazy(() => serializers.PreconditionResponse).nullable(),
48
50
  parentCharterId: EntityId_1.EntityId.nullable(),
49
51
  status: CharterStatus_1.CharterStatus,
50
52
  type: CharterType_1.CharterType.optional(),
@@ -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";
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";
7
7
  }
@@ -36,4 +36,16 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SystemEventName = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- exports.SystemEventName = core.serialization.forwardCompatibleEnum_(["APP_INSTALLED", "APP_UNINSTALLED", "APP_UPDATED"]);
39
+ exports.SystemEventName = core.serialization.forwardCompatibleEnum_([
40
+ "APP_INSTALLED",
41
+ "APP_UNINSTALLED",
42
+ "APP_UPDATED",
43
+ "NOTIFICATION_SENT",
44
+ "NOTIFICATION_DELIVERED",
45
+ "NOTIFICATION_FAILED",
46
+ "INTEGRATION_CONNECTED",
47
+ "INTEGRATION_DISCONNECTED",
48
+ "SYNC_STARTED",
49
+ "SYNC_COMPLETED",
50
+ "SYNC_FAILED",
51
+ ]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const UserEventName: core.serialization.Schema<serializers.UserEventName.Raw, MavenAGI.UserEventName>;
5
5
  export declare namespace UserEventName {
6
- type Raw = "BUTTON_CLICKED" | "LINK_CLICKED" | "CHAT_OPENED" | "CHAT_CLOSED" | "TEXT_INSERTED" | "CSAT_SUBMITTED";
6
+ type Raw = "BUTTON_CLICKED" | "LINK_CLICKED" | "CHAT_OPENED" | "CHAT_CLOSED" | "TEXT_INSERTED" | "CSAT_SUBMITTED" | "PAGE_VIEWED" | "SUGGESTION_CLICKED" | "CONVERSATION_ENDED" | "HANDOFF_REQUESTED" | "TICKET_CREATED" | "TEXT_COPIED" | "CONTENT_TRANSLATED" | "SEARCH_SUBMITTED" | "SEARCH_RESULT_CLICKED" | "ARTICLE_VIEWED" | "FILE_UPLOADED" | "FILE_DOWNLOADED" | "FORM_STARTED" | "FORM_SUBMITTED" | "FORM_ABANDONED" | "FLOW_STARTED" | "FLOW_STEP_COMPLETED" | "FLOW_COMPLETED" | "FLOW_ABANDONED" | "ACCOUNT_CREATED" | "SIGNED_IN" | "SIGNED_OUT" | "SUBSCRIPTION_STARTED" | "SUBSCRIPTION_CANCELLED" | "ORDER_PLACED" | "ORDER_CANCELLED" | "PAYMENT_FAILED" | "ERROR_DISPLAYED";
7
7
  }
@@ -43,4 +43,32 @@ exports.UserEventName = core.serialization.forwardCompatibleEnum_([
43
43
  "CHAT_CLOSED",
44
44
  "TEXT_INSERTED",
45
45
  "CSAT_SUBMITTED",
46
+ "PAGE_VIEWED",
47
+ "SUGGESTION_CLICKED",
48
+ "CONVERSATION_ENDED",
49
+ "HANDOFF_REQUESTED",
50
+ "TICKET_CREATED",
51
+ "TEXT_COPIED",
52
+ "CONTENT_TRANSLATED",
53
+ "SEARCH_SUBMITTED",
54
+ "SEARCH_RESULT_CLICKED",
55
+ "ARTICLE_VIEWED",
56
+ "FILE_UPLOADED",
57
+ "FILE_DOWNLOADED",
58
+ "FORM_STARTED",
59
+ "FORM_SUBMITTED",
60
+ "FORM_ABANDONED",
61
+ "FLOW_STARTED",
62
+ "FLOW_STEP_COMPLETED",
63
+ "FLOW_COMPLETED",
64
+ "FLOW_ABANDONED",
65
+ "ACCOUNT_CREATED",
66
+ "SIGNED_IN",
67
+ "SIGNED_OUT",
68
+ "SUBSCRIPTION_STARTED",
69
+ "SUBSCRIPTION_CANCELLED",
70
+ "ORDER_PLACED",
71
+ "ORDER_CANCELLED",
72
+ "PAYMENT_FAILED",
73
+ "ERROR_DISPLAYED",
46
74
  ]);
@@ -16,5 +16,6 @@ export declare namespace UserMessage {
16
16
  userDisplayName?: string | null;
17
17
  status: MessageStatus.Raw;
18
18
  responseState?: UserMessageResponseState.Raw | null;
19
+ timezone?: string | null;
19
20
  }
20
21
  }
@@ -50,5 +50,6 @@ exports.UserMessage = core.serialization
50
50
  userDisplayName: core.serialization.string().optional(),
51
51
  status: MessageStatus_1.MessageStatus,
52
52
  responseState: UserMessageResponseState_1.UserMessageResponseState.optional(),
53
+ timezone: core.serialization.string().optional(),
53
54
  })
54
55
  .extend(UserMessageBase_1.UserMessageBase);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.59";
1
+ export declare const SDK_VERSION = "1.2.60";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.2.59";
4
+ exports.SDK_VERSION = "1.2.60";