@letta-ai/letta-client 0.1.78 → 0.1.80

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 (300) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  2. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  3. package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  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/memoryVariables/client/Client.js +1 -1
  8. package/api/resources/agents/resources/messages/client/Client.js +9 -6
  9. package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
  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.d.ts +27 -59
  21. package/api/resources/groups/client/Client.js +80 -143
  22. package/{dist/api/types → api/resources/groups/client/requests}/GroupCreate.d.ts +11 -1
  23. package/api/resources/groups/client/requests/GroupUpdate.d.ts +19 -0
  24. package/api/resources/groups/client/requests/{ListGroupsRequest.d.ts → GroupsListRequest.d.ts} +1 -1
  25. package/api/resources/groups/client/requests/index.d.ts +3 -5
  26. package/api/resources/groups/index.d.ts +2 -0
  27. package/api/resources/groups/index.js +2 -0
  28. package/api/resources/groups/resources/index.d.ts +3 -0
  29. package/api/resources/groups/resources/index.js +42 -0
  30. package/api/resources/groups/resources/messages/client/Client.d.ts +89 -0
  31. package/api/resources/groups/resources/messages/client/Client.js +373 -0
  32. package/api/resources/groups/resources/messages/client/index.d.ts +1 -0
  33. package/api/resources/groups/resources/messages/client/index.js +17 -0
  34. package/api/resources/groups/{client/requests/ListGroupMessagesRequest.d.ts → resources/messages/client/requests/MessagesListRequest.d.ts} +1 -1
  35. package/api/resources/groups/resources/messages/client/requests/index.d.ts +1 -0
  36. package/api/resources/groups/resources/messages/client/requests/index.js +2 -0
  37. package/api/resources/groups/resources/messages/index.d.ts +2 -0
  38. package/api/resources/groups/resources/messages/index.js +18 -0
  39. package/api/resources/groups/resources/messages/types/LettaStreamingResponse.d.ts +5 -0
  40. package/api/resources/groups/resources/messages/types/MessagesModifyRequest.d.ts +5 -0
  41. package/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +5 -0
  42. package/api/resources/groups/resources/messages/types/index.d.ts +3 -0
  43. package/api/resources/groups/resources/messages/types/index.js +19 -0
  44. package/api/resources/groups/types/GroupCreateManagerConfig.d.ts +8 -0
  45. package/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +5 -0
  46. package/api/resources/groups/types/index.d.ts +2 -0
  47. package/api/resources/groups/types/index.js +18 -0
  48. package/api/resources/health/client/Client.js +1 -1
  49. package/api/resources/identities/client/Client.js +6 -6
  50. package/api/resources/index.d.ts +2 -1
  51. package/api/resources/index.js +3 -2
  52. package/api/resources/jobs/client/Client.js +4 -4
  53. package/api/resources/models/client/Client.js +2 -2
  54. package/api/resources/providers/client/Client.js +4 -4
  55. package/api/resources/runs/client/Client.js +7 -7
  56. package/api/resources/sources/client/Client.js +6 -6
  57. package/api/resources/sources/resources/files/client/Client.js +3 -3
  58. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  59. package/api/resources/steps/client/Client.js +2 -2
  60. package/api/resources/tag/client/Client.js +1 -1
  61. package/api/resources/templates/client/Client.js +1 -1
  62. package/api/resources/tools/client/Client.js +16 -16
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/types/BackgroundManager.d.ts +10 -0
  65. package/api/types/Group.d.ts +8 -0
  66. package/api/types/LettaUsageStatistics.d.ts +2 -0
  67. package/api/types/ManagerType.d.ts +2 -1
  68. package/api/types/ManagerType.js +1 -0
  69. package/api/types/index.d.ts +1 -2
  70. package/api/types/index.js +1 -2
  71. package/dist/api/resources/agents/client/Client.js +10 -10
  72. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  73. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  74. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  75. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  76. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  77. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  78. package/dist/api/resources/agents/resources/messages/client/Client.js +9 -6
  79. package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
  80. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  81. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  82. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  83. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  84. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +1 -1
  85. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +8 -0
  86. package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +1 -1
  87. package/dist/api/resources/agents/types/index.d.ts +2 -1
  88. package/dist/api/resources/agents/types/index.js +2 -1
  89. package/dist/api/resources/blocks/client/Client.js +6 -6
  90. package/dist/api/resources/groups/client/Client.d.ts +27 -59
  91. package/dist/api/resources/groups/client/Client.js +80 -143
  92. package/{api/types → dist/api/resources/groups/client/requests}/GroupCreate.d.ts +11 -1
  93. package/dist/api/resources/groups/client/requests/GroupUpdate.d.ts +19 -0
  94. package/dist/api/resources/groups/client/requests/{ListGroupsRequest.d.ts → GroupsListRequest.d.ts} +1 -1
  95. package/dist/api/resources/groups/client/requests/GroupsListRequest.js +5 -0
  96. package/dist/api/resources/groups/client/requests/index.d.ts +3 -5
  97. package/dist/api/resources/groups/index.d.ts +2 -0
  98. package/dist/api/resources/groups/index.js +2 -0
  99. package/dist/api/resources/groups/resources/index.d.ts +3 -0
  100. package/dist/api/resources/groups/resources/index.js +42 -0
  101. package/dist/api/resources/groups/resources/messages/client/Client.d.ts +89 -0
  102. package/dist/api/resources/groups/resources/messages/client/Client.js +373 -0
  103. package/dist/api/resources/groups/resources/messages/client/index.d.ts +1 -0
  104. package/dist/api/resources/groups/resources/messages/client/index.js +17 -0
  105. package/dist/api/resources/groups/{client/requests/ListGroupMessagesRequest.d.ts → resources/messages/client/requests/MessagesListRequest.d.ts} +1 -1
  106. package/dist/api/resources/groups/resources/messages/client/requests/MessagesListRequest.js +5 -0
  107. package/dist/api/resources/groups/resources/messages/client/requests/index.d.ts +1 -0
  108. package/dist/api/resources/groups/resources/messages/client/requests/index.js +2 -0
  109. package/dist/api/resources/groups/resources/messages/index.d.ts +2 -0
  110. package/dist/api/resources/groups/resources/messages/index.js +18 -0
  111. package/dist/api/resources/groups/resources/messages/types/LettaStreamingResponse.d.ts +5 -0
  112. package/dist/api/resources/groups/resources/messages/types/LettaStreamingResponse.js +5 -0
  113. package/dist/api/resources/groups/resources/messages/types/MessagesModifyRequest.d.ts +5 -0
  114. package/dist/api/resources/groups/resources/messages/types/MessagesModifyRequest.js +5 -0
  115. package/dist/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +5 -0
  116. package/dist/api/resources/groups/resources/messages/types/MessagesModifyResponse.js +5 -0
  117. package/dist/api/resources/groups/resources/messages/types/index.d.ts +3 -0
  118. package/dist/api/resources/groups/resources/messages/types/index.js +19 -0
  119. package/dist/api/resources/groups/types/GroupCreateManagerConfig.d.ts +8 -0
  120. package/dist/api/resources/groups/types/GroupCreateManagerConfig.js +5 -0
  121. package/dist/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +5 -0
  122. package/dist/api/resources/groups/types/GroupUpdateManagerConfig.js +5 -0
  123. package/dist/api/resources/groups/types/index.d.ts +2 -0
  124. package/dist/api/resources/groups/types/index.js +18 -0
  125. package/dist/api/resources/health/client/Client.js +1 -1
  126. package/dist/api/resources/identities/client/Client.js +6 -6
  127. package/dist/api/resources/index.d.ts +2 -1
  128. package/dist/api/resources/index.js +3 -2
  129. package/dist/api/resources/jobs/client/Client.js +4 -4
  130. package/dist/api/resources/models/client/Client.js +2 -2
  131. package/dist/api/resources/providers/client/Client.js +4 -4
  132. package/dist/api/resources/runs/client/Client.js +7 -7
  133. package/dist/api/resources/sources/client/Client.js +6 -6
  134. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  135. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  136. package/dist/api/resources/steps/client/Client.js +2 -2
  137. package/dist/api/resources/tag/client/Client.js +1 -1
  138. package/dist/api/resources/templates/client/Client.js +1 -1
  139. package/dist/api/resources/tools/client/Client.js +16 -16
  140. package/dist/api/resources/voice/client/Client.js +1 -1
  141. package/dist/api/types/BackgroundManager.d.ts +10 -0
  142. package/dist/api/types/BackgroundManager.js +5 -0
  143. package/dist/api/types/Group.d.ts +8 -0
  144. package/dist/api/types/LettaUsageStatistics.d.ts +2 -0
  145. package/dist/api/types/ManagerType.d.ts +2 -1
  146. package/dist/api/types/ManagerType.js +1 -0
  147. package/dist/api/types/index.d.ts +1 -2
  148. package/dist/api/types/index.js +1 -2
  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/index.d.ts +2 -2
  162. package/dist/serialization/resources/groups/client/index.js +6 -3
  163. package/dist/serialization/resources/groups/client/{listGroups.d.ts → list.d.ts} +1 -1
  164. package/dist/serialization/resources/groups/client/requests/GroupCreate.d.ts +16 -0
  165. package/dist/serialization/{types → resources/groups/client/requests}/GroupCreate.js +3 -2
  166. package/dist/serialization/resources/groups/client/requests/GroupUpdate.d.ts +16 -0
  167. package/dist/serialization/resources/groups/client/requests/GroupUpdate.js +47 -0
  168. package/dist/serialization/resources/groups/client/requests/index.d.ts +2 -0
  169. package/dist/serialization/resources/groups/client/requests/index.js +7 -0
  170. package/dist/serialization/resources/groups/index.d.ts +2 -0
  171. package/dist/serialization/resources/groups/index.js +2 -0
  172. package/dist/serialization/resources/groups/resources/index.d.ts +2 -0
  173. package/dist/serialization/resources/groups/resources/index.js +41 -0
  174. package/dist/serialization/resources/groups/resources/messages/client/index.d.ts +1 -0
  175. package/dist/serialization/resources/groups/resources/messages/client/index.js +37 -0
  176. package/dist/serialization/resources/groups/resources/messages/client/list.d.ts +11 -0
  177. package/{serialization/resources/groups/client/listGroupMessages.js → dist/serialization/resources/groups/resources/messages/client/list.js} +2 -2
  178. package/dist/serialization/resources/groups/resources/messages/index.d.ts +2 -0
  179. package/dist/serialization/resources/groups/resources/messages/index.js +18 -0
  180. package/dist/serialization/resources/groups/resources/messages/types/LettaStreamingResponse.d.ts +17 -0
  181. package/dist/serialization/resources/groups/resources/messages/types/LettaStreamingResponse.js +56 -0
  182. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyRequest.d.ts +14 -0
  183. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyRequest.js +50 -0
  184. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +17 -0
  185. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +56 -0
  186. package/dist/serialization/resources/groups/resources/messages/types/index.d.ts +3 -0
  187. package/dist/serialization/resources/groups/resources/messages/types/index.js +19 -0
  188. package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +14 -0
  189. package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.js +45 -0
  190. package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +14 -0
  191. package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.js +45 -0
  192. package/dist/serialization/resources/groups/types/index.d.ts +2 -0
  193. package/dist/serialization/resources/groups/types/index.js +18 -0
  194. package/dist/serialization/resources/index.d.ts +3 -1
  195. package/dist/serialization/resources/index.js +4 -2
  196. package/dist/serialization/types/BackgroundManager.d.ts +14 -0
  197. package/dist/serialization/types/{GroupCreateManagerConfig.js → BackgroundManager.js} +6 -5
  198. package/dist/serialization/types/Group.d.ts +4 -0
  199. package/dist/serialization/types/Group.js +4 -0
  200. package/dist/serialization/types/LettaUsageStatistics.d.ts +1 -0
  201. package/dist/serialization/types/LettaUsageStatistics.js +1 -0
  202. package/dist/serialization/types/ManagerType.d.ts +1 -1
  203. package/dist/serialization/types/ManagerType.js +1 -1
  204. package/dist/serialization/types/index.d.ts +1 -2
  205. package/dist/serialization/types/index.js +1 -2
  206. package/dist/version.d.ts +1 -1
  207. package/dist/version.js +1 -1
  208. package/package.json +1 -1
  209. package/reference.md +357 -99
  210. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  211. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  212. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  213. package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  214. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +3 -2
  215. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +4 -2
  216. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +14 -0
  217. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.js +45 -0
  218. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +2 -2
  219. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemTwo.js} +2 -2
  220. package/serialization/resources/agents/types/index.d.ts +2 -1
  221. package/serialization/resources/agents/types/index.js +2 -1
  222. package/serialization/resources/groups/client/index.d.ts +2 -2
  223. package/serialization/resources/groups/client/index.js +6 -3
  224. package/serialization/resources/groups/client/{listGroups.d.ts → list.d.ts} +1 -1
  225. package/serialization/resources/groups/client/requests/GroupCreate.d.ts +16 -0
  226. package/serialization/{types → resources/groups/client/requests}/GroupCreate.js +3 -2
  227. package/serialization/resources/groups/client/requests/GroupUpdate.d.ts +16 -0
  228. package/serialization/resources/groups/client/requests/GroupUpdate.js +47 -0
  229. package/serialization/resources/groups/client/requests/index.d.ts +2 -0
  230. package/serialization/resources/groups/client/requests/index.js +7 -0
  231. package/serialization/resources/groups/index.d.ts +2 -0
  232. package/serialization/resources/groups/index.js +2 -0
  233. package/serialization/resources/groups/resources/index.d.ts +2 -0
  234. package/serialization/resources/groups/resources/index.js +41 -0
  235. package/serialization/resources/groups/resources/messages/client/index.d.ts +1 -0
  236. package/serialization/resources/groups/resources/messages/client/index.js +37 -0
  237. package/serialization/resources/groups/resources/messages/client/list.d.ts +11 -0
  238. package/{dist/serialization/resources/groups/client/listGroupMessages.js → serialization/resources/groups/resources/messages/client/list.js} +2 -2
  239. package/serialization/resources/groups/resources/messages/index.d.ts +2 -0
  240. package/serialization/resources/groups/resources/messages/index.js +18 -0
  241. package/serialization/resources/groups/resources/messages/types/LettaStreamingResponse.d.ts +17 -0
  242. package/serialization/resources/groups/resources/messages/types/LettaStreamingResponse.js +56 -0
  243. package/serialization/resources/groups/resources/messages/types/MessagesModifyRequest.d.ts +14 -0
  244. package/serialization/resources/groups/resources/messages/types/MessagesModifyRequest.js +50 -0
  245. package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +17 -0
  246. package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +56 -0
  247. package/serialization/resources/groups/resources/messages/types/index.d.ts +3 -0
  248. package/serialization/resources/groups/resources/messages/types/index.js +19 -0
  249. package/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +14 -0
  250. package/serialization/resources/groups/types/GroupCreateManagerConfig.js +45 -0
  251. package/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +14 -0
  252. package/serialization/resources/groups/types/GroupUpdateManagerConfig.js +45 -0
  253. package/serialization/resources/groups/types/index.d.ts +2 -0
  254. package/serialization/resources/groups/types/index.js +18 -0
  255. package/serialization/resources/index.d.ts +3 -1
  256. package/serialization/resources/index.js +4 -2
  257. package/serialization/types/BackgroundManager.d.ts +14 -0
  258. package/serialization/types/{GroupCreateManagerConfig.js → BackgroundManager.js} +6 -5
  259. package/serialization/types/Group.d.ts +4 -0
  260. package/serialization/types/Group.js +4 -0
  261. package/serialization/types/LettaUsageStatistics.d.ts +1 -0
  262. package/serialization/types/LettaUsageStatistics.js +1 -0
  263. package/serialization/types/ManagerType.d.ts +1 -1
  264. package/serialization/types/ManagerType.js +1 -1
  265. package/serialization/types/index.d.ts +1 -2
  266. package/serialization/types/index.js +1 -2
  267. package/version.d.ts +1 -1
  268. package/version.js +1 -1
  269. package/api/resources/groups/client/requests/CreateGroupRequest.d.ts +0 -17
  270. package/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +0 -23
  271. package/api/resources/groups/client/requests/UpsertGroupRequest.d.ts +0 -17
  272. package/api/types/GroupCreateManagerConfig.d.ts +0 -5
  273. package/dist/api/resources/groups/client/requests/CreateGroupRequest.d.ts +0 -17
  274. package/dist/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +0 -23
  275. package/dist/api/resources/groups/client/requests/UpsertGroupRequest.d.ts +0 -17
  276. package/dist/api/types/GroupCreateManagerConfig.d.ts +0 -5
  277. package/dist/serialization/resources/groups/client/listGroupMessages.d.ts +0 -11
  278. package/dist/serialization/types/GroupCreate.d.ts +0 -15
  279. package/dist/serialization/types/GroupCreateManagerConfig.d.ts +0 -13
  280. package/serialization/resources/groups/client/listGroupMessages.d.ts +0 -11
  281. package/serialization/types/GroupCreate.d.ts +0 -15
  282. package/serialization/types/GroupCreateManagerConfig.d.ts +0 -13
  283. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemOperator.js} +0 -0
  284. /package/api/resources/{groups/client/requests/CreateGroupRequest.js → agents/types/AgentsSearchRequestSearchItemTwo.js} +0 -0
  285. /package/api/{types → resources/groups/client/requests}/GroupCreate.js +0 -0
  286. /package/api/resources/groups/client/requests/{ListGroupMessagesRequest.js → GroupUpdate.js} +0 -0
  287. /package/api/resources/groups/client/requests/{ListGroupsRequest.js → GroupsListRequest.js} +0 -0
  288. /package/api/resources/groups/{client/requests/SendGroupMessageRequest.js → resources/messages/client/requests/MessagesListRequest.js} +0 -0
  289. /package/api/resources/groups/{client/requests/UpsertGroupRequest.js → resources/messages/types/LettaStreamingResponse.js} +0 -0
  290. /package/api/{types/GroupCreateManagerConfig.js → resources/groups/resources/messages/types/MessagesModifyRequest.js} +0 -0
  291. /package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemField.js → api/resources/groups/resources/messages/types/MessagesModifyResponse.js} +0 -0
  292. /package/{dist/api → api/resources/groups}/types/GroupCreateManagerConfig.js +0 -0
  293. /package/{dist/api/resources/groups/client/requests/CreateGroupRequest.js → api/resources/groups/types/GroupUpdateManagerConfig.js} +0 -0
  294. /package/{dist/api/resources/groups/client/requests/ListGroupMessagesRequest.js → api/types/BackgroundManager.js} +0 -0
  295. /package/dist/api/resources/{groups/client/requests/ListGroupsRequest.js → agents/types/AgentsSearchRequestSearchItemOperator.js} +0 -0
  296. /package/dist/api/resources/{groups/client/requests/SendGroupMessageRequest.js → agents/types/AgentsSearchRequestSearchItemTwo.js} +0 -0
  297. /package/dist/api/{types → resources/groups/client/requests}/GroupCreate.js +0 -0
  298. /package/dist/api/resources/groups/client/requests/{UpsertGroupRequest.js → GroupUpdate.js} +0 -0
  299. /package/dist/serialization/resources/groups/client/{listGroups.js → list.js} +0 -0
  300. /package/serialization/resources/groups/client/{listGroups.js → list.js} +0 -0
@@ -194,7 +194,7 @@ class Agents {
194
194
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
195
195
  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/agents/"),
196
196
  method: "GET",
197
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
197
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
198
198
  contentType: "application/json",
199
199
  queryParameters: _queryParams,
200
200
  requestType: "json",
@@ -261,7 +261,7 @@ class Agents {
261
261
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
262
262
  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/agents/"),
263
263
  method: "POST",
264
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  body: serializers.CreateAgentRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -327,7 +327,7 @@ class Agents {
327
327
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
328
328
  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/agents/${encodeURIComponent(agentId)}/export`),
329
329
  method: "GET",
330
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
330
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
331
331
  contentType: "application/json",
332
332
  requestType: "json",
333
333
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -406,7 +406,7 @@ class Agents {
406
406
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
407
407
  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/agents/import"),
408
408
  method: "POST",
409
- 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.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
409
+ 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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
410
410
  queryParameters: _queryParams,
411
411
  requestType: "file",
412
412
  duplex: _maybeEncodedRequest.duplex,
@@ -473,7 +473,7 @@ class Agents {
473
473
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
474
474
  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/agents/${encodeURIComponent(agentId)}`),
475
475
  method: "GET",
476
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
476
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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
477
  contentType: "application/json",
478
478
  requestType: "json",
479
479
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -538,7 +538,7 @@ class Agents {
538
538
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
539
539
  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/agents/${encodeURIComponent(agentId)}`),
540
540
  method: "DELETE",
541
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
541
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
542
542
  contentType: "application/json",
543
543
  requestType: "json",
544
544
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -598,7 +598,7 @@ class Agents {
598
598
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
599
599
  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/agents/${encodeURIComponent(agentId)}`),
600
600
  method: "PATCH",
601
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
601
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
602
602
  contentType: "application/json",
603
603
  requestType: "json",
604
604
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -668,7 +668,7 @@ class Agents {
668
668
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
669
669
  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/agents/${encodeURIComponent(agentId)}/archival-memory/${encodeURIComponent(memoryId)}`),
670
670
  method: "PATCH",
671
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
671
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
672
672
  contentType: "application/json",
673
673
  requestType: "json",
674
674
  body: serializers.PassageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -740,7 +740,7 @@ class Agents {
740
740
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
741
741
  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/agents/${encodeURIComponent(agentId)}/reset-messages`),
742
742
  method: "PATCH",
743
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
743
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
744
744
  contentType: "application/json",
745
745
  queryParameters: _queryParams,
746
746
  requestType: "json",
@@ -806,7 +806,7 @@ class Agents {
806
806
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
807
807
  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/agents/search"),
808
808
  method: "POST",
809
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
809
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
810
810
  contentType: "application/json",
811
811
  requestType: "json",
812
812
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -78,4 +78,6 @@ export interface CreateAgentRequest {
78
78
  identityIds?: string[];
79
79
  /** 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. */
80
80
  messageBufferAutoclear?: boolean;
81
+ /** If set to True, memory management will move to a background agent thread. */
82
+ enableSleeptime?: boolean;
81
83
  }
@@ -47,4 +47,6 @@ export interface UpdateAgent {
47
47
  model?: string;
48
48
  /** The embedding configuration handle used by the agent, specified in the format provider/model-name. */
49
49
  embedding?: string;
50
+ /** If set to True, memory management will move to a background agent thread. */
51
+ enableSleeptime?: boolean;
50
52
  }
@@ -77,7 +77,7 @@ class Blocks {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  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/agents/${encodeURIComponent(agentId)}/core-memory/blocks/${encodeURIComponent(blockLabel)}`),
79
79
  method: "GET",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -144,7 +144,7 @@ class Blocks {
144
144
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
145
145
  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/agents/${encodeURIComponent(agentId)}/core-memory/blocks/${encodeURIComponent(blockLabel)}`),
146
146
  method: "PATCH",
147
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
147
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
148
148
  contentType: "application/json",
149
149
  requestType: "json",
150
150
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -210,7 +210,7 @@ class Blocks {
210
210
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
211
211
  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/agents/${encodeURIComponent(agentId)}/core-memory/blocks`),
212
212
  method: "GET",
213
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
213
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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
214
  contentType: "application/json",
215
215
  requestType: "json",
216
216
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -276,7 +276,7 @@ class Blocks {
276
276
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
277
277
  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/agents/${encodeURIComponent(agentId)}/core-memory/blocks/attach/${encodeURIComponent(blockId)}`),
278
278
  method: "PATCH",
279
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
279
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -342,7 +342,7 @@ class Blocks {
342
342
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
343
343
  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/agents/${encodeURIComponent(agentId)}/core-memory/blocks/detach/${encodeURIComponent(blockId)}`),
344
344
  method: "PATCH",
345
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
346
346
  contentType: "application/json",
347
347
  requestType: "json",
348
348
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Context {
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/agents/${encodeURIComponent(agentId)}/context`),
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.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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,
@@ -77,7 +77,7 @@ class CoreMemory {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  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/agents/${encodeURIComponent(agentId)}/core-memory`),
79
79
  method: "GET",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -78,7 +78,7 @@ class MemoryVariables {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  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/agents/${encodeURIComponent(agentId)}/core-memory/variables`),
80
80
  method: "GET",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
81
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -74,7 +74,7 @@ class Messages {
74
74
  list(agentId_1) {
75
75
  return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
76
76
  var _a, _b, _c;
77
- const { after, before, limit, useAssistantMessage, assistantMessageToolName, assistantMessageToolKwarg } = request;
77
+ const { after, before, limit, groupId, useAssistantMessage, assistantMessageToolName, assistantMessageToolKwarg, } = request;
78
78
  const _queryParams = {};
79
79
  if (after != null) {
80
80
  _queryParams["after"] = after;
@@ -85,6 +85,9 @@ class Messages {
85
85
  if (limit != null) {
86
86
  _queryParams["limit"] = limit.toString();
87
87
  }
88
+ if (groupId != null) {
89
+ _queryParams["group_id"] = groupId;
90
+ }
88
91
  if (useAssistantMessage != null) {
89
92
  _queryParams["use_assistant_message"] = useAssistantMessage.toString();
90
93
  }
@@ -97,7 +100,7 @@ class Messages {
97
100
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
98
101
  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/agents/${encodeURIComponent(agentId)}/messages`),
99
102
  method: "GET",
100
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
103
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
101
104
  contentType: "application/json",
102
105
  queryParameters: _queryParams,
103
106
  requestType: "json",
@@ -173,7 +176,7 @@ class Messages {
173
176
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
174
177
  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/agents/${encodeURIComponent(agentId)}/messages`),
175
178
  method: "POST",
176
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
179
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
177
180
  contentType: "application/json",
178
181
  requestType: "json",
179
182
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -243,7 +246,7 @@ class Messages {
243
246
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
244
247
  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/agents/${encodeURIComponent(agentId)}/messages/${encodeURIComponent(messageId)}`),
245
248
  method: "PATCH",
246
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
249
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
247
250
  contentType: "application/json",
248
251
  requestType: "json",
249
252
  body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -303,7 +306,7 @@ class Messages {
303
306
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
304
307
  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/agents/${encodeURIComponent(agentId)}/messages/stream`),
305
308
  method: "POST",
306
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
309
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
307
310
  contentType: "application/json",
308
311
  requestType: "json",
309
312
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -390,7 +393,7 @@ class Messages {
390
393
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
391
394
  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/agents/${encodeURIComponent(agentId)}/messages/async`),
392
395
  method: "POST",
393
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
396
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
394
397
  contentType: "application/json",
395
398
  requestType: "json",
396
399
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -18,6 +18,10 @@ export interface MessagesListRequest {
18
18
  * Maximum number of messages to retrieve.
19
19
  */
20
20
  limit?: number;
21
+ /**
22
+ * Group ID to filter messages by.
23
+ */
24
+ groupId?: string;
21
25
  /**
22
26
  * Whether to use assistant messages
23
27
  */
@@ -94,7 +94,7 @@ class Passages {
94
94
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
95
95
  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/agents/${encodeURIComponent(agentId)}/archival-memory`),
96
96
  method: "GET",
97
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
97
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
100
100
  requestType: "json",
@@ -163,7 +163,7 @@ class Passages {
163
163
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
164
164
  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/agents/${encodeURIComponent(agentId)}/archival-memory`),
165
165
  method: "POST",
166
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
166
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -230,7 +230,7 @@ class Passages {
230
230
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
231
231
  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/agents/${encodeURIComponent(agentId)}/archival-memory/${encodeURIComponent(memoryId)}`),
232
232
  method: "DELETE",
233
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
233
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
234
234
  contentType: "application/json",
235
235
  requestType: "json",
236
236
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -77,7 +77,7 @@ class Sources {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  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/agents/${encodeURIComponent(agentId)}/sources/attach/${encodeURIComponent(sourceId)}`),
79
79
  method: "PATCH",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -143,7 +143,7 @@ class Sources {
143
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
144
144
  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/agents/${encodeURIComponent(agentId)}/sources/detach/${encodeURIComponent(sourceId)}`),
145
145
  method: "PATCH",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -208,7 +208,7 @@ class Sources {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  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/agents/${encodeURIComponent(agentId)}/sources`),
210
210
  method: "GET",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
211
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -96,7 +96,7 @@ class Templates {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  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/agents/${encodeURIComponent(agentId)}/version-template`),
98
98
  method: "POST",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
99
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -163,7 +163,7 @@ class Templates {
163
163
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
164
164
  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/agents/${encodeURIComponent(agentId)}/migrate`),
165
165
  method: "POST",
166
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
166
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -236,7 +236,7 @@ class Templates {
236
236
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
237
237
  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/agents/${encodeURIComponent(agentId)}/template`),
238
238
  method: "POST",
239
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
239
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
240
240
  contentType: "application/json",
241
241
  requestType: "json",
242
242
  body: serializers.agents.TemplatesCreateRequest.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/agents/${encodeURIComponent(agentId)}/tools`),
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.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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,
@@ -142,7 +142,7 @@ class Tools {
142
142
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
143
143
  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/agents/${encodeURIComponent(agentId)}/tools/attach/${encodeURIComponent(toolId)}`),
144
144
  method: "PATCH",
145
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -208,7 +208,7 @@ class Tools {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  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/agents/${encodeURIComponent(agentId)}/tools/detach/${encodeURIComponent(toolId)}`),
210
210
  method: "PATCH",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
211
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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 AgentsSearchRequestSearchItem = Letta.AgentsSearchRequestSearchItemZero | Letta.AgentsSearchRequestSearchItemOne | Letta.AgentsSearchRequestSearchItemField;
5
+ export type AgentsSearchRequestSearchItem = Letta.AgentsSearchRequestSearchItemZero | Letta.AgentsSearchRequestSearchItemOne | Letta.AgentsSearchRequestSearchItemTwo | Letta.AgentsSearchRequestSearchItemOperator;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AgentsSearchRequestSearchItemOperator {
5
+ field: "identity";
6
+ operator: "eq";
7
+ value: string;
8
+ }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface AgentsSearchRequestSearchItemField {
4
+ export interface AgentsSearchRequestSearchItemTwo {
5
5
  field: "tags";
6
6
  operator: "contains";
7
7
  value: string[];
@@ -3,6 +3,7 @@ export * from "./UpdateAgentToolRulesItem";
3
3
  export * from "./AgentsSearchRequestSearchItemZero";
4
4
  export * from "./AgentsSearchRequestSearchItemOneOperator";
5
5
  export * from "./AgentsSearchRequestSearchItemOne";
6
- export * from "./AgentsSearchRequestSearchItemField";
6
+ export * from "./AgentsSearchRequestSearchItemTwo";
7
+ export * from "./AgentsSearchRequestSearchItemOperator";
7
8
  export * from "./AgentsSearchRequestSearchItem";
8
9
  export * from "./AgentsSearchResponse";
@@ -19,6 +19,7 @@ __exportStar(require("./UpdateAgentToolRulesItem"), exports);
19
19
  __exportStar(require("./AgentsSearchRequestSearchItemZero"), exports);
20
20
  __exportStar(require("./AgentsSearchRequestSearchItemOneOperator"), exports);
21
21
  __exportStar(require("./AgentsSearchRequestSearchItemOne"), exports);
22
- __exportStar(require("./AgentsSearchRequestSearchItemField"), exports);
22
+ __exportStar(require("./AgentsSearchRequestSearchItemTwo"), exports);
23
+ __exportStar(require("./AgentsSearchRequestSearchItemOperator"), exports);
23
24
  __exportStar(require("./AgentsSearchRequestSearchItem"), exports);
24
25
  __exportStar(require("./AgentsSearchResponse"), exports);
@@ -96,7 +96,7 @@ class Blocks {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  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/blocks/"),
98
98
  method: "GET",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
99
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -163,7 +163,7 @@ class Blocks {
163
163
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
164
164
  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/blocks/"),
165
165
  method: "POST",
166
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
166
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -227,7 +227,7 @@ class Blocks {
227
227
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
228
228
  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/blocks/${encodeURIComponent(blockId)}`),
229
229
  method: "GET",
230
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
230
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
231
231
  contentType: "application/json",
232
232
  requestType: "json",
233
233
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -290,7 +290,7 @@ class Blocks {
290
290
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
291
291
  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/blocks/${encodeURIComponent(blockId)}`),
292
292
  method: "DELETE",
293
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
293
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
294
294
  contentType: "application/json",
295
295
  requestType: "json",
296
296
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -354,7 +354,7 @@ class Blocks {
354
354
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
355
355
  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/blocks/${encodeURIComponent(blockId)}`),
356
356
  method: "PATCH",
357
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
357
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
358
358
  contentType: "application/json",
359
359
  requestType: "json",
360
360
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -421,7 +421,7 @@ class Blocks {
421
421
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
422
422
  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/blocks/${encodeURIComponent(blockId)}/agents`),
423
423
  method: "GET",
424
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.78", "User-Agent": "@letta-ai/letta-client/0.1.78", "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),
424
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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),
425
425
  contentType: "application/json",
426
426
  requestType: "json",
427
427
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,