@letta-ai/letta-client 0.1.197 → 0.1.199

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 (270) hide show
  1. package/api/resources/agents/client/Client.d.ts +0 -17
  2. package/api/resources/agents/client/Client.js +11 -95
  3. package/api/resources/agents/client/requests/index.d.ts +0 -1
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  7. package/api/resources/agents/resources/files/client/Client.js +4 -4
  8. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  9. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  10. package/api/resources/agents/resources/index.d.ts +1 -0
  11. package/api/resources/agents/resources/index.js +1 -0
  12. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  13. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  14. package/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -1
  15. package/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +5 -0
  16. package/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  17. package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  18. package/api/resources/agents/resources/messages/types/index.js +1 -0
  19. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  20. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  21. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  22. package/api/resources/agents/resources/tools/client/Client.d.ts +10 -3
  23. package/api/resources/agents/resources/tools/client/Client.js +48 -17
  24. package/api/resources/agents/resources/tools/client/index.d.ts +1 -1
  25. package/api/resources/agents/resources/tools/client/index.js +15 -0
  26. package/api/resources/agents/{client/requests/ModifyApprovalRequest.d.ts → resources/tools/client/requests/ToolsModifyApprovalRequest.d.ts} +1 -1
  27. package/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  28. package/api/resources/agents/resources/tools/client/requests/index.js +2 -0
  29. package/api/resources/batches/client/Client.js +4 -4
  30. package/api/resources/blocks/client/Client.js +6 -6
  31. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  32. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  33. package/api/resources/embeddingModels/client/Client.js +1 -1
  34. package/api/resources/folders/client/Client.js +9 -9
  35. package/api/resources/folders/resources/files/client/Client.js +3 -3
  36. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  37. package/api/resources/groups/client/Client.js +6 -6
  38. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  39. package/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  40. package/api/resources/health/client/Client.js +1 -1
  41. package/api/resources/identities/client/Client.js +7 -7
  42. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  43. package/api/resources/jobs/client/Client.js +5 -5
  44. package/api/resources/messages/client/Client.js +1 -1
  45. package/api/resources/models/client/Client.js +2 -2
  46. package/api/resources/projects/client/Client.js +1 -1
  47. package/api/resources/providers/client/Client.js +6 -6
  48. package/api/resources/runs/client/Client.js +5 -5
  49. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  50. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  51. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  52. package/api/resources/sources/client/Client.js +10 -10
  53. package/api/resources/sources/resources/files/client/Client.js +3 -3
  54. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  55. package/api/resources/steps/client/Client.js +3 -3
  56. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  57. package/api/resources/tags/client/Client.js +1 -1
  58. package/api/resources/telemetry/client/Client.js +1 -1
  59. package/api/resources/templates/client/Client.js +15 -9
  60. package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +8 -0
  61. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  62. package/api/resources/tools/client/Client.js +20 -20
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/types/ApprovalCreate.d.ts +16 -0
  65. package/api/types/ApprovalCreate.js +5 -0
  66. package/api/types/ApprovalRequestMessage.d.ts +27 -0
  67. package/api/types/ApprovalRequestMessage.js +5 -0
  68. package/api/types/ApprovalResponseMessage.d.ts +32 -0
  69. package/api/types/ApprovalResponseMessage.js +5 -0
  70. package/api/types/LettaBatchRequest.d.ts +1 -1
  71. package/api/types/LettaBatchRequestMessagesItem.d.ts +5 -0
  72. package/api/types/LettaBatchRequestMessagesItem.js +5 -0
  73. package/api/types/LettaMessageUnion.d.ts +1 -1
  74. package/api/types/LettaRequest.d.ts +1 -1
  75. package/api/types/LettaRequestMessagesItem.d.ts +5 -0
  76. package/api/types/LettaRequestMessagesItem.js +5 -0
  77. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +2 -0
  78. package/api/types/LettaStreamingRequest.d.ts +2 -2
  79. package/api/types/LettaStreamingRequestMessagesItem.d.ts +5 -0
  80. package/api/types/LettaStreamingRequestMessagesItem.js +5 -0
  81. package/api/types/MessageCreate.d.ts +2 -0
  82. package/api/types/MessageRole.d.ts +2 -1
  83. package/api/types/MessageRole.js +1 -0
  84. package/api/types/Passage.d.ts +2 -0
  85. package/api/types/StopReasonType.d.ts +2 -1
  86. package/api/types/StopReasonType.js +1 -0
  87. package/api/types/index.d.ts +6 -0
  88. package/api/types/index.js +6 -0
  89. package/dist/api/resources/agents/client/Client.d.ts +0 -17
  90. package/dist/api/resources/agents/client/Client.js +11 -95
  91. package/dist/api/resources/agents/client/requests/index.d.ts +0 -1
  92. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  93. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  94. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  95. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  96. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  97. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  98. package/dist/api/resources/agents/resources/index.d.ts +1 -0
  99. package/dist/api/resources/agents/resources/index.js +1 -0
  100. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  101. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  102. package/dist/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -1
  103. package/dist/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +5 -0
  104. package/dist/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +5 -0
  105. package/dist/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  106. package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  107. package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
  108. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  109. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  110. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  111. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +10 -3
  112. package/dist/api/resources/agents/resources/tools/client/Client.js +48 -17
  113. package/dist/api/resources/agents/resources/tools/client/index.d.ts +1 -1
  114. package/dist/api/resources/agents/resources/tools/client/index.js +15 -0
  115. package/dist/api/resources/agents/{client/requests/ModifyApprovalRequest.d.ts → resources/tools/client/requests/ToolsModifyApprovalRequest.d.ts} +1 -1
  116. package/dist/api/resources/agents/resources/tools/client/requests/ToolsModifyApprovalRequest.js +5 -0
  117. package/dist/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  118. package/dist/api/resources/agents/resources/tools/client/requests/index.js +2 -0
  119. package/dist/api/resources/batches/client/Client.js +4 -4
  120. package/dist/api/resources/blocks/client/Client.js +6 -6
  121. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  122. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  123. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  124. package/dist/api/resources/folders/client/Client.js +9 -9
  125. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  126. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  127. package/dist/api/resources/groups/client/Client.js +6 -6
  128. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  129. package/dist/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  130. package/dist/api/resources/health/client/Client.js +1 -1
  131. package/dist/api/resources/identities/client/Client.js +7 -7
  132. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  133. package/dist/api/resources/jobs/client/Client.js +5 -5
  134. package/dist/api/resources/messages/client/Client.js +1 -1
  135. package/dist/api/resources/models/client/Client.js +2 -2
  136. package/dist/api/resources/projects/client/Client.js +1 -1
  137. package/dist/api/resources/providers/client/Client.js +6 -6
  138. package/dist/api/resources/runs/client/Client.js +5 -5
  139. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  140. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  141. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  142. package/dist/api/resources/sources/client/Client.js +10 -10
  143. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  144. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  145. package/dist/api/resources/steps/client/Client.js +3 -3
  146. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  147. package/dist/api/resources/tags/client/Client.js +1 -1
  148. package/dist/api/resources/telemetry/client/Client.js +1 -1
  149. package/dist/api/resources/templates/client/Client.js +15 -9
  150. package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +8 -0
  151. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  152. package/dist/api/resources/tools/client/Client.js +20 -20
  153. package/dist/api/resources/voice/client/Client.js +1 -1
  154. package/dist/api/types/ApprovalCreate.d.ts +16 -0
  155. package/dist/api/types/ApprovalCreate.js +5 -0
  156. package/dist/api/types/ApprovalRequestMessage.d.ts +27 -0
  157. package/dist/api/types/ApprovalRequestMessage.js +5 -0
  158. package/dist/api/types/ApprovalResponseMessage.d.ts +32 -0
  159. package/dist/api/types/ApprovalResponseMessage.js +5 -0
  160. package/dist/api/types/LettaBatchRequest.d.ts +1 -1
  161. package/dist/api/types/LettaBatchRequestMessagesItem.d.ts +5 -0
  162. package/dist/api/types/LettaBatchRequestMessagesItem.js +5 -0
  163. package/dist/api/types/LettaMessageUnion.d.ts +1 -1
  164. package/dist/api/types/LettaRequest.d.ts +1 -1
  165. package/dist/api/types/LettaRequestMessagesItem.d.ts +5 -0
  166. package/dist/api/types/LettaRequestMessagesItem.js +5 -0
  167. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +2 -0
  168. package/dist/api/types/LettaStreamingRequest.d.ts +2 -2
  169. package/dist/api/types/LettaStreamingRequestMessagesItem.d.ts +5 -0
  170. package/dist/api/types/LettaStreamingRequestMessagesItem.js +5 -0
  171. package/dist/api/types/MessageCreate.d.ts +2 -0
  172. package/dist/api/types/MessageRole.d.ts +2 -1
  173. package/dist/api/types/MessageRole.js +1 -0
  174. package/dist/api/types/Passage.d.ts +2 -0
  175. package/dist/api/types/StopReasonType.d.ts +2 -1
  176. package/dist/api/types/StopReasonType.js +1 -0
  177. package/dist/api/types/index.d.ts +6 -0
  178. package/dist/api/types/index.js +6 -0
  179. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -2
  180. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +2 -2
  181. package/dist/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +12 -0
  182. package/dist/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +43 -0
  183. package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  184. package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +4 -0
  185. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  186. package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
  187. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  188. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +4 -0
  189. package/dist/serialization/types/ApprovalCreate.d.ts +15 -0
  190. package/dist/serialization/types/ApprovalCreate.js +46 -0
  191. package/dist/serialization/types/ApprovalRequestMessage.d.ts +23 -0
  192. package/dist/serialization/types/ApprovalRequestMessage.js +54 -0
  193. package/dist/serialization/types/ApprovalResponseMessage.d.ts +24 -0
  194. package/dist/serialization/types/ApprovalResponseMessage.js +55 -0
  195. package/dist/serialization/types/LettaBatchRequest.d.ts +2 -2
  196. package/dist/serialization/types/LettaBatchRequest.js +2 -2
  197. package/dist/serialization/types/LettaBatchRequestMessagesItem.d.ts +12 -0
  198. package/dist/serialization/types/LettaBatchRequestMessagesItem.js +43 -0
  199. package/dist/serialization/types/LettaMessageUnion.d.ts +3 -1
  200. package/dist/serialization/types/LettaMessageUnion.js +4 -0
  201. package/dist/serialization/types/LettaRequest.d.ts +2 -2
  202. package/dist/serialization/types/LettaRequest.js +2 -2
  203. package/dist/serialization/types/LettaRequestMessagesItem.d.ts +12 -0
  204. package/dist/serialization/types/LettaRequestMessagesItem.js +43 -0
  205. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +1 -0
  206. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +1 -0
  207. package/dist/serialization/types/LettaStreamingRequest.d.ts +2 -2
  208. package/dist/serialization/types/LettaStreamingRequest.js +2 -2
  209. package/dist/serialization/types/LettaStreamingRequestMessagesItem.d.ts +12 -0
  210. package/dist/serialization/types/LettaStreamingRequestMessagesItem.js +43 -0
  211. package/dist/serialization/types/MessageCreate.d.ts +1 -0
  212. package/dist/serialization/types/MessageCreate.js +1 -0
  213. package/dist/serialization/types/MessageRole.d.ts +1 -1
  214. package/dist/serialization/types/MessageRole.js +1 -1
  215. package/dist/serialization/types/Passage.d.ts +1 -0
  216. package/dist/serialization/types/Passage.js +1 -0
  217. package/dist/serialization/types/StopReasonType.d.ts +1 -1
  218. package/dist/serialization/types/StopReasonType.js +1 -0
  219. package/dist/serialization/types/index.d.ts +6 -0
  220. package/dist/serialization/types/index.js +6 -0
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/package.json +1 -1
  224. package/reference.md +28 -84
  225. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -2
  226. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +2 -2
  227. package/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +12 -0
  228. package/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +43 -0
  229. package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  230. package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +4 -0
  231. package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  232. package/serialization/resources/agents/resources/messages/types/index.js +1 -0
  233. package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  234. package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +4 -0
  235. package/serialization/types/ApprovalCreate.d.ts +15 -0
  236. package/serialization/types/ApprovalCreate.js +46 -0
  237. package/serialization/types/ApprovalRequestMessage.d.ts +23 -0
  238. package/serialization/types/ApprovalRequestMessage.js +54 -0
  239. package/serialization/types/ApprovalResponseMessage.d.ts +24 -0
  240. package/serialization/types/ApprovalResponseMessage.js +55 -0
  241. package/serialization/types/LettaBatchRequest.d.ts +2 -2
  242. package/serialization/types/LettaBatchRequest.js +2 -2
  243. package/serialization/types/LettaBatchRequestMessagesItem.d.ts +12 -0
  244. package/serialization/types/LettaBatchRequestMessagesItem.js +43 -0
  245. package/serialization/types/LettaMessageUnion.d.ts +3 -1
  246. package/serialization/types/LettaMessageUnion.js +4 -0
  247. package/serialization/types/LettaRequest.d.ts +2 -2
  248. package/serialization/types/LettaRequest.js +2 -2
  249. package/serialization/types/LettaRequestMessagesItem.d.ts +12 -0
  250. package/serialization/types/LettaRequestMessagesItem.js +43 -0
  251. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +1 -0
  252. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +1 -0
  253. package/serialization/types/LettaStreamingRequest.d.ts +2 -2
  254. package/serialization/types/LettaStreamingRequest.js +2 -2
  255. package/serialization/types/LettaStreamingRequestMessagesItem.d.ts +12 -0
  256. package/serialization/types/LettaStreamingRequestMessagesItem.js +43 -0
  257. package/serialization/types/MessageCreate.d.ts +1 -0
  258. package/serialization/types/MessageCreate.js +1 -0
  259. package/serialization/types/MessageRole.d.ts +1 -1
  260. package/serialization/types/MessageRole.js +1 -1
  261. package/serialization/types/Passage.d.ts +1 -0
  262. package/serialization/types/Passage.js +1 -0
  263. package/serialization/types/StopReasonType.d.ts +1 -1
  264. package/serialization/types/StopReasonType.js +1 -0
  265. package/serialization/types/index.d.ts +6 -0
  266. package/serialization/types/index.js +6 -0
  267. package/version.d.ts +1 -1
  268. package/version.js +1 -1
  269. /package/api/resources/agents/{client/requests/ModifyApprovalRequest.js → resources/messages/types/LettaAsyncRequestMessagesItem.js} +0 -0
  270. /package/{dist/api/resources/agents/client/requests/ModifyApprovalRequest.js → api/resources/agents/resources/tools/client/requests/ToolsModifyApprovalRequest.js} +0 -0
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -307,7 +307,7 @@ class Tools {
307
307
  method: "GET",
308
308
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
309
309
  ? yield core.Supplier.get(this._options.project)
310
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
310
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
311
311
  contentType: "application/json",
312
312
  queryParameters: _queryParams,
313
313
  requestType: "json",
@@ -395,7 +395,7 @@ class Tools {
395
395
  method: "GET",
396
396
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
397
397
  ? yield core.Supplier.get(this._options.project)
398
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
398
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
399
399
  contentType: "application/json",
400
400
  queryParameters: _queryParams,
401
401
  requestType: "json",
@@ -474,7 +474,7 @@ class Tools {
474
474
  method: "POST",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
477
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
478
478
  contentType: "application/json",
479
479
  requestType: "json",
480
480
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -553,7 +553,7 @@ class Tools {
553
553
  method: "PUT",
554
554
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
555
555
  ? yield core.Supplier.get(this._options.project)
556
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
556
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
557
557
  contentType: "application/json",
558
558
  requestType: "json",
559
559
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -629,7 +629,7 @@ class Tools {
629
629
  method: "POST",
630
630
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
631
631
  ? yield core.Supplier.get(this._options.project)
632
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
632
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
633
633
  contentType: "application/json",
634
634
  requestType: "json",
635
635
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -710,7 +710,7 @@ class Tools {
710
710
  method: "POST",
711
711
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
712
712
  ? yield core.Supplier.get(this._options.project)
713
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
713
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
714
714
  contentType: "application/json",
715
715
  requestType: "json",
716
716
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -788,7 +788,7 @@ class Tools {
788
788
  method: "GET",
789
789
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
790
790
  ? yield core.Supplier.get(this._options.project)
791
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
791
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
792
792
  contentType: "application/json",
793
793
  requestType: "json",
794
794
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -864,7 +864,7 @@ class Tools {
864
864
  method: "GET",
865
865
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
866
866
  ? yield core.Supplier.get(this._options.project)
867
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
867
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
868
868
  contentType: "application/json",
869
869
  requestType: "json",
870
870
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -940,7 +940,7 @@ class Tools {
940
940
  method: "POST",
941
941
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
942
942
  ? yield core.Supplier.get(this._options.project)
943
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
943
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
944
944
  contentType: "application/json",
945
945
  requestType: "json",
946
946
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1017,7 +1017,7 @@ class Tools {
1017
1017
  method: "GET",
1018
1018
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1019
1019
  ? yield core.Supplier.get(this._options.project)
1020
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1020
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1021
1021
  contentType: "application/json",
1022
1022
  requestType: "json",
1023
1023
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1097,7 +1097,7 @@ class Tools {
1097
1097
  method: "PUT",
1098
1098
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1099
1099
  ? yield core.Supplier.get(this._options.project)
1100
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1100
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1101
1101
  contentType: "application/json",
1102
1102
  requestType: "json",
1103
1103
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1174,7 +1174,7 @@ class Tools {
1174
1174
  method: "GET",
1175
1175
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1176
1176
  ? yield core.Supplier.get(this._options.project)
1177
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1177
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1178
1178
  contentType: "application/json",
1179
1179
  requestType: "json",
1180
1180
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1251,7 +1251,7 @@ class Tools {
1251
1251
  method: "POST",
1252
1252
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1253
1253
  ? yield core.Supplier.get(this._options.project)
1254
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1254
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1255
1255
  contentType: "application/json",
1256
1256
  requestType: "json",
1257
1257
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1327,7 +1327,7 @@ class Tools {
1327
1327
  method: "DELETE",
1328
1328
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1329
1329
  ? yield core.Supplier.get(this._options.project)
1330
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1330
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1331
1331
  contentType: "application/json",
1332
1332
  requestType: "json",
1333
1333
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1404,7 +1404,7 @@ class Tools {
1404
1404
  method: "PATCH",
1405
1405
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1406
1406
  ? yield core.Supplier.get(this._options.project)
1407
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1407
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1408
1408
  contentType: "application/json",
1409
1409
  requestType: "json",
1410
1410
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1486,7 +1486,7 @@ class Tools {
1486
1486
  method: "POST",
1487
1487
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1488
1488
  ? yield core.Supplier.get(this._options.project)
1489
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1489
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1490
1490
  contentType: "application/json",
1491
1491
  requestType: "json",
1492
1492
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1547,7 +1547,7 @@ class Tools {
1547
1547
  method: "POST",
1548
1548
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1549
1549
  ? yield core.Supplier.get(this._options.project)
1550
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1550
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1551
1551
  contentType: "application/json",
1552
1552
  requestType: "json",
1553
1553
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -85,7 +85,7 @@ class Voice {
85
85
  method: "POST",
86
86
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
87
  ? yield core.Supplier.get(this._options.project)
88
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Input to approve or deny a tool call request
6
+ */
7
+ export interface ApprovalCreate {
8
+ /** The message type to be created. */
9
+ type?: "approval";
10
+ /** Whether the tool has been approved */
11
+ approve: boolean;
12
+ /** The message ID of the approval request */
13
+ approvalRequestId: string;
14
+ /** An optional explanation for the provided approval status */
15
+ reason?: string;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * A message representing a request for approval to call a tool (generated by the LLM to trigger tool execution).
7
+ *
8
+ * Args:
9
+ * id (str): The ID of the message
10
+ * date (datetime): The date the message was created in ISO format
11
+ * name (Optional[str]): The name of the sender of the message
12
+ * tool_call (ToolCall): The tool call
13
+ */
14
+ export interface ApprovalRequestMessage {
15
+ id: string;
16
+ date: Date;
17
+ name?: string;
18
+ messageType: "approval_request_message";
19
+ otid?: string;
20
+ senderId?: string;
21
+ stepId?: string;
22
+ isErr?: boolean;
23
+ seqId?: number;
24
+ runId?: string;
25
+ /** The tool call that has been requested by the llm to run */
26
+ toolCall: Letta.ToolCall;
27
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A message representing a response form the user indicating whether a tool has been approved to run.
6
+ *
7
+ * Args:
8
+ * id (str): The ID of the message
9
+ * date (datetime): The date the message was created in ISO format
10
+ * name (Optional[str]): The name of the sender of the message
11
+ * approve: (bool) Whether the tool has been approved
12
+ * approval_request_id: The ID of the approval request
13
+ * reason: (Optional[str]) An optional explanation for the provided approval status
14
+ */
15
+ export interface ApprovalResponseMessage {
16
+ id: string;
17
+ date: Date;
18
+ name?: string;
19
+ messageType: "approval_response_message";
20
+ otid?: string;
21
+ senderId?: string;
22
+ stepId?: string;
23
+ isErr?: boolean;
24
+ seqId?: number;
25
+ runId?: string;
26
+ /** Whether the tool has been approved */
27
+ approve: boolean;
28
+ /** The message ID of the approval request */
29
+ approvalRequestId: string;
30
+ /** An optional explanation for the provided approval status */
31
+ reason?: string;
32
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,7 +4,7 @@
4
4
  import * as Letta from "../index";
5
5
  export interface LettaBatchRequest {
6
6
  /** The messages to be sent to the agent. */
7
- messages: Letta.MessageCreate[];
7
+ messages: Letta.LettaBatchRequestMessagesItem[];
8
8
  /** Maximum number of steps the agent should take to process the request. */
9
9
  maxSteps?: number;
10
10
  /** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type LettaBatchRequestMessagesItem = Letta.MessageCreate | Letta.ApprovalCreate;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type LettaMessageUnion = Letta.SystemMessage | Letta.UserMessage | Letta.ReasoningMessage | Letta.HiddenReasoningMessage | Letta.ToolCallMessage | Letta.ToolReturnMessage | Letta.AssistantMessage;
5
+ export type LettaMessageUnion = Letta.SystemMessage | Letta.UserMessage | Letta.ReasoningMessage | Letta.HiddenReasoningMessage | Letta.ToolCallMessage | Letta.ToolReturnMessage | Letta.AssistantMessage | Letta.ApprovalRequestMessage | Letta.ApprovalResponseMessage;
@@ -4,7 +4,7 @@
4
4
  import * as Letta from "../index";
5
5
  export interface LettaRequest {
6
6
  /** The messages to be sent to the agent. */
7
- messages: Letta.MessageCreate[];
7
+ messages: Letta.LettaRequestMessagesItem[];
8
8
  /** Maximum number of steps the agent should take to process the request. */
9
9
  maxSteps?: number;
10
10
  /** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type LettaRequestMessagesItem = Letta.MessageCreate | Letta.ApprovalCreate;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,6 +6,8 @@ import * as Letta from "../index";
6
6
  * Message with human-readable ID for agent file
7
7
  */
8
8
  export interface LettaSchemasAgentFileMessageSchema {
9
+ /** The message type to be created. */
10
+ type?: "message";
9
11
  /** The role of the participant. */
10
12
  role: Letta.MessageRole;
11
13
  /** The content of the message. */
@@ -4,7 +4,7 @@
4
4
  import * as Letta from "../index";
5
5
  export interface LettaStreamingRequest {
6
6
  /** The messages to be sent to the agent. */
7
- messages: Letta.MessageCreate[];
7
+ messages: Letta.LettaStreamingRequestMessagesItem[];
8
8
  /** Maximum number of steps the agent should take to process the request. */
9
9
  maxSteps?: number;
10
10
  /** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
@@ -17,7 +17,7 @@ export interface LettaStreamingRequest {
17
17
  includeReturnMessageTypes?: Letta.MessageType[];
18
18
  /** If set to True, enables reasoning before responses or tool calls from the agent. */
19
19
  enableThinking?: string;
20
- /** Flag to determine if individual tokens should be streamed. Set to True for token streaming (requires stream_steps = True). */
20
+ /** Flag to determine if individual tokens should be streamed, rather than streaming per step. */
21
21
  streamTokens?: boolean;
22
22
  /** Whether to include periodic keepalive ping messages in the stream to prevent connection timeouts. */
23
23
  includePings?: boolean;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type LettaStreamingRequestMessagesItem = Letta.MessageCreate | Letta.ApprovalCreate;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,6 +6,8 @@ import * as Letta from "../index";
6
6
  * Request to create a message
7
7
  */
8
8
  export interface MessageCreate {
9
+ /** The message type to be created. */
10
+ type?: "message";
9
11
  /** The role of the participant. */
10
12
  role: Letta.MessageCreateRole;
11
13
  /** The content of the message. */
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type MessageRole = "assistant" | "user" | "tool" | "function" | "system";
4
+ export type MessageRole = "assistant" | "user" | "tool" | "function" | "system" | "approval";
5
5
  export declare const MessageRole: {
6
6
  readonly Assistant: "assistant";
7
7
  readonly User: "user";
8
8
  readonly Tool: "tool";
9
9
  readonly Function: "function";
10
10
  readonly System: "system";
11
+ readonly Approval: "approval";
11
12
  };
@@ -10,4 +10,5 @@ exports.MessageRole = {
10
10
  Tool: "tool",
11
11
  Function: "function",
12
12
  System: "system",
13
+ Approval: "approval",
13
14
  };
@@ -36,6 +36,8 @@ export interface Passage {
36
36
  fileName?: string;
37
37
  /** The metadata of the passage. */
38
38
  metadata?: Record<string, unknown>;
39
+ /** Tags associated with this passage. */
40
+ tags?: string[];
39
41
  /** The human-friendly ID of the Passage */
40
42
  id?: string;
41
43
  /** The text of the passage. */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type StopReasonType = "end_turn" | "error" | "invalid_llm_response" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
4
+ export type StopReasonType = "end_turn" | "error" | "invalid_llm_response" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled" | "requires_approval";
5
5
  export declare const StopReasonType: {
6
6
  readonly EndTurn: "end_turn";
7
7
  readonly Error: "error";
@@ -11,4 +11,5 @@ export declare const StopReasonType: {
11
11
  readonly NoToolCall: "no_tool_call";
12
12
  readonly ToolRule: "tool_rule";
13
13
  readonly Cancelled: "cancelled";
14
+ readonly RequiresApproval: "requires_approval";
14
15
  };
@@ -13,4 +13,5 @@ exports.StopReasonType = {
13
13
  NoToolCall: "no_tool_call",
14
14
  ToolRule: "tool_rule",
15
15
  Cancelled: "cancelled",
16
+ RequiresApproval: "requires_approval",
16
17
  };
@@ -15,6 +15,9 @@ export * from "./AgentType";
15
15
  export * from "./AppAuthSchemeAuthMode";
16
16
  export * from "./AppAuthScheme";
17
17
  export * from "./AppModel";
18
+ export * from "./ApprovalCreate";
19
+ export * from "./ApprovalRequestMessage";
20
+ export * from "./ApprovalResponseMessage";
18
21
  export * from "./AssistantMessageContent";
19
22
  export * from "./AssistantMessage";
20
23
  export * from "./Audio";
@@ -156,12 +159,15 @@ export * from "./LlmConfigCompatibilityType";
156
159
  export * from "./LlmConfigVerbosity";
157
160
  export * from "./LlmConfig";
158
161
  export * from "./LettaBatchMessages";
162
+ export * from "./LettaBatchRequestMessagesItem";
159
163
  export * from "./LettaBatchRequest";
160
164
  export * from "./LettaImage";
165
+ export * from "./LettaRequestMessagesItem";
161
166
  export * from "./LettaRequest";
162
167
  export * from "./LettaRequestConfig";
163
168
  export * from "./LettaResponse";
164
169
  export * from "./LettaStopReason";
170
+ export * from "./LettaStreamingRequestMessagesItem";
165
171
  export * from "./LettaStreamingRequest";
166
172
  export * from "./LettaUsageStatistics";
167
173
  export * from "./LocalSandboxConfig";
@@ -31,6 +31,9 @@ __exportStar(require("./AgentType"), exports);
31
31
  __exportStar(require("./AppAuthSchemeAuthMode"), exports);
32
32
  __exportStar(require("./AppAuthScheme"), exports);
33
33
  __exportStar(require("./AppModel"), exports);
34
+ __exportStar(require("./ApprovalCreate"), exports);
35
+ __exportStar(require("./ApprovalRequestMessage"), exports);
36
+ __exportStar(require("./ApprovalResponseMessage"), exports);
34
37
  __exportStar(require("./AssistantMessageContent"), exports);
35
38
  __exportStar(require("./AssistantMessage"), exports);
36
39
  __exportStar(require("./Audio"), exports);
@@ -172,12 +175,15 @@ __exportStar(require("./LlmConfigCompatibilityType"), exports);
172
175
  __exportStar(require("./LlmConfigVerbosity"), exports);
173
176
  __exportStar(require("./LlmConfig"), exports);
174
177
  __exportStar(require("./LettaBatchMessages"), exports);
178
+ __exportStar(require("./LettaBatchRequestMessagesItem"), exports);
175
179
  __exportStar(require("./LettaBatchRequest"), exports);
176
180
  __exportStar(require("./LettaImage"), exports);
181
+ __exportStar(require("./LettaRequestMessagesItem"), exports);
177
182
  __exportStar(require("./LettaRequest"), exports);
178
183
  __exportStar(require("./LettaRequestConfig"), exports);
179
184
  __exportStar(require("./LettaResponse"), exports);
180
185
  __exportStar(require("./LettaStopReason"), exports);
186
+ __exportStar(require("./LettaStreamingRequestMessagesItem"), exports);
181
187
  __exportStar(require("./LettaStreamingRequest"), exports);
182
188
  __exportStar(require("./LettaUsageStatistics"), exports);
183
189
  __exportStar(require("./LocalSandboxConfig"), exports);
@@ -4,12 +4,12 @@
4
4
  import * as serializers from "../../../../../../index";
5
5
  import * as Letta from "../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../core";
7
- import { MessageCreate } from "../../../../../../types/MessageCreate";
7
+ import { LettaAsyncRequestMessagesItem } from "../../types/LettaAsyncRequestMessagesItem";
8
8
  import { MessageType } from "../../../../../../types/MessageType";
9
9
  export declare const LettaAsyncRequest: core.serialization.Schema<serializers.agents.LettaAsyncRequest.Raw, Letta.agents.LettaAsyncRequest>;
10
10
  export declare namespace LettaAsyncRequest {
11
11
  interface Raw {
12
- messages: MessageCreate.Raw[];
12
+ messages: LettaAsyncRequestMessagesItem.Raw[];
13
13
  max_steps?: number | null;
14
14
  use_assistant_message?: boolean | null;
15
15
  assistant_message_tool_name?: string | null;
@@ -38,10 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.LettaAsyncRequest = void 0;
40
40
  const core = __importStar(require("../../../../../../../core"));
41
- const MessageCreate_1 = require("../../../../../../types/MessageCreate");
41
+ const LettaAsyncRequestMessagesItem_1 = require("../../types/LettaAsyncRequestMessagesItem");
42
42
  const MessageType_1 = require("../../../../../../types/MessageType");
43
43
  exports.LettaAsyncRequest = core.serialization.object({
44
- messages: core.serialization.list(MessageCreate_1.MessageCreate),
44
+ messages: core.serialization.list(LettaAsyncRequestMessagesItem_1.LettaAsyncRequestMessagesItem),
45
45
  maxSteps: core.serialization.property("max_steps", core.serialization.number().optional()),
46
46
  useAssistantMessage: core.serialization.property("use_assistant_message", core.serialization.boolean().optional()),
47
47
  assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as Letta from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { MessageCreate } from "../../../../../types/MessageCreate";
8
+ import { ApprovalCreate } from "../../../../../types/ApprovalCreate";
9
+ export declare const LettaAsyncRequestMessagesItem: core.serialization.Schema<serializers.agents.LettaAsyncRequestMessagesItem.Raw, Letta.agents.LettaAsyncRequestMessagesItem>;
10
+ export declare namespace LettaAsyncRequestMessagesItem {
11
+ type Raw = MessageCreate.Raw | ApprovalCreate.Raw;
12
+ }