@letta-ai/letta-client 0.1.79 → 0.1.81

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 (276) hide show
  1. package/api/resources/agents/client/Client.js +13 -10
  2. package/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +4 -0
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  4. package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  10. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  14. package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +1 -1
  15. package/api/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +8 -0
  16. package/api/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +1 -1
  17. package/api/resources/agents/types/index.d.ts +2 -1
  18. package/api/resources/agents/types/index.js +2 -1
  19. package/api/resources/blocks/client/Client.js +6 -6
  20. package/api/resources/groups/client/Client.js +7 -7
  21. package/api/resources/groups/client/requests/GroupCreate.d.ts +2 -0
  22. package/api/resources/groups/client/requests/GroupUpdate.d.ts +2 -0
  23. package/api/resources/groups/resources/messages/client/Client.js +4 -4
  24. package/api/resources/groups/types/GroupCreateManagerConfig.d.ts +1 -1
  25. package/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +1 -1
  26. package/api/resources/health/client/Client.js +1 -1
  27. package/api/resources/identities/client/Client.js +6 -6
  28. package/api/resources/jobs/client/Client.js +4 -4
  29. package/api/resources/models/client/Client.js +2 -2
  30. package/api/resources/providers/client/Client.js +4 -4
  31. package/api/resources/runs/client/Client.d.ts +4 -2
  32. package/api/resources/runs/client/Client.js +35 -11
  33. package/api/resources/runs/client/requests/ListActiveRunsRequest.d.ts +13 -0
  34. package/api/resources/runs/client/requests/ListActiveRunsRequest.js +5 -0
  35. package/api/resources/runs/client/requests/ListRunsRequest.d.ts +13 -0
  36. package/api/resources/runs/client/requests/ListRunsRequest.js +5 -0
  37. package/api/resources/runs/client/requests/index.d.ts +2 -0
  38. package/api/resources/sources/client/Client.js +6 -6
  39. package/api/resources/sources/resources/files/client/Client.js +3 -3
  40. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  41. package/api/resources/steps/client/Client.js +2 -2
  42. package/api/resources/tag/client/Client.js +1 -1
  43. package/api/resources/templates/client/Client.js +1 -1
  44. package/api/resources/tools/client/Client.js +16 -16
  45. package/api/resources/voice/client/Client.js +1 -1
  46. package/api/types/AgentState.d.ts +2 -0
  47. package/api/types/AgentType.d.ts +2 -2
  48. package/api/types/AgentType.js +1 -1
  49. package/api/types/AppAuthSchemeAuthMode.d.ts +1 -2
  50. package/api/types/AppAuthSchemeAuthMode.js +0 -1
  51. package/api/types/AssistantMessage.d.ts +1 -0
  52. package/api/types/ChatCompletionAudioParamVoice.d.ts +1 -11
  53. package/api/types/ChatCompletionAudioParamVoice.js +0 -11
  54. package/api/types/Group.d.ts +8 -0
  55. package/api/types/HiddenReasoningMessage.d.ts +1 -0
  56. package/api/types/JobStatus.d.ts +3 -1
  57. package/api/types/JobStatus.js +2 -0
  58. package/api/types/LettaUsageStatistics.d.ts +2 -0
  59. package/api/types/ManagerType.d.ts +2 -1
  60. package/api/types/ManagerType.js +1 -0
  61. package/api/types/Message.d.ts +7 -7
  62. package/api/types/MessageCreate.d.ts +2 -0
  63. package/api/types/ReasoningMessage.d.ts +1 -0
  64. package/api/types/SleeptimeManager.d.ts +10 -0
  65. package/api/types/SleeptimeManager.js +5 -0
  66. package/api/types/SystemMessage.d.ts +1 -0
  67. package/api/types/ToolCallMessage.d.ts +1 -0
  68. package/api/types/ToolReturnMessage.d.ts +1 -0
  69. package/api/types/ToolType.d.ts +2 -1
  70. package/api/types/ToolType.js +1 -0
  71. package/api/types/UserMessage.d.ts +1 -0
  72. package/api/types/index.d.ts +1 -0
  73. package/api/types/index.js +1 -0
  74. package/dist/api/resources/agents/client/Client.js +13 -10
  75. package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +4 -0
  76. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  77. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  78. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  79. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  80. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  81. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  82. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  83. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  84. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  85. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  86. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  87. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +1 -1
  88. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +8 -0
  89. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOperator.js +5 -0
  90. package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +1 -1
  91. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTwo.js +5 -0
  92. package/dist/api/resources/agents/types/index.d.ts +2 -1
  93. package/dist/api/resources/agents/types/index.js +2 -1
  94. package/dist/api/resources/blocks/client/Client.js +6 -6
  95. package/dist/api/resources/groups/client/Client.js +7 -7
  96. package/dist/api/resources/groups/client/requests/GroupCreate.d.ts +2 -0
  97. package/dist/api/resources/groups/client/requests/GroupUpdate.d.ts +2 -0
  98. package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
  99. package/dist/api/resources/groups/types/GroupCreateManagerConfig.d.ts +1 -1
  100. package/dist/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +1 -1
  101. package/dist/api/resources/health/client/Client.js +1 -1
  102. package/dist/api/resources/identities/client/Client.js +6 -6
  103. package/dist/api/resources/jobs/client/Client.js +4 -4
  104. package/dist/api/resources/models/client/Client.js +2 -2
  105. package/dist/api/resources/providers/client/Client.js +4 -4
  106. package/dist/api/resources/runs/client/Client.d.ts +4 -2
  107. package/dist/api/resources/runs/client/Client.js +35 -11
  108. package/dist/api/resources/runs/client/requests/ListActiveRunsRequest.d.ts +13 -0
  109. package/dist/api/resources/runs/client/requests/ListActiveRunsRequest.js +5 -0
  110. package/dist/api/resources/runs/client/requests/ListRunsRequest.d.ts +13 -0
  111. package/dist/api/resources/runs/client/requests/ListRunsRequest.js +5 -0
  112. package/dist/api/resources/runs/client/requests/index.d.ts +2 -0
  113. package/dist/api/resources/sources/client/Client.js +6 -6
  114. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  115. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  116. package/dist/api/resources/steps/client/Client.js +2 -2
  117. package/dist/api/resources/tag/client/Client.js +1 -1
  118. package/dist/api/resources/templates/client/Client.js +1 -1
  119. package/dist/api/resources/tools/client/Client.js +16 -16
  120. package/dist/api/resources/voice/client/Client.js +1 -1
  121. package/dist/api/types/AgentState.d.ts +2 -0
  122. package/dist/api/types/AgentType.d.ts +2 -2
  123. package/dist/api/types/AgentType.js +1 -1
  124. package/dist/api/types/AppAuthSchemeAuthMode.d.ts +1 -2
  125. package/dist/api/types/AppAuthSchemeAuthMode.js +0 -1
  126. package/dist/api/types/AssistantMessage.d.ts +1 -0
  127. package/dist/api/types/ChatCompletionAudioParamVoice.d.ts +1 -11
  128. package/dist/api/types/ChatCompletionAudioParamVoice.js +0 -11
  129. package/dist/api/types/Group.d.ts +8 -0
  130. package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
  131. package/dist/api/types/JobStatus.d.ts +3 -1
  132. package/dist/api/types/JobStatus.js +2 -0
  133. package/dist/api/types/LettaUsageStatistics.d.ts +2 -0
  134. package/dist/api/types/ManagerType.d.ts +2 -1
  135. package/dist/api/types/ManagerType.js +1 -0
  136. package/dist/api/types/Message.d.ts +7 -7
  137. package/dist/api/types/MessageCreate.d.ts +2 -0
  138. package/dist/api/types/ReasoningMessage.d.ts +1 -0
  139. package/dist/api/types/SleeptimeManager.d.ts +10 -0
  140. package/dist/api/types/SleeptimeManager.js +5 -0
  141. package/dist/api/types/SystemMessage.d.ts +1 -0
  142. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  143. package/dist/api/types/ToolReturnMessage.d.ts +1 -0
  144. package/dist/api/types/ToolType.d.ts +2 -1
  145. package/dist/api/types/ToolType.js +1 -0
  146. package/dist/api/types/UserMessage.d.ts +1 -0
  147. package/dist/api/types/index.d.ts +1 -0
  148. package/dist/api/types/index.js +1 -0
  149. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  150. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  151. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  152. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  153. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +3 -2
  154. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +4 -2
  155. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +14 -0
  156. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.js +45 -0
  157. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +2 -2
  158. package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemTwo.js} +2 -2
  159. package/dist/serialization/resources/agents/types/index.d.ts +2 -1
  160. package/dist/serialization/resources/agents/types/index.js +2 -1
  161. package/dist/serialization/resources/groups/client/requests/GroupCreate.d.ts +1 -0
  162. package/dist/serialization/resources/groups/client/requests/GroupCreate.js +1 -0
  163. package/dist/serialization/resources/groups/client/requests/GroupUpdate.d.ts +1 -0
  164. package/dist/serialization/resources/groups/client/requests/GroupUpdate.js +1 -0
  165. package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +2 -1
  166. package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.js +2 -1
  167. package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +2 -1
  168. package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.js +2 -1
  169. package/dist/serialization/types/AgentState.d.ts +1 -0
  170. package/dist/serialization/types/AgentState.js +1 -0
  171. package/dist/serialization/types/AgentType.d.ts +1 -1
  172. package/dist/serialization/types/AgentType.js +1 -1
  173. package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
  174. package/dist/serialization/types/AppAuthSchemeAuthMode.js +0 -1
  175. package/dist/serialization/types/AssistantMessage.d.ts +1 -0
  176. package/dist/serialization/types/AssistantMessage.js +1 -0
  177. package/dist/serialization/types/ChatCompletionAudioParamVoice.d.ts +1 -1
  178. package/dist/serialization/types/ChatCompletionAudioParamVoice.js +14 -1
  179. package/dist/serialization/types/Group.d.ts +4 -0
  180. package/dist/serialization/types/Group.js +4 -0
  181. package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  182. package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
  183. package/dist/serialization/types/JobStatus.d.ts +1 -1
  184. package/dist/serialization/types/JobStatus.js +1 -1
  185. package/dist/serialization/types/LettaUsageStatistics.d.ts +1 -0
  186. package/dist/serialization/types/LettaUsageStatistics.js +1 -0
  187. package/dist/serialization/types/ManagerType.d.ts +1 -1
  188. package/dist/serialization/types/ManagerType.js +1 -1
  189. package/dist/serialization/types/Message.d.ts +2 -2
  190. package/dist/serialization/types/Message.js +2 -2
  191. package/dist/serialization/types/MessageCreate.d.ts +1 -0
  192. package/dist/serialization/types/MessageCreate.js +1 -0
  193. package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
  194. package/dist/serialization/types/ReasoningMessage.js +1 -0
  195. package/dist/serialization/types/SleeptimeManager.d.ts +14 -0
  196. package/dist/serialization/types/SleeptimeManager.js +45 -0
  197. package/dist/serialization/types/SystemMessage.d.ts +1 -0
  198. package/dist/serialization/types/SystemMessage.js +1 -0
  199. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  200. package/dist/serialization/types/ToolCallMessage.js +1 -0
  201. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  202. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  203. package/dist/serialization/types/ToolType.d.ts +1 -1
  204. package/dist/serialization/types/ToolType.js +1 -0
  205. package/dist/serialization/types/UserMessage.d.ts +1 -0
  206. package/dist/serialization/types/UserMessage.js +1 -0
  207. package/dist/serialization/types/index.d.ts +1 -0
  208. package/dist/serialization/types/index.js +1 -0
  209. package/dist/version.d.ts +1 -1
  210. package/dist/version.js +1 -1
  211. package/package.json +1 -1
  212. package/reference.md +18 -2
  213. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  214. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  215. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  216. package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  217. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +3 -2
  218. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +4 -2
  219. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.d.ts +14 -0
  220. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOperator.js +45 -0
  221. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.d.ts → AgentsSearchRequestSearchItemTwo.d.ts} +2 -2
  222. package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemTwo.js} +2 -2
  223. package/serialization/resources/agents/types/index.d.ts +2 -1
  224. package/serialization/resources/agents/types/index.js +2 -1
  225. package/serialization/resources/groups/client/requests/GroupCreate.d.ts +1 -0
  226. package/serialization/resources/groups/client/requests/GroupCreate.js +1 -0
  227. package/serialization/resources/groups/client/requests/GroupUpdate.d.ts +1 -0
  228. package/serialization/resources/groups/client/requests/GroupUpdate.js +1 -0
  229. package/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +2 -1
  230. package/serialization/resources/groups/types/GroupCreateManagerConfig.js +2 -1
  231. package/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +2 -1
  232. package/serialization/resources/groups/types/GroupUpdateManagerConfig.js +2 -1
  233. package/serialization/types/AgentState.d.ts +1 -0
  234. package/serialization/types/AgentState.js +1 -0
  235. package/serialization/types/AgentType.d.ts +1 -1
  236. package/serialization/types/AgentType.js +1 -1
  237. package/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
  238. package/serialization/types/AppAuthSchemeAuthMode.js +0 -1
  239. package/serialization/types/AssistantMessage.d.ts +1 -0
  240. package/serialization/types/AssistantMessage.js +1 -0
  241. package/serialization/types/ChatCompletionAudioParamVoice.d.ts +1 -1
  242. package/serialization/types/ChatCompletionAudioParamVoice.js +14 -1
  243. package/serialization/types/Group.d.ts +4 -0
  244. package/serialization/types/Group.js +4 -0
  245. package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  246. package/serialization/types/HiddenReasoningMessage.js +1 -0
  247. package/serialization/types/JobStatus.d.ts +1 -1
  248. package/serialization/types/JobStatus.js +1 -1
  249. package/serialization/types/LettaUsageStatistics.d.ts +1 -0
  250. package/serialization/types/LettaUsageStatistics.js +1 -0
  251. package/serialization/types/ManagerType.d.ts +1 -1
  252. package/serialization/types/ManagerType.js +1 -1
  253. package/serialization/types/Message.d.ts +2 -2
  254. package/serialization/types/Message.js +2 -2
  255. package/serialization/types/MessageCreate.d.ts +1 -0
  256. package/serialization/types/MessageCreate.js +1 -0
  257. package/serialization/types/ReasoningMessage.d.ts +1 -0
  258. package/serialization/types/ReasoningMessage.js +1 -0
  259. package/serialization/types/SleeptimeManager.d.ts +14 -0
  260. package/serialization/types/SleeptimeManager.js +45 -0
  261. package/serialization/types/SystemMessage.d.ts +1 -0
  262. package/serialization/types/SystemMessage.js +1 -0
  263. package/serialization/types/ToolCallMessage.d.ts +1 -0
  264. package/serialization/types/ToolCallMessage.js +1 -0
  265. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  266. package/serialization/types/ToolReturnMessage.js +1 -0
  267. package/serialization/types/ToolType.d.ts +1 -1
  268. package/serialization/types/ToolType.js +1 -0
  269. package/serialization/types/UserMessage.d.ts +1 -0
  270. package/serialization/types/UserMessage.js +1 -0
  271. package/serialization/types/index.d.ts +1 -0
  272. package/serialization/types/index.js +1 -0
  273. package/version.d.ts +1 -1
  274. package/version.js +1 -1
  275. /package/api/resources/agents/types/{AgentsSearchRequestSearchItemField.js → AgentsSearchRequestSearchItemOperator.js} +0 -0
  276. /package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemField.js → api/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +0 -0
@@ -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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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" }),
@@ -245,7 +245,7 @@ class Groups {
245
245
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
246
246
  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)}`),
247
247
  method: "GET",
248
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -312,7 +312,7 @@ class Groups {
312
312
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
313
313
  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)}`),
314
314
  method: "PUT",
315
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
315
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
316
316
  contentType: "application/json",
317
317
  requestType: "json",
318
318
  body: serializers.GroupUpdate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -378,7 +378,7 @@ class Groups {
378
378
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
379
379
  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)}`),
380
380
  method: "DELETE",
381
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
381
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
382
382
  contentType: "application/json",
383
383
  requestType: "json",
384
384
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -433,7 +433,7 @@ class Groups {
433
433
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
434
434
  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)}`),
435
435
  method: "PATCH",
436
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
436
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
437
437
  contentType: "application/json",
438
438
  requestType: "json",
439
439
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -481,7 +481,7 @@ class Groups {
481
481
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
482
482
  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`),
483
483
  method: "PATCH",
484
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
484
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
485
485
  contentType: "application/json",
486
486
  requestType: "json",
487
487
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -17,4 +17,6 @@ export interface GroupCreate {
17
17
  description: string;
18
18
  /** */
19
19
  managerConfig?: Letta.GroupCreateManagerConfig;
20
+ /** */
21
+ sharedBlockIds?: string[];
20
22
  }
@@ -14,4 +14,6 @@ export interface GroupUpdate {
14
14
  description?: string;
15
15
  /** */
16
16
  managerConfig?: Letta.GroupUpdateManagerConfig;
17
+ /** */
18
+ sharedBlockIds?: string[];
17
19
  }
@@ -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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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" }),
@@ -5,4 +5,4 @@ import * as Letta from "../../../index";
5
5
  /**
6
6
  *
7
7
  */
8
- export type GroupCreateManagerConfig = Letta.DynamicManager | Letta.RoundRobinManager | Letta.SupervisorManager;
8
+ export type GroupCreateManagerConfig = Letta.DynamicManager | Letta.RoundRobinManager | Letta.SleeptimeManager | Letta.SupervisorManager;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type GroupUpdateManagerConfig = Letta.DynamicManager | Letta.RoundRobinManager | Letta.SupervisorManager;
5
+ export type GroupUpdateManagerConfig = Letta.DynamicManager | Letta.RoundRobinManager | Letta.SleeptimeManager | Letta.SupervisorManager;
@@ -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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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,
@@ -99,7 +99,7 @@ class Identities {
99
99
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
100
100
  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/"),
101
101
  method: "GET",
102
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
103
103
  contentType: "application/json",
104
104
  queryParameters: _queryParams,
105
105
  requestType: "json",
@@ -170,7 +170,7 @@ class Identities {
170
170
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
171
171
  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/"),
172
172
  method: "POST",
173
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
173
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
174
174
  contentType: "application/json",
175
175
  requestType: "json",
176
176
  body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -241,7 +241,7 @@ class Identities {
241
241
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
242
242
  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/"),
243
243
  method: "PUT",
244
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "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),
244
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "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),
245
245
  contentType: "application/json",
246
246
  requestType: "json",
247
247
  body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -305,7 +305,7 @@ class Identities {
305
305
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
306
306
  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)}`),
307
307
  method: "GET",
308
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
308
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
309
309
  contentType: "application/json",
310
310
  requestType: "json",
311
311
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -370,7 +370,7 @@ class Identities {
370
370
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
371
371
  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)}`),
372
372
  method: "DELETE",
373
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
373
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
374
374
  contentType: "application/json",
375
375
  requestType: "json",
376
376
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -428,7 +428,7 @@ class Identities {
428
428
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
429
429
  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)}`),
430
430
  method: "PATCH",
431
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
431
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
432
432
  contentType: "application/json",
433
433
  requestType: "json",
434
434
  body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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",
@@ -146,7 +146,7 @@ class Jobs {
146
146
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
147
147
  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
148
  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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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
150
  contentType: "application/json",
151
151
  requestType: "json",
152
152
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Jobs {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  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
213
  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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -276,7 +276,7 @@ class Jobs {
276
276
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
277
277
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/jobs/${encodeURIComponent(jobId)}`),
278
278
  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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -70,7 +70,7 @@ class Models {
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/models/"),
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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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,
@@ -119,7 +119,7 @@ class Models {
119
119
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
120
120
  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"),
121
121
  method: "GET",
122
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
122
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
123
123
  contentType: "application/json",
124
124
  requestType: "json",
125
125
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Providers {
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/providers/"),
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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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",
@@ -153,7 +153,7 @@ class Providers {
153
153
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
154
154
  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/"),
155
155
  method: "POST",
156
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
157
  contentType: "application/json",
158
158
  requestType: "json",
159
159
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -224,7 +224,7 @@ class Providers {
224
224
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
225
225
  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/"),
226
226
  method: "DELETE",
227
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
228
  contentType: "application/json",
229
229
  queryParameters: _queryParams,
230
230
  requestType: "json",
@@ -287,7 +287,7 @@ class Providers {
287
287
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
288
288
  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/"),
289
289
  method: "PATCH",
290
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
290
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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
291
  contentType: "application/json",
292
292
  requestType: "json",
293
293
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -29,6 +29,7 @@ export declare class Runs {
29
29
  /**
30
30
  * List all runs.
31
31
  *
32
+ * @param {Letta.ListRunsRequest} request
32
33
  * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
33
34
  *
34
35
  * @throws {@link Letta.UnprocessableEntityError}
@@ -36,10 +37,11 @@ export declare class Runs {
36
37
  * @example
37
38
  * await client.runs.listRuns()
38
39
  */
39
- listRuns(requestOptions?: Runs.RequestOptions): Promise<Letta.Run[]>;
40
+ listRuns(request?: Letta.ListRunsRequest, requestOptions?: Runs.RequestOptions): Promise<Letta.Run[]>;
40
41
  /**
41
42
  * List all active runs.
42
43
  *
44
+ * @param {Letta.ListActiveRunsRequest} request
43
45
  * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
44
46
  *
45
47
  * @throws {@link Letta.UnprocessableEntityError}
@@ -47,7 +49,7 @@ export declare class Runs {
47
49
  * @example
48
50
  * await client.runs.listActiveRuns()
49
51
  */
50
- listActiveRuns(requestOptions?: Runs.RequestOptions): Promise<Letta.Run[]>;
52
+ listActiveRuns(request?: Letta.ListActiveRunsRequest, requestOptions?: Runs.RequestOptions): Promise<Letta.Run[]>;
51
53
  /**
52
54
  * Get the status of a run.
53
55
  *
@@ -62,6 +62,7 @@ class Runs {
62
62
  /**
63
63
  * List all runs.
64
64
  *
65
+ * @param {Letta.ListRunsRequest} request
65
66
  * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
66
67
  *
67
68
  * @throws {@link Letta.UnprocessableEntityError}
@@ -69,14 +70,25 @@ class Runs {
69
70
  * @example
70
71
  * await client.runs.listRuns()
71
72
  */
72
- listRuns(requestOptions) {
73
- return __awaiter(this, void 0, void 0, function* () {
73
+ listRuns() {
74
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
74
75
  var _a, _b, _c;
76
+ const { agentIds } = request;
77
+ const _queryParams = {};
78
+ if (agentIds != null) {
79
+ if (Array.isArray(agentIds)) {
80
+ _queryParams["agent_ids"] = agentIds.map((item) => item);
81
+ }
82
+ else {
83
+ _queryParams["agent_ids"] = agentIds;
84
+ }
85
+ }
75
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
87
  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/runs/"),
77
88
  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.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-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
90
  contentType: "application/json",
91
+ queryParameters: _queryParams,
80
92
  requestType: "json",
81
93
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
94
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -126,6 +138,7 @@ class Runs {
126
138
  /**
127
139
  * List all active runs.
128
140
  *
141
+ * @param {Letta.ListActiveRunsRequest} request
129
142
  * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
130
143
  *
131
144
  * @throws {@link Letta.UnprocessableEntityError}
@@ -133,14 +146,25 @@ class Runs {
133
146
  * @example
134
147
  * await client.runs.listActiveRuns()
135
148
  */
136
- listActiveRuns(requestOptions) {
137
- return __awaiter(this, void 0, void 0, function* () {
149
+ listActiveRuns() {
150
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
138
151
  var _a, _b, _c;
152
+ const { agentIds } = request;
153
+ const _queryParams = {};
154
+ if (agentIds != null) {
155
+ if (Array.isArray(agentIds)) {
156
+ _queryParams["agent_ids"] = agentIds.map((item) => item);
157
+ }
158
+ else {
159
+ _queryParams["agent_ids"] = agentIds;
160
+ }
161
+ }
139
162
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
140
163
  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/runs/active"),
141
164
  method: "GET",
142
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
166
  contentType: "application/json",
167
+ queryParameters: _queryParams,
144
168
  requestType: "json",
145
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
146
170
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -204,7 +228,7 @@ class Runs {
204
228
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
205
229
  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/runs/${encodeURIComponent(runId)}`),
206
230
  method: "GET",
207
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
208
232
  contentType: "application/json",
209
233
  requestType: "json",
210
234
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -269,7 +293,7 @@ class Runs {
269
293
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
270
294
  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/runs/${encodeURIComponent(runId)}`),
271
295
  method: "DELETE",
272
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
296
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
273
297
  contentType: "application/json",
274
298
  requestType: "json",
275
299
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -365,7 +389,7 @@ class Runs {
365
389
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
366
390
  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/runs/${encodeURIComponent(runId)}/messages`),
367
391
  method: "GET",
368
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
392
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
369
393
  contentType: "application/json",
370
394
  queryParameters: _queryParams,
371
395
  requestType: "json",
@@ -431,7 +455,7 @@ class Runs {
431
455
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
432
456
  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/runs/${encodeURIComponent(runId)}/usage`),
433
457
  method: "GET",
434
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
458
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
435
459
  contentType: "application/json",
436
460
  requestType: "json",
437
461
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -521,7 +545,7 @@ class Runs {
521
545
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
522
546
  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/runs/${encodeURIComponent(runId)}/steps`),
523
547
  method: "GET",
524
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.79", "User-Agent": "@letta-ai/letta-client/0.1.79", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
548
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.81", "User-Agent": "@letta-ai/letta-client/0.1.81", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
525
549
  contentType: "application/json",
526
550
  queryParameters: _queryParams,
527
551
  requestType: "json",
@@ -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 ListActiveRunsRequest {
9
+ /**
10
+ * The unique identifier of the agent associated with the run.
11
+ */
12
+ agentIds?: string | string[];
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ListRunsRequest {
9
+ /**
10
+ * The unique identifier of the agent associated with the run.
11
+ */
12
+ agentIds?: string | 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,2 +1,4 @@
1
+ export { type ListRunsRequest } from "./ListRunsRequest";
2
+ export { type ListActiveRunsRequest } from "./ListActiveRunsRequest";
1
3
  export { type ListRunMessagesRequest } from "./ListRunMessagesRequest";
2
4
  export { type ListRunStepsRequest } from "./ListRunStepsRequest";