@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
@@ -4,13 +4,13 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * to_template: "to_template",
8
- * preserve_core_memories: true
7
+ * toTemplate: "to_template",
8
+ * preserveCoreMemories: true
9
9
  * }
10
10
  */
11
11
  export interface AgentsMigrateRequest {
12
- to_template: string;
12
+ toTemplate: string;
13
13
  /** If you chose to not preserve core memories, you should provide the new variables for the core memories */
14
14
  variables?: Record<string, string>;
15
- preserve_core_memories: boolean;
15
+ preserveCoreMemories: boolean;
16
16
  }
@@ -8,7 +8,7 @@ import * as Letta from "../../../../index";
8
8
  */
9
9
  export interface AgentsSearchDeployedAgentsRequest {
10
10
  search?: Letta.AgentsSearchDeployedAgentsRequestSearchItem[];
11
- project_id?: string;
11
+ projectId?: string;
12
12
  combinator?: Letta.AgentsSearchDeployedAgentsRequestCombinator;
13
13
  limit?: number;
14
14
  offset?: number;
@@ -5,7 +5,7 @@ import * as Letta from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * memory_blocks: [{
8
+ * memoryBlocks: [{
9
9
  * value: "value",
10
10
  * label: "label"
11
11
  * }]
@@ -15,46 +15,48 @@ export interface CreateAgentRequest {
15
15
  /** The name of the agent. */
16
16
  name?: string;
17
17
  /** The blocks to create in the agent's in-context memory. */
18
- memory_blocks: Letta.CreateBlock[];
18
+ memoryBlocks: Letta.CreateBlock[];
19
19
  /** The tools used by the agent. */
20
20
  tools?: string[];
21
21
  /** The ids of the tools used by the agent. */
22
- tool_ids?: string[];
22
+ toolIds?: string[];
23
23
  /** The ids of the sources used by the agent. */
24
- source_ids?: string[];
24
+ sourceIds?: string[];
25
25
  /** The ids of the blocks used by the agent. */
26
- block_ids?: string[];
26
+ blockIds?: string[];
27
27
  /** The tool rules governing the agent. */
28
- tool_rules?: Letta.CreateAgentRequestToolRulesItem[];
28
+ toolRules?: Letta.CreateAgentRequestToolRulesItem[];
29
29
  /** The tags associated with the agent. */
30
30
  tags?: string[];
31
31
  /** The system prompt used by the agent. */
32
32
  system?: string;
33
33
  /** The type of agent. */
34
- agent_type?: Letta.AgentType;
34
+ agentType?: Letta.AgentType;
35
35
  /** The LLM configuration used by the agent. */
36
- llm_config?: Letta.LlmConfig;
36
+ llmConfig?: Letta.LlmConfig;
37
37
  /** The embedding configuration used by the agent. */
38
- embedding_config?: Letta.EmbeddingConfig;
38
+ embeddingConfig?: Letta.EmbeddingConfig;
39
39
  /** The initial set of messages to put in the agent's in-context memory. */
40
- initial_message_sequence?: Letta.MessageCreate[];
40
+ initialMessageSequence?: Letta.MessageCreate[];
41
41
  /** The LLM configuration used by the agent. */
42
- include_base_tools?: boolean;
42
+ includeBaseTools?: boolean;
43
43
  /** The description of the agent. */
44
44
  description?: string;
45
45
  /** The metadata of the agent. */
46
- metadata_?: Record<string, unknown>;
46
+ metadata?: Record<string, unknown>;
47
47
  /** The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config. */
48
48
  llm?: string;
49
49
  /** The embedding configuration handle used by the agent, specified in the format provider/model-name. */
50
50
  embedding?: string;
51
51
  /** The context window limit used by the agent. */
52
- context_window_limit?: number;
52
+ contextWindowLimit?: number;
53
53
  /** The embedding chunk size used by the agent. */
54
- embedding_chunk_size?: number;
54
+ embeddingChunkSize?: number;
55
55
  /** The template id used to configure the agent */
56
- from_template?: string;
56
+ fromTemplate?: string;
57
57
  /** The project id that the agent will be associated with. */
58
- project_id?: string;
59
- user_id?: string;
58
+ projectId?: string;
59
+ /** The environment variables for tool execution specific to this agent. */
60
+ toolExecEnvironmentVariables?: Record<string, string | undefined>;
61
+ userId?: string;
60
62
  }
@@ -10,25 +10,27 @@ export interface UpdateAgent {
10
10
  /** The name of the agent. */
11
11
  name?: string;
12
12
  /** The ids of the tools used by the agent. */
13
- tool_ids?: string[];
13
+ toolIds?: string[];
14
14
  /** The ids of the sources used by the agent. */
15
- source_ids?: string[];
15
+ sourceIds?: string[];
16
16
  /** The ids of the blocks used by the agent. */
17
- block_ids?: string[];
17
+ blockIds?: string[];
18
18
  /** The tags associated with the agent. */
19
19
  tags?: string[];
20
20
  /** The system prompt used by the agent. */
21
21
  system?: string;
22
22
  /** The tool rules governing the agent. */
23
- tool_rules?: Letta.UpdateAgentToolRulesItem[];
23
+ toolRules?: Letta.UpdateAgentToolRulesItem[];
24
24
  /** The LLM configuration used by the agent. */
25
- llm_config?: Letta.LlmConfig;
25
+ llmConfig?: Letta.LlmConfig;
26
26
  /** The embedding configuration used by the agent. */
27
- embedding_config?: Letta.EmbeddingConfig;
27
+ embeddingConfig?: Letta.EmbeddingConfig;
28
28
  /** The ids of the messages in the agent's in-context memory. */
29
- message_ids?: string[];
29
+ messageIds?: string[];
30
30
  /** The description of the agent. */
31
31
  description?: string;
32
32
  /** The metadata of the agent. */
33
- metadata_?: Record<string, unknown>;
33
+ metadata?: Record<string, unknown>;
34
+ /** The environment variables for tool execution specific to this agent. */
35
+ toolExecEnvironmentVariables?: Record<string, string | undefined>;
34
36
  }
@@ -7,7 +7,7 @@ import * as Letta from "../../../../../index";
7
7
  export declare namespace ArchivalMemory {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.LettaEnvironment | string>;
10
- token: core.Supplier<core.BearerToken>;
10
+ token?: core.Supplier<string | undefined>;
11
11
  fetcher?: core.FetchFunction;
12
12
  }
13
13
  interface RequestOptions {
@@ -23,7 +23,7 @@ export declare namespace ArchivalMemory {
23
23
  }
24
24
  export declare class ArchivalMemory {
25
25
  protected readonly _options: ArchivalMemory.Options;
26
- constructor(_options: ArchivalMemory.Options);
26
+ constructor(_options?: ArchivalMemory.Options);
27
27
  /**
28
28
  * Retrieve the summary of the archival memory of a specific agent.
29
29
  *
@@ -77,5 +77,7 @@ export declare class ArchivalMemory {
77
77
  * await client.agents.archivalMemory.delete("agent_id", "memory_id")
78
78
  */
79
79
  delete(agentId: string, memoryId: string, requestOptions?: ArchivalMemory.RequestOptions): Promise<unknown>;
80
- protected _getAuthorizationHeader(): Promise<string>;
80
+ protected _getCustomAuthorizationHeaders(): Promise<{
81
+ Authorization: string;
82
+ }>;
81
83
  }
@@ -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 ArchivalMemory {
48
- constructor(_options) {
49
+ constructor(_options = {}) {
49
50
  this._options = _options;
50
51
  }
51
52
  /**
@@ -65,7 +66,7 @@ class ArchivalMemory {
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/agents/${encodeURIComponent(agentId)}/memory/archival`),
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 ArchivalMemory {
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.ArchivalMemorySummary.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,
@@ -130,7 +143,7 @@ class ArchivalMemory {
130
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
131
144
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival`),
132
145
  method: "GET",
133
- 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),
146
+ 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),
134
147
  contentType: "application/json",
135
148
  queryParameters: _queryParams,
136
149
  requestType: "json",
@@ -139,12 +152,24 @@ class ArchivalMemory {
139
152
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
140
153
  });
141
154
  if (_response.ok) {
142
- return _response.body;
155
+ return serializers.agents.archivalMemory.list.Response.parseOrThrow(_response.body, {
156
+ unrecognizedObjectKeys: "passthrough",
157
+ allowUnrecognizedUnionMembers: true,
158
+ allowUnrecognizedEnumValues: true,
159
+ skipValidation: true,
160
+ breadcrumbsPrefix: ["response"],
161
+ });
143
162
  }
144
163
  if (_response.error.reason === "status-code") {
145
164
  switch (_response.error.statusCode) {
146
165
  case 422:
147
- throw new Letta.UnprocessableEntityError(_response.error.body);
166
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
167
+ unrecognizedObjectKeys: "passthrough",
168
+ allowUnrecognizedUnionMembers: true,
169
+ allowUnrecognizedEnumValues: true,
170
+ skipValidation: true,
171
+ breadcrumbsPrefix: ["response"],
172
+ }));
148
173
  default:
149
174
  throw new errors.LettaError({
150
175
  statusCode: _response.error.statusCode,
@@ -187,21 +212,33 @@ class ArchivalMemory {
187
212
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
213
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival`),
189
214
  method: "POST",
190
- 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),
215
+ 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),
191
216
  contentType: "application/json",
192
217
  requestType: "json",
193
- body: request,
218
+ body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
194
219
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
195
220
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
196
221
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
197
222
  });
198
223
  if (_response.ok) {
199
- return _response.body;
224
+ return serializers.agents.archivalMemory.create.Response.parseOrThrow(_response.body, {
225
+ unrecognizedObjectKeys: "passthrough",
226
+ allowUnrecognizedUnionMembers: true,
227
+ allowUnrecognizedEnumValues: true,
228
+ skipValidation: true,
229
+ breadcrumbsPrefix: ["response"],
230
+ });
200
231
  }
201
232
  if (_response.error.reason === "status-code") {
202
233
  switch (_response.error.statusCode) {
203
234
  case 422:
204
- throw new Letta.UnprocessableEntityError(_response.error.body);
235
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
236
+ unrecognizedObjectKeys: "passthrough",
237
+ allowUnrecognizedUnionMembers: true,
238
+ allowUnrecognizedEnumValues: true,
239
+ skipValidation: true,
240
+ breadcrumbsPrefix: ["response"],
241
+ }));
205
242
  default:
206
243
  throw new errors.LettaError({
207
244
  statusCode: _response.error.statusCode,
@@ -242,7 +279,7 @@ class ArchivalMemory {
242
279
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
243
280
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/archival/${encodeURIComponent(memoryId)}`),
244
281
  method: "DELETE",
245
- 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),
282
+ 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),
246
283
  contentType: "application/json",
247
284
  requestType: "json",
248
285
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -255,7 +292,13 @@ class ArchivalMemory {
255
292
  if (_response.error.reason === "status-code") {
256
293
  switch (_response.error.statusCode) {
257
294
  case 422:
258
- throw new Letta.UnprocessableEntityError(_response.error.body);
295
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
296
+ unrecognizedObjectKeys: "passthrough",
297
+ allowUnrecognizedUnionMembers: true,
298
+ allowUnrecognizedEnumValues: true,
299
+ skipValidation: true,
300
+ breadcrumbsPrefix: ["response"],
301
+ }));
259
302
  default:
260
303
  throw new errors.LettaError({
261
304
  statusCode: _response.error.statusCode,
@@ -278,9 +321,10 @@ class ArchivalMemory {
278
321
  }
279
322
  });
280
323
  }
281
- _getAuthorizationHeader() {
324
+ _getCustomAuthorizationHeaders() {
282
325
  return __awaiter(this, void 0, void 0, function* () {
283
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
326
+ const tokenValue = yield core.Supplier.get(this._options.token);
327
+ return { Authorization: `Bearer ${tokenValue}` };
284
328
  });
285
329
  }
286
330
  }
@@ -7,7 +7,7 @@ import * as Letta from "../../../../../index";
7
7
  export declare namespace Context {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.LettaEnvironment | string>;
10
- token: core.Supplier<core.BearerToken>;
10
+ token?: core.Supplier<string | undefined>;
11
11
  fetcher?: core.FetchFunction;
12
12
  }
13
13
  interface RequestOptions {
@@ -23,7 +23,7 @@ export declare namespace Context {
23
23
  }
24
24
  export declare class Context {
25
25
  protected readonly _options: Context.Options;
26
- constructor(_options: Context.Options);
26
+ constructor(_options?: Context.Options);
27
27
  /**
28
28
  * Retrieve the context window of a specific agent.
29
29
  *
@@ -36,5 +36,7 @@ export declare class Context {
36
36
  * await client.agents.context.get("agent_id")
37
37
  */
38
38
  get(agentId: string, requestOptions?: Context.RequestOptions): Promise<Letta.ContextWindowOverview>;
39
- protected _getAuthorizationHeader(): Promise<string>;
39
+ protected _getCustomAuthorizationHeaders(): Promise<{
40
+ Authorization: string;
41
+ }>;
40
42
  }
@@ -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 Context {
48
- constructor(_options) {
49
+ constructor(_options = {}) {
49
50
  this._options = _options;
50
51
  }
51
52
  /**
@@ -65,7 +66,7 @@ class Context {
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/agents/${encodeURIComponent(agentId)}/context`),
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 Context {
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.ContextWindowOverview.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,
@@ -101,9 +114,10 @@ class Context {
101
114
  }
102
115
  });
103
116
  }
104
- _getAuthorizationHeader() {
117
+ _getCustomAuthorizationHeaders() {
105
118
  return __awaiter(this, void 0, void 0, function* () {
106
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
119
+ const tokenValue = yield core.Supplier.get(this._options.token);
120
+ return { Authorization: `Bearer ${tokenValue}` };
107
121
  });
108
122
  }
109
123
  }
@@ -8,7 +8,7 @@ import { Messages } from "../resources/messages/client/Client";
8
8
  export declare namespace Memory {
9
9
  interface Options {
10
10
  environment?: core.Supplier<environments.LettaEnvironment | string>;
11
- token: core.Supplier<core.BearerToken>;
11
+ token?: core.Supplier<string | undefined>;
12
12
  fetcher?: core.FetchFunction;
13
13
  }
14
14
  interface RequestOptions {
@@ -25,7 +25,7 @@ export declare namespace Memory {
25
25
  export declare class Memory {
26
26
  protected readonly _options: Memory.Options;
27
27
  protected _messages: Messages | undefined;
28
- constructor(_options: Memory.Options);
28
+ constructor(_options?: Memory.Options);
29
29
  get messages(): Messages;
30
30
  /**
31
31
  * Retrieve the memory state of a specific agent.
@@ -40,5 +40,7 @@ export declare class Memory {
40
40
  * await client.agents.memory.get("agent_id")
41
41
  */
42
42
  get(agentId: string, requestOptions?: Memory.RequestOptions): Promise<Letta.Memory>;
43
- protected _getAuthorizationHeader(): Promise<string>;
43
+ protected _getCustomAuthorizationHeaders(): Promise<{
44
+ Authorization: string;
45
+ }>;
44
46
  }
@@ -43,10 +43,11 @@ 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
  const Client_1 = require("../resources/messages/client/Client");
48
49
  class Memory {
49
- constructor(_options) {
50
+ constructor(_options = {}) {
50
51
  this._options = _options;
51
52
  }
52
53
  get messages() {
@@ -71,7 +72,7 @@ class Memory {
71
72
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
73
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/memory`),
73
74
  method: "GET",
74
- 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),
75
+ 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),
75
76
  contentType: "application/json",
76
77
  requestType: "json",
77
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -79,12 +80,24 @@ class Memory {
79
80
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
81
  });
81
82
  if (_response.ok) {
82
- return _response.body;
83
+ return serializers.Memory.parseOrThrow(_response.body, {
84
+ unrecognizedObjectKeys: "passthrough",
85
+ allowUnrecognizedUnionMembers: true,
86
+ allowUnrecognizedEnumValues: true,
87
+ skipValidation: true,
88
+ breadcrumbsPrefix: ["response"],
89
+ });
83
90
  }
84
91
  if (_response.error.reason === "status-code") {
85
92
  switch (_response.error.statusCode) {
86
93
  case 422:
87
- throw new Letta.UnprocessableEntityError(_response.error.body);
94
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
95
+ unrecognizedObjectKeys: "passthrough",
96
+ allowUnrecognizedUnionMembers: true,
97
+ allowUnrecognizedEnumValues: true,
98
+ skipValidation: true,
99
+ breadcrumbsPrefix: ["response"],
100
+ }));
88
101
  default:
89
102
  throw new errors.LettaError({
90
103
  statusCode: _response.error.statusCode,
@@ -107,9 +120,10 @@ class Memory {
107
120
  }
108
121
  });
109
122
  }
110
- _getAuthorizationHeader() {
123
+ _getCustomAuthorizationHeaders() {
111
124
  return __awaiter(this, void 0, void 0, function* () {
112
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
125
+ const tokenValue = yield core.Supplier.get(this._options.token);
126
+ return { Authorization: `Bearer ${tokenValue}` };
113
127
  });
114
128
  }
115
129
  }
@@ -7,7 +7,7 @@ import * as Letta from "../../../../../../../index";
7
7
  export declare namespace Messages {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.LettaEnvironment | string>;
10
- token: core.Supplier<core.BearerToken>;
10
+ token?: core.Supplier<string | undefined>;
11
11
  fetcher?: core.FetchFunction;
12
12
  }
13
13
  interface RequestOptions {
@@ -23,7 +23,7 @@ export declare namespace Messages {
23
23
  }
24
24
  export declare class Messages {
25
25
  protected readonly _options: Messages.Options;
26
- constructor(_options: Messages.Options);
26
+ constructor(_options?: Messages.Options);
27
27
  /**
28
28
  * Retrieve the messages in the context of a specific agent.
29
29
  *
@@ -36,5 +36,7 @@ export declare class Messages {
36
36
  * await client.agents.memory.messages.listInContext("agent_id")
37
37
  */
38
38
  listInContext(agentId: string, requestOptions?: Messages.RequestOptions): Promise<Letta.LettaSchemasMessageMessage[]>;
39
- protected _getAuthorizationHeader(): Promise<string>;
39
+ protected _getCustomAuthorizationHeaders(): Promise<{
40
+ Authorization: string;
41
+ }>;
40
42
  }
@@ -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 Messages {
48
- constructor(_options) {
49
+ constructor(_options = {}) {
49
50
  this._options = _options;
50
51
  }
51
52
  /**
@@ -65,7 +66,7 @@ class Messages {
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/agents/${encodeURIComponent(agentId)}/memory/messages`),
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 Messages {
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.agents.memory.messages.listInContext.Response.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,
@@ -101,9 +114,10 @@ class Messages {
101
114
  }
102
115
  });
103
116
  }
104
- _getAuthorizationHeader() {
117
+ _getCustomAuthorizationHeaders() {
105
118
  return __awaiter(this, void 0, void 0, function* () {
106
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
119
+ const tokenValue = yield core.Supplier.get(this._options.token);
120
+ return { Authorization: `Bearer ${tokenValue}` };
107
121
  });
108
122
  }
109
123
  }
@@ -7,7 +7,7 @@ import * as Letta from "../../../../../index";
7
7
  export declare namespace MemoryBlocks {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.LettaEnvironment | string>;
10
- token: core.Supplier<core.BearerToken>;
10
+ token?: core.Supplier<string | undefined>;
11
11
  fetcher?: core.FetchFunction;
12
12
  }
13
13
  interface RequestOptions {
@@ -23,7 +23,7 @@ export declare namespace MemoryBlocks {
23
23
  }
24
24
  export declare class MemoryBlocks {
25
25
  protected readonly _options: MemoryBlocks.Options;
26
- constructor(_options: MemoryBlocks.Options);
26
+ constructor(_options?: MemoryBlocks.Options);
27
27
  /**
28
28
  * Removes a memory block from an agent by unlnking it. If the block is not linked to any other agent, it is deleted.
29
29
  *
@@ -53,5 +53,7 @@ export declare class MemoryBlocks {
53
53
  * })
54
54
  */
55
55
  add(agentId: string, request: Letta.CreateBlock, requestOptions?: MemoryBlocks.RequestOptions): Promise<Letta.Memory>;
56
- protected _getAuthorizationHeader(): Promise<string>;
56
+ protected _getCustomAuthorizationHeaders(): Promise<{
57
+ Authorization: string;
58
+ }>;
57
59
  }