@letta-ai/letta-client 0.1.80 → 0.1.82

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 (244) 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/resources/blocks/client/Client.js +5 -5
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  6. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  7. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  8. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  9. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  10. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  11. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  12. package/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  13. package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  14. package/api/resources/blocks/client/Client.js +6 -6
  15. package/api/resources/groups/client/Client.js +7 -7
  16. package/api/resources/groups/resources/messages/client/Client.js +4 -4
  17. package/api/resources/groups/types/GroupCreateManagerConfig.d.ts +1 -1
  18. package/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +1 -1
  19. package/api/resources/health/client/Client.js +1 -1
  20. package/api/resources/identities/client/Client.js +6 -6
  21. package/api/resources/jobs/client/Client.js +4 -4
  22. package/api/resources/models/client/Client.js +2 -2
  23. package/api/resources/providers/client/Client.js +4 -4
  24. package/api/resources/runs/client/Client.d.ts +4 -2
  25. package/api/resources/runs/client/Client.js +35 -11
  26. package/api/resources/runs/client/requests/ListActiveRunsRequest.d.ts +13 -0
  27. package/api/resources/runs/client/requests/ListRunsRequest.d.ts +13 -0
  28. package/api/resources/runs/client/requests/index.d.ts +2 -0
  29. package/api/resources/sources/client/Client.js +6 -6
  30. package/api/resources/sources/resources/files/client/Client.js +3 -3
  31. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  32. package/api/resources/steps/client/Client.js +2 -2
  33. package/api/resources/tag/client/Client.js +1 -1
  34. package/api/resources/templates/client/Client.js +1 -1
  35. package/api/resources/tools/client/Client.js +16 -16
  36. package/api/resources/voice/client/Client.js +1 -1
  37. package/api/types/AgentState.d.ts +2 -0
  38. package/api/types/AgentStateToolRulesItem.d.ts +1 -1
  39. package/api/types/AgentType.d.ts +2 -2
  40. package/api/types/AgentType.js +1 -1
  41. package/api/types/AppAuthSchemeAuthMode.d.ts +1 -2
  42. package/api/types/AppAuthSchemeAuthMode.js +0 -1
  43. package/api/types/AssistantMessage.d.ts +1 -0
  44. package/api/types/ChatCompletionAudioParamVoice.d.ts +1 -11
  45. package/api/types/ChatCompletionAudioParamVoice.js +0 -11
  46. package/api/types/Group.d.ts +1 -1
  47. package/api/types/HiddenReasoningMessage.d.ts +1 -0
  48. package/api/types/JobStatus.d.ts +3 -1
  49. package/api/types/JobStatus.js +2 -0
  50. package/api/types/ManagerType.d.ts +2 -2
  51. package/api/types/ManagerType.js +1 -1
  52. package/api/types/Message.d.ts +7 -7
  53. package/api/types/MessageCreate.d.ts +2 -0
  54. package/api/types/ParentToolRule.d.ts +13 -0
  55. package/api/types/ParentToolRule.js +5 -0
  56. package/api/types/ReasoningMessage.d.ts +1 -0
  57. package/api/types/{BackgroundManager.d.ts → SleeptimeManager.d.ts} +3 -3
  58. package/api/types/SleeptimeManager.js +5 -0
  59. package/api/types/SystemMessage.d.ts +1 -0
  60. package/api/types/ToolCallMessage.d.ts +1 -0
  61. package/api/types/ToolReturnMessage.d.ts +1 -0
  62. package/api/types/ToolType.d.ts +2 -1
  63. package/api/types/ToolType.js +1 -0
  64. package/api/types/UserMessage.d.ts +1 -0
  65. package/api/types/index.d.ts +2 -1
  66. package/api/types/index.js +2 -1
  67. package/dist/api/resources/agents/client/Client.js +13 -10
  68. package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +4 -0
  69. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  70. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  71. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  72. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  74. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  75. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  76. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  77. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  78. package/dist/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  79. package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  80. package/dist/api/resources/blocks/client/Client.js +6 -6
  81. package/dist/api/resources/groups/client/Client.js +7 -7
  82. package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
  83. package/dist/api/resources/groups/types/GroupCreateManagerConfig.d.ts +1 -1
  84. package/dist/api/resources/groups/types/GroupUpdateManagerConfig.d.ts +1 -1
  85. package/dist/api/resources/health/client/Client.js +1 -1
  86. package/dist/api/resources/identities/client/Client.js +6 -6
  87. package/dist/api/resources/jobs/client/Client.js +4 -4
  88. package/dist/api/resources/models/client/Client.js +2 -2
  89. package/dist/api/resources/providers/client/Client.js +4 -4
  90. package/dist/api/resources/runs/client/Client.d.ts +4 -2
  91. package/dist/api/resources/runs/client/Client.js +35 -11
  92. package/dist/api/resources/runs/client/requests/ListActiveRunsRequest.d.ts +13 -0
  93. package/dist/api/resources/runs/client/requests/ListActiveRunsRequest.js +5 -0
  94. package/dist/api/resources/runs/client/requests/ListRunsRequest.d.ts +13 -0
  95. package/dist/api/resources/runs/client/requests/ListRunsRequest.js +5 -0
  96. package/dist/api/resources/runs/client/requests/index.d.ts +2 -0
  97. package/dist/api/resources/sources/client/Client.js +6 -6
  98. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  99. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  100. package/dist/api/resources/steps/client/Client.js +2 -2
  101. package/dist/api/resources/tag/client/Client.js +1 -1
  102. package/dist/api/resources/templates/client/Client.js +1 -1
  103. package/dist/api/resources/tools/client/Client.js +16 -16
  104. package/dist/api/resources/voice/client/Client.js +1 -1
  105. package/dist/api/types/AgentState.d.ts +2 -0
  106. package/dist/api/types/AgentStateToolRulesItem.d.ts +1 -1
  107. package/dist/api/types/AgentType.d.ts +2 -2
  108. package/dist/api/types/AgentType.js +1 -1
  109. package/dist/api/types/AppAuthSchemeAuthMode.d.ts +1 -2
  110. package/dist/api/types/AppAuthSchemeAuthMode.js +0 -1
  111. package/dist/api/types/AssistantMessage.d.ts +1 -0
  112. package/dist/api/types/ChatCompletionAudioParamVoice.d.ts +1 -11
  113. package/dist/api/types/ChatCompletionAudioParamVoice.js +0 -11
  114. package/dist/api/types/Group.d.ts +1 -1
  115. package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
  116. package/dist/api/types/JobStatus.d.ts +3 -1
  117. package/dist/api/types/JobStatus.js +2 -0
  118. package/dist/api/types/ManagerType.d.ts +2 -2
  119. package/dist/api/types/ManagerType.js +1 -1
  120. package/dist/api/types/Message.d.ts +7 -7
  121. package/dist/api/types/MessageCreate.d.ts +2 -0
  122. package/dist/api/types/ParentToolRule.d.ts +13 -0
  123. package/dist/api/types/ParentToolRule.js +5 -0
  124. package/dist/api/types/ReasoningMessage.d.ts +1 -0
  125. package/dist/api/types/{BackgroundManager.d.ts → SleeptimeManager.d.ts} +3 -3
  126. package/dist/api/types/SleeptimeManager.js +5 -0
  127. package/dist/api/types/SystemMessage.d.ts +1 -0
  128. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  129. package/dist/api/types/ToolReturnMessage.d.ts +1 -0
  130. package/dist/api/types/ToolType.d.ts +2 -1
  131. package/dist/api/types/ToolType.js +1 -0
  132. package/dist/api/types/UserMessage.d.ts +1 -0
  133. package/dist/api/types/index.d.ts +2 -1
  134. package/dist/api/types/index.js +2 -1
  135. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  136. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
  137. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  138. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
  139. package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +2 -2
  140. package/dist/serialization/resources/groups/types/GroupCreateManagerConfig.js +2 -2
  141. package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +2 -2
  142. package/dist/serialization/resources/groups/types/GroupUpdateManagerConfig.js +2 -2
  143. package/dist/serialization/types/AgentState.d.ts +1 -0
  144. package/dist/serialization/types/AgentState.js +1 -0
  145. package/dist/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  146. package/dist/serialization/types/AgentStateToolRulesItem.js +2 -0
  147. package/dist/serialization/types/AgentType.d.ts +1 -1
  148. package/dist/serialization/types/AgentType.js +1 -1
  149. package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
  150. package/dist/serialization/types/AppAuthSchemeAuthMode.js +0 -1
  151. package/dist/serialization/types/AssistantMessage.d.ts +1 -0
  152. package/dist/serialization/types/AssistantMessage.js +1 -0
  153. package/dist/serialization/types/ChatCompletionAudioParamVoice.d.ts +1 -1
  154. package/dist/serialization/types/ChatCompletionAudioParamVoice.js +14 -1
  155. package/dist/serialization/types/Group.d.ts +1 -1
  156. package/dist/serialization/types/Group.js +1 -1
  157. package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  158. package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
  159. package/dist/serialization/types/JobStatus.d.ts +1 -1
  160. package/dist/serialization/types/JobStatus.js +1 -1
  161. package/dist/serialization/types/ManagerType.d.ts +1 -1
  162. package/dist/serialization/types/ManagerType.js +1 -1
  163. package/dist/serialization/types/Message.d.ts +2 -2
  164. package/dist/serialization/types/Message.js +2 -2
  165. package/dist/serialization/types/MessageCreate.d.ts +1 -0
  166. package/dist/serialization/types/MessageCreate.js +1 -0
  167. package/dist/serialization/types/ParentToolRule.d.ts +14 -0
  168. package/dist/serialization/types/ParentToolRule.js +45 -0
  169. package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
  170. package/dist/serialization/types/ReasoningMessage.js +1 -0
  171. package/dist/serialization/types/SleeptimeManager.d.ts +14 -0
  172. package/dist/serialization/types/{BackgroundManager.js → SleeptimeManager.js} +4 -4
  173. package/dist/serialization/types/SystemMessage.d.ts +1 -0
  174. package/dist/serialization/types/SystemMessage.js +1 -0
  175. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  176. package/dist/serialization/types/ToolCallMessage.js +1 -0
  177. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  178. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  179. package/dist/serialization/types/ToolType.d.ts +1 -1
  180. package/dist/serialization/types/ToolType.js +1 -0
  181. package/dist/serialization/types/UserMessage.d.ts +1 -0
  182. package/dist/serialization/types/UserMessage.js +1 -0
  183. package/dist/serialization/types/index.d.ts +2 -1
  184. package/dist/serialization/types/index.js +2 -1
  185. package/dist/version.d.ts +1 -1
  186. package/dist/version.js +1 -1
  187. package/package.json +1 -1
  188. package/reference.md +18 -2
  189. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  190. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
  191. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  192. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
  193. package/serialization/resources/groups/types/GroupCreateManagerConfig.d.ts +2 -2
  194. package/serialization/resources/groups/types/GroupCreateManagerConfig.js +2 -2
  195. package/serialization/resources/groups/types/GroupUpdateManagerConfig.d.ts +2 -2
  196. package/serialization/resources/groups/types/GroupUpdateManagerConfig.js +2 -2
  197. package/serialization/types/AgentState.d.ts +1 -0
  198. package/serialization/types/AgentState.js +1 -0
  199. package/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  200. package/serialization/types/AgentStateToolRulesItem.js +2 -0
  201. package/serialization/types/AgentType.d.ts +1 -1
  202. package/serialization/types/AgentType.js +1 -1
  203. package/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
  204. package/serialization/types/AppAuthSchemeAuthMode.js +0 -1
  205. package/serialization/types/AssistantMessage.d.ts +1 -0
  206. package/serialization/types/AssistantMessage.js +1 -0
  207. package/serialization/types/ChatCompletionAudioParamVoice.d.ts +1 -1
  208. package/serialization/types/ChatCompletionAudioParamVoice.js +14 -1
  209. package/serialization/types/Group.d.ts +1 -1
  210. package/serialization/types/Group.js +1 -1
  211. package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  212. package/serialization/types/HiddenReasoningMessage.js +1 -0
  213. package/serialization/types/JobStatus.d.ts +1 -1
  214. package/serialization/types/JobStatus.js +1 -1
  215. package/serialization/types/ManagerType.d.ts +1 -1
  216. package/serialization/types/ManagerType.js +1 -1
  217. package/serialization/types/Message.d.ts +2 -2
  218. package/serialization/types/Message.js +2 -2
  219. package/serialization/types/MessageCreate.d.ts +1 -0
  220. package/serialization/types/MessageCreate.js +1 -0
  221. package/serialization/types/ParentToolRule.d.ts +14 -0
  222. package/serialization/types/ParentToolRule.js +45 -0
  223. package/serialization/types/ReasoningMessage.d.ts +1 -0
  224. package/serialization/types/ReasoningMessage.js +1 -0
  225. package/serialization/types/SleeptimeManager.d.ts +14 -0
  226. package/serialization/types/{BackgroundManager.js → SleeptimeManager.js} +4 -4
  227. package/serialization/types/SystemMessage.d.ts +1 -0
  228. package/serialization/types/SystemMessage.js +1 -0
  229. package/serialization/types/ToolCallMessage.d.ts +1 -0
  230. package/serialization/types/ToolCallMessage.js +1 -0
  231. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  232. package/serialization/types/ToolReturnMessage.js +1 -0
  233. package/serialization/types/ToolType.d.ts +1 -1
  234. package/serialization/types/ToolType.js +1 -0
  235. package/serialization/types/UserMessage.d.ts +1 -0
  236. package/serialization/types/UserMessage.js +1 -0
  237. package/serialization/types/index.d.ts +2 -1
  238. package/serialization/types/index.js +2 -1
  239. package/version.d.ts +1 -1
  240. package/version.js +1 -1
  241. package/dist/serialization/types/BackgroundManager.d.ts +0 -14
  242. package/serialization/types/BackgroundManager.d.ts +0 -14
  243. /package/api/{types/BackgroundManager.js → resources/runs/client/requests/ListActiveRunsRequest.js} +0 -0
  244. /package/{dist/api/types/BackgroundManager.js → api/resources/runs/client/requests/ListRunsRequest.js} +0 -0
@@ -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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.BackgroundManager | 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.BackgroundManager | 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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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";
@@ -86,7 +86,7 @@ class Sources {
86
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
87
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/sources/${encodeURIComponent(sourceId)}`),
88
88
  method: "GET",
89
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -151,7 +151,7 @@ class Sources {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
153
153
  method: "DELETE",
154
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Sources {
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/sources/${encodeURIComponent(sourceId)}`),
213
213
  method: "PATCH",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-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
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -277,7 +277,7 @@ class Sources {
277
277
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
278
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
279
279
  method: "GET",
280
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -341,7 +341,7 @@ class Sources {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
343
343
  method: "GET",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
344
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
345
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -408,7 +408,7 @@ class Sources {
408
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
409
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
410
410
  method: "POST",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
411
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
412
412
  contentType: "application/json",
413
413
  requestType: "json",
414
414
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -80,7 +80,7 @@ class Files {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  requestType: "file",
85
85
  duplex: _maybeEncodedRequest.duplex,
86
86
  body: _maybeEncodedRequest.body,
@@ -155,7 +155,7 @@ class Files {
155
155
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
156
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -222,7 +222,7 @@ class Files {
222
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
223
223
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
224
224
  method: "DELETE",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
226
226
  contentType: "application/json",
227
227
  requestType: "json",
228
228
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Passages {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.80", "User-Agent": "@letta-ai/letta-client/0.1.80", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.82", "User-Agent": "@letta-ai/letta-client/0.1.82", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,