@letta-ai/letta-client 0.1.2 → 0.1.5

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 (1345) hide show
  1. package/Client.d.ts +2 -2
  2. package/Client.js +1 -1
  3. package/README.md +1 -1
  4. package/api/resources/agents/client/Client.d.ts +8 -25
  5. package/api/resources/agents/client/Client.js +165 -106
  6. package/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +1 -1
  7. package/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
  8. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -1
  9. package/api/resources/agents/client/requests/AgentsMigrateRequest.d.ts +4 -4
  10. package/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +1 -1
  11. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +20 -17
  12. package/api/resources/agents/client/requests/UpdateAgent.d.ts +10 -8
  13. package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +5 -3
  14. package/api/resources/agents/resources/archivalMemory/client/Client.js +59 -15
  15. package/api/resources/agents/resources/context/client/Client.d.ts +5 -3
  16. package/api/resources/agents/resources/context/client/Client.js +20 -6
  17. package/api/resources/agents/resources/memory/client/Client.d.ts +5 -3
  18. package/api/resources/agents/resources/memory/client/Client.js +20 -6
  19. package/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +5 -3
  20. package/api/resources/agents/resources/memory/resources/messages/client/Client.js +20 -6
  21. package/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +5 -3
  22. package/api/resources/agents/resources/memoryBlocks/client/Client.js +36 -10
  23. package/api/resources/agents/resources/messages/client/Client.d.ts +24 -3
  24. package/api/resources/agents/resources/messages/client/Client.js +144 -19
  25. package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +14 -3
  26. package/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
  27. package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +3 -3
  28. package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +24 -1
  29. package/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +21 -1
  30. package/api/resources/agents/resources/recallMemory/client/Client.d.ts +5 -3
  31. package/api/resources/agents/resources/recallMemory/client/Client.js +20 -6
  32. package/api/resources/agents/resources/sources/client/Client.d.ts +5 -3
  33. package/api/resources/agents/resources/sources/client/Client.js +20 -6
  34. package/api/resources/agents/resources/tools/client/Client.d.ts +5 -3
  35. package/api/resources/agents/resources/tools/client/Client.js +50 -12
  36. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +12 -1
  37. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +8 -0
  38. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts → AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts} +2 -2
  39. package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js} +2 -2
  40. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +8 -0
  41. package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts} +2 -2
  42. package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js} +2 -2
  43. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts} +2 -2
  44. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js} +2 -2
  45. package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts} +1 -2
  46. package/api/resources/agents/types/index.d.ts +6 -6
  47. package/api/resources/agents/types/index.js +6 -6
  48. package/api/resources/blocks/client/Client.d.ts +7 -5
  49. package/api/resources/blocks/client/Client.js +103 -29
  50. package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +1 -1
  51. package/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +2 -2
  52. package/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +2 -2
  53. package/api/resources/health/client/Client.d.ts +5 -3
  54. package/api/resources/health/client/Client.js +13 -5
  55. package/api/resources/jobs/client/Client.d.ts +5 -3
  56. package/api/resources/jobs/client/Client.js +66 -16
  57. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +1 -1
  58. package/api/resources/models/client/Client.d.ts +5 -3
  59. package/api/resources/models/client/Client.js +21 -7
  60. package/api/resources/sources/client/Client.d.ts +7 -5
  61. package/api/resources/sources/client/Client.js +124 -32
  62. package/api/resources/sources/client/requests/SourceCreate.d.ts +2 -2
  63. package/api/resources/sources/client/requests/SourceUpdate.d.ts +2 -2
  64. package/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +2 -2
  65. package/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +2 -2
  66. package/api/resources/sources/resources/files/client/Client.d.ts +5 -3
  67. package/api/resources/sources/resources/files/client/Client.js +43 -11
  68. package/api/resources/sources/resources/passages/client/Client.d.ts +5 -3
  69. package/api/resources/sources/resources/passages/client/Client.js +20 -6
  70. package/api/resources/tools/client/Client.d.ts +8 -6
  71. package/api/resources/tools/client/Client.js +185 -45
  72. package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -3
  73. package/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -3
  74. package/api/types/ActionModel.d.ts +1 -1
  75. package/api/types/AgentEnvironmentVariable.d.ts +23 -0
  76. package/api/types/AgentState.d.ts +21 -21
  77. package/api/types/AppAuthScheme.d.ts +8 -8
  78. package/api/types/AppModel.d.ts +4 -4
  79. package/api/types/AssistantFile.d.ts +2 -2
  80. package/api/types/AssistantMessageInput.d.ts +1 -1
  81. package/api/types/AssistantMessageOutput.d.ts +2 -3
  82. package/api/types/AuthResponse.d.ts +1 -1
  83. package/api/types/AuthSchemeField.d.ts +3 -3
  84. package/api/types/Block.d.ts +13 -15
  85. package/api/types/BlockUpdate.d.ts +2 -2
  86. package/api/types/ChatCompletionRequest.d.ts +9 -9
  87. package/api/types/ChatCompletionResponse.d.ts +2 -2
  88. package/api/types/ChildToolRule.d.ts +1 -1
  89. package/api/types/Choice.d.ts +1 -1
  90. package/api/types/ConditionalToolRule.d.ts +4 -4
  91. package/api/types/ContextWindowOverview.d.ts +17 -15
  92. package/api/types/CreateAssistantFileRequest.d.ts +1 -1
  93. package/api/types/CreateAssistantRequest.d.ts +2 -2
  94. package/api/types/CreateBlock.d.ts +2 -2
  95. package/api/types/E2BSandboxConfig.d.ts +1 -1
  96. package/api/types/EmbeddingConfig.d.ts +16 -16
  97. package/api/types/FileMetadata.d.ts +10 -12
  98. package/api/types/InitToolRule.d.ts +1 -1
  99. package/api/types/Job.d.ts +11 -13
  100. package/api/types/LettaRequest.d.ts +4 -2
  101. package/api/types/LettaResponse.d.ts +3 -3
  102. package/api/types/LettaResponseMessagesItem.d.ts +25 -0
  103. package/api/types/LettaSchemasLettaMessageToolCall.d.ts +1 -1
  104. package/api/types/LettaSchemasMessageMessage.d.ts +17 -19
  105. package/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +2 -2
  106. package/api/types/LettaSchemasToolTool.d.ts +11 -13
  107. package/api/types/LettaUsageStatistics.d.ts +8 -9
  108. package/api/types/LlmConfig.d.ts +11 -11
  109. package/api/types/LocalSandboxConfig.d.ts +3 -3
  110. package/api/types/Memory.d.ts +1 -1
  111. package/api/types/MessageContentLogProb.d.ts +1 -1
  112. package/api/types/OpenAiAssistant.d.ts +2 -2
  113. package/api/types/Organization.d.ts +1 -1
  114. package/api/types/Passage.d.ts +18 -20
  115. package/api/types/ReasoningMessage.d.ts +4 -5
  116. package/api/types/SandboxConfig.d.ts +4 -6
  117. package/api/types/SandboxEnvironmentVariable.d.ts +5 -7
  118. package/api/types/SandboxEnvironmentVariableUpdate.d.ts +0 -3
  119. package/api/types/Source.d.ts +12 -14
  120. package/api/types/SystemMessageOutput.d.ts +4 -5
  121. package/api/types/TerminalToolRule.d.ts +1 -1
  122. package/api/types/ToolCallDelta.d.ts +1 -1
  123. package/api/types/ToolCallMessage.d.ts +5 -6
  124. package/api/types/ToolCreate.d.ts +4 -4
  125. package/api/types/ToolMessage.d.ts +1 -1
  126. package/api/types/ToolReturnMessage.d.ts +10 -11
  127. package/api/types/UsageStatistics.d.ts +3 -3
  128. package/api/types/User.d.ts +6 -8
  129. package/api/types/UserCreate.d.ts +0 -2
  130. package/api/types/UserMessageOutput.d.ts +4 -5
  131. package/api/types/UserUpdate.d.ts +0 -2
  132. package/api/types/index.d.ts +2 -0
  133. package/api/types/index.js +2 -0
  134. package/core/index.d.ts +1 -1
  135. package/core/index.js +14 -1
  136. package/core/schemas/Schema.d.ts +85 -0
  137. package/core/schemas/Schema.js +22 -0
  138. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  139. package/core/schemas/builders/bigint/bigint.js +50 -0
  140. package/core/schemas/builders/bigint/index.d.ts +1 -0
  141. package/core/schemas/builders/bigint/index.js +5 -0
  142. package/core/schemas/builders/date/date.d.ts +2 -0
  143. package/core/schemas/builders/date/date.js +63 -0
  144. package/core/schemas/builders/date/index.d.ts +1 -0
  145. package/core/schemas/builders/date/index.js +5 -0
  146. package/core/schemas/builders/enum/enum.d.ts +2 -0
  147. package/core/schemas/builders/enum/enum.js +39 -0
  148. package/core/schemas/builders/enum/index.d.ts +1 -0
  149. package/core/schemas/builders/enum/index.js +5 -0
  150. package/core/schemas/builders/index.d.ts +14 -0
  151. package/core/schemas/builders/index.js +30 -0
  152. package/core/schemas/builders/lazy/index.d.ts +3 -0
  153. package/core/schemas/builders/lazy/index.js +7 -0
  154. package/core/schemas/builders/lazy/lazy.d.ts +5 -0
  155. package/core/schemas/builders/lazy/lazy.js +25 -0
  156. package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
  157. package/core/schemas/builders/lazy/lazyObject.js +12 -0
  158. package/core/schemas/builders/list/index.d.ts +1 -0
  159. package/core/schemas/builders/list/index.js +5 -0
  160. package/core/schemas/builders/list/list.d.ts +2 -0
  161. package/core/schemas/builders/list/list.js +55 -0
  162. package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  163. package/core/schemas/builders/literals/booleanLiteral.js +29 -0
  164. package/core/schemas/builders/literals/index.d.ts +2 -0
  165. package/core/schemas/builders/literals/index.js +7 -0
  166. package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  167. package/core/schemas/builders/literals/stringLiteral.js +29 -0
  168. package/core/schemas/builders/object/index.d.ts +6 -0
  169. package/core/schemas/builders/object/index.js +11 -0
  170. package/core/schemas/builders/object/object.d.ts +3 -0
  171. package/core/schemas/builders/object/object.js +261 -0
  172. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  173. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  174. package/core/schemas/builders/object/property.d.ts +8 -0
  175. package/core/schemas/builders/object/property.js +16 -0
  176. package/core/schemas/builders/object/types.d.ts +31 -0
  177. package/core/schemas/builders/object/types.js +2 -0
  178. package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  179. package/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
  180. package/core/schemas/builders/object-like/index.d.ts +2 -0
  181. package/core/schemas/builders/object-like/index.js +6 -0
  182. package/core/schemas/builders/object-like/types.d.ts +7 -0
  183. package/core/schemas/builders/object-like/types.js +2 -0
  184. package/core/schemas/builders/primitives/any.d.ts +1 -0
  185. package/core/schemas/builders/primitives/any.js +6 -0
  186. package/core/schemas/builders/primitives/boolean.d.ts +1 -0
  187. package/core/schemas/builders/primitives/boolean.js +25 -0
  188. package/core/schemas/builders/primitives/index.d.ts +5 -0
  189. package/core/schemas/builders/primitives/index.js +13 -0
  190. package/core/schemas/builders/primitives/number.d.ts +1 -0
  191. package/core/schemas/builders/primitives/number.js +25 -0
  192. package/core/schemas/builders/primitives/string.d.ts +1 -0
  193. package/core/schemas/builders/primitives/string.js +25 -0
  194. package/core/schemas/builders/primitives/unknown.d.ts +1 -0
  195. package/core/schemas/builders/primitives/unknown.js +6 -0
  196. package/core/schemas/builders/record/index.d.ts +2 -0
  197. package/core/schemas/builders/record/index.js +5 -0
  198. package/core/schemas/builders/record/record.d.ts +3 -0
  199. package/core/schemas/builders/record/record.js +95 -0
  200. package/core/schemas/builders/record/types.d.ts +4 -0
  201. package/core/schemas/builders/record/types.js +2 -0
  202. package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  203. package/core/schemas/builders/schema-utils/JsonError.js +12 -0
  204. package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  205. package/core/schemas/builders/schema-utils/ParseError.js +12 -0
  206. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
  207. package/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
  208. package/core/schemas/builders/schema-utils/index.d.ts +4 -0
  209. package/core/schemas/builders/schema-utils/index.js +11 -0
  210. package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  211. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
  212. package/core/schemas/builders/set/index.d.ts +1 -0
  213. package/core/schemas/builders/set/index.js +5 -0
  214. package/core/schemas/builders/set/set.d.ts +2 -0
  215. package/core/schemas/builders/set/set.js +44 -0
  216. package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  217. package/core/schemas/builders/undiscriminated-union/index.js +5 -0
  218. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  219. package/core/schemas/builders/undiscriminated-union/types.js +2 -0
  220. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  221. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
  222. package/core/schemas/builders/union/discriminant.d.ts +5 -0
  223. package/core/schemas/builders/union/discriminant.js +10 -0
  224. package/core/schemas/builders/union/index.d.ts +4 -0
  225. package/core/schemas/builders/union/index.js +7 -0
  226. package/core/schemas/builders/union/types.d.ts +13 -0
  227. package/core/schemas/builders/union/types.js +2 -0
  228. package/core/schemas/builders/union/union.d.ts +4 -0
  229. package/core/schemas/builders/union/union.js +130 -0
  230. package/core/schemas/index.d.ts +2 -0
  231. package/core/schemas/index.js +17 -0
  232. package/core/schemas/utils/MaybePromise.d.ts +1 -0
  233. package/core/schemas/utils/MaybePromise.js +2 -0
  234. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  235. package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
  236. package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  237. package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
  238. package/core/schemas/utils/entries.d.ts +1 -0
  239. package/core/schemas/utils/entries.js +7 -0
  240. package/core/schemas/utils/filterObject.d.ts +1 -0
  241. package/core/schemas/utils/filterObject.js +14 -0
  242. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  243. package/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
  244. package/core/schemas/utils/isPlainObject.d.ts +1 -0
  245. package/core/schemas/utils/isPlainObject.js +18 -0
  246. package/core/schemas/utils/keys.d.ts +1 -0
  247. package/core/schemas/utils/keys.js +7 -0
  248. package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  249. package/core/schemas/utils/maybeSkipValidation.js +28 -0
  250. package/core/schemas/utils/partition.d.ts +1 -0
  251. package/core/schemas/utils/partition.js +16 -0
  252. package/dist/Client.d.ts +2 -2
  253. package/dist/Client.js +1 -1
  254. package/dist/api/resources/agents/client/Client.d.ts +8 -25
  255. package/dist/api/resources/agents/client/Client.js +165 -106
  256. package/dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +1 -1
  257. package/dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
  258. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -1
  259. package/dist/api/resources/agents/client/requests/AgentsMigrateRequest.d.ts +4 -4
  260. package/dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +1 -1
  261. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +20 -17
  262. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +10 -8
  263. package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +5 -3
  264. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +59 -15
  265. package/dist/api/resources/agents/resources/context/client/Client.d.ts +5 -3
  266. package/dist/api/resources/agents/resources/context/client/Client.js +20 -6
  267. package/dist/api/resources/agents/resources/memory/client/Client.d.ts +5 -3
  268. package/dist/api/resources/agents/resources/memory/client/Client.js +20 -6
  269. package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +5 -3
  270. package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.js +20 -6
  271. package/dist/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +5 -3
  272. package/dist/api/resources/agents/resources/memoryBlocks/client/Client.js +36 -10
  273. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +24 -3
  274. package/dist/api/resources/agents/resources/messages/client/Client.js +144 -19
  275. package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +14 -3
  276. package/dist/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
  277. package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +3 -3
  278. package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +24 -1
  279. package/dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +21 -1
  280. package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +5 -3
  281. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +20 -6
  282. package/dist/api/resources/agents/resources/sources/client/Client.d.ts +5 -3
  283. package/dist/api/resources/agents/resources/sources/client/Client.js +20 -6
  284. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +5 -3
  285. package/dist/api/resources/agents/resources/tools/client/Client.js +50 -12
  286. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +12 -1
  287. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +8 -0
  288. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts → AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts} +2 -2
  289. package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js} +2 -2
  290. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +8 -0
  291. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +5 -0
  292. package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts} +2 -2
  293. package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js} +2 -2
  294. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts} +2 -2
  295. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js} +2 -2
  296. package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts} +1 -2
  297. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js +5 -0
  298. package/dist/api/resources/agents/types/index.d.ts +6 -6
  299. package/dist/api/resources/agents/types/index.js +6 -6
  300. package/dist/api/resources/blocks/client/Client.d.ts +7 -5
  301. package/dist/api/resources/blocks/client/Client.js +103 -29
  302. package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +1 -1
  303. package/dist/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +2 -2
  304. package/dist/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +2 -2
  305. package/dist/api/resources/health/client/Client.d.ts +5 -3
  306. package/dist/api/resources/health/client/Client.js +13 -5
  307. package/dist/api/resources/jobs/client/Client.d.ts +5 -3
  308. package/dist/api/resources/jobs/client/Client.js +66 -16
  309. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +1 -1
  310. package/dist/api/resources/models/client/Client.d.ts +5 -3
  311. package/dist/api/resources/models/client/Client.js +21 -7
  312. package/dist/api/resources/sources/client/Client.d.ts +7 -5
  313. package/dist/api/resources/sources/client/Client.js +124 -32
  314. package/dist/api/resources/sources/client/requests/SourceCreate.d.ts +2 -2
  315. package/dist/api/resources/sources/client/requests/SourceUpdate.d.ts +2 -2
  316. package/dist/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +2 -2
  317. package/dist/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +2 -2
  318. package/dist/api/resources/sources/resources/files/client/Client.d.ts +5 -3
  319. package/dist/api/resources/sources/resources/files/client/Client.js +43 -11
  320. package/dist/api/resources/sources/resources/passages/client/Client.d.ts +5 -3
  321. package/dist/api/resources/sources/resources/passages/client/Client.js +20 -6
  322. package/dist/api/resources/tools/client/Client.d.ts +8 -6
  323. package/dist/api/resources/tools/client/Client.js +185 -45
  324. package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -3
  325. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -3
  326. package/dist/api/types/ActionModel.d.ts +1 -1
  327. package/dist/api/types/AgentEnvironmentVariable.d.ts +23 -0
  328. package/dist/api/types/AgentEnvironmentVariable.js +5 -0
  329. package/dist/api/types/AgentState.d.ts +21 -21
  330. package/dist/api/types/AppAuthScheme.d.ts +8 -8
  331. package/dist/api/types/AppModel.d.ts +4 -4
  332. package/dist/api/types/AssistantFile.d.ts +2 -2
  333. package/dist/api/types/AssistantMessageInput.d.ts +1 -1
  334. package/dist/api/types/AssistantMessageOutput.d.ts +2 -3
  335. package/dist/api/types/AuthResponse.d.ts +1 -1
  336. package/dist/api/types/AuthSchemeField.d.ts +3 -3
  337. package/dist/api/types/Block.d.ts +13 -15
  338. package/dist/api/types/BlockUpdate.d.ts +2 -2
  339. package/dist/api/types/ChatCompletionRequest.d.ts +9 -9
  340. package/dist/api/types/ChatCompletionResponse.d.ts +2 -2
  341. package/dist/api/types/ChildToolRule.d.ts +1 -1
  342. package/dist/api/types/Choice.d.ts +1 -1
  343. package/dist/api/types/ConditionalToolRule.d.ts +4 -4
  344. package/dist/api/types/ContextWindowOverview.d.ts +17 -15
  345. package/dist/api/types/CreateAssistantFileRequest.d.ts +1 -1
  346. package/dist/api/types/CreateAssistantRequest.d.ts +2 -2
  347. package/dist/api/types/CreateBlock.d.ts +2 -2
  348. package/dist/api/types/E2BSandboxConfig.d.ts +1 -1
  349. package/dist/api/types/EmbeddingConfig.d.ts +16 -16
  350. package/dist/api/types/FileMetadata.d.ts +10 -12
  351. package/dist/api/types/InitToolRule.d.ts +1 -1
  352. package/dist/api/types/Job.d.ts +11 -13
  353. package/dist/api/types/LettaRequest.d.ts +4 -2
  354. package/dist/api/types/LettaResponse.d.ts +3 -3
  355. package/dist/api/types/LettaResponseMessagesItem.d.ts +25 -0
  356. package/dist/api/types/LettaResponseMessagesItem.js +5 -0
  357. package/dist/api/types/LettaSchemasLettaMessageToolCall.d.ts +1 -1
  358. package/dist/api/types/LettaSchemasMessageMessage.d.ts +17 -19
  359. package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +2 -2
  360. package/dist/api/types/LettaSchemasToolTool.d.ts +11 -13
  361. package/dist/api/types/LettaUsageStatistics.d.ts +8 -9
  362. package/dist/api/types/LlmConfig.d.ts +11 -11
  363. package/dist/api/types/LocalSandboxConfig.d.ts +3 -3
  364. package/dist/api/types/Memory.d.ts +1 -1
  365. package/dist/api/types/MessageContentLogProb.d.ts +1 -1
  366. package/dist/api/types/OpenAiAssistant.d.ts +2 -2
  367. package/dist/api/types/Organization.d.ts +1 -1
  368. package/dist/api/types/Passage.d.ts +18 -20
  369. package/dist/api/types/ReasoningMessage.d.ts +4 -5
  370. package/dist/api/types/SandboxConfig.d.ts +4 -6
  371. package/dist/api/types/SandboxEnvironmentVariable.d.ts +5 -7
  372. package/dist/api/types/SandboxEnvironmentVariableUpdate.d.ts +0 -3
  373. package/dist/api/types/Source.d.ts +12 -14
  374. package/dist/api/types/SystemMessageOutput.d.ts +4 -5
  375. package/dist/api/types/TerminalToolRule.d.ts +1 -1
  376. package/dist/api/types/ToolCallDelta.d.ts +1 -1
  377. package/dist/api/types/ToolCallMessage.d.ts +5 -6
  378. package/dist/api/types/ToolCreate.d.ts +4 -4
  379. package/dist/api/types/ToolMessage.d.ts +1 -1
  380. package/dist/api/types/ToolReturnMessage.d.ts +10 -11
  381. package/dist/api/types/UsageStatistics.d.ts +3 -3
  382. package/dist/api/types/User.d.ts +6 -8
  383. package/dist/api/types/UserCreate.d.ts +0 -2
  384. package/dist/api/types/UserMessageOutput.d.ts +4 -5
  385. package/dist/api/types/UserUpdate.d.ts +0 -2
  386. package/dist/api/types/index.d.ts +2 -0
  387. package/dist/api/types/index.js +2 -0
  388. package/dist/core/index.d.ts +1 -1
  389. package/dist/core/index.js +14 -1
  390. package/dist/core/schemas/Schema.d.ts +85 -0
  391. package/dist/core/schemas/Schema.js +22 -0
  392. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  393. package/dist/core/schemas/builders/bigint/bigint.js +50 -0
  394. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  395. package/dist/core/schemas/builders/bigint/index.js +5 -0
  396. package/dist/core/schemas/builders/date/date.d.ts +2 -0
  397. package/dist/core/schemas/builders/date/date.js +63 -0
  398. package/dist/core/schemas/builders/date/index.d.ts +1 -0
  399. package/dist/core/schemas/builders/date/index.js +5 -0
  400. package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
  401. package/dist/core/schemas/builders/enum/enum.js +39 -0
  402. package/dist/core/schemas/builders/enum/index.d.ts +1 -0
  403. package/dist/core/schemas/builders/enum/index.js +5 -0
  404. package/dist/core/schemas/builders/index.d.ts +14 -0
  405. package/dist/core/schemas/builders/index.js +30 -0
  406. package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
  407. package/dist/core/schemas/builders/lazy/index.js +7 -0
  408. package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
  409. package/dist/core/schemas/builders/lazy/lazy.js +25 -0
  410. package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
  411. package/dist/core/schemas/builders/lazy/lazyObject.js +12 -0
  412. package/dist/core/schemas/builders/list/index.d.ts +1 -0
  413. package/dist/core/schemas/builders/list/index.js +5 -0
  414. package/dist/core/schemas/builders/list/list.d.ts +2 -0
  415. package/dist/core/schemas/builders/list/list.js +55 -0
  416. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  417. package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
  418. package/dist/core/schemas/builders/literals/index.d.ts +2 -0
  419. package/dist/core/schemas/builders/literals/index.js +7 -0
  420. package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  421. package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
  422. package/dist/core/schemas/builders/object/index.d.ts +6 -0
  423. package/dist/core/schemas/builders/object/index.js +11 -0
  424. package/dist/core/schemas/builders/object/object.d.ts +3 -0
  425. package/dist/core/schemas/builders/object/object.js +261 -0
  426. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  427. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  428. package/dist/core/schemas/builders/object/property.d.ts +8 -0
  429. package/dist/core/schemas/builders/object/property.js +16 -0
  430. package/dist/core/schemas/builders/object/types.d.ts +31 -0
  431. package/dist/core/schemas/builders/object/types.js +2 -0
  432. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  433. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
  434. package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
  435. package/dist/core/schemas/builders/object-like/index.js +6 -0
  436. package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
  437. package/dist/core/schemas/builders/object-like/types.js +2 -0
  438. package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
  439. package/dist/core/schemas/builders/primitives/any.js +6 -0
  440. package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
  441. package/dist/core/schemas/builders/primitives/boolean.js +25 -0
  442. package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
  443. package/dist/core/schemas/builders/primitives/index.js +13 -0
  444. package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
  445. package/dist/core/schemas/builders/primitives/number.js +25 -0
  446. package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
  447. package/dist/core/schemas/builders/primitives/string.js +25 -0
  448. package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
  449. package/dist/core/schemas/builders/primitives/unknown.js +6 -0
  450. package/dist/core/schemas/builders/record/index.d.ts +2 -0
  451. package/dist/core/schemas/builders/record/index.js +5 -0
  452. package/dist/core/schemas/builders/record/record.d.ts +3 -0
  453. package/dist/core/schemas/builders/record/record.js +95 -0
  454. package/dist/core/schemas/builders/record/types.d.ts +4 -0
  455. package/dist/core/schemas/builders/record/types.js +2 -0
  456. package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  457. package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
  458. package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  459. package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
  460. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
  461. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
  462. package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
  463. package/dist/core/schemas/builders/schema-utils/index.js +11 -0
  464. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  465. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
  466. package/dist/core/schemas/builders/set/index.d.ts +1 -0
  467. package/dist/core/schemas/builders/set/index.js +5 -0
  468. package/dist/core/schemas/builders/set/set.d.ts +2 -0
  469. package/dist/core/schemas/builders/set/set.js +44 -0
  470. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  471. package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
  472. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  473. package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
  474. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  475. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
  476. package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
  477. package/dist/core/schemas/builders/union/discriminant.js +10 -0
  478. package/dist/core/schemas/builders/union/index.d.ts +4 -0
  479. package/dist/core/schemas/builders/union/index.js +7 -0
  480. package/dist/core/schemas/builders/union/types.d.ts +13 -0
  481. package/dist/core/schemas/builders/union/types.js +2 -0
  482. package/dist/core/schemas/builders/union/union.d.ts +4 -0
  483. package/dist/core/schemas/builders/union/union.js +130 -0
  484. package/dist/core/schemas/index.d.ts +2 -0
  485. package/dist/core/schemas/index.js +17 -0
  486. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
  487. package/dist/core/schemas/utils/MaybePromise.js +2 -0
  488. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  489. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
  490. package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  491. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
  492. package/dist/core/schemas/utils/entries.d.ts +1 -0
  493. package/dist/core/schemas/utils/entries.js +7 -0
  494. package/dist/core/schemas/utils/filterObject.d.ts +1 -0
  495. package/dist/core/schemas/utils/filterObject.js +14 -0
  496. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  497. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
  498. package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
  499. package/dist/core/schemas/utils/isPlainObject.js +18 -0
  500. package/dist/core/schemas/utils/keys.d.ts +1 -0
  501. package/dist/core/schemas/utils/keys.js +7 -0
  502. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  503. package/dist/core/schemas/utils/maybeSkipValidation.js +28 -0
  504. package/dist/core/schemas/utils/partition.d.ts +1 -0
  505. package/dist/core/schemas/utils/partition.js +16 -0
  506. package/dist/serialization/index.d.ts +2 -0
  507. package/dist/serialization/index.js +18 -0
  508. package/dist/serialization/resources/agents/client/getAgentMemoryBlocks.d.ts +11 -0
  509. package/dist/serialization/resources/agents/client/getAgentMemoryBlocks.js +32 -0
  510. package/dist/serialization/resources/agents/client/index.d.ts +3 -0
  511. package/dist/serialization/resources/agents/client/index.js +32 -0
  512. package/dist/serialization/resources/agents/client/list.d.ts +11 -0
  513. package/dist/serialization/resources/agents/client/list.js +32 -0
  514. package/dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +12 -0
  515. package/dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js +33 -0
  516. package/dist/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +12 -0
  517. package/dist/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.js +33 -0
  518. package/dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +14 -0
  519. package/dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.js +35 -0
  520. package/dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +18 -0
  521. package/dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js +39 -0
  522. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +41 -0
  523. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +64 -0
  524. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +27 -0
  525. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +48 -0
  526. package/dist/serialization/resources/agents/client/requests/index.d.ts +6 -0
  527. package/dist/serialization/resources/agents/client/requests/index.js +15 -0
  528. package/dist/serialization/resources/agents/index.d.ts +3 -0
  529. package/dist/serialization/resources/agents/index.js +19 -0
  530. package/dist/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
  531. package/dist/serialization/resources/agents/resources/archivalMemory/client/create.js +32 -0
  532. package/dist/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
  533. package/dist/serialization/resources/agents/resources/archivalMemory/client/index.js +32 -0
  534. package/dist/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
  535. package/dist/serialization/resources/agents/resources/archivalMemory/client/list.js +32 -0
  536. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
  537. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +33 -0
  538. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
  539. package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
  540. package/dist/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
  541. package/dist/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
  542. package/dist/serialization/resources/agents/resources/index.d.ts +8 -0
  543. package/dist/serialization/resources/agents/resources/index.js +37 -0
  544. package/dist/serialization/resources/agents/resources/memory/index.d.ts +1 -0
  545. package/dist/serialization/resources/agents/resources/memory/index.js +17 -0
  546. package/dist/serialization/resources/agents/resources/memory/resources/index.d.ts +1 -0
  547. package/dist/serialization/resources/agents/resources/memory/resources/index.js +27 -0
  548. package/dist/serialization/resources/agents/resources/memory/resources/messages/client/index.d.ts +1 -0
  549. package/dist/serialization/resources/agents/resources/memory/resources/messages/client/index.js +27 -0
  550. package/dist/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +11 -0
  551. package/dist/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.js +32 -0
  552. package/dist/serialization/resources/agents/resources/memory/resources/messages/index.d.ts +1 -0
  553. package/dist/serialization/resources/agents/resources/memory/resources/messages/index.js +17 -0
  554. package/dist/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  555. package/dist/serialization/resources/agents/resources/messages/client/index.js +17 -0
  556. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +17 -0
  557. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +38 -0
  558. package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +18 -0
  559. package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +39 -0
  560. package/dist/serialization/resources/agents/resources/messages/client/requests/index.d.ts +2 -0
  561. package/dist/serialization/resources/agents/resources/messages/client/requests/index.js +7 -0
  562. package/dist/serialization/resources/agents/resources/messages/index.d.ts +2 -0
  563. package/dist/serialization/resources/agents/resources/messages/index.js +18 -0
  564. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +38 -0
  565. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +51 -0
  566. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +12 -0
  567. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +36 -0
  568. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +34 -0
  569. package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +49 -0
  570. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +3 -0
  571. package/dist/serialization/resources/agents/resources/messages/types/index.js +19 -0
  572. package/dist/serialization/resources/agents/resources/sources/client/get.d.ts +11 -0
  573. package/dist/serialization/resources/agents/resources/sources/client/get.js +32 -0
  574. package/dist/serialization/resources/agents/resources/sources/client/index.d.ts +1 -0
  575. package/dist/serialization/resources/agents/resources/sources/client/index.js +27 -0
  576. package/dist/serialization/resources/agents/resources/sources/index.d.ts +1 -0
  577. package/dist/serialization/resources/agents/resources/sources/index.js +17 -0
  578. package/dist/serialization/resources/agents/resources/tools/client/index.d.ts +1 -0
  579. package/dist/serialization/resources/agents/resources/tools/client/index.js +27 -0
  580. package/dist/serialization/resources/agents/resources/tools/client/list.d.ts +11 -0
  581. package/dist/serialization/resources/agents/resources/tools/client/list.js +32 -0
  582. package/dist/serialization/resources/agents/resources/tools/index.d.ts +1 -0
  583. package/dist/serialization/resources/agents/resources/tools/index.js +17 -0
  584. package/dist/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +12 -0
  585. package/dist/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.js +33 -0
  586. package/dist/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +12 -0
  587. package/dist/serialization/resources/agents/types/AgentsMigrateResponse.js +33 -0
  588. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +10 -0
  589. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +31 -0
  590. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +22 -0
  591. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +43 -0
  592. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +14 -0
  593. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js +35 -0
  594. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +10 -0
  595. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +31 -0
  596. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +15 -0
  597. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +36 -0
  598. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +10 -0
  599. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +31 -0
  600. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +10 -0
  601. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +31 -0
  602. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +12 -0
  603. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js +33 -0
  604. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +14 -0
  605. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +35 -0
  606. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +14 -0
  607. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +35 -0
  608. package/dist/serialization/resources/agents/types/index.d.ts +12 -0
  609. package/dist/serialization/resources/agents/types/index.js +28 -0
  610. package/dist/serialization/resources/blocks/client/index.d.ts +1 -0
  611. package/dist/serialization/resources/blocks/client/index.js +27 -0
  612. package/dist/serialization/resources/blocks/client/list.d.ts +11 -0
  613. package/dist/serialization/resources/blocks/client/list.js +32 -0
  614. package/dist/serialization/resources/blocks/index.d.ts +1 -0
  615. package/dist/serialization/resources/blocks/index.js +17 -0
  616. package/dist/serialization/resources/index.d.ts +10 -0
  617. package/dist/serialization/resources/index.js +39 -0
  618. package/dist/serialization/resources/jobs/client/index.d.ts +2 -0
  619. package/dist/serialization/resources/jobs/client/index.js +28 -0
  620. package/dist/serialization/resources/jobs/client/list.d.ts +11 -0
  621. package/dist/serialization/resources/jobs/client/list.js +32 -0
  622. package/dist/serialization/resources/jobs/client/listActive.d.ts +11 -0
  623. package/dist/serialization/resources/jobs/client/listActive.js +32 -0
  624. package/dist/serialization/resources/jobs/index.d.ts +1 -0
  625. package/dist/serialization/resources/jobs/index.js +17 -0
  626. package/dist/serialization/resources/models/client/index.d.ts +2 -0
  627. package/dist/serialization/resources/models/client/index.js +28 -0
  628. package/dist/serialization/resources/models/client/listEmbeddingModels.d.ts +11 -0
  629. package/dist/serialization/resources/models/client/listEmbeddingModels.js +32 -0
  630. package/dist/serialization/resources/models/client/listLlms.d.ts +11 -0
  631. package/dist/serialization/resources/models/client/listLlms.js +32 -0
  632. package/dist/serialization/resources/models/index.d.ts +1 -0
  633. package/dist/serialization/resources/models/index.js +17 -0
  634. package/dist/serialization/resources/sources/client/getByName.d.ts +9 -0
  635. package/dist/serialization/resources/sources/client/getByName.js +31 -0
  636. package/dist/serialization/resources/sources/client/index.d.ts +3 -0
  637. package/dist/serialization/resources/sources/client/index.js +32 -0
  638. package/dist/serialization/resources/sources/client/list.d.ts +11 -0
  639. package/dist/serialization/resources/sources/client/list.js +32 -0
  640. package/dist/serialization/resources/sources/client/requests/SourceCreate.d.ts +16 -0
  641. package/dist/serialization/resources/sources/client/requests/SourceCreate.js +37 -0
  642. package/dist/serialization/resources/sources/client/requests/SourceUpdate.d.ts +16 -0
  643. package/dist/serialization/resources/sources/client/requests/SourceUpdate.js +37 -0
  644. package/dist/serialization/resources/sources/client/requests/index.d.ts +2 -0
  645. package/dist/serialization/resources/sources/client/requests/index.js +7 -0
  646. package/dist/serialization/resources/sources/index.d.ts +2 -0
  647. package/dist/serialization/resources/sources/index.js +18 -0
  648. package/dist/serialization/resources/sources/resources/files/client/index.d.ts +1 -0
  649. package/dist/serialization/resources/sources/resources/files/client/index.js +27 -0
  650. package/dist/serialization/resources/sources/resources/files/client/list.d.ts +11 -0
  651. package/dist/serialization/resources/sources/resources/files/client/list.js +32 -0
  652. package/dist/serialization/resources/sources/resources/files/index.d.ts +1 -0
  653. package/dist/serialization/resources/sources/resources/files/index.js +17 -0
  654. package/dist/serialization/resources/sources/resources/index.d.ts +2 -0
  655. package/dist/serialization/resources/sources/resources/index.js +28 -0
  656. package/dist/serialization/resources/sources/resources/passages/client/index.d.ts +1 -0
  657. package/dist/serialization/resources/sources/resources/passages/client/index.js +27 -0
  658. package/dist/serialization/resources/sources/resources/passages/client/list.d.ts +11 -0
  659. package/dist/serialization/resources/sources/resources/passages/client/list.js +32 -0
  660. package/dist/serialization/resources/sources/resources/passages/index.d.ts +1 -0
  661. package/dist/serialization/resources/sources/resources/passages/index.js +17 -0
  662. package/dist/serialization/resources/tools/client/addBaseTool.d.ts +11 -0
  663. package/dist/serialization/resources/tools/client/addBaseTool.js +32 -0
  664. package/dist/serialization/resources/tools/client/getByName.d.ts +9 -0
  665. package/dist/serialization/resources/tools/client/getByName.js +31 -0
  666. package/dist/serialization/resources/tools/client/index.d.ts +6 -0
  667. package/dist/serialization/resources/tools/client/index.js +35 -0
  668. package/dist/serialization/resources/tools/client/list.d.ts +11 -0
  669. package/dist/serialization/resources/tools/client/list.js +32 -0
  670. package/dist/serialization/resources/tools/client/listComposioActionsByApp.d.ts +11 -0
  671. package/dist/serialization/resources/tools/client/listComposioActionsByApp.js +32 -0
  672. package/dist/serialization/resources/tools/client/listComposioApps.d.ts +11 -0
  673. package/dist/serialization/resources/tools/client/listComposioApps.js +32 -0
  674. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +15 -0
  675. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +36 -0
  676. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +18 -0
  677. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +39 -0
  678. package/dist/serialization/resources/tools/client/requests/index.d.ts +2 -0
  679. package/dist/serialization/resources/tools/client/requests/index.js +7 -0
  680. package/dist/serialization/resources/tools/index.d.ts +1 -0
  681. package/dist/serialization/resources/tools/index.js +17 -0
  682. package/dist/serialization/types/ActionModel.d.ts +23 -0
  683. package/dist/serialization/types/ActionModel.js +44 -0
  684. package/dist/serialization/types/ActionParametersModel.d.ts +15 -0
  685. package/dist/serialization/types/ActionParametersModel.js +36 -0
  686. package/dist/serialization/types/ActionResponseModel.d.ts +15 -0
  687. package/dist/serialization/types/ActionResponseModel.js +36 -0
  688. package/dist/serialization/types/AgentEnvironmentVariable.d.ts +20 -0
  689. package/dist/serialization/types/AgentEnvironmentVariable.js +41 -0
  690. package/dist/serialization/types/AgentState.d.ts +38 -0
  691. package/dist/serialization/types/AgentState.js +59 -0
  692. package/dist/serialization/types/AgentStateToolRulesItem.d.ts +14 -0
  693. package/dist/serialization/types/AgentStateToolRulesItem.js +35 -0
  694. package/dist/serialization/types/AgentType.d.ts +10 -0
  695. package/dist/serialization/types/AgentType.js +37 -0
  696. package/dist/serialization/types/AppAuthScheme.d.ts +23 -0
  697. package/dist/serialization/types/AppAuthScheme.js +44 -0
  698. package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +10 -0
  699. package/dist/serialization/types/AppAuthSchemeAuthMode.js +31 -0
  700. package/dist/serialization/types/AppModel.d.ts +28 -0
  701. package/dist/serialization/types/AppModel.js +51 -0
  702. package/dist/serialization/types/ArchivalMemorySummary.d.ts +12 -0
  703. package/dist/serialization/types/ArchivalMemorySummary.js +33 -0
  704. package/dist/serialization/types/AssistantFile.d.ts +15 -0
  705. package/dist/serialization/types/AssistantFile.js +36 -0
  706. package/dist/serialization/types/AssistantMessageInput.d.ts +16 -0
  707. package/dist/serialization/types/AssistantMessageInput.js +37 -0
  708. package/dist/serialization/types/AssistantMessageOutput.d.ts +14 -0
  709. package/dist/serialization/types/AssistantMessageOutput.js +35 -0
  710. package/dist/serialization/types/AuthRequest.d.ts +12 -0
  711. package/dist/serialization/types/AuthRequest.js +33 -0
  712. package/dist/serialization/types/AuthResponse.d.ts +13 -0
  713. package/dist/serialization/types/AuthResponse.js +34 -0
  714. package/dist/serialization/types/AuthSchemeField.d.ts +19 -0
  715. package/dist/serialization/types/AuthSchemeField.js +40 -0
  716. package/dist/serialization/types/Block.d.ts +21 -0
  717. package/dist/serialization/types/Block.js +42 -0
  718. package/dist/serialization/types/BlockUpdate.d.ts +18 -0
  719. package/dist/serialization/types/BlockUpdate.js +39 -0
  720. package/dist/serialization/types/ChatCompletionRequest.d.ts +38 -0
  721. package/dist/serialization/types/ChatCompletionRequest.js +59 -0
  722. package/dist/serialization/types/ChatCompletionRequestFunctionCall.d.ts +11 -0
  723. package/dist/serialization/types/ChatCompletionRequestFunctionCall.js +36 -0
  724. package/dist/serialization/types/ChatCompletionRequestMessagesItem.d.ts +14 -0
  725. package/dist/serialization/types/ChatCompletionRequestMessagesItem.js +35 -0
  726. package/dist/serialization/types/ChatCompletionRequestStop.d.ts +10 -0
  727. package/dist/serialization/types/ChatCompletionRequestStop.js +34 -0
  728. package/dist/serialization/types/ChatCompletionRequestToolChoice.d.ts +11 -0
  729. package/dist/serialization/types/ChatCompletionRequestToolChoice.js +37 -0
  730. package/dist/serialization/types/ChatCompletionResponse.d.ts +20 -0
  731. package/dist/serialization/types/ChatCompletionResponse.js +41 -0
  732. package/dist/serialization/types/ChildToolRule.d.ts +15 -0
  733. package/dist/serialization/types/ChildToolRule.js +36 -0
  734. package/dist/serialization/types/Choice.d.ts +18 -0
  735. package/dist/serialization/types/Choice.js +41 -0
  736. package/dist/serialization/types/ConditionalToolRule.d.ts +17 -0
  737. package/dist/serialization/types/ConditionalToolRule.js +38 -0
  738. package/dist/serialization/types/ConflictErrorBody.d.ts +12 -0
  739. package/dist/serialization/types/ConflictErrorBody.js +33 -0
  740. package/dist/serialization/types/ContextWindowOverview.d.ts +30 -0
  741. package/dist/serialization/types/ContextWindowOverview.js +51 -0
  742. package/dist/serialization/types/CreateAssistantFileRequest.d.ts +12 -0
  743. package/dist/serialization/types/CreateAssistantFileRequest.js +33 -0
  744. package/dist/serialization/types/CreateAssistantRequest.d.ts +19 -0
  745. package/dist/serialization/types/CreateAssistantRequest.js +40 -0
  746. package/dist/serialization/types/CreateBlock.d.ts +18 -0
  747. package/dist/serialization/types/CreateBlock.js +39 -0
  748. package/dist/serialization/types/DeleteAssistantFileResponse.d.ts +14 -0
  749. package/dist/serialization/types/DeleteAssistantFileResponse.js +35 -0
  750. package/dist/serialization/types/DeleteAssistantResponse.d.ts +14 -0
  751. package/dist/serialization/types/DeleteAssistantResponse.js +35 -0
  752. package/dist/serialization/types/E2BSandboxConfig.d.ts +14 -0
  753. package/dist/serialization/types/E2BSandboxConfig.js +35 -0
  754. package/dist/serialization/types/EmbeddingConfig.d.ts +21 -0
  755. package/dist/serialization/types/EmbeddingConfig.js +42 -0
  756. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +10 -0
  757. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +49 -0
  758. package/dist/serialization/types/FileMetadata.d.ts +22 -0
  759. package/dist/serialization/types/FileMetadata.js +43 -0
  760. package/dist/serialization/types/FunctionCallInput.d.ts +12 -0
  761. package/dist/serialization/types/FunctionCallInput.js +33 -0
  762. package/dist/serialization/types/FunctionCallOutput.d.ts +13 -0
  763. package/dist/serialization/types/FunctionCallOutput.js +34 -0
  764. package/dist/serialization/types/FunctionSchema.d.ts +14 -0
  765. package/dist/serialization/types/FunctionSchema.js +35 -0
  766. package/dist/serialization/types/Health.d.ts +13 -0
  767. package/dist/serialization/types/Health.js +34 -0
  768. package/dist/serialization/types/HttpValidationError.d.ts +13 -0
  769. package/dist/serialization/types/HttpValidationError.js +34 -0
  770. package/dist/serialization/types/InitToolRule.d.ts +14 -0
  771. package/dist/serialization/types/InitToolRule.js +35 -0
  772. package/dist/serialization/types/InternalServerErrorBody.d.ts +12 -0
  773. package/dist/serialization/types/InternalServerErrorBody.js +33 -0
  774. package/dist/serialization/types/Job.d.ts +20 -0
  775. package/dist/serialization/types/Job.js +41 -0
  776. package/dist/serialization/types/JobStatus.d.ts +10 -0
  777. package/dist/serialization/types/JobStatus.js +31 -0
  778. package/dist/serialization/types/LettaRequest.d.ts +16 -0
  779. package/dist/serialization/types/LettaRequest.js +37 -0
  780. package/dist/serialization/types/LettaResponse.d.ts +15 -0
  781. package/dist/serialization/types/LettaResponse.js +36 -0
  782. package/dist/serialization/types/LettaResponseMessagesItem.d.ts +34 -0
  783. package/dist/serialization/types/LettaResponseMessagesItem.js +49 -0
  784. package/dist/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +14 -0
  785. package/dist/serialization/types/LettaSchemasLettaMessageToolCall.js +35 -0
  786. package/dist/serialization/types/LettaSchemasMessageMessage.d.ts +25 -0
  787. package/dist/serialization/types/LettaSchemasMessageMessage.js +46 -0
  788. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +14 -0
  789. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +35 -0
  790. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +15 -0
  791. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +36 -0
  792. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +13 -0
  793. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +34 -0
  794. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +17 -0
  795. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +38 -0
  796. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +15 -0
  797. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +36 -0
  798. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +13 -0
  799. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +34 -0
  800. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +15 -0
  801. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +36 -0
  802. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +15 -0
  803. package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +36 -0
  804. package/dist/serialization/types/LettaSchemasToolTool.d.ts +22 -0
  805. package/dist/serialization/types/LettaSchemasToolTool.js +43 -0
  806. package/dist/serialization/types/LettaUsageStatistics.d.ts +15 -0
  807. package/dist/serialization/types/LettaUsageStatistics.js +36 -0
  808. package/dist/serialization/types/LlmConfig.d.ts +19 -0
  809. package/dist/serialization/types/LlmConfig.js +40 -0
  810. package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +10 -0
  811. package/dist/serialization/types/LlmConfigModelEndpointType.js +49 -0
  812. package/dist/serialization/types/LocalSandboxConfig.d.ts +14 -0
  813. package/dist/serialization/types/LocalSandboxConfig.js +35 -0
  814. package/dist/serialization/types/LogProbToken.d.ts +14 -0
  815. package/dist/serialization/types/LogProbToken.js +35 -0
  816. package/dist/serialization/types/Memory.d.ts +14 -0
  817. package/dist/serialization/types/Memory.js +35 -0
  818. package/dist/serialization/types/MessageContentLogProb.d.ts +16 -0
  819. package/dist/serialization/types/MessageContentLogProb.js +37 -0
  820. package/dist/serialization/types/MessageCreate.d.ts +15 -0
  821. package/dist/serialization/types/MessageCreate.js +36 -0
  822. package/dist/serialization/types/MessageCreateRole.d.ts +10 -0
  823. package/dist/serialization/types/MessageCreateRole.js +31 -0
  824. package/dist/serialization/types/MessageRole.d.ts +10 -0
  825. package/dist/serialization/types/MessageRole.js +31 -0
  826. package/dist/serialization/types/NotFoundErrorBody.d.ts +12 -0
  827. package/dist/serialization/types/NotFoundErrorBody.js +33 -0
  828. package/dist/serialization/types/NotFoundErrorBodyMessage.d.ts +10 -0
  829. package/dist/serialization/types/NotFoundErrorBodyMessage.js +34 -0
  830. package/dist/serialization/types/OpenAiAssistant.d.ts +21 -0
  831. package/dist/serialization/types/OpenAiAssistant.js +42 -0
  832. package/dist/serialization/types/Organization.d.ts +14 -0
  833. package/dist/serialization/types/Organization.js +35 -0
  834. package/dist/serialization/types/OrganizationCreate.d.ts +12 -0
  835. package/dist/serialization/types/OrganizationCreate.js +33 -0
  836. package/dist/serialization/types/Passage.d.ts +25 -0
  837. package/dist/serialization/types/Passage.js +46 -0
  838. package/dist/serialization/types/ReasoningMessage.d.ts +14 -0
  839. package/dist/serialization/types/ReasoningMessage.js +35 -0
  840. package/dist/serialization/types/RecallMemorySummary.d.ts +12 -0
  841. package/dist/serialization/types/RecallMemorySummary.js +33 -0
  842. package/dist/serialization/types/ResponseFormat.d.ts +12 -0
  843. package/dist/serialization/types/ResponseFormat.js +33 -0
  844. package/dist/serialization/types/SandboxConfig.d.ts +19 -0
  845. package/dist/serialization/types/SandboxConfig.js +40 -0
  846. package/dist/serialization/types/SandboxConfigCreate.d.ts +13 -0
  847. package/dist/serialization/types/SandboxConfigCreate.js +34 -0
  848. package/dist/serialization/types/SandboxConfigCreateConfig.d.ts +12 -0
  849. package/dist/serialization/types/SandboxConfigCreateConfig.js +33 -0
  850. package/dist/serialization/types/SandboxConfigUpdate.d.ts +13 -0
  851. package/dist/serialization/types/SandboxConfigUpdate.js +34 -0
  852. package/dist/serialization/types/SandboxConfigUpdateConfig.d.ts +12 -0
  853. package/dist/serialization/types/SandboxConfigUpdateConfig.js +33 -0
  854. package/dist/serialization/types/SandboxEnvironmentVariable.d.ts +20 -0
  855. package/dist/serialization/types/SandboxEnvironmentVariable.js +41 -0
  856. package/dist/serialization/types/SandboxEnvironmentVariableCreate.d.ts +14 -0
  857. package/dist/serialization/types/SandboxEnvironmentVariableCreate.js +35 -0
  858. package/dist/serialization/types/SandboxEnvironmentVariableUpdate.d.ts +14 -0
  859. package/dist/serialization/types/SandboxEnvironmentVariableUpdate.js +35 -0
  860. package/dist/serialization/types/SandboxType.d.ts +10 -0
  861. package/dist/serialization/types/SandboxType.js +31 -0
  862. package/dist/serialization/types/Source.d.ts +21 -0
  863. package/dist/serialization/types/Source.js +42 -0
  864. package/dist/serialization/types/SystemMessageInput.d.ts +14 -0
  865. package/dist/serialization/types/SystemMessageInput.js +35 -0
  866. package/dist/serialization/types/SystemMessageOutput.d.ts +14 -0
  867. package/dist/serialization/types/SystemMessageOutput.js +35 -0
  868. package/dist/serialization/types/TerminalToolRule.d.ts +14 -0
  869. package/dist/serialization/types/TerminalToolRule.js +35 -0
  870. package/dist/serialization/types/ToolCallDelta.d.ts +14 -0
  871. package/dist/serialization/types/ToolCallDelta.js +35 -0
  872. package/dist/serialization/types/ToolCallFunctionOutput.d.ts +13 -0
  873. package/dist/serialization/types/ToolCallFunctionOutput.js +34 -0
  874. package/dist/serialization/types/ToolCallMessage.d.ts +15 -0
  875. package/dist/serialization/types/ToolCallMessage.js +36 -0
  876. package/dist/serialization/types/ToolCallMessageToolCall.d.ts +12 -0
  877. package/dist/serialization/types/ToolCallMessageToolCall.js +33 -0
  878. package/dist/serialization/types/ToolCreate.d.ts +19 -0
  879. package/dist/serialization/types/ToolCreate.js +40 -0
  880. package/dist/serialization/types/ToolFunctionChoice.d.ts +14 -0
  881. package/dist/serialization/types/ToolFunctionChoice.js +35 -0
  882. package/dist/serialization/types/ToolInput.d.ts +14 -0
  883. package/dist/serialization/types/ToolInput.js +35 -0
  884. package/dist/serialization/types/ToolMessage.d.ts +14 -0
  885. package/dist/serialization/types/ToolMessage.js +35 -0
  886. package/dist/serialization/types/ToolReturnMessage.d.ts +19 -0
  887. package/dist/serialization/types/ToolReturnMessage.js +40 -0
  888. package/dist/serialization/types/ToolReturnMessageStatus.d.ts +10 -0
  889. package/dist/serialization/types/ToolReturnMessageStatus.js +31 -0
  890. package/dist/serialization/types/ToolRuleType.d.ts +10 -0
  891. package/dist/serialization/types/ToolRuleType.js +38 -0
  892. package/dist/serialization/types/UsageStatistics.d.ts +14 -0
  893. package/dist/serialization/types/UsageStatistics.js +35 -0
  894. package/dist/serialization/types/User.d.ts +16 -0
  895. package/dist/serialization/types/User.js +37 -0
  896. package/dist/serialization/types/UserCreate.d.ts +12 -0
  897. package/dist/serialization/types/UserCreate.js +33 -0
  898. package/dist/serialization/types/UserMessageInput.d.ts +15 -0
  899. package/dist/serialization/types/UserMessageInput.js +36 -0
  900. package/dist/serialization/types/UserMessageInputContent.d.ts +10 -0
  901. package/dist/serialization/types/UserMessageInputContent.js +34 -0
  902. package/dist/serialization/types/UserMessageOutput.d.ts +14 -0
  903. package/dist/serialization/types/UserMessageOutput.js +35 -0
  904. package/dist/serialization/types/UserUpdate.d.ts +13 -0
  905. package/dist/serialization/types/UserUpdate.js +34 -0
  906. package/dist/serialization/types/ValidationError.d.ts +15 -0
  907. package/dist/serialization/types/ValidationError.js +36 -0
  908. package/dist/serialization/types/ValidationErrorLocItem.d.ts +10 -0
  909. package/dist/serialization/types/ValidationErrorLocItem.js +31 -0
  910. package/dist/serialization/types/index.d.ts +114 -0
  911. package/dist/serialization/types/index.js +130 -0
  912. package/dist/version.d.ts +1 -1
  913. package/dist/version.js +1 -1
  914. package/package.json +1 -2
  915. package/reference.md +172 -89
  916. package/serialization/index.d.ts +2 -0
  917. package/serialization/index.js +18 -0
  918. package/serialization/resources/agents/client/getAgentMemoryBlocks.d.ts +11 -0
  919. package/serialization/resources/agents/client/getAgentMemoryBlocks.js +32 -0
  920. package/serialization/resources/agents/client/index.d.ts +3 -0
  921. package/serialization/resources/agents/client/index.js +32 -0
  922. package/serialization/resources/agents/client/list.d.ts +11 -0
  923. package/serialization/resources/agents/client/list.js +32 -0
  924. package/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +12 -0
  925. package/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js +33 -0
  926. package/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +12 -0
  927. package/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.js +33 -0
  928. package/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +14 -0
  929. package/serialization/resources/agents/client/requests/AgentsMigrateRequest.js +35 -0
  930. package/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +18 -0
  931. package/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js +39 -0
  932. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +41 -0
  933. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +64 -0
  934. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +27 -0
  935. package/serialization/resources/agents/client/requests/UpdateAgent.js +48 -0
  936. package/serialization/resources/agents/client/requests/index.d.ts +6 -0
  937. package/serialization/resources/agents/client/requests/index.js +15 -0
  938. package/serialization/resources/agents/index.d.ts +3 -0
  939. package/serialization/resources/agents/index.js +19 -0
  940. package/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
  941. package/serialization/resources/agents/resources/archivalMemory/client/create.js +32 -0
  942. package/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
  943. package/serialization/resources/agents/resources/archivalMemory/client/index.js +32 -0
  944. package/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
  945. package/serialization/resources/agents/resources/archivalMemory/client/list.js +32 -0
  946. package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
  947. package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +33 -0
  948. package/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
  949. package/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
  950. package/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
  951. package/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
  952. package/serialization/resources/agents/resources/index.d.ts +8 -0
  953. package/serialization/resources/agents/resources/index.js +37 -0
  954. package/serialization/resources/agents/resources/memory/index.d.ts +1 -0
  955. package/serialization/resources/agents/resources/memory/index.js +17 -0
  956. package/serialization/resources/agents/resources/memory/resources/index.d.ts +1 -0
  957. package/serialization/resources/agents/resources/memory/resources/index.js +27 -0
  958. package/serialization/resources/agents/resources/memory/resources/messages/client/index.d.ts +1 -0
  959. package/serialization/resources/agents/resources/memory/resources/messages/client/index.js +27 -0
  960. package/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +11 -0
  961. package/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.js +32 -0
  962. package/serialization/resources/agents/resources/memory/resources/messages/index.d.ts +1 -0
  963. package/serialization/resources/agents/resources/memory/resources/messages/index.js +17 -0
  964. package/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  965. package/serialization/resources/agents/resources/messages/client/index.js +17 -0
  966. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +17 -0
  967. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +38 -0
  968. package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +18 -0
  969. package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +39 -0
  970. package/serialization/resources/agents/resources/messages/client/requests/index.d.ts +2 -0
  971. package/serialization/resources/agents/resources/messages/client/requests/index.js +7 -0
  972. package/serialization/resources/agents/resources/messages/index.d.ts +2 -0
  973. package/serialization/resources/agents/resources/messages/index.js +18 -0
  974. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +38 -0
  975. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +51 -0
  976. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +12 -0
  977. package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +36 -0
  978. package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +34 -0
  979. package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +49 -0
  980. package/serialization/resources/agents/resources/messages/types/index.d.ts +3 -0
  981. package/serialization/resources/agents/resources/messages/types/index.js +19 -0
  982. package/serialization/resources/agents/resources/sources/client/get.d.ts +11 -0
  983. package/serialization/resources/agents/resources/sources/client/get.js +32 -0
  984. package/serialization/resources/agents/resources/sources/client/index.d.ts +1 -0
  985. package/serialization/resources/agents/resources/sources/client/index.js +27 -0
  986. package/serialization/resources/agents/resources/sources/index.d.ts +1 -0
  987. package/serialization/resources/agents/resources/sources/index.js +17 -0
  988. package/serialization/resources/agents/resources/tools/client/index.d.ts +1 -0
  989. package/serialization/resources/agents/resources/tools/client/index.js +27 -0
  990. package/serialization/resources/agents/resources/tools/client/list.d.ts +11 -0
  991. package/serialization/resources/agents/resources/tools/client/list.js +32 -0
  992. package/serialization/resources/agents/resources/tools/index.d.ts +1 -0
  993. package/serialization/resources/agents/resources/tools/index.js +17 -0
  994. package/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +12 -0
  995. package/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.js +33 -0
  996. package/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +12 -0
  997. package/serialization/resources/agents/types/AgentsMigrateResponse.js +33 -0
  998. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +10 -0
  999. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +31 -0
  1000. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +22 -0
  1001. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +43 -0
  1002. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +14 -0
  1003. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js +35 -0
  1004. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +10 -0
  1005. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +31 -0
  1006. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +15 -0
  1007. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +36 -0
  1008. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +10 -0
  1009. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +31 -0
  1010. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +10 -0
  1011. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +31 -0
  1012. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +12 -0
  1013. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js +33 -0
  1014. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +14 -0
  1015. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +35 -0
  1016. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +14 -0
  1017. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +35 -0
  1018. package/serialization/resources/agents/types/index.d.ts +12 -0
  1019. package/serialization/resources/agents/types/index.js +28 -0
  1020. package/serialization/resources/blocks/client/index.d.ts +1 -0
  1021. package/serialization/resources/blocks/client/index.js +27 -0
  1022. package/serialization/resources/blocks/client/list.d.ts +11 -0
  1023. package/serialization/resources/blocks/client/list.js +32 -0
  1024. package/serialization/resources/blocks/index.d.ts +1 -0
  1025. package/serialization/resources/blocks/index.js +17 -0
  1026. package/serialization/resources/index.d.ts +10 -0
  1027. package/serialization/resources/index.js +39 -0
  1028. package/serialization/resources/jobs/client/index.d.ts +2 -0
  1029. package/serialization/resources/jobs/client/index.js +28 -0
  1030. package/serialization/resources/jobs/client/list.d.ts +11 -0
  1031. package/serialization/resources/jobs/client/list.js +32 -0
  1032. package/serialization/resources/jobs/client/listActive.d.ts +11 -0
  1033. package/serialization/resources/jobs/client/listActive.js +32 -0
  1034. package/serialization/resources/jobs/index.d.ts +1 -0
  1035. package/serialization/resources/jobs/index.js +17 -0
  1036. package/serialization/resources/models/client/index.d.ts +2 -0
  1037. package/serialization/resources/models/client/index.js +28 -0
  1038. package/serialization/resources/models/client/listEmbeddingModels.d.ts +11 -0
  1039. package/serialization/resources/models/client/listEmbeddingModels.js +32 -0
  1040. package/serialization/resources/models/client/listLlms.d.ts +11 -0
  1041. package/serialization/resources/models/client/listLlms.js +32 -0
  1042. package/serialization/resources/models/index.d.ts +1 -0
  1043. package/serialization/resources/models/index.js +17 -0
  1044. package/serialization/resources/sources/client/getByName.d.ts +9 -0
  1045. package/serialization/resources/sources/client/getByName.js +31 -0
  1046. package/serialization/resources/sources/client/index.d.ts +3 -0
  1047. package/serialization/resources/sources/client/index.js +32 -0
  1048. package/serialization/resources/sources/client/list.d.ts +11 -0
  1049. package/serialization/resources/sources/client/list.js +32 -0
  1050. package/serialization/resources/sources/client/requests/SourceCreate.d.ts +16 -0
  1051. package/serialization/resources/sources/client/requests/SourceCreate.js +37 -0
  1052. package/serialization/resources/sources/client/requests/SourceUpdate.d.ts +16 -0
  1053. package/serialization/resources/sources/client/requests/SourceUpdate.js +37 -0
  1054. package/serialization/resources/sources/client/requests/index.d.ts +2 -0
  1055. package/serialization/resources/sources/client/requests/index.js +7 -0
  1056. package/serialization/resources/sources/index.d.ts +2 -0
  1057. package/serialization/resources/sources/index.js +18 -0
  1058. package/serialization/resources/sources/resources/files/client/index.d.ts +1 -0
  1059. package/serialization/resources/sources/resources/files/client/index.js +27 -0
  1060. package/serialization/resources/sources/resources/files/client/list.d.ts +11 -0
  1061. package/serialization/resources/sources/resources/files/client/list.js +32 -0
  1062. package/serialization/resources/sources/resources/files/index.d.ts +1 -0
  1063. package/serialization/resources/sources/resources/files/index.js +17 -0
  1064. package/serialization/resources/sources/resources/index.d.ts +2 -0
  1065. package/serialization/resources/sources/resources/index.js +28 -0
  1066. package/serialization/resources/sources/resources/passages/client/index.d.ts +1 -0
  1067. package/serialization/resources/sources/resources/passages/client/index.js +27 -0
  1068. package/serialization/resources/sources/resources/passages/client/list.d.ts +11 -0
  1069. package/serialization/resources/sources/resources/passages/client/list.js +32 -0
  1070. package/serialization/resources/sources/resources/passages/index.d.ts +1 -0
  1071. package/serialization/resources/sources/resources/passages/index.js +17 -0
  1072. package/serialization/resources/tools/client/addBaseTool.d.ts +11 -0
  1073. package/serialization/resources/tools/client/addBaseTool.js +32 -0
  1074. package/serialization/resources/tools/client/getByName.d.ts +9 -0
  1075. package/serialization/resources/tools/client/getByName.js +31 -0
  1076. package/serialization/resources/tools/client/index.d.ts +6 -0
  1077. package/serialization/resources/tools/client/index.js +35 -0
  1078. package/serialization/resources/tools/client/list.d.ts +11 -0
  1079. package/serialization/resources/tools/client/list.js +32 -0
  1080. package/serialization/resources/tools/client/listComposioActionsByApp.d.ts +11 -0
  1081. package/serialization/resources/tools/client/listComposioActionsByApp.js +32 -0
  1082. package/serialization/resources/tools/client/listComposioApps.d.ts +11 -0
  1083. package/serialization/resources/tools/client/listComposioApps.js +32 -0
  1084. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +15 -0
  1085. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +36 -0
  1086. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +18 -0
  1087. package/serialization/resources/tools/client/requests/ToolUpdate.js +39 -0
  1088. package/serialization/resources/tools/client/requests/index.d.ts +2 -0
  1089. package/serialization/resources/tools/client/requests/index.js +7 -0
  1090. package/serialization/resources/tools/index.d.ts +1 -0
  1091. package/serialization/resources/tools/index.js +17 -0
  1092. package/serialization/types/ActionModel.d.ts +23 -0
  1093. package/serialization/types/ActionModel.js +44 -0
  1094. package/serialization/types/ActionParametersModel.d.ts +15 -0
  1095. package/serialization/types/ActionParametersModel.js +36 -0
  1096. package/serialization/types/ActionResponseModel.d.ts +15 -0
  1097. package/serialization/types/ActionResponseModel.js +36 -0
  1098. package/serialization/types/AgentEnvironmentVariable.d.ts +20 -0
  1099. package/serialization/types/AgentEnvironmentVariable.js +41 -0
  1100. package/serialization/types/AgentState.d.ts +38 -0
  1101. package/serialization/types/AgentState.js +59 -0
  1102. package/serialization/types/AgentStateToolRulesItem.d.ts +14 -0
  1103. package/serialization/types/AgentStateToolRulesItem.js +35 -0
  1104. package/serialization/types/AgentType.d.ts +10 -0
  1105. package/serialization/types/AgentType.js +37 -0
  1106. package/serialization/types/AppAuthScheme.d.ts +23 -0
  1107. package/serialization/types/AppAuthScheme.js +44 -0
  1108. package/serialization/types/AppAuthSchemeAuthMode.d.ts +10 -0
  1109. package/serialization/types/AppAuthSchemeAuthMode.js +31 -0
  1110. package/serialization/types/AppModel.d.ts +28 -0
  1111. package/serialization/types/AppModel.js +51 -0
  1112. package/serialization/types/ArchivalMemorySummary.d.ts +12 -0
  1113. package/serialization/types/ArchivalMemorySummary.js +33 -0
  1114. package/serialization/types/AssistantFile.d.ts +15 -0
  1115. package/serialization/types/AssistantFile.js +36 -0
  1116. package/serialization/types/AssistantMessageInput.d.ts +16 -0
  1117. package/serialization/types/AssistantMessageInput.js +37 -0
  1118. package/serialization/types/AssistantMessageOutput.d.ts +14 -0
  1119. package/serialization/types/AssistantMessageOutput.js +35 -0
  1120. package/serialization/types/AuthRequest.d.ts +12 -0
  1121. package/serialization/types/AuthRequest.js +33 -0
  1122. package/serialization/types/AuthResponse.d.ts +13 -0
  1123. package/serialization/types/AuthResponse.js +34 -0
  1124. package/serialization/types/AuthSchemeField.d.ts +19 -0
  1125. package/serialization/types/AuthSchemeField.js +40 -0
  1126. package/serialization/types/Block.d.ts +21 -0
  1127. package/serialization/types/Block.js +42 -0
  1128. package/serialization/types/BlockUpdate.d.ts +18 -0
  1129. package/serialization/types/BlockUpdate.js +39 -0
  1130. package/serialization/types/ChatCompletionRequest.d.ts +38 -0
  1131. package/serialization/types/ChatCompletionRequest.js +59 -0
  1132. package/serialization/types/ChatCompletionRequestFunctionCall.d.ts +11 -0
  1133. package/serialization/types/ChatCompletionRequestFunctionCall.js +36 -0
  1134. package/serialization/types/ChatCompletionRequestMessagesItem.d.ts +14 -0
  1135. package/serialization/types/ChatCompletionRequestMessagesItem.js +35 -0
  1136. package/serialization/types/ChatCompletionRequestStop.d.ts +10 -0
  1137. package/serialization/types/ChatCompletionRequestStop.js +34 -0
  1138. package/serialization/types/ChatCompletionRequestToolChoice.d.ts +11 -0
  1139. package/serialization/types/ChatCompletionRequestToolChoice.js +37 -0
  1140. package/serialization/types/ChatCompletionResponse.d.ts +20 -0
  1141. package/serialization/types/ChatCompletionResponse.js +41 -0
  1142. package/serialization/types/ChildToolRule.d.ts +15 -0
  1143. package/serialization/types/ChildToolRule.js +36 -0
  1144. package/serialization/types/Choice.d.ts +18 -0
  1145. package/serialization/types/Choice.js +41 -0
  1146. package/serialization/types/ConditionalToolRule.d.ts +17 -0
  1147. package/serialization/types/ConditionalToolRule.js +38 -0
  1148. package/serialization/types/ConflictErrorBody.d.ts +12 -0
  1149. package/serialization/types/ConflictErrorBody.js +33 -0
  1150. package/serialization/types/ContextWindowOverview.d.ts +30 -0
  1151. package/serialization/types/ContextWindowOverview.js +51 -0
  1152. package/serialization/types/CreateAssistantFileRequest.d.ts +12 -0
  1153. package/serialization/types/CreateAssistantFileRequest.js +33 -0
  1154. package/serialization/types/CreateAssistantRequest.d.ts +19 -0
  1155. package/serialization/types/CreateAssistantRequest.js +40 -0
  1156. package/serialization/types/CreateBlock.d.ts +18 -0
  1157. package/serialization/types/CreateBlock.js +39 -0
  1158. package/serialization/types/DeleteAssistantFileResponse.d.ts +14 -0
  1159. package/serialization/types/DeleteAssistantFileResponse.js +35 -0
  1160. package/serialization/types/DeleteAssistantResponse.d.ts +14 -0
  1161. package/serialization/types/DeleteAssistantResponse.js +35 -0
  1162. package/serialization/types/E2BSandboxConfig.d.ts +14 -0
  1163. package/serialization/types/E2BSandboxConfig.js +35 -0
  1164. package/serialization/types/EmbeddingConfig.d.ts +21 -0
  1165. package/serialization/types/EmbeddingConfig.js +42 -0
  1166. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +10 -0
  1167. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +49 -0
  1168. package/serialization/types/FileMetadata.d.ts +22 -0
  1169. package/serialization/types/FileMetadata.js +43 -0
  1170. package/serialization/types/FunctionCallInput.d.ts +12 -0
  1171. package/serialization/types/FunctionCallInput.js +33 -0
  1172. package/serialization/types/FunctionCallOutput.d.ts +13 -0
  1173. package/serialization/types/FunctionCallOutput.js +34 -0
  1174. package/serialization/types/FunctionSchema.d.ts +14 -0
  1175. package/serialization/types/FunctionSchema.js +35 -0
  1176. package/serialization/types/Health.d.ts +13 -0
  1177. package/serialization/types/Health.js +34 -0
  1178. package/serialization/types/HttpValidationError.d.ts +13 -0
  1179. package/serialization/types/HttpValidationError.js +34 -0
  1180. package/serialization/types/InitToolRule.d.ts +14 -0
  1181. package/serialization/types/InitToolRule.js +35 -0
  1182. package/serialization/types/InternalServerErrorBody.d.ts +12 -0
  1183. package/serialization/types/InternalServerErrorBody.js +33 -0
  1184. package/serialization/types/Job.d.ts +20 -0
  1185. package/serialization/types/Job.js +41 -0
  1186. package/serialization/types/JobStatus.d.ts +10 -0
  1187. package/serialization/types/JobStatus.js +31 -0
  1188. package/serialization/types/LettaRequest.d.ts +16 -0
  1189. package/serialization/types/LettaRequest.js +37 -0
  1190. package/serialization/types/LettaResponse.d.ts +15 -0
  1191. package/serialization/types/LettaResponse.js +36 -0
  1192. package/serialization/types/LettaResponseMessagesItem.d.ts +34 -0
  1193. package/serialization/types/LettaResponseMessagesItem.js +49 -0
  1194. package/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +14 -0
  1195. package/serialization/types/LettaSchemasLettaMessageToolCall.js +35 -0
  1196. package/serialization/types/LettaSchemasMessageMessage.d.ts +25 -0
  1197. package/serialization/types/LettaSchemasMessageMessage.js +46 -0
  1198. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +14 -0
  1199. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +35 -0
  1200. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +15 -0
  1201. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +36 -0
  1202. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +13 -0
  1203. package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +34 -0
  1204. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +17 -0
  1205. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +38 -0
  1206. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +15 -0
  1207. package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +36 -0
  1208. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +13 -0
  1209. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +34 -0
  1210. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +15 -0
  1211. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +36 -0
  1212. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +15 -0
  1213. package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +36 -0
  1214. package/serialization/types/LettaSchemasToolTool.d.ts +22 -0
  1215. package/serialization/types/LettaSchemasToolTool.js +43 -0
  1216. package/serialization/types/LettaUsageStatistics.d.ts +15 -0
  1217. package/serialization/types/LettaUsageStatistics.js +36 -0
  1218. package/serialization/types/LlmConfig.d.ts +19 -0
  1219. package/serialization/types/LlmConfig.js +40 -0
  1220. package/serialization/types/LlmConfigModelEndpointType.d.ts +10 -0
  1221. package/serialization/types/LlmConfigModelEndpointType.js +49 -0
  1222. package/serialization/types/LocalSandboxConfig.d.ts +14 -0
  1223. package/serialization/types/LocalSandboxConfig.js +35 -0
  1224. package/serialization/types/LogProbToken.d.ts +14 -0
  1225. package/serialization/types/LogProbToken.js +35 -0
  1226. package/serialization/types/Memory.d.ts +14 -0
  1227. package/serialization/types/Memory.js +35 -0
  1228. package/serialization/types/MessageContentLogProb.d.ts +16 -0
  1229. package/serialization/types/MessageContentLogProb.js +37 -0
  1230. package/serialization/types/MessageCreate.d.ts +15 -0
  1231. package/serialization/types/MessageCreate.js +36 -0
  1232. package/serialization/types/MessageCreateRole.d.ts +10 -0
  1233. package/serialization/types/MessageCreateRole.js +31 -0
  1234. package/serialization/types/MessageRole.d.ts +10 -0
  1235. package/serialization/types/MessageRole.js +31 -0
  1236. package/serialization/types/NotFoundErrorBody.d.ts +12 -0
  1237. package/serialization/types/NotFoundErrorBody.js +33 -0
  1238. package/serialization/types/NotFoundErrorBodyMessage.d.ts +10 -0
  1239. package/serialization/types/NotFoundErrorBodyMessage.js +34 -0
  1240. package/serialization/types/OpenAiAssistant.d.ts +21 -0
  1241. package/serialization/types/OpenAiAssistant.js +42 -0
  1242. package/serialization/types/Organization.d.ts +14 -0
  1243. package/serialization/types/Organization.js +35 -0
  1244. package/serialization/types/OrganizationCreate.d.ts +12 -0
  1245. package/serialization/types/OrganizationCreate.js +33 -0
  1246. package/serialization/types/Passage.d.ts +25 -0
  1247. package/serialization/types/Passage.js +46 -0
  1248. package/serialization/types/ReasoningMessage.d.ts +14 -0
  1249. package/serialization/types/ReasoningMessage.js +35 -0
  1250. package/serialization/types/RecallMemorySummary.d.ts +12 -0
  1251. package/serialization/types/RecallMemorySummary.js +33 -0
  1252. package/serialization/types/ResponseFormat.d.ts +12 -0
  1253. package/serialization/types/ResponseFormat.js +33 -0
  1254. package/serialization/types/SandboxConfig.d.ts +19 -0
  1255. package/serialization/types/SandboxConfig.js +40 -0
  1256. package/serialization/types/SandboxConfigCreate.d.ts +13 -0
  1257. package/serialization/types/SandboxConfigCreate.js +34 -0
  1258. package/serialization/types/SandboxConfigCreateConfig.d.ts +12 -0
  1259. package/serialization/types/SandboxConfigCreateConfig.js +33 -0
  1260. package/serialization/types/SandboxConfigUpdate.d.ts +13 -0
  1261. package/serialization/types/SandboxConfigUpdate.js +34 -0
  1262. package/serialization/types/SandboxConfigUpdateConfig.d.ts +12 -0
  1263. package/serialization/types/SandboxConfigUpdateConfig.js +33 -0
  1264. package/serialization/types/SandboxEnvironmentVariable.d.ts +20 -0
  1265. package/serialization/types/SandboxEnvironmentVariable.js +41 -0
  1266. package/serialization/types/SandboxEnvironmentVariableCreate.d.ts +14 -0
  1267. package/serialization/types/SandboxEnvironmentVariableCreate.js +35 -0
  1268. package/serialization/types/SandboxEnvironmentVariableUpdate.d.ts +14 -0
  1269. package/serialization/types/SandboxEnvironmentVariableUpdate.js +35 -0
  1270. package/serialization/types/SandboxType.d.ts +10 -0
  1271. package/serialization/types/SandboxType.js +31 -0
  1272. package/serialization/types/Source.d.ts +21 -0
  1273. package/serialization/types/Source.js +42 -0
  1274. package/serialization/types/SystemMessageInput.d.ts +14 -0
  1275. package/serialization/types/SystemMessageInput.js +35 -0
  1276. package/serialization/types/SystemMessageOutput.d.ts +14 -0
  1277. package/serialization/types/SystemMessageOutput.js +35 -0
  1278. package/serialization/types/TerminalToolRule.d.ts +14 -0
  1279. package/serialization/types/TerminalToolRule.js +35 -0
  1280. package/serialization/types/ToolCallDelta.d.ts +14 -0
  1281. package/serialization/types/ToolCallDelta.js +35 -0
  1282. package/serialization/types/ToolCallFunctionOutput.d.ts +13 -0
  1283. package/serialization/types/ToolCallFunctionOutput.js +34 -0
  1284. package/serialization/types/ToolCallMessage.d.ts +15 -0
  1285. package/serialization/types/ToolCallMessage.js +36 -0
  1286. package/serialization/types/ToolCallMessageToolCall.d.ts +12 -0
  1287. package/serialization/types/ToolCallMessageToolCall.js +33 -0
  1288. package/serialization/types/ToolCreate.d.ts +19 -0
  1289. package/serialization/types/ToolCreate.js +40 -0
  1290. package/serialization/types/ToolFunctionChoice.d.ts +14 -0
  1291. package/serialization/types/ToolFunctionChoice.js +35 -0
  1292. package/serialization/types/ToolInput.d.ts +14 -0
  1293. package/serialization/types/ToolInput.js +35 -0
  1294. package/serialization/types/ToolMessage.d.ts +14 -0
  1295. package/serialization/types/ToolMessage.js +35 -0
  1296. package/serialization/types/ToolReturnMessage.d.ts +19 -0
  1297. package/serialization/types/ToolReturnMessage.js +40 -0
  1298. package/serialization/types/ToolReturnMessageStatus.d.ts +10 -0
  1299. package/serialization/types/ToolReturnMessageStatus.js +31 -0
  1300. package/serialization/types/ToolRuleType.d.ts +10 -0
  1301. package/serialization/types/ToolRuleType.js +38 -0
  1302. package/serialization/types/UsageStatistics.d.ts +14 -0
  1303. package/serialization/types/UsageStatistics.js +35 -0
  1304. package/serialization/types/User.d.ts +16 -0
  1305. package/serialization/types/User.js +37 -0
  1306. package/serialization/types/UserCreate.d.ts +12 -0
  1307. package/serialization/types/UserCreate.js +33 -0
  1308. package/serialization/types/UserMessageInput.d.ts +15 -0
  1309. package/serialization/types/UserMessageInput.js +36 -0
  1310. package/serialization/types/UserMessageInputContent.d.ts +10 -0
  1311. package/serialization/types/UserMessageInputContent.js +34 -0
  1312. package/serialization/types/UserMessageOutput.d.ts +14 -0
  1313. package/serialization/types/UserMessageOutput.js +35 -0
  1314. package/serialization/types/UserUpdate.d.ts +13 -0
  1315. package/serialization/types/UserUpdate.js +34 -0
  1316. package/serialization/types/ValidationError.d.ts +15 -0
  1317. package/serialization/types/ValidationError.js +36 -0
  1318. package/serialization/types/ValidationErrorLocItem.d.ts +10 -0
  1319. package/serialization/types/ValidationErrorLocItem.js +31 -0
  1320. package/serialization/types/index.d.ts +114 -0
  1321. package/serialization/types/index.js +130 -0
  1322. package/version.d.ts +1 -1
  1323. package/version.js +1 -1
  1324. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +0 -9
  1325. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +0 -9
  1326. package/core/auth/BasicAuth.d.ts +0 -8
  1327. package/core/auth/BasicAuth.js +0 -26
  1328. package/core/auth/BearerToken.d.ts +0 -5
  1329. package/core/auth/BearerToken.js +0 -15
  1330. package/core/auth/index.d.ts +0 -2
  1331. package/core/auth/index.js +0 -7
  1332. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +0 -9
  1333. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +0 -9
  1334. package/dist/core/auth/BasicAuth.d.ts +0 -8
  1335. package/dist/core/auth/BasicAuth.js +0 -26
  1336. package/dist/core/auth/BearerToken.d.ts +0 -5
  1337. package/dist/core/auth/BearerToken.js +0 -15
  1338. package/dist/core/auth/index.d.ts +0 -2
  1339. package/dist/core/auth/index.js +0 -7
  1340. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirection.js → AgentsSearchDeployedAgentsRequestSearchItemName.js} +0 -0
  1341. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOperator.js → AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js} +0 -0
  1342. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemZero.js → AgentsSearchDeployedAgentsRequestSearchItemVersion.js} +0 -0
  1343. /package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.js → api/types/AgentEnvironmentVariable.js} +0 -0
  1344. /package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.js → api/types/LettaResponseMessagesItem.js} +0 -0
  1345. /package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemZero.js → AgentsSearchDeployedAgentsRequestSearchItemName.js} +0 -0
@@ -54,6 +54,7 @@ const environments = __importStar(require("../../../../environments"));
54
54
  const core = __importStar(require("../../../../core"));
55
55
  const Letta = __importStar(require("../../../index"));
56
56
  const url_join_1 = __importDefault(require("url-join"));
57
+ const serializers = __importStar(require("../../../../serialization/index"));
57
58
  const errors = __importStar(require("../../../../errors/index"));
58
59
  const Client_1 = require("../resources/context/client/Client");
59
60
  const Client_2 = require("../resources/tools/client/Client");
@@ -64,7 +65,7 @@ const Client_6 = require("../resources/recallMemory/client/Client");
64
65
  const Client_7 = require("../resources/archivalMemory/client/Client");
65
66
  const Client_8 = require("../resources/messages/client/Client");
66
67
  class Agents {
67
- constructor(_options) {
68
+ constructor(_options = {}) {
68
69
  this._options = _options;
69
70
  }
70
71
  get context() {
@@ -114,7 +115,7 @@ class Agents {
114
115
  list(request = {}, requestOptions) {
115
116
  var _a, _b;
116
117
  return __awaiter(this, void 0, void 0, function* () {
117
- const { name, tags, match_all_tags: matchAllTags } = request;
118
+ const { name, tags, matchAllTags, cursor, limit } = request;
118
119
  const _queryParams = {};
119
120
  if (name != null) {
120
121
  _queryParams["name"] = name;
@@ -130,10 +131,16 @@ class Agents {
130
131
  if (matchAllTags != null) {
131
132
  _queryParams["match_all_tags"] = matchAllTags.toString();
132
133
  }
134
+ if (cursor != null) {
135
+ _queryParams["cursor"] = cursor.toString();
136
+ }
137
+ if (limit != null) {
138
+ _queryParams["limit"] = limit.toString();
139
+ }
133
140
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
134
141
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
135
142
  method: "GET",
136
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
144
  contentType: "application/json",
138
145
  queryParameters: _queryParams,
139
146
  requestType: "json",
@@ -142,12 +149,24 @@ class Agents {
142
149
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
143
150
  });
144
151
  if (_response.ok) {
145
- return _response.body;
152
+ return serializers.agents.list.Response.parseOrThrow(_response.body, {
153
+ unrecognizedObjectKeys: "passthrough",
154
+ allowUnrecognizedUnionMembers: true,
155
+ allowUnrecognizedEnumValues: true,
156
+ skipValidation: true,
157
+ breadcrumbsPrefix: ["response"],
158
+ });
146
159
  }
147
160
  if (_response.error.reason === "status-code") {
148
161
  switch (_response.error.statusCode) {
149
162
  case 422:
150
- throw new Letta.UnprocessableEntityError(_response.error.body);
163
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
164
+ unrecognizedObjectKeys: "passthrough",
165
+ allowUnrecognizedUnionMembers: true,
166
+ allowUnrecognizedEnumValues: true,
167
+ skipValidation: true,
168
+ breadcrumbsPrefix: ["response"],
169
+ }));
151
170
  default:
152
171
  throw new errors.LettaError({
153
172
  statusCode: _response.error.statusCode,
@@ -180,7 +199,7 @@ class Agents {
180
199
  *
181
200
  * @example
182
201
  * await client.agents.create({
183
- * memory_blocks: [{
202
+ * memoryBlocks: [{
184
203
  * value: "value",
185
204
  * label: "label"
186
205
  * }]
@@ -192,21 +211,33 @@ class Agents {
192
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
193
212
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
194
213
  method: "POST",
195
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, 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.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
196
215
  contentType: "application/json",
197
216
  requestType: "json",
198
- body: request,
217
+ body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
199
218
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
200
219
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
201
220
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
202
221
  });
203
222
  if (_response.ok) {
204
- return _response.body;
223
+ return serializers.AgentState.parseOrThrow(_response.body, {
224
+ unrecognizedObjectKeys: "passthrough",
225
+ allowUnrecognizedUnionMembers: true,
226
+ allowUnrecognizedEnumValues: true,
227
+ skipValidation: true,
228
+ breadcrumbsPrefix: ["response"],
229
+ });
205
230
  }
206
231
  if (_response.error.reason === "status-code") {
207
232
  switch (_response.error.statusCode) {
208
233
  case 422:
209
- throw new Letta.UnprocessableEntityError(_response.error.body);
234
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
235
+ unrecognizedObjectKeys: "passthrough",
236
+ allowUnrecognizedUnionMembers: true,
237
+ allowUnrecognizedEnumValues: true,
238
+ skipValidation: true,
239
+ breadcrumbsPrefix: ["response"],
240
+ }));
210
241
  default:
211
242
  throw new errors.LettaError({
212
243
  statusCode: _response.error.statusCode,
@@ -246,7 +277,7 @@ class Agents {
246
277
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
247
278
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
248
279
  method: "GET",
249
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, 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.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
281
  contentType: "application/json",
251
282
  requestType: "json",
252
283
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -254,12 +285,24 @@ class Agents {
254
285
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
255
286
  });
256
287
  if (_response.ok) {
257
- return _response.body;
288
+ return serializers.AgentState.parseOrThrow(_response.body, {
289
+ unrecognizedObjectKeys: "passthrough",
290
+ allowUnrecognizedUnionMembers: true,
291
+ allowUnrecognizedEnumValues: true,
292
+ skipValidation: true,
293
+ breadcrumbsPrefix: ["response"],
294
+ });
258
295
  }
259
296
  if (_response.error.reason === "status-code") {
260
297
  switch (_response.error.statusCode) {
261
298
  case 422:
262
- throw new Letta.UnprocessableEntityError(_response.error.body);
299
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
300
+ unrecognizedObjectKeys: "passthrough",
301
+ allowUnrecognizedUnionMembers: true,
302
+ allowUnrecognizedEnumValues: true,
303
+ skipValidation: true,
304
+ breadcrumbsPrefix: ["response"],
305
+ }));
263
306
  default:
264
307
  throw new errors.LettaError({
265
308
  statusCode: _response.error.statusCode,
@@ -299,7 +342,7 @@ class Agents {
299
342
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
300
343
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
301
344
  method: "DELETE",
302
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
345
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
303
346
  contentType: "application/json",
304
347
  requestType: "json",
305
348
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -312,7 +355,13 @@ class Agents {
312
355
  if (_response.error.reason === "status-code") {
313
356
  switch (_response.error.statusCode) {
314
357
  case 422:
315
- throw new Letta.UnprocessableEntityError(_response.error.body);
358
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
359
+ unrecognizedObjectKeys: "passthrough",
360
+ allowUnrecognizedUnionMembers: true,
361
+ allowUnrecognizedEnumValues: true,
362
+ skipValidation: true,
363
+ breadcrumbsPrefix: ["response"],
364
+ }));
316
365
  default:
317
366
  throw new errors.LettaError({
318
367
  statusCode: _response.error.statusCode,
@@ -353,21 +402,33 @@ class Agents {
353
402
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
354
403
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
355
404
  method: "PATCH",
356
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
405
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
357
406
  contentType: "application/json",
358
407
  requestType: "json",
359
- body: request,
408
+ body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
360
409
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
361
410
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
362
411
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
363
412
  });
364
413
  if (_response.ok) {
365
- return _response.body;
414
+ return serializers.AgentState.parseOrThrow(_response.body, {
415
+ unrecognizedObjectKeys: "passthrough",
416
+ allowUnrecognizedUnionMembers: true,
417
+ allowUnrecognizedEnumValues: true,
418
+ skipValidation: true,
419
+ breadcrumbsPrefix: ["response"],
420
+ });
366
421
  }
367
422
  if (_response.error.reason === "status-code") {
368
423
  switch (_response.error.statusCode) {
369
424
  case 422:
370
- throw new Letta.UnprocessableEntityError(_response.error.body);
425
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
426
+ unrecognizedObjectKeys: "passthrough",
427
+ allowUnrecognizedUnionMembers: true,
428
+ allowUnrecognizedEnumValues: true,
429
+ skipValidation: true,
430
+ breadcrumbsPrefix: ["response"],
431
+ }));
371
432
  default:
372
433
  throw new errors.LettaError({
373
434
  statusCode: _response.error.statusCode,
@@ -408,7 +469,7 @@ class Agents {
408
469
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
470
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory/block/${encodeURIComponent(blockLabel)}`),
410
471
  method: "GET",
411
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
472
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-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
473
  contentType: "application/json",
413
474
  requestType: "json",
414
475
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -416,12 +477,24 @@ class Agents {
416
477
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
417
478
  });
418
479
  if (_response.ok) {
419
- return _response.body;
480
+ return serializers.Block.parseOrThrow(_response.body, {
481
+ unrecognizedObjectKeys: "passthrough",
482
+ allowUnrecognizedUnionMembers: true,
483
+ allowUnrecognizedEnumValues: true,
484
+ skipValidation: true,
485
+ breadcrumbsPrefix: ["response"],
486
+ });
420
487
  }
421
488
  if (_response.error.reason === "status-code") {
422
489
  switch (_response.error.statusCode) {
423
490
  case 422:
424
- throw new Letta.UnprocessableEntityError(_response.error.body);
491
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
492
+ unrecognizedObjectKeys: "passthrough",
493
+ allowUnrecognizedUnionMembers: true,
494
+ allowUnrecognizedEnumValues: true,
495
+ skipValidation: true,
496
+ breadcrumbsPrefix: ["response"],
497
+ }));
425
498
  default:
426
499
  throw new errors.LettaError({
427
500
  statusCode: _response.error.statusCode,
@@ -463,21 +536,33 @@ class Agents {
463
536
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
464
537
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory/block/${encodeURIComponent(blockLabel)}`),
465
538
  method: "PATCH",
466
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
539
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
467
540
  contentType: "application/json",
468
541
  requestType: "json",
469
- body: request,
542
+ body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
470
543
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
471
544
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
472
545
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
473
546
  });
474
547
  if (_response.ok) {
475
- return _response.body;
548
+ return serializers.Block.parseOrThrow(_response.body, {
549
+ unrecognizedObjectKeys: "passthrough",
550
+ allowUnrecognizedUnionMembers: true,
551
+ allowUnrecognizedEnumValues: true,
552
+ skipValidation: true,
553
+ breadcrumbsPrefix: ["response"],
554
+ });
476
555
  }
477
556
  if (_response.error.reason === "status-code") {
478
557
  switch (_response.error.statusCode) {
479
558
  case 422:
480
- throw new Letta.UnprocessableEntityError(_response.error.body);
559
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
560
+ unrecognizedObjectKeys: "passthrough",
561
+ allowUnrecognizedUnionMembers: true,
562
+ allowUnrecognizedEnumValues: true,
563
+ skipValidation: true,
564
+ breadcrumbsPrefix: ["response"],
565
+ }));
481
566
  default:
482
567
  throw new errors.LettaError({
483
568
  statusCode: _response.error.statusCode,
@@ -517,7 +602,7 @@ class Agents {
517
602
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
518
603
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory/block`),
519
604
  method: "GET",
520
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
605
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
521
606
  contentType: "application/json",
522
607
  requestType: "json",
523
608
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -525,12 +610,24 @@ class Agents {
525
610
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
526
611
  });
527
612
  if (_response.ok) {
528
- return _response.body;
613
+ return serializers.agents.getAgentMemoryBlocks.Response.parseOrThrow(_response.body, {
614
+ unrecognizedObjectKeys: "passthrough",
615
+ allowUnrecognizedUnionMembers: true,
616
+ allowUnrecognizedEnumValues: true,
617
+ skipValidation: true,
618
+ breadcrumbsPrefix: ["response"],
619
+ });
529
620
  }
530
621
  if (_response.error.reason === "status-code") {
531
622
  switch (_response.error.statusCode) {
532
623
  case 422:
533
- throw new Letta.UnprocessableEntityError(_response.error.body);
624
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
625
+ unrecognizedObjectKeys: "passthrough",
626
+ allowUnrecognizedUnionMembers: true,
627
+ allowUnrecognizedEnumValues: true,
628
+ skipValidation: true,
629
+ breadcrumbsPrefix: ["response"],
630
+ }));
534
631
  default:
535
632
  throw new errors.LettaError({
536
633
  statusCode: _response.error.statusCode,
@@ -553,67 +650,6 @@ class Agents {
553
650
  }
554
651
  });
555
652
  }
556
- /**
557
- * Asynchronously process a user message and return a job ID.
558
- * The actual processing happens in the background, and the status can be checked using the job ID.
559
- *
560
- * @param {string} agentId
561
- * @param {Letta.LettaRequest} request
562
- * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
563
- *
564
- * @throws {@link Letta.UnprocessableEntityError}
565
- *
566
- * @example
567
- * await client.agents.createAgentMessageAsync("agent_id", {
568
- * messages: [{
569
- * role: "user",
570
- * text: "text"
571
- * }]
572
- * })
573
- */
574
- createAgentMessageAsync(agentId, request, requestOptions) {
575
- var _a, _b;
576
- return __awaiter(this, void 0, void 0, function* () {
577
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
578
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/messages/async`),
579
- method: "POST",
580
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
581
- contentType: "application/json",
582
- requestType: "json",
583
- body: request,
584
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
585
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
586
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
587
- });
588
- if (_response.ok) {
589
- return _response.body;
590
- }
591
- if (_response.error.reason === "status-code") {
592
- switch (_response.error.statusCode) {
593
- case 422:
594
- throw new Letta.UnprocessableEntityError(_response.error.body);
595
- default:
596
- throw new errors.LettaError({
597
- statusCode: _response.error.statusCode,
598
- body: _response.error.body,
599
- });
600
- }
601
- }
602
- switch (_response.error.reason) {
603
- case "non-json":
604
- throw new errors.LettaError({
605
- statusCode: _response.error.statusCode,
606
- body: _response.error.rawBody,
607
- });
608
- case "timeout":
609
- throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/messages/async.");
610
- case "unknown":
611
- throw new errors.LettaError({
612
- message: _response.error.errorMessage,
613
- });
614
- }
615
- });
616
- }
617
653
  /**
618
654
  * Search deployed agents
619
655
  *
@@ -629,10 +665,12 @@ class Agents {
629
665
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
630
666
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/agents/search"),
631
667
  method: "POST",
632
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
668
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
633
669
  contentType: "application/json",
634
670
  requestType: "json",
635
- body: request,
671
+ body: serializers.AgentsSearchDeployedAgentsRequest.jsonOrThrow(request, {
672
+ unrecognizedObjectKeys: "strip",
673
+ }),
636
674
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
637
675
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
638
676
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -685,11 +723,11 @@ class Agents {
685
723
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
686
724
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/version-template`),
687
725
  method: "POST",
688
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
726
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
689
727
  contentType: "application/json",
690
728
  queryParameters: _queryParams,
691
729
  requestType: "json",
692
- body: _body,
730
+ body: serializers.AgentsCreateVersionRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
693
731
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
694
732
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
695
733
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -738,8 +776,8 @@ class Agents {
738
776
  *
739
777
  * @example
740
778
  * await client.agents.migrate("agent_id", {
741
- * to_template: "to_template",
742
- * preserve_core_memories: true
779
+ * toTemplate: "to_template",
780
+ * preserveCoreMemories: true
743
781
  * })
744
782
  */
745
783
  migrate(agentId, request, requestOptions) {
@@ -748,23 +786,35 @@ class Agents {
748
786
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
749
787
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/migrate`),
750
788
  method: "POST",
751
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
789
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
752
790
  contentType: "application/json",
753
791
  requestType: "json",
754
- body: request,
792
+ body: serializers.AgentsMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
755
793
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
756
794
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
757
795
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
758
796
  });
759
797
  if (_response.ok) {
760
- return _response.body;
798
+ return serializers.AgentsMigrateResponse.parseOrThrow(_response.body, {
799
+ unrecognizedObjectKeys: "passthrough",
800
+ allowUnrecognizedUnionMembers: true,
801
+ allowUnrecognizedEnumValues: true,
802
+ skipValidation: true,
803
+ breadcrumbsPrefix: ["response"],
804
+ });
761
805
  }
762
806
  if (_response.error.reason === "status-code") {
763
807
  switch (_response.error.statusCode) {
764
808
  case 404:
765
809
  throw new Letta.NotFoundError(_response.error.body);
766
810
  case 409:
767
- throw new Letta.ConflictError(_response.error.body);
811
+ throw new Letta.ConflictError(serializers.ConflictErrorBody.parseOrThrow(_response.error.body, {
812
+ unrecognizedObjectKeys: "passthrough",
813
+ allowUnrecognizedUnionMembers: true,
814
+ allowUnrecognizedEnumValues: true,
815
+ skipValidation: true,
816
+ breadcrumbsPrefix: ["response"],
817
+ }));
768
818
  case 500:
769
819
  throw new Letta.InternalServerError(_response.error.body);
770
820
  default:
@@ -808,10 +858,12 @@ class Agents {
808
858
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
809
859
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/template`),
810
860
  method: "POST",
811
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
861
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
812
862
  contentType: "application/json",
813
863
  requestType: "json",
814
- body: request,
864
+ body: serializers.AgentsCreateTemplateFromAgentRequest.jsonOrThrow(request, {
865
+ unrecognizedObjectKeys: "strip",
866
+ }),
815
867
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
816
868
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
817
869
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -864,7 +916,7 @@ class Agents {
864
916
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
865
917
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/variables`),
866
918
  method: "GET",
867
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.2", "User-Agent": "@letta-ai/letta-client/0.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
919
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.5", "User-Agent": "@letta-ai/letta-client/0.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
868
920
  contentType: "application/json",
869
921
  requestType: "json",
870
922
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -872,7 +924,13 @@ class Agents {
872
924
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
873
925
  });
874
926
  if (_response.ok) {
875
- return _response.body;
927
+ return serializers.AgentsGetAgentVariablesResponse.parseOrThrow(_response.body, {
928
+ unrecognizedObjectKeys: "passthrough",
929
+ allowUnrecognizedUnionMembers: true,
930
+ allowUnrecognizedEnumValues: true,
931
+ skipValidation: true,
932
+ breadcrumbsPrefix: ["response"],
933
+ });
876
934
  }
877
935
  if (_response.error.reason === "status-code") {
878
936
  switch (_response.error.statusCode) {
@@ -900,9 +958,10 @@ class Agents {
900
958
  }
901
959
  });
902
960
  }
903
- _getAuthorizationHeader() {
961
+ _getCustomAuthorizationHeaders() {
904
962
  return __awaiter(this, void 0, void 0, function* () {
905
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
963
+ const tokenValue = yield core.Supplier.get(this._options.token);
964
+ return { Authorization: `Bearer ${tokenValue}` };
906
965
  });
907
966
  }
908
967
  }
@@ -6,5 +6,5 @@
6
6
  * {}
7
7
  */
8
8
  export interface AgentsCreateTemplateFromAgentRequest {
9
- project_id?: string;
9
+ projectId?: string;
10
10
  }
@@ -7,5 +7,5 @@
7
7
  */
8
8
  export interface AgentsCreateVersionRequest {
9
9
  returnAgentState?: boolean;
10
- migrate_deployed_agents?: boolean;
10
+ migrateDeployedAgents?: boolean;
11
11
  }
@@ -17,5 +17,13 @@ export interface AgentsListRequest {
17
17
  /**
18
18
  * If True, only returns agents that match ALL given tags. Otherwise, return agents that have ANY of the passed in tags.
19
19
  */
20
- match_all_tags?: boolean;
20
+ matchAllTags?: boolean;
21
+ /**
22
+ * Cursor for pagination
23
+ */
24
+ cursor?: number;
25
+ /**
26
+ * Limit for pagination
27
+ */
28
+ limit?: number;
21
29
  }
@@ -4,13 +4,13 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * to_template: "to_template",
8
- * preserve_core_memories: true
7
+ * toTemplate: "to_template",
8
+ * preserveCoreMemories: true
9
9
  * }
10
10
  */
11
11
  export interface AgentsMigrateRequest {
12
- to_template: string;
12
+ toTemplate: string;
13
13
  /** If you chose to not preserve core memories, you should provide the new variables for the core memories */
14
14
  variables?: Record<string, string>;
15
- preserve_core_memories: boolean;
15
+ preserveCoreMemories: boolean;
16
16
  }
@@ -8,7 +8,7 @@ import * as Letta from "../../../../index";
8
8
  */
9
9
  export interface AgentsSearchDeployedAgentsRequest {
10
10
  search?: Letta.AgentsSearchDeployedAgentsRequestSearchItem[];
11
- project_id?: string;
11
+ projectId?: string;
12
12
  combinator?: Letta.AgentsSearchDeployedAgentsRequestCombinator;
13
13
  limit?: number;
14
14
  offset?: number;