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
@@ -61,7 +61,8 @@ class VoiceClient {
61
61
  * Creates a short-lived session token for authenticating voice connections.
62
62
  *
63
63
  * Supports two token types:
64
- * - **webrtc**: A Twilio-compatible access token for browser-based WebRTC calls
64
+ * - **webrtc**: A token for browser-based WebRTC calls. The `transport` field selects the token format:
65
+ * a token for the Maven telephony gateway (default) or a Twilio access token.
65
66
  * - **websocket**: An ES256 JWT for direct WebSocket connections to /v1/realtime/conversations
66
67
  *
67
68
  * Session tokens are required before establishing any voice connection.
@@ -8,9 +8,18 @@ export interface VoiceSessionTokenRequest {
8
8
  appUserId: string;
9
9
  /**
10
10
  * The type of session token to generate.
11
- * Use "webrtc" for browser-based calls via Twilio, or "websocket" for direct WebSocket connections.
11
+ * Use "webrtc" for browser-based calls, or "websocket" for direct WebSocket connections.
12
+ * For "webrtc", `transport` selects the Maven telephony gateway (default) or Twilio.
12
13
  */
13
14
  type: MavenAGI.VoiceTokenType;
15
+ /**
16
+ * The transport for a "webrtc" call. Default: "gateway".
17
+ * - "gateway": the response `token` is a token for the Maven telephony gateway, and the response includes `connectUrl`.
18
+ * - "twilio": the response `token` is a Twilio access token.
19
+ *
20
+ * The server ignores this field for "websocket" tokens.
21
+ */
22
+ transport?: MavenAGI.VoiceWebRtcTransport;
14
23
  /**
15
24
  * Arbitrary key-value metadata to associate with this session (e.g., conversationId, topic).
16
25
  *
@@ -1,6 +1,10 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface VoiceSessionTokenResponse {
3
- /** Opaque JWT session token. Pass this in the Authorization header when connecting. */
3
+ /**
4
+ * Opaque session token. Pass this in the Authorization header when connecting.
5
+ * For "websocket", the token is an ES256 JWT.
6
+ * For "webrtc", the token format depends on `transport`.
7
+ */
4
8
  token: string;
5
9
  /** The identity string associated with this token (echoes appUserId). */
6
10
  identity: string;
@@ -8,4 +12,10 @@ export interface VoiceSessionTokenResponse {
8
12
  type: MavenAGI.VoiceTokenType;
9
13
  /** Time in seconds until the token expires. */
10
14
  expiresIn: number;
15
+ /**
16
+ * The URL that starts a "webrtc" call through the Maven telephony gateway.
17
+ * The client sends `token` to this URL to start the call.
18
+ * Present only when the request sets `transport` to "gateway".
19
+ */
20
+ connectUrl?: string;
11
21
  }
@@ -0,0 +1,10 @@
1
+ /** The transport that carries a "webrtc" call. */
2
+ export declare const VoiceWebRtcTransport: {
3
+ /**
4
+ * The Maven telephony gateway. The token is a gateway token. */
5
+ readonly Gateway: "gateway";
6
+ /**
7
+ * Twilio Voice. The token is a Twilio access token. */
8
+ readonly Twilio: "twilio";
9
+ };
10
+ export type VoiceWebRtcTransport = (typeof VoiceWebRtcTransport)[keyof typeof VoiceWebRtcTransport] | string;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceWebRtcTransport = void 0;
5
+ /** The transport that carries a "webrtc" call. */
6
+ exports.VoiceWebRtcTransport = {
7
+ /**
8
+ * The Maven telephony gateway. The token is a gateway token. */
9
+ Gateway: "gateway",
10
+ /**
11
+ * Twilio Voice. The token is a Twilio access token. */
12
+ Twilio: "twilio",
13
+ };
@@ -1,3 +1,4 @@
1
1
  export * from "./VoiceSessionTokenRequest";
2
2
  export * from "./VoiceSessionTokenResponse";
3
3
  export * from "./VoiceTokenType";
4
+ export * from "./VoiceWebRtcTransport";
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./VoiceSessionTokenRequest"), exports);
18
18
  __exportStar(require("./VoiceSessionTokenResponse"), exports);
19
19
  __exportStar(require("./VoiceTokenType"), exports);
20
+ __exportStar(require("./VoiceWebRtcTransport"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.68",
3
+ "version": "1.2.70",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -1875,6 +1875,8 @@ Update app settings. Performs a merge of the provided settings with the existing
1875
1875
  - No keys will be removed.
1876
1876
 
1877
1877
  Note that if an array value is provided it will fully replace an existing value as arrays cannot be merged.
1878
+
1879
+ Returns the full app settings after the merge, including keys that were not in the request. This is the same object that Get app settings returns.
1878
1880
  </dd>
1879
1881
  </dl>
1880
1882
  </dd>
@@ -2013,6 +2015,11 @@ await client.assets.initiateUpload({
2013
2015
  Commit an upload after successful file transfer.
2014
2016
  Updates the asset status and makes it available for use.
2015
2017
 
2018
+ An asset is committed once. Committing it again with the same checksum is safe while its file
2019
+ is unchanged, so a client can retry a commit; a different checksum returns a 409. Once
2020
+ committed, don't write to the upload URL again, even with the same bytes: committing after
2021
+ that may return a 409, and the file then has to be uploaded as a new asset.
2022
+
2016
2023
  <Note>**Required permission:** `ask:agent`</Note>
2017
2024
  </dd>
2018
2025
  </dl>
@@ -2350,8 +2357,12 @@ conversation or agent user has to exist first. The capability is told its mode i
2350
2357
  `SIMULATION`, the same as in a test suite run, so an app that honours it can avoid side
2351
2358
  effects in real systems. Nothing here runs a capability live.
2352
2359
 
2353
- Only actions can be simulated today. Triggers and conversation kickoffs are rejected with a
2354
- 400 until they can run as simulations. Intelligent fields cannot be simulated.
2360
+ A simulated run is not recorded. It returns its result here and never appears in
2361
+ capability execution search.
2362
+
2363
+ Actions, conversation kickoffs and event triggers can be simulated today. An event trigger
2364
+ is given one event the caller describes in full; the event is never stored, and its user
2365
+ does not have to exist. Intelligent fields cannot be simulated.
2355
2366
 
2356
2367
  <Note>**Required permission:** `create:simulations`</Note>
2357
2368
  </dd>
@@ -3507,7 +3518,7 @@ Non-simulation conversations remain visible; they cannot be fully removed from t
3507
3518
  <Warning>This is a destructive operation and cannot be undone. <br/><br/>
3508
3519
  What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
3509
3520
  Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
3510
- Evaluation results for the conversation are deleted, and the payloads recorded on its trigger and action executions are cleared. <br/><br/>
3521
+ Evaluation results for the conversation are deleted, the payloads recorded on its trigger and action executions are cleared, and the message recorded on each of its Conversation Kickoff executions is cleared. <br/><br/>
3511
3522
  What is kept: the conversation's metadata, each message's charts, structured answer and app-supplied metadata, the conversation's intelligent field values, its feedback and events, and the users who took part. To wipe a user's data, use `DELETE /users/{userId}` or `DELETE /agentusers/{agentUserId}`.</Warning>
3512
3523
 
3513
3524
  <Note>**Required permission:** `delete:conversations`</Note>
@@ -4122,6 +4133,8 @@ Replaced by `updateConversationMetadata`.
4122
4133
 
4123
4134
  Adds metadata to an existing conversation. If a metadata field already exists, it will be overwritten.
4124
4135
 
4136
+ When a metadata size limit is enforced for the agent, each entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
4137
+
4125
4138
  A closed conversation (`open` set to false) takes no new metadata and returns a 400.
4126
4139
  </dd>
4127
4140
  </dl>
@@ -4504,6 +4517,10 @@ await client.conversation.export({});
4504
4517
 
4505
4518
  Deliver a message to a user or conversation.
4506
4519
 
4520
+ Send `content` with `contentType: message` to deliver a message as written, or `contentType: ask`
4521
+ to have the agent take a `WELCOME` or `PROACTIVE` turn and deliver its reply. Either way the app
4522
+ that owns the conversation receives the message through its `handleMessage` hook.
4523
+
4507
4524
  A closed conversation (`open` set to false) takes no new messages and returns a 400.
4508
4525
 
4509
4526
  <Warning>
@@ -4527,21 +4544,22 @@ User message delivery is not yet supported and returns a 400.
4527
4544
 
4528
4545
  ```typescript
4529
4546
  await client.conversation.deliverMessage({
4530
- type: "user",
4531
- userId: {
4532
- type: "AGENT",
4533
- appId: "appId",
4534
- referenceId: "x"
4547
+ type: "conversation",
4548
+ conversationId: {
4549
+ type: "CONVERSATION",
4550
+ appId: "chat-app",
4551
+ referenceId: "conversation-0"
4535
4552
  },
4536
- message: {
4553
+ content: {
4554
+ contentType: "message",
4537
4555
  conversationMessageId: {
4538
- referenceId: "x"
4556
+ referenceId: "message-0"
4539
4557
  },
4540
4558
  userId: {
4541
- referenceId: "x"
4559
+ referenceId: "human-agent-0"
4542
4560
  },
4543
- text: "text",
4544
- userMessageType: "USER"
4561
+ text: "Hi, I'm Priya. I can help with your refund.",
4562
+ userMessageType: "HUMAN_AGENT"
4545
4563
  }
4546
4564
  });
4547
4565
 
@@ -9040,6 +9058,10 @@ await client.users.deleteAgentUser("aus_1234567890");
9040
9058
 
9041
9059
  Update an app user or create it if it doesn't exist.
9042
9060
 
9061
+ <Warning>User data is not secret storage, even with `HIDDEN` visibility: `HIDDEN` only keeps a value away from the agent and masks it in agent user responses. Do not store credentials, tokens or other secrets in user data. To pass a per-user credential to your actions, send it as `transientData` on each ask request instead.</Warning>
9062
+
9063
+ When a metadata size limit is enforced for the agent, each `data` entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
9064
+
9043
9065
  <Note>**Required permission:** `edit:agents`. A user with `executionMode` `SIMULATION` also needs `create:simulations`.</Note>
9044
9066
  </dd>
9045
9067
  </dl>
@@ -9117,7 +9139,9 @@ await client.users.createOrUpdate({
9117
9139
  <dl>
9118
9140
  <dd>
9119
9141
 
9120
- Get an app user by its supplied ID
9142
+ Get an app user by its supplied ID.
9143
+
9144
+ Returns every user data value in full, including `HIDDEN` and `PARTIALLY_VISIBLE` ones.
9121
9145
 
9122
9146
  <Note>**Required permission:** `read:agents`</Note>
9123
9147
  </dd>
@@ -9277,7 +9301,8 @@ await client.users.delete("user-0");
9277
9301
  Creates a short-lived session token for authenticating voice connections.
9278
9302
 
9279
9303
  Supports two token types:
9280
- - **webrtc**: A Twilio-compatible access token for browser-based WebRTC calls
9304
+ - **webrtc**: A token for browser-based WebRTC calls. The `transport` field selects the token format:
9305
+ a token for the Maven telephony gateway (default) or a Twilio access token.
9281
9306
  - **websocket**: An ES256 JWT for direct WebSocket connections to /v1/realtime/conversations
9282
9307
 
9283
9308
  Session tokens are required before establishing any voice connection.
@@ -2,21 +2,11 @@ import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  import { EntityId } from "../../commons/types/EntityId";
5
- import { ExecutionMode } from "../../commons/types/ExecutionMode";
6
- import { CapabilityExecutionCompletionReason } from "./CapabilityExecutionCompletionReason";
7
- import { CapabilityExecutionStatus } from "./CapabilityExecutionStatus";
5
+ import { CapabilityRunBase } from "./CapabilityRunBase";
8
6
  export declare const CapabilityExecutionBase: core.serialization.ObjectSchema<serializers.CapabilityExecutionBase.Raw, MavenAGI.CapabilityExecutionBase>;
9
7
  export declare namespace CapabilityExecutionBase {
10
- interface Raw {
11
- capabilityId: EntityId.Raw;
8
+ interface Raw extends CapabilityRunBase.Raw {
12
9
  subjectId: EntityId.Raw;
13
- status: CapabilityExecutionStatus.Raw;
14
- completionReason?: CapabilityExecutionCompletionReason.Raw | null;
15
- message?: string | null;
16
- startedAt: string;
17
- completedAt?: string | null;
18
- durationMs?: number | null;
19
10
  createdAt: string;
20
- executionMode: ExecutionMode.Raw;
21
11
  }
22
12
  }
@@ -37,18 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.CapabilityExecutionBase = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const EntityId_1 = require("../../commons/types/EntityId");
40
- const ExecutionMode_1 = require("../../commons/types/ExecutionMode");
41
- const CapabilityExecutionCompletionReason_1 = require("./CapabilityExecutionCompletionReason");
42
- const CapabilityExecutionStatus_1 = require("./CapabilityExecutionStatus");
43
- exports.CapabilityExecutionBase = core.serialization.object({
44
- capabilityId: EntityId_1.EntityId,
40
+ const CapabilityRunBase_1 = require("./CapabilityRunBase");
41
+ exports.CapabilityExecutionBase = core.serialization
42
+ .object({
45
43
  subjectId: EntityId_1.EntityId,
46
- status: CapabilityExecutionStatus_1.CapabilityExecutionStatus,
47
- completionReason: CapabilityExecutionCompletionReason_1.CapabilityExecutionCompletionReason.optional(),
48
- message: core.serialization.string().optional(),
49
- startedAt: core.serialization.date(),
50
- completedAt: core.serialization.date().optional(),
51
- durationMs: core.serialization.number().optional(),
52
44
  createdAt: core.serialization.date(),
53
- executionMode: ExecutionMode_1.ExecutionMode,
54
- });
45
+ })
46
+ .extend(CapabilityRunBase_1.CapabilityRunBase);
@@ -0,0 +1,20 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { EntityId } from "../../commons/types/EntityId";
5
+ import { ExecutionMode } from "../../commons/types/ExecutionMode";
6
+ import { CapabilityExecutionCompletionReason } from "./CapabilityExecutionCompletionReason";
7
+ import { CapabilityExecutionStatus } from "./CapabilityExecutionStatus";
8
+ export declare const CapabilityRunBase: core.serialization.ObjectSchema<serializers.CapabilityRunBase.Raw, MavenAGI.CapabilityRunBase>;
9
+ export declare namespace CapabilityRunBase {
10
+ interface Raw {
11
+ capabilityId: EntityId.Raw;
12
+ status: CapabilityExecutionStatus.Raw;
13
+ completionReason?: CapabilityExecutionCompletionReason.Raw | null;
14
+ message?: string | null;
15
+ startedAt: string;
16
+ completedAt?: string | null;
17
+ durationMs?: number | null;
18
+ executionMode: ExecutionMode.Raw;
19
+ }
20
+ }
@@ -0,0 +1,52 @@
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.CapabilityRunBase = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EntityId_1 = require("../../commons/types/EntityId");
40
+ const ExecutionMode_1 = require("../../commons/types/ExecutionMode");
41
+ const CapabilityExecutionCompletionReason_1 = require("./CapabilityExecutionCompletionReason");
42
+ const CapabilityExecutionStatus_1 = require("./CapabilityExecutionStatus");
43
+ exports.CapabilityRunBase = core.serialization.object({
44
+ capabilityId: EntityId_1.EntityId,
45
+ status: CapabilityExecutionStatus_1.CapabilityExecutionStatus,
46
+ completionReason: CapabilityExecutionCompletionReason_1.CapabilityExecutionCompletionReason.optional(),
47
+ message: core.serialization.string().optional(),
48
+ startedAt: core.serialization.date(),
49
+ completedAt: core.serialization.date().optional(),
50
+ durationMs: core.serialization.number().optional(),
51
+ executionMode: ExecutionMode_1.ExecutionMode,
52
+ });
@@ -2,10 +2,18 @@ import type * as MavenAGI from "../../../../api/index";
2
2
  import * as core from "../../../../core";
3
3
  import type * as serializers from "../../../index";
4
4
  import { ActionSimulationInput } from "./ActionSimulationInput";
5
+ import { ConversationKickoffSimulationInput } from "./ConversationKickoffSimulationInput";
6
+ import { TriggerSimulationInput } from "./TriggerSimulationInput";
5
7
  export declare const CapabilitySimulationInput: core.serialization.Schema<serializers.CapabilitySimulationInput.Raw, MavenAGI.CapabilitySimulationInput>;
6
8
  export declare namespace CapabilitySimulationInput {
7
- type Raw = CapabilitySimulationInput.Action;
9
+ type Raw = CapabilitySimulationInput.Action | CapabilitySimulationInput.ConversationKickoff | CapabilitySimulationInput.Trigger;
8
10
  interface Action extends ActionSimulationInput.Raw {
9
11
  capabilityType: "ACTION";
10
12
  }
13
+ interface ConversationKickoff extends ConversationKickoffSimulationInput.Raw {
14
+ capabilityType: "CONVERSATION_KICKOFF";
15
+ }
16
+ interface Trigger extends TriggerSimulationInput.Raw {
17
+ capabilityType: "TRIGGER";
18
+ }
11
19
  }
@@ -37,9 +37,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.CapabilitySimulationInput = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
39
  const ActionSimulationInput_1 = require("./ActionSimulationInput");
40
+ const ConversationKickoffSimulationInput_1 = require("./ConversationKickoffSimulationInput");
41
+ const TriggerSimulationInput_1 = require("./TriggerSimulationInput");
40
42
  exports.CapabilitySimulationInput = core.serialization
41
43
  .union("capabilityType", {
42
44
  ACTION: ActionSimulationInput_1.ActionSimulationInput,
45
+ CONVERSATION_KICKOFF: ConversationKickoffSimulationInput_1.ConversationKickoffSimulationInput,
46
+ TRIGGER: TriggerSimulationInput_1.TriggerSimulationInput,
43
47
  })
44
48
  .transform({
45
49
  transform: (value) => value,
@@ -1,11 +1,19 @@
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 { ConversationKickoffExecutionResponse } from "../../commons/types/ConversationKickoffExecutionResponse";
4
5
  import { ExecuteActionResponse } from "../../commons/types/ExecuteActionResponse";
6
+ import { TriggerSimulationResult } from "./TriggerSimulationResult";
5
7
  export declare const CapabilitySimulationResult: core.serialization.Schema<serializers.CapabilitySimulationResult.Raw, MavenAGI.CapabilitySimulationResult>;
6
8
  export declare namespace CapabilitySimulationResult {
7
- type Raw = CapabilitySimulationResult.Action;
9
+ type Raw = CapabilitySimulationResult.Action | CapabilitySimulationResult.ConversationKickoff | CapabilitySimulationResult.Trigger;
8
10
  interface Action extends ExecuteActionResponse.Raw {
9
11
  capabilityType: "ACTION";
10
12
  }
13
+ interface ConversationKickoff extends ConversationKickoffExecutionResponse.Raw {
14
+ capabilityType: "CONVERSATION_KICKOFF";
15
+ }
16
+ interface Trigger extends TriggerSimulationResult.Raw {
17
+ capabilityType: "TRIGGER";
18
+ }
11
19
  }
@@ -36,10 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.CapabilitySimulationResult = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
+ const ConversationKickoffExecutionResponse_1 = require("../../commons/types/ConversationKickoffExecutionResponse");
39
40
  const ExecuteActionResponse_1 = require("../../commons/types/ExecuteActionResponse");
41
+ const TriggerSimulationResult_1 = require("./TriggerSimulationResult");
40
42
  exports.CapabilitySimulationResult = core.serialization
41
43
  .union("capabilityType", {
42
44
  ACTION: ExecuteActionResponse_1.ExecuteActionResponse,
45
+ CONVERSATION_KICKOFF: ConversationKickoffExecutionResponse_1.ConversationKickoffExecutionResponse,
46
+ TRIGGER: TriggerSimulationResult_1.TriggerSimulationResult,
43
47
  })
44
48
  .transform({
45
49
  transform: (value) => value,
@@ -0,0 +1,9 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { ConversationContextSimulationInput } from "./ConversationContextSimulationInput";
5
+ export declare const ConversationKickoffSimulationInput: core.serialization.ObjectSchema<serializers.ConversationKickoffSimulationInput.Raw, MavenAGI.ConversationKickoffSimulationInput>;
6
+ export declare namespace ConversationKickoffSimulationInput {
7
+ interface Raw extends ConversationContextSimulationInput.Raw {
8
+ }
9
+ }
@@ -0,0 +1,40 @@
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.ConversationKickoffSimulationInput = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const ConversationContextSimulationInput_1 = require("./ConversationContextSimulationInput");
40
+ exports.ConversationKickoffSimulationInput = core.serialization.object({}).extend(ConversationContextSimulationInput_1.ConversationContextSimulationInput);
@@ -1,15 +1,11 @@
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 { EventTriggerType } from "../../commons/types/EventTriggerType";
5
4
  import { CapabilityExecutionBase } from "./CapabilityExecutionBase";
6
- import { CapabilityExecutionRetryability } from "./CapabilityExecutionRetryability";
5
+ import { TriggerRunDetails } from "./TriggerRunDetails";
7
6
  export declare const TriggerCapabilityExecution: core.serialization.ObjectSchema<serializers.TriggerCapabilityExecution.Raw, MavenAGI.TriggerCapabilityExecution>;
8
7
  export declare namespace TriggerCapabilityExecution {
9
- interface Raw extends CapabilityExecutionBase.Raw {
10
- eventType: EventTriggerType.Raw;
8
+ interface Raw extends CapabilityExecutionBase.Raw, TriggerRunDetails.Raw {
11
9
  attempt: number;
12
- retryability?: CapabilityExecutionRetryability.Raw | null;
13
- httpStatus?: number | null;
14
10
  }
15
11
  }
@@ -36,14 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TriggerCapabilityExecution = void 0;
38
38
  const core = __importStar(require("../../../../core"));
39
- const EventTriggerType_1 = require("../../commons/types/EventTriggerType");
40
39
  const CapabilityExecutionBase_1 = require("./CapabilityExecutionBase");
41
- const CapabilityExecutionRetryability_1 = require("./CapabilityExecutionRetryability");
40
+ const TriggerRunDetails_1 = require("./TriggerRunDetails");
42
41
  exports.TriggerCapabilityExecution = core.serialization
43
42
  .object({
44
- eventType: EventTriggerType_1.EventTriggerType,
45
43
  attempt: core.serialization.number(),
46
- retryability: CapabilityExecutionRetryability_1.CapabilityExecutionRetryability.optional(),
47
- httpStatus: core.serialization.number().optional(),
48
44
  })
49
- .extend(CapabilityExecutionBase_1.CapabilityExecutionBase);
45
+ .extend(CapabilityExecutionBase_1.CapabilityExecutionBase)
46
+ .extend(TriggerRunDetails_1.TriggerRunDetails);
@@ -0,0 +1,13 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { EventTriggerType } from "../../commons/types/EventTriggerType";
5
+ import { CapabilityExecutionRetryability } from "./CapabilityExecutionRetryability";
6
+ export declare const TriggerRunDetails: core.serialization.ObjectSchema<serializers.TriggerRunDetails.Raw, MavenAGI.TriggerRunDetails>;
7
+ export declare namespace TriggerRunDetails {
8
+ interface Raw {
9
+ eventType: EventTriggerType.Raw;
10
+ retryability?: CapabilityExecutionRetryability.Raw | null;
11
+ httpStatus?: number | null;
12
+ }
13
+ }
@@ -0,0 +1,45 @@
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.TriggerRunDetails = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EventTriggerType_1 = require("../../commons/types/EventTriggerType");
40
+ const CapabilityExecutionRetryability_1 = require("./CapabilityExecutionRetryability");
41
+ exports.TriggerRunDetails = core.serialization.object({
42
+ eventType: EventTriggerType_1.EventTriggerType,
43
+ retryability: CapabilityExecutionRetryability_1.CapabilityExecutionRetryability.optional(),
44
+ httpStatus: core.serialization.number().optional(),
45
+ });
@@ -0,0 +1,10 @@
1
+ import type * as MavenAGI from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { EventRequest } from "../../commons/types/EventRequest";
5
+ export declare const TriggerSimulationInput: core.serialization.ObjectSchema<serializers.TriggerSimulationInput.Raw, MavenAGI.TriggerSimulationInput>;
6
+ export declare namespace TriggerSimulationInput {
7
+ interface Raw {
8
+ event: EventRequest.Raw;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
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.TriggerSimulationInput = void 0;
38
+ const core = __importStar(require("../../../../core"));
39
+ const EventRequest_1 = require("../../commons/types/EventRequest");
40
+ exports.TriggerSimulationInput = core.serialization.object({
41
+ event: EventRequest_1.EventRequest,
42
+ });