@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
@@ -106,7 +106,7 @@ class Identities {
106
106
  method: "GET",
107
107
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
108
108
  ? yield core.Supplier.get(this._options.project)
109
- : 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),
109
+ : 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),
110
110
  contentType: "application/json",
111
111
  queryParameters: _queryParams,
112
112
  requestType: "json",
@@ -176,7 +176,7 @@ class Identities {
176
176
  method: "POST",
177
177
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
178
178
  ? yield core.Supplier.get(this._options.project)
179
- : 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),
179
+ : 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),
180
180
  contentType: "application/json",
181
181
  requestType: "json",
182
182
  body: serializers.IdentityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -246,7 +246,7 @@ class Identities {
246
246
  method: "PUT",
247
247
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
248
248
  ? yield core.Supplier.get(this._options.project)
249
- : 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),
249
+ : 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),
250
250
  contentType: "application/json",
251
251
  requestType: "json",
252
252
  body: serializers.IdentityUpsert.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -313,7 +313,7 @@ class Identities {
313
313
  method: "GET",
314
314
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
315
315
  ? yield core.Supplier.get(this._options.project)
316
- : 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),
316
+ : 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),
317
317
  contentType: "application/json",
318
318
  requestType: "json",
319
319
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -378,7 +378,7 @@ class Identities {
378
378
  method: "GET",
379
379
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
380
380
  ? yield core.Supplier.get(this._options.project)
381
- : 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),
381
+ : 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),
382
382
  contentType: "application/json",
383
383
  requestType: "json",
384
384
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -445,7 +445,7 @@ class Identities {
445
445
  method: "DELETE",
446
446
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
447
447
  ? yield core.Supplier.get(this._options.project)
448
- : 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),
448
+ : 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),
449
449
  contentType: "application/json",
450
450
  requestType: "json",
451
451
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -505,7 +505,7 @@ class Identities {
505
505
  method: "PATCH",
506
506
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
507
507
  ? yield core.Supplier.get(this._options.project)
508
- : 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),
508
+ : 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),
509
509
  contentType: "application/json",
510
510
  requestType: "json",
511
511
  body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -81,7 +81,7 @@ class Properties {
81
81
  method: "PUT",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
84
+ : 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),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.identities.properties.upsert.Request.jsonOrThrow(request, {
@@ -96,7 +96,7 @@ class Jobs {
96
96
  method: "GET",
97
97
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
98
98
  ? yield core.Supplier.get(this._options.project)
99
- : 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),
99
+ : 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),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -181,7 +181,7 @@ class Jobs {
181
181
  method: "GET",
182
182
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
183
183
  ? yield core.Supplier.get(this._options.project)
184
- : 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),
184
+ : 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),
185
185
  contentType: "application/json",
186
186
  queryParameters: _queryParams,
187
187
  requestType: "json",
@@ -249,7 +249,7 @@ class Jobs {
249
249
  method: "GET",
250
250
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
251
251
  ? yield core.Supplier.get(this._options.project)
252
- : 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),
252
+ : 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),
253
253
  contentType: "application/json",
254
254
  requestType: "json",
255
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -316,7 +316,7 @@ class Jobs {
316
316
  method: "DELETE",
317
317
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
318
318
  ? yield core.Supplier.get(this._options.project)
319
- : 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),
319
+ : 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),
320
320
  contentType: "application/json",
321
321
  requestType: "json",
322
322
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -386,7 +386,7 @@ class Jobs {
386
386
  method: "PATCH",
387
387
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
388
388
  ? yield core.Supplier.get(this._options.project)
389
- : 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),
389
+ : 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),
390
390
  contentType: "application/json",
391
391
  requestType: "json",
392
392
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -100,7 +100,7 @@ class Messages {
100
100
  method: "GET",
101
101
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
102
102
  ? yield core.Supplier.get(this._options.project)
103
- : 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),
103
+ : 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),
104
104
  contentType: "application/json",
105
105
  queryParameters: _queryParams,
106
106
  requestType: "json",
@@ -94,7 +94,7 @@ class Models {
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",
@@ -86,7 +86,7 @@ class Projects {
86
86
  method: "GET",
87
87
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
88
88
  ? yield core.Supplier.get(this._options.project)
89
- : 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),
89
+ : 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),
90
90
  contentType: "application/json",
91
91
  queryParameters: _queryParams,
92
92
  requestType: "json",
@@ -92,7 +92,7 @@ class Providers {
92
92
  method: "GET",
93
93
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
94
94
  ? yield core.Supplier.get(this._options.project)
95
- : 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),
95
+ : 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),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -164,7 +164,7 @@ class Providers {
164
164
  method: "POST",
165
165
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
166
166
  ? yield core.Supplier.get(this._options.project)
167
- : 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),
167
+ : 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),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -232,7 +232,7 @@ class Providers {
232
232
  method: "DELETE",
233
233
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
234
234
  ? yield core.Supplier.get(this._options.project)
235
- : 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),
235
+ : 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),
236
236
  contentType: "application/json",
237
237
  requestType: "json",
238
238
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -296,7 +296,7 @@ class Providers {
296
296
  method: "PATCH",
297
297
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
298
298
  ? yield core.Supplier.get(this._options.project)
299
- : 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),
299
+ : 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),
300
300
  contentType: "application/json",
301
301
  requestType: "json",
302
302
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -361,7 +361,7 @@ class Providers {
361
361
  method: "GET",
362
362
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
363
363
  ? yield core.Supplier.get(this._options.project)
364
- : 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),
364
+ : 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),
365
365
  contentType: "application/json",
366
366
  requestType: "json",
367
367
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -103,7 +103,7 @@ class Runs {
103
103
  method: "GET",
104
104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
105
105
  ? yield core.Supplier.get(this._options.project)
106
- : 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),
106
+ : 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),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -181,7 +181,7 @@ class Runs {
181
181
  method: "GET",
182
182
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
183
183
  ? yield core.Supplier.get(this._options.project)
184
- : 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),
184
+ : 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),
185
185
  contentType: "application/json",
186
186
  queryParameters: _queryParams,
187
187
  requestType: "json",
@@ -249,7 +249,7 @@ class Runs {
249
249
  method: "GET",
250
250
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
251
251
  ? yield core.Supplier.get(this._options.project)
252
- : 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),
252
+ : 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),
253
253
  contentType: "application/json",
254
254
  requestType: "json",
255
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -316,7 +316,7 @@ class Runs {
316
316
  method: "DELETE",
317
317
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
318
318
  ? yield core.Supplier.get(this._options.project)
319
- : 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),
319
+ : 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),
320
320
  contentType: "application/json",
321
321
  requestType: "json",
322
322
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -109,7 +109,7 @@ class Messages {
109
109
  method: "GET",
110
110
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
111
111
  ? yield core.Supplier.get(this._options.project)
112
- : 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),
112
+ : 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),
113
113
  contentType: "application/json",
114
114
  queryParameters: _queryParams,
115
115
  requestType: "json",
@@ -103,7 +103,7 @@ class Steps {
103
103
  method: "GET",
104
104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
105
105
  ? yield core.Supplier.get(this._options.project)
106
- : 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),
106
+ : 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),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -78,7 +78,7 @@ class Usage {
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,
@@ -103,8 +103,9 @@ export declare class Sources {
103
103
  * - Total number of sources
104
104
  * - Total number of files across all sources
105
105
  * - Total size of all files
106
- * - Per-source breakdown with file details (file_name, file_size per file)
106
+ * - Per-source breakdown with file details (file_name, file_size per file) if include_detailed_per_source_metadata is True
107
107
  *
108
+ * @param {Letta.GetSourcesMetadataRequest} request
108
109
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
109
110
  *
110
111
  * @throws {@link Letta.UnprocessableEntityError}
@@ -112,7 +113,7 @@ export declare class Sources {
112
113
  * @example
113
114
  * await client.sources.getSourcesMetadata()
114
115
  */
115
- getSourcesMetadata(requestOptions?: Sources.RequestOptions): Promise<Letta.OrganizationSourcesStats>;
116
+ getSourcesMetadata(request?: Letta.GetSourcesMetadataRequest, requestOptions?: Sources.RequestOptions): Promise<Letta.OrganizationSourcesStats>;
116
117
  /**
117
118
  * List all data sources created by a user.
118
119
  *
@@ -138,6 +139,18 @@ export declare class Sources {
138
139
  * })
139
140
  */
140
141
  create(request: Letta.SourceCreate, requestOptions?: Sources.RequestOptions): Promise<Letta.Source>;
142
+ /**
143
+ * Get all agent IDs that have the specified source attached.
144
+ *
145
+ * @param {string} sourceId
146
+ * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
147
+ *
148
+ * @throws {@link Letta.UnprocessableEntityError}
149
+ *
150
+ * @example
151
+ * await client.sources.getAgentsForSource("source_id")
152
+ */
153
+ getAgentsForSource(sourceId: string, requestOptions?: Sources.RequestOptions): Promise<string[]>;
141
154
  /**
142
155
  * Retrieve metadata for a specific file by its ID.
143
156
  *
@@ -87,7 +87,7 @@ class Sources {
87
87
  method: "GET",
88
88
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
89
89
  ? yield core.Supplier.get(this._options.project)
90
- : 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),
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())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  requestType: "json",
93
93
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -154,7 +154,7 @@ class Sources {
154
154
  method: "GET",
155
155
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
156
156
  ? yield core.Supplier.get(this._options.project)
157
- : 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),
157
+ : 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),
158
158
  contentType: "application/json",
159
159
  requestType: "json",
160
160
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -221,7 +221,7 @@ class Sources {
221
221
  method: "DELETE",
222
222
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
223
223
  ? yield core.Supplier.get(this._options.project)
224
- : 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),
224
+ : 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),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -283,7 +283,7 @@ class Sources {
283
283
  method: "PATCH",
284
284
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
285
285
  ? yield core.Supplier.get(this._options.project)
286
- : 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),
286
+ : 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),
287
287
  contentType: "application/json",
288
288
  requestType: "json",
289
289
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -351,7 +351,7 @@ class Sources {
351
351
  method: "GET",
352
352
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
353
353
  ? yield core.Supplier.get(this._options.project)
354
- : 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),
354
+ : 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),
355
355
  contentType: "application/json",
356
356
  requestType: "json",
357
357
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -406,8 +406,9 @@ class Sources {
406
406
  * - Total number of sources
407
407
  * - Total number of files across all sources
408
408
  * - Total size of all files
409
- * - Per-source breakdown with file details (file_name, file_size per file)
409
+ * - Per-source breakdown with file details (file_name, file_size per file) if include_detailed_per_source_metadata is True
410
410
  *
411
+ * @param {Letta.GetSourcesMetadataRequest} request
411
412
  * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
412
413
  *
413
414
  * @throws {@link Letta.UnprocessableEntityError}
@@ -415,16 +416,22 @@ class Sources {
415
416
  * @example
416
417
  * await client.sources.getSourcesMetadata()
417
418
  */
418
- getSourcesMetadata(requestOptions) {
419
- return __awaiter(this, void 0, void 0, function* () {
419
+ getSourcesMetadata() {
420
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
420
421
  var _a, _b, _c;
422
+ const { includeDetailedPerSourceMetadata } = request;
423
+ const _queryParams = {};
424
+ if (includeDetailedPerSourceMetadata != null) {
425
+ _queryParams["include_detailed_per_source_metadata"] = includeDetailedPerSourceMetadata.toString();
426
+ }
421
427
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
422
428
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/metadata"),
423
429
  method: "GET",
424
430
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
425
431
  ? yield core.Supplier.get(this._options.project)
426
- : 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),
427
433
  contentType: "application/json",
434
+ queryParameters: _queryParams,
428
435
  requestType: "json",
429
436
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
430
437
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -489,7 +496,7 @@ class Sources {
489
496
  method: "GET",
490
497
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
491
498
  ? yield core.Supplier.get(this._options.project)
492
- : 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),
499
+ : 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),
493
500
  contentType: "application/json",
494
501
  requestType: "json",
495
502
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -558,7 +565,7 @@ class Sources {
558
565
  method: "POST",
559
566
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
560
567
  ? yield core.Supplier.get(this._options.project)
561
- : 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),
568
+ : 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),
562
569
  contentType: "application/json",
563
570
  requestType: "json",
564
571
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -607,6 +614,73 @@ class Sources {
607
614
  }
608
615
  });
609
616
  }
617
+ /**
618
+ * Get all agent IDs that have the specified source attached.
619
+ *
620
+ * @param {string} sourceId
621
+ * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
622
+ *
623
+ * @throws {@link Letta.UnprocessableEntityError}
624
+ *
625
+ * @example
626
+ * await client.sources.getAgentsForSource("source_id")
627
+ */
628
+ getAgentsForSource(sourceId, requestOptions) {
629
+ return __awaiter(this, void 0, void 0, function* () {
630
+ var _a, _b, _c;
631
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
632
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/agents`),
633
+ method: "GET",
634
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
635
+ ? yield core.Supplier.get(this._options.project)
636
+ : 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),
637
+ contentType: "application/json",
638
+ requestType: "json",
639
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
640
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
641
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
642
+ });
643
+ if (_response.ok) {
644
+ return serializers.sources.getAgentsForSource.Response.parseOrThrow(_response.body, {
645
+ unrecognizedObjectKeys: "passthrough",
646
+ allowUnrecognizedUnionMembers: true,
647
+ allowUnrecognizedEnumValues: true,
648
+ skipValidation: true,
649
+ breadcrumbsPrefix: ["response"],
650
+ });
651
+ }
652
+ if (_response.error.reason === "status-code") {
653
+ switch (_response.error.statusCode) {
654
+ case 422:
655
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
656
+ unrecognizedObjectKeys: "passthrough",
657
+ allowUnrecognizedUnionMembers: true,
658
+ allowUnrecognizedEnumValues: true,
659
+ skipValidation: true,
660
+ breadcrumbsPrefix: ["response"],
661
+ }));
662
+ default:
663
+ throw new errors.LettaError({
664
+ statusCode: _response.error.statusCode,
665
+ body: _response.error.body,
666
+ });
667
+ }
668
+ }
669
+ switch (_response.error.reason) {
670
+ case "non-json":
671
+ throw new errors.LettaError({
672
+ statusCode: _response.error.statusCode,
673
+ body: _response.error.rawBody,
674
+ });
675
+ case "timeout":
676
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/sources/{source_id}/agents.");
677
+ case "unknown":
678
+ throw new errors.LettaError({
679
+ message: _response.error.errorMessage,
680
+ });
681
+ }
682
+ });
683
+ }
610
684
  /**
611
685
  * Retrieve metadata for a specific file by its ID.
612
686
  *
@@ -633,7 +707,7 @@ class Sources {
633
707
  method: "GET",
634
708
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
635
709
  ? yield core.Supplier.get(this._options.project)
636
- : 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),
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 }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
637
711
  contentType: "application/json",
638
712
  queryParameters: _queryParams,
639
713
  requestType: "json",
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface GetSourcesMetadataRequest {
9
+ includeDetailedPerSourceMetadata?: boolean;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,16 +11,16 @@ import * as Letta from "../../../../index";
11
11
  export interface SourceCreate {
12
12
  /** The name of the source. */
13
13
  name: string;
14
- /** The hande for the embedding config used by the source. */
15
- embedding?: string;
16
- /** The chunk size of the embedding. */
17
- embeddingChunkSize?: number;
18
- /** (Legacy) The embedding configuration used by the source. */
19
- embeddingConfig?: Letta.EmbeddingConfig;
20
14
  /** The description of the source. */
21
15
  description?: string;
22
16
  /** Instructions for how to use the source. */
23
17
  instructions?: string;
24
18
  /** Metadata associated with the source. */
25
19
  metadata?: Record<string, unknown>;
20
+ /** The handle for the embedding config used by the source. */
21
+ embedding?: string;
22
+ /** The chunk size of the embedding. */
23
+ embeddingChunkSize?: number;
24
+ /** (Legacy) The embedding configuration used by the source. */
25
+ embeddingConfig?: Letta.EmbeddingConfig;
26
26
  }
@@ -1,3 +1,4 @@
1
1
  export { type SourceUpdate } from "./SourceUpdate";
2
+ export { type GetSourcesMetadataRequest } from "./GetSourcesMetadataRequest";
2
3
  export { type SourceCreate } from "./SourceCreate";
3
4
  export { type GetFileMetadataRequest } from "./GetFileMetadataRequest";
@@ -37,14 +37,15 @@ export declare class Files {
37
37
  *
38
38
  * @param {File | fs.ReadStream | Blob} file
39
39
  * @param {string} sourceId
40
+ * @param {Letta.sources.BodyUploadFileToSource} request
40
41
  * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
41
42
  *
42
43
  * @throws {@link Letta.UnprocessableEntityError}
43
44
  *
44
45
  * @example
45
- * await client.sources.files.upload(fs.createReadStream("/path/to/your/file"), "source_id")
46
+ * await client.sources.files.upload(fs.createReadStream("/path/to/your/file"), "source_id", {})
46
47
  */
47
- upload(file: File | fs.ReadStream | Blob, sourceId: string, requestOptions?: Files.RequestOptions): Promise<Letta.FileMetadata>;
48
+ upload(file: File | fs.ReadStream | Blob, sourceId: string, request: Letta.sources.BodyUploadFileToSource, requestOptions?: Files.RequestOptions): Promise<Letta.FileMetadata>;
48
49
  /**
49
50
  * List paginated files associated with a data source.
50
51
  *