mavenagi 1.2.53 → 1.2.55

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 (41) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +2 -0
  3. package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +1 -0
  4. package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +1 -0
  5. package/api/resources/commons/types/ActionResponse.d.ts +1 -1
  6. package/api/resources/commons/types/AskType.d.ts +13 -0
  7. package/api/resources/commons/types/AskType.js +16 -0
  8. package/api/resources/commons/types/BotLogicItem.d.ts +4 -1
  9. package/api/resources/commons/types/BotLogicSteeringItem.d.ts +10 -0
  10. package/api/resources/commons/types/BotLogicSteeringItem.js +3 -0
  11. package/api/resources/commons/types/EntityType.d.ts +1 -0
  12. package/api/resources/commons/types/EntityType.js +1 -0
  13. package/api/resources/commons/types/index.d.ts +2 -0
  14. package/api/resources/commons/types/index.js +2 -0
  15. package/api/resources/conversation/types/AskRequest.d.ts +37 -2
  16. package/api/resources/conversation/types/ConversationField.d.ts +3 -0
  17. package/api/resources/conversation/types/ConversationField.js +3 -0
  18. package/api/resources/conversation/types/ConversationFilter.d.ts +2 -0
  19. package/api/resources/conversation/types/NumericConversationField.d.ts +2 -0
  20. package/api/resources/conversation/types/NumericConversationField.js +2 -0
  21. package/package.json +1 -1
  22. package/serialization/resources/commons/types/AskType.d.ts +7 -0
  23. package/serialization/resources/commons/types/AskType.js +39 -0
  24. package/serialization/resources/commons/types/BotLogicItem.d.ts +5 -1
  25. package/serialization/resources/commons/types/BotLogicItem.js +2 -0
  26. package/serialization/resources/commons/types/BotLogicSteeringItem.d.ts +11 -0
  27. package/serialization/resources/commons/types/BotLogicSteeringItem.js +43 -0
  28. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  29. package/serialization/resources/commons/types/EntityType.js +1 -0
  30. package/serialization/resources/commons/types/index.d.ts +2 -0
  31. package/serialization/resources/commons/types/index.js +2 -0
  32. package/serialization/resources/conversation/types/AskRequest.d.ts +3 -1
  33. package/serialization/resources/conversation/types/AskRequest.js +3 -1
  34. package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  35. package/serialization/resources/conversation/types/ConversationField.js +3 -0
  36. package/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -0
  37. package/serialization/resources/conversation/types/ConversationFilter.js +1 -0
  38. package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
  39. package/serialization/resources/conversation/types/NumericConversationField.js +2 -0
  40. package/version.d.ts +1 -1
  41. 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.53",
47
- "User-Agent": "mavenagi/1.2.53",
46
+ "X-Fern-SDK-Version": "1.2.55",
47
+ "User-Agent": "mavenagi/1.2.55",
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,
@@ -8,6 +8,7 @@ export interface ConversationBarChartRequest extends MavenAGI.ConversationAnalyt
8
8
  * - `Sources`: Document title (e.g., "Product Documentation")
9
9
  * - `Actions`: "Action Name - App Name" (e.g., "Create Ticket - Freshdesk")
10
10
  * - `IncompleteActions`: "Action Name - App Name" (e.g., "Search Documents - Zendesk")
11
+ * - `ErroredActions`: "Action Name - App Name" (e.g., "Get Balance - Core Banking")
11
12
  * - `Users`: User identifier value (e.g., "user@example.com")
12
13
  * - `InboxItems`: Inbox item title
13
14
  * - `HumanAgents`: Human agent display name
@@ -25,6 +26,7 @@ export interface ConversationBarChartRequest extends MavenAGI.ConversationAnalyt
25
26
  * - `Sources`: Document title (e.g., "Product Documentation")
26
27
  * - `Actions`: "Action Name - App Name" (e.g., "Create Ticket - Freshdesk")
27
28
  * - `IncompleteActions`: "Action Name - App Name" (e.g., "Search Documents - Zendesk")
29
+ * - `ErroredActions`: "Action Name - App Name" (e.g., "Get Balance - Core Banking")
28
30
  * - `Users`: User identifier value (e.g., "user@example.com")
29
31
  * - `InboxItems`: Inbox item title
30
32
  * - `HumanAgents`: Human agent display name
@@ -9,6 +9,7 @@ export interface ConversationDateHistogramRequest extends MavenAGI.ConversationA
9
9
  * - `Sources`: Document title (e.g., "Product Documentation")
10
10
  * - `Actions`: "Action Name - App Name" (e.g., "Create Ticket - Freshdesk")
11
11
  * - `IncompleteActions`: "Action Name - App Name" (e.g., "Search Documents - Zendesk")
12
+ * - `ErroredActions`: "Action Name - App Name" (e.g., "Get Balance - Core Banking")
12
13
  * - `Users`: User identifier value (e.g., "user@example.com")
13
14
  * - `InboxItems`: Inbox item title
14
15
  * - `HumanAgents`: Human agent display name
@@ -7,6 +7,7 @@ export interface ConversationPieChartRequest extends MavenAGI.ConversationAnalyt
7
7
  * - `Sources`: Document title (e.g., "Product Documentation")
8
8
  * - `Actions`: "Action Name - App Name" (e.g., "Create Ticket - Freshdesk")
9
9
  * - `IncompleteActions`: "Action Name - App Name" (e.g., "Search Documents - Zendesk")
10
+ * - `ErroredActions`: "Action Name - App Name" (e.g., "Get Balance - Core Banking")
10
11
  * - `Users`: User identifier value (e.g., "user@example.com")
11
12
  * - `InboxItems`: Inbox item title
12
13
  * - `HumanAgents`: Human agent display name
@@ -59,7 +59,7 @@ export interface ActionResponse extends MavenAGI.ActionBase {
59
59
  * Inline precondition support will be removed in a future release.
60
60
  */
61
61
  segmentId?: MavenAGI.EntityId;
62
- /** A human-readable explanation of the precondition associated with this action, if present. */
62
+ /** No longer populated. This field is always absent and will be removed in a future release. */
63
63
  preconditionExplanation?: string;
64
64
  /** Whether the action has been deleted. Deleted actions will not sent to the LLM nor returned in search results. */
65
65
  deleted: boolean;
@@ -0,0 +1,13 @@
1
+ /** What prompts the assistant turn produced by an ask. Defaults to USER_MESSAGE when omitted. */
2
+ export declare const AskType: {
3
+ /**
4
+ * The default. Respond to a message the user sent; the user's words are in `text` (required). */
5
+ readonly UserMessage: "USER_MESSAGE";
6
+ /**
7
+ * The agent opens the conversation with its own greeting, with no user input. `text` is optional here; when provided it steers the greeting. Intended as the first turn of a conversation. */
8
+ readonly Welcome: "WELCOME";
9
+ /**
10
+ * The agent proactively sends a message the user did not prompt. `text` is optional here; when provided it steers what the agent says (e.g. "tell the user to restart their machine") and is a directive to the agent, not the user's own words. */
11
+ readonly Proactive: "PROACTIVE";
12
+ };
13
+ export type AskType = (typeof AskType)[keyof typeof AskType] | string;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AskType = void 0;
5
+ /** What prompts the assistant turn produced by an ask. Defaults to USER_MESSAGE when omitted. */
6
+ exports.AskType = {
7
+ /**
8
+ * The default. Respond to a message the user sent; the user's words are in `text` (required). */
9
+ UserMessage: "USER_MESSAGE",
10
+ /**
11
+ * The agent opens the conversation with its own greeting, with no user input. `text` is optional here; when provided it steers the greeting. Intended as the first turn of a conversation. */
12
+ Welcome: "WELCOME",
13
+ /**
14
+ * The agent proactively sends a message the user did not prompt. `text` is optional here; when provided it steers what the agent says (e.g. "tell the user to restart their machine") and is a directive to the agent, not the user's own words. */
15
+ Proactive: "PROACTIVE",
16
+ };
@@ -1,5 +1,5 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export type BotLogicItem = MavenAGI.BotLogicItem.Knowledge | MavenAGI.BotLogicItem.Actions | MavenAGI.BotLogicItem.Form | MavenAGI.BotLogicItem.Safety | MavenAGI.BotLogicItem.User | MavenAGI.BotLogicItem.Segments | MavenAGI.BotLogicItem.IntelligentFields | MavenAGI.BotLogicItem.Charters;
2
+ export type BotLogicItem = MavenAGI.BotLogicItem.Knowledge | MavenAGI.BotLogicItem.Actions | MavenAGI.BotLogicItem.Form | MavenAGI.BotLogicItem.Safety | MavenAGI.BotLogicItem.User | MavenAGI.BotLogicItem.Segments | MavenAGI.BotLogicItem.IntelligentFields | MavenAGI.BotLogicItem.Charters | MavenAGI.BotLogicItem.Steering;
3
3
  export declare namespace BotLogicItem {
4
4
  interface Knowledge extends MavenAGI.BotLogicKnowledgeItem {
5
5
  type: "knowledge";
@@ -25,4 +25,7 @@ export declare namespace BotLogicItem {
25
25
  interface Charters extends MavenAGI.BotLogicChartersItem {
26
26
  type: "charters";
27
27
  }
28
+ interface Steering extends MavenAGI.BotLogicSteeringItem {
29
+ type: "steering";
30
+ }
28
31
  }
@@ -0,0 +1,10 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Present when this response was triggered by a steering ask (WELCOME or PROACTIVE) rather than a user message. The steering message itself is not returned in the conversation.
4
+ */
5
+ export interface BotLogicSteeringItem {
6
+ /** The ask type that triggered this response. */
7
+ askType: MavenAGI.AskType;
8
+ /** The steering text the agent was given, if any. */
9
+ text?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,5 +21,6 @@ export declare const EntityType: {
21
21
  readonly AgentVariant: "AGENT_VARIANT";
22
22
  readonly ConfigSnapshot: "CONFIG_SNAPSHOT";
23
23
  readonly Asset: "ASSET";
24
+ readonly TrafficConfig: "TRAFFIC_CONFIG";
24
25
  };
25
26
  export type EntityType = (typeof EntityType)[keyof typeof EntityType] | string;
@@ -25,4 +25,5 @@ exports.EntityType = {
25
25
  AgentVariant: "AGENT_VARIANT",
26
26
  ConfigSnapshot: "CONFIG_SNAPSHOT",
27
27
  Asset: "ASSET",
28
+ TrafficConfig: "TRAFFIC_CONFIG",
28
29
  };
@@ -15,6 +15,7 @@ export * from "./AppUserIdentifyingPropertyType";
15
15
  export * from "./AppUserRequest";
16
16
  export * from "./AppUserResponse";
17
17
  export * from "./ArraySettingsSchemaEntry";
18
+ export * from "./AskType";
18
19
  export * from "./AttachmentRequest";
19
20
  export * from "./AttachmentResponse";
20
21
  export * from "./AttachmentStatus";
@@ -41,6 +42,7 @@ export * from "./BotLogicKnowledgeDetail";
41
42
  export * from "./BotLogicKnowledgeItem";
42
43
  export * from "./BotLogicSafetyItem";
43
44
  export * from "./BotLogicSegmentsItem";
45
+ export * from "./BotLogicSteeringItem";
44
46
  export * from "./BotLogicUserItem";
45
47
  export * from "./BotMessage";
46
48
  export * from "./BotOAuthButtonResponse";
@@ -31,6 +31,7 @@ __exportStar(require("./AppUserIdentifyingPropertyType"), exports);
31
31
  __exportStar(require("./AppUserRequest"), exports);
32
32
  __exportStar(require("./AppUserResponse"), exports);
33
33
  __exportStar(require("./ArraySettingsSchemaEntry"), exports);
34
+ __exportStar(require("./AskType"), exports);
34
35
  __exportStar(require("./AttachmentRequest"), exports);
35
36
  __exportStar(require("./AttachmentResponse"), exports);
36
37
  __exportStar(require("./AttachmentStatus"), exports);
@@ -57,6 +58,7 @@ __exportStar(require("./BotLogicKnowledgeDetail"), exports);
57
58
  __exportStar(require("./BotLogicKnowledgeItem"), exports);
58
59
  __exportStar(require("./BotLogicSafetyItem"), exports);
59
60
  __exportStar(require("./BotLogicSegmentsItem"), exports);
61
+ __exportStar(require("./BotLogicSteeringItem"), exports);
60
62
  __exportStar(require("./BotLogicUserItem"), exports);
61
63
  __exportStar(require("./BotMessage"), exports);
62
64
  __exportStar(require("./BotOAuthButtonResponse"), exports);
@@ -19,14 +19,49 @@ import type * as MavenAGI from "../../../index";
19
19
  * },
20
20
  * timezone: "America/New_York"
21
21
  * }
22
+ *
23
+ * @example
24
+ * {
25
+ * conversationMessageId: {
26
+ * referenceId: "message-0"
27
+ * },
28
+ * userId: {
29
+ * referenceId: "user-0"
30
+ * },
31
+ * type: MavenAGI.AskType.Welcome
32
+ * }
33
+ *
34
+ * @example
35
+ * {
36
+ * conversationMessageId: {
37
+ * referenceId: "message-0"
38
+ * },
39
+ * userId: {
40
+ * referenceId: "user-0"
41
+ * },
42
+ * type: MavenAGI.AskType.Proactive,
43
+ * text: "Inform the user that they should restart their machine."
44
+ * }
22
45
  */
23
46
  export interface AskRequest {
24
47
  /** Externally supplied ID to uniquely identify this message within the conversation. If a message with this ID already exists it will be reused and will not be updated. */
25
48
  conversationMessageId: MavenAGI.EntityIdBase;
26
49
  /** Externally supplied ID to uniquely identify the user that created this message */
27
50
  userId: MavenAGI.EntityIdBase;
28
- /** The text of the message */
29
- text: string;
51
+ /**
52
+ * What prompts this assistant turn. Omit (or send USER_MESSAGE) for a normal user
53
+ * question — this is the backwards-compatible default. Use WELCOME for an agent-authored
54
+ * opener, or PROACTIVE for a message the user did not prompt.
55
+ */
56
+ type?: MavenAGI.AskType;
57
+ /**
58
+ * For USER_MESSAGE (the default) this is the user's message, in the user's own words, and
59
+ * is required. For WELCOME and PROACTIVE it is optional and, when provided, steers the
60
+ * agent's response (a directive to the agent, not the user's own words). (Changed from
61
+ * required to optional to support the non-user turn types — existing USER_MESSAGE callers
62
+ * are unaffected.)
63
+ */
64
+ text?: string;
30
65
  /**
31
66
  * The attachments to the message. Image attachments will be sent to the LLM as additional data.
32
67
  * Non-image attachments can be stored and downloaded from the API but will not be sent to the LLM.
@@ -21,6 +21,9 @@ export declare const ConversationField: {
21
21
  readonly Languages: "Languages";
22
22
  readonly Actions: "Actions";
23
23
  readonly IncompleteActions: "IncompleteActions";
24
+ readonly ErroredActions: "ErroredActions";
25
+ readonly ActionExecutionCount: "ActionExecutionCount";
26
+ readonly ActionErrorCount: "ActionErrorCount";
24
27
  readonly Charters: "Charters";
25
28
  readonly Sources: "Sources";
26
29
  readonly CreatedAt: "CreatedAt";
@@ -25,6 +25,9 @@ exports.ConversationField = {
25
25
  Languages: "Languages",
26
26
  Actions: "Actions",
27
27
  IncompleteActions: "IncompleteActions",
28
+ ErroredActions: "ErroredActions",
29
+ ActionExecutionCount: "ActionExecutionCount",
30
+ ActionErrorCount: "ActionErrorCount",
28
31
  Charters: "Charters",
29
32
  Sources: "Sources",
30
33
  CreatedAt: "CreatedAt",
@@ -34,6 +34,8 @@ export interface ConversationFilter {
34
34
  actions?: MavenAGI.EntityIdFilter[];
35
35
  /** Filter by actions that were suggested but not completed by the AI agent */
36
36
  incompleteActions?: MavenAGI.EntityIdFilter[];
37
+ /** Filter by actions that returned an error when executed in the conversation */
38
+ erroredActions?: MavenAGI.EntityIdFilter[];
37
39
  /**
38
40
  * Filter by feedback types received in the conversation.
39
41
  * This is a legacy field that maps to Events saved in the system for `ThumbsUp`, `ThumbsDown`, and `Insert`.
@@ -8,5 +8,7 @@ export declare const NumericConversationField: {
8
8
  readonly FirstResponseTime: "FirstResponseTime";
9
9
  readonly PredictedNps: "PredictedNPS";
10
10
  readonly Csat: "Csat";
11
+ readonly ActionExecutionCount: "ActionExecutionCount";
12
+ readonly ActionErrorCount: "ActionErrorCount";
11
13
  };
12
14
  export type NumericConversationField = (typeof NumericConversationField)[keyof typeof NumericConversationField] | string;
@@ -12,4 +12,6 @@ exports.NumericConversationField = {
12
12
  FirstResponseTime: "FirstResponseTime",
13
13
  PredictedNps: "PredictedNPS",
14
14
  Csat: "Csat",
15
+ ActionExecutionCount: "ActionExecutionCount",
16
+ ActionErrorCount: "ActionErrorCount",
15
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.53",
3
+ "version": "1.2.55",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -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 AskType: core.serialization.Schema<serializers.AskType.Raw, MavenAGI.AskType>;
5
+ export declare namespace AskType {
6
+ type Raw = "USER_MESSAGE" | "WELCOME" | "PROACTIVE";
7
+ }
@@ -0,0 +1,39 @@
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.AskType = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ exports.AskType = core.serialization.forwardCompatibleEnum_(["USER_MESSAGE", "WELCOME", "PROACTIVE"]);
@@ -8,10 +8,11 @@ import { BotLogicIntelligentFieldsItem } from "./BotLogicIntelligentFieldsItem";
8
8
  import { BotLogicKnowledgeItem } from "./BotLogicKnowledgeItem";
9
9
  import { BotLogicSafetyItem } from "./BotLogicSafetyItem";
10
10
  import { BotLogicSegmentsItem } from "./BotLogicSegmentsItem";
11
+ import { BotLogicSteeringItem } from "./BotLogicSteeringItem";
11
12
  import { BotLogicUserItem } from "./BotLogicUserItem";
12
13
  export declare const BotLogicItem: core.serialization.Schema<serializers.BotLogicItem.Raw, MavenAGI.BotLogicItem>;
13
14
  export declare namespace BotLogicItem {
14
- type Raw = BotLogicItem.Knowledge | BotLogicItem.Actions | BotLogicItem.Form | BotLogicItem.Safety | BotLogicItem.User | BotLogicItem.Segments | BotLogicItem.IntelligentFields | BotLogicItem.Charters;
15
+ type Raw = BotLogicItem.Knowledge | BotLogicItem.Actions | BotLogicItem.Form | BotLogicItem.Safety | BotLogicItem.User | BotLogicItem.Segments | BotLogicItem.IntelligentFields | BotLogicItem.Charters | BotLogicItem.Steering;
15
16
  interface Knowledge extends BotLogicKnowledgeItem.Raw {
16
17
  type: "knowledge";
17
18
  }
@@ -36,4 +37,7 @@ export declare namespace BotLogicItem {
36
37
  interface Charters extends BotLogicChartersItem.Raw {
37
38
  type: "charters";
38
39
  }
40
+ interface Steering extends BotLogicSteeringItem.Raw {
41
+ type: "steering";
42
+ }
39
43
  }
@@ -43,6 +43,7 @@ const BotLogicIntelligentFieldsItem_1 = require("./BotLogicIntelligentFieldsItem
43
43
  const BotLogicKnowledgeItem_1 = require("./BotLogicKnowledgeItem");
44
44
  const BotLogicSafetyItem_1 = require("./BotLogicSafetyItem");
45
45
  const BotLogicSegmentsItem_1 = require("./BotLogicSegmentsItem");
46
+ const BotLogicSteeringItem_1 = require("./BotLogicSteeringItem");
46
47
  const BotLogicUserItem_1 = require("./BotLogicUserItem");
47
48
  exports.BotLogicItem = core.serialization
48
49
  .union("type", {
@@ -54,6 +55,7 @@ exports.BotLogicItem = core.serialization
54
55
  segments: BotLogicSegmentsItem_1.BotLogicSegmentsItem,
55
56
  intelligentFields: BotLogicIntelligentFieldsItem_1.BotLogicIntelligentFieldsItem,
56
57
  charters: BotLogicChartersItem_1.BotLogicChartersItem,
58
+ steering: BotLogicSteeringItem_1.BotLogicSteeringItem,
57
59
  })
58
60
  .transform({
59
61
  transform: (value) => value,
@@ -0,0 +1,11 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { AskType } from "./AskType";
5
+ export declare const BotLogicSteeringItem: core.serialization.ObjectSchema<serializers.BotLogicSteeringItem.Raw, MavenAGI.BotLogicSteeringItem>;
6
+ export declare namespace BotLogicSteeringItem {
7
+ interface Raw {
8
+ askType: AskType.Raw;
9
+ text?: string | null;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
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.BotLogicSteeringItem = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const AskType_1 = require("./AskType");
40
+ exports.BotLogicSteeringItem = core.serialization.object({
41
+ askType: AskType_1.AskType,
42
+ text: core.serialization.string().optional(),
43
+ });
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const EntityType: core.serialization.Schema<serializers.EntityType.Raw, MavenAGI.EntityType>;
5
5
  export declare namespace EntityType {
6
- type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER" | "INTELLIGENT_FIELD" | "CHARTER" | "CONVERSATION_KICKOFF" | "AGENT_VARIANT" | "CONFIG_SNAPSHOT" | "ASSET";
6
+ type Raw = "AGENT" | "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_BASE_VERSION" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK" | "INBOX_ITEM" | "INBOX_ITEM_FIX" | "SEGMENT" | "CUSTOMER" | "INTELLIGENT_FIELD" | "CHARTER" | "CONVERSATION_KICKOFF" | "AGENT_VARIANT" | "CONFIG_SNAPSHOT" | "ASSET" | "TRAFFIC_CONFIG";
7
7
  }
@@ -59,4 +59,5 @@ exports.EntityType = core.serialization.forwardCompatibleEnum_([
59
59
  "AGENT_VARIANT",
60
60
  "CONFIG_SNAPSHOT",
61
61
  "ASSET",
62
+ "TRAFFIC_CONFIG",
62
63
  ]);
@@ -15,6 +15,7 @@ export * from "./AppUserIdentifyingPropertyType";
15
15
  export * from "./AppUserRequest";
16
16
  export * from "./AppUserResponse";
17
17
  export * from "./ArraySettingsSchemaEntry";
18
+ export * from "./AskType";
18
19
  export * from "./AttachmentRequest";
19
20
  export * from "./AttachmentResponse";
20
21
  export * from "./AttachmentStatus";
@@ -41,6 +42,7 @@ export * from "./BotLogicKnowledgeDetail";
41
42
  export * from "./BotLogicKnowledgeItem";
42
43
  export * from "./BotLogicSafetyItem";
43
44
  export * from "./BotLogicSegmentsItem";
45
+ export * from "./BotLogicSteeringItem";
44
46
  export * from "./BotLogicUserItem";
45
47
  export * from "./BotMessage";
46
48
  export * from "./BotOAuthButtonResponse";
@@ -31,6 +31,7 @@ __exportStar(require("./AppUserIdentifyingPropertyType"), exports);
31
31
  __exportStar(require("./AppUserRequest"), exports);
32
32
  __exportStar(require("./AppUserResponse"), exports);
33
33
  __exportStar(require("./ArraySettingsSchemaEntry"), exports);
34
+ __exportStar(require("./AskType"), exports);
34
35
  __exportStar(require("./AttachmentRequest"), exports);
35
36
  __exportStar(require("./AttachmentResponse"), exports);
36
37
  __exportStar(require("./AttachmentStatus"), exports);
@@ -57,6 +58,7 @@ __exportStar(require("./BotLogicKnowledgeDetail"), exports);
57
58
  __exportStar(require("./BotLogicKnowledgeItem"), exports);
58
59
  __exportStar(require("./BotLogicSafetyItem"), exports);
59
60
  __exportStar(require("./BotLogicSegmentsItem"), exports);
61
+ __exportStar(require("./BotLogicSteeringItem"), exports);
60
62
  __exportStar(require("./BotLogicUserItem"), exports);
61
63
  __exportStar(require("./BotMessage"), exports);
62
64
  __exportStar(require("./BotOAuthButtonResponse"), exports);
@@ -1,6 +1,7 @@
1
1
  import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
+ import { AskType } from "../../commons/types/AskType";
4
5
  import { AttachmentRequest } from "../../commons/types/AttachmentRequest";
5
6
  import { EntityIdBase } from "../../commons/types/EntityIdBase";
6
7
  export declare const AskRequest: core.serialization.ObjectSchema<serializers.AskRequest.Raw, MavenAGI.AskRequest>;
@@ -8,7 +9,8 @@ export declare namespace AskRequest {
8
9
  interface Raw {
9
10
  conversationMessageId: EntityIdBase.Raw;
10
11
  userId: EntityIdBase.Raw;
11
- text: string;
12
+ type?: AskType.Raw | null;
13
+ text?: string | null;
12
14
  attachments?: AttachmentRequest.Raw[] | null;
13
15
  transientData?: Record<string, string> | null;
14
16
  timezone?: string | null;
@@ -36,12 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.AskRequest = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
+ const AskType_1 = require("../../commons/types/AskType");
39
40
  const AttachmentRequest_1 = require("../../commons/types/AttachmentRequest");
40
41
  const EntityIdBase_1 = require("../../commons/types/EntityIdBase");
41
42
  exports.AskRequest = core.serialization.object({
42
43
  conversationMessageId: EntityIdBase_1.EntityIdBase,
43
44
  userId: EntityIdBase_1.EntityIdBase,
44
- text: core.serialization.string(),
45
+ type: AskType_1.AskType.optional(),
46
+ text: core.serialization.string().optional(),
45
47
  attachments: core.serialization.list(AttachmentRequest_1.AttachmentRequest).optional(),
46
48
  transientData: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
47
49
  timezone: core.serialization.string().optional(),
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const ConversationField: core.serialization.Schema<serializers.ConversationField.Raw, MavenAGI.ConversationField>;
5
5
  export declare namespace ConversationField {
6
- type Raw = "Category" | "FirstResponseTime" | "HandleTime" | "HumanAgents" | "HumanAgentsWithInserts" | "App" | "Sentiment" | "QualityReason" | "ResolutionStatus" | "ResolvedByMaven" | "Quality" | "Users" | "ResponseLength" | "ThumbsUpCount" | "ThumbsDownCount" | "InsertCount" | "Tags" | "UserMessageCount" | "BotMessageCount" | "Languages" | "Actions" | "IncompleteActions" | "Charters" | "Sources" | "CreatedAt" | "PredictedNPS" | "Csat" | "OrganizationId" | "AgentId" | "InboxItems" | "InvolvedApps";
6
+ type Raw = "Category" | "FirstResponseTime" | "HandleTime" | "HumanAgents" | "HumanAgentsWithInserts" | "App" | "Sentiment" | "QualityReason" | "ResolutionStatus" | "ResolvedByMaven" | "Quality" | "Users" | "ResponseLength" | "ThumbsUpCount" | "ThumbsDownCount" | "InsertCount" | "Tags" | "UserMessageCount" | "BotMessageCount" | "Languages" | "Actions" | "IncompleteActions" | "ErroredActions" | "ActionExecutionCount" | "ActionErrorCount" | "Charters" | "Sources" | "CreatedAt" | "PredictedNPS" | "Csat" | "OrganizationId" | "AgentId" | "InboxItems" | "InvolvedApps";
7
7
  }
@@ -59,6 +59,9 @@ exports.ConversationField = core.serialization.forwardCompatibleEnum_([
59
59
  "Languages",
60
60
  "Actions",
61
61
  "IncompleteActions",
62
+ "ErroredActions",
63
+ "ActionExecutionCount",
64
+ "ActionErrorCount",
62
65
  "Charters",
63
66
  "Sources",
64
67
  "CreatedAt",
@@ -22,6 +22,7 @@ export declare namespace ConversationFilter {
22
22
  categories?: string[] | null;
23
23
  actions?: EntityIdFilter.Raw[] | null;
24
24
  incompleteActions?: EntityIdFilter.Raw[] | null;
25
+ erroredActions?: EntityIdFilter.Raw[] | null;
25
26
  feedback?: FeedbackType.Raw[] | null;
26
27
  humanAgents?: string[] | null;
27
28
  humanAgentsWithInserts?: string[] | null;
@@ -55,6 +55,7 @@ exports.ConversationFilter = core.serialization.object({
55
55
  categories: core.serialization.list(core.serialization.string()).optional(),
56
56
  actions: core.serialization.list(EntityIdFilter_1.EntityIdFilter).optional(),
57
57
  incompleteActions: core.serialization.list(EntityIdFilter_1.EntityIdFilter).optional(),
58
+ erroredActions: core.serialization.list(EntityIdFilter_1.EntityIdFilter).optional(),
58
59
  feedback: core.serialization.list(FeedbackType_1.FeedbackType).optional(),
59
60
  humanAgents: core.serialization.list(core.serialization.string()).optional(),
60
61
  humanAgentsWithInserts: core.serialization.list(core.serialization.string()).optional(),
@@ -3,5 +3,5 @@ import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  export declare const NumericConversationField: core.serialization.Schema<serializers.NumericConversationField.Raw, MavenAGI.NumericConversationField>;
5
5
  export declare namespace NumericConversationField {
6
- type Raw = "ThumbsUpCount" | "ThumbsDownCount" | "InsertCount" | "UserMessageCount" | "BotMessageCount" | "HandleTime" | "FirstResponseTime" | "PredictedNPS" | "Csat";
6
+ type Raw = "ThumbsUpCount" | "ThumbsDownCount" | "InsertCount" | "UserMessageCount" | "BotMessageCount" | "HandleTime" | "FirstResponseTime" | "PredictedNPS" | "Csat" | "ActionExecutionCount" | "ActionErrorCount";
7
7
  }
@@ -46,4 +46,6 @@ exports.NumericConversationField = core.serialization.forwardCompatibleEnum_([
46
46
  "FirstResponseTime",
47
47
  "PredictedNPS",
48
48
  "Csat",
49
+ "ActionExecutionCount",
50
+ "ActionErrorCount",
49
51
  ]);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.53";
1
+ export declare const SDK_VERSION = "1.2.55";
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.53";
4
+ exports.SDK_VERSION = "1.2.55";