@letta-ai/letta-client 0.1.180 → 0.1.181

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 (464) hide show
  1. package/api/errors/index.d.ts +1 -2
  2. package/api/errors/index.js +1 -2
  3. package/api/resources/agents/client/Client.js +10 -10
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  7. package/api/resources/agents/resources/files/client/Client.js +3 -3
  8. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  9. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  10. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  11. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  12. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  13. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  14. package/api/resources/agents/resources/templates/client/Client.d.ts +14 -25
  15. package/api/resources/agents/resources/templates/client/Client.js +59 -131
  16. package/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -2
  17. package/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
  18. package/api/resources/agents/resources/templates/types/index.d.ts +0 -2
  19. package/api/resources/agents/resources/templates/types/index.js +0 -2
  20. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  21. package/api/resources/batches/client/Client.js +4 -4
  22. package/api/resources/blocks/client/Client.js +6 -6
  23. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  24. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  25. package/api/resources/embeddingModels/client/Client.js +1 -1
  26. package/api/resources/folders/client/Client.js +9 -9
  27. package/api/resources/folders/resources/files/client/Client.js +3 -3
  28. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  29. package/api/resources/groups/client/Client.js +6 -6
  30. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  31. package/api/resources/health/client/Client.js +1 -1
  32. package/api/resources/identities/client/Client.js +7 -7
  33. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  34. package/api/resources/jobs/client/Client.js +5 -5
  35. package/api/resources/messages/client/Client.js +1 -1
  36. package/api/resources/models/client/Client.js +1 -1
  37. package/api/resources/projects/client/Client.js +1 -1
  38. package/api/resources/providers/client/Client.js +6 -6
  39. package/api/resources/runs/client/Client.js +4 -4
  40. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  41. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  42. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  43. package/api/resources/sources/client/Client.js +10 -10
  44. package/api/resources/sources/resources/files/client/Client.js +3 -3
  45. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  46. package/api/resources/steps/client/Client.js +3 -3
  47. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  48. package/api/resources/tags/client/Client.js +1 -1
  49. package/api/resources/telemetry/client/Client.js +1 -1
  50. package/api/resources/templates/client/Client.d.ts +107 -0
  51. package/api/resources/templates/client/Client.js +540 -3
  52. package/api/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +15 -0
  53. package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts → api/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts} +1 -2
  54. package/api/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +11 -0
  55. package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +3 -0
  56. package/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +11 -0
  57. package/api/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +13 -0
  58. package/api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +17 -0
  59. package/api/resources/templates/client/requests/index.d.ts +6 -0
  60. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  61. package/api/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +15 -0
  62. package/api/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +6 -0
  63. package/api/resources/templates/types/TemplatesForkTemplateResponse.d.ts +15 -0
  64. package/api/resources/templates/types/TemplatesForkTemplateResponse.js +5 -0
  65. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +11 -0
  66. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +5 -0
  67. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +18 -0
  68. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +5 -0
  69. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +8 -0
  70. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +5 -0
  71. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +8 -0
  72. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +5 -0
  73. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +11 -0
  74. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +5 -0
  75. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +5 -0
  76. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +5 -0
  77. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +11 -0
  78. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +5 -0
  79. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +8 -0
  80. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +5 -0
  81. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +8 -0
  82. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +5 -0
  83. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  84. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  85. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +8 -0
  86. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +5 -0
  87. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +9 -0
  88. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +5 -0
  89. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +8 -0
  90. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +5 -0
  91. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +9 -0
  92. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +5 -0
  93. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +8 -0
  94. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +5 -0
  95. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +8 -0
  96. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +5 -0
  97. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +11 -0
  98. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +5 -0
  99. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +12 -0
  100. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +5 -0
  101. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +13 -0
  102. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js +15 -0
  103. package/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
  104. package/api/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +9 -0
  105. package/api/resources/templates/types/TemplatesListTemplateVersionsResponse.js +5 -0
  106. package/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +13 -0
  107. package/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js +5 -0
  108. package/api/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +6 -0
  109. package/api/resources/templates/types/TemplatesRenameTemplateResponse.js +5 -0
  110. package/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +15 -0
  111. package/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +5 -0
  112. package/api/resources/templates/types/index.d.ts +26 -0
  113. package/api/resources/templates/types/index.js +26 -0
  114. package/api/resources/tools/client/Client.js +20 -20
  115. package/api/resources/voice/client/Client.js +1 -1
  116. package/api/types/ConflictErrorBody.d.ts +1 -1
  117. package/api/types/NotFoundErrorBody.d.ts +1 -1
  118. package/api/types/index.d.ts +1 -3
  119. package/api/types/index.js +1 -3
  120. package/dist/api/errors/index.d.ts +1 -2
  121. package/dist/api/errors/index.js +1 -2
  122. package/dist/api/resources/agents/client/Client.js +10 -10
  123. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  124. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  125. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  126. package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
  127. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  128. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  129. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  130. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  131. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  132. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  133. package/dist/api/resources/agents/resources/templates/client/Client.d.ts +14 -25
  134. package/dist/api/resources/agents/resources/templates/client/Client.js +59 -131
  135. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -2
  136. package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
  137. package/dist/api/resources/agents/resources/templates/types/index.d.ts +0 -2
  138. package/dist/api/resources/agents/resources/templates/types/index.js +0 -2
  139. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  140. package/dist/api/resources/batches/client/Client.js +4 -4
  141. package/dist/api/resources/blocks/client/Client.js +6 -6
  142. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  143. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  144. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  145. package/dist/api/resources/folders/client/Client.js +9 -9
  146. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  147. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  148. package/dist/api/resources/groups/client/Client.js +6 -6
  149. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  150. package/dist/api/resources/health/client/Client.js +1 -1
  151. package/dist/api/resources/identities/client/Client.js +7 -7
  152. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  153. package/dist/api/resources/jobs/client/Client.js +5 -5
  154. package/dist/api/resources/messages/client/Client.js +1 -1
  155. package/dist/api/resources/models/client/Client.js +1 -1
  156. package/dist/api/resources/projects/client/Client.js +1 -1
  157. package/dist/api/resources/providers/client/Client.js +6 -6
  158. package/dist/api/resources/runs/client/Client.js +4 -4
  159. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  160. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  161. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  162. package/dist/api/resources/sources/client/Client.js +10 -10
  163. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  164. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  165. package/dist/api/resources/steps/client/Client.js +3 -3
  166. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  167. package/dist/api/resources/tags/client/Client.js +1 -1
  168. package/dist/api/resources/telemetry/client/Client.js +1 -1
  169. package/dist/api/resources/templates/client/Client.d.ts +107 -0
  170. package/dist/api/resources/templates/client/Client.js +540 -3
  171. package/dist/api/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +15 -0
  172. package/dist/api/resources/templates/client/requests/TemplatesCreateTemplateRequest.js +5 -0
  173. package/{api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts → dist/api/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts} +1 -2
  174. package/dist/api/resources/templates/client/requests/TemplatesDeleteTemplateRequest.js +5 -0
  175. package/dist/api/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +11 -0
  176. package/dist/api/resources/templates/client/requests/TemplatesForkTemplateRequest.js +5 -0
  177. package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +3 -0
  178. package/dist/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +11 -0
  179. package/dist/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.js +5 -0
  180. package/dist/api/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +13 -0
  181. package/dist/api/resources/templates/client/requests/TemplatesRenameTemplateRequest.js +5 -0
  182. package/dist/api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +17 -0
  183. package/dist/api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js +5 -0
  184. package/dist/api/resources/templates/client/requests/index.d.ts +6 -0
  185. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  186. package/dist/api/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +15 -0
  187. package/dist/api/resources/templates/types/TemplatesCreateTemplateResponse.js +5 -0
  188. package/dist/api/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +6 -0
  189. package/dist/api/resources/templates/types/TemplatesDeleteTemplateResponse.js +5 -0
  190. package/dist/api/resources/templates/types/TemplatesForkTemplateResponse.d.ts +15 -0
  191. package/dist/api/resources/templates/types/TemplatesForkTemplateResponse.js +5 -0
  192. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +11 -0
  193. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +5 -0
  194. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +18 -0
  195. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +5 -0
  196. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +8 -0
  197. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +5 -0
  198. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +8 -0
  199. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +5 -0
  200. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +11 -0
  201. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +5 -0
  202. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +5 -0
  203. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +5 -0
  204. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +11 -0
  205. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +5 -0
  206. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +8 -0
  207. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +5 -0
  208. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +8 -0
  209. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +5 -0
  210. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  211. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  212. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +8 -0
  213. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +5 -0
  214. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +9 -0
  215. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +5 -0
  216. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +8 -0
  217. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +5 -0
  218. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +9 -0
  219. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +5 -0
  220. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +8 -0
  221. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +5 -0
  222. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +8 -0
  223. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +5 -0
  224. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +11 -0
  225. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +5 -0
  226. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +12 -0
  227. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +5 -0
  228. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +13 -0
  229. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js +15 -0
  230. package/dist/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
  231. package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +9 -0
  232. package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponse.js +5 -0
  233. package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +13 -0
  234. package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js +5 -0
  235. package/dist/api/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +6 -0
  236. package/dist/api/resources/templates/types/TemplatesRenameTemplateResponse.js +5 -0
  237. package/dist/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +15 -0
  238. package/dist/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +5 -0
  239. package/dist/api/resources/templates/types/index.d.ts +26 -0
  240. package/dist/api/resources/templates/types/index.js +26 -0
  241. package/dist/api/resources/tools/client/Client.js +20 -20
  242. package/dist/api/resources/voice/client/Client.js +1 -1
  243. package/dist/api/types/ConflictErrorBody.d.ts +1 -1
  244. package/dist/api/types/NotFoundErrorBody.d.ts +1 -1
  245. package/dist/api/types/index.d.ts +1 -3
  246. package/dist/api/types/index.js +1 -3
  247. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -1
  248. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +0 -1
  249. package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
  250. package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +1 -5
  251. package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +0 -2
  252. package/dist/serialization/resources/agents/resources/templates/types/index.js +0 -2
  253. package/dist/serialization/resources/index.d.ts +1 -0
  254. package/dist/serialization/resources/index.js +1 -0
  255. package/dist/serialization/resources/templates/client/index.d.ts +1 -0
  256. package/dist/serialization/resources/templates/client/index.js +17 -0
  257. package/dist/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +13 -0
  258. package/dist/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.js +44 -0
  259. package/dist/serialization/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts +11 -0
  260. package/dist/serialization/resources/{agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js → templates/client/requests/TemplatesDeleteTemplateRequest.js} +3 -3
  261. package/dist/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +12 -0
  262. package/dist/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.js +43 -0
  263. package/dist/serialization/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +12 -0
  264. package/dist/serialization/{types/InternalServerErrorBody.js → resources/templates/client/requests/TemplatesRenameTemplateRequest.js} +4 -4
  265. package/dist/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +15 -0
  266. package/dist/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js +46 -0
  267. package/dist/serialization/resources/templates/client/requests/index.d.ts +5 -0
  268. package/dist/serialization/resources/templates/client/requests/index.js +13 -0
  269. package/dist/serialization/resources/templates/index.d.ts +1 -0
  270. package/dist/serialization/resources/templates/index.js +1 -0
  271. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +18 -0
  272. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateResponse.js +49 -0
  273. package/dist/serialization/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +12 -0
  274. package/dist/serialization/resources/{agents/resources/templates/client/requests/TemplatesCreateRequest.js → templates/types/TemplatesDeleteTemplateResponse.js} +4 -4
  275. package/dist/serialization/resources/templates/types/TemplatesForkTemplateResponse.d.ts +18 -0
  276. package/dist/serialization/resources/templates/types/TemplatesForkTemplateResponse.js +49 -0
  277. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +20 -0
  278. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +51 -0
  279. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +27 -0
  280. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +58 -0
  281. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +14 -0
  282. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +45 -0
  283. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +14 -0
  284. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +45 -0
  285. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +17 -0
  286. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +48 -0
  287. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +18 -0
  288. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +58 -0
  289. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +17 -0
  290. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +48 -0
  291. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +14 -0
  292. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +45 -0
  293. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +14 -0
  294. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +45 -0
  295. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  296. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  297. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +14 -0
  298. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +45 -0
  299. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +15 -0
  300. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +46 -0
  301. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +14 -0
  302. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +45 -0
  303. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +15 -0
  304. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +46 -0
  305. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +14 -0
  306. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +45 -0
  307. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +14 -0
  308. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +45 -0
  309. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +17 -0
  310. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +48 -0
  311. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +18 -0
  312. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +49 -0
  313. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +10 -0
  314. package/dist/serialization/{types/NotFoundErrorBodyMessage.js → resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js} +10 -5
  315. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +2 -0
  316. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +2 -0
  317. package/dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +15 -0
  318. package/dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.js +46 -0
  319. package/dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +15 -0
  320. package/{serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js} +6 -5
  321. package/dist/serialization/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +12 -0
  322. package/{serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js → dist/serialization/resources/templates/types/TemplatesRenameTemplateResponse.js} +4 -4
  323. package/dist/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +18 -0
  324. package/dist/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +49 -0
  325. package/dist/serialization/resources/templates/types/index.d.ts +26 -0
  326. package/dist/serialization/resources/templates/types/index.js +26 -0
  327. package/dist/serialization/types/ConflictErrorBody.d.ts +1 -1
  328. package/dist/serialization/types/ConflictErrorBody.js +1 -1
  329. package/dist/serialization/types/NotFoundErrorBody.d.ts +1 -1
  330. package/dist/serialization/types/NotFoundErrorBody.js +1 -1
  331. package/dist/serialization/types/index.d.ts +1 -3
  332. package/dist/serialization/types/index.js +1 -3
  333. package/dist/version.d.ts +1 -1
  334. package/dist/version.js +1 -1
  335. package/package.json +1 -1
  336. package/reference.md +555 -30
  337. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -1
  338. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +0 -1
  339. package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
  340. package/serialization/resources/agents/resources/templates/client/requests/index.js +1 -5
  341. package/serialization/resources/agents/resources/templates/types/index.d.ts +0 -2
  342. package/serialization/resources/agents/resources/templates/types/index.js +0 -2
  343. package/serialization/resources/index.d.ts +1 -0
  344. package/serialization/resources/index.js +1 -0
  345. package/serialization/resources/templates/client/index.d.ts +1 -0
  346. package/serialization/resources/templates/client/index.js +17 -0
  347. package/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +13 -0
  348. package/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.js +44 -0
  349. package/serialization/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts +11 -0
  350. package/serialization/resources/{agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js → templates/client/requests/TemplatesDeleteTemplateRequest.js} +3 -3
  351. package/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +12 -0
  352. package/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.js +43 -0
  353. package/serialization/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +12 -0
  354. package/{dist/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.js → serialization/resources/templates/client/requests/TemplatesRenameTemplateRequest.js} +4 -5
  355. package/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +15 -0
  356. package/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js +46 -0
  357. package/serialization/resources/templates/client/requests/index.d.ts +5 -0
  358. package/serialization/resources/templates/client/requests/index.js +13 -0
  359. package/serialization/resources/templates/index.d.ts +1 -0
  360. package/serialization/resources/templates/index.js +1 -0
  361. package/serialization/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +18 -0
  362. package/serialization/resources/templates/types/TemplatesCreateTemplateResponse.js +49 -0
  363. package/serialization/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +12 -0
  364. package/serialization/resources/templates/types/TemplatesDeleteTemplateResponse.js +43 -0
  365. package/serialization/resources/templates/types/TemplatesForkTemplateResponse.d.ts +18 -0
  366. package/serialization/resources/templates/types/TemplatesForkTemplateResponse.js +49 -0
  367. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +20 -0
  368. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +51 -0
  369. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +27 -0
  370. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +58 -0
  371. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +14 -0
  372. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +45 -0
  373. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +14 -0
  374. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +45 -0
  375. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +17 -0
  376. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +48 -0
  377. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +18 -0
  378. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +58 -0
  379. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +17 -0
  380. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +48 -0
  381. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +14 -0
  382. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +45 -0
  383. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +14 -0
  384. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +45 -0
  385. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  386. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  387. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +14 -0
  388. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +45 -0
  389. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +15 -0
  390. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +46 -0
  391. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +14 -0
  392. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +45 -0
  393. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +15 -0
  394. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +46 -0
  395. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +14 -0
  396. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +45 -0
  397. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +14 -0
  398. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +45 -0
  399. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +17 -0
  400. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +48 -0
  401. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +18 -0
  402. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +49 -0
  403. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +10 -0
  404. package/serialization/{types/NotFoundErrorBodyMessage.js → resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js} +10 -5
  405. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +2 -0
  406. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +2 -0
  407. package/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +15 -0
  408. package/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.js +46 -0
  409. package/serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +15 -0
  410. package/{dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js} +6 -5
  411. package/serialization/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +12 -0
  412. package/serialization/resources/templates/types/TemplatesRenameTemplateResponse.js +43 -0
  413. package/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +18 -0
  414. package/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +49 -0
  415. package/serialization/resources/templates/types/index.d.ts +26 -0
  416. package/serialization/resources/templates/types/index.js +26 -0
  417. package/serialization/types/ConflictErrorBody.d.ts +1 -1
  418. package/serialization/types/ConflictErrorBody.js +1 -1
  419. package/serialization/types/NotFoundErrorBody.d.ts +1 -1
  420. package/serialization/types/NotFoundErrorBody.js +1 -1
  421. package/serialization/types/index.d.ts +1 -3
  422. package/serialization/types/index.js +1 -3
  423. package/version.d.ts +1 -1
  424. package/version.js +1 -1
  425. package/api/errors/InternalServerError.d.ts +0 -8
  426. package/api/errors/InternalServerError.js +0 -52
  427. package/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -15
  428. package/api/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -7
  429. package/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -7
  430. package/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js +0 -9
  431. package/api/types/InternalServerErrorBody.d.ts +0 -6
  432. package/api/types/NotFoundErrorBodyMessage.d.ts +0 -8
  433. package/api/types/NotFoundErrorBodyMessage.js +0 -10
  434. package/dist/api/errors/InternalServerError.d.ts +0 -8
  435. package/dist/api/errors/InternalServerError.js +0 -52
  436. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -15
  437. package/dist/api/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -7
  438. package/dist/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -7
  439. package/dist/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js +0 -9
  440. package/dist/api/types/InternalServerErrorBody.d.ts +0 -6
  441. package/dist/api/types/NotFoundErrorBodyMessage.d.ts +0 -8
  442. package/dist/api/types/NotFoundErrorBodyMessage.js +0 -10
  443. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +0 -12
  444. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -14
  445. package/dist/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -13
  446. package/dist/serialization/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -10
  447. package/dist/serialization/types/InternalServerErrorBody.d.ts +0 -12
  448. package/dist/serialization/types/NotFoundErrorBodyMessage.d.ts +0 -10
  449. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +0 -12
  450. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -14
  451. package/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -13
  452. package/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.js +0 -44
  453. package/serialization/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -10
  454. package/serialization/types/InternalServerErrorBody.d.ts +0 -12
  455. package/serialization/types/InternalServerErrorBody.js +0 -43
  456. package/serialization/types/NotFoundErrorBodyMessage.d.ts +0 -10
  457. /package/api/resources/{agents/resources/templates/client/requests/TemplatesCreateRequest.js → templates/client/requests/TemplatesCreateTemplateRequest.js} +0 -0
  458. /package/api/resources/{agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → templates/client/requests/TemplatesDeleteTemplateRequest.js} +0 -0
  459. /package/api/resources/{agents/resources/templates/types/TemplatesCreateResponse.js → templates/client/requests/TemplatesForkTemplateRequest.js} +0 -0
  460. /package/api/{types/InternalServerErrorBody.js → resources/templates/client/requests/TemplatesListTemplateVersionsRequest.js} +0 -0
  461. /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js → api/resources/templates/client/requests/TemplatesRenameTemplateRequest.js} +0 -0
  462. /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js} +0 -0
  463. /package/{dist/api/resources/agents/resources/templates/types/TemplatesCreateResponse.js → api/resources/templates/types/TemplatesCreateTemplateResponse.js} +0 -0
  464. /package/{dist/api/types/InternalServerErrorBody.js → api/resources/templates/types/TemplatesDeleteTemplateResponse.js} +0 -0
package/reference.md CHANGED
@@ -6158,6 +6158,547 @@ await client.templates.list();
6158
6158
  </dl>
6159
6159
  </details>
6160
6160
 
6161
+ <details><summary><code>client.templates.<a href="/src/api/resources/templates/client/Client.ts">savetemplateversion</a>(project, templateName, { ...params }) -> Letta.TemplatesSaveTemplateVersionResponse</code></summary>
6162
+ <dl>
6163
+ <dd>
6164
+
6165
+ #### 📝 Description
6166
+
6167
+ <dl>
6168
+ <dd>
6169
+
6170
+ <dl>
6171
+ <dd>
6172
+
6173
+ Saves the current version of the template as a new version
6174
+
6175
+ </dd>
6176
+ </dl>
6177
+ </dd>
6178
+ </dl>
6179
+
6180
+ #### 🔌 Usage
6181
+
6182
+ <dl>
6183
+ <dd>
6184
+
6185
+ <dl>
6186
+ <dd>
6187
+
6188
+ ```typescript
6189
+ await client.templates.savetemplateversion("project", "template_name");
6190
+ ```
6191
+
6192
+ </dd>
6193
+ </dl>
6194
+ </dd>
6195
+ </dl>
6196
+
6197
+ #### ⚙️ Parameters
6198
+
6199
+ <dl>
6200
+ <dd>
6201
+
6202
+ <dl>
6203
+ <dd>
6204
+
6205
+ **project:** `string` — The project slug
6206
+
6207
+ </dd>
6208
+ </dl>
6209
+
6210
+ <dl>
6211
+ <dd>
6212
+
6213
+ **templateName:** `string` — The template version, formatted as {template-name}, any version appended will be ignored
6214
+
6215
+ </dd>
6216
+ </dl>
6217
+
6218
+ <dl>
6219
+ <dd>
6220
+
6221
+ **request:** `Letta.TemplatesSaveTemplateVersionRequest`
6222
+
6223
+ </dd>
6224
+ </dl>
6225
+
6226
+ <dl>
6227
+ <dd>
6228
+
6229
+ **requestOptions:** `Templates.RequestOptions`
6230
+
6231
+ </dd>
6232
+ </dl>
6233
+ </dd>
6234
+ </dl>
6235
+
6236
+ </dd>
6237
+ </dl>
6238
+ </details>
6239
+
6240
+ <details><summary><code>client.templates.<a href="/src/api/resources/templates/client/Client.ts">deletetemplate</a>(project, templateName, { ...params }) -> Letta.TemplatesDeleteTemplateResponse</code></summary>
6241
+ <dl>
6242
+ <dd>
6243
+
6244
+ #### 📝 Description
6245
+
6246
+ <dl>
6247
+ <dd>
6248
+
6249
+ <dl>
6250
+ <dd>
6251
+
6252
+ Deletes all versions of a template with the specified name
6253
+
6254
+ </dd>
6255
+ </dl>
6256
+ </dd>
6257
+ </dl>
6258
+
6259
+ #### 🔌 Usage
6260
+
6261
+ <dl>
6262
+ <dd>
6263
+
6264
+ <dl>
6265
+ <dd>
6266
+
6267
+ ```typescript
6268
+ await client.templates.deletetemplate("project", "template_name");
6269
+ ```
6270
+
6271
+ </dd>
6272
+ </dl>
6273
+ </dd>
6274
+ </dl>
6275
+
6276
+ #### ⚙️ Parameters
6277
+
6278
+ <dl>
6279
+ <dd>
6280
+
6281
+ <dl>
6282
+ <dd>
6283
+
6284
+ **project:** `string` — The project slug
6285
+
6286
+ </dd>
6287
+ </dl>
6288
+
6289
+ <dl>
6290
+ <dd>
6291
+
6292
+ **templateName:** `string` — The template name (without version)
6293
+
6294
+ </dd>
6295
+ </dl>
6296
+
6297
+ <dl>
6298
+ <dd>
6299
+
6300
+ **request:** `Letta.TemplatesDeleteTemplateRequest`
6301
+
6302
+ </dd>
6303
+ </dl>
6304
+
6305
+ <dl>
6306
+ <dd>
6307
+
6308
+ **requestOptions:** `Templates.RequestOptions`
6309
+
6310
+ </dd>
6311
+ </dl>
6312
+ </dd>
6313
+ </dl>
6314
+
6315
+ </dd>
6316
+ </dl>
6317
+ </details>
6318
+
6319
+ <details><summary><code>client.templates.<a href="/src/api/resources/templates/client/Client.ts">gettemplatesnapshot</a>(project, templateVersion) -> Letta.TemplatesGetTemplateSnapshotResponse</code></summary>
6320
+ <dl>
6321
+ <dd>
6322
+
6323
+ #### 📝 Description
6324
+
6325
+ <dl>
6326
+ <dd>
6327
+
6328
+ <dl>
6329
+ <dd>
6330
+
6331
+ Get a snapshot of the template version, this will return the template state at a specific version
6332
+
6333
+ </dd>
6334
+ </dl>
6335
+ </dd>
6336
+ </dl>
6337
+
6338
+ #### 🔌 Usage
6339
+
6340
+ <dl>
6341
+ <dd>
6342
+
6343
+ <dl>
6344
+ <dd>
6345
+
6346
+ ```typescript
6347
+ await client.templates.gettemplatesnapshot("project", "template_version");
6348
+ ```
6349
+
6350
+ </dd>
6351
+ </dl>
6352
+ </dd>
6353
+ </dl>
6354
+
6355
+ #### ⚙️ Parameters
6356
+
6357
+ <dl>
6358
+ <dd>
6359
+
6360
+ <dl>
6361
+ <dd>
6362
+
6363
+ **project:** `string` — The project slug
6364
+
6365
+ </dd>
6366
+ </dl>
6367
+
6368
+ <dl>
6369
+ <dd>
6370
+
6371
+ **templateVersion:** `string` — The template version, formatted as {template-name}:{version-number} or {template-name}:latest
6372
+
6373
+ </dd>
6374
+ </dl>
6375
+
6376
+ <dl>
6377
+ <dd>
6378
+
6379
+ **requestOptions:** `Templates.RequestOptions`
6380
+
6381
+ </dd>
6382
+ </dl>
6383
+ </dd>
6384
+ </dl>
6385
+
6386
+ </dd>
6387
+ </dl>
6388
+ </details>
6389
+
6390
+ <details><summary><code>client.templates.<a href="/src/api/resources/templates/client/Client.ts">forktemplate</a>(project, templateVersion, { ...params }) -> Letta.TemplatesForkTemplateResponse</code></summary>
6391
+ <dl>
6392
+ <dd>
6393
+
6394
+ #### 📝 Description
6395
+
6396
+ <dl>
6397
+ <dd>
6398
+
6399
+ <dl>
6400
+ <dd>
6401
+
6402
+ Forks a template version into a new template
6403
+
6404
+ </dd>
6405
+ </dl>
6406
+ </dd>
6407
+ </dl>
6408
+
6409
+ #### 🔌 Usage
6410
+
6411
+ <dl>
6412
+ <dd>
6413
+
6414
+ <dl>
6415
+ <dd>
6416
+
6417
+ ```typescript
6418
+ await client.templates.forktemplate("project", "template_version");
6419
+ ```
6420
+
6421
+ </dd>
6422
+ </dl>
6423
+ </dd>
6424
+ </dl>
6425
+
6426
+ #### ⚙️ Parameters
6427
+
6428
+ <dl>
6429
+ <dd>
6430
+
6431
+ <dl>
6432
+ <dd>
6433
+
6434
+ **project:** `string` — The project slug
6435
+
6436
+ </dd>
6437
+ </dl>
6438
+
6439
+ <dl>
6440
+ <dd>
6441
+
6442
+ **templateVersion:** `string` — The template version, formatted as {template-name}:{version-number} or {template-name}:latest
6443
+
6444
+ </dd>
6445
+ </dl>
6446
+
6447
+ <dl>
6448
+ <dd>
6449
+
6450
+ **request:** `Letta.TemplatesForkTemplateRequest`
6451
+
6452
+ </dd>
6453
+ </dl>
6454
+
6455
+ <dl>
6456
+ <dd>
6457
+
6458
+ **requestOptions:** `Templates.RequestOptions`
6459
+
6460
+ </dd>
6461
+ </dl>
6462
+ </dd>
6463
+ </dl>
6464
+
6465
+ </dd>
6466
+ </dl>
6467
+ </details>
6468
+
6469
+ <details><summary><code>client.templates.<a href="/src/api/resources/templates/client/Client.ts">createtemplate</a>(project, { ...params }) -> Letta.TemplatesCreateTemplateResponse</code></summary>
6470
+ <dl>
6471
+ <dd>
6472
+
6473
+ #### 📝 Description
6474
+
6475
+ <dl>
6476
+ <dd>
6477
+
6478
+ <dl>
6479
+ <dd>
6480
+
6481
+ Creates a new template from an existing agent
6482
+
6483
+ </dd>
6484
+ </dl>
6485
+ </dd>
6486
+ </dl>
6487
+
6488
+ #### 🔌 Usage
6489
+
6490
+ <dl>
6491
+ <dd>
6492
+
6493
+ <dl>
6494
+ <dd>
6495
+
6496
+ ```typescript
6497
+ await client.templates.createtemplate("project", {
6498
+ agentId: "agent_id",
6499
+ });
6500
+ ```
6501
+
6502
+ </dd>
6503
+ </dl>
6504
+ </dd>
6505
+ </dl>
6506
+
6507
+ #### ⚙️ Parameters
6508
+
6509
+ <dl>
6510
+ <dd>
6511
+
6512
+ <dl>
6513
+ <dd>
6514
+
6515
+ **project:** `string` — The project slug
6516
+
6517
+ </dd>
6518
+ </dl>
6519
+
6520
+ <dl>
6521
+ <dd>
6522
+
6523
+ **request:** `Letta.TemplatesCreateTemplateRequest`
6524
+
6525
+ </dd>
6526
+ </dl>
6527
+
6528
+ <dl>
6529
+ <dd>
6530
+
6531
+ **requestOptions:** `Templates.RequestOptions`
6532
+
6533
+ </dd>
6534
+ </dl>
6535
+ </dd>
6536
+ </dl>
6537
+
6538
+ </dd>
6539
+ </dl>
6540
+ </details>
6541
+
6542
+ <details><summary><code>client.templates.<a href="/src/api/resources/templates/client/Client.ts">renametemplate</a>(project, templateName, { ...params }) -> Letta.TemplatesRenameTemplateResponse</code></summary>
6543
+ <dl>
6544
+ <dd>
6545
+
6546
+ #### 📝 Description
6547
+
6548
+ <dl>
6549
+ <dd>
6550
+
6551
+ <dl>
6552
+ <dd>
6553
+
6554
+ Renames all versions of a template with the specified name. Versions are automatically stripped from the current template name if accidentally included.
6555
+
6556
+ </dd>
6557
+ </dl>
6558
+ </dd>
6559
+ </dl>
6560
+
6561
+ #### 🔌 Usage
6562
+
6563
+ <dl>
6564
+ <dd>
6565
+
6566
+ <dl>
6567
+ <dd>
6568
+
6569
+ ```typescript
6570
+ await client.templates.renametemplate("project", "template_name", {
6571
+ newName: "new_name",
6572
+ });
6573
+ ```
6574
+
6575
+ </dd>
6576
+ </dl>
6577
+ </dd>
6578
+ </dl>
6579
+
6580
+ #### ⚙️ Parameters
6581
+
6582
+ <dl>
6583
+ <dd>
6584
+
6585
+ <dl>
6586
+ <dd>
6587
+
6588
+ **project:** `string` — The project slug
6589
+
6590
+ </dd>
6591
+ </dl>
6592
+
6593
+ <dl>
6594
+ <dd>
6595
+
6596
+ **templateName:** `string` — The current template name (version will be automatically stripped if included)
6597
+
6598
+ </dd>
6599
+ </dl>
6600
+
6601
+ <dl>
6602
+ <dd>
6603
+
6604
+ **request:** `Letta.TemplatesRenameTemplateRequest`
6605
+
6606
+ </dd>
6607
+ </dl>
6608
+
6609
+ <dl>
6610
+ <dd>
6611
+
6612
+ **requestOptions:** `Templates.RequestOptions`
6613
+
6614
+ </dd>
6615
+ </dl>
6616
+ </dd>
6617
+ </dl>
6618
+
6619
+ </dd>
6620
+ </dl>
6621
+ </details>
6622
+
6623
+ <details><summary><code>client.templates.<a href="/src/api/resources/templates/client/Client.ts">listtemplateversions</a>(projectSlug, name, { ...params }) -> Letta.TemplatesListTemplateVersionsResponse</code></summary>
6624
+ <dl>
6625
+ <dd>
6626
+
6627
+ #### 📝 Description
6628
+
6629
+ <dl>
6630
+ <dd>
6631
+
6632
+ <dl>
6633
+ <dd>
6634
+
6635
+ List all versions of a specific template
6636
+
6637
+ </dd>
6638
+ </dl>
6639
+ </dd>
6640
+ </dl>
6641
+
6642
+ #### 🔌 Usage
6643
+
6644
+ <dl>
6645
+ <dd>
6646
+
6647
+ <dl>
6648
+ <dd>
6649
+
6650
+ ```typescript
6651
+ await client.templates.listtemplateversions("project_slug", "name");
6652
+ ```
6653
+
6654
+ </dd>
6655
+ </dl>
6656
+ </dd>
6657
+ </dl>
6658
+
6659
+ #### ⚙️ Parameters
6660
+
6661
+ <dl>
6662
+ <dd>
6663
+
6664
+ <dl>
6665
+ <dd>
6666
+
6667
+ **projectSlug:** `string` — The project slug
6668
+
6669
+ </dd>
6670
+ </dl>
6671
+
6672
+ <dl>
6673
+ <dd>
6674
+
6675
+ **name:** `string` — The template name (without version)
6676
+
6677
+ </dd>
6678
+ </dl>
6679
+
6680
+ <dl>
6681
+ <dd>
6682
+
6683
+ **request:** `Letta.TemplatesListTemplateVersionsRequest`
6684
+
6685
+ </dd>
6686
+ </dl>
6687
+
6688
+ <dl>
6689
+ <dd>
6690
+
6691
+ **requestOptions:** `Templates.RequestOptions`
6692
+
6693
+ </dd>
6694
+ </dl>
6695
+ </dd>
6696
+ </dl>
6697
+
6698
+ </dd>
6699
+ </dl>
6700
+ </details>
6701
+
6161
6702
  ## ClientSideAccessTokens
6162
6703
 
6163
6704
  <details><summary><code>client.clientSideAccessTokens.<a href="/src/api/resources/clientSideAccessTokens/client/Client.ts">clientSideAccessTokensListClientSideAccessTokens</a>({ ...params }) -> Letta.ClientSideAccessTokensListClientSideAccessTokensResponse</code></summary>
@@ -8776,7 +9317,7 @@ await client.agents.groups.list("agent_id");
8776
9317
 
8777
9318
  ## Agents Templates
8778
9319
 
8779
- <details><summary><code>client.agents.templates.<a href="/src/api/resources/agents/resources/templates/client/Client.ts">createVersion</a>(agentId, { ...params }) -> void</code></summary>
9320
+ <details><summary><code>client.agents.templates.<a href="/src/api/resources/agents/resources/templates/client/Client.ts">migrate</a>(agentId, { ...params }) -> Letta.TemplatesMigrateResponse</code></summary>
8780
9321
  <dl>
8781
9322
  <dd>
8782
9323
 
@@ -8790,7 +9331,7 @@ await client.agents.groups.list("agent_id");
8790
9331
 
8791
9332
  <Note>This endpoint is only available on Letta Cloud.</Note>
8792
9333
 
8793
- Creates a new version of the template version of the agent.
9334
+ Migrate an agent to a new versioned agent template.
8794
9335
 
8795
9336
  </dd>
8796
9337
  </dl>
@@ -8806,7 +9347,10 @@ Creates a new version of the template version of the agent.
8806
9347
  <dd>
8807
9348
 
8808
9349
  ```typescript
8809
- await client.agents.templates.createVersion("agent_id");
9350
+ await client.agents.templates.migrate("agent_id", {
9351
+ toTemplate: "to_template",
9352
+ preserveCoreMemories: true,
9353
+ });
8810
9354
  ```
8811
9355
 
8812
9356
  </dd>
@@ -8822,7 +9366,7 @@ await client.agents.templates.createVersion("agent_id");
8822
9366
  <dl>
8823
9367
  <dd>
8824
9368
 
8825
- **agentId:** `string` — The agent ID of the agent to migrate, if this agent is not a template, it will create a agent template from the agent provided as well
9369
+ **agentId:** `string`
8826
9370
 
8827
9371
  </dd>
8828
9372
  </dl>
@@ -8830,7 +9374,7 @@ await client.agents.templates.createVersion("agent_id");
8830
9374
  <dl>
8831
9375
  <dd>
8832
9376
 
8833
- **request:** `Letta.agents.TemplatesCreateVersionRequest`
9377
+ **request:** `Letta.agents.TemplatesMigrateRequest`
8834
9378
 
8835
9379
  </dd>
8836
9380
  </dl>
@@ -8849,7 +9393,7 @@ await client.agents.templates.createVersion("agent_id");
8849
9393
  </dl>
8850
9394
  </details>
8851
9395
 
8852
- <details><summary><code>client.agents.templates.<a href="/src/api/resources/agents/resources/templates/client/Client.ts">migrate</a>(agentId, { ...params }) -> Letta.TemplatesMigrateResponse</code></summary>
9396
+ <details><summary><code>client.agents.templates.<a href="/src/api/resources/agents/resources/templates/client/Client.ts">create</a>(agentId) -> void</code></summary>
8853
9397
  <dl>
8854
9398
  <dd>
8855
9399
 
@@ -8863,7 +9407,7 @@ await client.agents.templates.createVersion("agent_id");
8863
9407
 
8864
9408
  <Note>This endpoint is only available on Letta Cloud.</Note>
8865
9409
 
8866
- Migrate an agent to a new versioned agent template.
9410
+ Creates a template from an agent.
8867
9411
 
8868
9412
  </dd>
8869
9413
  </dl>
@@ -8879,10 +9423,7 @@ Migrate an agent to a new versioned agent template.
8879
9423
  <dd>
8880
9424
 
8881
9425
  ```typescript
8882
- await client.agents.templates.migrate("agent_id", {
8883
- toTemplate: "to_template",
8884
- preserveCoreMemories: true,
8885
- });
9426
+ await client.agents.templates.create("agent_id");
8886
9427
  ```
8887
9428
 
8888
9429
  </dd>
@@ -8906,14 +9447,6 @@ await client.agents.templates.migrate("agent_id", {
8906
9447
  <dl>
8907
9448
  <dd>
8908
9449
 
8909
- **request:** `Letta.agents.TemplatesMigrateRequest`
8910
-
8911
- </dd>
8912
- </dl>
8913
-
8914
- <dl>
8915
- <dd>
8916
-
8917
9450
  **requestOptions:** `Templates.RequestOptions`
8918
9451
 
8919
9452
  </dd>
@@ -8925,7 +9458,7 @@ await client.agents.templates.migrate("agent_id", {
8925
9458
  </dl>
8926
9459
  </details>
8927
9460
 
8928
- <details><summary><code>client.agents.templates.<a href="/src/api/resources/agents/resources/templates/client/Client.ts">create</a>(agentId, { ...params }) -> Letta.TemplatesCreateResponse</code></summary>
9461
+ <details><summary><code>client.agents.templates.<a href="/src/api/resources/agents/resources/templates/client/Client.ts">createVersion</a>(agentId) -> void</code></summary>
8929
9462
  <dl>
8930
9463
  <dd>
8931
9464
 
@@ -8939,7 +9472,7 @@ await client.agents.templates.migrate("agent_id", {
8939
9472
 
8940
9473
  <Note>This endpoint is only available on Letta Cloud.</Note>
8941
9474
 
8942
- Creates a template from an agent.
9475
+ Creates a new version of the template version of the agent.
8943
9476
 
8944
9477
  </dd>
8945
9478
  </dl>
@@ -8955,7 +9488,7 @@ Creates a template from an agent.
8955
9488
  <dd>
8956
9489
 
8957
9490
  ```typescript
8958
- await client.agents.templates.create("agent_id");
9491
+ await client.agents.templates.createVersion("agent_id");
8959
9492
  ```
8960
9493
 
8961
9494
  </dd>
@@ -8979,14 +9512,6 @@ await client.agents.templates.create("agent_id");
8979
9512
  <dl>
8980
9513
  <dd>
8981
9514
 
8982
- **request:** `Letta.agents.TemplatesCreateRequest`
8983
-
8984
- </dd>
8985
- </dl>
8986
-
8987
- <dl>
8988
- <dd>
8989
-
8990
9515
  **requestOptions:** `Templates.RequestOptions`
8991
9516
 
8992
9517
  </dd>
@@ -8,7 +8,6 @@ export declare const TemplatesMigrateRequest: core.serialization.Schema<serializ
8
8
  export declare namespace TemplatesMigrateRequest {
9
9
  interface Raw {
10
10
  to_template: string;
11
- variables?: Record<string, string> | null;
12
11
  preserve_core_memories: boolean;
13
12
  preserve_tool_variables?: boolean | null;
14
13
  }
@@ -40,7 +40,6 @@ exports.TemplatesMigrateRequest = void 0;
40
40
  const core = __importStar(require("../../../../../../../core"));
41
41
  exports.TemplatesMigrateRequest = core.serialization.object({
42
42
  toTemplate: core.serialization.property("to_template", core.serialization.string()),
43
- variables: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
44
43
  preserveCoreMemories: core.serialization.property("preserve_core_memories", core.serialization.boolean()),
45
44
  preserveToolVariables: core.serialization.property("preserve_tool_variables", core.serialization.boolean().optional()),
46
45
  });
@@ -1,3 +1 @@
1
- export { TemplatesCreateVersionRequest } from "./TemplatesCreateVersionRequest";
2
1
  export { TemplatesMigrateRequest } from "./TemplatesMigrateRequest";
3
- export { TemplatesCreateRequest } from "./TemplatesCreateRequest";
@@ -1,9 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TemplatesCreateRequest = exports.TemplatesMigrateRequest = exports.TemplatesCreateVersionRequest = void 0;
4
- var TemplatesCreateVersionRequest_1 = require("./TemplatesCreateVersionRequest");
5
- Object.defineProperty(exports, "TemplatesCreateVersionRequest", { enumerable: true, get: function () { return TemplatesCreateVersionRequest_1.TemplatesCreateVersionRequest; } });
3
+ exports.TemplatesMigrateRequest = void 0;
6
4
  var TemplatesMigrateRequest_1 = require("./TemplatesMigrateRequest");
7
5
  Object.defineProperty(exports, "TemplatesMigrateRequest", { enumerable: true, get: function () { return TemplatesMigrateRequest_1.TemplatesMigrateRequest; } });
8
- var TemplatesCreateRequest_1 = require("./TemplatesCreateRequest");
9
- Object.defineProperty(exports, "TemplatesCreateRequest", { enumerable: true, get: function () { return TemplatesCreateRequest_1.TemplatesCreateRequest; } });
@@ -1,3 +1 @@
1
- export * from "./TemplatesCreateVersionRequestReturnAgentState";
2
1
  export * from "./TemplatesMigrateResponse";
3
- export * from "./TemplatesCreateResponse";