@letta-ai/letta-client 0.0.68655 → 0.0.68657

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 (261) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +45 -40
  3. package/README.md +9 -9
  4. package/api/resources/agents/client/Client.js +9 -9
  5. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
  6. package/api/resources/agents/client/requests/UpdateAgent.d.ts +3 -1
  7. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  8. package/api/resources/agents/resources/context/client/Client.js +1 -1
  9. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  10. package/api/resources/agents/resources/files/client/Client.js +4 -4
  11. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  12. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  13. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  14. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  15. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  16. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  17. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  18. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  19. package/api/resources/archives/client/Client.d.ts +78 -0
  20. package/api/resources/archives/client/Client.js +325 -0
  21. package/api/resources/archives/client/index.d.ts +1 -0
  22. package/api/resources/archives/client/index.js +17 -0
  23. package/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  24. package/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
  25. package/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
  26. package/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
  27. package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
  28. package/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
  29. package/api/resources/archives/client/requests/index.d.ts +3 -0
  30. package/api/resources/archives/client/requests/index.js +2 -0
  31. package/api/resources/archives/index.d.ts +2 -0
  32. package/api/resources/archives/index.js +18 -0
  33. package/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
  34. package/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
  35. package/api/resources/archives/types/index.d.ts +1 -0
  36. package/api/resources/archives/types/index.js +17 -0
  37. package/api/resources/batches/client/Client.js +4 -4
  38. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  39. package/api/resources/blocks/client/Client.js +6 -6
  40. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  41. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  42. package/api/resources/folders/client/Client.d.ts +1 -1
  43. package/api/resources/folders/client/Client.js +9 -9
  44. package/api/resources/folders/resources/agents/client/Client.js +1 -1
  45. package/api/resources/folders/resources/files/client/Client.js +3 -3
  46. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  47. package/api/resources/groups/client/Client.js +6 -6
  48. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  49. package/api/resources/health/client/Client.js +1 -1
  50. package/api/resources/identities/client/Client.js +7 -7
  51. package/api/resources/identities/resources/agents/client/Client.js +1 -1
  52. package/api/resources/identities/resources/blocks/client/Client.js +1 -1
  53. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  54. package/api/resources/index.d.ts +3 -0
  55. package/api/resources/index.js +4 -1
  56. package/api/resources/jobs/client/Client.d.ts +0 -1
  57. package/api/resources/jobs/client/Client.js +9 -7
  58. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
  59. package/api/resources/models/client/Client.js +2 -2
  60. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  61. package/api/resources/projects/client/Client.js +1 -1
  62. package/api/resources/providers/client/Client.js +6 -6
  63. package/api/resources/runs/client/Client.js +15 -7
  64. package/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
  65. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  66. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  67. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  68. package/api/resources/sources/client/Client.js +10 -10
  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/steps/resources/feedback/client/Client.js +1 -1
  73. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  74. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  75. package/api/resources/tags/client/Client.js +1 -1
  76. package/api/resources/telemetry/client/Client.js +1 -1
  77. package/api/resources/templates/client/Client.js +9 -9
  78. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  79. package/api/resources/tools/client/Client.js +20 -20
  80. package/api/resources/voice/client/Client.js +1 -1
  81. package/api/types/AgentState.d.ts +3 -1
  82. package/api/types/Archive.d.ts +35 -0
  83. package/api/types/Archive.js +5 -0
  84. package/api/types/BatchJob.d.ts +2 -0
  85. package/api/types/InternalTemplateAgentCreate.d.ts +3 -1
  86. package/api/types/Job.d.ts +2 -0
  87. package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +3 -1
  88. package/api/types/Run.d.ts +2 -0
  89. package/api/types/index.d.ts +1 -0
  90. package/api/types/index.js +1 -0
  91. package/dist/Client.d.ts +3 -0
  92. package/dist/Client.js +45 -40
  93. package/dist/api/resources/agents/client/Client.js +9 -9
  94. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
  95. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +3 -1
  96. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  97. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  98. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  99. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  100. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  101. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  102. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  103. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  104. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  105. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  106. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  107. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  108. package/dist/api/resources/archives/client/Client.d.ts +78 -0
  109. package/dist/api/resources/archives/client/Client.js +325 -0
  110. package/dist/api/resources/archives/client/index.d.ts +1 -0
  111. package/dist/api/resources/archives/client/index.js +17 -0
  112. package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  113. package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
  114. package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
  115. package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
  116. package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
  117. package/dist/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
  118. package/dist/api/resources/archives/client/requests/index.d.ts +3 -0
  119. package/dist/api/resources/archives/client/requests/index.js +2 -0
  120. package/dist/api/resources/archives/index.d.ts +2 -0
  121. package/dist/api/resources/archives/index.js +18 -0
  122. package/dist/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
  123. package/dist/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
  124. package/dist/api/resources/archives/types/index.d.ts +1 -0
  125. package/dist/api/resources/archives/types/index.js +17 -0
  126. package/dist/api/resources/batches/client/Client.js +4 -4
  127. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  128. package/dist/api/resources/blocks/client/Client.js +6 -6
  129. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  130. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  131. package/dist/api/resources/folders/client/Client.d.ts +1 -1
  132. package/dist/api/resources/folders/client/Client.js +9 -9
  133. package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
  134. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  135. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  136. package/dist/api/resources/groups/client/Client.js +6 -6
  137. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  138. package/dist/api/resources/health/client/Client.js +1 -1
  139. package/dist/api/resources/identities/client/Client.js +7 -7
  140. package/dist/api/resources/identities/resources/agents/client/Client.js +1 -1
  141. package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
  142. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  143. package/dist/api/resources/index.d.ts +3 -0
  144. package/dist/api/resources/index.js +4 -1
  145. package/dist/api/resources/jobs/client/Client.d.ts +0 -1
  146. package/dist/api/resources/jobs/client/Client.js +9 -7
  147. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
  148. package/dist/api/resources/models/client/Client.js +2 -2
  149. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  150. package/dist/api/resources/projects/client/Client.js +1 -1
  151. package/dist/api/resources/providers/client/Client.js +6 -6
  152. package/dist/api/resources/runs/client/Client.js +15 -7
  153. package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
  154. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  155. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  156. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  157. package/dist/api/resources/sources/client/Client.js +10 -10
  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/steps/resources/feedback/client/Client.js +1 -1
  162. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  163. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  164. package/dist/api/resources/tags/client/Client.js +1 -1
  165. package/dist/api/resources/telemetry/client/Client.js +1 -1
  166. package/dist/api/resources/templates/client/Client.js +9 -9
  167. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  168. package/dist/api/resources/tools/client/Client.js +20 -20
  169. package/dist/api/resources/voice/client/Client.js +1 -1
  170. package/dist/api/types/AgentState.d.ts +3 -1
  171. package/dist/api/types/Archive.d.ts +35 -0
  172. package/dist/api/types/Archive.js +5 -0
  173. package/dist/api/types/BatchJob.d.ts +2 -0
  174. package/dist/api/types/InternalTemplateAgentCreate.d.ts +3 -1
  175. package/dist/api/types/Job.d.ts +2 -0
  176. package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +3 -1
  177. package/dist/api/types/Run.d.ts +2 -0
  178. package/dist/api/types/index.d.ts +1 -0
  179. package/dist/api/types/index.js +1 -0
  180. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  181. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  182. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  183. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +3 -0
  184. package/dist/serialization/resources/archives/client/index.d.ts +2 -0
  185. package/dist/serialization/resources/archives/client/index.js +41 -0
  186. package/dist/serialization/resources/archives/client/listArchives.d.ts +11 -0
  187. package/dist/serialization/resources/archives/client/listArchives.js +42 -0
  188. package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  189. package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
  190. package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
  191. package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
  192. package/dist/serialization/resources/archives/client/requests/index.d.ts +2 -0
  193. package/dist/serialization/resources/archives/client/requests/index.js +7 -0
  194. package/dist/serialization/resources/archives/index.d.ts +2 -0
  195. package/dist/serialization/resources/archives/index.js +18 -0
  196. package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
  197. package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
  198. package/dist/serialization/resources/archives/types/index.d.ts +1 -0
  199. package/dist/serialization/resources/archives/types/index.js +17 -0
  200. package/dist/serialization/resources/index.d.ts +3 -0
  201. package/dist/serialization/resources/index.js +4 -1
  202. package/dist/serialization/types/AgentState.d.ts +1 -0
  203. package/dist/serialization/types/AgentState.js +1 -0
  204. package/dist/serialization/types/Archive.d.ts +21 -0
  205. package/dist/serialization/types/Archive.js +52 -0
  206. package/dist/serialization/types/BatchJob.d.ts +2 -0
  207. package/dist/serialization/types/BatchJob.js +2 -0
  208. package/dist/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
  209. package/dist/serialization/types/InternalTemplateAgentCreate.js +1 -0
  210. package/dist/serialization/types/Job.d.ts +2 -0
  211. package/dist/serialization/types/Job.js +2 -0
  212. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
  213. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
  214. package/dist/serialization/types/Run.d.ts +2 -0
  215. package/dist/serialization/types/Run.js +2 -0
  216. package/dist/serialization/types/index.d.ts +1 -0
  217. package/dist/serialization/types/index.js +1 -0
  218. package/dist/version.d.ts +1 -1
  219. package/dist/version.js +1 -1
  220. package/package.json +1 -1
  221. package/reference.md +202 -2
  222. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  223. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  224. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  225. package/serialization/resources/agents/client/requests/UpdateAgent.js +3 -0
  226. package/serialization/resources/archives/client/index.d.ts +2 -0
  227. package/serialization/resources/archives/client/index.js +41 -0
  228. package/serialization/resources/archives/client/listArchives.d.ts +11 -0
  229. package/serialization/resources/archives/client/listArchives.js +42 -0
  230. package/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  231. package/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
  232. package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
  233. package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
  234. package/serialization/resources/archives/client/requests/index.d.ts +2 -0
  235. package/serialization/resources/archives/client/requests/index.js +7 -0
  236. package/serialization/resources/archives/index.d.ts +2 -0
  237. package/serialization/resources/archives/index.js +18 -0
  238. package/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
  239. package/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
  240. package/serialization/resources/archives/types/index.d.ts +1 -0
  241. package/serialization/resources/archives/types/index.js +17 -0
  242. package/serialization/resources/index.d.ts +3 -0
  243. package/serialization/resources/index.js +4 -1
  244. package/serialization/types/AgentState.d.ts +1 -0
  245. package/serialization/types/AgentState.js +1 -0
  246. package/serialization/types/Archive.d.ts +21 -0
  247. package/serialization/types/Archive.js +52 -0
  248. package/serialization/types/BatchJob.d.ts +2 -0
  249. package/serialization/types/BatchJob.js +2 -0
  250. package/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
  251. package/serialization/types/InternalTemplateAgentCreate.js +1 -0
  252. package/serialization/types/Job.d.ts +2 -0
  253. package/serialization/types/Job.js +2 -0
  254. package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
  255. package/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
  256. package/serialization/types/Run.d.ts +2 -0
  257. package/serialization/types/Run.js +2 -0
  258. package/serialization/types/index.d.ts +1 -0
  259. package/serialization/types/index.js +1 -0
  260. package/version.d.ts +1 -1
  261. package/version.js +1 -1
@@ -108,7 +108,7 @@ class Messages {
108
108
  method: "GET",
109
109
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
110
110
  ? yield core.Supplier.get(this._options.project)
111
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
111
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
112
112
  contentType: "application/json",
113
113
  queryParameters: _queryParams,
114
114
  requestType: "json",
@@ -195,7 +195,7 @@ class Messages {
195
195
  method: "POST",
196
196
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
197
197
  ? yield core.Supplier.get(this._options.project)
198
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
198
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
199
  contentType: "application/json",
200
200
  requestType: "json",
201
201
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -276,7 +276,7 @@ class Messages {
276
276
  method: "PATCH",
277
277
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
278
278
  ? yield core.Supplier.get(this._options.project)
279
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -347,7 +347,7 @@ class Messages {
347
347
  method: "POST",
348
348
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
349
349
  ? yield core.Supplier.get(this._options.project)
350
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
350
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
351
351
  contentType: "application/json",
352
352
  requestType: "json",
353
353
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -438,7 +438,7 @@ class Messages {
438
438
  method: "POST",
439
439
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
440
440
  ? yield core.Supplier.get(this._options.project)
441
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
442
442
  contentType: "application/json",
443
443
  requestType: "json",
444
444
  body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -517,7 +517,7 @@ class Messages {
517
517
  method: "POST",
518
518
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
519
519
  ? yield core.Supplier.get(this._options.project)
520
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
520
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
521
521
  contentType: "application/json",
522
522
  requestType: "json",
523
523
  body: serializers.agents.MessageSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -607,7 +607,7 @@ class Messages {
607
607
  method: "POST",
608
608
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
609
609
  ? yield core.Supplier.get(this._options.project)
610
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
610
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
611
611
  contentType: "application/json",
612
612
  requestType: "json",
613
613
  body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -690,7 +690,7 @@ class Messages {
690
690
  method: "PATCH",
691
691
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
692
692
  ? yield core.Supplier.get(this._options.project)
693
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
693
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
694
694
  contentType: "application/json",
695
695
  queryParameters: _queryParams,
696
696
  requestType: "json",
@@ -780,7 +780,7 @@ class Messages {
780
780
  method: "POST",
781
781
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
782
782
  ? yield core.Supplier.get(this._options.project)
783
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
783
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
784
784
  contentType: "application/json",
785
785
  requestType: "json",
786
786
  body: serializers.agents.MessagesPreviewRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -866,7 +866,7 @@ class Messages {
866
866
  method: "POST",
867
867
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
868
868
  ? yield core.Supplier.get(this._options.project)
869
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
869
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
870
870
  contentType: "application/json",
871
871
  queryParameters: _queryParams,
872
872
  requestType: "json",
@@ -99,7 +99,7 @@ class Passages {
99
99
  method: "GET",
100
100
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
101
101
  ? yield core.Supplier.get(this._options.project)
102
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
102
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
103
103
  contentType: "application/json",
104
104
  queryParameters: _queryParams,
105
105
  requestType: "json",
@@ -179,7 +179,7 @@ class Passages {
179
179
  method: "POST",
180
180
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
181
181
  ? yield core.Supplier.get(this._options.project)
182
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
182
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -286,7 +286,7 @@ class Passages {
286
286
  method: "GET",
287
287
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
288
288
  ? yield core.Supplier.get(this._options.project)
289
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
289
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
290
290
  contentType: "application/json",
291
291
  queryParameters: _queryParams,
292
292
  requestType: "json",
@@ -364,7 +364,7 @@ class Passages {
364
364
  method: "DELETE",
365
365
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
366
366
  ? yield core.Supplier.get(this._options.project)
367
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
367
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
368
368
  contentType: "application/json",
369
369
  requestType: "json",
370
370
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -428,7 +428,7 @@ class Passages {
428
428
  method: "PATCH",
429
429
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
430
430
  ? yield core.Supplier.get(this._options.project)
431
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
431
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
432
432
  contentType: "application/json",
433
433
  requestType: "json",
434
434
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class Sources {
82
82
  method: "PATCH",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Sources {
159
159
  method: "PATCH",
160
160
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
161
161
  ? yield core.Supplier.get(this._options.project)
162
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
162
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Sources {
235
235
  method: "GET",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Templates {
84
84
  method: "POST",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -150,7 +150,7 @@ class Templates {
150
150
  method: "POST",
151
151
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
152
152
  ? yield core.Supplier.get(this._options.project)
153
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
153
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
154
  contentType: "application/json",
155
155
  requestType: "json",
156
156
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -206,7 +206,7 @@ class Templates {
206
206
  method: "POST",
207
207
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
208
208
  ? yield core.Supplier.get(this._options.project)
209
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
209
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
210
  contentType: "application/json",
211
211
  requestType: "json",
212
212
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -158,7 +158,7 @@ class Tools {
158
158
  method: "PATCH",
159
159
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
160
160
  ? yield core.Supplier.get(this._options.project)
161
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
161
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
162
  contentType: "application/json",
163
163
  requestType: "json",
164
164
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Tools {
235
235
  method: "PATCH",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -318,7 +318,7 @@ class Tools {
318
318
  method: "PATCH",
319
319
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
320
320
  ? yield core.Supplier.get(this._options.project)
321
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
322
322
  contentType: "application/json",
323
323
  queryParameters: _queryParams,
324
324
  requestType: "json",
@@ -0,0 +1,78 @@
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 Archives {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<string | undefined>;
13
+ /** Override the X-Project header */
14
+ project?: core.Supplier<string | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Override the X-Project header */
25
+ project?: string | undefined;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string>;
28
+ }
29
+ }
30
+ export declare class Archives {
31
+ protected readonly _options: Archives.Options;
32
+ constructor(_options?: Archives.Options);
33
+ /**
34
+ * Get a list of all archives for the current organization with optional filters and pagination.
35
+ *
36
+ * @param {Letta.ListArchivesRequest} request
37
+ * @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Letta.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.archives.listArchives()
43
+ */
44
+ listArchives(request?: Letta.ListArchivesRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive[]>;
45
+ private __listArchives;
46
+ /**
47
+ * Create a new archive.
48
+ *
49
+ * @param {Letta.ArchiveCreateRequest} request
50
+ * @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
51
+ *
52
+ * @throws {@link Letta.UnprocessableEntityError}
53
+ *
54
+ * @example
55
+ * await client.archives.createArchive({
56
+ * name: "name"
57
+ * })
58
+ */
59
+ createArchive(request: Letta.ArchiveCreateRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive>;
60
+ private __createArchive;
61
+ /**
62
+ * Update an existing archive's name and/or description.
63
+ *
64
+ * @param {string} archiveId
65
+ * @param {Letta.ArchiveUpdateRequest} request
66
+ * @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Letta.UnprocessableEntityError}
69
+ *
70
+ * @example
71
+ * await client.archives.modifyArchive("archive_id")
72
+ */
73
+ modifyArchive(archiveId: string, request?: Letta.ArchiveUpdateRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive>;
74
+ private __modifyArchive;
75
+ protected _getCustomAuthorizationHeaders(): Promise<{
76
+ Authorization: string;
77
+ }>;
78
+ }