@letta-ai/letta-client 0.1.197 → 0.1.199

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/api/resources/agents/client/Client.d.ts +0 -17
  2. package/api/resources/agents/client/Client.js +11 -95
  3. package/api/resources/agents/client/requests/index.d.ts +0 -1
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  7. package/api/resources/agents/resources/files/client/Client.js +4 -4
  8. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  9. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  10. package/api/resources/agents/resources/index.d.ts +1 -0
  11. package/api/resources/agents/resources/index.js +1 -0
  12. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  13. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  14. package/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -1
  15. package/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +5 -0
  16. package/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  17. package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  18. package/api/resources/agents/resources/messages/types/index.js +1 -0
  19. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  20. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  21. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  22. package/api/resources/agents/resources/tools/client/Client.d.ts +10 -3
  23. package/api/resources/agents/resources/tools/client/Client.js +48 -17
  24. package/api/resources/agents/resources/tools/client/index.d.ts +1 -1
  25. package/api/resources/agents/resources/tools/client/index.js +15 -0
  26. package/api/resources/agents/{client/requests/ModifyApprovalRequest.d.ts → resources/tools/client/requests/ToolsModifyApprovalRequest.d.ts} +1 -1
  27. package/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  28. package/api/resources/agents/resources/tools/client/requests/index.js +2 -0
  29. package/api/resources/batches/client/Client.js +4 -4
  30. package/api/resources/blocks/client/Client.js +6 -6
  31. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  32. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  33. package/api/resources/embeddingModels/client/Client.js +1 -1
  34. package/api/resources/folders/client/Client.js +9 -9
  35. package/api/resources/folders/resources/files/client/Client.js +3 -3
  36. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  37. package/api/resources/groups/client/Client.js +6 -6
  38. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  39. package/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  40. package/api/resources/health/client/Client.js +1 -1
  41. package/api/resources/identities/client/Client.js +7 -7
  42. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  43. package/api/resources/jobs/client/Client.js +5 -5
  44. package/api/resources/messages/client/Client.js +1 -1
  45. package/api/resources/models/client/Client.js +2 -2
  46. package/api/resources/projects/client/Client.js +1 -1
  47. package/api/resources/providers/client/Client.js +6 -6
  48. package/api/resources/runs/client/Client.js +5 -5
  49. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  50. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  51. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  52. package/api/resources/sources/client/Client.js +10 -10
  53. package/api/resources/sources/resources/files/client/Client.js +3 -3
  54. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  55. package/api/resources/steps/client/Client.js +3 -3
  56. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  57. package/api/resources/tags/client/Client.js +1 -1
  58. package/api/resources/telemetry/client/Client.js +1 -1
  59. package/api/resources/templates/client/Client.js +15 -9
  60. package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +8 -0
  61. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  62. package/api/resources/tools/client/Client.js +20 -20
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/types/ApprovalCreate.d.ts +16 -0
  65. package/api/types/ApprovalCreate.js +5 -0
  66. package/api/types/ApprovalRequestMessage.d.ts +27 -0
  67. package/api/types/ApprovalRequestMessage.js +5 -0
  68. package/api/types/ApprovalResponseMessage.d.ts +32 -0
  69. package/api/types/ApprovalResponseMessage.js +5 -0
  70. package/api/types/LettaBatchRequest.d.ts +1 -1
  71. package/api/types/LettaBatchRequestMessagesItem.d.ts +5 -0
  72. package/api/types/LettaBatchRequestMessagesItem.js +5 -0
  73. package/api/types/LettaMessageUnion.d.ts +1 -1
  74. package/api/types/LettaRequest.d.ts +1 -1
  75. package/api/types/LettaRequestMessagesItem.d.ts +5 -0
  76. package/api/types/LettaRequestMessagesItem.js +5 -0
  77. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +2 -0
  78. package/api/types/LettaStreamingRequest.d.ts +2 -2
  79. package/api/types/LettaStreamingRequestMessagesItem.d.ts +5 -0
  80. package/api/types/LettaStreamingRequestMessagesItem.js +5 -0
  81. package/api/types/MessageCreate.d.ts +2 -0
  82. package/api/types/MessageRole.d.ts +2 -1
  83. package/api/types/MessageRole.js +1 -0
  84. package/api/types/Passage.d.ts +2 -0
  85. package/api/types/StopReasonType.d.ts +2 -1
  86. package/api/types/StopReasonType.js +1 -0
  87. package/api/types/index.d.ts +6 -0
  88. package/api/types/index.js +6 -0
  89. package/dist/api/resources/agents/client/Client.d.ts +0 -17
  90. package/dist/api/resources/agents/client/Client.js +11 -95
  91. package/dist/api/resources/agents/client/requests/index.d.ts +0 -1
  92. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  93. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  94. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  95. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  96. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  97. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  98. package/dist/api/resources/agents/resources/index.d.ts +1 -0
  99. package/dist/api/resources/agents/resources/index.js +1 -0
  100. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  101. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  102. package/dist/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -1
  103. package/dist/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +5 -0
  104. package/dist/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +5 -0
  105. package/dist/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  106. package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  107. package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
  108. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  109. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  110. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  111. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +10 -3
  112. package/dist/api/resources/agents/resources/tools/client/Client.js +48 -17
  113. package/dist/api/resources/agents/resources/tools/client/index.d.ts +1 -1
  114. package/dist/api/resources/agents/resources/tools/client/index.js +15 -0
  115. package/dist/api/resources/agents/{client/requests/ModifyApprovalRequest.d.ts → resources/tools/client/requests/ToolsModifyApprovalRequest.d.ts} +1 -1
  116. package/dist/api/resources/agents/resources/tools/client/requests/ToolsModifyApprovalRequest.js +5 -0
  117. package/dist/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  118. package/dist/api/resources/agents/resources/tools/client/requests/index.js +2 -0
  119. package/dist/api/resources/batches/client/Client.js +4 -4
  120. package/dist/api/resources/blocks/client/Client.js +6 -6
  121. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  122. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  123. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  124. package/dist/api/resources/folders/client/Client.js +9 -9
  125. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  126. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  127. package/dist/api/resources/groups/client/Client.js +6 -6
  128. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  129. package/dist/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  130. package/dist/api/resources/health/client/Client.js +1 -1
  131. package/dist/api/resources/identities/client/Client.js +7 -7
  132. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  133. package/dist/api/resources/jobs/client/Client.js +5 -5
  134. package/dist/api/resources/messages/client/Client.js +1 -1
  135. package/dist/api/resources/models/client/Client.js +2 -2
  136. package/dist/api/resources/projects/client/Client.js +1 -1
  137. package/dist/api/resources/providers/client/Client.js +6 -6
  138. package/dist/api/resources/runs/client/Client.js +5 -5
  139. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  140. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  141. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  142. package/dist/api/resources/sources/client/Client.js +10 -10
  143. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  144. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  145. package/dist/api/resources/steps/client/Client.js +3 -3
  146. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  147. package/dist/api/resources/tags/client/Client.js +1 -1
  148. package/dist/api/resources/telemetry/client/Client.js +1 -1
  149. package/dist/api/resources/templates/client/Client.js +15 -9
  150. package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +8 -0
  151. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  152. package/dist/api/resources/tools/client/Client.js +20 -20
  153. package/dist/api/resources/voice/client/Client.js +1 -1
  154. package/dist/api/types/ApprovalCreate.d.ts +16 -0
  155. package/dist/api/types/ApprovalCreate.js +5 -0
  156. package/dist/api/types/ApprovalRequestMessage.d.ts +27 -0
  157. package/dist/api/types/ApprovalRequestMessage.js +5 -0
  158. package/dist/api/types/ApprovalResponseMessage.d.ts +32 -0
  159. package/dist/api/types/ApprovalResponseMessage.js +5 -0
  160. package/dist/api/types/LettaBatchRequest.d.ts +1 -1
  161. package/dist/api/types/LettaBatchRequestMessagesItem.d.ts +5 -0
  162. package/dist/api/types/LettaBatchRequestMessagesItem.js +5 -0
  163. package/dist/api/types/LettaMessageUnion.d.ts +1 -1
  164. package/dist/api/types/LettaRequest.d.ts +1 -1
  165. package/dist/api/types/LettaRequestMessagesItem.d.ts +5 -0
  166. package/dist/api/types/LettaRequestMessagesItem.js +5 -0
  167. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +2 -0
  168. package/dist/api/types/LettaStreamingRequest.d.ts +2 -2
  169. package/dist/api/types/LettaStreamingRequestMessagesItem.d.ts +5 -0
  170. package/dist/api/types/LettaStreamingRequestMessagesItem.js +5 -0
  171. package/dist/api/types/MessageCreate.d.ts +2 -0
  172. package/dist/api/types/MessageRole.d.ts +2 -1
  173. package/dist/api/types/MessageRole.js +1 -0
  174. package/dist/api/types/Passage.d.ts +2 -0
  175. package/dist/api/types/StopReasonType.d.ts +2 -1
  176. package/dist/api/types/StopReasonType.js +1 -0
  177. package/dist/api/types/index.d.ts +6 -0
  178. package/dist/api/types/index.js +6 -0
  179. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -2
  180. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +2 -2
  181. package/dist/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +12 -0
  182. package/dist/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +43 -0
  183. package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  184. package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +4 -0
  185. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  186. package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
  187. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  188. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +4 -0
  189. package/dist/serialization/types/ApprovalCreate.d.ts +15 -0
  190. package/dist/serialization/types/ApprovalCreate.js +46 -0
  191. package/dist/serialization/types/ApprovalRequestMessage.d.ts +23 -0
  192. package/dist/serialization/types/ApprovalRequestMessage.js +54 -0
  193. package/dist/serialization/types/ApprovalResponseMessage.d.ts +24 -0
  194. package/dist/serialization/types/ApprovalResponseMessage.js +55 -0
  195. package/dist/serialization/types/LettaBatchRequest.d.ts +2 -2
  196. package/dist/serialization/types/LettaBatchRequest.js +2 -2
  197. package/dist/serialization/types/LettaBatchRequestMessagesItem.d.ts +12 -0
  198. package/dist/serialization/types/LettaBatchRequestMessagesItem.js +43 -0
  199. package/dist/serialization/types/LettaMessageUnion.d.ts +3 -1
  200. package/dist/serialization/types/LettaMessageUnion.js +4 -0
  201. package/dist/serialization/types/LettaRequest.d.ts +2 -2
  202. package/dist/serialization/types/LettaRequest.js +2 -2
  203. package/dist/serialization/types/LettaRequestMessagesItem.d.ts +12 -0
  204. package/dist/serialization/types/LettaRequestMessagesItem.js +43 -0
  205. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +1 -0
  206. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +1 -0
  207. package/dist/serialization/types/LettaStreamingRequest.d.ts +2 -2
  208. package/dist/serialization/types/LettaStreamingRequest.js +2 -2
  209. package/dist/serialization/types/LettaStreamingRequestMessagesItem.d.ts +12 -0
  210. package/dist/serialization/types/LettaStreamingRequestMessagesItem.js +43 -0
  211. package/dist/serialization/types/MessageCreate.d.ts +1 -0
  212. package/dist/serialization/types/MessageCreate.js +1 -0
  213. package/dist/serialization/types/MessageRole.d.ts +1 -1
  214. package/dist/serialization/types/MessageRole.js +1 -1
  215. package/dist/serialization/types/Passage.d.ts +1 -0
  216. package/dist/serialization/types/Passage.js +1 -0
  217. package/dist/serialization/types/StopReasonType.d.ts +1 -1
  218. package/dist/serialization/types/StopReasonType.js +1 -0
  219. package/dist/serialization/types/index.d.ts +6 -0
  220. package/dist/serialization/types/index.js +6 -0
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/package.json +1 -1
  224. package/reference.md +28 -84
  225. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -2
  226. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +2 -2
  227. package/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +12 -0
  228. package/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +43 -0
  229. package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  230. package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +4 -0
  231. package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  232. package/serialization/resources/agents/resources/messages/types/index.js +1 -0
  233. package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  234. package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +4 -0
  235. package/serialization/types/ApprovalCreate.d.ts +15 -0
  236. package/serialization/types/ApprovalCreate.js +46 -0
  237. package/serialization/types/ApprovalRequestMessage.d.ts +23 -0
  238. package/serialization/types/ApprovalRequestMessage.js +54 -0
  239. package/serialization/types/ApprovalResponseMessage.d.ts +24 -0
  240. package/serialization/types/ApprovalResponseMessage.js +55 -0
  241. package/serialization/types/LettaBatchRequest.d.ts +2 -2
  242. package/serialization/types/LettaBatchRequest.js +2 -2
  243. package/serialization/types/LettaBatchRequestMessagesItem.d.ts +12 -0
  244. package/serialization/types/LettaBatchRequestMessagesItem.js +43 -0
  245. package/serialization/types/LettaMessageUnion.d.ts +3 -1
  246. package/serialization/types/LettaMessageUnion.js +4 -0
  247. package/serialization/types/LettaRequest.d.ts +2 -2
  248. package/serialization/types/LettaRequest.js +2 -2
  249. package/serialization/types/LettaRequestMessagesItem.d.ts +12 -0
  250. package/serialization/types/LettaRequestMessagesItem.js +43 -0
  251. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +1 -0
  252. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +1 -0
  253. package/serialization/types/LettaStreamingRequest.d.ts +2 -2
  254. package/serialization/types/LettaStreamingRequest.js +2 -2
  255. package/serialization/types/LettaStreamingRequestMessagesItem.d.ts +12 -0
  256. package/serialization/types/LettaStreamingRequestMessagesItem.js +43 -0
  257. package/serialization/types/MessageCreate.d.ts +1 -0
  258. package/serialization/types/MessageCreate.js +1 -0
  259. package/serialization/types/MessageRole.d.ts +1 -1
  260. package/serialization/types/MessageRole.js +1 -1
  261. package/serialization/types/Passage.d.ts +1 -0
  262. package/serialization/types/Passage.js +1 -0
  263. package/serialization/types/StopReasonType.d.ts +1 -1
  264. package/serialization/types/StopReasonType.js +1 -0
  265. package/serialization/types/index.d.ts +6 -0
  266. package/serialization/types/index.js +6 -0
  267. package/version.d.ts +1 -1
  268. package/version.js +1 -1
  269. /package/api/resources/agents/{client/requests/ModifyApprovalRequest.js → resources/messages/types/LettaAsyncRequestMessagesItem.js} +0 -0
  270. /package/{dist/api/resources/agents/client/requests/ModifyApprovalRequest.js → api/resources/agents/resources/tools/client/requests/ToolsModifyApprovalRequest.js} +0 -0
@@ -82,7 +82,7 @@ class Sources {
82
82
  method: "PATCH",
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.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Sources {
159
159
  method: "PATCH",
160
160
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
161
161
  ? yield core.Supplier.get(this._options.project)
162
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Sources {
235
235
  method: "GET",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Templates {
84
84
  method: "POST",
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.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -150,7 +150,7 @@ class Templates {
150
150
  method: "POST",
151
151
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
152
152
  ? yield core.Supplier.get(this._options.project)
153
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
153
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
154
  contentType: "application/json",
155
155
  requestType: "json",
156
156
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -206,7 +206,7 @@ class Templates {
206
206
  method: "POST",
207
207
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
208
208
  ? yield core.Supplier.get(this._options.project)
209
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
210
  contentType: "application/json",
211
211
  requestType: "json",
212
212
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -72,14 +72,21 @@ export declare class Tools {
72
72
  detach(agentId: string, toolId: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
73
73
  private __detach;
74
74
  /**
75
+ * Attach a tool to an agent.
76
+ *
75
77
  * @param {string} agentId
76
- * @param {string} toolId
78
+ * @param {string} toolName
79
+ * @param {Letta.agents.ToolsModifyApprovalRequest} request
77
80
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
78
81
  *
82
+ * @throws {@link Letta.UnprocessableEntityError}
83
+ *
79
84
  * @example
80
- * await client.agents.tools.modifyApproval("agent_id", "tool_id")
85
+ * await client.agents.tools.modifyApproval("agent_id", "tool_name", {
86
+ * requiresApproval: true
87
+ * })
81
88
  */
82
- modifyApproval(agentId: string, toolId: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<void>;
89
+ modifyApproval(agentId: string, toolName: string, request: Letta.agents.ToolsModifyApprovalRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
83
90
  private __modifyApproval;
84
91
  protected _getCustomAuthorizationHeaders(): Promise<{
85
92
  Authorization: string;
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -158,7 +158,7 @@ class Tools {
158
158
  method: "PATCH",
159
159
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
160
160
  ? yield core.Supplier.get(this._options.project)
161
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
162
  contentType: "application/json",
163
163
  requestType: "json",
164
164
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Tools {
235
235
  method: "PATCH",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -290,40 +290,71 @@ class Tools {
290
290
  });
291
291
  }
292
292
  /**
293
+ * Attach a tool to an agent.
294
+ *
293
295
  * @param {string} agentId
294
- * @param {string} toolId
296
+ * @param {string} toolName
297
+ * @param {Letta.agents.ToolsModifyApprovalRequest} request
295
298
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
296
299
  *
300
+ * @throws {@link Letta.UnprocessableEntityError}
301
+ *
297
302
  * @example
298
- * await client.agents.tools.modifyApproval("agent_id", "tool_id")
303
+ * await client.agents.tools.modifyApproval("agent_id", "tool_name", {
304
+ * requiresApproval: true
305
+ * })
299
306
  */
300
- modifyApproval(agentId, toolId, requestOptions) {
301
- return core.HttpResponsePromise.fromPromise(this.__modifyApproval(agentId, toolId, requestOptions));
307
+ modifyApproval(agentId, toolName, request, requestOptions) {
308
+ return core.HttpResponsePromise.fromPromise(this.__modifyApproval(agentId, toolName, request, requestOptions));
302
309
  }
303
- __modifyApproval(agentId, toolId, requestOptions) {
310
+ __modifyApproval(agentId, toolName, request, requestOptions) {
304
311
  return __awaiter(this, void 0, void 0, function* () {
305
312
  var _a, _b, _c;
313
+ const { requiresApproval } = request;
314
+ const _queryParams = {};
315
+ _queryParams["requires_approval"] = requiresApproval.toString();
306
316
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
307
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/tools/approval/${encodeURIComponent(toolId)}`),
317
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/tools/approval/${encodeURIComponent(toolName)}`),
308
318
  method: "PATCH",
309
319
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
310
320
  ? yield core.Supplier.get(this._options.project)
311
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
321
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
322
  contentType: "application/json",
323
+ queryParameters: _queryParams,
313
324
  requestType: "json",
314
325
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
315
326
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
316
327
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
317
328
  });
318
329
  if (_response.ok) {
319
- return { data: undefined, rawResponse: _response.rawResponse };
330
+ return {
331
+ data: serializers.AgentState.parseOrThrow(_response.body, {
332
+ unrecognizedObjectKeys: "passthrough",
333
+ allowUnrecognizedUnionMembers: true,
334
+ allowUnrecognizedEnumValues: true,
335
+ skipValidation: true,
336
+ breadcrumbsPrefix: ["response"],
337
+ }),
338
+ rawResponse: _response.rawResponse,
339
+ };
320
340
  }
321
341
  if (_response.error.reason === "status-code") {
322
- throw new errors.LettaError({
323
- statusCode: _response.error.statusCode,
324
- body: _response.error.body,
325
- rawResponse: _response.rawResponse,
326
- });
342
+ switch (_response.error.statusCode) {
343
+ case 422:
344
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
345
+ unrecognizedObjectKeys: "passthrough",
346
+ allowUnrecognizedUnionMembers: true,
347
+ allowUnrecognizedEnumValues: true,
348
+ skipValidation: true,
349
+ breadcrumbsPrefix: ["response"],
350
+ }), _response.rawResponse);
351
+ default:
352
+ throw new errors.LettaError({
353
+ statusCode: _response.error.statusCode,
354
+ body: _response.error.body,
355
+ rawResponse: _response.rawResponse,
356
+ });
357
+ }
327
358
  }
328
359
  switch (_response.error.reason) {
329
360
  case "non-json":
@@ -333,7 +364,7 @@ class Tools {
333
364
  rawResponse: _response.rawResponse,
334
365
  });
335
366
  case "timeout":
336
- throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/agents/{agent_id}/tools/approval/{tool_id}.");
367
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/agents/{agent_id}/tools/approval/{tool_name}.");
337
368
  case "unknown":
338
369
  throw new errors.LettaError({
339
370
  message: _response.error.errorMessage,
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests";
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -7,6 +7,6 @@
7
7
  * requiresApproval: true
8
8
  * }
9
9
  */
10
- export interface ModifyApprovalRequest {
10
+ export interface ToolsModifyApprovalRequest {
11
11
  requiresApproval: boolean;
12
12
  }
@@ -0,0 +1 @@
1
+ export { type ToolsModifyApprovalRequest } from "./ToolsModifyApprovalRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -80,7 +80,7 @@ class Batches {
80
80
  method: "GET",
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.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -168,7 +168,7 @@ class Batches {
168
168
  method: "POST",
169
169
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
170
170
  ? yield core.Supplier.get(this._options.project)
171
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
172
  contentType: "application/json",
173
173
  requestType: "json",
174
174
  body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -245,7 +245,7 @@ class Batches {
245
245
  method: "GET",
246
246
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
247
247
  ? yield core.Supplier.get(this._options.project)
248
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -321,7 +321,7 @@ class Batches {
321
321
  method: "PATCH",
322
322
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
323
323
  ? yield core.Supplier.get(this._options.project)
324
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
324
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
325
325
  contentType: "application/json",
326
326
  requestType: "json",
327
327
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -141,7 +141,7 @@ class Blocks {
141
141
  method: "GET",
142
142
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
143
143
  ? yield core.Supplier.get(this._options.project)
144
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
145
  contentType: "application/json",
146
146
  queryParameters: _queryParams,
147
147
  requestType: "json",
@@ -219,7 +219,7 @@ class Blocks {
219
219
  method: "POST",
220
220
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
221
221
  ? yield core.Supplier.get(this._options.project)
222
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
222
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
223
223
  contentType: "application/json",
224
224
  requestType: "json",
225
225
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -295,7 +295,7 @@ class Blocks {
295
295
  method: "GET",
296
296
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
297
297
  ? yield core.Supplier.get(this._options.project)
298
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
298
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
299
299
  contentType: "application/json",
300
300
  requestType: "json",
301
301
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -369,7 +369,7 @@ class Blocks {
369
369
  method: "GET",
370
370
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
371
371
  ? yield core.Supplier.get(this._options.project)
372
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
372
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
373
373
  contentType: "application/json",
374
374
  requestType: "json",
375
375
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -443,7 +443,7 @@ class Blocks {
443
443
  method: "DELETE",
444
444
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
445
445
  ? yield core.Supplier.get(this._options.project)
446
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
446
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
447
447
  contentType: "application/json",
448
448
  requestType: "json",
449
449
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -509,7 +509,7 @@ class Blocks {
509
509
  method: "PATCH",
510
510
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
511
511
  ? yield core.Supplier.get(this._options.project)
512
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
512
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
513
513
  contentType: "application/json",
514
514
  requestType: "json",
515
515
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -93,7 +93,7 @@ class Agents {
93
93
  method: "GET",
94
94
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
95
  ? yield core.Supplier.get(this._options.project)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
99
99
  requestType: "json",
@@ -92,7 +92,7 @@ class ClientSideAccessTokens {
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.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -170,7 +170,7 @@ class ClientSideAccessTokens {
170
170
  method: "POST",
171
171
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
172
172
  ? yield core.Supplier.get(this._options.project)
173
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
174
174
  contentType: "application/json",
175
175
  requestType: "json",
176
176
  body: serializers.ClientSideAccessTokensCreateRequest.jsonOrThrow(request, {
@@ -246,7 +246,7 @@ class ClientSideAccessTokens {
246
246
  method: "DELETE",
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.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
250
  contentType: "application/json",
251
251
  requestType: "json",
252
252
  body: request,
@@ -80,7 +80,7 @@ class EmbeddingModels {
80
80
  method: "GET",
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.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -90,7 +90,7 @@ class Folders {
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.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  requestType: "json",
96
96
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -166,7 +166,7 @@ class Folders {
166
166
  method: "GET",
167
167
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
168
168
  ? yield core.Supplier.get(this._options.project)
169
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
170
  contentType: "application/json",
171
171
  requestType: "json",
172
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -242,7 +242,7 @@ class Folders {
242
242
  method: "DELETE",
243
243
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
244
244
  ? yield core.Supplier.get(this._options.project)
245
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
245
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
246
  contentType: "application/json",
247
247
  requestType: "json",
248
248
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -310,7 +310,7 @@ class Folders {
310
310
  method: "PATCH",
311
311
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
312
312
  ? yield core.Supplier.get(this._options.project)
313
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
313
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
316
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -387,7 +387,7 @@ class Folders {
387
387
  method: "GET",
388
388
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
389
389
  ? yield core.Supplier.get(this._options.project)
390
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
390
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
391
391
  contentType: "application/json",
392
392
  requestType: "json",
393
393
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -474,7 +474,7 @@ class Folders {
474
474
  method: "GET",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
477
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
478
478
  contentType: "application/json",
479
479
  queryParameters: _queryParams,
480
480
  requestType: "json",
@@ -550,7 +550,7 @@ class Folders {
550
550
  method: "GET",
551
551
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
552
552
  ? yield core.Supplier.get(this._options.project)
553
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
553
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
554
554
  contentType: "application/json",
555
555
  requestType: "json",
556
556
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -628,7 +628,7 @@ class Folders {
628
628
  method: "POST",
629
629
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
630
630
  ? yield core.Supplier.get(this._options.project)
631
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
631
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
632
632
  contentType: "application/json",
633
633
  requestType: "json",
634
634
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -705,7 +705,7 @@ class Folders {
705
705
  method: "GET",
706
706
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
707
707
  ? yield core.Supplier.get(this._options.project)
708
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
708
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
709
709
  contentType: "application/json",
710
710
  requestType: "json",
711
711
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -93,7 +93,7 @@ class Files {
93
93
  method: "POST",
94
94
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
95
  ? yield core.Supplier.get(this._options.project)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
97
  queryParameters: _queryParams,
98
98
  requestType: "file",
99
99
  duplex: _maybeEncodedRequest.duplex,
@@ -183,7 +183,7 @@ class Files {
183
183
  method: "GET",
184
184
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
185
185
  ? yield core.Supplier.get(this._options.project)
186
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
187
  contentType: "application/json",
188
188
  queryParameters: _queryParams,
189
189
  requestType: "json",
@@ -261,7 +261,7 @@ class Files {
261
261
  method: "DELETE",
262
262
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
263
263
  ? yield core.Supplier.get(this._options.project)
264
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -93,7 +93,7 @@ class Passages {
93
93
  method: "GET",
94
94
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
95
  ? yield core.Supplier.get(this._options.project)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
99
99
  requestType: "json",