@letta-ai/letta-client 0.1.123 → 0.1.125

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 (309) hide show
  1. package/README.md +1 -1
  2. package/api/resources/agents/client/Client.d.ts +18 -0
  3. package/api/resources/agents/client/Client.js +84 -9
  4. package/api/resources/agents/client/requests/SummarizeAgentConversationRequest.d.ts +15 -0
  5. package/api/resources/agents/client/requests/SummarizeAgentConversationRequest.js +5 -0
  6. package/api/resources/agents/client/requests/index.d.ts +1 -0
  7. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  8. package/api/resources/agents/resources/context/client/Client.js +1 -1
  9. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  10. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  12. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  13. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  14. package/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +2 -0
  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.js +2 -2
  22. package/api/resources/embeddingModels/client/Client.js +1 -1
  23. package/api/resources/groups/client/Client.js +6 -6
  24. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  25. package/api/resources/health/client/Client.js +1 -1
  26. package/api/resources/identities/client/Client.js +7 -7
  27. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  28. package/api/resources/jobs/client/Client.d.ts +2 -1
  29. package/api/resources/jobs/client/Client.js +13 -6
  30. package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +13 -0
  31. package/api/resources/jobs/client/requests/JobsListActiveRequest.js +5 -0
  32. package/api/resources/jobs/client/requests/index.d.ts +1 -0
  33. package/api/resources/messages/client/Client.js +1 -1
  34. package/api/resources/models/client/Client.js +1 -1
  35. package/api/resources/projects/client/Client.js +1 -1
  36. package/api/resources/providers/client/Client.js +5 -5
  37. package/api/resources/runs/client/Client.js +4 -4
  38. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  39. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  40. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  41. package/api/resources/sources/client/Client.js +7 -7
  42. package/api/resources/sources/resources/files/client/Client.js +7 -4
  43. package/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +4 -0
  44. package/api/resources/sources/resources/index.d.ts +1 -0
  45. package/api/resources/sources/resources/index.js +1 -0
  46. package/api/resources/sources/resources/passages/client/Client.d.ts +2 -1
  47. package/api/resources/sources/resources/passages/client/Client.js +16 -3
  48. package/api/resources/sources/resources/passages/client/index.d.ts +1 -1
  49. package/api/resources/sources/resources/passages/client/index.js +15 -0
  50. package/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +21 -0
  51. package/api/resources/sources/resources/passages/client/requests/PassagesListRequest.js +5 -0
  52. package/api/resources/sources/resources/passages/client/requests/index.d.ts +1 -0
  53. package/api/resources/sources/resources/passages/client/requests/index.js +2 -0
  54. package/api/resources/steps/client/Client.js +11 -3
  55. package/api/resources/steps/client/requests/StepsListRequest.d.ts +4 -0
  56. package/api/resources/tags/client/Client.js +1 -1
  57. package/api/resources/telemetry/client/Client.js +1 -1
  58. package/api/resources/templates/client/Client.js +1 -1
  59. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  60. package/api/resources/tools/client/Client.js +17 -17
  61. package/api/resources/tools/types/AddMcpServerResponseItem.d.ts +1 -1
  62. package/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +1 -1
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/types/AgentType.d.ts +2 -1
  65. package/api/types/AgentType.js +1 -0
  66. package/api/types/Base64Image.d.ts +12 -0
  67. package/api/types/Base64Image.js +5 -0
  68. package/api/types/Block.d.ts +2 -0
  69. package/api/types/BlockUpdate.d.ts +2 -0
  70. package/api/types/CreateBlock.d.ts +2 -0
  71. package/api/types/FileMetadata.d.ts +7 -0
  72. package/api/types/FileProcessingStatus.d.ts +11 -0
  73. package/api/types/FileProcessingStatus.js +13 -0
  74. package/api/types/ImageContent.d.ts +9 -0
  75. package/api/types/ImageContent.js +5 -0
  76. package/api/types/ImageContentSource.d.ts +8 -0
  77. package/api/types/ImageContentSource.js +5 -0
  78. package/api/types/LettaBatchRequest.d.ts +2 -0
  79. package/api/types/LettaImage.d.ts +14 -0
  80. package/api/types/LettaImage.js +5 -0
  81. package/api/types/LettaMessageContentUnion.d.ts +1 -1
  82. package/api/types/LettaRequest.d.ts +2 -0
  83. package/api/types/LettaStreamingRequest.d.ts +2 -0
  84. package/api/types/LettaUserMessageContentUnion.d.ts +5 -0
  85. package/api/types/LettaUserMessageContentUnion.js +5 -0
  86. package/api/types/Memory.d.ts +2 -0
  87. package/api/types/MessageContentItem.d.ts +1 -1
  88. package/api/types/MessageType.d.ts +13 -0
  89. package/api/types/MessageType.js +15 -0
  90. package/api/types/Passage.d.ts +2 -0
  91. package/api/types/ToolType.d.ts +2 -1
  92. package/api/types/ToolType.js +1 -0
  93. package/api/types/UpdateUserMessageContent.d.ts +1 -1
  94. package/api/types/UrlImage.d.ts +8 -0
  95. package/api/types/UrlImage.js +5 -0
  96. package/api/types/UserMessageContent.d.ts +1 -1
  97. package/api/types/index.d.ts +8 -0
  98. package/api/types/index.js +8 -0
  99. package/dist/api/resources/agents/client/Client.d.ts +18 -0
  100. package/dist/api/resources/agents/client/Client.js +84 -9
  101. package/dist/api/resources/agents/client/requests/SummarizeAgentConversationRequest.d.ts +15 -0
  102. package/dist/api/resources/agents/client/requests/SummarizeAgentConversationRequest.js +5 -0
  103. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  104. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  105. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  106. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  107. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  108. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  109. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  110. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  111. package/dist/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +2 -0
  112. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  113. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  114. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  115. package/dist/api/resources/batches/client/Client.js +4 -4
  116. package/dist/api/resources/blocks/client/Client.js +6 -6
  117. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  118. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  119. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  120. package/dist/api/resources/groups/client/Client.js +6 -6
  121. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  122. package/dist/api/resources/health/client/Client.js +1 -1
  123. package/dist/api/resources/identities/client/Client.js +7 -7
  124. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  125. package/dist/api/resources/jobs/client/Client.d.ts +2 -1
  126. package/dist/api/resources/jobs/client/Client.js +13 -6
  127. package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +13 -0
  128. package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.js +5 -0
  129. package/dist/api/resources/jobs/client/requests/index.d.ts +1 -0
  130. package/dist/api/resources/messages/client/Client.js +1 -1
  131. package/dist/api/resources/models/client/Client.js +1 -1
  132. package/dist/api/resources/projects/client/Client.js +1 -1
  133. package/dist/api/resources/providers/client/Client.js +5 -5
  134. package/dist/api/resources/runs/client/Client.js +4 -4
  135. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  136. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  137. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  138. package/dist/api/resources/sources/client/Client.js +7 -7
  139. package/dist/api/resources/sources/resources/files/client/Client.js +7 -4
  140. package/dist/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +4 -0
  141. package/dist/api/resources/sources/resources/index.d.ts +1 -0
  142. package/dist/api/resources/sources/resources/index.js +1 -0
  143. package/dist/api/resources/sources/resources/passages/client/Client.d.ts +2 -1
  144. package/dist/api/resources/sources/resources/passages/client/Client.js +16 -3
  145. package/dist/api/resources/sources/resources/passages/client/index.d.ts +1 -1
  146. package/dist/api/resources/sources/resources/passages/client/index.js +15 -0
  147. package/dist/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +21 -0
  148. package/dist/api/resources/sources/resources/passages/client/requests/PassagesListRequest.js +5 -0
  149. package/dist/api/resources/sources/resources/passages/client/requests/index.d.ts +1 -0
  150. package/dist/api/resources/sources/resources/passages/client/requests/index.js +2 -0
  151. package/dist/api/resources/steps/client/Client.js +11 -3
  152. package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +4 -0
  153. package/dist/api/resources/tags/client/Client.js +1 -1
  154. package/dist/api/resources/telemetry/client/Client.js +1 -1
  155. package/dist/api/resources/templates/client/Client.js +1 -1
  156. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  157. package/dist/api/resources/tools/client/Client.js +17 -17
  158. package/dist/api/resources/tools/types/AddMcpServerResponseItem.d.ts +1 -1
  159. package/dist/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +1 -1
  160. package/dist/api/resources/voice/client/Client.js +1 -1
  161. package/dist/api/types/AgentType.d.ts +2 -1
  162. package/dist/api/types/AgentType.js +1 -0
  163. package/dist/api/types/Base64Image.d.ts +12 -0
  164. package/dist/api/types/Base64Image.js +5 -0
  165. package/dist/api/types/Block.d.ts +2 -0
  166. package/dist/api/types/BlockUpdate.d.ts +2 -0
  167. package/dist/api/types/CreateBlock.d.ts +2 -0
  168. package/dist/api/types/FileMetadata.d.ts +7 -0
  169. package/dist/api/types/FileProcessingStatus.d.ts +11 -0
  170. package/dist/api/types/FileProcessingStatus.js +13 -0
  171. package/dist/api/types/ImageContent.d.ts +9 -0
  172. package/dist/api/types/ImageContent.js +5 -0
  173. package/dist/api/types/ImageContentSource.d.ts +8 -0
  174. package/dist/api/types/ImageContentSource.js +5 -0
  175. package/dist/api/types/LettaBatchRequest.d.ts +2 -0
  176. package/dist/api/types/LettaImage.d.ts +14 -0
  177. package/dist/api/types/LettaImage.js +5 -0
  178. package/dist/api/types/LettaMessageContentUnion.d.ts +1 -1
  179. package/dist/api/types/LettaRequest.d.ts +2 -0
  180. package/dist/api/types/LettaStreamingRequest.d.ts +2 -0
  181. package/dist/api/types/LettaUserMessageContentUnion.d.ts +5 -0
  182. package/dist/api/types/LettaUserMessageContentUnion.js +5 -0
  183. package/dist/api/types/Memory.d.ts +2 -0
  184. package/dist/api/types/MessageContentItem.d.ts +1 -1
  185. package/dist/api/types/MessageType.d.ts +13 -0
  186. package/dist/api/types/MessageType.js +15 -0
  187. package/dist/api/types/Passage.d.ts +2 -0
  188. package/dist/api/types/ToolType.d.ts +2 -1
  189. package/dist/api/types/ToolType.js +1 -0
  190. package/dist/api/types/UpdateUserMessageContent.d.ts +1 -1
  191. package/dist/api/types/UrlImage.d.ts +8 -0
  192. package/dist/api/types/UrlImage.js +5 -0
  193. package/dist/api/types/UserMessageContent.d.ts +1 -1
  194. package/dist/api/types/index.d.ts +8 -0
  195. package/dist/api/types/index.js +8 -0
  196. package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +1 -0
  197. package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +1 -0
  198. package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +2 -2
  199. package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.js +2 -2
  200. package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +2 -2
  201. package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +2 -2
  202. package/dist/serialization/types/AgentType.d.ts +1 -1
  203. package/dist/serialization/types/AgentType.js +1 -0
  204. package/dist/serialization/types/Base64Image.d.ts +15 -0
  205. package/dist/serialization/types/Base64Image.js +46 -0
  206. package/dist/serialization/types/Block.d.ts +1 -0
  207. package/dist/serialization/types/Block.js +1 -0
  208. package/dist/serialization/types/BlockUpdate.d.ts +1 -0
  209. package/dist/serialization/types/BlockUpdate.js +1 -0
  210. package/dist/serialization/types/CreateBlock.d.ts +1 -0
  211. package/dist/serialization/types/CreateBlock.js +1 -0
  212. package/dist/serialization/types/FileMetadata.d.ts +4 -0
  213. package/dist/serialization/types/FileMetadata.js +4 -0
  214. package/dist/serialization/types/FileProcessingStatus.d.ts +10 -0
  215. package/dist/serialization/types/FileProcessingStatus.js +41 -0
  216. package/dist/serialization/types/ImageContent.d.ts +14 -0
  217. package/dist/serialization/types/ImageContent.js +45 -0
  218. package/dist/serialization/types/ImageContentSource.d.ts +13 -0
  219. package/dist/serialization/types/ImageContentSource.js +44 -0
  220. package/dist/serialization/types/LettaBatchRequest.d.ts +2 -0
  221. package/dist/serialization/types/LettaBatchRequest.js +2 -0
  222. package/dist/serialization/types/LettaImage.d.ts +16 -0
  223. package/dist/serialization/types/LettaImage.js +47 -0
  224. package/dist/serialization/types/LettaMessageContentUnion.d.ts +2 -1
  225. package/dist/serialization/types/LettaMessageContentUnion.js +2 -0
  226. package/dist/serialization/types/LettaRequest.d.ts +2 -0
  227. package/dist/serialization/types/LettaRequest.js +2 -0
  228. package/dist/serialization/types/LettaStreamingRequest.d.ts +2 -0
  229. package/dist/serialization/types/LettaStreamingRequest.js +2 -0
  230. package/dist/serialization/types/LettaUserMessageContentUnion.d.ts +12 -0
  231. package/dist/serialization/types/LettaUserMessageContentUnion.js +43 -0
  232. package/dist/serialization/types/Memory.d.ts +1 -0
  233. package/dist/serialization/types/Memory.js +1 -0
  234. package/dist/serialization/types/MessageContentItem.d.ts +2 -1
  235. package/dist/serialization/types/MessageContentItem.js +2 -0
  236. package/dist/serialization/types/MessageType.d.ts +10 -0
  237. package/dist/serialization/types/MessageType.js +49 -0
  238. package/dist/serialization/types/Passage.d.ts +1 -0
  239. package/dist/serialization/types/Passage.js +1 -0
  240. package/dist/serialization/types/ToolType.d.ts +1 -1
  241. package/dist/serialization/types/ToolType.js +1 -0
  242. package/dist/serialization/types/UpdateUserMessageContent.d.ts +2 -2
  243. package/dist/serialization/types/UpdateUserMessageContent.js +2 -2
  244. package/dist/serialization/types/UrlImage.d.ts +13 -0
  245. package/dist/serialization/types/UrlImage.js +44 -0
  246. package/dist/serialization/types/UserMessageContent.d.ts +2 -2
  247. package/dist/serialization/types/UserMessageContent.js +2 -2
  248. package/dist/serialization/types/index.d.ts +8 -0
  249. package/dist/serialization/types/index.js +8 -0
  250. package/dist/version.d.ts +1 -1
  251. package/dist/version.js +1 -1
  252. package/package.json +1 -1
  253. package/reference.md +94 -2
  254. package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +1 -0
  255. package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +1 -0
  256. package/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +2 -2
  257. package/serialization/resources/tools/types/AddMcpServerResponseItem.js +2 -2
  258. package/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +2 -2
  259. package/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +2 -2
  260. package/serialization/types/AgentType.d.ts +1 -1
  261. package/serialization/types/AgentType.js +1 -0
  262. package/serialization/types/Base64Image.d.ts +15 -0
  263. package/serialization/types/Base64Image.js +46 -0
  264. package/serialization/types/Block.d.ts +1 -0
  265. package/serialization/types/Block.js +1 -0
  266. package/serialization/types/BlockUpdate.d.ts +1 -0
  267. package/serialization/types/BlockUpdate.js +1 -0
  268. package/serialization/types/CreateBlock.d.ts +1 -0
  269. package/serialization/types/CreateBlock.js +1 -0
  270. package/serialization/types/FileMetadata.d.ts +4 -0
  271. package/serialization/types/FileMetadata.js +4 -0
  272. package/serialization/types/FileProcessingStatus.d.ts +10 -0
  273. package/serialization/types/FileProcessingStatus.js +41 -0
  274. package/serialization/types/ImageContent.d.ts +14 -0
  275. package/serialization/types/ImageContent.js +45 -0
  276. package/serialization/types/ImageContentSource.d.ts +13 -0
  277. package/serialization/types/ImageContentSource.js +44 -0
  278. package/serialization/types/LettaBatchRequest.d.ts +2 -0
  279. package/serialization/types/LettaBatchRequest.js +2 -0
  280. package/serialization/types/LettaImage.d.ts +16 -0
  281. package/serialization/types/LettaImage.js +47 -0
  282. package/serialization/types/LettaMessageContentUnion.d.ts +2 -1
  283. package/serialization/types/LettaMessageContentUnion.js +2 -0
  284. package/serialization/types/LettaRequest.d.ts +2 -0
  285. package/serialization/types/LettaRequest.js +2 -0
  286. package/serialization/types/LettaStreamingRequest.d.ts +2 -0
  287. package/serialization/types/LettaStreamingRequest.js +2 -0
  288. package/serialization/types/LettaUserMessageContentUnion.d.ts +12 -0
  289. package/serialization/types/LettaUserMessageContentUnion.js +43 -0
  290. package/serialization/types/Memory.d.ts +1 -0
  291. package/serialization/types/Memory.js +1 -0
  292. package/serialization/types/MessageContentItem.d.ts +2 -1
  293. package/serialization/types/MessageContentItem.js +2 -0
  294. package/serialization/types/MessageType.d.ts +10 -0
  295. package/serialization/types/MessageType.js +49 -0
  296. package/serialization/types/Passage.d.ts +1 -0
  297. package/serialization/types/Passage.js +1 -0
  298. package/serialization/types/ToolType.d.ts +1 -1
  299. package/serialization/types/ToolType.js +1 -0
  300. package/serialization/types/UpdateUserMessageContent.d.ts +2 -2
  301. package/serialization/types/UpdateUserMessageContent.js +2 -2
  302. package/serialization/types/UrlImage.d.ts +13 -0
  303. package/serialization/types/UrlImage.js +44 -0
  304. package/serialization/types/UserMessageContent.d.ts +2 -2
  305. package/serialization/types/UserMessageContent.js +2 -2
  306. package/serialization/types/index.d.ts +8 -0
  307. package/serialization/types/index.js +8 -0
  308. package/version.d.ts +1 -1
  309. package/version.js +1 -1
@@ -75,7 +75,7 @@ class Batches {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/messages/batches"),
77
77
  method: "GET",
78
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -152,7 +152,7 @@ class Batches {
152
152
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
153
153
  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/messages/batches"),
154
154
  method: "POST",
155
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
155
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
156
  contentType: "application/json",
157
157
  requestType: "json",
158
158
  body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -218,7 +218,7 @@ class Batches {
218
218
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
219
219
  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/messages/batches/${encodeURIComponent(batchId)}`),
220
220
  method: "GET",
221
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
221
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-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
222
  contentType: "application/json",
223
223
  requestType: "json",
224
224
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -283,7 +283,7 @@ class Batches {
283
283
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
284
284
  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/messages/batches/${encodeURIComponent(batchId)}/cancel`),
285
285
  method: "PATCH",
286
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -104,7 +104,7 @@ class Blocks {
104
104
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
105
105
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/blocks/"),
106
106
  method: "GET",
107
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
108
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
110
110
  requestType: "json",
@@ -171,7 +171,7 @@ class Blocks {
171
171
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
172
172
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/blocks/"),
173
173
  method: "POST",
174
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
175
175
  contentType: "application/json",
176
176
  requestType: "json",
177
177
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -236,7 +236,7 @@ class Blocks {
236
236
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
237
237
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/blocks/count"),
238
238
  method: "GET",
239
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
240
  contentType: "application/json",
241
241
  requestType: "json",
242
242
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -299,7 +299,7 @@ class Blocks {
299
299
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
300
300
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
301
301
  method: "GET",
302
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
303
303
  contentType: "application/json",
304
304
  requestType: "json",
305
305
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -362,7 +362,7 @@ class Blocks {
362
362
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
363
363
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
364
364
  method: "DELETE",
365
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
366
366
  contentType: "application/json",
367
367
  requestType: "json",
368
368
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -426,7 +426,7 @@ class Blocks {
426
426
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
427
427
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
428
428
  method: "PATCH",
429
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
429
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
430
430
  contentType: "application/json",
431
431
  requestType: "json",
432
432
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -77,7 +77,7 @@ class Agents {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}/agents`),
79
79
  method: "GET",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -83,7 +83,7 @@ class ClientSideAccessTokens {
83
83
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
84
84
  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/client-side-access-tokens"),
85
85
  method: "POST",
86
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-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
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.ClientSideAccessTokensCreateRequest.jsonOrThrow(request, {
@@ -148,7 +148,7 @@ class ClientSideAccessTokens {
148
148
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
149
149
  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/client-side-access-tokens/${encodeURIComponent(token)}`),
150
150
  method: "DELETE",
151
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
151
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
152
152
  contentType: "application/json",
153
153
  requestType: "json",
154
154
  body: request,
@@ -75,7 +75,7 @@ class EmbeddingModels {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/models/embedding"),
77
77
  method: "GET",
78
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -109,7 +109,7 @@ class Groups {
109
109
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
110
110
  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/groups/"),
111
111
  method: "GET",
112
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-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",
@@ -179,7 +179,7 @@ class Groups {
179
179
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
180
180
  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/groups/"),
181
181
  method: "POST",
182
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
182
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  body: serializers.GroupCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -244,7 +244,7 @@ class Groups {
244
244
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
245
245
  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/groups/count"),
246
246
  method: "GET",
247
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
247
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-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
248
  contentType: "application/json",
249
249
  requestType: "json",
250
250
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -309,7 +309,7 @@ class Groups {
309
309
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
310
310
  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/groups/${encodeURIComponent(groupId)}`),
311
311
  method: "GET",
312
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-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
313
  contentType: "application/json",
314
314
  requestType: "json",
315
315
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -374,7 +374,7 @@ class Groups {
374
374
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
375
375
  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/groups/${encodeURIComponent(groupId)}`),
376
376
  method: "DELETE",
377
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
377
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
378
378
  contentType: "application/json",
379
379
  requestType: "json",
380
380
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -435,7 +435,7 @@ class Groups {
435
435
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
436
436
  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/groups/${encodeURIComponent(groupId)}`),
437
437
  method: "PATCH",
438
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
438
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
439
439
  contentType: "application/json",
440
440
  requestType: "json",
441
441
  body: serializers.GroupUpdate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -97,7 +97,7 @@ class Messages {
97
97
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
98
98
  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/groups/${encodeURIComponent(groupId)}/messages`),
99
99
  method: "GET",
100
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
101
  contentType: "application/json",
102
102
  queryParameters: _queryParams,
103
103
  requestType: "json",
@@ -173,7 +173,7 @@ class Messages {
173
173
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
174
174
  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/groups/${encodeURIComponent(groupId)}/messages`),
175
175
  method: "POST",
176
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
177
  contentType: "application/json",
178
178
  requestType: "json",
179
179
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -233,7 +233,7 @@ class Messages {
233
233
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
234
234
  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/groups/${encodeURIComponent(groupId)}/messages/stream`),
235
235
  method: "POST",
236
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
237
237
  contentType: "application/json",
238
238
  requestType: "json",
239
239
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -314,7 +314,7 @@ class Messages {
314
314
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
315
315
  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/groups/${encodeURIComponent(groupId)}/messages/${encodeURIComponent(messageId)}`),
316
316
  method: "PATCH",
317
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  body: serializers.groups.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -380,7 +380,7 @@ class Messages {
380
380
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
381
381
  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/groups/${encodeURIComponent(groupId)}/reset-messages`),
382
382
  method: "PATCH",
383
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
383
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
384
384
  contentType: "application/json",
385
385
  requestType: "json",
386
386
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -70,7 +70,7 @@ class Health {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  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/health/"),
72
72
  method: "GET",
73
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
74
  contentType: "application/json",
75
75
  requestType: "json",
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -115,7 +115,7 @@ class Identities {
115
115
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
116
116
  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/identities/"),
117
117
  method: "GET",
118
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
119
119
  contentType: "application/json",
120
120
  queryParameters: _queryParams,
121
121
  requestType: "json",
@@ -184,7 +184,7 @@ class Identities {
184
184
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
185
185
  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/identities/"),
186
186
  method: "POST",
187
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -253,7 +253,7 @@ class Identities {
253
253
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
254
254
  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/identities/"),
255
255
  method: "PUT",
256
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
256
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
257
257
  contentType: "application/json",
258
258
  requestType: "json",
259
259
  body: serializers.IdentityUpsert.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -318,7 +318,7 @@ class Identities {
318
318
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
319
319
  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/identities/count"),
320
320
  method: "GET",
321
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
322
322
  contentType: "application/json",
323
323
  requestType: "json",
324
324
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -381,7 +381,7 @@ class Identities {
381
381
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
382
382
  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/identities/${encodeURIComponent(identityId)}`),
383
383
  method: "GET",
384
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
384
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
385
385
  contentType: "application/json",
386
386
  requestType: "json",
387
387
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -446,7 +446,7 @@ class Identities {
446
446
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
447
447
  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/identities/${encodeURIComponent(identityId)}`),
448
448
  method: "DELETE",
449
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
450
450
  contentType: "application/json",
451
451
  requestType: "json",
452
452
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -504,7 +504,7 @@ class Identities {
504
504
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
505
505
  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/identities/${encodeURIComponent(identityId)}`),
506
506
  method: "PATCH",
507
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
507
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-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
508
  contentType: "application/json",
509
509
  requestType: "json",
510
510
  body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -79,7 +79,7 @@ class Properties {
79
79
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
80
80
  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/identities/${encodeURIComponent(identityId)}/properties`),
81
81
  method: "PUT",
82
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-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
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  body: serializers.identities.properties.upsert.Request.jsonOrThrow(request, {
@@ -41,6 +41,7 @@ export declare class Jobs {
41
41
  /**
42
42
  * List all active jobs.
43
43
  *
44
+ * @param {Letta.JobsListActiveRequest} request
44
45
  * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
45
46
  *
46
47
  * @throws {@link Letta.UnprocessableEntityError}
@@ -48,7 +49,7 @@ export declare class Jobs {
48
49
  * @example
49
50
  * await client.jobs.listActive()
50
51
  */
51
- listActive(requestOptions?: Jobs.RequestOptions): Promise<Letta.Job[]>;
52
+ listActive(request?: Letta.JobsListActiveRequest, requestOptions?: Jobs.RequestOptions): Promise<Letta.Job[]>;
52
53
  /**
53
54
  * Get the status of a job.
54
55
  *
@@ -81,7 +81,7 @@ class Jobs {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  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/jobs/"),
83
83
  method: "GET",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-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
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -133,6 +133,7 @@ class Jobs {
133
133
  /**
134
134
  * List all active jobs.
135
135
  *
136
+ * @param {Letta.JobsListActiveRequest} request
136
137
  * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
137
138
  *
138
139
  * @throws {@link Letta.UnprocessableEntityError}
@@ -140,14 +141,20 @@ class Jobs {
140
141
  * @example
141
142
  * await client.jobs.listActive()
142
143
  */
143
- listActive(requestOptions) {
144
- return __awaiter(this, void 0, void 0, function* () {
144
+ listActive() {
145
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
145
146
  var _a, _b, _c;
147
+ const { sourceId } = request;
148
+ const _queryParams = {};
149
+ if (sourceId != null) {
150
+ _queryParams["source_id"] = sourceId;
151
+ }
146
152
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
147
153
  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/jobs/active"),
148
154
  method: "GET",
149
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
155
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
156
  contentType: "application/json",
157
+ queryParameters: _queryParams,
151
158
  requestType: "json",
152
159
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
153
160
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -211,7 +218,7 @@ class Jobs {
211
218
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
219
  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/jobs/${encodeURIComponent(jobId)}`),
213
220
  method: "GET",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
221
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
222
  contentType: "application/json",
216
223
  requestType: "json",
217
224
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -276,7 +283,7 @@ class Jobs {
276
283
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
277
284
  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/jobs/${encodeURIComponent(jobId)}`),
278
285
  method: "DELETE",
279
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
287
  contentType: "application/json",
281
288
  requestType: "json",
282
289
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface JobsListActiveRequest {
9
+ /**
10
+ * Only list jobs associated with the source.
11
+ */
12
+ sourceId?: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export { type JobsListRequest } from "./JobsListRequest";
2
+ export { type JobsListActiveRequest } from "./JobsListActiveRequest";
@@ -98,7 +98,7 @@ class Messages {
98
98
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
99
99
  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/messages/batches/${encodeURIComponent(batchId)}/messages`),
100
100
  method: "GET",
101
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
102
  contentType: "application/json",
103
103
  queryParameters: _queryParams,
104
104
  requestType: "json",
@@ -92,7 +92,7 @@ class Models {
92
92
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
93
  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/models/"),
94
94
  method: "GET",
95
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-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",
@@ -84,7 +84,7 @@ class Projects {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/projects"),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -90,7 +90,7 @@ class Providers {
90
90
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
91
91
  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/providers/"),
92
92
  method: "GET",
93
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -160,7 +160,7 @@ class Providers {
160
160
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
161
161
  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/providers/"),
162
162
  method: "POST",
163
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -226,7 +226,7 @@ class Providers {
226
226
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
227
227
  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/providers/${encodeURIComponent(providerId)}`),
228
228
  method: "DELETE",
229
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
230
  contentType: "application/json",
231
231
  requestType: "json",
232
232
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -288,7 +288,7 @@ class Providers {
288
288
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
289
289
  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/providers/${encodeURIComponent(providerId)}`),
290
290
  method: "PATCH",
291
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
291
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
292
292
  contentType: "application/json",
293
293
  requestType: "json",
294
294
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -358,7 +358,7 @@ class Providers {
358
358
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
359
359
  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/providers/check"),
360
360
  method: "GET",
361
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.123", "User-Agent": "@letta-ai/letta-client/0.1.123", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-api-key": apiKey }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
361
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-api-key": apiKey }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
362
362
  contentType: "application/json",
363
363
  queryParameters: _queryParams,
364
364
  requestType: "json",