@letta-ai/letta-client 0.1.2 → 0.1.4

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 -6
  5. package/api/resources/agents/client/Client.js +181 -49
  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 +19 -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 +5 -3
  24. package/api/resources/agents/resources/messages/client/Client.js +71 -19
  25. package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +12 -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 +25 -0
  76. package/api/types/AgentState.d.ts +22 -20
  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 +14 -14
  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 +11 -11
  98. package/api/types/InitToolRule.d.ts +1 -1
  99. package/api/types/Job.d.ts +12 -12
  100. package/api/types/LettaRequest.d.ts +2 -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 +18 -18
  105. package/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +2 -2
  106. package/api/types/LettaSchemasToolTool.d.ts +12 -12
  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 +19 -19
  115. package/api/types/ReasoningMessage.d.ts +4 -5
  116. package/api/types/SandboxConfig.d.ts +5 -5
  117. package/api/types/SandboxEnvironmentVariable.d.ts +7 -7
  118. package/api/types/SandboxEnvironmentVariableUpdate.d.ts +0 -3
  119. package/api/types/Source.d.ts +13 -13
  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 +7 -7
  129. package/api/types/UserCreate.d.ts +1 -1
  130. package/api/types/UserMessageOutput.d.ts +4 -5
  131. package/api/types/UserUpdate.d.ts +1 -1
  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 -6
  255. package/dist/api/resources/agents/client/Client.js +181 -49
  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 +19 -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 +5 -3
  274. package/dist/api/resources/agents/resources/messages/client/Client.js +71 -19
  275. package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +12 -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 +25 -0
  328. package/dist/api/types/AgentEnvironmentVariable.js +5 -0
  329. package/dist/api/types/AgentState.d.ts +22 -20
  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 +14 -14
  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 +11 -11
  351. package/dist/api/types/InitToolRule.d.ts +1 -1
  352. package/dist/api/types/Job.d.ts +12 -12
  353. package/dist/api/types/LettaRequest.d.ts +2 -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 +18 -18
  359. package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +2 -2
  360. package/dist/api/types/LettaSchemasToolTool.d.ts +12 -12
  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 +19 -19
  369. package/dist/api/types/ReasoningMessage.d.ts +4 -5
  370. package/dist/api/types/SandboxConfig.d.ts +5 -5
  371. package/dist/api/types/SandboxEnvironmentVariable.d.ts +7 -7
  372. package/dist/api/types/SandboxEnvironmentVariableUpdate.d.ts +0 -3
  373. package/dist/api/types/Source.d.ts +13 -13
  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 +7 -7
  383. package/dist/api/types/UserCreate.d.ts +1 -1
  384. package/dist/api/types/UserMessageOutput.d.ts +4 -5
  385. package/dist/api/types/UserUpdate.d.ts +1 -1
  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 +62 -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 +16 -0
  557. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +37 -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 +21 -0
  689. package/dist/serialization/types/AgentEnvironmentVariable.js +42 -0
  690. package/dist/serialization/types/AgentState.d.ts +39 -0
  691. package/dist/serialization/types/AgentState.js +60 -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 +22 -0
  717. package/dist/serialization/types/Block.js +43 -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 +23 -0
  759. package/dist/serialization/types/FileMetadata.js +44 -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 +21 -0
  775. package/dist/serialization/types/Job.js +42 -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 +15 -0
  779. package/dist/serialization/types/LettaRequest.js +36 -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 +26 -0
  787. package/dist/serialization/types/LettaSchemasMessageMessage.js +47 -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 +23 -0
  805. package/dist/serialization/types/LettaSchemasToolTool.js +44 -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 +26 -0
  837. package/dist/serialization/types/Passage.js +47 -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 +20 -0
  845. package/dist/serialization/types/SandboxConfig.js +41 -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 +21 -0
  855. package/dist/serialization/types/SandboxEnvironmentVariable.js +42 -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 +22 -0
  863. package/dist/serialization/types/Source.js +43 -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 +17 -0
  895. package/dist/serialization/types/User.js +38 -0
  896. package/dist/serialization/types/UserCreate.d.ts +13 -0
  897. package/dist/serialization/types/UserCreate.js +34 -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 +14 -0
  905. package/dist/serialization/types/UserUpdate.js +35 -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 +93 -10
  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 +62 -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 +16 -0
  967. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +37 -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 +21 -0
  1099. package/serialization/types/AgentEnvironmentVariable.js +42 -0
  1100. package/serialization/types/AgentState.d.ts +39 -0
  1101. package/serialization/types/AgentState.js +60 -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 +22 -0
  1127. package/serialization/types/Block.js +43 -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 +23 -0
  1169. package/serialization/types/FileMetadata.js +44 -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 +21 -0
  1185. package/serialization/types/Job.js +42 -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 +15 -0
  1189. package/serialization/types/LettaRequest.js +36 -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 +26 -0
  1197. package/serialization/types/LettaSchemasMessageMessage.js +47 -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 +23 -0
  1215. package/serialization/types/LettaSchemasToolTool.js +44 -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 +26 -0
  1247. package/serialization/types/Passage.js +47 -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 +20 -0
  1255. package/serialization/types/SandboxConfig.js +41 -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 +21 -0
  1265. package/serialization/types/SandboxEnvironmentVariable.js +42 -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 +22 -0
  1273. package/serialization/types/Source.js +43 -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 +17 -0
  1305. package/serialization/types/User.js +38 -0
  1306. package/serialization/types/UserCreate.d.ts +13 -0
  1307. package/serialization/types/UserCreate.js +34 -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 +14 -0
  1315. package/serialization/types/UserUpdate.js +35 -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
@@ -43,9 +43,10 @@ const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
44
  const Letta = __importStar(require("../../../index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
+ const serializers = __importStar(require("../../../../serialization/index"));
46
47
  const errors = __importStar(require("../../../../errors/index"));
47
48
  class Tools {
48
- constructor(_options) {
49
+ constructor(_options = {}) {
49
50
  this._options = _options;
50
51
  }
51
52
  /**
@@ -65,7 +66,7 @@ class Tools {
65
66
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
66
67
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
67
68
  method: "GET",
68
- 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),
69
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
69
70
  contentType: "application/json",
70
71
  requestType: "json",
71
72
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -73,12 +74,24 @@ class Tools {
73
74
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
74
75
  });
75
76
  if (_response.ok) {
76
- return _response.body;
77
+ return serializers.LettaSchemasToolTool.parseOrThrow(_response.body, {
78
+ unrecognizedObjectKeys: "passthrough",
79
+ allowUnrecognizedUnionMembers: true,
80
+ allowUnrecognizedEnumValues: true,
81
+ skipValidation: true,
82
+ breadcrumbsPrefix: ["response"],
83
+ });
77
84
  }
78
85
  if (_response.error.reason === "status-code") {
79
86
  switch (_response.error.statusCode) {
80
87
  case 422:
81
- throw new Letta.UnprocessableEntityError(_response.error.body);
88
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
89
+ unrecognizedObjectKeys: "passthrough",
90
+ allowUnrecognizedUnionMembers: true,
91
+ allowUnrecognizedEnumValues: true,
92
+ skipValidation: true,
93
+ breadcrumbsPrefix: ["response"],
94
+ }));
82
95
  default:
83
96
  throw new errors.LettaError({
84
97
  statusCode: _response.error.statusCode,
@@ -118,7 +131,7 @@ class Tools {
118
131
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
119
132
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
120
133
  method: "DELETE",
121
- 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),
134
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
122
135
  contentType: "application/json",
123
136
  requestType: "json",
124
137
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -131,7 +144,13 @@ class Tools {
131
144
  if (_response.error.reason === "status-code") {
132
145
  switch (_response.error.statusCode) {
133
146
  case 422:
134
- throw new Letta.UnprocessableEntityError(_response.error.body);
147
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
148
+ unrecognizedObjectKeys: "passthrough",
149
+ allowUnrecognizedUnionMembers: true,
150
+ allowUnrecognizedEnumValues: true,
151
+ skipValidation: true,
152
+ breadcrumbsPrefix: ["response"],
153
+ }));
135
154
  default:
136
155
  throw new errors.LettaError({
137
156
  statusCode: _response.error.statusCode,
@@ -172,21 +191,33 @@ class Tools {
172
191
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
173
192
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
174
193
  method: "PATCH",
175
- 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),
194
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
195
  contentType: "application/json",
177
196
  requestType: "json",
178
- body: request,
197
+ body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
179
198
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
180
199
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
181
200
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
182
201
  });
183
202
  if (_response.ok) {
184
- return _response.body;
203
+ return serializers.LettaSchemasToolTool.parseOrThrow(_response.body, {
204
+ unrecognizedObjectKeys: "passthrough",
205
+ allowUnrecognizedUnionMembers: true,
206
+ allowUnrecognizedEnumValues: true,
207
+ skipValidation: true,
208
+ breadcrumbsPrefix: ["response"],
209
+ });
185
210
  }
186
211
  if (_response.error.reason === "status-code") {
187
212
  switch (_response.error.statusCode) {
188
213
  case 422:
189
- throw new Letta.UnprocessableEntityError(_response.error.body);
214
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
215
+ unrecognizedObjectKeys: "passthrough",
216
+ allowUnrecognizedUnionMembers: true,
217
+ allowUnrecognizedEnumValues: true,
218
+ skipValidation: true,
219
+ breadcrumbsPrefix: ["response"],
220
+ }));
190
221
  default:
191
222
  throw new errors.LettaError({
192
223
  statusCode: _response.error.statusCode,
@@ -226,7 +257,7 @@ class Tools {
226
257
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
227
258
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/name/${encodeURIComponent(toolName)}`),
228
259
  method: "GET",
229
- 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),
260
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
261
  contentType: "application/json",
231
262
  requestType: "json",
232
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -234,12 +265,24 @@ class Tools {
234
265
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
235
266
  });
236
267
  if (_response.ok) {
237
- return _response.body;
268
+ return serializers.tools.getByName.Response.parseOrThrow(_response.body, {
269
+ unrecognizedObjectKeys: "passthrough",
270
+ allowUnrecognizedUnionMembers: true,
271
+ allowUnrecognizedEnumValues: true,
272
+ skipValidation: true,
273
+ breadcrumbsPrefix: ["response"],
274
+ });
238
275
  }
239
276
  if (_response.error.reason === "status-code") {
240
277
  switch (_response.error.statusCode) {
241
278
  case 422:
242
- throw new Letta.UnprocessableEntityError(_response.error.body);
279
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
280
+ unrecognizedObjectKeys: "passthrough",
281
+ allowUnrecognizedUnionMembers: true,
282
+ allowUnrecognizedEnumValues: true,
283
+ skipValidation: true,
284
+ breadcrumbsPrefix: ["response"],
285
+ }));
243
286
  default:
244
287
  throw new errors.LettaError({
245
288
  statusCode: _response.error.statusCode,
@@ -287,7 +330,7 @@ class Tools {
287
330
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
288
331
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
289
332
  method: "GET",
290
- 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),
333
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
291
334
  contentType: "application/json",
292
335
  queryParameters: _queryParams,
293
336
  requestType: "json",
@@ -296,12 +339,24 @@ class Tools {
296
339
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
297
340
  });
298
341
  if (_response.ok) {
299
- return _response.body;
342
+ return serializers.tools.list.Response.parseOrThrow(_response.body, {
343
+ unrecognizedObjectKeys: "passthrough",
344
+ allowUnrecognizedUnionMembers: true,
345
+ allowUnrecognizedEnumValues: true,
346
+ skipValidation: true,
347
+ breadcrumbsPrefix: ["response"],
348
+ });
300
349
  }
301
350
  if (_response.error.reason === "status-code") {
302
351
  switch (_response.error.statusCode) {
303
352
  case 422:
304
- throw new Letta.UnprocessableEntityError(_response.error.body);
353
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
354
+ unrecognizedObjectKeys: "passthrough",
355
+ allowUnrecognizedUnionMembers: true,
356
+ allowUnrecognizedEnumValues: true,
357
+ skipValidation: true,
358
+ breadcrumbsPrefix: ["response"],
359
+ }));
305
360
  default:
306
361
  throw new errors.LettaError({
307
362
  statusCode: _response.error.statusCode,
@@ -334,7 +389,7 @@ class Tools {
334
389
  *
335
390
  * @example
336
391
  * await client.tools.create({
337
- * source_code: "source_code"
392
+ * sourceCode: "source_code"
338
393
  * })
339
394
  */
340
395
  create(request, requestOptions) {
@@ -343,21 +398,33 @@ class Tools {
343
398
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
344
399
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
345
400
  method: "POST",
346
- 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),
401
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
347
402
  contentType: "application/json",
348
403
  requestType: "json",
349
- body: request,
404
+ body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
350
405
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
351
406
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
352
407
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
353
408
  });
354
409
  if (_response.ok) {
355
- return _response.body;
410
+ return serializers.LettaSchemasToolTool.parseOrThrow(_response.body, {
411
+ unrecognizedObjectKeys: "passthrough",
412
+ allowUnrecognizedUnionMembers: true,
413
+ allowUnrecognizedEnumValues: true,
414
+ skipValidation: true,
415
+ breadcrumbsPrefix: ["response"],
416
+ });
356
417
  }
357
418
  if (_response.error.reason === "status-code") {
358
419
  switch (_response.error.statusCode) {
359
420
  case 422:
360
- throw new Letta.UnprocessableEntityError(_response.error.body);
421
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
422
+ unrecognizedObjectKeys: "passthrough",
423
+ allowUnrecognizedUnionMembers: true,
424
+ allowUnrecognizedEnumValues: true,
425
+ skipValidation: true,
426
+ breadcrumbsPrefix: ["response"],
427
+ }));
361
428
  default:
362
429
  throw new errors.LettaError({
363
430
  statusCode: _response.error.statusCode,
@@ -390,7 +457,7 @@ class Tools {
390
457
  *
391
458
  * @example
392
459
  * await client.tools.upsert({
393
- * source_code: "source_code"
460
+ * sourceCode: "source_code"
394
461
  * })
395
462
  */
396
463
  upsert(request, requestOptions) {
@@ -399,21 +466,33 @@ class Tools {
399
466
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
400
467
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
401
468
  method: "PUT",
402
- 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),
469
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
403
470
  contentType: "application/json",
404
471
  requestType: "json",
405
- body: request,
472
+ body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
406
473
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
407
474
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
408
475
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
409
476
  });
410
477
  if (_response.ok) {
411
- return _response.body;
478
+ return serializers.LettaSchemasToolTool.parseOrThrow(_response.body, {
479
+ unrecognizedObjectKeys: "passthrough",
480
+ allowUnrecognizedUnionMembers: true,
481
+ allowUnrecognizedEnumValues: true,
482
+ skipValidation: true,
483
+ breadcrumbsPrefix: ["response"],
484
+ });
412
485
  }
413
486
  if (_response.error.reason === "status-code") {
414
487
  switch (_response.error.statusCode) {
415
488
  case 422:
416
- throw new Letta.UnprocessableEntityError(_response.error.body);
489
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
490
+ unrecognizedObjectKeys: "passthrough",
491
+ allowUnrecognizedUnionMembers: true,
492
+ allowUnrecognizedEnumValues: true,
493
+ skipValidation: true,
494
+ breadcrumbsPrefix: ["response"],
495
+ }));
417
496
  default:
418
497
  throw new errors.LettaError({
419
498
  statusCode: _response.error.statusCode,
@@ -452,7 +531,7 @@ class Tools {
452
531
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
453
532
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
454
533
  method: "POST",
455
- 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),
534
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
456
535
  contentType: "application/json",
457
536
  requestType: "json",
458
537
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -460,12 +539,24 @@ class Tools {
460
539
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
461
540
  });
462
541
  if (_response.ok) {
463
- return _response.body;
542
+ return serializers.tools.addBaseTool.Response.parseOrThrow(_response.body, {
543
+ unrecognizedObjectKeys: "passthrough",
544
+ allowUnrecognizedUnionMembers: true,
545
+ allowUnrecognizedEnumValues: true,
546
+ skipValidation: true,
547
+ breadcrumbsPrefix: ["response"],
548
+ });
464
549
  }
465
550
  if (_response.error.reason === "status-code") {
466
551
  switch (_response.error.statusCode) {
467
552
  case 422:
468
- throw new Letta.UnprocessableEntityError(_response.error.body);
553
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
554
+ unrecognizedObjectKeys: "passthrough",
555
+ allowUnrecognizedUnionMembers: true,
556
+ allowUnrecognizedEnumValues: true,
557
+ skipValidation: true,
558
+ breadcrumbsPrefix: ["response"],
559
+ }));
469
560
  default:
470
561
  throw new errors.LettaError({
471
562
  statusCode: _response.error.statusCode,
@@ -498,7 +589,7 @@ class Tools {
498
589
  *
499
590
  * @example
500
591
  * await client.tools.runToolFromSource({
501
- * source_code: "source_code",
592
+ * sourceCode: "source_code",
502
593
  * args: "args"
503
594
  * })
504
595
  */
@@ -508,21 +599,33 @@ class Tools {
508
599
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
509
600
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
510
601
  method: "POST",
511
- 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),
602
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
512
603
  contentType: "application/json",
513
604
  requestType: "json",
514
- body: request,
605
+ body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
515
606
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
516
607
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
517
608
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
518
609
  });
519
610
  if (_response.ok) {
520
- return _response.body;
611
+ return serializers.ToolReturnMessage.parseOrThrow(_response.body, {
612
+ unrecognizedObjectKeys: "passthrough",
613
+ allowUnrecognizedUnionMembers: true,
614
+ allowUnrecognizedEnumValues: true,
615
+ skipValidation: true,
616
+ breadcrumbsPrefix: ["response"],
617
+ });
521
618
  }
522
619
  if (_response.error.reason === "status-code") {
523
620
  switch (_response.error.statusCode) {
524
621
  case 422:
525
- throw new Letta.UnprocessableEntityError(_response.error.body);
622
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
623
+ unrecognizedObjectKeys: "passthrough",
624
+ allowUnrecognizedUnionMembers: true,
625
+ allowUnrecognizedEnumValues: true,
626
+ skipValidation: true,
627
+ breadcrumbsPrefix: ["response"],
628
+ }));
526
629
  default:
527
630
  throw new errors.LettaError({
528
631
  statusCode: _response.error.statusCode,
@@ -561,7 +664,7 @@ class Tools {
561
664
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
562
665
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
563
666
  method: "GET",
564
- 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),
667
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
565
668
  contentType: "application/json",
566
669
  requestType: "json",
567
670
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -569,12 +672,24 @@ class Tools {
569
672
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
570
673
  });
571
674
  if (_response.ok) {
572
- return _response.body;
675
+ return serializers.tools.listComposioApps.Response.parseOrThrow(_response.body, {
676
+ unrecognizedObjectKeys: "passthrough",
677
+ allowUnrecognizedUnionMembers: true,
678
+ allowUnrecognizedEnumValues: true,
679
+ skipValidation: true,
680
+ breadcrumbsPrefix: ["response"],
681
+ });
573
682
  }
574
683
  if (_response.error.reason === "status-code") {
575
684
  switch (_response.error.statusCode) {
576
685
  case 422:
577
- throw new Letta.UnprocessableEntityError(_response.error.body);
686
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
687
+ unrecognizedObjectKeys: "passthrough",
688
+ allowUnrecognizedUnionMembers: true,
689
+ allowUnrecognizedEnumValues: true,
690
+ skipValidation: true,
691
+ breadcrumbsPrefix: ["response"],
692
+ }));
578
693
  default:
579
694
  throw new errors.LettaError({
580
695
  statusCode: _response.error.statusCode,
@@ -614,7 +729,7 @@ class Tools {
614
729
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
615
730
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
616
731
  method: "GET",
617
- 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),
732
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
618
733
  contentType: "application/json",
619
734
  requestType: "json",
620
735
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -622,12 +737,24 @@ class Tools {
622
737
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
623
738
  });
624
739
  if (_response.ok) {
625
- return _response.body;
740
+ return serializers.tools.listComposioActionsByApp.Response.parseOrThrow(_response.body, {
741
+ unrecognizedObjectKeys: "passthrough",
742
+ allowUnrecognizedUnionMembers: true,
743
+ allowUnrecognizedEnumValues: true,
744
+ skipValidation: true,
745
+ breadcrumbsPrefix: ["response"],
746
+ });
626
747
  }
627
748
  if (_response.error.reason === "status-code") {
628
749
  switch (_response.error.statusCode) {
629
750
  case 422:
630
- throw new Letta.UnprocessableEntityError(_response.error.body);
751
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
752
+ unrecognizedObjectKeys: "passthrough",
753
+ allowUnrecognizedUnionMembers: true,
754
+ allowUnrecognizedEnumValues: true,
755
+ skipValidation: true,
756
+ breadcrumbsPrefix: ["response"],
757
+ }));
631
758
  default:
632
759
  throw new errors.LettaError({
633
760
  statusCode: _response.error.statusCode,
@@ -667,7 +794,7 @@ class Tools {
667
794
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
668
795
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
669
796
  method: "POST",
670
- 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),
797
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
671
798
  contentType: "application/json",
672
799
  requestType: "json",
673
800
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -675,12 +802,24 @@ class Tools {
675
802
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
676
803
  });
677
804
  if (_response.ok) {
678
- return _response.body;
805
+ return serializers.LettaSchemasToolTool.parseOrThrow(_response.body, {
806
+ unrecognizedObjectKeys: "passthrough",
807
+ allowUnrecognizedUnionMembers: true,
808
+ allowUnrecognizedEnumValues: true,
809
+ skipValidation: true,
810
+ breadcrumbsPrefix: ["response"],
811
+ });
679
812
  }
680
813
  if (_response.error.reason === "status-code") {
681
814
  switch (_response.error.statusCode) {
682
815
  case 422:
683
- throw new Letta.UnprocessableEntityError(_response.error.body);
816
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
817
+ unrecognizedObjectKeys: "passthrough",
818
+ allowUnrecognizedUnionMembers: true,
819
+ allowUnrecognizedEnumValues: true,
820
+ skipValidation: true,
821
+ breadcrumbsPrefix: ["response"],
822
+ }));
684
823
  default:
685
824
  throw new errors.LettaError({
686
825
  statusCode: _response.error.statusCode,
@@ -703,9 +842,10 @@ class Tools {
703
842
  }
704
843
  });
705
844
  }
706
- _getAuthorizationHeader() {
845
+ _getCustomAuthorizationHeaders() {
707
846
  return __awaiter(this, void 0, void 0, function* () {
708
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
847
+ const tokenValue = yield core.Supplier.get(this._options.token);
848
+ return { Authorization: `Bearer ${tokenValue}` };
709
849
  });
710
850
  }
711
851
  }
@@ -4,17 +4,17 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * source_code: "source_code",
7
+ * sourceCode: "source_code",
8
8
  * args: "args"
9
9
  * }
10
10
  */
11
11
  export interface ToolRunFromSource {
12
12
  /** The source code of the function. */
13
- source_code: string;
13
+ sourceCode: string;
14
14
  /** The arguments to pass to the tool (as stringified JSON). */
15
15
  args: string;
16
16
  /** The name of the tool to run. */
17
17
  name?: string;
18
18
  /** The type of the source code. */
19
- source_type?: string;
19
+ sourceType?: string;
20
20
  }
@@ -15,9 +15,9 @@ export interface ToolUpdate {
15
15
  /** The source code of the function. */
16
16
  module?: string;
17
17
  /** The source code of the function. */
18
- source_code?: string;
18
+ sourceCode?: string;
19
19
  /** The type of the source code. */
20
- source_type?: string;
20
+ sourceType?: string;
21
21
  /** The JSON schema of the function (auto-generated from source_code if not provided) */
22
- json_schema?: Record<string, unknown>;
22
+ jsonSchema?: Record<string, unknown>;
23
23
  }
@@ -7,7 +7,7 @@ import * as Letta from "../index";
7
7
  */
8
8
  export interface ActionModel {
9
9
  name: string;
10
- display_name?: string;
10
+ displayName?: string;
11
11
  parameters: Letta.ActionParametersModel;
12
12
  response: Letta.ActionResponseModel;
13
13
  appName: string;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AgentEnvironmentVariable {
5
+ /** The id of the user that made this object. */
6
+ createdById?: string;
7
+ /** The id of the user that made this object. */
8
+ lastUpdatedById?: string;
9
+ /** The timestamp when the object was created. */
10
+ createdAt?: Date;
11
+ /** The timestamp when the object was last updated. */
12
+ updatedAt?: Date;
13
+ /** The human-friendly ID of the Agent-env */
14
+ id?: string;
15
+ /** The name of the environment variable. */
16
+ key: string;
17
+ /** The value of the environment variable. */
18
+ value: string;
19
+ /** An optional description of the environment variable. */
20
+ description?: string;
21
+ /** The ID of the organization this environment variable belongs to. */
22
+ organizationId?: string;
23
+ /** The ID of the agent this environment variable belongs to. */
24
+ agentId: string;
25
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });