@letta-ai/letta-client 0.1.91 → 0.1.93

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 (268) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +10 -0
  3. package/api/errors/BadRequestError.d.ts +7 -0
  4. package/api/errors/BadRequestError.js +51 -0
  5. package/api/errors/index.d.ts +1 -0
  6. package/api/errors/index.js +1 -0
  7. package/api/resources/agents/client/Client.js +13 -13
  8. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  9. package/api/resources/agents/resources/context/client/Client.js +1 -1
  10. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  12. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  13. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  14. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  15. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  16. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  17. package/api/resources/blocks/client/Client.js +6 -6
  18. package/api/resources/clientSideAccessTokens/client/Client.d.ts +66 -0
  19. package/api/resources/clientSideAccessTokens/client/Client.js +195 -0
  20. package/api/resources/clientSideAccessTokens/client/index.d.ts +1 -0
  21. package/api/resources/clientSideAccessTokens/client/index.js +17 -0
  22. package/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +22 -0
  23. package/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js +5 -0
  24. package/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -0
  25. package/api/resources/clientSideAccessTokens/client/requests/index.js +2 -0
  26. package/api/resources/clientSideAccessTokens/index.d.ts +2 -0
  27. package/api/resources/clientSideAccessTokens/index.js +18 -0
  28. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +9 -0
  29. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js +5 -0
  30. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +10 -0
  31. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +12 -0
  32. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +10 -0
  33. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.js +5 -0
  34. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +8 -0
  35. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +5 -0
  36. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +9 -0
  37. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js +5 -0
  38. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +10 -0
  39. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +12 -0
  40. package/api/resources/clientSideAccessTokens/types/index.d.ts +6 -0
  41. package/api/resources/clientSideAccessTokens/types/index.js +22 -0
  42. package/api/resources/groups/client/Client.js +6 -6
  43. package/api/resources/groups/resources/messages/client/Client.js +4 -4
  44. package/api/resources/health/client/Client.js +1 -1
  45. package/api/resources/identities/client/Client.js +7 -7
  46. package/api/resources/index.d.ts +6 -0
  47. package/api/resources/index.js +7 -1
  48. package/api/resources/jobs/client/Client.js +4 -4
  49. package/api/resources/models/client/Client.js +2 -2
  50. package/api/resources/projects/client/Client.d.ts +42 -0
  51. package/api/resources/projects/client/Client.js +132 -0
  52. package/api/resources/projects/client/index.d.ts +1 -0
  53. package/api/resources/projects/client/index.js +17 -0
  54. package/api/resources/projects/client/requests/ProjectsListProjectsRequest.d.ts +12 -0
  55. package/api/resources/projects/client/requests/ProjectsListProjectsRequest.js +5 -0
  56. package/api/resources/projects/client/requests/index.d.ts +1 -0
  57. package/api/resources/projects/client/requests/index.js +2 -0
  58. package/api/resources/projects/index.d.ts +2 -0
  59. package/api/resources/projects/index.js +18 -0
  60. package/api/resources/projects/types/ProjectsListProjectsResponse.d.ts +8 -0
  61. package/api/resources/projects/types/ProjectsListProjectsResponse.js +5 -0
  62. package/api/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts +8 -0
  63. package/api/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js +5 -0
  64. package/api/resources/projects/types/index.d.ts +2 -0
  65. package/api/resources/projects/types/index.js +18 -0
  66. package/api/resources/providers/client/Client.js +4 -4
  67. package/api/resources/runs/client/Client.js +7 -7
  68. package/api/resources/sources/client/Client.js +6 -6
  69. package/api/resources/sources/resources/files/client/Client.js +3 -3
  70. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  71. package/api/resources/steps/client/Client.js +2 -2
  72. package/api/resources/tag/client/Client.js +1 -1
  73. package/api/resources/templates/client/Client.d.ts +10 -0
  74. package/api/resources/templates/client/Client.js +68 -1
  75. package/api/resources/templates/client/requests/TemplatesListTemplatesRequest.d.ts +13 -0
  76. package/api/resources/templates/client/requests/TemplatesListTemplatesRequest.js +5 -0
  77. package/api/resources/templates/client/requests/index.d.ts +1 -0
  78. package/api/resources/templates/types/TemplatesListTemplatesResponse.d.ts +8 -0
  79. package/api/resources/templates/types/TemplatesListTemplatesResponse.js +5 -0
  80. package/api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +7 -0
  81. package/api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js +5 -0
  82. package/api/resources/templates/types/index.d.ts +2 -0
  83. package/api/resources/templates/types/index.js +2 -0
  84. package/api/resources/tools/client/Client.js +16 -16
  85. package/api/resources/voice/client/Client.js +1 -1
  86. package/api/types/BadRequestErrorBody.d.ts +6 -0
  87. package/api/types/BadRequestErrorBody.js +5 -0
  88. package/api/types/index.d.ts +1 -0
  89. package/api/types/index.js +1 -0
  90. package/dist/Client.d.ts +6 -0
  91. package/dist/Client.js +10 -0
  92. package/dist/api/errors/BadRequestError.d.ts +7 -0
  93. package/dist/api/errors/BadRequestError.js +51 -0
  94. package/dist/api/errors/index.d.ts +1 -0
  95. package/dist/api/errors/index.js +1 -0
  96. package/dist/api/resources/agents/client/Client.js +13 -13
  97. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  98. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  99. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  100. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  101. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  102. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  103. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  104. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  105. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  106. package/dist/api/resources/blocks/client/Client.js +6 -6
  107. package/dist/api/resources/clientSideAccessTokens/client/Client.d.ts +66 -0
  108. package/dist/api/resources/clientSideAccessTokens/client/Client.js +195 -0
  109. package/dist/api/resources/clientSideAccessTokens/client/index.d.ts +1 -0
  110. package/dist/api/resources/clientSideAccessTokens/client/index.js +17 -0
  111. package/dist/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +22 -0
  112. package/dist/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js +5 -0
  113. package/dist/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -0
  114. package/dist/api/resources/clientSideAccessTokens/client/requests/index.js +2 -0
  115. package/dist/api/resources/clientSideAccessTokens/index.d.ts +2 -0
  116. package/dist/api/resources/clientSideAccessTokens/index.js +18 -0
  117. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +9 -0
  118. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js +5 -0
  119. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +10 -0
  120. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +12 -0
  121. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +10 -0
  122. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.js +5 -0
  123. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +8 -0
  124. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +5 -0
  125. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +9 -0
  126. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js +5 -0
  127. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +10 -0
  128. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +12 -0
  129. package/dist/api/resources/clientSideAccessTokens/types/index.d.ts +6 -0
  130. package/dist/api/resources/clientSideAccessTokens/types/index.js +22 -0
  131. package/dist/api/resources/groups/client/Client.js +6 -6
  132. package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
  133. package/dist/api/resources/health/client/Client.js +1 -1
  134. package/dist/api/resources/identities/client/Client.js +7 -7
  135. package/dist/api/resources/index.d.ts +6 -0
  136. package/dist/api/resources/index.js +7 -1
  137. package/dist/api/resources/jobs/client/Client.js +4 -4
  138. package/dist/api/resources/models/client/Client.js +2 -2
  139. package/dist/api/resources/projects/client/Client.d.ts +42 -0
  140. package/dist/api/resources/projects/client/Client.js +132 -0
  141. package/dist/api/resources/projects/client/index.d.ts +1 -0
  142. package/dist/api/resources/projects/client/index.js +17 -0
  143. package/dist/api/resources/projects/client/requests/ProjectsListProjectsRequest.d.ts +12 -0
  144. package/dist/api/resources/projects/client/requests/ProjectsListProjectsRequest.js +5 -0
  145. package/dist/api/resources/projects/client/requests/index.d.ts +1 -0
  146. package/dist/api/resources/projects/client/requests/index.js +2 -0
  147. package/dist/api/resources/projects/index.d.ts +2 -0
  148. package/dist/api/resources/projects/index.js +18 -0
  149. package/dist/api/resources/projects/types/ProjectsListProjectsResponse.d.ts +8 -0
  150. package/dist/api/resources/projects/types/ProjectsListProjectsResponse.js +5 -0
  151. package/dist/api/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts +8 -0
  152. package/dist/api/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js +5 -0
  153. package/dist/api/resources/projects/types/index.d.ts +2 -0
  154. package/dist/api/resources/projects/types/index.js +18 -0
  155. package/dist/api/resources/providers/client/Client.js +4 -4
  156. package/dist/api/resources/runs/client/Client.js +7 -7
  157. package/dist/api/resources/sources/client/Client.js +6 -6
  158. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  159. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  160. package/dist/api/resources/steps/client/Client.js +2 -2
  161. package/dist/api/resources/tag/client/Client.js +1 -1
  162. package/dist/api/resources/templates/client/Client.d.ts +10 -0
  163. package/dist/api/resources/templates/client/Client.js +68 -1
  164. package/dist/api/resources/templates/client/requests/TemplatesListTemplatesRequest.d.ts +13 -0
  165. package/dist/api/resources/templates/client/requests/TemplatesListTemplatesRequest.js +5 -0
  166. package/dist/api/resources/templates/client/requests/index.d.ts +1 -0
  167. package/dist/api/resources/templates/types/TemplatesListTemplatesResponse.d.ts +8 -0
  168. package/dist/api/resources/templates/types/TemplatesListTemplatesResponse.js +5 -0
  169. package/dist/api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +7 -0
  170. package/dist/api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js +5 -0
  171. package/dist/api/resources/templates/types/index.d.ts +2 -0
  172. package/dist/api/resources/templates/types/index.js +2 -0
  173. package/dist/api/resources/tools/client/Client.js +16 -16
  174. package/dist/api/resources/voice/client/Client.js +1 -1
  175. package/dist/api/types/BadRequestErrorBody.d.ts +6 -0
  176. package/dist/api/types/BadRequestErrorBody.js +5 -0
  177. package/dist/api/types/index.d.ts +1 -0
  178. package/dist/api/types/index.js +1 -0
  179. package/dist/serialization/resources/clientSideAccessTokens/client/index.d.ts +1 -0
  180. package/dist/serialization/resources/clientSideAccessTokens/client/index.js +17 -0
  181. package/dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +15 -0
  182. package/dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js +46 -0
  183. package/dist/serialization/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -0
  184. package/dist/serialization/resources/clientSideAccessTokens/client/requests/index.js +5 -0
  185. package/dist/serialization/resources/clientSideAccessTokens/index.d.ts +2 -0
  186. package/dist/serialization/resources/clientSideAccessTokens/index.js +18 -0
  187. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +15 -0
  188. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js +46 -0
  189. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +10 -0
  190. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +41 -0
  191. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +16 -0
  192. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.js +47 -0
  193. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +14 -0
  194. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +45 -0
  195. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +15 -0
  196. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js +46 -0
  197. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +10 -0
  198. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +41 -0
  199. package/dist/serialization/resources/clientSideAccessTokens/types/index.d.ts +6 -0
  200. package/dist/serialization/resources/clientSideAccessTokens/types/index.js +22 -0
  201. package/dist/serialization/resources/index.d.ts +5 -0
  202. package/dist/serialization/resources/index.js +6 -1
  203. package/dist/serialization/resources/projects/index.d.ts +1 -0
  204. package/dist/serialization/resources/projects/index.js +17 -0
  205. package/dist/serialization/resources/projects/types/ProjectsListProjectsResponse.d.ts +14 -0
  206. package/dist/serialization/resources/projects/types/ProjectsListProjectsResponse.js +45 -0
  207. package/dist/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts +14 -0
  208. package/dist/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js +45 -0
  209. package/dist/serialization/resources/projects/types/index.d.ts +2 -0
  210. package/dist/serialization/resources/projects/types/index.js +18 -0
  211. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +14 -0
  212. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponse.js +45 -0
  213. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +13 -0
  214. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js +44 -0
  215. package/dist/serialization/resources/templates/types/index.d.ts +2 -0
  216. package/dist/serialization/resources/templates/types/index.js +2 -0
  217. package/dist/serialization/types/BadRequestErrorBody.d.ts +12 -0
  218. package/dist/serialization/types/BadRequestErrorBody.js +43 -0
  219. package/dist/serialization/types/index.d.ts +1 -0
  220. package/dist/serialization/types/index.js +1 -0
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/package.json +1 -1
  224. package/reference.md +275 -0
  225. package/serialization/resources/clientSideAccessTokens/client/index.d.ts +1 -0
  226. package/serialization/resources/clientSideAccessTokens/client/index.js +17 -0
  227. package/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +15 -0
  228. package/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js +46 -0
  229. package/serialization/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -0
  230. package/serialization/resources/clientSideAccessTokens/client/requests/index.js +5 -0
  231. package/serialization/resources/clientSideAccessTokens/index.d.ts +2 -0
  232. package/serialization/resources/clientSideAccessTokens/index.js +18 -0
  233. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +15 -0
  234. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js +46 -0
  235. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +10 -0
  236. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +41 -0
  237. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +16 -0
  238. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.js +47 -0
  239. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +14 -0
  240. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +45 -0
  241. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +15 -0
  242. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js +46 -0
  243. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +10 -0
  244. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +41 -0
  245. package/serialization/resources/clientSideAccessTokens/types/index.d.ts +6 -0
  246. package/serialization/resources/clientSideAccessTokens/types/index.js +22 -0
  247. package/serialization/resources/index.d.ts +5 -0
  248. package/serialization/resources/index.js +6 -1
  249. package/serialization/resources/projects/index.d.ts +1 -0
  250. package/serialization/resources/projects/index.js +17 -0
  251. package/serialization/resources/projects/types/ProjectsListProjectsResponse.d.ts +14 -0
  252. package/serialization/resources/projects/types/ProjectsListProjectsResponse.js +45 -0
  253. package/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts +14 -0
  254. package/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js +45 -0
  255. package/serialization/resources/projects/types/index.d.ts +2 -0
  256. package/serialization/resources/projects/types/index.js +18 -0
  257. package/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +14 -0
  258. package/serialization/resources/templates/types/TemplatesListTemplatesResponse.js +45 -0
  259. package/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +13 -0
  260. package/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js +44 -0
  261. package/serialization/resources/templates/types/index.d.ts +2 -0
  262. package/serialization/resources/templates/types/index.js +2 -0
  263. package/serialization/types/BadRequestErrorBody.d.ts +12 -0
  264. package/serialization/types/BadRequestErrorBody.js +43 -0
  265. package/serialization/types/index.d.ts +1 -0
  266. package/serialization/types/index.js +1 -0
  267. package/version.d.ts +1 -1
  268. package/version.js +1 -1
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem = "read_messages" | "write_messages" | "read_agent" | "write_agent";
5
+ export declare const ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem: {
6
+ readonly ReadMessages: "read_messages";
7
+ readonly WriteMessages: "write_messages";
8
+ readonly ReadAgent: "read_agent";
9
+ readonly WriteAgent: "write_agent";
10
+ };
@@ -0,0 +1,12 @@
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.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem = void 0;
7
+ exports.ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem = {
8
+ ReadMessages: "read_messages",
9
+ WriteMessages: "write_messages",
10
+ ReadAgent: "read_agent",
11
+ WriteAgent: "write_agent",
12
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export interface ClientSideAccessTokensCreateClientSideAccessTokenResponse {
6
+ policy: Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy;
7
+ token: string;
8
+ hostname: string;
9
+ expiresAt: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export interface ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy {
6
+ version: "1";
7
+ data: Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export interface ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem {
6
+ type: "agent";
7
+ id: string;
8
+ access: Letta.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem[];
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem = "read_messages" | "write_messages" | "read_agent" | "write_agent";
5
+ export declare const ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem: {
6
+ readonly ReadMessages: "read_messages";
7
+ readonly WriteMessages: "write_messages";
8
+ readonly ReadAgent: "read_agent";
9
+ readonly WriteAgent: "write_agent";
10
+ };
@@ -0,0 +1,12 @@
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.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem = void 0;
7
+ exports.ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem = {
8
+ ReadMessages: "read_messages",
9
+ WriteMessages: "write_messages",
10
+ ReadAgent: "read_agent",
11
+ WriteAgent: "write_agent",
12
+ };
@@ -0,0 +1,6 @@
1
+ export * from "./ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem";
2
+ export * from "./ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem";
3
+ export * from "./ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem";
4
+ export * from "./ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem";
5
+ export * from "./ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy";
6
+ export * from "./ClientSideAccessTokensCreateClientSideAccessTokenResponse";
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem"), exports);
18
+ __exportStar(require("./ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem"), exports);
19
+ __exportStar(require("./ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem"), exports);
20
+ __exportStar(require("./ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem"), exports);
21
+ __exportStar(require("./ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy"), exports);
22
+ __exportStar(require("./ClientSideAccessTokensCreateClientSideAccessTokenResponse"), exports);
@@ -109,7 +109,7 @@ class Groups {
109
109
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
110
110
  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/groups/"),
111
111
  method: "GET",
112
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
112
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
113
113
  contentType: "application/json",
114
114
  queryParameters: _queryParams,
115
115
  requestType: "json",
@@ -179,7 +179,7 @@ class Groups {
179
179
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
180
180
  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/groups/"),
181
181
  method: "POST",
182
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
182
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  body: serializers.GroupCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -245,7 +245,7 @@ class Groups {
245
245
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
246
246
  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/groups/${encodeURIComponent(groupId)}`),
247
247
  method: "GET",
248
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
248
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -310,7 +310,7 @@ class Groups {
310
310
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
311
311
  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/groups/${encodeURIComponent(groupId)}`),
312
312
  method: "DELETE",
313
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
313
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
316
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -371,7 +371,7 @@ class Groups {
371
371
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
372
372
  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/groups/${encodeURIComponent(groupId)}`),
373
373
  method: "PATCH",
374
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
374
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
375
375
  contentType: "application/json",
376
376
  requestType: "json",
377
377
  body: serializers.GroupUpdate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -437,7 +437,7 @@ class Groups {
437
437
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
438
438
  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/groups/${encodeURIComponent(groupId)}/reset-messages`),
439
439
  method: "PATCH",
440
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
440
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
441
441
  contentType: "application/json",
442
442
  requestType: "json",
443
443
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -97,7 +97,7 @@ class Messages {
97
97
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
98
98
  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/groups/${encodeURIComponent(groupId)}/messages`),
99
99
  method: "GET",
100
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
100
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
101
101
  contentType: "application/json",
102
102
  queryParameters: _queryParams,
103
103
  requestType: "json",
@@ -173,7 +173,7 @@ class Messages {
173
173
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
174
174
  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/groups/${encodeURIComponent(groupId)}/messages`),
175
175
  method: "POST",
176
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
176
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
177
177
  contentType: "application/json",
178
178
  requestType: "json",
179
179
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -233,7 +233,7 @@ class Messages {
233
233
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
234
234
  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/groups/${encodeURIComponent(groupId)}/messages/stream`),
235
235
  method: "POST",
236
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
236
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
237
237
  contentType: "application/json",
238
238
  requestType: "json",
239
239
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -314,7 +314,7 @@ class Messages {
314
314
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
315
315
  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/groups/${encodeURIComponent(groupId)}/messages/${encodeURIComponent(messageId)}`),
316
316
  method: "PATCH",
317
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
317
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  body: serializers.groups.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -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.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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,
@@ -110,7 +110,7 @@ class Identities {
110
110
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
111
111
  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/"),
112
112
  method: "GET",
113
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
113
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
114
114
  contentType: "application/json",
115
115
  queryParameters: _queryParams,
116
116
  requestType: "json",
@@ -179,7 +179,7 @@ class Identities {
179
179
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
180
180
  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/"),
181
181
  method: "POST",
182
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
182
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -248,7 +248,7 @@ class Identities {
248
248
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
249
249
  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/"),
250
250
  method: "PUT",
251
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
251
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
252
252
  contentType: "application/json",
253
253
  requestType: "json",
254
254
  body: serializers.IdentityUpsert.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -312,7 +312,7 @@ class Identities {
312
312
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
313
313
  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)}`),
314
314
  method: "GET",
315
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
315
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
316
316
  contentType: "application/json",
317
317
  requestType: "json",
318
318
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -377,7 +377,7 @@ class Identities {
377
377
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
378
378
  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)}`),
379
379
  method: "DELETE",
380
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
380
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
381
381
  contentType: "application/json",
382
382
  requestType: "json",
383
383
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -435,7 +435,7 @@ class Identities {
435
435
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
436
436
  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)}`),
437
437
  method: "PATCH",
438
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
438
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
439
439
  contentType: "application/json",
440
440
  requestType: "json",
441
441
  body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -504,7 +504,7 @@ class Identities {
504
504
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
505
505
  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`),
506
506
  method: "PUT",
507
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
507
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
508
508
  contentType: "application/json",
509
509
  requestType: "json",
510
510
  body: serializers.identities.upsertIdentityProperties.Request.jsonOrThrow(request, {
@@ -8,6 +8,10 @@ export * as voice from "./voice";
8
8
  export * from "./voice/types";
9
9
  export * as templates from "./templates";
10
10
  export * from "./templates/types";
11
+ export * as clientSideAccessTokens from "./clientSideAccessTokens";
12
+ export * from "./clientSideAccessTokens/types";
13
+ export * as projects from "./projects";
14
+ export * from "./projects/types";
11
15
  export * as sources from "./sources";
12
16
  export * as identities from "./identities";
13
17
  export * as models from "./models";
@@ -31,3 +35,5 @@ export * from "./steps/client/requests";
31
35
  export * from "./tag/client/requests";
32
36
  export * from "./voice/client/requests";
33
37
  export * from "./templates/client/requests";
38
+ export * from "./clientSideAccessTokens/client/requests";
39
+ export * from "./projects/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.tag = exports.steps = exports.runs = exports.providers = exports.health = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
39
+ exports.tag = exports.steps = exports.runs = exports.providers = exports.health = exports.jobs = exports.blocks = 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"));
@@ -47,6 +47,10 @@ exports.voice = __importStar(require("./voice"));
47
47
  __exportStar(require("./voice/types"), exports);
48
48
  exports.templates = __importStar(require("./templates"));
49
49
  __exportStar(require("./templates/types"), exports);
50
+ exports.clientSideAccessTokens = __importStar(require("./clientSideAccessTokens"));
51
+ __exportStar(require("./clientSideAccessTokens/types"), exports);
52
+ exports.projects = __importStar(require("./projects"));
53
+ __exportStar(require("./projects/types"), exports);
50
54
  exports.sources = __importStar(require("./sources"));
51
55
  exports.identities = __importStar(require("./identities"));
52
56
  exports.models = __importStar(require("./models"));
@@ -70,3 +74,5 @@ __exportStar(require("./steps/client/requests"), exports);
70
74
  __exportStar(require("./tag/client/requests"), exports);
71
75
  __exportStar(require("./voice/client/requests"), exports);
72
76
  __exportStar(require("./templates/client/requests"), exports);
77
+ __exportStar(require("./clientSideAccessTokens/client/requests"), exports);
78
+ __exportStar(require("./projects/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.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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,
@@ -119,7 +119,7 @@ class Models {
119
119
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
120
120
  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/embedding"),
121
121
  method: "GET",
122
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.91", "User-Agent": "@letta-ai/letta-client/0.1.91", "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),
122
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.93", "User-Agent": "@letta-ai/letta-client/0.1.93", "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),
123
123
  contentType: "application/json",
124
124
  requestType: "json",
125
125
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,42 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Letta from "../../../index";
7
+ export declare namespace Projects {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<string | undefined>;
13
+ fetcher?: core.FetchFunction;
14
+ }
15
+ interface RequestOptions {
16
+ /** The maximum time to wait for a response in seconds. */
17
+ timeoutInSeconds?: number;
18
+ /** The number of times to retry the request. Defaults to 2. */
19
+ maxRetries?: number;
20
+ /** A hook to abort the request. */
21
+ abortSignal?: AbortSignal;
22
+ /** Additional headers to include in the request. */
23
+ headers?: Record<string, string>;
24
+ }
25
+ }
26
+ export declare class Projects {
27
+ protected readonly _options: Projects.Options;
28
+ constructor(_options?: Projects.Options);
29
+ /**
30
+ * List all projects
31
+ *
32
+ * @param {Letta.ProjectsListProjectsRequest} request
33
+ * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @example
36
+ * await client.projects.listprojects()
37
+ */
38
+ listprojects(request?: Letta.ProjectsListProjectsRequest, requestOptions?: Projects.RequestOptions): Promise<Letta.ProjectsListProjectsResponse>;
39
+ protected _getCustomAuthorizationHeaders(): Promise<{
40
+ Authorization: string;
41
+ }>;
42
+ }