mavenagi 1.2.68 → 1.2.70

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 (206) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +3 -1
  3. package/api/resources/agents/types/AgentPrompting.d.ts +4 -3
  4. package/api/resources/appSettings/client/Client.d.ts +2 -0
  5. package/api/resources/appSettings/client/Client.js +2 -0
  6. package/api/resources/assets/client/Client.d.ts +5 -0
  7. package/api/resources/assets/client/Client.js +5 -0
  8. package/api/resources/capabilities/client/Client.d.ts +6 -2
  9. package/api/resources/capabilities/client/Client.js +6 -2
  10. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +4 -25
  11. package/api/resources/capabilities/types/CapabilityRunBase.d.ts +31 -0
  12. package/api/resources/capabilities/types/CapabilityRunBase.js +3 -0
  13. package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +9 -3
  14. package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +7 -1
  15. package/api/resources/capabilities/types/ConversationKickoffSimulationInput.d.ts +6 -0
  16. package/api/resources/capabilities/types/ConversationKickoffSimulationInput.js +3 -0
  17. package/api/resources/capabilities/types/TriggerCapabilityExecution.d.ts +1 -7
  18. package/api/resources/capabilities/types/TriggerRunDetails.d.ts +12 -0
  19. package/api/resources/capabilities/types/TriggerRunDetails.js +3 -0
  20. package/api/resources/capabilities/types/TriggerSimulationInput.d.ts +14 -0
  21. package/api/resources/capabilities/types/TriggerSimulationInput.js +3 -0
  22. package/api/resources/capabilities/types/TriggerSimulationResult.d.ts +7 -0
  23. package/api/resources/capabilities/types/TriggerSimulationResult.js +3 -0
  24. package/api/resources/capabilities/types/index.d.ts +5 -0
  25. package/api/resources/capabilities/types/index.js +5 -0
  26. package/api/resources/commons/types/AbsoluteTimeWindow.d.ts +15 -0
  27. package/api/resources/commons/types/AbsoluteTimeWindow.js +3 -0
  28. package/api/resources/commons/types/AppUser.d.ts +9 -0
  29. package/api/resources/commons/types/ArraySettingsSchemaEntry.d.ts +1 -2
  30. package/api/resources/commons/types/BotLogic.d.ts +9 -0
  31. package/api/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +10 -0
  32. package/api/resources/commons/types/ColorSettingsSchemaEntry.d.ts +1 -2
  33. package/api/resources/commons/types/ConversationAnalysis.d.ts +10 -2
  34. package/api/resources/commons/types/ConversationKickoffExecutionResponse.d.ts +1 -1
  35. package/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
  36. package/api/resources/commons/types/ConversationPreconditionResponse.d.ts +4 -1
  37. package/api/resources/commons/types/DayOfMonthDaySelector.d.ts +4 -0
  38. package/api/resources/commons/types/DayOfMonthDaySelector.js +3 -0
  39. package/api/resources/commons/types/DayOfWeek.d.ts +10 -0
  40. package/api/resources/commons/types/DayOfWeek.js +13 -0
  41. package/api/resources/commons/types/DaySelector.d.ts +33 -0
  42. package/api/resources/commons/types/DaySelector.js +3 -0
  43. package/api/resources/commons/types/EntityIdBase.d.ts +1 -1
  44. package/api/resources/commons/types/EntityType.d.ts +4 -0
  45. package/api/resources/commons/types/EntityType.js +4 -0
  46. package/api/resources/commons/types/Month.d.ts +15 -0
  47. package/api/resources/commons/types/Month.js +18 -0
  48. package/api/resources/commons/types/MultilineSettingsSchemaEntry.d.ts +1 -2
  49. package/api/resources/commons/types/NthWeekdayDaySelector.d.ts +15 -0
  50. package/api/resources/commons/types/NthWeekdayDaySelector.js +3 -0
  51. package/api/resources/commons/types/NumberSettingsSchemaEntry.d.ts +1 -2
  52. package/api/resources/commons/types/Occurrence.d.ts +11 -0
  53. package/api/resources/commons/types/Occurrence.js +14 -0
  54. package/api/resources/commons/types/RecurringTimeWindow.d.ts +21 -0
  55. package/api/resources/commons/types/RecurringTimeWindow.js +3 -0
  56. package/api/resources/commons/types/ResolutionStatus.d.ts +57 -1
  57. package/api/resources/commons/types/ResolutionStatus.js +57 -1
  58. package/api/resources/commons/types/TextSettingsSchemaEntry.d.ts +1 -2
  59. package/api/resources/commons/types/TimeOfDayRange.d.ts +14 -0
  60. package/api/resources/commons/types/TimeOfDayRange.js +3 -0
  61. package/api/resources/commons/types/TimePrecondition.d.ts +109 -0
  62. package/api/resources/commons/types/TimePrecondition.js +3 -0
  63. package/api/resources/commons/types/TimeWindow.d.ts +22 -0
  64. package/api/resources/commons/types/TimeWindow.js +3 -0
  65. package/api/resources/commons/types/UserData.d.ts +14 -1
  66. package/api/resources/commons/types/ValidatedSettingsSchemaEntryBase.d.ts +7 -0
  67. package/api/resources/commons/types/ValidatedSettingsSchemaEntryBase.js +3 -0
  68. package/api/resources/commons/types/WeekTime.d.ts +9 -0
  69. package/api/resources/commons/types/WeekTime.js +3 -0
  70. package/api/resources/commons/types/WeekdaysDaySelector.d.ts +5 -0
  71. package/api/resources/commons/types/WeekdaysDaySelector.js +3 -0
  72. package/api/resources/commons/types/WeeklyTimeWindow.d.ts +23 -0
  73. package/api/resources/commons/types/WeeklyTimeWindow.js +3 -0
  74. package/api/resources/commons/types/YearlyDatesDaySelector.d.ts +16 -0
  75. package/api/resources/commons/types/YearlyDatesDaySelector.js +3 -0
  76. package/api/resources/commons/types/index.d.ts +16 -0
  77. package/api/resources/commons/types/index.js +16 -0
  78. package/api/resources/conversation/client/Client.d.ts +39 -11
  79. package/api/resources/conversation/client/Client.js +39 -11
  80. package/api/resources/conversation/types/AskRequestBase.d.ts +1 -35
  81. package/api/resources/conversation/types/AskRequestFields.d.ts +40 -0
  82. package/api/resources/conversation/types/AskRequestFields.js +3 -0
  83. package/api/resources/conversation/types/BillableFilterField.d.ts +7 -2
  84. package/api/resources/conversation/types/BillableFilterField.js +7 -2
  85. package/api/resources/conversation/types/ConversationFilter.d.ts +11 -8
  86. package/api/resources/conversation/types/DeliverAskRequest.d.ts +9 -0
  87. package/api/resources/conversation/types/DeliverAskRequest.js +3 -0
  88. package/api/resources/conversation/types/DeliverContent.d.ts +19 -0
  89. package/api/resources/conversation/types/DeliverContent.js +3 -0
  90. package/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +1 -3
  91. package/api/resources/conversation/types/DeliverMessageBase.d.ts +11 -0
  92. package/api/resources/conversation/types/DeliverMessageBase.js +3 -0
  93. package/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +1 -3
  94. package/api/resources/conversation/types/index.d.ts +4 -0
  95. package/api/resources/conversation/types/index.js +4 -0
  96. package/api/resources/organizations/client/Client.d.ts +0 -4
  97. package/api/resources/organizations/client/Client.js +0 -4
  98. package/api/resources/users/client/Client.d.ts +7 -1
  99. package/api/resources/users/client/Client.js +7 -1
  100. package/api/resources/users/types/AppUserSummary.d.ts +1 -1
  101. package/api/resources/voice/client/Client.d.ts +2 -1
  102. package/api/resources/voice/client/Client.js +2 -1
  103. package/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +10 -1
  104. package/api/resources/voice/types/VoiceSessionTokenResponse.d.ts +11 -1
  105. package/api/resources/voice/types/VoiceWebRtcTransport.d.ts +10 -0
  106. package/api/resources/voice/types/VoiceWebRtcTransport.js +13 -0
  107. package/api/resources/voice/types/index.d.ts +1 -0
  108. package/api/resources/voice/types/index.js +1 -0
  109. package/package.json +1 -1
  110. package/reference.md +40 -15
  111. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -12
  112. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +5 -13
  113. package/serialization/resources/capabilities/types/CapabilityRunBase.d.ts +20 -0
  114. package/serialization/resources/capabilities/types/CapabilityRunBase.js +52 -0
  115. package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +9 -1
  116. package/serialization/resources/capabilities/types/CapabilitySimulationInput.js +4 -0
  117. package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +9 -1
  118. package/serialization/resources/capabilities/types/CapabilitySimulationResult.js +4 -0
  119. package/serialization/resources/capabilities/types/ConversationKickoffSimulationInput.d.ts +9 -0
  120. package/serialization/resources/capabilities/types/ConversationKickoffSimulationInput.js +40 -0
  121. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.d.ts +2 -6
  122. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.js +3 -6
  123. package/serialization/resources/capabilities/types/TriggerRunDetails.d.ts +13 -0
  124. package/serialization/resources/capabilities/types/TriggerRunDetails.js +45 -0
  125. package/serialization/resources/capabilities/types/TriggerSimulationInput.d.ts +10 -0
  126. package/serialization/resources/capabilities/types/TriggerSimulationInput.js +42 -0
  127. package/serialization/resources/capabilities/types/TriggerSimulationResult.d.ts +10 -0
  128. package/serialization/resources/capabilities/types/TriggerSimulationResult.js +41 -0
  129. package/serialization/resources/capabilities/types/index.d.ts +5 -0
  130. package/serialization/resources/capabilities/types/index.js +5 -0
  131. package/serialization/resources/commons/types/AbsoluteTimeWindow.d.ts +10 -0
  132. package/serialization/resources/commons/types/AbsoluteTimeWindow.js +42 -0
  133. package/serialization/resources/commons/types/ArraySettingsSchemaEntry.d.ts +2 -4
  134. package/serialization/resources/commons/types/ArraySettingsSchemaEntry.js +2 -4
  135. package/serialization/resources/commons/types/ColorSettingsSchemaEntry.d.ts +2 -4
  136. package/serialization/resources/commons/types/ColorSettingsSchemaEntry.js +2 -4
  137. package/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
  138. package/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
  139. package/serialization/resources/commons/types/ConversationPreconditionResponse.d.ts +5 -1
  140. package/serialization/resources/commons/types/ConversationPreconditionResponse.js +2 -0
  141. package/serialization/resources/commons/types/DayOfMonthDaySelector.d.ts +9 -0
  142. package/serialization/resources/commons/types/DayOfMonthDaySelector.js +41 -0
  143. package/serialization/resources/commons/types/DayOfWeek.d.ts +7 -0
  144. package/serialization/resources/commons/types/DayOfWeek.js +47 -0
  145. package/serialization/resources/commons/types/DaySelector.d.ts +23 -0
  146. package/serialization/resources/commons/types/DaySelector.js +53 -0
  147. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  148. package/serialization/resources/commons/types/EntityType.js +1 -0
  149. package/serialization/resources/commons/types/Month.d.ts +7 -0
  150. package/serialization/resources/commons/types/Month.js +52 -0
  151. package/serialization/resources/commons/types/MultilineSettingsSchemaEntry.d.ts +2 -4
  152. package/serialization/resources/commons/types/MultilineSettingsSchemaEntry.js +2 -4
  153. package/serialization/resources/commons/types/NthWeekdayDaySelector.d.ts +12 -0
  154. package/serialization/resources/commons/types/NthWeekdayDaySelector.js +44 -0
  155. package/serialization/resources/commons/types/NumberSettingsSchemaEntry.d.ts +2 -4
  156. package/serialization/resources/commons/types/NumberSettingsSchemaEntry.js +2 -4
  157. package/serialization/resources/commons/types/Occurrence.d.ts +7 -0
  158. package/serialization/resources/commons/types/Occurrence.js +39 -0
  159. package/serialization/resources/commons/types/RecurringTimeWindow.d.ts +15 -0
  160. package/serialization/resources/commons/types/RecurringTimeWindow.js +47 -0
  161. package/serialization/resources/commons/types/TextSettingsSchemaEntry.d.ts +2 -4
  162. package/serialization/resources/commons/types/TextSettingsSchemaEntry.js +2 -4
  163. package/serialization/resources/commons/types/TimeOfDayRange.d.ts +10 -0
  164. package/serialization/resources/commons/types/TimeOfDayRange.js +42 -0
  165. package/serialization/resources/commons/types/TimePrecondition.d.ts +11 -0
  166. package/serialization/resources/commons/types/TimePrecondition.js +45 -0
  167. package/serialization/resources/commons/types/TimeWindow.d.ts +19 -0
  168. package/serialization/resources/commons/types/TimeWindow.js +51 -0
  169. package/serialization/resources/commons/types/ValidatedSettingsSchemaEntryBase.d.ts +12 -0
  170. package/serialization/resources/commons/types/ValidatedSettingsSchemaEntryBase.js +46 -0
  171. package/serialization/resources/commons/types/WeekTime.d.ts +11 -0
  172. package/serialization/resources/commons/types/WeekTime.js +43 -0
  173. package/serialization/resources/commons/types/WeekdaysDaySelector.d.ts +10 -0
  174. package/serialization/resources/commons/types/WeekdaysDaySelector.js +42 -0
  175. package/serialization/resources/commons/types/WeeklyTimeWindow.d.ts +12 -0
  176. package/serialization/resources/commons/types/WeeklyTimeWindow.js +44 -0
  177. package/serialization/resources/commons/types/YearlyDatesDaySelector.d.ts +10 -0
  178. package/serialization/resources/commons/types/YearlyDatesDaySelector.js +42 -0
  179. package/serialization/resources/commons/types/index.d.ts +16 -0
  180. package/serialization/resources/commons/types/index.js +16 -0
  181. package/serialization/resources/conversation/types/AskRequestBase.d.ts +2 -11
  182. package/serialization/resources/conversation/types/AskRequestBase.js +5 -12
  183. package/serialization/resources/conversation/types/AskRequestFields.d.ts +18 -0
  184. package/serialization/resources/conversation/types/AskRequestFields.js +50 -0
  185. package/serialization/resources/conversation/types/DeliverAskRequest.d.ts +11 -0
  186. package/serialization/resources/conversation/types/DeliverAskRequest.js +45 -0
  187. package/serialization/resources/conversation/types/DeliverContent.d.ts +15 -0
  188. package/serialization/resources/conversation/types/DeliverContent.js +49 -0
  189. package/serialization/resources/conversation/types/DeliverConversationMessageRequest.d.ts +2 -3
  190. package/serialization/resources/conversation/types/DeliverConversationMessageRequest.js +5 -4
  191. package/serialization/resources/conversation/types/DeliverMessageBase.d.ts +12 -0
  192. package/serialization/resources/conversation/types/DeliverMessageBase.js +44 -0
  193. package/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +2 -3
  194. package/serialization/resources/conversation/types/DeliverUserMessageRequest.js +5 -4
  195. package/serialization/resources/conversation/types/index.d.ts +4 -0
  196. package/serialization/resources/conversation/types/index.js +4 -0
  197. package/serialization/resources/voice/types/VoiceSessionTokenRequest.d.ts +2 -0
  198. package/serialization/resources/voice/types/VoiceSessionTokenRequest.js +2 -0
  199. package/serialization/resources/voice/types/VoiceSessionTokenResponse.d.ts +1 -0
  200. package/serialization/resources/voice/types/VoiceSessionTokenResponse.js +1 -0
  201. package/serialization/resources/voice/types/VoiceWebRtcTransport.d.ts +7 -0
  202. package/serialization/resources/voice/types/VoiceWebRtcTransport.js +39 -0
  203. package/serialization/resources/voice/types/index.d.ts +1 -0
  204. package/serialization/resources/voice/types/index.js +1 -0
  205. package/version.d.ts +1 -1
  206. package/version.js +1 -1
@@ -35,4 +35,8 @@ exports.EntityType = {
35
35
  ScenarioRun: "SCENARIO_RUN",
36
36
  Function: "FUNCTION",
37
37
  FunctionVersion: "FUNCTION_VERSION",
38
+ /**
39
+ * In development. A person or a service account, identified above the organization level. No
40
+ * `EntityId` has this type: a mavenUser belongs to no organization or agent. */
41
+ MavenUser: "MAVEN_USER",
38
42
  };
@@ -0,0 +1,15 @@
1
+ export declare const Month: {
2
+ readonly January: "JANUARY";
3
+ readonly February: "FEBRUARY";
4
+ readonly March: "MARCH";
5
+ readonly April: "APRIL";
6
+ readonly May: "MAY";
7
+ readonly June: "JUNE";
8
+ readonly July: "JULY";
9
+ readonly August: "AUGUST";
10
+ readonly September: "SEPTEMBER";
11
+ readonly October: "OCTOBER";
12
+ readonly November: "NOVEMBER";
13
+ readonly December: "DECEMBER";
14
+ };
15
+ export type Month = (typeof Month)[keyof typeof Month] | string;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Month = void 0;
5
+ exports.Month = {
6
+ January: "JANUARY",
7
+ February: "FEBRUARY",
8
+ March: "MARCH",
9
+ April: "APRIL",
10
+ May: "MAY",
11
+ June: "JUNE",
12
+ July: "JULY",
13
+ August: "AUGUST",
14
+ September: "SEPTEMBER",
15
+ October: "OCTOBER",
16
+ November: "NOVEMBER",
17
+ December: "DECEMBER",
18
+ };
@@ -1,5 +1,4 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export interface MultilineSettingsSchemaEntry extends MavenAGI.SettingsSchemaEntryBase {
2
+ export interface MultilineSettingsSchemaEntry extends MavenAGI.ValidatedSettingsSchemaEntryBase {
3
3
  defaultValue?: string;
4
- validation?: MavenAGI.SettingsSchemaValidation;
5
4
  }
@@ -0,0 +1,15 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Picks days by counting, within each month, the days that fall on any of `daysOfWeek`, and
4
+ * keeping the occurrences listed.
5
+ *
6
+ * With a single day of the week this reads naturally: `[MONDAY]` with `[THIRD]` is the third
7
+ * Monday. With several, the count runs across all of them: Monday through Friday with `[LAST]`
8
+ * is the last weekday of the month, not the last Monday, last Tuesday, and so on.
9
+ */
10
+ export interface NthWeekdayDaySelector {
11
+ /** The days of the week to count. Must not be empty. */
12
+ daysOfWeek: Set<MavenAGI.DayOfWeek>;
13
+ /** Which of the counted days the window covers. Must not be empty. */
14
+ occurrences: Set<MavenAGI.Occurrence>;
15
+ }
@@ -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 });
@@ -1,5 +1,4 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export interface NumberSettingsSchemaEntry extends MavenAGI.SettingsSchemaEntryBase {
2
+ export interface NumberSettingsSchemaEntry extends MavenAGI.ValidatedSettingsSchemaEntryBase {
3
3
  defaultValue?: number;
4
- validation?: MavenAGI.SettingsSchemaValidation;
5
4
  }
@@ -0,0 +1,11 @@
1
+ /** A numbered occurrence within a month. */
2
+ export declare const Occurrence: {
3
+ readonly First: "FIRST";
4
+ readonly Second: "SECOND";
5
+ readonly Third: "THIRD";
6
+ readonly Fourth: "FOURTH";
7
+ /**
8
+ * The final occurrence in the month, whether that is the fourth or the fifth. */
9
+ readonly Last: "LAST";
10
+ };
11
+ export type Occurrence = (typeof Occurrence)[keyof typeof Occurrence] | string;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Occurrence = void 0;
5
+ /** A numbered occurrence within a month. */
6
+ exports.Occurrence = {
7
+ First: "FIRST",
8
+ Second: "SECOND",
9
+ Third: "THIRD",
10
+ Fourth: "FOURTH",
11
+ /**
12
+ * The final occurrence in the month, whether that is the fourth or the fifth. */
13
+ Last: "LAST",
14
+ };
@@ -0,0 +1,21 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A window that repeats on the calendar of one timezone.
4
+ *
5
+ * Every field that is set must match, and an unset field matches anything, so a window with
6
+ * only `months: [FEBRUARY]` is all of February and one with only `timeOfDay` is those hours
7
+ * every day. Values inside a set match if any of them does.
8
+ *
9
+ * When `timeOfDay` wraps past midnight, `days` and `months` apply to the day the window
10
+ * opens: Fridays with 22:00–02:00 runs from Friday night into early Saturday.
11
+ */
12
+ export interface RecurringTimeWindow {
13
+ /** The IANA timezone the calendar fields are read in (e.g. "America/New_York"). Required because business hours belong to the business, not to the end user, and a rule written against a fixed offset drifts by an hour at every daylight-saving change. Fixed offsets (e.g. "-08:00") and legacy IDs (e.g. "EST") are accepted, but they do not follow daylight saving. Clients can prefill it from the agent's `defaultTimezone`. */
14
+ timezone: string;
15
+ /** Which days the window covers: days of the week, dates of the month, numbered weekdays of the month, or one range of dates every year. Omit to cover every day. */
16
+ days?: MavenAGI.DaySelector;
17
+ /** The months the window covers. Omit to cover every month. Not allowed with `yearlyDates` days, which name their own months. */
18
+ months?: Set<MavenAGI.Month>;
19
+ /** The hours the window covers on each matching day. Omit to cover the whole day. */
20
+ timeOfDay?: MavenAGI.TimeOfDayRange;
21
+ }
@@ -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 });
@@ -1,16 +1,72 @@
1
+ /**
2
+ * The outcome of a conversation. Shown in Agent Designer as "Resolution status".
3
+ *
4
+ * The status is recalculated whenever the conversation changes, such as a new message,
5
+ * feedback, a CSAT rating or an insert. The conditions are checked in this order, and the
6
+ * first one that matches sets the status: `INELIGIBLE`, `CONTENT_SAFETY_FLAGGED`,
7
+ * `PROMPT_ATTACK_FLAGGED`, `HANGUP`, `IN_PROGRESS`, `ERROR`, `NEGATIVE_FEEDBACK`, `ESCALATED`,
8
+ * then `RESOLVED`.
9
+ *
10
+ * Code applies these checks, except for one input: the AI summary of the transcript can report
11
+ * a handoff, which sets `ESCALATED`.
12
+ *
13
+ * Each status maps to one billing status (`BillableFilterField`): `RESOLVED` is billable;
14
+ * `ESCALATED`, `NEGATIVE_FEEDBACK`, `ERROR`, `IN_PROGRESS` and `INCOMPLETE` are not billable;
15
+ * the others are not eligible. These are labels. Volume-based pricing also bills not billable
16
+ * conversations. See
17
+ * [Resolution status and billing](https://docs.mavenagi.com/agent-designer/pages/resolution-status).
18
+ */
1
19
  export declare const ResolutionStatus: {
20
+ /**
21
+ * Reserved. Not assigned to conversations today. Billing status: not eligible. Shown in
22
+ * Agent Designer as "Unknown". */
2
23
  readonly Unknown: "UNKNOWN";
24
+ /**
25
+ * The agent returned an empty response to a message. Billing status: not billable. Shown
26
+ * in Agent Designer as "Error". */
3
27
  readonly Error: "ERROR";
28
+ /**
29
+ * The agent has not responded yet. Billing status: not billable. Shown in Agent Designer
30
+ * as "In progress". */
4
31
  readonly InProgress: "IN_PROGRESS";
5
32
  /**
6
- * Shown in Agent Designer as "Resolved by Maven". */
33
+ * The agent responded and no other status applies. Billing status: billable, the only
34
+ * status that is. `resolvedByMaven` is `true` exactly when the status is `RESOLVED`. Shown
35
+ * in Agent Designer as "Resolved by Maven". */
7
36
  readonly Resolved: "RESOLVED";
37
+ /**
38
+ * The conversation was handed off to a human agent. Either an AI analysis of the
39
+ * transcript found a handoff, or a handoff action that Maven recognizes ran successfully.
40
+ * The AI analysis can be wrong. Once escalation is detected, later messages do not undo
41
+ * it, but the earlier checks, such as `NEGATIVE_FEEDBACK`, still take precedence. Copilot
42
+ * conversations are never `ESCALATED`. Billing status: not billable. Shown in Agent
43
+ * Designer as "Escalated". */
8
44
  readonly Escalated: "ESCALATED";
45
+ /**
46
+ * Reserved. Not assigned to conversations today. Billing status: not billable. Shown in
47
+ * Agent Designer as "Incomplete". */
9
48
  readonly Incomplete: "INCOMPLETE";
49
+ /**
50
+ * The end user or a human agent gave a thumbs down, or the average CSAT is below 50% of
51
+ * the maximum rating. An insert of an agent response overrides a thumbs down. Billing
52
+ * status: not billable. Shown in Agent Designer as "Negative feedback". */
10
53
  readonly NegativeFeedback: "NEGATIVE_FEEDBACK";
54
+ /**
55
+ * A message was flagged by content safety guardrails. Billing status: not eligible. Shown
56
+ * in Agent Designer as "Content safety flagged". */
11
57
  readonly ContentSafetyFlagged: "CONTENT_SAFETY_FLAGGED";
58
+ /**
59
+ * A message was flagged as a prompt injection attack. Billing status: not eligible. Shown
60
+ * in Agent Designer as "Prompt attack flagged". */
12
61
  readonly PromptAttackFlagged: "PROMPT_ATTACK_FLAGGED";
62
+ /**
63
+ * A voice call of 5 seconds or less, measured from the first message to the last. Billing
64
+ * status: not eligible. Shown in Agent Designer as "Hangup". */
13
65
  readonly Hangup: "HANGUP";
66
+ /**
67
+ * A copilot chat conversation. Billing status: not eligible. Shown in Agent Designer as
68
+ * "Ineligible". Not the same as the `INELIGIBLE` billing status, which covers every not
69
+ * eligible status. */
14
70
  readonly Ineligible: "INELIGIBLE";
15
71
  };
16
72
  export type ResolutionStatus = (typeof ResolutionStatus)[keyof typeof ResolutionStatus] | string;
@@ -2,18 +2,74 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ResolutionStatus = void 0;
5
+ /**
6
+ * The outcome of a conversation. Shown in Agent Designer as "Resolution status".
7
+ *
8
+ * The status is recalculated whenever the conversation changes, such as a new message,
9
+ * feedback, a CSAT rating or an insert. The conditions are checked in this order, and the
10
+ * first one that matches sets the status: `INELIGIBLE`, `CONTENT_SAFETY_FLAGGED`,
11
+ * `PROMPT_ATTACK_FLAGGED`, `HANGUP`, `IN_PROGRESS`, `ERROR`, `NEGATIVE_FEEDBACK`, `ESCALATED`,
12
+ * then `RESOLVED`.
13
+ *
14
+ * Code applies these checks, except for one input: the AI summary of the transcript can report
15
+ * a handoff, which sets `ESCALATED`.
16
+ *
17
+ * Each status maps to one billing status (`BillableFilterField`): `RESOLVED` is billable;
18
+ * `ESCALATED`, `NEGATIVE_FEEDBACK`, `ERROR`, `IN_PROGRESS` and `INCOMPLETE` are not billable;
19
+ * the others are not eligible. These are labels. Volume-based pricing also bills not billable
20
+ * conversations. See
21
+ * [Resolution status and billing](https://docs.mavenagi.com/agent-designer/pages/resolution-status).
22
+ */
5
23
  exports.ResolutionStatus = {
24
+ /**
25
+ * Reserved. Not assigned to conversations today. Billing status: not eligible. Shown in
26
+ * Agent Designer as "Unknown". */
6
27
  Unknown: "UNKNOWN",
28
+ /**
29
+ * The agent returned an empty response to a message. Billing status: not billable. Shown
30
+ * in Agent Designer as "Error". */
7
31
  Error: "ERROR",
32
+ /**
33
+ * The agent has not responded yet. Billing status: not billable. Shown in Agent Designer
34
+ * as "In progress". */
8
35
  InProgress: "IN_PROGRESS",
9
36
  /**
10
- * Shown in Agent Designer as "Resolved by Maven". */
37
+ * The agent responded and no other status applies. Billing status: billable, the only
38
+ * status that is. `resolvedByMaven` is `true` exactly when the status is `RESOLVED`. Shown
39
+ * in Agent Designer as "Resolved by Maven". */
11
40
  Resolved: "RESOLVED",
41
+ /**
42
+ * The conversation was handed off to a human agent. Either an AI analysis of the
43
+ * transcript found a handoff, or a handoff action that Maven recognizes ran successfully.
44
+ * The AI analysis can be wrong. Once escalation is detected, later messages do not undo
45
+ * it, but the earlier checks, such as `NEGATIVE_FEEDBACK`, still take precedence. Copilot
46
+ * conversations are never `ESCALATED`. Billing status: not billable. Shown in Agent
47
+ * Designer as "Escalated". */
12
48
  Escalated: "ESCALATED",
49
+ /**
50
+ * Reserved. Not assigned to conversations today. Billing status: not billable. Shown in
51
+ * Agent Designer as "Incomplete". */
13
52
  Incomplete: "INCOMPLETE",
53
+ /**
54
+ * The end user or a human agent gave a thumbs down, or the average CSAT is below 50% of
55
+ * the maximum rating. An insert of an agent response overrides a thumbs down. Billing
56
+ * status: not billable. Shown in Agent Designer as "Negative feedback". */
14
57
  NegativeFeedback: "NEGATIVE_FEEDBACK",
58
+ /**
59
+ * A message was flagged by content safety guardrails. Billing status: not eligible. Shown
60
+ * in Agent Designer as "Content safety flagged". */
15
61
  ContentSafetyFlagged: "CONTENT_SAFETY_FLAGGED",
62
+ /**
63
+ * A message was flagged as a prompt injection attack. Billing status: not eligible. Shown
64
+ * in Agent Designer as "Prompt attack flagged". */
16
65
  PromptAttackFlagged: "PROMPT_ATTACK_FLAGGED",
66
+ /**
67
+ * A voice call of 5 seconds or less, measured from the first message to the last. Billing
68
+ * status: not eligible. Shown in Agent Designer as "Hangup". */
17
69
  Hangup: "HANGUP",
70
+ /**
71
+ * A copilot chat conversation. Billing status: not eligible. Shown in Agent Designer as
72
+ * "Ineligible". Not the same as the `INELIGIBLE` billing status, which covers every not
73
+ * eligible status. */
18
74
  Ineligible: "INELIGIBLE",
19
75
  };
@@ -1,5 +1,4 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export interface TextSettingsSchemaEntry extends MavenAGI.SettingsSchemaEntryBase {
2
+ export interface TextSettingsSchemaEntry extends MavenAGI.ValidatedSettingsSchemaEntryBase {
3
3
  defaultValue?: string;
4
- validation?: MavenAGI.SettingsSchemaValidation;
5
4
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * A half-open span of wall-clock time `[start, end)` on a matching day, as 24-hour `HH:mm`
3
+ * strings in the window's timezone.
4
+ *
5
+ * An `end` earlier than `start` wraps past midnight (22:00–02:00 runs overnight), and an `end`
6
+ * of "00:00" means until midnight. `start` and `end` must differ: to cover the whole day, omit
7
+ * `timeOfDay`.
8
+ */
9
+ export interface TimeOfDayRange {
10
+ /** The first minute inside the range, e.g. "09:00". */
11
+ start: string;
12
+ /** The first minute after the range, e.g. "17:00". */
13
+ end: string;
14
+ }
@@ -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 });
@@ -0,0 +1,109 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A precondition met while the current time is inside a window.
4
+ *
5
+ * Accepted only in a charter's precondition; segments, knowledge bases, and actions reject it.
6
+ *
7
+ * The time checked is when the turn being answered arrives. In chat, the precondition is
8
+ * re-evaluated on every turn, so a conversation that starts inside the window stops matching
9
+ * once a later turn falls outside it. Voice calls do not re-check it on every turn, so a call
10
+ * in progress can keep matching for a while after the window ends.
11
+ *
12
+ * Each precondition holds one window. Combine windows with a `PreconditionGroup`: OR for a
13
+ * union ("weekdays 9–5 or Saturdays 10–2"), AND with a negated window for an exception
14
+ * ("business hours, but not on Thanksgiving"). Omit the operator to match inside the window,
15
+ * or set it to NOT to match outside it. Any other operator is rejected with a 400.
16
+ *
17
+ * @example
18
+ * {
19
+ * window: {
20
+ * windowType: "recurring",
21
+ * timezone: "America/Los_Angeles",
22
+ * timeOfDay: {
23
+ * start: "07:00",
24
+ * end: "22:00"
25
+ * }
26
+ * }
27
+ * }
28
+ *
29
+ * @example
30
+ * {
31
+ * operator: MavenAGI.PreconditionOperator.Not,
32
+ * window: {
33
+ * windowType: "recurring",
34
+ * timezone: "America/Los_Angeles",
35
+ * timeOfDay: {
36
+ * start: "07:00",
37
+ * end: "22:00"
38
+ * }
39
+ * }
40
+ * }
41
+ *
42
+ * @example
43
+ * {
44
+ * window: {
45
+ * windowType: "recurring",
46
+ * timezone: "America/New_York",
47
+ * months: new Set([MavenAGI.Month.November]),
48
+ * days: {
49
+ * dayType: "nthWeekday",
50
+ * daysOfWeek: new Set([MavenAGI.DayOfWeek.Thursday]),
51
+ * occurrences: new Set([MavenAGI.Occurrence.Fourth])
52
+ * }
53
+ * }
54
+ * }
55
+ *
56
+ * @example
57
+ * {
58
+ * window: {
59
+ * windowType: "absolute",
60
+ * start: new Date("2026-11-27T08:00:00.000Z"),
61
+ * end: new Date("2026-11-28T08:00:00.000Z")
62
+ * }
63
+ * }
64
+ *
65
+ * @example
66
+ * {
67
+ * window: {
68
+ * windowType: "recurring",
69
+ * timezone: "America/New_York",
70
+ * days: {
71
+ * dayType: "yearlyDates",
72
+ * start: "12-24",
73
+ * end: "01-02"
74
+ * }
75
+ * }
76
+ * }
77
+ *
78
+ * @example
79
+ * {
80
+ * window: {
81
+ * windowType: "recurring",
82
+ * timezone: "America/New_York",
83
+ * days: {
84
+ * dayType: "dayOfMonth",
85
+ * days: new Set([-1])
86
+ * }
87
+ * }
88
+ * }
89
+ *
90
+ * @example
91
+ * {
92
+ * window: {
93
+ * windowType: "weekly",
94
+ * timezone: "America/Los_Angeles",
95
+ * start: {
96
+ * dayOfWeek: MavenAGI.DayOfWeek.Friday,
97
+ * time: "18:00"
98
+ * },
99
+ * end: {
100
+ * dayOfWeek: MavenAGI.DayOfWeek.Monday,
101
+ * time: "08:00"
102
+ * }
103
+ * }
104
+ * }
105
+ */
106
+ export interface TimePrecondition extends MavenAGI.PreconditionBase {
107
+ /** The window the current time must fall inside for the precondition to be met. */
108
+ window: MavenAGI.TimeWindow;
109
+ }
@@ -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 });
@@ -0,0 +1,22 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export type TimeWindow =
3
+ /**
4
+ * A single span between two instants, for one-off dates such as a sale or an outage. */
5
+ MavenAGI.TimeWindow.Absolute
6
+ /**
7
+ * A window that repeats on a calendar, such as weekly business hours. */
8
+ | MavenAGI.TimeWindow.Recurring
9
+ /**
10
+ * One span a week that can cross days, such as Friday evening through Monday morning. */
11
+ | MavenAGI.TimeWindow.Weekly;
12
+ export declare namespace TimeWindow {
13
+ interface Absolute extends MavenAGI.AbsoluteTimeWindow {
14
+ windowType: "absolute";
15
+ }
16
+ interface Recurring extends MavenAGI.RecurringTimeWindow {
17
+ windowType: "recurring";
18
+ }
19
+ interface Weekly extends MavenAGI.WeeklyTimeWindow {
20
+ windowType: "weekly";
21
+ }
22
+ }
@@ -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 });
@@ -2,6 +2,19 @@ import type * as MavenAGI from "../../../index";
2
2
  export interface UserData {
3
3
  /** The value of the user metadata */
4
4
  value: string;
5
- /** The visibility of the user metadata */
5
+ /**
6
+ * Who sees the value.
7
+ *
8
+ * - `VISIBLE`: the agent (the LLM) is given the value.
9
+ * - `PARTIALLY_VISIBLE`: the agent is not given the value. Agent user responses mask all
10
+ * but its last 3 characters.
11
+ * - `HIDDEN`: the agent is not given the value. Agent user responses show it as `********`.
12
+ *
13
+ * Visibility only controls what the agent is given and how agent user responses
14
+ * (`visibleData`) mask the value. It is not encryption or access control. Every value,
15
+ * whatever its visibility, is returned in full by `GET /users/{userId}` and
16
+ * `PUT /users` (in `data`, `allUserData` and `agentUserData`) and is passed to the
17
+ * actions and functions of every app that run for the user.
18
+ */
6
19
  visibility: MavenAGI.VisibilityType;
7
20
  }
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface ValidatedSettingsSchemaEntryBase extends MavenAGI.SettingsSchemaEntryBase {
3
+ /** Use `validations`. */
4
+ validation?: MavenAGI.SettingsSchemaValidation;
5
+ /** More rules for the value, each with its own `errorMessage`, in order after `validation`. */
6
+ validations?: MavenAGI.SettingsSchemaValidation[];
7
+ }
@@ -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 });
@@ -0,0 +1,9 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A minute of the week, as a day of the week and a 24-hour `HH:mm` time on that day.
4
+ */
5
+ export interface WeekTime {
6
+ dayOfWeek: MavenAGI.DayOfWeek;
7
+ /** A 24-hour `HH:mm` time from "00:00" to "23:59", e.g. "18:00". To run to the end of Sunday, end on MONDAY at "00:00". */
8
+ time: string;
9
+ }
@@ -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 });
@@ -0,0 +1,5 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface WeekdaysDaySelector {
3
+ /** The days of the week the window covers. Must not be empty. */
4
+ daysOfWeek: Set<MavenAGI.DayOfWeek>;
5
+ }
@@ -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 });
@@ -0,0 +1,23 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A half-open span `[start, end)` that repeats every week on the calendar of one timezone,
4
+ * for a rule that runs across days, such as weekend coverage from Friday 18:00 to Monday 08:00.
5
+ * A `recurring` window cannot say this in one window, because its `timeOfDay` applies to each
6
+ * matching day on its own.
7
+ *
8
+ * The week runs from Monday to Sunday, and an `end` earlier in the week than `start` wraps past
9
+ * Sunday night, the way a `timeOfDay` end before its start wraps past midnight. `start` and
10
+ * `end` must differ.
11
+ *
12
+ * Both ends are wall-clock times in `timezone`, so the span follows daylight saving: in a
13
+ * week when the clocks change inside the span, it is up to an hour shorter or longer, and a
14
+ * wall-clock minute that happens twice when the clocks go back is inside the span both times.
15
+ */
16
+ export interface WeeklyTimeWindow {
17
+ /** The IANA timezone the days and times are read in (e.g. "America/New_York"). Required: the server applies no default timezone. Fixed offsets (e.g. "-08:00") and legacy IDs (e.g. "EST") are accepted, but they do not follow daylight saving. */
18
+ timezone: string;
19
+ /** The first minute inside the span, e.g. Friday at "18:00". */
20
+ start: MavenAGI.WeekTime;
21
+ /** The first minute after the span, e.g. Monday at "08:00". */
22
+ end: MavenAGI.WeekTime;
23
+ }
@@ -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 });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The dates from `start` through `end`, both included, every year, as `MM-DD` strings. An `end`
3
+ * earlier in the year than `start` wraps past New Year: `12-24` through `01-02` covers the last
4
+ * eight days of December and the first two of January. An `end` equal to `start` covers that
5
+ * one date.
6
+ *
7
+ * Both must be real dates. `start` cannot be February 29, since most years lack it. An `end`
8
+ * of `02-29` runs through the last day of February in every year, and a range that spans it,
9
+ * such as `02-28` through `03-01`, covers it in leap years.
10
+ */
11
+ export interface YearlyDatesDaySelector {
12
+ /** The first date inside the range, e.g. "12-24". */
13
+ start: string;
14
+ /** The last date inside the range, e.g. "01-02". */
15
+ end: string;
16
+ }
@@ -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 });
@@ -1,3 +1,4 @@
1
+ export * from "./AbsoluteTimeWindow";
1
2
  export * from "./ActionBase";
2
3
  export * from "./ActionEnumOption";
3
4
  export * from "./ActionExecutionParamValue";
@@ -87,6 +88,9 @@ export * from "./ConversationSummary";
87
88
  export * from "./ConversationValueSource";
88
89
  export * from "./CsatInfo";
89
90
  export * from "./CursorPage";
91
+ export * from "./DayOfMonthDaySelector";
92
+ export * from "./DayOfWeek";
93
+ export * from "./DaySelector";
90
94
  export * from "./DeviceInfo";
91
95
  export * from "./DeviceType";
92
96
  export * from "./DocumentInformation";
@@ -161,10 +165,12 @@ export * from "./MetadataEntryCondition";
161
165
  export * from "./MetadataFilter";
162
166
  export * from "./MetadataFilterGroup";
163
167
  export * from "./MetadataPrecondition";
168
+ export * from "./Month";
164
169
  export * from "./MultilineSettingsSchemaEntry";
165
170
  export * from "./NovelSystemEvent";
166
171
  export * from "./NovelSystemEventNoId";
167
172
  export * from "./NovelUserEvent";
173
+ export * from "./NthWeekdayDaySelector";
168
174
  export * from "./NumberRange";
169
175
  export * from "./NumberSettingsSchemaEntry";
170
176
  export * from "./NumericComparisonCondition";
@@ -175,6 +181,7 @@ export * from "./NumericMembershipOperator";
175
181
  export * from "./OAuthAuthenticationMethod";
176
182
  export * from "./OAuthSettingsSchemaEntry";
177
183
  export * from "./ObjectCondition";
184
+ export * from "./Occurrence";
178
185
  export * from "./OneOfSettingsSchemaEntry";
179
186
  export * from "./OsInfo";
180
187
  export * from "./OsType";
@@ -192,6 +199,7 @@ export * from "./PresenceCondition";
192
199
  export * from "./PresenceOperator";
193
200
  export * from "./Quality";
194
201
  export * from "./QualityReason";
202
+ export * from "./RecurringTimeWindow";
195
203
  export * from "./RelationshipType";
196
204
  export * from "./ResolutionStatus";
197
205
  export * from "./ResponseConfig";
@@ -237,6 +245,9 @@ export * from "./TextFormat";
237
245
  export * from "./TextFormatJsonSchema";
238
246
  export * from "./TextFormatText";
239
247
  export * from "./TextSettingsSchemaEntry";
248
+ export * from "./TimeOfDayRange";
249
+ export * from "./TimePrecondition";
250
+ export * from "./TimeWindow";
240
251
  export * from "./UniversalCondition";
241
252
  export * from "./UserConversationMessageType";
242
253
  export * from "./UserData";
@@ -248,4 +259,9 @@ export * from "./UserEventNameCondition";
248
259
  export * from "./UserMessage";
249
260
  export * from "./UserMessageBase";
250
261
  export * from "./UserMessageResponseState";
262
+ export * from "./ValidatedSettingsSchemaEntryBase";
251
263
  export * from "./VisibilityType";
264
+ export * from "./WeekdaysDaySelector";
265
+ export * from "./WeeklyTimeWindow";
266
+ export * from "./WeekTime";
267
+ export * from "./YearlyDatesDaySelector";