@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
@@ -92,7 +92,7 @@ class ClientSideAccessTokens {
92
92
  method: "GET",
93
93
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
94
94
  ? yield core.Supplier.get(this._options.project)
95
- : 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),
95
+ : 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),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -170,7 +170,7 @@ class ClientSideAccessTokens {
170
170
  method: "POST",
171
171
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
172
172
  ? yield core.Supplier.get(this._options.project)
173
- : 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),
173
+ : 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),
174
174
  contentType: "application/json",
175
175
  requestType: "json",
176
176
  body: serializers.ClientSideAccessTokensCreateRequest.jsonOrThrow(request, {
@@ -246,7 +246,7 @@ class ClientSideAccessTokens {
246
246
  method: "DELETE",
247
247
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
248
248
  ? yield core.Supplier.get(this._options.project)
249
- : 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),
249
+ : 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),
250
250
  contentType: "application/json",
251
251
  requestType: "json",
252
252
  body: request,
@@ -92,7 +92,7 @@ export declare class Folders {
92
92
  modify(folderId: string, request: Letta.SourceUpdate, requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<Letta.Folder>;
93
93
  private __modify;
94
94
  /**
95
- * **Deprecated**: Please use the list endpoint `/GET v1/folders?name=` instead.
95
+ * **Deprecated**: Please use the list endpoint `GET /v1/folders?name=` instead.
96
96
  *
97
97
  *
98
98
  * Get a folder by name.
@@ -95,7 +95,7 @@ class Folders {
95
95
  method: "GET",
96
96
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
97
97
  ? yield core.Supplier.get(this._options.project)
98
- : 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),
98
+ : 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),
99
99
  contentType: "application/json",
100
100
  requestType: "json",
101
101
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -171,7 +171,7 @@ class Folders {
171
171
  method: "GET",
172
172
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
173
173
  ? yield core.Supplier.get(this._options.project)
174
- : 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),
174
+ : 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),
175
175
  contentType: "application/json",
176
176
  requestType: "json",
177
177
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -247,7 +247,7 @@ class Folders {
247
247
  method: "DELETE",
248
248
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
249
249
  ? yield core.Supplier.get(this._options.project)
250
- : 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),
250
+ : 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),
251
251
  contentType: "application/json",
252
252
  requestType: "json",
253
253
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -315,7 +315,7 @@ class Folders {
315
315
  method: "PATCH",
316
316
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
317
317
  ? yield core.Supplier.get(this._options.project)
318
- : 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),
318
+ : 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),
319
319
  contentType: "application/json",
320
320
  requestType: "json",
321
321
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -371,7 +371,7 @@ class Folders {
371
371
  });
372
372
  }
373
373
  /**
374
- * **Deprecated**: Please use the list endpoint `/GET v1/folders?name=` instead.
374
+ * **Deprecated**: Please use the list endpoint `GET /v1/folders?name=` instead.
375
375
  *
376
376
  *
377
377
  * Get a folder by name.
@@ -395,7 +395,7 @@ class Folders {
395
395
  method: "GET",
396
396
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
397
397
  ? yield core.Supplier.get(this._options.project)
398
- : 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),
398
+ : 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),
399
399
  contentType: "application/json",
400
400
  requestType: "json",
401
401
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -482,7 +482,7 @@ class Folders {
482
482
  method: "GET",
483
483
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
484
484
  ? yield core.Supplier.get(this._options.project)
485
- : 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),
485
+ : 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),
486
486
  contentType: "application/json",
487
487
  queryParameters: _queryParams,
488
488
  requestType: "json",
@@ -581,7 +581,7 @@ class Folders {
581
581
  method: "GET",
582
582
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
583
583
  ? yield core.Supplier.get(this._options.project)
584
- : 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),
584
+ : 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),
585
585
  contentType: "application/json",
586
586
  queryParameters: _queryParams,
587
587
  requestType: "json",
@@ -660,7 +660,7 @@ class Folders {
660
660
  method: "POST",
661
661
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
662
662
  ? yield core.Supplier.get(this._options.project)
663
- : 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),
663
+ : 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),
664
664
  contentType: "application/json",
665
665
  requestType: "json",
666
666
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -101,7 +101,7 @@ class Agents {
101
101
  method: "GET",
102
102
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
103
103
  ? yield core.Supplier.get(this._options.project)
104
- : 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),
104
+ : 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),
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
107
107
  requestType: "json",
@@ -93,7 +93,7 @@ class Files {
93
93
  method: "POST",
94
94
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
95
  ? yield core.Supplier.get(this._options.project)
96
- : 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())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
+ : 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())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
97
  queryParameters: _queryParams,
98
98
  requestType: "file",
99
99
  duplex: _maybeEncodedRequest.duplex,
@@ -194,7 +194,7 @@ class Files {
194
194
  method: "GET",
195
195
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
196
196
  ? yield core.Supplier.get(this._options.project)
197
- : 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),
197
+ : 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),
198
198
  contentType: "application/json",
199
199
  queryParameters: _queryParams,
200
200
  requestType: "json",
@@ -272,7 +272,7 @@ class Files {
272
272
  method: "DELETE",
273
273
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
274
274
  ? yield core.Supplier.get(this._options.project)
275
- : 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),
275
+ : 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),
276
276
  contentType: "application/json",
277
277
  requestType: "json",
278
278
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -101,7 +101,7 @@ class Passages {
101
101
  method: "GET",
102
102
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
103
103
  ? yield core.Supplier.get(this._options.project)
104
- : 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),
104
+ : 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),
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
107
107
  requestType: "json",
@@ -113,7 +113,7 @@ class Groups {
113
113
  method: "GET",
114
114
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
115
115
  ? yield core.Supplier.get(this._options.project)
116
- : 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),
116
+ : 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),
117
117
  contentType: "application/json",
118
118
  queryParameters: _queryParams,
119
119
  requestType: "json",
@@ -193,7 +193,7 @@ class Groups {
193
193
  method: "POST",
194
194
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
195
195
  ? yield core.Supplier.get(this._options.project)
196
- : 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),
196
+ : 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),
197
197
  contentType: "application/json",
198
198
  requestType: "json",
199
199
  body: serializers.GroupCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -269,7 +269,7 @@ class Groups {
269
269
  method: "GET",
270
270
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
271
271
  ? yield core.Supplier.get(this._options.project)
272
- : 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),
272
+ : 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),
273
273
  contentType: "application/json",
274
274
  requestType: "json",
275
275
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -345,7 +345,7 @@ class Groups {
345
345
  method: "GET",
346
346
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
347
347
  ? yield core.Supplier.get(this._options.project)
348
- : 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),
348
+ : 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),
349
349
  contentType: "application/json",
350
350
  requestType: "json",
351
351
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -421,7 +421,7 @@ class Groups {
421
421
  method: "DELETE",
422
422
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
423
423
  ? yield core.Supplier.get(this._options.project)
424
- : 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),
424
+ : 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),
425
425
  contentType: "application/json",
426
426
  requestType: "json",
427
427
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -489,7 +489,7 @@ class Groups {
489
489
  method: "PATCH",
490
490
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
491
491
  ? yield core.Supplier.get(this._options.project)
492
- : 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),
492
+ : 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),
493
493
  contentType: "application/json",
494
494
  requestType: "json",
495
495
  body: serializers.GroupUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -110,7 +110,7 @@ class Messages {
110
110
  method: "GET",
111
111
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
112
112
  ? yield core.Supplier.get(this._options.project)
113
- : 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),
113
+ : 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),
114
114
  contentType: "application/json",
115
115
  queryParameters: _queryParams,
116
116
  requestType: "json",
@@ -197,7 +197,7 @@ class Messages {
197
197
  method: "POST",
198
198
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
199
199
  ? yield core.Supplier.get(this._options.project)
200
- : 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),
200
+ : 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),
201
201
  contentType: "application/json",
202
202
  requestType: "json",
203
203
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -268,7 +268,7 @@ class Messages {
268
268
  method: "POST",
269
269
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
270
270
  ? yield core.Supplier.get(this._options.project)
271
- : 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),
271
+ : 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),
272
272
  contentType: "application/json",
273
273
  requestType: "json",
274
274
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -360,7 +360,7 @@ class Messages {
360
360
  method: "PATCH",
361
361
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
362
362
  ? yield core.Supplier.get(this._options.project)
363
- : 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),
363
+ : 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),
364
364
  contentType: "application/json",
365
365
  requestType: "json",
366
366
  body: serializers.groups.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -437,7 +437,7 @@ class Messages {
437
437
  method: "PATCH",
438
438
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
439
439
  ? yield core.Supplier.get(this._options.project)
440
- : 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),
440
+ : 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),
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,
@@ -75,7 +75,7 @@ class Health {
75
75
  method: "GET",
76
76
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
77
77
  ? yield core.Supplier.get(this._options.project)
78
- : 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),
78
+ : 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),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -129,7 +129,7 @@ class Identities {
129
129
  method: "GET",
130
130
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
131
131
  ? yield core.Supplier.get(this._options.project)
132
- : 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),
132
+ : 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),
133
133
  contentType: "application/json",
134
134
  queryParameters: _queryParams,
135
135
  requestType: "json",
@@ -208,7 +208,7 @@ class Identities {
208
208
  method: "POST",
209
209
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
210
210
  ? yield core.Supplier.get(this._options.project)
211
- : 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),
211
+ : 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),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  body: serializers.IdentityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -287,7 +287,7 @@ class Identities {
287
287
  method: "PUT",
288
288
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
289
289
  ? yield core.Supplier.get(this._options.project)
290
- : 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),
290
+ : 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),
291
291
  contentType: "application/json",
292
292
  requestType: "json",
293
293
  body: serializers.IdentityUpsert.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -363,7 +363,7 @@ class Identities {
363
363
  method: "GET",
364
364
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
365
365
  ? yield core.Supplier.get(this._options.project)
366
- : 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),
366
+ : 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),
367
367
  contentType: "application/json",
368
368
  requestType: "json",
369
369
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -437,7 +437,7 @@ class Identities {
437
437
  method: "GET",
438
438
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
439
439
  ? yield core.Supplier.get(this._options.project)
440
- : 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),
440
+ : 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),
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,
@@ -513,7 +513,7 @@ class Identities {
513
513
  method: "DELETE",
514
514
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
515
515
  ? yield core.Supplier.get(this._options.project)
516
- : 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),
516
+ : 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),
517
517
  contentType: "application/json",
518
518
  requestType: "json",
519
519
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -579,7 +579,7 @@ class Identities {
579
579
  method: "PATCH",
580
580
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
581
581
  ? yield core.Supplier.get(this._options.project)
582
- : 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),
582
+ : 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),
583
583
  contentType: "application/json",
584
584
  requestType: "json",
585
585
  body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -101,7 +101,7 @@ class Agents {
101
101
  method: "GET",
102
102
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
103
103
  ? yield core.Supplier.get(this._options.project)
104
- : 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),
104
+ : 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),
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
107
107
  requestType: "json",
@@ -101,7 +101,7 @@ class Blocks {
101
101
  method: "GET",
102
102
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
103
103
  ? yield core.Supplier.get(this._options.project)
104
- : 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),
104
+ : 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),
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
107
107
  requestType: "json",
@@ -84,7 +84,7 @@ class Properties {
84
84
  method: "PUT",
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.identities.properties.upsert.Request.jsonOrThrow(request, {
@@ -1,3 +1,5 @@
1
+ export * as archives from "./archives";
2
+ export * from "./archives/types";
1
3
  export * as tools from "./tools";
2
4
  export * from "./tools/types";
3
5
  export * as folders from "./folders";
@@ -32,6 +34,7 @@ export * as jobs from "./jobs";
32
34
  export * as health from "./health";
33
35
  export * as telemetry from "./telemetry";
34
36
  export * as voice from "./voice";
37
+ export * from "./archives/client/requests";
35
38
  export * from "./tools/client/requests";
36
39
  export * from "./sources/client/requests";
37
40
  export * from "./folders/client/requests";
@@ -36,7 +36,9 @@ 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.voice = exports.telemetry = exports.health = exports.jobs = exports.models = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.blocks = exports.identities = exports.groups = exports.agents = exports.folders = exports.tools = void 0;
39
+ exports.voice = exports.telemetry = exports.health = exports.jobs = exports.models = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.blocks = exports.identities = exports.groups = exports.agents = exports.folders = exports.tools = exports.archives = void 0;
40
+ exports.archives = __importStar(require("./archives"));
41
+ __exportStar(require("./archives/types"), exports);
40
42
  exports.tools = __importStar(require("./tools"));
41
43
  __exportStar(require("./tools/types"), exports);
42
44
  exports.folders = __importStar(require("./folders"));
@@ -71,6 +73,7 @@ exports.jobs = __importStar(require("./jobs"));
71
73
  exports.health = __importStar(require("./health"));
72
74
  exports.telemetry = __importStar(require("./telemetry"));
73
75
  exports.voice = __importStar(require("./voice"));
76
+ __exportStar(require("./archives/client/requests"), exports);
74
77
  __exportStar(require("./tools/client/requests"), exports);
75
78
  __exportStar(require("./sources/client/requests"), exports);
76
79
  __exportStar(require("./folders/client/requests"), exports);
@@ -32,7 +32,6 @@ export declare class Jobs {
32
32
  constructor(_options?: Jobs.Options);
33
33
  /**
34
34
  * List all jobs.
35
- * TODO (cliandy): implementation for pagination
36
35
  *
37
36
  * @param {Letta.JobsListRequest} request
38
37
  * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
@@ -61,7 +61,6 @@ class Jobs {
61
61
  }
62
62
  /**
63
63
  * List all jobs.
64
- * TODO (cliandy): implementation for pagination
65
64
  *
66
65
  * @param {Letta.JobsListRequest} request
67
66
  * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
@@ -77,7 +76,7 @@ class Jobs {
77
76
  __list() {
78
77
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
79
78
  var _a, _b, _c;
80
- const { sourceId, before, after, limit, ascending } = request;
79
+ const { sourceId, before, after, limit, active, ascending } = request;
81
80
  const _queryParams = {};
82
81
  if (sourceId != null) {
83
82
  _queryParams["source_id"] = sourceId;
@@ -91,6 +90,9 @@ class Jobs {
91
90
  if (limit != null) {
92
91
  _queryParams["limit"] = limit.toString();
93
92
  }
93
+ if (active != null) {
94
+ _queryParams["active"] = active.toString();
95
+ }
94
96
  if (ascending != null) {
95
97
  _queryParams["ascending"] = ascending.toString();
96
98
  }
@@ -99,7 +101,7 @@ class Jobs {
99
101
  method: "GET",
100
102
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
101
103
  ? 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),
104
+ : 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
105
  contentType: "application/json",
104
106
  queryParameters: _queryParams,
105
107
  requestType: "json",
@@ -193,7 +195,7 @@ class Jobs {
193
195
  method: "GET",
194
196
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
195
197
  ? yield core.Supplier.get(this._options.project)
196
- : 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),
197
199
  contentType: "application/json",
198
200
  queryParameters: _queryParams,
199
201
  requestType: "json",
@@ -270,7 +272,7 @@ class Jobs {
270
272
  method: "GET",
271
273
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
272
274
  ? yield core.Supplier.get(this._options.project)
273
- : 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),
275
+ : 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),
274
276
  contentType: "application/json",
275
277
  requestType: "json",
276
278
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -346,7 +348,7 @@ class Jobs {
346
348
  method: "DELETE",
347
349
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
348
350
  ? yield core.Supplier.get(this._options.project)
349
- : 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),
351
+ : 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),
350
352
  contentType: "application/json",
351
353
  requestType: "json",
352
354
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -425,7 +427,7 @@ class Jobs {
425
427
  method: "PATCH",
426
428
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
427
429
  ? yield core.Supplier.get(this._options.project)
428
- : 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),
430
+ : 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),
429
431
  contentType: "application/json",
430
432
  requestType: "json",
431
433
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -22,6 +22,10 @@ export interface JobsListRequest {
22
22
  * Limit for pagination
23
23
  */
24
24
  limit?: number;
25
+ /**
26
+ * Filter for active jobs.
27
+ */
28
+ active?: boolean;
25
29
  /**
26
30
  * Whether to sort jobs oldest to newest (True, default) or newest to oldest (False)
27
31
  */
@@ -106,7 +106,7 @@ class Models {
106
106
  method: "GET",
107
107
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
108
108
  ? yield core.Supplier.get(this._options.project)
109
- : 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),
109
+ : 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),
110
110
  contentType: "application/json",
111
111
  queryParameters: _queryParams,
112
112
  requestType: "json",
@@ -178,7 +178,7 @@ class Models {
178
178
  method: "GET",
179
179
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
180
180
  ? yield core.Supplier.get(this._options.project)
181
- : 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),
181
+ : 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),
182
182
  contentType: "application/json",
183
183
  requestType: "json",
184
184
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,