@letta-ai/letta-client 0.1.149 → 0.1.152

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 (272) hide show
  1. package/api/resources/agents/client/Client.js +11 -11
  2. package/api/resources/agents/resources/blocks/client/Client.d.ts +1 -1
  3. package/api/resources/agents/resources/blocks/client/Client.js +6 -6
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  6. package/api/resources/agents/resources/groups/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.d.ts +25 -0
  9. package/api/resources/agents/resources/messages/client/Client.js +90 -7
  10. package/api/resources/agents/resources/messages/types/MessagesPreviewRawPayloadRequest.d.ts +5 -0
  11. package/api/resources/agents/resources/messages/types/MessagesPreviewRawPayloadRequest.js +5 -0
  12. package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  13. package/api/resources/agents/resources/messages/types/index.js +1 -0
  14. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  15. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  16. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  17. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  18. package/api/resources/batches/client/Client.js +4 -4
  19. package/api/resources/blocks/client/Client.js +6 -6
  20. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  21. package/api/resources/clientSideAccessTokens/client/Client.d.ts +12 -0
  22. package/api/resources/clientSideAccessTokens/client/Client.js +76 -3
  23. package/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.d.ts +21 -0
  24. package/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.js +5 -0
  25. package/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -0
  26. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponse.d.ts +8 -0
  27. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponse.js +5 -0
  28. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItem.d.ts +10 -0
  29. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItem.js +5 -0
  30. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicy.d.ts +8 -0
  31. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicy.js +5 -0
  32. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItem.d.ts +9 -0
  33. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItem.js +5 -0
  34. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItemAccessItem.d.ts +10 -0
  35. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItemAccessItem.js +12 -0
  36. package/api/resources/clientSideAccessTokens/types/index.d.ts +5 -0
  37. package/api/resources/clientSideAccessTokens/types/index.js +5 -0
  38. package/api/resources/embeddingModels/client/Client.js +1 -1
  39. package/api/resources/groups/client/Client.js +6 -6
  40. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  41. package/api/resources/health/client/Client.js +1 -1
  42. package/api/resources/identities/client/Client.js +7 -7
  43. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  44. package/api/resources/jobs/client/Client.js +5 -5
  45. package/api/resources/messages/client/Client.js +1 -1
  46. package/api/resources/models/client/Client.js +1 -1
  47. package/api/resources/projects/client/Client.js +1 -1
  48. package/api/resources/providers/client/Client.js +5 -5
  49. package/api/resources/runs/client/Client.js +4 -4
  50. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  51. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  52. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  53. package/api/resources/sources/client/Client.d.ts +15 -2
  54. package/api/resources/sources/client/Client.js +86 -12
  55. package/api/resources/sources/client/requests/GetSourcesMetadataRequest.d.ts +10 -0
  56. package/api/resources/sources/client/requests/GetSourcesMetadataRequest.js +5 -0
  57. package/api/resources/sources/client/requests/SourceCreate.d.ts +6 -6
  58. package/api/resources/sources/client/requests/index.d.ts +1 -0
  59. package/api/resources/sources/resources/files/client/Client.d.ts +3 -2
  60. package/api/resources/sources/resources/files/client/Client.js +11 -5
  61. package/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +5 -0
  62. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  63. package/api/resources/steps/client/Client.js +2 -2
  64. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  65. package/api/resources/tags/client/Client.js +1 -1
  66. package/api/resources/telemetry/client/Client.js +1 -1
  67. package/api/resources/templates/client/Client.js +1 -1
  68. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  69. package/api/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts +3 -0
  70. package/api/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItem.d.ts +13 -0
  71. package/api/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItem.js +5 -0
  72. package/api/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItemRole.d.ts +9 -0
  73. package/api/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItemRole.js +11 -0
  74. package/api/resources/templates/resources/agents/types/index.d.ts +2 -0
  75. package/api/resources/templates/resources/agents/types/index.js +2 -0
  76. package/api/resources/tools/client/Client.js +19 -19
  77. package/api/resources/tools/types/UpdateMcpServerRequest.d.ts +1 -1
  78. package/api/resources/voice/client/Client.js +1 -1
  79. package/api/types/DuplicateFileHandling.d.ts +12 -0
  80. package/api/types/DuplicateFileHandling.js +11 -0
  81. package/api/types/FileMetadata.d.ts +4 -4
  82. package/api/types/Message.d.ts +18 -17
  83. package/api/types/Source.d.ts +4 -4
  84. package/api/types/UpdateStdioMcpServer.d.ts +13 -0
  85. package/api/types/UpdateStdioMcpServer.js +5 -0
  86. package/api/types/index.d.ts +2 -0
  87. package/api/types/index.js +2 -0
  88. package/dist/api/resources/agents/client/Client.js +11 -11
  89. package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +1 -1
  90. package/dist/api/resources/agents/resources/blocks/client/Client.js +6 -6
  91. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  92. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  93. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  94. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  95. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +25 -0
  96. package/dist/api/resources/agents/resources/messages/client/Client.js +90 -7
  97. package/dist/api/resources/agents/resources/messages/types/MessagesPreviewRawPayloadRequest.d.ts +5 -0
  98. package/dist/api/resources/agents/resources/messages/types/MessagesPreviewRawPayloadRequest.js +5 -0
  99. package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  100. package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
  101. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  102. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  103. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  104. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  105. package/dist/api/resources/batches/client/Client.js +4 -4
  106. package/dist/api/resources/blocks/client/Client.js +6 -6
  107. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  108. package/dist/api/resources/clientSideAccessTokens/client/Client.d.ts +12 -0
  109. package/dist/api/resources/clientSideAccessTokens/client/Client.js +76 -3
  110. package/dist/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.d.ts +21 -0
  111. package/dist/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.js +5 -0
  112. package/dist/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -0
  113. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponse.d.ts +8 -0
  114. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponse.js +5 -0
  115. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItem.d.ts +10 -0
  116. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItem.js +5 -0
  117. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicy.d.ts +8 -0
  118. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicy.js +5 -0
  119. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItem.d.ts +9 -0
  120. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItem.js +5 -0
  121. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItemAccessItem.d.ts +10 -0
  122. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItemAccessItem.js +12 -0
  123. package/dist/api/resources/clientSideAccessTokens/types/index.d.ts +5 -0
  124. package/dist/api/resources/clientSideAccessTokens/types/index.js +5 -0
  125. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  126. package/dist/api/resources/groups/client/Client.js +6 -6
  127. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  128. package/dist/api/resources/health/client/Client.js +1 -1
  129. package/dist/api/resources/identities/client/Client.js +7 -7
  130. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  131. package/dist/api/resources/jobs/client/Client.js +5 -5
  132. package/dist/api/resources/messages/client/Client.js +1 -1
  133. package/dist/api/resources/models/client/Client.js +1 -1
  134. package/dist/api/resources/projects/client/Client.js +1 -1
  135. package/dist/api/resources/providers/client/Client.js +5 -5
  136. package/dist/api/resources/runs/client/Client.js +4 -4
  137. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  138. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  139. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  140. package/dist/api/resources/sources/client/Client.d.ts +15 -2
  141. package/dist/api/resources/sources/client/Client.js +86 -12
  142. package/dist/api/resources/sources/client/requests/GetSourcesMetadataRequest.d.ts +10 -0
  143. package/dist/api/resources/sources/client/requests/GetSourcesMetadataRequest.js +5 -0
  144. package/dist/api/resources/sources/client/requests/SourceCreate.d.ts +6 -6
  145. package/dist/api/resources/sources/client/requests/index.d.ts +1 -0
  146. package/dist/api/resources/sources/resources/files/client/Client.d.ts +3 -2
  147. package/dist/api/resources/sources/resources/files/client/Client.js +11 -5
  148. package/dist/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +5 -0
  149. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  150. package/dist/api/resources/steps/client/Client.js +2 -2
  151. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  152. package/dist/api/resources/tags/client/Client.js +1 -1
  153. package/dist/api/resources/telemetry/client/Client.js +1 -1
  154. package/dist/api/resources/templates/client/Client.js +1 -1
  155. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  156. package/dist/api/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts +3 -0
  157. package/dist/api/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItem.d.ts +13 -0
  158. package/dist/api/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItem.js +5 -0
  159. package/dist/api/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItemRole.d.ts +9 -0
  160. package/dist/api/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItemRole.js +11 -0
  161. package/dist/api/resources/templates/resources/agents/types/index.d.ts +2 -0
  162. package/dist/api/resources/templates/resources/agents/types/index.js +2 -0
  163. package/dist/api/resources/tools/client/Client.js +19 -19
  164. package/dist/api/resources/tools/types/UpdateMcpServerRequest.d.ts +1 -1
  165. package/dist/api/resources/voice/client/Client.js +1 -1
  166. package/dist/api/types/DuplicateFileHandling.d.ts +12 -0
  167. package/dist/api/types/DuplicateFileHandling.js +11 -0
  168. package/dist/api/types/FileMetadata.d.ts +4 -4
  169. package/dist/api/types/Message.d.ts +18 -17
  170. package/dist/api/types/Source.d.ts +4 -4
  171. package/dist/api/types/UpdateStdioMcpServer.d.ts +13 -0
  172. package/dist/api/types/UpdateStdioMcpServer.js +5 -0
  173. package/dist/api/types/index.d.ts +2 -0
  174. package/dist/api/types/index.js +2 -0
  175. package/dist/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  176. package/dist/serialization/resources/agents/resources/messages/client/index.js +2 -1
  177. package/dist/serialization/resources/agents/resources/messages/client/previewRawPayload.d.ts +9 -0
  178. package/dist/serialization/resources/agents/resources/messages/client/previewRawPayload.js +41 -0
  179. package/dist/serialization/resources/agents/resources/messages/types/MessagesPreviewRawPayloadRequest.d.ts +12 -0
  180. package/dist/serialization/resources/agents/resources/messages/types/MessagesPreviewRawPayloadRequest.js +43 -0
  181. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  182. package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
  183. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponse.d.ts +14 -0
  184. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponse.js +45 -0
  185. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItem.d.ts +16 -0
  186. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItem.js +47 -0
  187. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicy.d.ts +14 -0
  188. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicy.js +45 -0
  189. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItem.d.ts +15 -0
  190. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItem.js +46 -0
  191. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItemAccessItem.d.ts +10 -0
  192. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItemAccessItem.js +41 -0
  193. package/dist/serialization/resources/clientSideAccessTokens/types/index.d.ts +5 -0
  194. package/dist/serialization/resources/clientSideAccessTokens/types/index.js +5 -0
  195. package/dist/serialization/resources/sources/client/getAgentsForSource.d.ts +9 -0
  196. package/dist/serialization/resources/sources/client/getAgentsForSource.js +41 -0
  197. package/dist/serialization/resources/sources/client/index.d.ts +1 -0
  198. package/dist/serialization/resources/sources/client/index.js +2 -1
  199. package/dist/serialization/resources/sources/client/requests/SourceCreate.d.ts +3 -3
  200. package/dist/serialization/resources/sources/client/requests/SourceCreate.js +3 -3
  201. package/dist/serialization/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts +2 -0
  202. package/dist/serialization/resources/templates/resources/agents/client/requests/AgentsCreateRequest.js +2 -0
  203. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItem.d.ts +19 -0
  204. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItem.js +50 -0
  205. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItemRole.d.ts +10 -0
  206. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItemRole.js +41 -0
  207. package/dist/serialization/resources/templates/resources/agents/types/index.d.ts +2 -0
  208. package/dist/serialization/resources/templates/resources/agents/types/index.js +2 -0
  209. package/dist/serialization/resources/tools/types/UpdateMcpServerRequest.d.ts +2 -1
  210. package/dist/serialization/resources/tools/types/UpdateMcpServerRequest.js +2 -1
  211. package/dist/serialization/types/DuplicateFileHandling.d.ts +10 -0
  212. package/dist/serialization/types/DuplicateFileHandling.js +41 -0
  213. package/dist/serialization/types/FileMetadata.d.ts +2 -2
  214. package/dist/serialization/types/FileMetadata.js +2 -2
  215. package/dist/serialization/types/Source.d.ts +2 -2
  216. package/dist/serialization/types/Source.js +2 -2
  217. package/dist/serialization/types/UpdateStdioMcpServer.d.ts +14 -0
  218. package/dist/serialization/types/UpdateStdioMcpServer.js +45 -0
  219. package/dist/serialization/types/index.d.ts +2 -0
  220. package/dist/serialization/types/index.js +2 -0
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/package.json +1 -1
  224. package/reference.md +234 -5
  225. package/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  226. package/serialization/resources/agents/resources/messages/client/index.js +2 -1
  227. package/serialization/resources/agents/resources/messages/client/previewRawPayload.d.ts +9 -0
  228. package/serialization/resources/agents/resources/messages/client/previewRawPayload.js +41 -0
  229. package/serialization/resources/agents/resources/messages/types/MessagesPreviewRawPayloadRequest.d.ts +12 -0
  230. package/serialization/resources/agents/resources/messages/types/MessagesPreviewRawPayloadRequest.js +43 -0
  231. package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  232. package/serialization/resources/agents/resources/messages/types/index.js +1 -0
  233. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponse.d.ts +14 -0
  234. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponse.js +45 -0
  235. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItem.d.ts +16 -0
  236. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItem.js +47 -0
  237. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicy.d.ts +14 -0
  238. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicy.js +45 -0
  239. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItem.d.ts +15 -0
  240. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItem.js +46 -0
  241. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItemAccessItem.d.ts +10 -0
  242. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItemAccessItem.js +41 -0
  243. package/serialization/resources/clientSideAccessTokens/types/index.d.ts +5 -0
  244. package/serialization/resources/clientSideAccessTokens/types/index.js +5 -0
  245. package/serialization/resources/sources/client/getAgentsForSource.d.ts +9 -0
  246. package/serialization/resources/sources/client/getAgentsForSource.js +41 -0
  247. package/serialization/resources/sources/client/index.d.ts +1 -0
  248. package/serialization/resources/sources/client/index.js +2 -1
  249. package/serialization/resources/sources/client/requests/SourceCreate.d.ts +3 -3
  250. package/serialization/resources/sources/client/requests/SourceCreate.js +3 -3
  251. package/serialization/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts +2 -0
  252. package/serialization/resources/templates/resources/agents/client/requests/AgentsCreateRequest.js +2 -0
  253. package/serialization/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItem.d.ts +19 -0
  254. package/serialization/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItem.js +50 -0
  255. package/serialization/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItemRole.d.ts +10 -0
  256. package/serialization/resources/templates/resources/agents/types/AgentsCreateRequestInitialMessageSequenceItemRole.js +41 -0
  257. package/serialization/resources/templates/resources/agents/types/index.d.ts +2 -0
  258. package/serialization/resources/templates/resources/agents/types/index.js +2 -0
  259. package/serialization/resources/tools/types/UpdateMcpServerRequest.d.ts +2 -1
  260. package/serialization/resources/tools/types/UpdateMcpServerRequest.js +2 -1
  261. package/serialization/types/DuplicateFileHandling.d.ts +10 -0
  262. package/serialization/types/DuplicateFileHandling.js +41 -0
  263. package/serialization/types/FileMetadata.d.ts +2 -2
  264. package/serialization/types/FileMetadata.js +2 -2
  265. package/serialization/types/Source.d.ts +2 -2
  266. package/serialization/types/Source.js +2 -2
  267. package/serialization/types/UpdateStdioMcpServer.d.ts +14 -0
  268. package/serialization/types/UpdateStdioMcpServer.js +45 -0
  269. package/serialization/types/index.d.ts +2 -0
  270. package/serialization/types/index.js +2 -0
  271. package/version.d.ts +1 -1
  272. package/version.js +1 -1
@@ -64,16 +64,21 @@ class Files {
64
64
  *
65
65
  * @param {File | fs.ReadStream | Blob} file
66
66
  * @param {string} sourceId
67
+ * @param {Letta.sources.BodyUploadFileToSource} request
67
68
  * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
68
69
  *
69
70
  * @throws {@link Letta.UnprocessableEntityError}
70
71
  *
71
72
  * @example
72
- * await client.sources.files.upload(fs.createReadStream("/path/to/your/file"), "source_id")
73
+ * await client.sources.files.upload(fs.createReadStream("/path/to/your/file"), "source_id", {})
73
74
  */
74
- upload(file, sourceId, requestOptions) {
75
+ upload(file, sourceId, request, requestOptions) {
75
76
  return __awaiter(this, void 0, void 0, function* () {
76
77
  var _a, _b, _c;
78
+ const _queryParams = {};
79
+ if (request.duplicateHandling != null) {
80
+ _queryParams["duplicate_handling"] = request.duplicateHandling;
81
+ }
77
82
  const _request = yield core.newFormData();
78
83
  yield _request.appendFile("file", file);
79
84
  const _maybeEncodedRequest = yield _request.getRequest();
@@ -82,7 +87,8 @@ class Files {
82
87
  method: "POST",
83
88
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
89
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
90
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
91
+ queryParameters: _queryParams,
86
92
  requestType: "file",
87
93
  duplex: _maybeEncodedRequest.duplex,
88
94
  body: _maybeEncodedRequest.body,
@@ -162,7 +168,7 @@ class Files {
162
168
  method: "GET",
163
169
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
164
170
  ? yield core.Supplier.get(this._options.project)
165
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
171
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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
172
  contentType: "application/json",
167
173
  queryParameters: _queryParams,
168
174
  requestType: "json",
@@ -231,7 +237,7 @@ class Files {
231
237
  method: "DELETE",
232
238
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
233
239
  ? yield core.Supplier.get(this._options.project)
234
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
235
241
  contentType: "application/json",
236
242
  requestType: "json",
237
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,9 +1,14 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../../../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
7
8
  */
8
9
  export interface BodyUploadFileToSource {
10
+ /**
11
+ * How to handle duplicate filenames
12
+ */
13
+ duplicateHandling?: Letta.DuplicateFileHandling;
9
14
  }
@@ -90,7 +90,7 @@ class Passages {
90
90
  method: "GET",
91
91
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
92
92
  ? yield core.Supplier.get(this._options.project)
93
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
93
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -135,7 +135,7 @@ class Steps {
135
135
  method: "GET",
136
136
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
137
137
  ? yield core.Supplier.get(this._options.project)
138
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
138
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
139
139
  contentType: "application/json",
140
140
  queryParameters: _queryParams,
141
141
  requestType: "json",
@@ -203,7 +203,7 @@ class Steps {
203
203
  method: "GET",
204
204
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
205
205
  ? yield core.Supplier.get(this._options.project)
206
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
206
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
207
207
  contentType: "application/json",
208
208
  requestType: "json",
209
209
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Feedback {
84
84
  method: "PATCH",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
87
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -89,7 +89,7 @@ class Tags {
89
89
  method: "GET",
90
90
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
91
91
  ? yield core.Supplier.get(this._options.project)
92
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
92
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -76,7 +76,7 @@ class Telemetry {
76
76
  method: "GET",
77
77
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
78
78
  ? yield core.Supplier.get(this._options.project)
79
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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,
@@ -94,7 +94,7 @@ class Templates {
94
94
  method: "GET",
95
95
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
96
96
  ? yield core.Supplier.get(this._options.project)
97
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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",
@@ -80,7 +80,7 @@ class Agents {
80
80
  method: "POST",
81
81
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
82
82
  ? yield core.Supplier.get(this._options.project)
83
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
83
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../../../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
@@ -10,6 +11,8 @@ export interface AgentsCreateRequest {
10
11
  tags?: string[];
11
12
  /** The name of the agent, optional otherwise a random one will be assigned */
12
13
  agentName?: string;
14
+ /** Set an initial sequence of messages, if not provided, the agent will start with the default message sequence, if an empty array is provided, the agent will start with no messages */
15
+ initialMessageSequence?: Letta.templates.AgentsCreateRequestInitialMessageSequenceItem[];
13
16
  /** The memory variables to assign to the agent */
14
17
  memoryVariables?: Record<string, string>;
15
18
  /** The tool variables to assign to the agent */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../../../index";
5
+ export interface AgentsCreateRequestInitialMessageSequenceItem {
6
+ role: Letta.templates.AgentsCreateRequestInitialMessageSequenceItemRole;
7
+ content: string;
8
+ name?: string;
9
+ otid?: string;
10
+ senderId?: string;
11
+ batchItemId?: string;
12
+ groupId?: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AgentsCreateRequestInitialMessageSequenceItemRole = "user" | "system" | "assistant";
5
+ export declare const AgentsCreateRequestInitialMessageSequenceItemRole: {
6
+ readonly User: "user";
7
+ readonly System: "system";
8
+ readonly Assistant: "assistant";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AgentsCreateRequestInitialMessageSequenceItemRole = void 0;
7
+ exports.AgentsCreateRequestInitialMessageSequenceItemRole = {
8
+ User: "user",
9
+ System: "system",
10
+ Assistant: "assistant",
11
+ };
@@ -1 +1,3 @@
1
+ export * from "./AgentsCreateRequestInitialMessageSequenceItemRole";
2
+ export * from "./AgentsCreateRequestInitialMessageSequenceItem";
1
3
  export * from "./AgentsCreateResponse";
@@ -14,4 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AgentsCreateRequestInitialMessageSequenceItemRole"), exports);
18
+ __exportStar(require("./AgentsCreateRequestInitialMessageSequenceItem"), exports);
17
19
  __exportStar(require("./AgentsCreateResponse"), exports);
@@ -78,7 +78,7 @@ class Tools {
78
78
  method: "GET",
79
79
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
80
80
  ? yield core.Supplier.get(this._options.project)
81
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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,
@@ -145,7 +145,7 @@ class Tools {
145
145
  method: "DELETE",
146
146
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
147
147
  ? yield core.Supplier.get(this._options.project)
148
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -207,7 +207,7 @@ class Tools {
207
207
  method: "PATCH",
208
208
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
209
209
  ? yield core.Supplier.get(this._options.project)
210
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
210
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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
211
  contentType: "application/json",
212
212
  requestType: "json",
213
213
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -280,7 +280,7 @@ class Tools {
280
280
  method: "GET",
281
281
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
282
282
  ? yield core.Supplier.get(this._options.project)
283
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
283
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
284
284
  contentType: "application/json",
285
285
  queryParameters: _queryParams,
286
286
  requestType: "json",
@@ -359,7 +359,7 @@ class Tools {
359
359
  method: "GET",
360
360
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
361
361
  ? yield core.Supplier.get(this._options.project)
362
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
362
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
363
363
  contentType: "application/json",
364
364
  queryParameters: _queryParams,
365
365
  requestType: "json",
@@ -429,7 +429,7 @@ class Tools {
429
429
  method: "POST",
430
430
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
431
431
  ? yield core.Supplier.get(this._options.project)
432
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
432
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
433
433
  contentType: "application/json",
434
434
  requestType: "json",
435
435
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -499,7 +499,7 @@ class Tools {
499
499
  method: "PUT",
500
500
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
501
501
  ? yield core.Supplier.get(this._options.project)
502
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
502
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
503
503
  contentType: "application/json",
504
504
  requestType: "json",
505
505
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -566,7 +566,7 @@ class Tools {
566
566
  method: "POST",
567
567
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
568
568
  ? yield core.Supplier.get(this._options.project)
569
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
569
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
570
570
  contentType: "application/json",
571
571
  requestType: "json",
572
572
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -638,7 +638,7 @@ class Tools {
638
638
  method: "POST",
639
639
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
640
640
  ? yield core.Supplier.get(this._options.project)
641
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
641
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
642
642
  contentType: "application/json",
643
643
  requestType: "json",
644
644
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -707,7 +707,7 @@ class Tools {
707
707
  method: "GET",
708
708
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
709
709
  ? yield core.Supplier.get(this._options.project)
710
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
710
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
711
711
  contentType: "application/json",
712
712
  requestType: "json",
713
713
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -774,7 +774,7 @@ class Tools {
774
774
  method: "GET",
775
775
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
776
776
  ? yield core.Supplier.get(this._options.project)
777
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
777
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
778
778
  contentType: "application/json",
779
779
  requestType: "json",
780
780
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -841,7 +841,7 @@ class Tools {
841
841
  method: "POST",
842
842
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
843
843
  ? yield core.Supplier.get(this._options.project)
844
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
844
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
845
845
  contentType: "application/json",
846
846
  requestType: "json",
847
847
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -909,7 +909,7 @@ class Tools {
909
909
  method: "GET",
910
910
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
911
911
  ? yield core.Supplier.get(this._options.project)
912
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
912
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
913
913
  contentType: "application/json",
914
914
  requestType: "json",
915
915
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -980,7 +980,7 @@ class Tools {
980
980
  method: "PUT",
981
981
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
982
982
  ? yield core.Supplier.get(this._options.project)
983
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
983
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
984
984
  contentType: "application/json",
985
985
  requestType: "json",
986
986
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1048,7 +1048,7 @@ class Tools {
1048
1048
  method: "GET",
1049
1049
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1050
1050
  ? yield core.Supplier.get(this._options.project)
1051
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
1051
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
1052
1052
  contentType: "application/json",
1053
1053
  requestType: "json",
1054
1054
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1116,7 +1116,7 @@ class Tools {
1116
1116
  method: "POST",
1117
1117
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1118
1118
  ? yield core.Supplier.get(this._options.project)
1119
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
1119
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
1120
1120
  contentType: "application/json",
1121
1121
  requestType: "json",
1122
1122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1183,7 +1183,7 @@ class Tools {
1183
1183
  method: "DELETE",
1184
1184
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1185
1185
  ? yield core.Supplier.get(this._options.project)
1186
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
1186
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
1187
1187
  contentType: "application/json",
1188
1188
  requestType: "json",
1189
1189
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1251,7 +1251,7 @@ class Tools {
1251
1251
  method: "PATCH",
1252
1252
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1253
1253
  ? yield core.Supplier.get(this._options.project)
1254
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1254
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1255
1255
  contentType: "application/json",
1256
1256
  requestType: "json",
1257
1257
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1324,7 +1324,7 @@ class Tools {
1324
1324
  method: "POST",
1325
1325
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1326
1326
  ? yield core.Supplier.get(this._options.project)
1327
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
1327
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "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),
1328
1328
  contentType: "application/json",
1329
1329
  requestType: "json",
1330
1330
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -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 UpdateMcpServerRequest = Letta.UpdateSsemcpServer | Letta.UpdateStreamableHttpmcpServer;
5
+ export type UpdateMcpServerRequest = Letta.UpdateStdioMcpServer | Letta.UpdateSsemcpServer | Letta.UpdateStreamableHttpmcpServer;
@@ -82,7 +82,7 @@ class Voice {
82
82
  method: "POST",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.152", "User-Agent": "@letta-ai/letta-client/0.1.152", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * How to handle duplicate filenames when uploading files
6
+ */
7
+ export type DuplicateFileHandling = "skip" | "error" | "suffix";
8
+ export declare const DuplicateFileHandling: {
9
+ readonly Skip: "skip";
10
+ readonly Error: "error";
11
+ readonly Suffix: "suffix";
12
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DuplicateFileHandling = void 0;
7
+ exports.DuplicateFileHandling = {
8
+ Skip: "skip",
9
+ Error: "error",
10
+ Suffix: "suffix",
11
+ };
@@ -6,8 +6,6 @@ import * as Letta from "../index";
6
6
  * Representation of a single FileMetadata
7
7
  */
8
8
  export interface FileMetadata {
9
- /** The human-friendly ID of the File */
10
- id?: string;
11
9
  /** The unique identifier of the source associated with the document. */
12
10
  sourceId: string;
13
11
  /** The name of the file. */
@@ -32,12 +30,14 @@ export interface FileMetadata {
32
30
  totalChunks?: number;
33
31
  /** Number of chunks that have been embedded. */
34
32
  chunksEmbedded?: number;
33
+ /** Optional full-text content of the file; only populated on demand due to its size. */
34
+ content?: string;
35
+ /** The human-friendly ID of the File */
36
+ id?: string;
35
37
  /** The creation date of the file. */
36
38
  createdAt?: Date;
37
39
  /** The update date of the file. */
38
40
  updatedAt?: Date;
39
41
  /** Whether this file is deleted or not. */
40
42
  isDeleted?: boolean;
41
- /** Optional full-text content of the file; only populated on demand due to its size. */
42
- content?: string;
43
43
  }
@@ -3,24 +3,25 @@
3
3
  */
4
4
  import * as Letta from "../index";
5
5
  /**
6
- * Letta's internal representation of a message. Includes methods to convert to/from LLM provider formats.
6
+ * Letta's internal representation of a message. Includes methods to convert to/from LLM provider formats.
7
7
  *
8
- * Attributes:
9
- * id (str): The unique identifier of the message.
10
- * role (MessageRole): The role of the participant.
11
- * text (str): The text of the message.
12
- * user_id (str): The unique identifier of the user.
13
- * agent_id (str): The unique identifier of the agent.
14
- * model (str): The model used to make the function call.
15
- * name (str): The name of the participant.
16
- * created_at (datetime): The time the message was created.
17
- * tool_calls (List[OpenAIToolCall,]): The list of tool calls requested.
18
- * tool_call_id (str): The id of the tool call.
19
- * step_id (str): The id of the step that this message was created in.
20
- * otid (str): The offline threading id associated with this message.
21
- * tool_returns (List[ToolReturn]): The list of tool returns requested.
22
- * group_id (str): The multi-agent group that the message was sent in.
23
- * sender_id (str): The id of the sender of the message, can be an identity id or agent id.
8
+ * Attributes:
9
+ * id (str): The unique identifier of the message.
10
+ * role (MessageRole): The role of the participant.
11
+ * text (str): The text of the message.
12
+ * user_id (str): The unique identifier of the user.
13
+ * agent_id (str): The unique identifier of the agent.
14
+ * model (str): The model used to make the function call.
15
+ * name (str): The name of the participant.
16
+ * created_at (datetime): The time the message was created.
17
+ * tool_calls (List[OpenAIToolCall,]): The list of tool calls requested.
18
+ * tool_call_id (str): The id of the tool call.
19
+ * step_id (str): The id of the step that this message was created in.
20
+ * otid (str): The offline threading id associated with this message.
21
+ * tool_returns (List[ToolReturn]): The list of tool returns requested.
22
+ * group_id (str): The multi-agent group that the message was sent in.
23
+ * sender_id (str): The id of the sender of the message, can be an identity id or agent id.
24
+ * t
24
25
  */
25
26
  export interface Message {
26
27
  /** The id of the user that made this object. */
@@ -14,18 +14,18 @@ import * as Letta from "../index";
14
14
  * description (str): The description of the source.
15
15
  */
16
16
  export interface Source {
17
- /** The human-friendly ID of the Source */
18
- id?: string;
19
17
  /** The name of the source. */
20
18
  name: string;
21
19
  /** The description of the source. */
22
20
  description?: string;
23
21
  /** Instructions for how to use the source. */
24
22
  instructions?: string;
25
- /** The embedding configuration used by the source. */
26
- embeddingConfig: Letta.EmbeddingConfig;
27
23
  /** Metadata associated with the source. */
28
24
  metadata?: Record<string, unknown>;
25
+ /** The human-friendly ID of the Source */
26
+ id?: string;
27
+ /** The embedding configuration used by the source. */
28
+ embeddingConfig: Letta.EmbeddingConfig;
29
29
  /** The id of the user that made this Tool. */
30
30
  createdById?: string;
31
31
  /** The id of the user that made this Tool. */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Update a Stdio MCP server
7
+ */
8
+ export interface UpdateStdioMcpServer {
9
+ /** The name of the server */
10
+ serverName?: string;
11
+ /** The configuration for the server (MCP 'local' client will run this command) */
12
+ stdioConfig?: Letta.StdioServerConfig;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });