@letta-ai/letta-client 0.1.99 → 0.1.101

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 (364) hide show
  1. package/Client.d.ts +3 -9
  2. package/Client.js +11 -21
  3. package/api/resources/agents/client/Client.d.ts +1 -9
  4. package/api/resources/agents/client/Client.js +11 -55
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  9. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  10. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  11. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  15. package/api/resources/batches/client/Client.d.ts +5 -1
  16. package/api/resources/batches/client/Client.js +26 -11
  17. package/api/resources/blocks/client/Client.js +5 -5
  18. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  19. package/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -5
  20. package/api/resources/clientSideAccessTokens/client/Client.js +9 -9
  21. package/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts → ClientSideAccessTokensCreateRequest.d.ts} +2 -2
  22. package/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
  23. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +9 -0
  24. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
  25. package/{dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js → api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js} +2 -2
  26. package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts → ClientSideAccessTokensCreateResponse.d.ts} +2 -2
  27. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +8 -0
  28. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +9 -0
  29. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
  30. package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js → ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js} +2 -2
  31. package/api/resources/clientSideAccessTokens/types/index.d.ts +6 -6
  32. package/api/resources/clientSideAccessTokens/types/index.js +6 -6
  33. package/api/resources/embeddings/client/Client.js +1 -1
  34. package/api/resources/groups/client/Client.js +5 -5
  35. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  36. package/api/resources/health/client/Client.js +1 -1
  37. package/api/resources/identities/client/Client.js +6 -6
  38. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  39. package/api/resources/index.d.ts +2 -4
  40. package/api/resources/index.js +3 -5
  41. package/api/resources/jobs/client/Client.js +4 -4
  42. package/api/resources/models/client/Client.js +1 -1
  43. package/api/resources/projects/client/Client.d.ts +3 -3
  44. package/api/resources/projects/client/Client.js +5 -5
  45. package/api/resources/projects/client/requests/{ProjectsListProjectsRequest.d.ts → ProjectsListRequest.d.ts} +1 -1
  46. package/api/resources/projects/client/requests/index.d.ts +1 -1
  47. package/{dist/api/resources/projects/types/ProjectsListProjectsResponse.d.ts → api/resources/projects/types/ProjectsListResponse.d.ts} +2 -2
  48. package/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +1 -1
  49. package/api/resources/projects/types/index.d.ts +2 -2
  50. package/api/resources/projects/types/index.js +2 -2
  51. package/api/resources/providers/client/Client.d.ts +6 -24
  52. package/api/resources/providers/client/Client.js +13 -107
  53. package/api/resources/providers/client/requests/ProviderUpdate.d.ts +0 -3
  54. package/api/resources/providers/client/requests/index.d.ts +0 -1
  55. package/api/resources/runs/client/Client.d.ts +3 -10
  56. package/api/resources/runs/client/Client.js +8 -51
  57. package/{dist/api/resources/runs/client/requests/ListRunsRequest.d.ts → api/resources/runs/client/requests/RunsListRequest.d.ts} +1 -1
  58. package/api/resources/runs/client/requests/index.d.ts +1 -1
  59. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  60. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  61. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  62. package/api/resources/sources/client/Client.js +6 -6
  63. package/api/resources/sources/resources/files/client/Client.js +3 -3
  64. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  65. package/api/resources/steps/client/Client.js +3 -3
  66. package/api/resources/tags/client/Client.d.ts +7 -1
  67. package/api/resources/tags/client/Client.js +46 -10
  68. package/api/resources/tags/client/index.d.ts +1 -1
  69. package/api/resources/tags/client/index.js +15 -0
  70. package/{dist/api/resources/tag/client/requests/ListTagsRequest.d.ts → api/resources/tags/client/requests/TagsListRequest.d.ts} +1 -1
  71. package/api/resources/tags/client/requests/index.d.ts +1 -0
  72. package/api/resources/templates/client/Client.d.ts +3 -3
  73. package/api/resources/templates/client/Client.js +5 -5
  74. package/{dist/api/resources/templates/client/requests/TemplatesListTemplatesRequest.d.ts → api/resources/templates/client/requests/TemplatesListRequest.d.ts} +1 -1
  75. package/api/resources/templates/client/requests/index.d.ts +1 -1
  76. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  77. package/api/resources/{projects/types/ProjectsListProjectsResponse.d.ts → templates/types/TemplatesListResponse.d.ts} +2 -2
  78. package/api/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.d.ts → TemplatesListResponseTemplatesItem.d.ts} +1 -1
  79. package/api/resources/templates/types/index.d.ts +2 -2
  80. package/api/resources/templates/types/index.js +2 -2
  81. package/api/resources/tools/client/Client.js +16 -16
  82. package/api/resources/voice/client/Client.js +1 -1
  83. package/dist/Client.d.ts +3 -9
  84. package/dist/Client.js +11 -21
  85. package/dist/api/resources/agents/client/Client.d.ts +1 -9
  86. package/dist/api/resources/agents/client/Client.js +11 -55
  87. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  88. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  89. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  90. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  91. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  92. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  93. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  94. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  95. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  96. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  97. package/dist/api/resources/batches/client/Client.d.ts +5 -1
  98. package/dist/api/resources/batches/client/Client.js +26 -11
  99. package/dist/api/resources/blocks/client/Client.js +5 -5
  100. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  101. package/dist/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -5
  102. package/dist/api/resources/clientSideAccessTokens/client/Client.js +9 -9
  103. package/dist/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts → ClientSideAccessTokensCreateRequest.d.ts} +2 -2
  104. package/dist/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
  105. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +9 -0
  106. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
  107. package/{api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js → dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js} +2 -2
  108. package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts → ClientSideAccessTokensCreateResponse.d.ts} +2 -2
  109. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +8 -0
  110. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +9 -0
  111. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
  112. package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js → ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js} +2 -2
  113. package/dist/api/resources/clientSideAccessTokens/types/index.d.ts +6 -6
  114. package/dist/api/resources/clientSideAccessTokens/types/index.js +6 -6
  115. package/dist/api/resources/embeddings/client/Client.js +1 -1
  116. package/dist/api/resources/groups/client/Client.js +5 -5
  117. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  118. package/dist/api/resources/health/client/Client.js +1 -1
  119. package/dist/api/resources/identities/client/Client.js +6 -6
  120. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  121. package/dist/api/resources/index.d.ts +2 -4
  122. package/dist/api/resources/index.js +3 -5
  123. package/dist/api/resources/jobs/client/Client.js +4 -4
  124. package/dist/api/resources/models/client/Client.js +1 -1
  125. package/dist/api/resources/projects/client/Client.d.ts +3 -3
  126. package/dist/api/resources/projects/client/Client.js +5 -5
  127. package/dist/api/resources/projects/client/requests/{ProjectsListProjectsRequest.d.ts → ProjectsListRequest.d.ts} +1 -1
  128. package/dist/api/resources/projects/client/requests/index.d.ts +1 -1
  129. package/{api/resources/templates/types/TemplatesListTemplatesResponse.d.ts → dist/api/resources/projects/types/ProjectsListResponse.d.ts} +2 -2
  130. package/dist/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +1 -1
  131. package/dist/api/resources/projects/types/index.d.ts +2 -2
  132. package/dist/api/resources/projects/types/index.js +2 -2
  133. package/dist/api/resources/providers/client/Client.d.ts +6 -24
  134. package/dist/api/resources/providers/client/Client.js +13 -107
  135. package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +0 -3
  136. package/dist/api/resources/providers/client/requests/index.d.ts +0 -1
  137. package/dist/api/resources/runs/client/Client.d.ts +3 -10
  138. package/dist/api/resources/runs/client/Client.js +8 -51
  139. package/{api/resources/runs/client/requests/ListRunsRequest.d.ts → dist/api/resources/runs/client/requests/RunsListRequest.d.ts} +1 -1
  140. package/dist/api/resources/runs/client/requests/index.d.ts +1 -1
  141. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  142. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  143. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  144. package/dist/api/resources/sources/client/Client.js +6 -6
  145. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  146. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  147. package/dist/api/resources/steps/client/Client.js +3 -3
  148. package/dist/api/resources/tags/client/Client.d.ts +7 -1
  149. package/dist/api/resources/tags/client/Client.js +46 -10
  150. package/dist/api/resources/tags/client/index.d.ts +1 -1
  151. package/dist/api/resources/tags/client/index.js +15 -0
  152. package/{api/resources/tag/client/requests/ListTagsRequest.d.ts → dist/api/resources/tags/client/requests/TagsListRequest.d.ts} +1 -1
  153. package/dist/api/resources/tags/client/requests/index.d.ts +1 -0
  154. package/dist/api/resources/templates/client/Client.d.ts +3 -3
  155. package/dist/api/resources/templates/client/Client.js +5 -5
  156. package/{api/resources/templates/client/requests/TemplatesListTemplatesRequest.d.ts → dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts} +1 -1
  157. package/dist/api/resources/templates/client/requests/index.d.ts +1 -1
  158. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  159. package/dist/api/resources/templates/types/{TemplatesListTemplatesResponse.d.ts → TemplatesListResponse.d.ts} +2 -2
  160. package/dist/api/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.d.ts → TemplatesListResponseTemplatesItem.d.ts} +1 -1
  161. package/dist/api/resources/templates/types/index.d.ts +2 -2
  162. package/dist/api/resources/templates/types/index.js +2 -2
  163. package/dist/api/resources/tools/client/Client.js +16 -16
  164. package/dist/api/resources/voice/client/Client.js +1 -1
  165. package/dist/serialization/resources/agents/client/{exportAgentSerialized.d.ts → export.d.ts} +1 -1
  166. package/dist/serialization/resources/agents/client/index.d.ts +1 -1
  167. package/dist/serialization/resources/agents/client/index.js +2 -2
  168. package/dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.d.ts +15 -0
  169. package/{serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +4 -4
  170. package/dist/serialization/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
  171. package/dist/serialization/resources/clientSideAccessTokens/client/requests/index.js +3 -3
  172. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +15 -0
  173. package/{serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.js} +4 -4
  174. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
  175. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js +41 -0
  176. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts +16 -0
  177. package/{serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.js} +4 -4
  178. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +14 -0
  179. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.js +45 -0
  180. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +15 -0
  181. package/dist/serialization/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +4 -4
  182. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
  183. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js +41 -0
  184. package/dist/serialization/resources/clientSideAccessTokens/types/index.d.ts +6 -6
  185. package/dist/serialization/resources/clientSideAccessTokens/types/index.js +6 -6
  186. package/dist/serialization/resources/index.d.ts +1 -1
  187. package/dist/serialization/resources/index.js +2 -2
  188. package/dist/serialization/resources/projects/types/ProjectsListResponse.d.ts +14 -0
  189. package/dist/serialization/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponse.js} +4 -4
  190. package/{serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts → dist/serialization/resources/projects/types/ProjectsListResponseProjectsItem.d.ts} +2 -2
  191. package/{serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js → dist/serialization/resources/projects/types/ProjectsListResponseProjectsItem.js} +2 -2
  192. package/dist/serialization/resources/projects/types/index.d.ts +2 -2
  193. package/dist/serialization/resources/projects/types/index.js +2 -2
  194. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +0 -1
  195. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +0 -1
  196. package/dist/serialization/resources/runs/client/index.d.ts +1 -1
  197. package/dist/serialization/resources/runs/client/index.js +2 -2
  198. package/{serialization/resources/runs/client/listRuns.d.ts → dist/serialization/resources/runs/client/list.d.ts} +1 -1
  199. package/dist/serialization/resources/tags/client/index.d.ts +1 -0
  200. package/{serialization/resources/tag → dist/serialization/resources/tags}/client/index.js +2 -2
  201. package/{serialization/resources/tag/client/listTags.d.ts → dist/serialization/resources/tags/client/list.d.ts} +1 -1
  202. package/dist/serialization/resources/templates/types/TemplatesListResponse.d.ts +14 -0
  203. package/{serialization/resources/projects/types/ProjectsListProjectsResponse.js → dist/serialization/resources/templates/types/TemplatesListResponse.js} +4 -4
  204. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +13 -0
  205. package/dist/serialization/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.js → TemplatesListResponseTemplatesItem.js} +2 -2
  206. package/dist/serialization/resources/templates/types/index.d.ts +2 -2
  207. package/dist/serialization/resources/templates/types/index.js +2 -2
  208. package/dist/version.d.ts +1 -1
  209. package/dist/version.js +1 -1
  210. package/package.json +1 -1
  211. package/reference.md +29 -300
  212. package/serialization/resources/agents/client/{exportAgentSerialized.d.ts → export.d.ts} +1 -1
  213. package/serialization/resources/agents/client/index.d.ts +1 -1
  214. package/serialization/resources/agents/client/index.js +2 -2
  215. package/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.d.ts +15 -0
  216. package/{dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +4 -4
  217. package/serialization/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
  218. package/serialization/resources/clientSideAccessTokens/client/requests/index.js +3 -3
  219. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +15 -0
  220. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.js +46 -0
  221. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
  222. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js +41 -0
  223. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts +16 -0
  224. package/{dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.js} +4 -4
  225. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +14 -0
  226. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.js +45 -0
  227. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +15 -0
  228. package/{dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.js} +4 -4
  229. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
  230. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js +41 -0
  231. package/serialization/resources/clientSideAccessTokens/types/index.d.ts +6 -6
  232. package/serialization/resources/clientSideAccessTokens/types/index.js +6 -6
  233. package/serialization/resources/index.d.ts +1 -1
  234. package/serialization/resources/index.js +2 -2
  235. package/serialization/resources/projects/types/ProjectsListResponse.d.ts +14 -0
  236. package/serialization/resources/projects/types/ProjectsListResponse.js +45 -0
  237. package/{dist/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts → serialization/resources/projects/types/ProjectsListResponseProjectsItem.d.ts} +2 -2
  238. package/{dist/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js → serialization/resources/projects/types/ProjectsListResponseProjectsItem.js} +2 -2
  239. package/serialization/resources/projects/types/index.d.ts +2 -2
  240. package/serialization/resources/projects/types/index.js +2 -2
  241. package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +0 -1
  242. package/serialization/resources/providers/client/requests/ProviderUpdate.js +0 -1
  243. package/serialization/resources/runs/client/index.d.ts +1 -1
  244. package/serialization/resources/runs/client/index.js +2 -2
  245. package/{dist/serialization/resources/runs/client/listRuns.d.ts → serialization/resources/runs/client/list.d.ts} +1 -1
  246. package/serialization/resources/tags/client/index.d.ts +1 -0
  247. package/{dist/serialization/resources/tag → serialization/resources/tags}/client/index.js +2 -2
  248. package/{dist/serialization/resources/tag/client/listTags.d.ts → serialization/resources/tags/client/list.d.ts} +1 -1
  249. package/serialization/resources/templates/types/TemplatesListResponse.d.ts +14 -0
  250. package/{dist/serialization/resources/templates/types/TemplatesListTemplatesResponse.js → serialization/resources/templates/types/TemplatesListResponse.js} +4 -4
  251. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +13 -0
  252. package/serialization/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.js → TemplatesListResponseTemplatesItem.js} +2 -2
  253. package/serialization/resources/templates/types/index.d.ts +2 -2
  254. package/serialization/resources/templates/types/index.js +2 -2
  255. package/version.d.ts +1 -1
  256. package/version.js +1 -1
  257. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -9
  258. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
  259. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -8
  260. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -9
  261. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
  262. package/api/resources/messages/client/Client.d.ts +0 -43
  263. package/api/resources/messages/client/Client.js +0 -128
  264. package/api/resources/messages/client/index.d.ts +0 -1
  265. package/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +0 -15
  266. package/api/resources/tag/client/Client.d.ts +0 -44
  267. package/api/resources/tag/client/Client.js +0 -146
  268. package/api/resources/tag/client/index.d.ts +0 -1
  269. package/api/resources/tag/client/index.js +0 -17
  270. package/api/resources/tag/client/requests/index.d.ts +0 -1
  271. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -9
  272. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
  273. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -8
  274. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -9
  275. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
  276. package/dist/api/resources/messages/client/Client.d.ts +0 -43
  277. package/dist/api/resources/messages/client/Client.js +0 -128
  278. package/dist/api/resources/messages/client/index.d.ts +0 -1
  279. package/dist/api/resources/messages/client/index.js +0 -2
  280. package/dist/api/resources/messages/index.d.ts +0 -1
  281. package/dist/api/resources/messages/index.js +0 -17
  282. package/dist/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +0 -15
  283. package/dist/api/resources/tag/client/Client.d.ts +0 -44
  284. package/dist/api/resources/tag/client/Client.js +0 -146
  285. package/dist/api/resources/tag/client/index.d.ts +0 -1
  286. package/dist/api/resources/tag/client/index.js +0 -17
  287. package/dist/api/resources/tag/client/requests/index.d.ts +0 -1
  288. package/dist/api/resources/tag/client/requests/index.js +0 -2
  289. package/dist/api/resources/tag/index.d.ts +0 -1
  290. package/dist/api/resources/tag/index.js +0 -17
  291. package/dist/api/resources/templates/types/TemplatesListTemplatesResponse.js +0 -5
  292. package/dist/api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js +0 -5
  293. package/dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +0 -15
  294. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -15
  295. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
  296. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +0 -41
  297. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +0 -16
  298. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -14
  299. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +0 -45
  300. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -15
  301. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
  302. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +0 -41
  303. package/dist/serialization/resources/projects/types/ProjectsListProjectsResponse.d.ts +0 -14
  304. package/dist/serialization/resources/tag/client/index.d.ts +0 -1
  305. package/dist/serialization/resources/tag/index.d.ts +0 -1
  306. package/dist/serialization/resources/tag/index.js +0 -17
  307. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +0 -14
  308. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +0 -13
  309. package/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +0 -15
  310. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -15
  311. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
  312. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +0 -41
  313. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +0 -16
  314. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -14
  315. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +0 -45
  316. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -15
  317. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js +0 -46
  318. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
  319. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +0 -41
  320. package/serialization/resources/projects/types/ProjectsListProjectsResponse.d.ts +0 -14
  321. package/serialization/resources/tag/client/index.d.ts +0 -1
  322. package/serialization/resources/tag/index.d.ts +0 -1
  323. package/serialization/resources/tag/index.js +0 -17
  324. package/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +0 -14
  325. package/serialization/resources/templates/types/TemplatesListTemplatesResponse.js +0 -45
  326. package/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +0 -13
  327. /package/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → ClientSideAccessTokensCreateRequest.js} +0 -0
  328. /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateRequestPolicyItem.js} +0 -0
  329. /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponse.js} +0 -0
  330. /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js → ClientSideAccessTokensCreateResponsePolicy.js} +0 -0
  331. /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +0 -0
  332. /package/api/resources/projects/client/requests/{ProjectsListProjectsRequest.js → ProjectsListRequest.js} +0 -0
  333. /package/api/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponse.js} +0 -0
  334. /package/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.js → ProjectsListResponseProjectsItem.js} +0 -0
  335. /package/api/resources/{providers/client/requests/DeleteProviderRequest.js → runs/client/requests/RunsListRequest.js} +0 -0
  336. /package/api/resources/{runs/client/requests/ListRunsRequest.js → tags/client/requests/TagsListRequest.js} +0 -0
  337. /package/api/resources/{messages/client → tags/client/requests}/index.js +0 -0
  338. /package/api/resources/{tag/client/requests/ListTagsRequest.js → templates/client/requests/TemplatesListRequest.js} +0 -0
  339. /package/api/resources/templates/{client/requests/TemplatesListTemplatesRequest.js → types/TemplatesListResponse.js} +0 -0
  340. /package/api/resources/templates/types/{TemplatesListTemplatesResponse.js → TemplatesListResponseTemplatesItem.js} +0 -0
  341. /package/{api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js → dist/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +0 -0
  342. /package/dist/api/resources/clientSideAccessTokens/{client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → types/ClientSideAccessTokensCreateRequestPolicyItem.js} +0 -0
  343. /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateResponse.js} +0 -0
  344. /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponsePolicy.js} +0 -0
  345. /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +0 -0
  346. /package/dist/api/resources/{clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → projects/client/requests/ProjectsListRequest.js} +0 -0
  347. /package/dist/api/resources/projects/{client/requests/ProjectsListProjectsRequest.js → types/ProjectsListResponse.js} +0 -0
  348. /package/dist/api/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponseProjectsItem.js} +0 -0
  349. /package/dist/api/resources/{projects/types/ProjectsListProjectsResponseProjectsItem.js → runs/client/requests/RunsListRequest.js} +0 -0
  350. /package/dist/api/resources/{providers/client/requests/DeleteProviderRequest.js → tags/client/requests/TagsListRequest.js} +0 -0
  351. /package/{api/resources/tag → dist/api/resources/tags}/client/requests/index.js +0 -0
  352. /package/dist/api/resources/{runs/client/requests/ListRunsRequest.js → templates/client/requests/TemplatesListRequest.js} +0 -0
  353. /package/dist/api/resources/{tag/client/requests/ListTagsRequest.js → templates/types/TemplatesListResponse.js} +0 -0
  354. /package/dist/api/resources/templates/{client/requests/TemplatesListTemplatesRequest.js → types/TemplatesListResponseTemplatesItem.js} +0 -0
  355. /package/dist/serialization/resources/agents/client/{exportAgentSerialized.js → export.js} +0 -0
  356. /package/dist/serialization/resources/runs/client/{listRuns.js → list.js} +0 -0
  357. /package/dist/serialization/resources/{tag/client/listTags.js → tags/client/list.js} +0 -0
  358. /package/{api/resources/messages → dist/serialization/resources/tags}/index.d.ts +0 -0
  359. /package/{api/resources/messages → dist/serialization/resources/tags}/index.js +0 -0
  360. /package/serialization/resources/agents/client/{exportAgentSerialized.js → export.js} +0 -0
  361. /package/serialization/resources/runs/client/{listRuns.js → list.js} +0 -0
  362. /package/serialization/resources/{tag/client/listTags.js → tags/client/list.js} +0 -0
  363. /package/{api/resources/tag → serialization/resources/tags}/index.d.ts +0 -0
  364. /package/{api/resources/tag → serialization/resources/tags}/index.js +0 -0
@@ -70,7 +70,7 @@ class Health {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/health/"),
72
72
  method: "GET",
73
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
74
  contentType: "application/json",
75
75
  requestType: "json",
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -115,7 +115,7 @@ class Identities {
115
115
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
116
116
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/identities/"),
117
117
  method: "GET",
118
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
119
119
  contentType: "application/json",
120
120
  queryParameters: _queryParams,
121
121
  requestType: "json",
@@ -184,7 +184,7 @@ class Identities {
184
184
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
185
185
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/identities/"),
186
186
  method: "POST",
187
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -253,7 +253,7 @@ class Identities {
253
253
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
254
254
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/identities/"),
255
255
  method: "PUT",
256
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
256
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
257
257
  contentType: "application/json",
258
258
  requestType: "json",
259
259
  body: serializers.IdentityUpsert.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -317,7 +317,7 @@ class Identities {
317
317
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
318
318
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/identities/${encodeURIComponent(identityId)}`),
319
319
  method: "GET",
320
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
320
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
321
321
  contentType: "application/json",
322
322
  requestType: "json",
323
323
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -382,7 +382,7 @@ class Identities {
382
382
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
383
383
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/identities/${encodeURIComponent(identityId)}`),
384
384
  method: "DELETE",
385
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
385
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
386
386
  contentType: "application/json",
387
387
  requestType: "json",
388
388
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -440,7 +440,7 @@ class Identities {
440
440
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
441
441
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/identities/${encodeURIComponent(identityId)}`),
442
442
  method: "PATCH",
443
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
443
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
444
444
  contentType: "application/json",
445
445
  requestType: "json",
446
446
  body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -79,7 +79,7 @@ class Properties {
79
79
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
80
80
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/identities/${encodeURIComponent(identityId)}/properties`),
81
81
  method: "PUT",
82
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  body: serializers.identities.properties.upsert.Request.jsonOrThrow(request, {
@@ -22,10 +22,8 @@ export * as health from "./health";
22
22
  export * as providers from "./providers";
23
23
  export * as runs from "./runs";
24
24
  export * as steps from "./steps";
25
- export * as tag from "./tag";
26
- export * as batches from "./batches";
27
- export * as messages from "./messages";
28
25
  export * as tags from "./tags";
26
+ export * as batches from "./batches";
29
27
  export * from "./tools/client/requests";
30
28
  export * from "./sources/client/requests";
31
29
  export * from "./agents/client/requests";
@@ -36,7 +34,7 @@ export * from "./jobs/client/requests";
36
34
  export * from "./providers/client/requests";
37
35
  export * from "./runs/client/requests";
38
36
  export * from "./steps/client/requests";
39
- export * from "./tag/client/requests";
37
+ export * from "./tags/client/requests";
40
38
  export * from "./batches/client/requests";
41
39
  export * from "./voice/client/requests";
42
40
  export * from "./templates/client/requests";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.tags = exports.messages = exports.batches = exports.tag = exports.steps = exports.runs = exports.providers = exports.health = exports.jobs = exports.blocks = exports.embeddings = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
39
+ exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.health = exports.jobs = exports.blocks = exports.embeddings = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
40
40
  exports.tools = __importStar(require("./tools"));
41
41
  __exportStar(require("./tools/types"), exports);
42
42
  exports.agents = __importStar(require("./agents"));
@@ -61,10 +61,8 @@ exports.health = __importStar(require("./health"));
61
61
  exports.providers = __importStar(require("./providers"));
62
62
  exports.runs = __importStar(require("./runs"));
63
63
  exports.steps = __importStar(require("./steps"));
64
- exports.tag = __importStar(require("./tag"));
65
- exports.batches = __importStar(require("./batches"));
66
- exports.messages = __importStar(require("./messages"));
67
64
  exports.tags = __importStar(require("./tags"));
65
+ exports.batches = __importStar(require("./batches"));
68
66
  __exportStar(require("./tools/client/requests"), exports);
69
67
  __exportStar(require("./sources/client/requests"), exports);
70
68
  __exportStar(require("./agents/client/requests"), exports);
@@ -75,7 +73,7 @@ __exportStar(require("./jobs/client/requests"), exports);
75
73
  __exportStar(require("./providers/client/requests"), exports);
76
74
  __exportStar(require("./runs/client/requests"), exports);
77
75
  __exportStar(require("./steps/client/requests"), exports);
78
- __exportStar(require("./tag/client/requests"), exports);
76
+ __exportStar(require("./tags/client/requests"), exports);
79
77
  __exportStar(require("./batches/client/requests"), exports);
80
78
  __exportStar(require("./voice/client/requests"), exports);
81
79
  __exportStar(require("./templates/client/requests"), exports);
@@ -81,7 +81,7 @@ class Jobs {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/jobs/"),
83
83
  method: "GET",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -146,7 +146,7 @@ class Jobs {
146
146
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
147
147
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/jobs/active"),
148
148
  method: "GET",
149
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
150
  contentType: "application/json",
151
151
  requestType: "json",
152
152
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Jobs {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/jobs/${encodeURIComponent(jobId)}`),
213
213
  method: "GET",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -276,7 +276,7 @@ class Jobs {
276
276
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
277
277
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/jobs/${encodeURIComponent(jobId)}`),
278
278
  method: "DELETE",
279
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -70,7 +70,7 @@ class Models {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/models/"),
72
72
  method: "GET",
73
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
74
  contentType: "application/json",
75
75
  requestType: "json",
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -29,13 +29,13 @@ export declare class Projects {
29
29
  /**
30
30
  * List all projects
31
31
  *
32
- * @param {Letta.ProjectsListProjectsRequest} request
32
+ * @param {Letta.ProjectsListRequest} request
33
33
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
34
34
  *
35
35
  * @example
36
- * await client.projects.listprojects()
36
+ * await client.projects.list()
37
37
  */
38
- listprojects(request?: Letta.ProjectsListProjectsRequest, requestOptions?: Projects.RequestOptions): Promise<Letta.ProjectsListProjectsResponse>;
38
+ list(request?: Letta.ProjectsListRequest, requestOptions?: Projects.RequestOptions): Promise<Letta.ProjectsListResponse>;
39
39
  protected _getCustomAuthorizationHeaders(): Promise<{
40
40
  Authorization: string;
41
41
  }>;
@@ -61,13 +61,13 @@ class Projects {
61
61
  /**
62
62
  * List all projects
63
63
  *
64
- * @param {Letta.ProjectsListProjectsRequest} request
64
+ * @param {Letta.ProjectsListRequest} request
65
65
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @example
68
- * await client.projects.listprojects()
68
+ * await client.projects.list()
69
69
  */
70
- listprojects() {
70
+ list() {
71
71
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
72
72
  var _a, _b, _c;
73
73
  const { name, offset, limit } = request;
@@ -84,7 +84,7 @@ class Projects {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/projects"),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -93,7 +93,7 @@ class Projects {
93
93
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
94
94
  });
95
95
  if (_response.ok) {
96
- return serializers.ProjectsListProjectsResponse.parseOrThrow(_response.body, {
96
+ return serializers.ProjectsListResponse.parseOrThrow(_response.body, {
97
97
  unrecognizedObjectKeys: "passthrough",
98
98
  allowUnrecognizedUnionMembers: true,
99
99
  allowUnrecognizedEnumValues: true,
@@ -5,7 +5,7 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface ProjectsListProjectsRequest {
8
+ export interface ProjectsListRequest {
9
9
  name?: string;
10
10
  offset?: string;
11
11
  limit?: string;
@@ -1 +1 @@
1
- export { type ProjectsListProjectsRequest } from "./ProjectsListProjectsRequest";
1
+ export { type ProjectsListRequest } from "./ProjectsListRequest";
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export interface ProjectsListProjectsResponse {
6
- projects: Letta.ProjectsListProjectsResponseProjectsItem[];
5
+ export interface ProjectsListResponse {
6
+ projects: Letta.ProjectsListResponseProjectsItem[];
7
7
  hasNextPage: boolean;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface ProjectsListProjectsResponseProjectsItem {
4
+ export interface ProjectsListResponseProjectsItem {
5
5
  name: string;
6
6
  slug: string;
7
7
  id: string;
@@ -1,2 +1,2 @@
1
- export * from "./ProjectsListProjectsResponseProjectsItem";
2
- export * from "./ProjectsListProjectsResponse";
1
+ export * from "./ProjectsListResponseProjectsItem";
2
+ export * from "./ProjectsListResponse";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ProjectsListProjectsResponseProjectsItem"), exports);
18
- __exportStar(require("./ProjectsListProjectsResponse"), exports);
17
+ __exportStar(require("./ProjectsListResponseProjectsItem"), exports);
18
+ __exportStar(require("./ProjectsListResponse"), exports);
@@ -56,48 +56,30 @@ export declare class Providers {
56
56
  /**
57
57
  * Delete an existing custom provider
58
58
  *
59
- * @param {Letta.DeleteProviderRequest} request
59
+ * @param {string} providerId
60
60
  * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
61
61
  *
62
62
  * @throws {@link Letta.UnprocessableEntityError}
63
63
  *
64
64
  * @example
65
- * await client.providers.deleteProvider({
66
- * providerId: "provider_id"
67
- * })
65
+ * await client.providers.delete("provider_id")
68
66
  */
69
- deleteProvider(request: Letta.DeleteProviderRequest, requestOptions?: Providers.RequestOptions): Promise<unknown>;
67
+ delete(providerId: string, requestOptions?: Providers.RequestOptions): Promise<unknown>;
70
68
  /**
71
69
  * Update an existing custom provider
72
70
  *
71
+ * @param {string} providerId
73
72
  * @param {Letta.ProviderUpdate} request
74
73
  * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
75
74
  *
76
75
  * @throws {@link Letta.UnprocessableEntityError}
77
76
  *
78
77
  * @example
79
- * await client.providers.modifyProvider({
80
- * id: "id",
78
+ * await client.providers.modify("provider_id", {
81
79
  * apiKey: "api_key"
82
80
  * })
83
81
  */
84
- modifyProvider(request: Letta.ProviderUpdate, requestOptions?: Providers.RequestOptions): Promise<Letta.Provider>;
85
- /**
86
- * @param {string} providerId
87
- * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
88
- *
89
- * @example
90
- * await client.providers.delete("provider_id")
91
- */
92
- delete(providerId: string, requestOptions?: Providers.RequestOptions): Promise<void>;
93
- /**
94
- * @param {string} providerId
95
- * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
96
- *
97
- * @example
98
- * await client.providers.modify("provider_id")
99
- */
100
- modify(providerId: string, requestOptions?: Providers.RequestOptions): Promise<void>;
82
+ modify(providerId: string, request: Letta.ProviderUpdate, requestOptions?: Providers.RequestOptions): Promise<Letta.Provider>;
101
83
  protected _getCustomAuthorizationHeaders(): Promise<{
102
84
  Authorization: string;
103
85
  }>;
@@ -84,7 +84,7 @@ class Providers {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -153,7 +153,7 @@ class Providers {
153
153
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
154
154
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
155
155
  method: "POST",
156
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
157
  contentType: "application/json",
158
158
  requestType: "json",
159
159
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -205,28 +205,22 @@ class Providers {
205
205
  /**
206
206
  * Delete an existing custom provider
207
207
  *
208
- * @param {Letta.DeleteProviderRequest} request
208
+ * @param {string} providerId
209
209
  * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
210
210
  *
211
211
  * @throws {@link Letta.UnprocessableEntityError}
212
212
  *
213
213
  * @example
214
- * await client.providers.deleteProvider({
215
- * providerId: "provider_id"
216
- * })
214
+ * await client.providers.delete("provider_id")
217
215
  */
218
- deleteProvider(request, requestOptions) {
216
+ delete(providerId, requestOptions) {
219
217
  return __awaiter(this, void 0, void 0, function* () {
220
218
  var _a, _b, _c;
221
- const { providerId } = request;
222
- const _queryParams = {};
223
- _queryParams["provider_id"] = providerId;
224
219
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
225
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
220
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/providers/${encodeURIComponent(providerId)}`),
226
221
  method: "DELETE",
227
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
222
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
223
  contentType: "application/json",
229
- queryParameters: _queryParams,
230
224
  requestType: "json",
231
225
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
232
226
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -259,7 +253,7 @@ class Providers {
259
253
  body: _response.error.rawBody,
260
254
  });
261
255
  case "timeout":
262
- throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/providers/.");
256
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/providers/{provider_id}.");
263
257
  case "unknown":
264
258
  throw new errors.LettaError({
265
259
  message: _response.error.errorMessage,
@@ -270,24 +264,24 @@ class Providers {
270
264
  /**
271
265
  * Update an existing custom provider
272
266
  *
267
+ * @param {string} providerId
273
268
  * @param {Letta.ProviderUpdate} request
274
269
  * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
275
270
  *
276
271
  * @throws {@link Letta.UnprocessableEntityError}
277
272
  *
278
273
  * @example
279
- * await client.providers.modifyProvider({
280
- * id: "id",
274
+ * await client.providers.modify("provider_id", {
281
275
  * apiKey: "api_key"
282
276
  * })
283
277
  */
284
- modifyProvider(request, requestOptions) {
278
+ modify(providerId, request, requestOptions) {
285
279
  return __awaiter(this, void 0, void 0, function* () {
286
280
  var _a, _b, _c;
287
281
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
288
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
282
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/providers/${encodeURIComponent(providerId)}`),
289
283
  method: "PATCH",
290
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
291
285
  contentType: "application/json",
292
286
  requestType: "json",
293
287
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -321,94 +315,6 @@ class Providers {
321
315
  });
322
316
  }
323
317
  }
324
- switch (_response.error.reason) {
325
- case "non-json":
326
- throw new errors.LettaError({
327
- statusCode: _response.error.statusCode,
328
- body: _response.error.rawBody,
329
- });
330
- case "timeout":
331
- throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/providers/.");
332
- case "unknown":
333
- throw new errors.LettaError({
334
- message: _response.error.errorMessage,
335
- });
336
- }
337
- });
338
- }
339
- /**
340
- * @param {string} providerId
341
- * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
342
- *
343
- * @example
344
- * await client.providers.delete("provider_id")
345
- */
346
- delete(providerId, requestOptions) {
347
- return __awaiter(this, void 0, void 0, function* () {
348
- var _a, _b, _c;
349
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/providers/${encodeURIComponent(providerId)}`),
351
- method: "DELETE",
352
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
353
- contentType: "application/json",
354
- requestType: "json",
355
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
356
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
357
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
358
- });
359
- if (_response.ok) {
360
- return;
361
- }
362
- if (_response.error.reason === "status-code") {
363
- throw new errors.LettaError({
364
- statusCode: _response.error.statusCode,
365
- body: _response.error.body,
366
- });
367
- }
368
- switch (_response.error.reason) {
369
- case "non-json":
370
- throw new errors.LettaError({
371
- statusCode: _response.error.statusCode,
372
- body: _response.error.rawBody,
373
- });
374
- case "timeout":
375
- throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/providers/{provider_id}.");
376
- case "unknown":
377
- throw new errors.LettaError({
378
- message: _response.error.errorMessage,
379
- });
380
- }
381
- });
382
- }
383
- /**
384
- * @param {string} providerId
385
- * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
386
- *
387
- * @example
388
- * await client.providers.modify("provider_id")
389
- */
390
- modify(providerId, requestOptions) {
391
- return __awaiter(this, void 0, void 0, function* () {
392
- var _a, _b, _c;
393
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
394
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/providers/${encodeURIComponent(providerId)}`),
395
- method: "PATCH",
396
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.99", "User-Agent": "@letta-ai/letta-client/0.1.99", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
397
- contentType: "application/json",
398
- requestType: "json",
399
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
400
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
401
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
402
- });
403
- if (_response.ok) {
404
- return;
405
- }
406
- if (_response.error.reason === "status-code") {
407
- throw new errors.LettaError({
408
- statusCode: _response.error.statusCode,
409
- body: _response.error.body,
410
- });
411
- }
412
318
  switch (_response.error.reason) {
413
319
  case "non-json":
414
320
  throw new errors.LettaError({
@@ -4,13 +4,10 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * id: "id",
8
7
  * apiKey: "api_key"
9
8
  * }
10
9
  */
11
10
  export interface ProviderUpdate {
12
- /** The id of the provider to update. */
13
- id: string;
14
11
  /** API key used for requests to the provider. */
15
12
  apiKey: string;
16
13
  }
@@ -1,4 +1,3 @@
1
1
  export { type ProvidersListRequest } from "./ProvidersListRequest";
2
2
  export { type ProviderCreate } from "./ProviderCreate";
3
- export { type DeleteProviderRequest } from "./DeleteProviderRequest";
4
3
  export { type ProviderUpdate } from "./ProviderUpdate";
@@ -38,15 +38,15 @@ export declare class Runs {
38
38
  /**
39
39
  * List all runs.
40
40
  *
41
- * @param {Letta.ListRunsRequest} request
41
+ * @param {Letta.RunsListRequest} request
42
42
  * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
43
43
  *
44
44
  * @throws {@link Letta.UnprocessableEntityError}
45
45
  *
46
46
  * @example
47
- * await client.runs.listRuns()
47
+ * await client.runs.list()
48
48
  */
49
- listRuns(request?: Letta.ListRunsRequest, requestOptions?: Runs.RequestOptions): Promise<Letta.Run[]>;
49
+ list(request?: Letta.RunsListRequest, requestOptions?: Runs.RequestOptions): Promise<Letta.Run[]>;
50
50
  /**
51
51
  * List all active runs.
52
52
  *
@@ -83,13 +83,6 @@ export declare class Runs {
83
83
  * await client.runs.delete("run_id")
84
84
  */
85
85
  delete(runId: string, requestOptions?: Runs.RequestOptions): Promise<Letta.Run>;
86
- /**
87
- * @param {Runs.RequestOptions} requestOptions - Request-specific configuration.
88
- *
89
- * @example
90
- * await client.runs.list()
91
- */
92
- list(requestOptions?: Runs.RequestOptions): Promise<void>;
93
86
  protected _getCustomAuthorizationHeaders(): Promise<{
94
87
  Authorization: string;
95
88
  }>;