@letta-ai/letta-client 0.1.79 → 0.1.81

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 (276) hide show
  1. package/api/resources/agents/client/Client.js +13 -10
  2. package/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +4 -0
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  4. package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  10. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  14. package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +1 -1
  15. package/api/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +8 -0
  16. package/api/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +1 -1
  17. package/api/resources/agents/types/index.d.ts +2 -1
  18. package/api/resources/agents/types/index.js +2 -1
  19. package/api/resources/blocks/client/Client.js +6 -6
  20. package/api/resources/groups/client/Client.js +7 -7
  21. package/api/resources/groups/client/requests/GroupCreate.d.ts +2 -0
  22. package/api/resources/groups/client/requests/GroupUpdate.d.ts +2 -0
  23. package/api/resources/groups/resources/messages/client/Client.js +4 -4
  24. package/api/resources/groups/types/GroupCreateManagerConfig.d.ts +1 -1
  25. package/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +1 -1
  26. package/api/resources/health/client/Client.js +1 -1
  27. package/api/resources/identities/client/Client.js +6 -6
  28. package/api/resources/jobs/client/Client.js +4 -4
  29. package/api/resources/models/client/Client.js +2 -2
  30. package/api/resources/providers/client/Client.js +4 -4
  31. package/api/resources/runs/client/Client.d.ts +4 -2
  32. package/api/resources/runs/client/Client.js +35 -11
  33. package/api/resources/runs/client/requests/ListActiveRunsRequest.d.ts +13 -0
  34. package/api/resources/runs/client/requests/ListActiveRunsRequest.js +5 -0
  35. package/api/resources/runs/client/requests/ListRunsRequest.d.ts +13 -0
  36. package/api/resources/runs/client/requests/ListRunsRequest.js +5 -0
  37. package/api/resources/runs/client/requests/index.d.ts +2 -0
  38. package/api/resources/sources/client/Client.js +6 -6
  39. package/api/resources/sources/resources/files/client/Client.js +3 -3
  40. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  41. package/api/resources/steps/client/Client.js +2 -2
  42. package/api/resources/tag/client/Client.js +1 -1
  43. package/api/resources/templates/client/Client.js +1 -1
  44. package/api/resources/tools/client/Client.js +16 -16
  45. package/api/resources/voice/client/Client.js +1 -1
  46. package/api/types/AgentState.d.ts +2 -0
  47. package/api/types/AgentType.d.ts +2 -2
  48. package/api/types/AgentType.js +1 -1
  49. package/api/types/AppAuthSchemeAuthMode.d.ts +1 -2
  50. package/api/types/AppAuthSchemeAuthMode.js +0 -1
  51. package/api/types/AssistantMessage.d.ts +1 -0
  52. package/api/types/ChatCompletionAudioParamVoice.d.ts +1 -11
  53. package/api/types/ChatCompletionAudioParamVoice.js +0 -11
  54. package/api/types/Group.d.ts +8 -0
  55. package/api/types/HiddenReasoningMessage.d.ts +1 -0
  56. package/api/types/JobStatus.d.ts +3 -1
  57. package/api/types/JobStatus.js +2 -0
  58. package/api/types/LettaUsageStatistics.d.ts +2 -0
  59. package/api/types/ManagerType.d.ts +2 -1
  60. package/api/types/ManagerType.js +1 -0
  61. package/api/types/Message.d.ts +7 -7
  62. package/api/types/MessageCreate.d.ts +2 -0
  63. package/api/types/ReasoningMessage.d.ts +1 -0
  64. package/api/types/SleeptimeManager.d.ts +10 -0
  65. package/api/types/SleeptimeManager.js +5 -0
  66. package/api/types/SystemMessage.d.ts +1 -0
  67. package/api/types/ToolCallMessage.d.ts +1 -0
  68. package/api/types/ToolReturnMessage.d.ts +1 -0
  69. package/api/types/ToolType.d.ts +2 -1
  70. package/api/types/ToolType.js +1 -0
  71. package/api/types/UserMessage.d.ts +1 -0
  72. package/api/types/index.d.ts +1 -0
  73. package/api/types/index.js +1 -0
  74. package/dist/api/resources/agents/client/Client.js +13 -10
  75. package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +4 -0
  76. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  77. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  78. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  79. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  80. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  81. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  82. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  83. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  84. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  85. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  86. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  87. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +1 -1
  88. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +8 -0
  89. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOperator.js +5 -0
  90. package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +1 -1
  91. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTwo.js +5 -0
  92. package/dist/api/resources/agents/types/index.d.ts +2 -1
  93. package/dist/api/resources/agents/types/index.js +2 -1
  94. package/dist/api/resources/blocks/client/Client.js +6 -6
  95. package/dist/api/resources/groups/client/Client.js +7 -7
  96. package/dist/api/resources/groups/client/requests/GroupCreate.d.ts +2 -0
  97. package/dist/api/resources/groups/client/requests/GroupUpdate.d.ts +2 -0
  98. package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
  99. package/dist/api/resources/groups/types/GroupCreateManagerConfig.d.ts +1 -1
  100. package/dist/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +1 -1
  101. package/dist/api/resources/health/client/Client.js +1 -1
  102. package/dist/api/resources/identities/client/Client.js +6 -6
  103. package/dist/api/resources/jobs/client/Client.js +4 -4
  104. package/dist/api/resources/models/client/Client.js +2 -2
  105. package/dist/api/resources/providers/client/Client.js +4 -4
  106. package/dist/api/resources/runs/client/Client.d.ts +4 -2
  107. package/dist/api/resources/runs/client/Client.js +35 -11
  108. package/dist/api/resources/runs/client/requests/ListActiveRunsRequest.d.ts +13 -0
  109. package/dist/api/resources/runs/client/requests/ListActiveRunsRequest.js +5 -0
  110. package/dist/api/resources/runs/client/requests/ListRunsRequest.d.ts +13 -0
  111. package/dist/api/resources/runs/client/requests/ListRunsRequest.js +5 -0
  112. package/dist/api/resources/runs/client/requests/index.d.ts +2 -0
  113. package/dist/api/resources/sources/client/Client.js +6 -6
  114. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  115. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  116. package/dist/api/resources/steps/client/Client.js +2 -2
  117. package/dist/api/resources/tag/client/Client.js +1 -1
  118. package/dist/api/resources/templates/client/Client.js +1 -1
  119. package/dist/api/resources/tools/client/Client.js +16 -16
  120. package/dist/api/resources/voice/client/Client.js +1 -1
  121. package/dist/api/types/AgentState.d.ts +2 -0
  122. package/dist/api/types/AgentType.d.ts +2 -2
  123. package/dist/api/types/AgentType.js +1 -1
  124. package/dist/api/types/AppAuthSchemeAuthMode.d.ts +1 -2
  125. package/dist/api/types/AppAuthSchemeAuthMode.js +0 -1
  126. package/dist/api/types/AssistantMessage.d.ts +1 -0
  127. package/dist/api/types/ChatCompletionAudioParamVoice.d.ts +1 -11
  128. package/dist/api/types/ChatCompletionAudioParamVoice.js +0 -11
  129. package/dist/api/types/Group.d.ts +8 -0
  130. package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
  131. package/dist/api/types/JobStatus.d.ts +3 -1
  132. package/dist/api/types/JobStatus.js +2 -0
  133. package/dist/api/types/LettaUsageStatistics.d.ts +2 -0
  134. package/dist/api/types/ManagerType.d.ts +2 -1
  135. package/dist/api/types/ManagerType.js +1 -0
  136. package/dist/api/types/Message.d.ts +7 -7
  137. package/dist/api/types/MessageCreate.d.ts +2 -0
  138. package/dist/api/types/ReasoningMessage.d.ts +1 -0
  139. package/dist/api/types/SleeptimeManager.d.ts +10 -0
  140. package/dist/api/types/SleeptimeManager.js +5 -0
  141. package/dist/api/types/SystemMessage.d.ts +1 -0
  142. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  143. package/dist/api/types/ToolReturnMessage.d.ts +1 -0
  144. package/dist/api/types/ToolType.d.ts +2 -1
  145. package/dist/api/types/ToolType.js +1 -0
  146. package/dist/api/types/UserMessage.d.ts +1 -0
  147. package/dist/api/types/index.d.ts +1 -0
  148. package/dist/api/types/index.js +1 -0
  149. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  150. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  151. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  152. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  153. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +3 -2
  154. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +4 -2
  155. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +14 -0
  156. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.js +45 -0
  157. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +2 -2
  158. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemTwo.js} +2 -2
  159. package/dist/serialization/resources/agents/types/index.d.ts +2 -1
  160. package/dist/serialization/resources/agents/types/index.js +2 -1
  161. package/dist/serialization/resources/groups/client/requests/GroupCreate.d.ts +1 -0
  162. package/dist/serialization/resources/groups/client/requests/GroupCreate.js +1 -0
  163. package/dist/serialization/resources/groups/client/requests/GroupUpdate.d.ts +1 -0
  164. package/dist/serialization/resources/groups/client/requests/GroupUpdate.js +1 -0
  165. package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +2 -1
  166. package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.js +2 -1
  167. package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +2 -1
  168. package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.js +2 -1
  169. package/dist/serialization/types/AgentState.d.ts +1 -0
  170. package/dist/serialization/types/AgentState.js +1 -0
  171. package/dist/serialization/types/AgentType.d.ts +1 -1
  172. package/dist/serialization/types/AgentType.js +1 -1
  173. package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
  174. package/dist/serialization/types/AppAuthSchemeAuthMode.js +0 -1
  175. package/dist/serialization/types/AssistantMessage.d.ts +1 -0
  176. package/dist/serialization/types/AssistantMessage.js +1 -0
  177. package/dist/serialization/types/ChatCompletionAudioParamVoice.d.ts +1 -1
  178. package/dist/serialization/types/ChatCompletionAudioParamVoice.js +14 -1
  179. package/dist/serialization/types/Group.d.ts +4 -0
  180. package/dist/serialization/types/Group.js +4 -0
  181. package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  182. package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
  183. package/dist/serialization/types/JobStatus.d.ts +1 -1
  184. package/dist/serialization/types/JobStatus.js +1 -1
  185. package/dist/serialization/types/LettaUsageStatistics.d.ts +1 -0
  186. package/dist/serialization/types/LettaUsageStatistics.js +1 -0
  187. package/dist/serialization/types/ManagerType.d.ts +1 -1
  188. package/dist/serialization/types/ManagerType.js +1 -1
  189. package/dist/serialization/types/Message.d.ts +2 -2
  190. package/dist/serialization/types/Message.js +2 -2
  191. package/dist/serialization/types/MessageCreate.d.ts +1 -0
  192. package/dist/serialization/types/MessageCreate.js +1 -0
  193. package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
  194. package/dist/serialization/types/ReasoningMessage.js +1 -0
  195. package/dist/serialization/types/SleeptimeManager.d.ts +14 -0
  196. package/dist/serialization/types/SleeptimeManager.js +45 -0
  197. package/dist/serialization/types/SystemMessage.d.ts +1 -0
  198. package/dist/serialization/types/SystemMessage.js +1 -0
  199. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  200. package/dist/serialization/types/ToolCallMessage.js +1 -0
  201. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  202. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  203. package/dist/serialization/types/ToolType.d.ts +1 -1
  204. package/dist/serialization/types/ToolType.js +1 -0
  205. package/dist/serialization/types/UserMessage.d.ts +1 -0
  206. package/dist/serialization/types/UserMessage.js +1 -0
  207. package/dist/serialization/types/index.d.ts +1 -0
  208. package/dist/serialization/types/index.js +1 -0
  209. package/dist/version.d.ts +1 -1
  210. package/dist/version.js +1 -1
  211. package/package.json +1 -1
  212. package/reference.md +18 -2
  213. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  214. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  215. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  216. package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  217. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +3 -2
  218. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +4 -2
  219. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +14 -0
  220. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.js +45 -0
  221. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +2 -2
  222. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemTwo.js} +2 -2
  223. package/serialization/resources/agents/types/index.d.ts +2 -1
  224. package/serialization/resources/agents/types/index.js +2 -1
  225. package/serialization/resources/groups/client/requests/GroupCreate.d.ts +1 -0
  226. package/serialization/resources/groups/client/requests/GroupCreate.js +1 -0
  227. package/serialization/resources/groups/client/requests/GroupUpdate.d.ts +1 -0
  228. package/serialization/resources/groups/client/requests/GroupUpdate.js +1 -0
  229. package/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +2 -1
  230. package/serialization/resources/groups/types/GroupCreateManagerConfig.js +2 -1
  231. package/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +2 -1
  232. package/serialization/resources/groups/types/GroupUpdateManagerConfig.js +2 -1
  233. package/serialization/types/AgentState.d.ts +1 -0
  234. package/serialization/types/AgentState.js +1 -0
  235. package/serialization/types/AgentType.d.ts +1 -1
  236. package/serialization/types/AgentType.js +1 -1
  237. package/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
  238. package/serialization/types/AppAuthSchemeAuthMode.js +0 -1
  239. package/serialization/types/AssistantMessage.d.ts +1 -0
  240. package/serialization/types/AssistantMessage.js +1 -0
  241. package/serialization/types/ChatCompletionAudioParamVoice.d.ts +1 -1
  242. package/serialization/types/ChatCompletionAudioParamVoice.js +14 -1
  243. package/serialization/types/Group.d.ts +4 -0
  244. package/serialization/types/Group.js +4 -0
  245. package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  246. package/serialization/types/HiddenReasoningMessage.js +1 -0
  247. package/serialization/types/JobStatus.d.ts +1 -1
  248. package/serialization/types/JobStatus.js +1 -1
  249. package/serialization/types/LettaUsageStatistics.d.ts +1 -0
  250. package/serialization/types/LettaUsageStatistics.js +1 -0
  251. package/serialization/types/ManagerType.d.ts +1 -1
  252. package/serialization/types/ManagerType.js +1 -1
  253. package/serialization/types/Message.d.ts +2 -2
  254. package/serialization/types/Message.js +2 -2
  255. package/serialization/types/MessageCreate.d.ts +1 -0
  256. package/serialization/types/MessageCreate.js +1 -0
  257. package/serialization/types/ReasoningMessage.d.ts +1 -0
  258. package/serialization/types/ReasoningMessage.js +1 -0
  259. package/serialization/types/SleeptimeManager.d.ts +14 -0
  260. package/serialization/types/SleeptimeManager.js +45 -0
  261. package/serialization/types/SystemMessage.d.ts +1 -0
  262. package/serialization/types/SystemMessage.js +1 -0
  263. package/serialization/types/ToolCallMessage.d.ts +1 -0
  264. package/serialization/types/ToolCallMessage.js +1 -0
  265. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  266. package/serialization/types/ToolReturnMessage.js +1 -0
  267. package/serialization/types/ToolType.d.ts +1 -1
  268. package/serialization/types/ToolType.js +1 -0
  269. package/serialization/types/UserMessage.d.ts +1 -0
  270. package/serialization/types/UserMessage.js +1 -0
  271. package/serialization/types/index.d.ts +1 -0
  272. package/serialization/types/index.js +1 -0
  273. package/version.d.ts +1 -1
  274. package/version.js +1 -1
  275. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemOperator.js} +0 -0
  276. /package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemField.js → api/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +0 -0
@@ -86,7 +86,7 @@ class Sources {
86
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
87
87
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
88
88
  method: "GET",
89
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
89
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -151,7 +151,7 @@ class Sources {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
153
153
  method: "DELETE",
154
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
154
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Sources {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
213
213
  method: "PATCH",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -277,7 +277,7 @@ class Sources {
277
277
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
278
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
279
279
  method: "GET",
280
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
280
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
281
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -341,7 +341,7 @@ class Sources {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
343
343
  method: "GET",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
344
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
345
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -408,7 +408,7 @@ class Sources {
408
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
409
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
410
410
  method: "POST",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
411
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
412
412
  contentType: "application/json",
413
413
  requestType: "json",
414
414
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -80,7 +80,7 @@ class Files {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  requestType: "file",
85
85
  duplex: _maybeEncodedRequest.duplex,
86
86
  body: _maybeEncodedRequest.body,
@@ -155,7 +155,7 @@ class Files {
155
155
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
156
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -222,7 +222,7 @@ class Files {
222
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
223
223
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
224
224
  method: "DELETE",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
225
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
226
226
  contentType: "application/json",
227
227
  requestType: "json",
228
228
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Passages {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -103,7 +103,7 @@ class Steps {
103
103
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
104
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/steps"),
105
105
  method: "GET",
106
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
106
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -169,7 +169,7 @@ class Steps {
169
169
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
170
170
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}`),
171
171
  method: "GET",
172
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
172
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
173
173
  contentType: "application/json",
174
174
  requestType: "json",
175
175
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Tag {
87
87
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
88
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tags/"),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
90
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -75,7 +75,7 @@ class Templates {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
77
77
  method: "POST",
78
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
78
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  body: serializers.TemplatesCreateAgentsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
144
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -278,7 +278,7 @@ class Tools {
278
278
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
279
279
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
280
280
  method: "GET",
281
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
281
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
282
282
  contentType: "application/json",
283
283
  queryParameters: _queryParams,
284
284
  requestType: "json",
@@ -346,7 +346,7 @@ class Tools {
346
346
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
347
347
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
348
348
  method: "POST",
349
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
349
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
350
350
  contentType: "application/json",
351
351
  requestType: "json",
352
352
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -414,7 +414,7 @@ class Tools {
414
414
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
415
415
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
416
416
  method: "PUT",
417
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
417
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
418
418
  contentType: "application/json",
419
419
  requestType: "json",
420
420
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -479,7 +479,7 @@ class Tools {
479
479
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
480
480
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
481
481
  method: "POST",
482
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
482
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
483
483
  contentType: "application/json",
484
484
  requestType: "json",
485
485
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -549,7 +549,7 @@ class Tools {
549
549
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
550
550
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
551
551
  method: "POST",
552
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
552
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
553
553
  contentType: "application/json",
554
554
  requestType: "json",
555
555
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -616,7 +616,7 @@ class Tools {
616
616
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
617
617
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
618
618
  method: "GET",
619
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
619
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
620
620
  contentType: "application/json",
621
621
  requestType: "json",
622
622
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -681,7 +681,7 @@ class Tools {
681
681
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
682
682
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
683
683
  method: "GET",
684
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
684
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
685
685
  contentType: "application/json",
686
686
  requestType: "json",
687
687
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -746,7 +746,7 @@ class Tools {
746
746
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
747
747
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
748
748
  method: "POST",
749
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
749
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
750
750
  contentType: "application/json",
751
751
  requestType: "json",
752
752
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -812,7 +812,7 @@ class Tools {
812
812
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
813
813
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
814
814
  method: "GET",
815
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
815
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
816
816
  contentType: "application/json",
817
817
  requestType: "json",
818
818
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -881,7 +881,7 @@ class Tools {
881
881
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
882
882
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
883
883
  method: "PUT",
884
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
884
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
885
885
  contentType: "application/json",
886
886
  requestType: "json",
887
887
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -947,7 +947,7 @@ class Tools {
947
947
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
948
948
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
949
949
  method: "GET",
950
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
950
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
951
951
  contentType: "application/json",
952
952
  requestType: "json",
953
953
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1013,7 +1013,7 @@ class Tools {
1013
1013
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1014
1014
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
1015
1015
  method: "POST",
1016
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
1016
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
1017
1017
  contentType: "application/json",
1018
1018
  requestType: "json",
1019
1019
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1078,7 +1078,7 @@ class Tools {
1078
1078
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1079
1079
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1080
1080
  method: "DELETE",
1081
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
1081
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
1082
1082
  contentType: "application/json",
1083
1083
  requestType: "json",
1084
1084
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Voice {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
86
86
  method: "POST",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
@@ -65,6 +65,8 @@ export interface AgentState {
65
65
  identityIds?: string[];
66
66
  /** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
67
67
  messageBufferAutoclear?: boolean;
68
+ /** If set to True, memory management will move to a background agent thread. */
69
+ enableSleeptime?: boolean;
68
70
  /** The multi-agent group that this agent manages */
69
71
  multiAgentGroup?: Letta.Group;
70
72
  }
@@ -4,9 +4,9 @@
4
4
  /**
5
5
  * Enum to represent the type of agent.
6
6
  */
7
- export type AgentType = "memgpt_agent" | "split_thread_agent" | "offline_memory_agent";
7
+ export type AgentType = "memgpt_agent" | "split_thread_agent" | "sleeptime_agent";
8
8
  export declare const AgentType: {
9
9
  readonly MemgptAgent: "memgpt_agent";
10
10
  readonly SplitThreadAgent: "split_thread_agent";
11
- readonly OfflineMemoryAgent: "offline_memory_agent";
11
+ readonly SleeptimeAgent: "sleeptime_agent";
12
12
  };
@@ -7,5 +7,5 @@ exports.AgentType = void 0;
7
7
  exports.AgentType = {
8
8
  MemgptAgent: "memgpt_agent",
9
9
  SplitThreadAgent: "split_thread_agent",
10
- OfflineMemoryAgent: "offline_memory_agent",
10
+ SleeptimeAgent: "sleeptime_agent",
11
11
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type AppAuthSchemeAuthMode = "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BASIC_WITH_JWT" | "GOOGLE_SERVICE_ACCOUNT" | "GOOGLEADS_AUTH" | "NO_AUTH" | "COMPOSIO_LINK" | "CALCOM_AUTH";
4
+ export type AppAuthSchemeAuthMode = "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BASIC_WITH_JWT" | "GOOGLE_SERVICE_ACCOUNT" | "GOOGLEADS_AUTH" | "NO_AUTH" | "CALCOM_AUTH";
5
5
  export declare const AppAuthSchemeAuthMode: {
6
6
  readonly Oauth2: "OAUTH2";
7
7
  readonly Oauth1: "OAUTH1";
@@ -12,6 +12,5 @@ export declare const AppAuthSchemeAuthMode: {
12
12
  readonly GoogleServiceAccount: "GOOGLE_SERVICE_ACCOUNT";
13
13
  readonly GoogleadsAuth: "GOOGLEADS_AUTH";
14
14
  readonly NoAuth: "NO_AUTH";
15
- readonly ComposioLink: "COMPOSIO_LINK";
16
15
  readonly CalcomAuth: "CALCOM_AUTH";
17
16
  };
@@ -14,6 +14,5 @@ exports.AppAuthSchemeAuthMode = {
14
14
  GoogleServiceAccount: "GOOGLE_SERVICE_ACCOUNT",
15
15
  GoogleadsAuth: "GOOGLEADS_AUTH",
16
16
  NoAuth: "NO_AUTH",
17
- ComposioLink: "COMPOSIO_LINK",
18
17
  CalcomAuth: "CALCOM_AUTH",
19
18
  };
@@ -15,6 +15,7 @@ export interface AssistantMessage {
15
15
  id: string;
16
16
  date: Date;
17
17
  name?: string;
18
+ otid?: string;
18
19
  messageType: "assistant_message";
19
20
  /** The message content sent by the agent (can be a string or an array of content parts) */
20
21
  content: Letta.AssistantMessageContent;
@@ -1,14 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ChatCompletionAudioParamVoice = "alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse";
5
- export declare const ChatCompletionAudioParamVoice: {
6
- readonly Alloy: "alloy";
7
- readonly Ash: "ash";
8
- readonly Ballad: "ballad";
9
- readonly Coral: "coral";
10
- readonly Echo: "echo";
11
- readonly Sage: "sage";
12
- readonly Shimmer: "shimmer";
13
- readonly Verse: "verse";
14
- };
4
+ export type ChatCompletionAudioParamVoice = string | "alloy" | "ash" | "ballad" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer" | "verse";
@@ -3,14 +3,3 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ChatCompletionAudioParamVoice = void 0;
7
- exports.ChatCompletionAudioParamVoice = {
8
- Alloy: "alloy",
9
- Ash: "ash",
10
- Ballad: "ballad",
11
- Coral: "coral",
12
- Echo: "echo",
13
- Sage: "sage",
14
- Shimmer: "shimmer",
15
- Verse: "verse",
16
- };
@@ -12,9 +12,17 @@ export interface Group {
12
12
  /** */
13
13
  description: string;
14
14
  /** */
15
+ sharedBlockIds?: string[];
16
+ /** */
15
17
  managerAgentId?: string;
16
18
  /** */
17
19
  terminationToken?: string;
18
20
  /** */
19
21
  maxTurns?: number;
22
+ /** */
23
+ sleeptimeAgentFrequency?: number;
24
+ /** */
25
+ turnsCounter?: number;
26
+ /** */
27
+ lastProcessedMessageId?: string;
20
28
  }
@@ -18,6 +18,7 @@ export interface HiddenReasoningMessage {
18
18
  id: string;
19
19
  date: Date;
20
20
  name?: string;
21
+ otid?: string;
21
22
  messageType: "hidden_reasoning_message";
22
23
  state: Letta.HiddenReasoningMessageState;
23
24
  hiddenReasoning?: string;
@@ -4,11 +4,13 @@
4
4
  /**
5
5
  * Status of the job.
6
6
  */
7
- export type JobStatus = "created" | "running" | "completed" | "failed" | "pending";
7
+ export type JobStatus = "not_started" | "created" | "running" | "completed" | "failed" | "pending" | "cancelled";
8
8
  export declare const JobStatus: {
9
+ readonly NotStarted: "not_started";
9
10
  readonly Created: "created";
10
11
  readonly Running: "running";
11
12
  readonly Completed: "completed";
12
13
  readonly Failed: "failed";
13
14
  readonly Pending: "pending";
15
+ readonly Cancelled: "cancelled";
14
16
  };
@@ -5,9 +5,11 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.JobStatus = void 0;
7
7
  exports.JobStatus = {
8
+ NotStarted: "not_started",
8
9
  Created: "created",
9
10
  Running: "running",
10
11
  Completed: "completed",
11
12
  Failed: "failed",
12
13
  Pending: "pending",
14
+ Cancelled: "cancelled",
13
15
  };
@@ -23,4 +23,6 @@ export interface LettaUsageStatistics {
23
23
  stepCount?: number;
24
24
  /** The messages generated per step */
25
25
  stepsMessages?: Letta.Message[][];
26
+ /** The background task run IDs associated with the agent interaction */
27
+ runIds?: string[];
26
28
  }
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ManagerType = "round_robin" | "supervisor" | "dynamic" | "swarm";
4
+ export type ManagerType = "round_robin" | "supervisor" | "dynamic" | "sleeptime" | "swarm";
5
5
  export declare const ManagerType: {
6
6
  readonly RoundRobin: "round_robin";
7
7
  readonly Supervisor: "supervisor";
8
8
  readonly Dynamic: "dynamic";
9
+ readonly Sleeptime: "sleeptime";
9
10
  readonly Swarm: "swarm";
10
11
  };
@@ -8,5 +8,6 @@ exports.ManagerType = {
8
8
  RoundRobin: "round_robin",
9
9
  Supervisor: "supervisor",
10
10
  Dynamic: "dynamic",
11
+ Sleeptime: "sleeptime",
11
12
  Swarm: "swarm",
12
13
  };
@@ -28,19 +28,19 @@ export interface Message {
28
28
  updatedAt?: Date;
29
29
  /** The human-friendly ID of the Message */
30
30
  id?: string;
31
- /** The role of the participant. */
32
- role: Letta.MessageRole;
33
- /** The content of the message. */
34
- content?: Letta.MessageContentItem[];
35
31
  /** The unique identifier of the agent. */
36
32
  agentId?: string;
37
33
  /** The model used to make the function call. */
38
34
  model?: string;
39
- /** The name of the participant. */
35
+ /** The role of the participant. */
36
+ role: Letta.MessageRole;
37
+ /** The content of the message. */
38
+ content?: Letta.MessageContentItem[];
39
+ /** For role user/assistant: the (optional) name of the participant. For role tool/function: the name of the function called. */
40
40
  name?: string;
41
- /** The list of tool calls requested. */
41
+ /** The list of tool calls requested. Only applicable for role assistant. */
42
42
  toolCalls?: Letta.ChatCompletionMessageToolCall[];
43
- /** The id of the tool call. */
43
+ /** The ID of the tool call. Only applicable for role tool. */
44
44
  toolCallId?: string;
45
45
  /** The id of the step that this message was created in. */
46
46
  stepId?: string;
@@ -12,4 +12,6 @@ export interface MessageCreate {
12
12
  content: Letta.MessageCreateContent;
13
13
  /** The name of the participant. */
14
14
  name?: string;
15
+ /** The offline threading id associated with this message */
16
+ otid?: string;
15
17
  }
@@ -18,6 +18,7 @@ export interface ReasoningMessage {
18
18
  id: string;
19
19
  date: Date;
20
20
  name?: string;
21
+ otid?: string;
21
22
  messageType: "reasoning_message";
22
23
  source?: Letta.ReasoningMessageSource;
23
24
  reasoning: string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface SleeptimeManager {
5
+ managerType: "sleeptime";
6
+ /** */
7
+ managerAgentId: string;
8
+ /** */
9
+ sleeptimeAgentFrequency?: number;
10
+ }
@@ -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 });