@letta-ai/letta-client 0.0.68657 → 0.0.68659

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 (548) hide show
  1. package/api/errors/InternalServerError.d.ts +8 -0
  2. package/api/errors/InternalServerError.js +52 -0
  3. package/api/errors/index.d.ts +1 -0
  4. package/api/errors/index.js +1 -0
  5. package/api/resources/agents/client/Client.js +9 -9
  6. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  7. package/api/resources/agents/resources/context/client/Client.js +1 -1
  8. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  9. package/api/resources/agents/resources/files/client/Client.js +4 -4
  10. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  11. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  12. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  13. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  14. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  15. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  16. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  17. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  18. package/api/resources/archives/client/Client.js +3 -3
  19. package/api/resources/batches/client/Client.js +4 -4
  20. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  21. package/api/resources/blocks/client/Client.js +6 -6
  22. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  23. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  24. package/api/resources/folders/client/Client.js +8 -8
  25. package/api/resources/folders/resources/agents/client/Client.js +1 -1
  26. package/api/resources/folders/resources/files/client/Client.js +3 -3
  27. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  28. package/api/resources/groups/client/Client.js +6 -6
  29. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  30. package/api/resources/health/client/Client.js +1 -1
  31. package/api/resources/identities/client/Client.js +7 -7
  32. package/api/resources/identities/resources/agents/client/Client.js +1 -1
  33. package/api/resources/identities/resources/blocks/client/Client.js +1 -1
  34. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  35. package/api/resources/jobs/client/Client.js +5 -5
  36. package/api/resources/models/client/Client.js +2 -2
  37. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  38. package/api/resources/projects/client/Client.js +1 -1
  39. package/api/resources/providers/client/Client.js +6 -6
  40. package/api/resources/runs/client/Client.js +5 -5
  41. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  42. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  43. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  44. package/api/resources/sources/client/Client.js +10 -10
  45. package/api/resources/sources/resources/files/client/Client.js +3 -3
  46. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  47. package/api/resources/steps/client/Client.d.ts +3 -0
  48. package/api/resources/steps/client/Client.js +7 -2
  49. package/api/resources/steps/index.d.ts +1 -1
  50. package/api/resources/steps/index.js +1 -1
  51. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  52. package/api/resources/steps/resources/index.d.ts +3 -0
  53. package/api/resources/steps/resources/index.js +4 -1
  54. package/api/resources/steps/resources/messages/client/Client.d.ts +50 -0
  55. package/api/resources/steps/resources/messages/client/Client.js +166 -0
  56. package/api/resources/steps/resources/messages/client/index.d.ts +1 -0
  57. package/api/resources/steps/resources/messages/client/index.js +17 -0
  58. package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
  59. package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.js +5 -0
  60. package/api/resources/steps/resources/messages/client/requests/index.d.ts +1 -0
  61. package/api/resources/steps/resources/messages/client/requests/index.js +2 -0
  62. package/api/resources/steps/resources/messages/index.d.ts +2 -0
  63. package/api/resources/steps/resources/messages/index.js +18 -0
  64. package/api/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  65. package/api/resources/steps/resources/messages/types/MessagesListRequestOrder.js +10 -0
  66. package/api/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +5 -0
  67. package/api/resources/steps/resources/messages/types/MessagesListResponseItem.js +5 -0
  68. package/api/resources/steps/resources/messages/types/index.d.ts +2 -0
  69. package/api/resources/steps/resources/messages/types/index.js +18 -0
  70. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  71. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  72. package/api/resources/tags/client/Client.js +1 -1
  73. package/api/resources/telemetry/client/Client.js +1 -1
  74. package/api/resources/templates/client/Client.d.ts +39 -0
  75. package/api/resources/templates/client/Client.js +174 -9
  76. package/api/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.d.ts +19 -0
  77. package/api/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.js +5 -0
  78. package/api/resources/templates/client/requests/index.d.ts +1 -0
  79. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  80. package/api/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +3 -0
  81. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroup.d.ts +24 -0
  82. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroup.js +5 -0
  83. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.d.ts +5 -0
  84. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.js +5 -0
  85. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.d.ts +4 -0
  86. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.js +5 -0
  87. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.d.ts +5 -0
  88. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.js +5 -0
  89. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.d.ts +4 -0
  90. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.js +5 -0
  91. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.d.ts +5 -0
  92. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.js +5 -0
  93. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.d.ts +4 -0
  94. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.js +5 -0
  95. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.d.ts +5 -0
  96. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.js +5 -0
  97. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.d.ts +4 -0
  98. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.js +5 -0
  99. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.d.ts +5 -0
  100. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.js +5 -0
  101. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.d.ts +4 -0
  102. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.js +5 -0
  103. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.d.ts +12 -0
  104. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.js +14 -0
  105. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.d.ts +5 -0
  106. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.js +5 -0
  107. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.d.ts +4 -0
  108. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.js +5 -0
  109. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.d.ts +5 -0
  110. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.js +5 -0
  111. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.d.ts +4 -0
  112. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.js +5 -0
  113. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.d.ts +5 -0
  114. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.js +5 -0
  115. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.d.ts +4 -0
  116. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.js +5 -0
  117. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.d.ts +5 -0
  118. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.js +5 -0
  119. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.d.ts +4 -0
  120. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.js +5 -0
  121. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.d.ts +4 -0
  122. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.js +5 -0
  123. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.d.ts +5 -0
  124. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.js +5 -0
  125. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.d.ts +4 -0
  126. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.js +5 -0
  127. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.d.ts +5 -0
  128. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.js +5 -0
  129. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.d.ts +4 -0
  130. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.js +5 -0
  131. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.d.ts +5 -0
  132. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.js +5 -0
  133. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.d.ts +4 -0
  134. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.js +5 -0
  135. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.d.ts +5 -0
  136. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.js +5 -0
  137. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.d.ts +4 -0
  138. package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.js +5 -0
  139. package/api/resources/templates/resources/agents/types/index.d.ts +29 -0
  140. package/api/resources/templates/resources/agents/types/index.js +29 -0
  141. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +1 -0
  142. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +1 -0
  143. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.d.ts +7 -0
  144. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.js +5 -0
  145. package/api/resources/templates/types/TemplatesMigrateDeploymentResponse.d.ts +7 -0
  146. package/api/resources/templates/types/TemplatesMigrateDeploymentResponse.js +5 -0
  147. package/api/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.d.ts +7 -0
  148. package/api/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.js +5 -0
  149. package/api/resources/templates/types/index.d.ts +3 -0
  150. package/api/resources/templates/types/index.js +3 -0
  151. package/api/resources/tools/client/Client.js +20 -20
  152. package/api/resources/voice/client/Client.js +1 -1
  153. package/api/types/ChildToolRule.d.ts +1 -1
  154. package/api/types/ConditionalToolRule.d.ts +1 -1
  155. package/api/types/ContinueToolRule.d.ts +1 -1
  156. package/api/types/InitToolRule.d.ts +1 -1
  157. package/api/types/InternalServerErrorBody.d.ts +6 -0
  158. package/api/types/InternalServerErrorBody.js +5 -0
  159. package/api/types/MaxCountPerStepToolRule.d.ts +1 -1
  160. package/api/types/Memory.d.ts +3 -1
  161. package/api/types/MemoryAgentType.d.ts +8 -0
  162. package/api/types/MemoryAgentType.js +5 -0
  163. package/api/types/ParentToolRule.d.ts +1 -1
  164. package/api/types/RequiredBeforeExitToolRule.d.ts +1 -1
  165. package/api/types/RequiresApprovalToolRule.d.ts +1 -1
  166. package/api/types/Step.d.ts +1 -1
  167. package/api/types/TerminalToolRule.d.ts +1 -1
  168. package/api/types/index.d.ts +2 -0
  169. package/api/types/index.js +2 -0
  170. package/dist/api/errors/InternalServerError.d.ts +8 -0
  171. package/dist/api/errors/InternalServerError.js +52 -0
  172. package/dist/api/errors/index.d.ts +1 -0
  173. package/dist/api/errors/index.js +1 -0
  174. package/dist/api/resources/agents/client/Client.js +9 -9
  175. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  176. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  177. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  178. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  179. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  180. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  181. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  182. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  183. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  184. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  185. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  186. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  187. package/dist/api/resources/archives/client/Client.js +3 -3
  188. package/dist/api/resources/batches/client/Client.js +4 -4
  189. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  190. package/dist/api/resources/blocks/client/Client.js +6 -6
  191. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  192. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  193. package/dist/api/resources/folders/client/Client.js +8 -8
  194. package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
  195. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  196. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  197. package/dist/api/resources/groups/client/Client.js +6 -6
  198. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  199. package/dist/api/resources/health/client/Client.js +1 -1
  200. package/dist/api/resources/identities/client/Client.js +7 -7
  201. package/dist/api/resources/identities/resources/agents/client/Client.js +1 -1
  202. package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
  203. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  204. package/dist/api/resources/jobs/client/Client.js +5 -5
  205. package/dist/api/resources/models/client/Client.js +2 -2
  206. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  207. package/dist/api/resources/projects/client/Client.js +1 -1
  208. package/dist/api/resources/providers/client/Client.js +6 -6
  209. package/dist/api/resources/runs/client/Client.js +5 -5
  210. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  211. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  212. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  213. package/dist/api/resources/sources/client/Client.js +10 -10
  214. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  215. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  216. package/dist/api/resources/steps/client/Client.d.ts +3 -0
  217. package/dist/api/resources/steps/client/Client.js +7 -2
  218. package/dist/api/resources/steps/index.d.ts +1 -1
  219. package/dist/api/resources/steps/index.js +1 -1
  220. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  221. package/dist/api/resources/steps/resources/index.d.ts +3 -0
  222. package/dist/api/resources/steps/resources/index.js +4 -1
  223. package/dist/api/resources/steps/resources/messages/client/Client.d.ts +50 -0
  224. package/dist/api/resources/steps/resources/messages/client/Client.js +166 -0
  225. package/dist/api/resources/steps/resources/messages/client/index.d.ts +1 -0
  226. package/dist/api/resources/steps/resources/messages/client/index.js +17 -0
  227. package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
  228. package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.js +5 -0
  229. package/dist/api/resources/steps/resources/messages/client/requests/index.d.ts +1 -0
  230. package/dist/api/resources/steps/resources/messages/client/requests/index.js +2 -0
  231. package/dist/api/resources/steps/resources/messages/index.d.ts +2 -0
  232. package/dist/api/resources/steps/resources/messages/index.js +18 -0
  233. package/dist/api/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  234. package/dist/api/resources/steps/resources/messages/types/MessagesListRequestOrder.js +10 -0
  235. package/dist/api/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +5 -0
  236. package/dist/api/resources/steps/resources/messages/types/MessagesListResponseItem.js +5 -0
  237. package/dist/api/resources/steps/resources/messages/types/index.d.ts +2 -0
  238. package/dist/api/resources/steps/resources/messages/types/index.js +18 -0
  239. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  240. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  241. package/dist/api/resources/tags/client/Client.js +1 -1
  242. package/dist/api/resources/telemetry/client/Client.js +1 -1
  243. package/dist/api/resources/templates/client/Client.d.ts +39 -0
  244. package/dist/api/resources/templates/client/Client.js +174 -9
  245. package/dist/api/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.d.ts +19 -0
  246. package/dist/api/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.js +5 -0
  247. package/dist/api/resources/templates/client/requests/index.d.ts +1 -0
  248. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  249. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +3 -0
  250. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroup.d.ts +24 -0
  251. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroup.js +5 -0
  252. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.d.ts +5 -0
  253. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.js +5 -0
  254. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.d.ts +4 -0
  255. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.js +5 -0
  256. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.d.ts +5 -0
  257. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.js +5 -0
  258. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.d.ts +4 -0
  259. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.js +5 -0
  260. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.d.ts +5 -0
  261. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.js +5 -0
  262. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.d.ts +4 -0
  263. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.js +5 -0
  264. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.d.ts +5 -0
  265. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.js +5 -0
  266. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.d.ts +4 -0
  267. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.js +5 -0
  268. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.d.ts +5 -0
  269. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.js +5 -0
  270. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.d.ts +4 -0
  271. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.js +5 -0
  272. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.d.ts +12 -0
  273. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.js +14 -0
  274. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.d.ts +5 -0
  275. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.js +5 -0
  276. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.d.ts +4 -0
  277. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.js +5 -0
  278. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.d.ts +5 -0
  279. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.js +5 -0
  280. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.d.ts +4 -0
  281. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.js +5 -0
  282. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.d.ts +5 -0
  283. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.js +5 -0
  284. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.d.ts +4 -0
  285. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.js +5 -0
  286. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.d.ts +5 -0
  287. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.js +5 -0
  288. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.d.ts +4 -0
  289. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.js +5 -0
  290. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.d.ts +4 -0
  291. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.js +5 -0
  292. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.d.ts +5 -0
  293. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.js +5 -0
  294. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.d.ts +4 -0
  295. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.js +5 -0
  296. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.d.ts +5 -0
  297. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.js +5 -0
  298. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.d.ts +4 -0
  299. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.js +5 -0
  300. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.d.ts +5 -0
  301. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.js +5 -0
  302. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.d.ts +4 -0
  303. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.js +5 -0
  304. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.d.ts +5 -0
  305. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.js +5 -0
  306. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.d.ts +4 -0
  307. package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.js +5 -0
  308. package/dist/api/resources/templates/resources/agents/types/index.d.ts +29 -0
  309. package/dist/api/resources/templates/resources/agents/types/index.js +29 -0
  310. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +1 -0
  311. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +1 -0
  312. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.d.ts +7 -0
  313. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.js +5 -0
  314. package/dist/api/resources/templates/types/TemplatesMigrateDeploymentResponse.d.ts +7 -0
  315. package/dist/api/resources/templates/types/TemplatesMigrateDeploymentResponse.js +5 -0
  316. package/dist/api/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.d.ts +7 -0
  317. package/dist/api/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.js +5 -0
  318. package/dist/api/resources/templates/types/index.d.ts +3 -0
  319. package/dist/api/resources/templates/types/index.js +3 -0
  320. package/dist/api/resources/tools/client/Client.js +20 -20
  321. package/dist/api/resources/voice/client/Client.js +1 -1
  322. package/dist/api/types/ChildToolRule.d.ts +1 -1
  323. package/dist/api/types/ConditionalToolRule.d.ts +1 -1
  324. package/dist/api/types/ContinueToolRule.d.ts +1 -1
  325. package/dist/api/types/InitToolRule.d.ts +1 -1
  326. package/dist/api/types/InternalServerErrorBody.d.ts +6 -0
  327. package/dist/api/types/InternalServerErrorBody.js +5 -0
  328. package/dist/api/types/MaxCountPerStepToolRule.d.ts +1 -1
  329. package/dist/api/types/Memory.d.ts +3 -1
  330. package/dist/api/types/MemoryAgentType.d.ts +8 -0
  331. package/dist/api/types/MemoryAgentType.js +5 -0
  332. package/dist/api/types/ParentToolRule.d.ts +1 -1
  333. package/dist/api/types/RequiredBeforeExitToolRule.d.ts +1 -1
  334. package/dist/api/types/RequiresApprovalToolRule.d.ts +1 -1
  335. package/dist/api/types/Step.d.ts +1 -1
  336. package/dist/api/types/TerminalToolRule.d.ts +1 -1
  337. package/dist/api/types/index.d.ts +2 -0
  338. package/dist/api/types/index.js +2 -0
  339. package/dist/serialization/resources/steps/index.d.ts +1 -1
  340. package/dist/serialization/resources/steps/index.js +1 -1
  341. package/dist/serialization/resources/steps/resources/index.d.ts +2 -0
  342. package/dist/serialization/resources/steps/resources/index.js +3 -1
  343. package/dist/serialization/resources/steps/resources/messages/client/index.d.ts +1 -0
  344. package/dist/serialization/resources/steps/resources/messages/client/index.js +37 -0
  345. package/dist/serialization/resources/steps/resources/messages/client/list.d.ts +11 -0
  346. package/dist/serialization/resources/steps/resources/messages/client/list.js +42 -0
  347. package/dist/serialization/resources/steps/resources/messages/index.d.ts +2 -0
  348. package/dist/serialization/resources/steps/resources/messages/index.js +18 -0
  349. package/dist/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  350. package/dist/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.js +41 -0
  351. package/dist/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +19 -0
  352. package/dist/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.js +60 -0
  353. package/dist/serialization/resources/steps/resources/messages/types/index.d.ts +2 -0
  354. package/dist/serialization/resources/steps/resources/messages/types/index.js +18 -0
  355. package/dist/serialization/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.d.ts +15 -0
  356. package/dist/serialization/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.js +46 -0
  357. package/dist/serialization/resources/templates/client/requests/index.d.ts +1 -0
  358. package/dist/serialization/resources/templates/client/requests/index.js +3 -1
  359. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +3 -0
  360. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.js +3 -0
  361. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroup.d.ts +44 -0
  362. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroup.js +75 -0
  363. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.d.ts +11 -0
  364. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.js +47 -0
  365. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.d.ts +10 -0
  366. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.js +41 -0
  367. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.d.ts +11 -0
  368. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.js +47 -0
  369. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.d.ts +10 -0
  370. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.js +41 -0
  371. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.d.ts +11 -0
  372. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.js +47 -0
  373. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.d.ts +10 -0
  374. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.js +41 -0
  375. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.d.ts +11 -0
  376. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.js +47 -0
  377. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.d.ts +10 -0
  378. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.js +41 -0
  379. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.d.ts +11 -0
  380. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.js +47 -0
  381. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.d.ts +10 -0
  382. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.js +41 -0
  383. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.d.ts +10 -0
  384. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.js +41 -0
  385. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.d.ts +11 -0
  386. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.js +47 -0
  387. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.d.ts +10 -0
  388. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.js +41 -0
  389. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.d.ts +11 -0
  390. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.js +47 -0
  391. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.d.ts +10 -0
  392. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.js +41 -0
  393. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.d.ts +11 -0
  394. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.js +47 -0
  395. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.d.ts +10 -0
  396. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.js +41 -0
  397. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.d.ts +11 -0
  398. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.js +47 -0
  399. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.d.ts +10 -0
  400. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.js +41 -0
  401. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.d.ts +10 -0
  402. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.js +44 -0
  403. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.d.ts +11 -0
  404. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.js +47 -0
  405. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.d.ts +10 -0
  406. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.js +41 -0
  407. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.d.ts +11 -0
  408. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.js +47 -0
  409. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.d.ts +10 -0
  410. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.js +41 -0
  411. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.d.ts +11 -0
  412. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.js +47 -0
  413. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.d.ts +10 -0
  414. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.js +41 -0
  415. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.d.ts +11 -0
  416. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.js +47 -0
  417. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.d.ts +10 -0
  418. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.js +41 -0
  419. package/dist/serialization/resources/templates/resources/agents/types/index.d.ts +29 -0
  420. package/dist/serialization/resources/templates/resources/agents/types/index.js +29 -0
  421. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +2 -0
  422. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +2 -0
  423. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +1 -0
  424. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +1 -0
  425. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.d.ts +13 -0
  426. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.js +44 -0
  427. package/dist/serialization/resources/templates/types/TemplatesMigrateDeploymentResponse.d.ts +13 -0
  428. package/dist/serialization/resources/templates/types/TemplatesMigrateDeploymentResponse.js +44 -0
  429. package/dist/serialization/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.d.ts +13 -0
  430. package/dist/serialization/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.js +44 -0
  431. package/dist/serialization/resources/templates/types/index.d.ts +3 -0
  432. package/dist/serialization/resources/templates/types/index.js +3 -0
  433. package/dist/serialization/types/InternalServerErrorBody.d.ts +12 -0
  434. package/dist/serialization/types/InternalServerErrorBody.js +43 -0
  435. package/dist/serialization/types/Memory.d.ts +2 -0
  436. package/dist/serialization/types/Memory.js +2 -0
  437. package/dist/serialization/types/MemoryAgentType.d.ts +11 -0
  438. package/dist/serialization/types/MemoryAgentType.js +42 -0
  439. package/dist/serialization/types/index.d.ts +2 -0
  440. package/dist/serialization/types/index.js +2 -0
  441. package/dist/version.d.ts +1 -1
  442. package/dist/version.js +1 -1
  443. package/package.json +1 -1
  444. package/reference.md +243 -0
  445. package/serialization/resources/steps/index.d.ts +1 -1
  446. package/serialization/resources/steps/index.js +1 -1
  447. package/serialization/resources/steps/resources/index.d.ts +2 -0
  448. package/serialization/resources/steps/resources/index.js +3 -1
  449. package/serialization/resources/steps/resources/messages/client/index.d.ts +1 -0
  450. package/serialization/resources/steps/resources/messages/client/index.js +37 -0
  451. package/serialization/resources/steps/resources/messages/client/list.d.ts +11 -0
  452. package/serialization/resources/steps/resources/messages/client/list.js +42 -0
  453. package/serialization/resources/steps/resources/messages/index.d.ts +2 -0
  454. package/serialization/resources/steps/resources/messages/index.js +18 -0
  455. package/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  456. package/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.js +41 -0
  457. package/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +19 -0
  458. package/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.js +60 -0
  459. package/serialization/resources/steps/resources/messages/types/index.d.ts +2 -0
  460. package/serialization/resources/steps/resources/messages/types/index.js +18 -0
  461. package/serialization/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.d.ts +15 -0
  462. package/serialization/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.js +46 -0
  463. package/serialization/resources/templates/client/requests/index.d.ts +1 -0
  464. package/serialization/resources/templates/client/requests/index.js +3 -1
  465. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +3 -0
  466. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.js +3 -0
  467. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroup.d.ts +44 -0
  468. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroup.js +75 -0
  469. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.d.ts +11 -0
  470. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.js +47 -0
  471. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.d.ts +10 -0
  472. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.js +41 -0
  473. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.d.ts +11 -0
  474. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.js +47 -0
  475. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.d.ts +10 -0
  476. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.js +41 -0
  477. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.d.ts +11 -0
  478. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.js +47 -0
  479. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.d.ts +10 -0
  480. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.js +41 -0
  481. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.d.ts +11 -0
  482. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.js +47 -0
  483. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.d.ts +10 -0
  484. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.js +41 -0
  485. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.d.ts +11 -0
  486. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.js +47 -0
  487. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.d.ts +10 -0
  488. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.js +41 -0
  489. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.d.ts +10 -0
  490. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.js +41 -0
  491. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.d.ts +11 -0
  492. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.js +47 -0
  493. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.d.ts +10 -0
  494. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.js +41 -0
  495. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.d.ts +11 -0
  496. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.js +47 -0
  497. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.d.ts +10 -0
  498. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.js +41 -0
  499. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.d.ts +11 -0
  500. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.js +47 -0
  501. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.d.ts +10 -0
  502. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.js +41 -0
  503. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.d.ts +11 -0
  504. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.js +47 -0
  505. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.d.ts +10 -0
  506. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.js +41 -0
  507. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.d.ts +10 -0
  508. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.js +44 -0
  509. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.d.ts +11 -0
  510. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.js +47 -0
  511. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.d.ts +10 -0
  512. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.js +41 -0
  513. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.d.ts +11 -0
  514. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.js +47 -0
  515. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.d.ts +10 -0
  516. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.js +41 -0
  517. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.d.ts +11 -0
  518. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.js +47 -0
  519. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.d.ts +10 -0
  520. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.js +41 -0
  521. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.d.ts +11 -0
  522. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.js +47 -0
  523. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.d.ts +10 -0
  524. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.js +41 -0
  525. package/serialization/resources/templates/resources/agents/types/index.d.ts +29 -0
  526. package/serialization/resources/templates/resources/agents/types/index.js +29 -0
  527. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +2 -0
  528. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +2 -0
  529. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +1 -0
  530. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +1 -0
  531. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.d.ts +13 -0
  532. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.js +44 -0
  533. package/serialization/resources/templates/types/TemplatesMigrateDeploymentResponse.d.ts +13 -0
  534. package/serialization/resources/templates/types/TemplatesMigrateDeploymentResponse.js +44 -0
  535. package/serialization/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.d.ts +13 -0
  536. package/serialization/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.js +44 -0
  537. package/serialization/resources/templates/types/index.d.ts +3 -0
  538. package/serialization/resources/templates/types/index.js +3 -0
  539. package/serialization/types/InternalServerErrorBody.d.ts +12 -0
  540. package/serialization/types/InternalServerErrorBody.js +43 -0
  541. package/serialization/types/Memory.d.ts +2 -0
  542. package/serialization/types/Memory.js +2 -0
  543. package/serialization/types/MemoryAgentType.d.ts +11 -0
  544. package/serialization/types/MemoryAgentType.js +42 -0
  545. package/serialization/types/index.d.ts +2 -0
  546. package/serialization/types/index.js +2 -0
  547. package/version.d.ts +1 -1
  548. package/version.js +1 -1
@@ -0,0 +1,50 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as Letta from "../../../../../index";
7
+ export declare namespace Messages {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<string | undefined>;
13
+ /** Override the X-Project header */
14
+ project?: core.Supplier<string | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Override the X-Project header */
25
+ project?: string | undefined;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string>;
28
+ }
29
+ }
30
+ export declare class Messages {
31
+ protected readonly _options: Messages.Options;
32
+ constructor(_options?: Messages.Options);
33
+ /**
34
+ * List messages for a given step.
35
+ *
36
+ * @param {string} stepId
37
+ * @param {Letta.steps.MessagesListRequest} request
38
+ * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Letta.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.steps.messages.list("step_id")
44
+ */
45
+ list(stepId: string, request?: Letta.steps.MessagesListRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Letta.steps.MessagesListResponseItem[]>;
46
+ private __list;
47
+ protected _getCustomAuthorizationHeaders(): Promise<{
48
+ Authorization: string;
49
+ }>;
50
+ }
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Messages = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const Letta = __importStar(require("../../../../../index"));
55
+ const serializers = __importStar(require("../../../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
+ const errors = __importStar(require("../../../../../../errors/index"));
58
+ class Messages {
59
+ constructor(_options = {}) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * List messages for a given step.
64
+ *
65
+ * @param {string} stepId
66
+ * @param {Letta.steps.MessagesListRequest} request
67
+ * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Letta.UnprocessableEntityError}
70
+ *
71
+ * @example
72
+ * await client.steps.messages.list("step_id")
73
+ */
74
+ list(stepId, request = {}, requestOptions) {
75
+ return core.HttpResponsePromise.fromPromise(this.__list(stepId, request, requestOptions));
76
+ }
77
+ __list(stepId_1) {
78
+ return __awaiter(this, arguments, void 0, function* (stepId, request = {}, requestOptions) {
79
+ var _a, _b, _c;
80
+ const { before, after, limit, order, orderBy } = request;
81
+ const _queryParams = {};
82
+ if (before != null) {
83
+ _queryParams["before"] = before;
84
+ }
85
+ if (after != null) {
86
+ _queryParams["after"] = after;
87
+ }
88
+ if (limit != null) {
89
+ _queryParams["limit"] = limit.toString();
90
+ }
91
+ if (order != null) {
92
+ _queryParams["order"] = serializers.steps.MessagesListRequestOrder.jsonOrThrow(order, {
93
+ unrecognizedObjectKeys: "strip",
94
+ });
95
+ }
96
+ if (orderBy != null) {
97
+ _queryParams["order_by"] = orderBy;
98
+ }
99
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
100
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}/messages`),
101
+ method: "GET",
102
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
103
+ ? yield core.Supplier.get(this._options.project)
104
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
105
+ contentType: "application/json",
106
+ queryParameters: _queryParams,
107
+ requestType: "json",
108
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
109
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
110
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
111
+ });
112
+ if (_response.ok) {
113
+ return {
114
+ data: serializers.steps.messages.list.Response.parseOrThrow(_response.body, {
115
+ unrecognizedObjectKeys: "passthrough",
116
+ allowUnrecognizedUnionMembers: true,
117
+ allowUnrecognizedEnumValues: true,
118
+ skipValidation: true,
119
+ breadcrumbsPrefix: ["response"],
120
+ }),
121
+ rawResponse: _response.rawResponse,
122
+ };
123
+ }
124
+ if (_response.error.reason === "status-code") {
125
+ switch (_response.error.statusCode) {
126
+ case 422:
127
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
128
+ unrecognizedObjectKeys: "passthrough",
129
+ allowUnrecognizedUnionMembers: true,
130
+ allowUnrecognizedEnumValues: true,
131
+ skipValidation: true,
132
+ breadcrumbsPrefix: ["response"],
133
+ }), _response.rawResponse);
134
+ default:
135
+ throw new errors.LettaError({
136
+ statusCode: _response.error.statusCode,
137
+ body: _response.error.body,
138
+ rawResponse: _response.rawResponse,
139
+ });
140
+ }
141
+ }
142
+ switch (_response.error.reason) {
143
+ case "non-json":
144
+ throw new errors.LettaError({
145
+ statusCode: _response.error.statusCode,
146
+ body: _response.error.rawBody,
147
+ rawResponse: _response.rawResponse,
148
+ });
149
+ case "timeout":
150
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/steps/{step_id}/messages.");
151
+ case "unknown":
152
+ throw new errors.LettaError({
153
+ message: _response.error.errorMessage,
154
+ rawResponse: _response.rawResponse,
155
+ });
156
+ }
157
+ });
158
+ }
159
+ _getCustomAuthorizationHeaders() {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ const tokenValue = yield core.Supplier.get(this._options.token);
162
+ return { Authorization: `Bearer ${tokenValue}` };
163
+ });
164
+ }
165
+ }
166
+ exports.Messages = Messages;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface MessagesListRequest {
10
+ /**
11
+ * Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
12
+ */
13
+ before?: string;
14
+ /**
15
+ * Message ID cursor for pagination. Returns messages that come after this message ID in the specified sort order
16
+ */
17
+ after?: string;
18
+ /**
19
+ * Maximum number of messages to return
20
+ */
21
+ limit?: number;
22
+ /**
23
+ * Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
24
+ */
25
+ order?: Letta.steps.MessagesListRequestOrder;
26
+ /**
27
+ * Sort by field
28
+ */
29
+ orderBy?: "created_at";
30
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type MessagesListRequest } from "./MessagesListRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
6
+ */
7
+ export type MessagesListRequestOrder = "asc" | "desc";
8
+ export declare const MessagesListRequestOrder: {
9
+ readonly Asc: "asc";
10
+ readonly Desc: "desc";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MessagesListRequestOrder = void 0;
7
+ exports.MessagesListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../../../index";
5
+ export type MessagesListResponseItem = Letta.SystemMessage | Letta.UserMessage | Letta.ReasoningMessage | Letta.HiddenReasoningMessage | Letta.ToolCallMessage | Letta.ToolReturnMessage | Letta.AssistantMessage | Letta.ApprovalRequestMessage | Letta.ApprovalResponseMessage;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./MessagesListRequestOrder";
2
+ export * from "./MessagesListResponseItem";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./MessagesListRequestOrder"), exports);
18
+ __exportStar(require("./MessagesListResponseItem"), exports);
@@ -81,7 +81,7 @@ class Metrics {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -79,7 +79,7 @@ class Trace {
79
79
  method: "GET",
80
80
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
81
81
  ? yield core.Supplier.get(this._options.project)
82
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
82
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -106,7 +106,7 @@ class Tags {
106
106
  method: "GET",
107
107
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
108
108
  ? yield core.Supplier.get(this._options.project)
109
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
109
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
110
110
  contentType: "application/json",
111
111
  queryParameters: _queryParams,
112
112
  requestType: "json",
@@ -83,7 +83,7 @@ class Telemetry {
83
83
  method: "GET",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
86
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -86,6 +86,25 @@ export declare class Templates {
86
86
  */
87
87
  gettemplatesnapshot(project: string, templateVersion: string, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<Letta.TemplatesGetTemplateSnapshotResponse>;
88
88
  private __gettemplatesnapshot;
89
+ /**
90
+ * Updates the current working version of a template from a snapshot
91
+ *
92
+ * @param {string} project - The project slug
93
+ * @param {string} templateVersion - The template name with :current version (e.g., my-template:current)
94
+ * @param {unknown} request
95
+ * @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
96
+ *
97
+ * @throws {@link Letta.BadRequestError}
98
+ * @throws {@link Letta.NotFoundError}
99
+ * @throws {@link Letta.InternalServerError}
100
+ *
101
+ * @example
102
+ * await client.templates.setcurrenttemplatefromsnapshot("project", "template_version", {
103
+ * "key": "value"
104
+ * })
105
+ */
106
+ setcurrenttemplatefromsnapshot(project: string, templateVersion: string, request?: unknown, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<Letta.TemplatesSetCurrentTemplateFromSnapshotResponse>;
107
+ private __setcurrenttemplatefromsnapshot;
89
108
  /**
90
109
  * Forks a template version into a new template
91
110
  *
@@ -168,6 +187,26 @@ export declare class Templates {
168
187
  */
169
188
  listtemplateversions(projectSlug: string, name: string, request?: Letta.TemplatesListTemplateVersionsRequest, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<Letta.TemplatesListTemplateVersionsResponse>;
170
189
  private __listtemplateversions;
190
+ /**
191
+ * Migrates a deployment to a specific template version
192
+ *
193
+ * @param {string} project - The project slug
194
+ * @param {string} templateName - The template name (without version)
195
+ * @param {string} deploymentId - The deployment ID to migrate
196
+ * @param {Letta.TemplatesMigrateDeploymentRequest} request
197
+ * @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
198
+ *
199
+ * @throws {@link Letta.BadRequestError}
200
+ * @throws {@link Letta.NotFoundError}
201
+ * @throws {@link Letta.InternalServerError}
202
+ *
203
+ * @example
204
+ * await client.templates.migratedeployment("project", "template_name", "deployment_id", {
205
+ * version: "version"
206
+ * })
207
+ */
208
+ migratedeployment(project: string, templateName: string, deploymentId: string, request: Letta.TemplatesMigrateDeploymentRequest, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<Letta.TemplatesMigrateDeploymentResponse>;
209
+ private __migratedeployment;
171
210
  protected _getCustomAuthorizationHeaders(): Promise<{
172
211
  Authorization: string;
173
212
  }>;