@letta-ai/letta-client 0.1.180 → 0.1.182

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 (476) 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 +6 -3
  28. package/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -0
  29. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  30. package/api/resources/groups/client/Client.js +6 -6
  31. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  32. package/api/resources/health/client/Client.js +1 -1
  33. package/api/resources/identities/client/Client.js +7 -7
  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/messages/client/Client.js +1 -1
  37. package/api/resources/models/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 +4 -4
  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 +6 -3
  46. package/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -0
  47. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  48. package/api/resources/steps/client/Client.js +3 -3
  49. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  50. package/api/resources/tags/client/Client.js +1 -1
  51. package/api/resources/telemetry/client/Client.js +1 -1
  52. package/api/resources/templates/client/Client.d.ts +107 -0
  53. package/api/resources/templates/client/Client.js +540 -3
  54. package/api/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +15 -0
  55. package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts → api/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts} +1 -2
  56. package/api/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +11 -0
  57. package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +3 -0
  58. package/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +11 -0
  59. package/api/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +13 -0
  60. package/api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +17 -0
  61. package/api/resources/templates/client/requests/index.d.ts +6 -0
  62. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  63. package/api/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +15 -0
  64. package/api/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +6 -0
  65. package/api/resources/templates/types/TemplatesForkTemplateResponse.d.ts +15 -0
  66. package/api/resources/templates/types/TemplatesForkTemplateResponse.js +5 -0
  67. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +11 -0
  68. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +5 -0
  69. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +18 -0
  70. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +5 -0
  71. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +8 -0
  72. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +5 -0
  73. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +8 -0
  74. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +5 -0
  75. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +11 -0
  76. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +5 -0
  77. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +5 -0
  78. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +5 -0
  79. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +11 -0
  80. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +5 -0
  81. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +8 -0
  82. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +5 -0
  83. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +8 -0
  84. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +5 -0
  85. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  86. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  87. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +8 -0
  88. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +5 -0
  89. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +9 -0
  90. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +5 -0
  91. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +8 -0
  92. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +5 -0
  93. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +9 -0
  94. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +5 -0
  95. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +8 -0
  96. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +5 -0
  97. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +8 -0
  98. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +5 -0
  99. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +11 -0
  100. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +5 -0
  101. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +12 -0
  102. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +5 -0
  103. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +13 -0
  104. package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js +15 -0
  105. package/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
  106. package/api/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +9 -0
  107. package/api/resources/templates/types/TemplatesListTemplateVersionsResponse.js +5 -0
  108. package/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +13 -0
  109. package/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js +5 -0
  110. package/api/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +6 -0
  111. package/api/resources/templates/types/TemplatesRenameTemplateResponse.js +5 -0
  112. package/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +15 -0
  113. package/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +5 -0
  114. package/api/resources/templates/types/index.d.ts +26 -0
  115. package/api/resources/templates/types/index.js +26 -0
  116. package/api/resources/tools/client/Client.js +20 -20
  117. package/api/resources/voice/client/Client.js +1 -1
  118. package/api/types/ConflictErrorBody.d.ts +1 -1
  119. package/api/types/DuplicateFileHandling.d.ts +2 -1
  120. package/api/types/DuplicateFileHandling.js +1 -0
  121. package/api/types/NotFoundErrorBody.d.ts +1 -1
  122. package/api/types/index.d.ts +1 -3
  123. package/api/types/index.js +1 -3
  124. package/dist/api/errors/index.d.ts +1 -2
  125. package/dist/api/errors/index.js +1 -2
  126. package/dist/api/resources/agents/client/Client.js +10 -10
  127. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  128. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  129. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  130. package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
  131. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  132. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  133. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  134. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  135. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  136. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  137. package/dist/api/resources/agents/resources/templates/client/Client.d.ts +14 -25
  138. package/dist/api/resources/agents/resources/templates/client/Client.js +59 -131
  139. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -2
  140. package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
  141. package/dist/api/resources/agents/resources/templates/types/index.d.ts +0 -2
  142. package/dist/api/resources/agents/resources/templates/types/index.js +0 -2
  143. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  144. package/dist/api/resources/batches/client/Client.js +4 -4
  145. package/dist/api/resources/blocks/client/Client.js +6 -6
  146. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  147. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  148. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  149. package/dist/api/resources/folders/client/Client.js +9 -9
  150. package/dist/api/resources/folders/resources/files/client/Client.js +6 -3
  151. package/dist/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -0
  152. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  153. package/dist/api/resources/groups/client/Client.js +6 -6
  154. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  155. package/dist/api/resources/health/client/Client.js +1 -1
  156. package/dist/api/resources/identities/client/Client.js +7 -7
  157. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  158. package/dist/api/resources/jobs/client/Client.js +5 -5
  159. package/dist/api/resources/messages/client/Client.js +1 -1
  160. package/dist/api/resources/models/client/Client.js +1 -1
  161. package/dist/api/resources/projects/client/Client.js +1 -1
  162. package/dist/api/resources/providers/client/Client.js +6 -6
  163. package/dist/api/resources/runs/client/Client.js +4 -4
  164. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  165. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  166. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  167. package/dist/api/resources/sources/client/Client.js +10 -10
  168. package/dist/api/resources/sources/resources/files/client/Client.js +6 -3
  169. package/dist/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -0
  170. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  171. package/dist/api/resources/steps/client/Client.js +3 -3
  172. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  173. package/dist/api/resources/tags/client/Client.js +1 -1
  174. package/dist/api/resources/telemetry/client/Client.js +1 -1
  175. package/dist/api/resources/templates/client/Client.d.ts +107 -0
  176. package/dist/api/resources/templates/client/Client.js +540 -3
  177. package/dist/api/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +15 -0
  178. package/dist/api/resources/templates/client/requests/TemplatesCreateTemplateRequest.js +5 -0
  179. package/{api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts → dist/api/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts} +1 -2
  180. package/dist/api/resources/templates/client/requests/TemplatesDeleteTemplateRequest.js +5 -0
  181. package/dist/api/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +11 -0
  182. package/dist/api/resources/templates/client/requests/TemplatesForkTemplateRequest.js +5 -0
  183. package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +3 -0
  184. package/dist/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +11 -0
  185. package/dist/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.js +5 -0
  186. package/dist/api/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +13 -0
  187. package/dist/api/resources/templates/client/requests/TemplatesRenameTemplateRequest.js +5 -0
  188. package/dist/api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +17 -0
  189. package/dist/api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js +5 -0
  190. package/dist/api/resources/templates/client/requests/index.d.ts +6 -0
  191. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  192. package/dist/api/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +15 -0
  193. package/dist/api/resources/templates/types/TemplatesCreateTemplateResponse.js +5 -0
  194. package/dist/api/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +6 -0
  195. package/dist/api/resources/templates/types/TemplatesDeleteTemplateResponse.js +5 -0
  196. package/dist/api/resources/templates/types/TemplatesForkTemplateResponse.d.ts +15 -0
  197. package/dist/api/resources/templates/types/TemplatesForkTemplateResponse.js +5 -0
  198. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +11 -0
  199. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +5 -0
  200. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +18 -0
  201. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +5 -0
  202. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +8 -0
  203. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +5 -0
  204. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +8 -0
  205. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +5 -0
  206. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +11 -0
  207. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +5 -0
  208. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +5 -0
  209. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +5 -0
  210. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +11 -0
  211. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +5 -0
  212. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +8 -0
  213. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +5 -0
  214. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +8 -0
  215. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +5 -0
  216. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  217. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  218. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +8 -0
  219. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +5 -0
  220. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +9 -0
  221. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +5 -0
  222. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +8 -0
  223. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +5 -0
  224. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +9 -0
  225. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +5 -0
  226. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +8 -0
  227. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +5 -0
  228. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +8 -0
  229. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +5 -0
  230. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +11 -0
  231. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +5 -0
  232. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +12 -0
  233. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +5 -0
  234. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +13 -0
  235. package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js +15 -0
  236. package/dist/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
  237. package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +9 -0
  238. package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponse.js +5 -0
  239. package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +13 -0
  240. package/dist/api/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js +5 -0
  241. package/dist/api/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +6 -0
  242. package/dist/api/resources/templates/types/TemplatesRenameTemplateResponse.js +5 -0
  243. package/dist/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +15 -0
  244. package/dist/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +5 -0
  245. package/dist/api/resources/templates/types/index.d.ts +26 -0
  246. package/dist/api/resources/templates/types/index.js +26 -0
  247. package/dist/api/resources/tools/client/Client.js +20 -20
  248. package/dist/api/resources/voice/client/Client.js +1 -1
  249. package/dist/api/types/ConflictErrorBody.d.ts +1 -1
  250. package/dist/api/types/DuplicateFileHandling.d.ts +2 -1
  251. package/dist/api/types/DuplicateFileHandling.js +1 -0
  252. package/dist/api/types/NotFoundErrorBody.d.ts +1 -1
  253. package/dist/api/types/index.d.ts +1 -3
  254. package/dist/api/types/index.js +1 -3
  255. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -1
  256. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +0 -1
  257. package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
  258. package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +1 -5
  259. package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +0 -2
  260. package/dist/serialization/resources/agents/resources/templates/types/index.js +0 -2
  261. package/dist/serialization/resources/index.d.ts +1 -0
  262. package/dist/serialization/resources/index.js +1 -0
  263. package/dist/serialization/resources/templates/client/index.d.ts +1 -0
  264. package/dist/serialization/resources/templates/client/index.js +17 -0
  265. package/dist/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +13 -0
  266. package/dist/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.js +44 -0
  267. package/dist/serialization/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts +11 -0
  268. package/dist/serialization/resources/{agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js → templates/client/requests/TemplatesDeleteTemplateRequest.js} +3 -3
  269. package/dist/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +12 -0
  270. package/dist/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.js +43 -0
  271. package/dist/serialization/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +12 -0
  272. package/dist/serialization/{types/InternalServerErrorBody.js → resources/templates/client/requests/TemplatesRenameTemplateRequest.js} +4 -4
  273. package/dist/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +15 -0
  274. package/dist/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js +46 -0
  275. package/dist/serialization/resources/templates/client/requests/index.d.ts +5 -0
  276. package/dist/serialization/resources/templates/client/requests/index.js +13 -0
  277. package/dist/serialization/resources/templates/index.d.ts +1 -0
  278. package/dist/serialization/resources/templates/index.js +1 -0
  279. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +18 -0
  280. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateResponse.js +49 -0
  281. package/dist/serialization/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +12 -0
  282. package/dist/serialization/resources/{agents/resources/templates/client/requests/TemplatesCreateRequest.js → templates/types/TemplatesDeleteTemplateResponse.js} +4 -4
  283. package/dist/serialization/resources/templates/types/TemplatesForkTemplateResponse.d.ts +18 -0
  284. package/dist/serialization/resources/templates/types/TemplatesForkTemplateResponse.js +49 -0
  285. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +20 -0
  286. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +51 -0
  287. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +27 -0
  288. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +58 -0
  289. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +14 -0
  290. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +45 -0
  291. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +14 -0
  292. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +45 -0
  293. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +17 -0
  294. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +48 -0
  295. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +18 -0
  296. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +58 -0
  297. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +17 -0
  298. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +48 -0
  299. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +14 -0
  300. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +45 -0
  301. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +14 -0
  302. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +45 -0
  303. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  304. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  305. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +14 -0
  306. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +45 -0
  307. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +15 -0
  308. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +46 -0
  309. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +14 -0
  310. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +45 -0
  311. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +15 -0
  312. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +46 -0
  313. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +14 -0
  314. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +45 -0
  315. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +14 -0
  316. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +45 -0
  317. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +17 -0
  318. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +48 -0
  319. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +18 -0
  320. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +49 -0
  321. package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +10 -0
  322. package/dist/serialization/{types/NotFoundErrorBodyMessage.js → resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js} +10 -5
  323. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +2 -0
  324. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +2 -0
  325. package/dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +15 -0
  326. package/dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.js +46 -0
  327. package/dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +15 -0
  328. package/{serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → dist/serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js} +6 -5
  329. package/dist/serialization/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +12 -0
  330. package/{serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js → dist/serialization/resources/templates/types/TemplatesRenameTemplateResponse.js} +4 -4
  331. package/dist/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +18 -0
  332. package/dist/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +49 -0
  333. package/dist/serialization/resources/templates/types/index.d.ts +26 -0
  334. package/dist/serialization/resources/templates/types/index.js +26 -0
  335. package/dist/serialization/types/ConflictErrorBody.d.ts +1 -1
  336. package/dist/serialization/types/ConflictErrorBody.js +1 -1
  337. package/dist/serialization/types/DuplicateFileHandling.d.ts +1 -1
  338. package/dist/serialization/types/DuplicateFileHandling.js +1 -1
  339. package/dist/serialization/types/NotFoundErrorBody.d.ts +1 -1
  340. package/dist/serialization/types/NotFoundErrorBody.js +1 -1
  341. package/dist/serialization/types/index.d.ts +1 -3
  342. package/dist/serialization/types/index.js +1 -3
  343. package/dist/version.d.ts +1 -1
  344. package/dist/version.js +1 -1
  345. package/package.json +1 -1
  346. package/reference.md +555 -30
  347. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -1
  348. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +0 -1
  349. package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -2
  350. package/serialization/resources/agents/resources/templates/client/requests/index.js +1 -5
  351. package/serialization/resources/agents/resources/templates/types/index.d.ts +0 -2
  352. package/serialization/resources/agents/resources/templates/types/index.js +0 -2
  353. package/serialization/resources/index.d.ts +1 -0
  354. package/serialization/resources/index.js +1 -0
  355. package/serialization/resources/templates/client/index.d.ts +1 -0
  356. package/serialization/resources/templates/client/index.js +17 -0
  357. package/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +13 -0
  358. package/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.js +44 -0
  359. package/serialization/resources/templates/client/requests/TemplatesDeleteTemplateRequest.d.ts +11 -0
  360. package/serialization/resources/{agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js → templates/client/requests/TemplatesDeleteTemplateRequest.js} +3 -3
  361. package/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.d.ts +12 -0
  362. package/serialization/resources/templates/client/requests/TemplatesForkTemplateRequest.js +43 -0
  363. package/serialization/resources/templates/client/requests/TemplatesRenameTemplateRequest.d.ts +12 -0
  364. package/{dist/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.js → serialization/resources/templates/client/requests/TemplatesRenameTemplateRequest.js} +4 -5
  365. package/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.d.ts +15 -0
  366. package/serialization/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js +46 -0
  367. package/serialization/resources/templates/client/requests/index.d.ts +5 -0
  368. package/serialization/resources/templates/client/requests/index.js +13 -0
  369. package/serialization/resources/templates/index.d.ts +1 -0
  370. package/serialization/resources/templates/index.js +1 -0
  371. package/serialization/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +18 -0
  372. package/serialization/resources/templates/types/TemplatesCreateTemplateResponse.js +49 -0
  373. package/serialization/resources/templates/types/TemplatesDeleteTemplateResponse.d.ts +12 -0
  374. package/serialization/resources/templates/types/TemplatesDeleteTemplateResponse.js +43 -0
  375. package/serialization/resources/templates/types/TemplatesForkTemplateResponse.d.ts +18 -0
  376. package/serialization/resources/templates/types/TemplatesForkTemplateResponse.js +49 -0
  377. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +20 -0
  378. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +51 -0
  379. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.d.ts +27 -0
  380. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItem.js +58 -0
  381. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.d.ts +14 -0
  382. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables.js +45 -0
  383. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.d.ts +14 -0
  384. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem.js +45 -0
  385. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +17 -0
  386. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +48 -0
  387. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.d.ts +18 -0
  388. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem.js +58 -0
  389. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.d.ts +17 -0
  390. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping.js +48 -0
  391. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.d.ts +14 -0
  392. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive.js +45 -0
  393. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.d.ts +14 -0
  394. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour.js +45 -0
  395. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  396. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  397. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.d.ts +14 -0
  398. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne.js +45 -0
  399. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.d.ts +15 -0
  400. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven.js +46 -0
  401. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.d.ts +14 -0
  402. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo.js +45 -0
  403. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.d.ts +15 -0
  404. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero.js +46 -0
  405. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.d.ts +14 -0
  406. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables.js +45 -0
  407. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.d.ts +14 -0
  408. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem.js +45 -0
  409. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +17 -0
  410. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +48 -0
  411. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.d.ts +18 -0
  412. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseConfiguration.js +49 -0
  413. package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseType.d.ts +10 -0
  414. package/serialization/{types/NotFoundErrorBodyMessage.js → resources/templates/types/TemplatesGetTemplateSnapshotResponseType.js} +10 -5
  415. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +2 -0
  416. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +2 -0
  417. package/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.d.ts +15 -0
  418. package/serialization/resources/templates/types/TemplatesListTemplateVersionsResponse.js +46 -0
  419. package/serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.d.ts +15 -0
  420. package/{dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → serialization/resources/templates/types/TemplatesListTemplateVersionsResponseVersionsItem.js} +6 -5
  421. package/serialization/resources/templates/types/TemplatesRenameTemplateResponse.d.ts +12 -0
  422. package/serialization/resources/templates/types/TemplatesRenameTemplateResponse.js +43 -0
  423. package/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +18 -0
  424. package/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +49 -0
  425. package/serialization/resources/templates/types/index.d.ts +26 -0
  426. package/serialization/resources/templates/types/index.js +26 -0
  427. package/serialization/types/ConflictErrorBody.d.ts +1 -1
  428. package/serialization/types/ConflictErrorBody.js +1 -1
  429. package/serialization/types/DuplicateFileHandling.d.ts +1 -1
  430. package/serialization/types/DuplicateFileHandling.js +1 -1
  431. package/serialization/types/NotFoundErrorBody.d.ts +1 -1
  432. package/serialization/types/NotFoundErrorBody.js +1 -1
  433. package/serialization/types/index.d.ts +1 -3
  434. package/serialization/types/index.js +1 -3
  435. package/version.d.ts +1 -1
  436. package/version.js +1 -1
  437. package/api/errors/InternalServerError.d.ts +0 -8
  438. package/api/errors/InternalServerError.js +0 -52
  439. package/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -15
  440. package/api/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -7
  441. package/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -7
  442. package/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js +0 -9
  443. package/api/types/InternalServerErrorBody.d.ts +0 -6
  444. package/api/types/NotFoundErrorBodyMessage.d.ts +0 -8
  445. package/api/types/NotFoundErrorBodyMessage.js +0 -10
  446. package/dist/api/errors/InternalServerError.d.ts +0 -8
  447. package/dist/api/errors/InternalServerError.js +0 -52
  448. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -15
  449. package/dist/api/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -7
  450. package/dist/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -7
  451. package/dist/api/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.js +0 -9
  452. package/dist/api/types/InternalServerErrorBody.d.ts +0 -6
  453. package/dist/api/types/NotFoundErrorBodyMessage.d.ts +0 -8
  454. package/dist/api/types/NotFoundErrorBodyMessage.js +0 -10
  455. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +0 -12
  456. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -14
  457. package/dist/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -13
  458. package/dist/serialization/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -10
  459. package/dist/serialization/types/InternalServerErrorBody.d.ts +0 -12
  460. package/dist/serialization/types/NotFoundErrorBodyMessage.d.ts +0 -10
  461. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +0 -12
  462. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +0 -14
  463. package/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.d.ts +0 -13
  464. package/serialization/resources/agents/resources/templates/types/TemplatesCreateResponse.js +0 -44
  465. package/serialization/resources/agents/resources/templates/types/TemplatesCreateVersionRequestReturnAgentState.d.ts +0 -10
  466. package/serialization/types/InternalServerErrorBody.d.ts +0 -12
  467. package/serialization/types/InternalServerErrorBody.js +0 -43
  468. package/serialization/types/NotFoundErrorBodyMessage.d.ts +0 -10
  469. /package/api/resources/{agents/resources/templates/client/requests/TemplatesCreateRequest.js → templates/client/requests/TemplatesCreateTemplateRequest.js} +0 -0
  470. /package/api/resources/{agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → templates/client/requests/TemplatesDeleteTemplateRequest.js} +0 -0
  471. /package/api/resources/{agents/resources/templates/types/TemplatesCreateResponse.js → templates/client/requests/TemplatesForkTemplateRequest.js} +0 -0
  472. /package/api/{types/InternalServerErrorBody.js → resources/templates/client/requests/TemplatesListTemplateVersionsRequest.js} +0 -0
  473. /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js → api/resources/templates/client/requests/TemplatesRenameTemplateRequest.js} +0 -0
  474. /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js → api/resources/templates/client/requests/TemplatesSaveTemplateVersionRequest.js} +0 -0
  475. /package/{dist/api/resources/agents/resources/templates/types/TemplatesCreateResponse.js → api/resources/templates/types/TemplatesCreateTemplateResponse.js} +0 -0
  476. /package/{dist/api/types/InternalServerErrorBody.js → api/resources/templates/types/TemplatesDeleteTemplateResponse.js} +0 -0
@@ -0,0 +1,43 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.TemplatesRenameTemplateResponse = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.TemplatesRenameTemplateResponse = core.serialization.object({
42
+ success: core.serialization.boolean(),
43
+ });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const TemplatesSaveTemplateVersionResponse: core.serialization.ObjectSchema<serializers.TemplatesSaveTemplateVersionResponse.Raw, Letta.TemplatesSaveTemplateVersionResponse>;
8
+ export declare namespace TemplatesSaveTemplateVersionResponse {
9
+ interface Raw {
10
+ name: string;
11
+ id: string;
12
+ project_id: string;
13
+ project_slug: string;
14
+ latest_version: string;
15
+ description?: string | null;
16
+ template_deployment_slug: string;
17
+ }
18
+ }
@@ -0,0 +1,49 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.TemplatesSaveTemplateVersionResponse = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.TemplatesSaveTemplateVersionResponse = core.serialization.object({
42
+ name: core.serialization.string(),
43
+ id: core.serialization.string(),
44
+ projectId: core.serialization.property("project_id", core.serialization.string()),
45
+ projectSlug: core.serialization.property("project_slug", core.serialization.string()),
46
+ latestVersion: core.serialization.property("latest_version", core.serialization.string()),
47
+ description: core.serialization.string().optional(),
48
+ templateDeploymentSlug: core.serialization.property("template_deployment_slug", core.serialization.string()),
49
+ });
@@ -1,2 +1,28 @@
1
1
  export * from "./TemplatesListResponseTemplatesItem";
2
2
  export * from "./TemplatesListResponse";
3
+ export * from "./TemplatesSaveTemplateVersionResponse";
4
+ export * from "./TemplatesDeleteTemplateResponse";
5
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemProperties";
6
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem";
7
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables";
8
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem";
9
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables";
10
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero";
11
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne";
12
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo";
13
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping";
14
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour";
15
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive";
16
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit";
17
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven";
18
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem";
19
+ export * from "./TemplatesGetTemplateSnapshotResponseAgentsItem";
20
+ export * from "./TemplatesGetTemplateSnapshotResponseBlocksItem";
21
+ export * from "./TemplatesGetTemplateSnapshotResponseConfiguration";
22
+ export * from "./TemplatesGetTemplateSnapshotResponseType";
23
+ export * from "./TemplatesGetTemplateSnapshotResponse";
24
+ export * from "./TemplatesForkTemplateResponse";
25
+ export * from "./TemplatesCreateTemplateResponse";
26
+ export * from "./TemplatesRenameTemplateResponse";
27
+ export * from "./TemplatesListTemplateVersionsResponseVersionsItem";
28
+ export * from "./TemplatesListTemplateVersionsResponse";
@@ -16,3 +16,29 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./TemplatesListResponseTemplatesItem"), exports);
18
18
  __exportStar(require("./TemplatesListResponse"), exports);
19
+ __exportStar(require("./TemplatesSaveTemplateVersionResponse"), exports);
20
+ __exportStar(require("./TemplatesDeleteTemplateResponse"), exports);
21
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemProperties"), exports);
22
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem"), exports);
23
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables"), exports);
24
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem"), exports);
25
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables"), exports);
26
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero"), exports);
27
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne"), exports);
28
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo"), exports);
29
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping"), exports);
30
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour"), exports);
31
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive"), exports);
32
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit"), exports);
33
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven"), exports);
34
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem"), exports);
35
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseAgentsItem"), exports);
36
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseBlocksItem"), exports);
37
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseConfiguration"), exports);
38
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponseType"), exports);
39
+ __exportStar(require("./TemplatesGetTemplateSnapshotResponse"), exports);
40
+ __exportStar(require("./TemplatesForkTemplateResponse"), exports);
41
+ __exportStar(require("./TemplatesCreateTemplateResponse"), exports);
42
+ __exportStar(require("./TemplatesRenameTemplateResponse"), exports);
43
+ __exportStar(require("./TemplatesListTemplateVersionsResponseVersionsItem"), exports);
44
+ __exportStar(require("./TemplatesListTemplateVersionsResponse"), exports);
@@ -7,6 +7,6 @@ import * as core from "../../core";
7
7
  export declare const ConflictErrorBody: core.serialization.ObjectSchema<serializers.ConflictErrorBody.Raw, Letta.ConflictErrorBody>;
8
8
  export declare namespace ConflictErrorBody {
9
9
  interface Raw {
10
- message: "You can only migrate agents to a new versioned agent template that belongs to the same project";
10
+ message: string;
11
11
  }
12
12
  }
@@ -39,5 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ConflictErrorBody = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.ConflictErrorBody = core.serialization.object({
42
- message: core.serialization.stringLiteral("You can only migrate agents to a new versioned agent template that belongs to the same project"),
42
+ message: core.serialization.string(),
43
43
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const DuplicateFileHandling: core.serialization.Schema<serializers.DuplicateFileHandling.Raw, Letta.DuplicateFileHandling>;
8
8
  export declare namespace DuplicateFileHandling {
9
- type Raw = "skip" | "error" | "suffix";
9
+ type Raw = "skip" | "error" | "suffix" | "replace";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.DuplicateFileHandling = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.DuplicateFileHandling = core.serialization.enum_(["skip", "error", "suffix"]);
41
+ exports.DuplicateFileHandling = core.serialization.enum_(["skip", "error", "suffix", "replace"]);
@@ -7,6 +7,6 @@ import * as core from "../../core";
7
7
  export declare const NotFoundErrorBody: core.serialization.ObjectSchema<serializers.NotFoundErrorBody.Raw, Letta.NotFoundErrorBody>;
8
8
  export declare namespace NotFoundErrorBody {
9
9
  interface Raw {
10
- message: "Agent not found";
10
+ message: string;
11
11
  }
12
12
  }
@@ -39,5 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.NotFoundErrorBody = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.NotFoundErrorBody = core.serialization.object({
42
- message: core.serialization.stringLiteral("Agent not found"),
42
+ message: core.serialization.string(),
43
43
  });
@@ -1,9 +1,7 @@
1
1
  export * from "./NotFoundErrorBody";
2
- export * from "./InternalServerErrorBody";
3
- export * from "./NotFoundErrorBodyMessage";
4
- export * from "./ConflictErrorBody";
5
2
  export * from "./PaymentRequiredErrorBody";
6
3
  export * from "./BadRequestErrorBody";
4
+ export * from "./ConflictErrorBody";
7
5
  export * from "./ActionModel";
8
6
  export * from "./ActionParametersModel";
9
7
  export * from "./ActionResponseModel";
@@ -15,11 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./NotFoundErrorBody"), exports);
18
- __exportStar(require("./InternalServerErrorBody"), exports);
19
- __exportStar(require("./NotFoundErrorBodyMessage"), exports);
20
- __exportStar(require("./ConflictErrorBody"), exports);
21
18
  __exportStar(require("./PaymentRequiredErrorBody"), exports);
22
19
  __exportStar(require("./BadRequestErrorBody"), exports);
20
+ __exportStar(require("./ConflictErrorBody"), exports);
23
21
  __exportStar(require("./ActionModel"), exports);
24
22
  __exportStar(require("./ActionParametersModel"), exports);
25
23
  __exportStar(require("./ActionResponseModel"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.180";
1
+ export declare const SDK_VERSION = "0.1.182";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.180";
4
+ exports.SDK_VERSION = "0.1.182";
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as errors from "../../errors/index";
5
- import * as core from "../../core";
6
- export declare class InternalServerError extends errors.LettaError {
7
- constructor(body?: unknown, rawResponse?: core.RawResponse);
8
- }
@@ -1,52 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.InternalServerError = void 0;
40
- const errors = __importStar(require("../../errors/index"));
41
- class InternalServerError extends errors.LettaError {
42
- constructor(body, rawResponse) {
43
- super({
44
- message: "InternalServerError",
45
- statusCode: 500,
46
- body: body,
47
- rawResponse: rawResponse,
48
- });
49
- Object.setPrototypeOf(this, InternalServerError.prototype);
50
- }
51
- }
52
- exports.InternalServerError = InternalServerError;
@@ -1,15 +0,0 @@
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 TemplatesCreateVersionRequest {
10
- returnAgentState?: Letta.agents.TemplatesCreateVersionRequestReturnAgentState;
11
- migrateDeployedAgents?: boolean;
12
- message?: string;
13
- /** If true, preserves the existing agent's tool environment variables when migrating deployed agents */
14
- preserveToolVariables?: boolean;
15
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface TemplatesCreateResponse {
5
- templateName: string;
6
- templateId: string;
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type TemplatesCreateVersionRequestReturnAgentState = "true";
5
- export declare const TemplatesCreateVersionRequestReturnAgentState: {
6
- readonly True: "true";
7
- };
@@ -1,9 +0,0 @@
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.TemplatesCreateVersionRequestReturnAgentState = void 0;
7
- exports.TemplatesCreateVersionRequestReturnAgentState = {
8
- True: "true",
9
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface InternalServerErrorBody {
5
- message: "Failed to create agent template";
6
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type NotFoundErrorBodyMessage = "Agent provided is a template or not found, you can only migrate deployed agents" | "Template version provided does not exist";
5
- export declare const NotFoundErrorBodyMessage: {
6
- readonly AgentProvidedIsATemplateOrNotFoundYouCanOnlyMigrateDeployedAgents: "Agent provided is a template or not found, you can only migrate deployed agents";
7
- readonly TemplateVersionProvidedDoesNotExist: "Template version provided does not exist";
8
- };
@@ -1,10 +0,0 @@
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.NotFoundErrorBodyMessage = void 0;
7
- exports.NotFoundErrorBodyMessage = {
8
- AgentProvidedIsATemplateOrNotFoundYouCanOnlyMigrateDeployedAgents: "Agent provided is a template or not found, you can only migrate deployed agents",
9
- TemplateVersionProvidedDoesNotExist: "Template version provided does not exist",
10
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as errors from "../../errors/index";
5
- import * as core from "../../core";
6
- export declare class InternalServerError extends errors.LettaError {
7
- constructor(body?: unknown, rawResponse?: core.RawResponse);
8
- }
@@ -1,52 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.InternalServerError = void 0;
40
- const errors = __importStar(require("../../errors/index"));
41
- class InternalServerError extends errors.LettaError {
42
- constructor(body, rawResponse) {
43
- super({
44
- message: "InternalServerError",
45
- statusCode: 500,
46
- body: body,
47
- rawResponse: rawResponse,
48
- });
49
- Object.setPrototypeOf(this, InternalServerError.prototype);
50
- }
51
- }
52
- exports.InternalServerError = InternalServerError;
@@ -1,15 +0,0 @@
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 TemplatesCreateVersionRequest {
10
- returnAgentState?: Letta.agents.TemplatesCreateVersionRequestReturnAgentState;
11
- migrateDeployedAgents?: boolean;
12
- message?: string;
13
- /** If true, preserves the existing agent's tool environment variables when migrating deployed agents */
14
- preserveToolVariables?: boolean;
15
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface TemplatesCreateResponse {
5
- templateName: string;
6
- templateId: string;
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type TemplatesCreateVersionRequestReturnAgentState = "true";
5
- export declare const TemplatesCreateVersionRequestReturnAgentState: {
6
- readonly True: "true";
7
- };
@@ -1,9 +0,0 @@
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.TemplatesCreateVersionRequestReturnAgentState = void 0;
7
- exports.TemplatesCreateVersionRequestReturnAgentState = {
8
- True: "true",
9
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface InternalServerErrorBody {
5
- message: "Failed to create agent template";
6
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type NotFoundErrorBodyMessage = "Agent provided is a template or not found, you can only migrate deployed agents" | "Template version provided does not exist";
5
- export declare const NotFoundErrorBodyMessage: {
6
- readonly AgentProvidedIsATemplateOrNotFoundYouCanOnlyMigrateDeployedAgents: "Agent provided is a template or not found, you can only migrate deployed agents";
7
- readonly TemplateVersionProvidedDoesNotExist: "Template version provided does not exist";
8
- };
@@ -1,10 +0,0 @@
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.NotFoundErrorBodyMessage = void 0;
7
- exports.NotFoundErrorBodyMessage = {
8
- AgentProvidedIsATemplateOrNotFoundYouCanOnlyMigrateDeployedAgents: "Agent provided is a template or not found, you can only migrate deployed agents",
9
- TemplateVersionProvidedDoesNotExist: "Template version provided does not exist",
10
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../../index";
5
- import * as Letta from "../../../../../../../api/index";
6
- import * as core from "../../../../../../../core";
7
- export declare const TemplatesCreateRequest: core.serialization.Schema<serializers.agents.TemplatesCreateRequest.Raw, Letta.agents.TemplatesCreateRequest>;
8
- export declare namespace TemplatesCreateRequest {
9
- interface Raw {
10
- project?: string | null;
11
- }
12
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../../index";
5
- import * as Letta from "../../../../../../../api/index";
6
- import * as core from "../../../../../../../core";
7
- export declare const TemplatesCreateVersionRequest: core.serialization.Schema<serializers.agents.TemplatesCreateVersionRequest.Raw, Omit<Letta.agents.TemplatesCreateVersionRequest, "returnAgentState">>;
8
- export declare namespace TemplatesCreateVersionRequest {
9
- interface Raw {
10
- migrate_deployed_agents?: boolean | null;
11
- message?: string | null;
12
- preserve_tool_variables?: boolean | null;
13
- }
14
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../index";
5
- import * as Letta from "../../../../../../api/index";
6
- import * as core from "../../../../../../core";
7
- export declare const TemplatesCreateResponse: core.serialization.ObjectSchema<serializers.agents.TemplatesCreateResponse.Raw, Letta.agents.TemplatesCreateResponse>;
8
- export declare namespace TemplatesCreateResponse {
9
- interface Raw {
10
- templateName: string;
11
- templateId: string;
12
- }
13
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../index";
5
- import * as Letta from "../../../../../../api/index";
6
- import * as core from "../../../../../../core";
7
- export declare const TemplatesCreateVersionRequestReturnAgentState: core.serialization.Schema<serializers.agents.TemplatesCreateVersionRequestReturnAgentState.Raw, Letta.agents.TemplatesCreateVersionRequestReturnAgentState>;
8
- export declare namespace TemplatesCreateVersionRequestReturnAgentState {
9
- type Raw = "true";
10
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Letta from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const InternalServerErrorBody: core.serialization.ObjectSchema<serializers.InternalServerErrorBody.Raw, Letta.InternalServerErrorBody>;
8
- export declare namespace InternalServerErrorBody {
9
- interface Raw {
10
- message: "Failed to create agent template";
11
- }
12
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Letta from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const NotFoundErrorBodyMessage: core.serialization.Schema<serializers.NotFoundErrorBodyMessage.Raw, Letta.NotFoundErrorBodyMessage>;
8
- export declare namespace NotFoundErrorBodyMessage {
9
- type Raw = "Agent provided is a template or not found, you can only migrate deployed agents" | "Template version provided does not exist";
10
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../../index";
5
- import * as Letta from "../../../../../../../api/index";
6
- import * as core from "../../../../../../../core";
7
- export declare const TemplatesCreateRequest: core.serialization.Schema<serializers.agents.TemplatesCreateRequest.Raw, Letta.agents.TemplatesCreateRequest>;
8
- export declare namespace TemplatesCreateRequest {
9
- interface Raw {
10
- project?: string | null;
11
- }
12
- }