@letta-ai/letta-client 0.1.198 → 0.1.199

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 (264) hide show
  1. package/api/resources/agents/client/Client.d.ts +0 -17
  2. package/api/resources/agents/client/Client.js +11 -95
  3. package/api/resources/agents/client/requests/index.d.ts +0 -1
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  7. package/api/resources/agents/resources/files/client/Client.js +4 -4
  8. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  9. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  10. package/api/resources/agents/resources/index.d.ts +1 -0
  11. package/api/resources/agents/resources/index.js +1 -0
  12. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  13. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  14. package/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -1
  15. package/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +5 -0
  16. package/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  17. package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  18. package/api/resources/agents/resources/messages/types/index.js +1 -0
  19. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  20. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  21. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  22. package/api/resources/agents/resources/tools/client/Client.d.ts +10 -3
  23. package/api/resources/agents/resources/tools/client/Client.js +48 -17
  24. package/api/resources/agents/resources/tools/client/index.d.ts +1 -1
  25. package/api/resources/agents/resources/tools/client/index.js +15 -0
  26. package/api/resources/agents/{client/requests/ModifyApprovalRequest.d.ts → resources/tools/client/requests/ToolsModifyApprovalRequest.d.ts} +1 -1
  27. package/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  28. package/api/resources/agents/resources/tools/client/requests/index.js +2 -0
  29. package/api/resources/batches/client/Client.js +4 -4
  30. package/api/resources/blocks/client/Client.js +6 -6
  31. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  32. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  33. package/api/resources/embeddingModels/client/Client.js +1 -1
  34. package/api/resources/folders/client/Client.js +9 -9
  35. package/api/resources/folders/resources/files/client/Client.js +3 -3
  36. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  37. package/api/resources/groups/client/Client.js +6 -6
  38. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  39. package/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  40. package/api/resources/health/client/Client.js +1 -1
  41. package/api/resources/identities/client/Client.js +7 -7
  42. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  43. package/api/resources/jobs/client/Client.js +5 -5
  44. package/api/resources/messages/client/Client.js +1 -1
  45. package/api/resources/models/client/Client.js +2 -2
  46. package/api/resources/projects/client/Client.js +1 -1
  47. package/api/resources/providers/client/Client.js +6 -6
  48. package/api/resources/runs/client/Client.js +5 -5
  49. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  50. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  51. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  52. package/api/resources/sources/client/Client.js +10 -10
  53. package/api/resources/sources/resources/files/client/Client.js +3 -3
  54. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  55. package/api/resources/steps/client/Client.js +3 -3
  56. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  57. package/api/resources/tags/client/Client.js +1 -1
  58. package/api/resources/telemetry/client/Client.js +1 -1
  59. package/api/resources/templates/client/Client.js +15 -9
  60. package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +8 -0
  61. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  62. package/api/resources/tools/client/Client.js +20 -20
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/types/ApprovalCreate.d.ts +16 -0
  65. package/api/types/ApprovalCreate.js +5 -0
  66. package/api/types/ApprovalRequestMessage.d.ts +27 -0
  67. package/api/types/ApprovalRequestMessage.js +5 -0
  68. package/api/types/ApprovalResponseMessage.d.ts +32 -0
  69. package/api/types/ApprovalResponseMessage.js +5 -0
  70. package/api/types/LettaBatchRequest.d.ts +1 -1
  71. package/api/types/LettaBatchRequestMessagesItem.d.ts +5 -0
  72. package/api/types/LettaBatchRequestMessagesItem.js +5 -0
  73. package/api/types/LettaMessageUnion.d.ts +1 -1
  74. package/api/types/LettaRequest.d.ts +1 -1
  75. package/api/types/LettaRequestMessagesItem.d.ts +5 -0
  76. package/api/types/LettaRequestMessagesItem.js +5 -0
  77. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +2 -0
  78. package/api/types/LettaStreamingRequest.d.ts +1 -1
  79. package/api/types/LettaStreamingRequestMessagesItem.d.ts +5 -0
  80. package/api/types/LettaStreamingRequestMessagesItem.js +5 -0
  81. package/api/types/MessageCreate.d.ts +2 -0
  82. package/api/types/MessageRole.d.ts +2 -1
  83. package/api/types/MessageRole.js +1 -0
  84. package/api/types/StopReasonType.d.ts +2 -1
  85. package/api/types/StopReasonType.js +1 -0
  86. package/api/types/index.d.ts +6 -0
  87. package/api/types/index.js +6 -0
  88. package/dist/api/resources/agents/client/Client.d.ts +0 -17
  89. package/dist/api/resources/agents/client/Client.js +11 -95
  90. package/dist/api/resources/agents/client/requests/index.d.ts +0 -1
  91. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  92. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  93. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  94. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  95. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  96. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  97. package/dist/api/resources/agents/resources/index.d.ts +1 -0
  98. package/dist/api/resources/agents/resources/index.js +1 -0
  99. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  100. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  101. package/dist/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -1
  102. package/dist/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +5 -0
  103. package/dist/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +5 -0
  104. package/dist/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  105. package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  106. package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
  107. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  108. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  109. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  110. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +10 -3
  111. package/dist/api/resources/agents/resources/tools/client/Client.js +48 -17
  112. package/dist/api/resources/agents/resources/tools/client/index.d.ts +1 -1
  113. package/dist/api/resources/agents/resources/tools/client/index.js +15 -0
  114. package/dist/api/resources/agents/{client/requests/ModifyApprovalRequest.d.ts → resources/tools/client/requests/ToolsModifyApprovalRequest.d.ts} +1 -1
  115. package/dist/api/resources/agents/resources/tools/client/requests/ToolsModifyApprovalRequest.js +5 -0
  116. package/dist/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  117. package/dist/api/resources/agents/resources/tools/client/requests/index.js +2 -0
  118. package/dist/api/resources/batches/client/Client.js +4 -4
  119. package/dist/api/resources/blocks/client/Client.js +6 -6
  120. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  121. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  122. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  123. package/dist/api/resources/folders/client/Client.js +9 -9
  124. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  125. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  126. package/dist/api/resources/groups/client/Client.js +6 -6
  127. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  128. package/dist/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
  129. package/dist/api/resources/health/client/Client.js +1 -1
  130. package/dist/api/resources/identities/client/Client.js +7 -7
  131. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  132. package/dist/api/resources/jobs/client/Client.js +5 -5
  133. package/dist/api/resources/messages/client/Client.js +1 -1
  134. package/dist/api/resources/models/client/Client.js +2 -2
  135. package/dist/api/resources/projects/client/Client.js +1 -1
  136. package/dist/api/resources/providers/client/Client.js +6 -6
  137. package/dist/api/resources/runs/client/Client.js +5 -5
  138. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  139. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  140. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  141. package/dist/api/resources/sources/client/Client.js +10 -10
  142. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  143. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  144. package/dist/api/resources/steps/client/Client.js +3 -3
  145. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  146. package/dist/api/resources/tags/client/Client.js +1 -1
  147. package/dist/api/resources/telemetry/client/Client.js +1 -1
  148. package/dist/api/resources/templates/client/Client.js +15 -9
  149. package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +8 -0
  150. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  151. package/dist/api/resources/tools/client/Client.js +20 -20
  152. package/dist/api/resources/voice/client/Client.js +1 -1
  153. package/dist/api/types/ApprovalCreate.d.ts +16 -0
  154. package/dist/api/types/ApprovalCreate.js +5 -0
  155. package/dist/api/types/ApprovalRequestMessage.d.ts +27 -0
  156. package/dist/api/types/ApprovalRequestMessage.js +5 -0
  157. package/dist/api/types/ApprovalResponseMessage.d.ts +32 -0
  158. package/dist/api/types/ApprovalResponseMessage.js +5 -0
  159. package/dist/api/types/LettaBatchRequest.d.ts +1 -1
  160. package/dist/api/types/LettaBatchRequestMessagesItem.d.ts +5 -0
  161. package/dist/api/types/LettaBatchRequestMessagesItem.js +5 -0
  162. package/dist/api/types/LettaMessageUnion.d.ts +1 -1
  163. package/dist/api/types/LettaRequest.d.ts +1 -1
  164. package/dist/api/types/LettaRequestMessagesItem.d.ts +5 -0
  165. package/dist/api/types/LettaRequestMessagesItem.js +5 -0
  166. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +2 -0
  167. package/dist/api/types/LettaStreamingRequest.d.ts +1 -1
  168. package/dist/api/types/LettaStreamingRequestMessagesItem.d.ts +5 -0
  169. package/dist/api/types/LettaStreamingRequestMessagesItem.js +5 -0
  170. package/dist/api/types/MessageCreate.d.ts +2 -0
  171. package/dist/api/types/MessageRole.d.ts +2 -1
  172. package/dist/api/types/MessageRole.js +1 -0
  173. package/dist/api/types/StopReasonType.d.ts +2 -1
  174. package/dist/api/types/StopReasonType.js +1 -0
  175. package/dist/api/types/index.d.ts +6 -0
  176. package/dist/api/types/index.js +6 -0
  177. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -2
  178. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +2 -2
  179. package/dist/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +12 -0
  180. package/dist/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +43 -0
  181. package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  182. package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +4 -0
  183. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  184. package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
  185. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  186. package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +4 -0
  187. package/dist/serialization/types/ApprovalCreate.d.ts +15 -0
  188. package/dist/serialization/types/ApprovalCreate.js +46 -0
  189. package/dist/serialization/types/ApprovalRequestMessage.d.ts +23 -0
  190. package/dist/serialization/types/ApprovalRequestMessage.js +54 -0
  191. package/dist/serialization/types/ApprovalResponseMessage.d.ts +24 -0
  192. package/dist/serialization/types/ApprovalResponseMessage.js +55 -0
  193. package/dist/serialization/types/LettaBatchRequest.d.ts +2 -2
  194. package/dist/serialization/types/LettaBatchRequest.js +2 -2
  195. package/dist/serialization/types/LettaBatchRequestMessagesItem.d.ts +12 -0
  196. package/dist/serialization/types/LettaBatchRequestMessagesItem.js +43 -0
  197. package/dist/serialization/types/LettaMessageUnion.d.ts +3 -1
  198. package/dist/serialization/types/LettaMessageUnion.js +4 -0
  199. package/dist/serialization/types/LettaRequest.d.ts +2 -2
  200. package/dist/serialization/types/LettaRequest.js +2 -2
  201. package/dist/serialization/types/LettaRequestMessagesItem.d.ts +12 -0
  202. package/dist/serialization/types/LettaRequestMessagesItem.js +43 -0
  203. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +1 -0
  204. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +1 -0
  205. package/dist/serialization/types/LettaStreamingRequest.d.ts +2 -2
  206. package/dist/serialization/types/LettaStreamingRequest.js +2 -2
  207. package/dist/serialization/types/LettaStreamingRequestMessagesItem.d.ts +12 -0
  208. package/dist/serialization/types/LettaStreamingRequestMessagesItem.js +43 -0
  209. package/dist/serialization/types/MessageCreate.d.ts +1 -0
  210. package/dist/serialization/types/MessageCreate.js +1 -0
  211. package/dist/serialization/types/MessageRole.d.ts +1 -1
  212. package/dist/serialization/types/MessageRole.js +1 -1
  213. package/dist/serialization/types/StopReasonType.d.ts +1 -1
  214. package/dist/serialization/types/StopReasonType.js +1 -0
  215. package/dist/serialization/types/index.d.ts +6 -0
  216. package/dist/serialization/types/index.js +6 -0
  217. package/dist/version.d.ts +1 -1
  218. package/dist/version.js +1 -1
  219. package/package.json +1 -1
  220. package/reference.md +28 -84
  221. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -2
  222. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +2 -2
  223. package/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +12 -0
  224. package/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +43 -0
  225. package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  226. package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +4 -0
  227. package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  228. package/serialization/resources/agents/resources/messages/types/index.js +1 -0
  229. package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
  230. package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +4 -0
  231. package/serialization/types/ApprovalCreate.d.ts +15 -0
  232. package/serialization/types/ApprovalCreate.js +46 -0
  233. package/serialization/types/ApprovalRequestMessage.d.ts +23 -0
  234. package/serialization/types/ApprovalRequestMessage.js +54 -0
  235. package/serialization/types/ApprovalResponseMessage.d.ts +24 -0
  236. package/serialization/types/ApprovalResponseMessage.js +55 -0
  237. package/serialization/types/LettaBatchRequest.d.ts +2 -2
  238. package/serialization/types/LettaBatchRequest.js +2 -2
  239. package/serialization/types/LettaBatchRequestMessagesItem.d.ts +12 -0
  240. package/serialization/types/LettaBatchRequestMessagesItem.js +43 -0
  241. package/serialization/types/LettaMessageUnion.d.ts +3 -1
  242. package/serialization/types/LettaMessageUnion.js +4 -0
  243. package/serialization/types/LettaRequest.d.ts +2 -2
  244. package/serialization/types/LettaRequest.js +2 -2
  245. package/serialization/types/LettaRequestMessagesItem.d.ts +12 -0
  246. package/serialization/types/LettaRequestMessagesItem.js +43 -0
  247. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +1 -0
  248. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +1 -0
  249. package/serialization/types/LettaStreamingRequest.d.ts +2 -2
  250. package/serialization/types/LettaStreamingRequest.js +2 -2
  251. package/serialization/types/LettaStreamingRequestMessagesItem.d.ts +12 -0
  252. package/serialization/types/LettaStreamingRequestMessagesItem.js +43 -0
  253. package/serialization/types/MessageCreate.d.ts +1 -0
  254. package/serialization/types/MessageCreate.js +1 -0
  255. package/serialization/types/MessageRole.d.ts +1 -1
  256. package/serialization/types/MessageRole.js +1 -1
  257. package/serialization/types/StopReasonType.d.ts +1 -1
  258. package/serialization/types/StopReasonType.js +1 -0
  259. package/serialization/types/index.d.ts +6 -0
  260. package/serialization/types/index.js +6 -0
  261. package/version.d.ts +1 -1
  262. package/version.js +1 -1
  263. /package/api/resources/agents/{client/requests/ModifyApprovalRequest.js → resources/messages/types/LettaAsyncRequestMessagesItem.js} +0 -0
  264. /package/{dist/api/resources/agents/client/requests/ModifyApprovalRequest.js → api/resources/agents/resources/tools/client/requests/ToolsModifyApprovalRequest.js} +0 -0
@@ -112,7 +112,7 @@ class Messages {
112
112
  method: "GET",
113
113
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
114
114
  ? yield core.Supplier.get(this._options.project)
115
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
115
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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
116
  contentType: "application/json",
117
117
  queryParameters: _queryParams,
118
118
  requestType: "json",
@@ -106,7 +106,7 @@ class Steps {
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.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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",
@@ -81,7 +81,7 @@ class Usage {
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.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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,
@@ -90,7 +90,7 @@ class Sources {
90
90
  method: "GET",
91
91
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
92
92
  ? yield core.Supplier.get(this._options.project)
93
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
93
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
94
94
  contentType: "application/json",
95
95
  requestType: "json",
96
96
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -166,7 +166,7 @@ class Sources {
166
166
  method: "GET",
167
167
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
168
168
  ? yield core.Supplier.get(this._options.project)
169
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
169
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
170
170
  contentType: "application/json",
171
171
  requestType: "json",
172
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -242,7 +242,7 @@ class Sources {
242
242
  method: "DELETE",
243
243
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
244
244
  ? yield core.Supplier.get(this._options.project)
245
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
245
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
246
246
  contentType: "application/json",
247
247
  requestType: "json",
248
248
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -310,7 +310,7 @@ class Sources {
310
310
  method: "PATCH",
311
311
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
312
312
  ? yield core.Supplier.get(this._options.project)
313
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
313
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
316
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -387,7 +387,7 @@ class Sources {
387
387
  method: "GET",
388
388
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
389
389
  ? yield core.Supplier.get(this._options.project)
390
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
390
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
391
391
  contentType: "application/json",
392
392
  requestType: "json",
393
393
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -474,7 +474,7 @@ class Sources {
474
474
  method: "GET",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
477
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
478
478
  contentType: "application/json",
479
479
  queryParameters: _queryParams,
480
480
  requestType: "json",
@@ -550,7 +550,7 @@ class Sources {
550
550
  method: "GET",
551
551
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
552
552
  ? yield core.Supplier.get(this._options.project)
553
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
553
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
554
554
  contentType: "application/json",
555
555
  requestType: "json",
556
556
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -628,7 +628,7 @@ class Sources {
628
628
  method: "POST",
629
629
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
630
630
  ? yield core.Supplier.get(this._options.project)
631
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
631
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
632
632
  contentType: "application/json",
633
633
  requestType: "json",
634
634
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -705,7 +705,7 @@ class Sources {
705
705
  method: "GET",
706
706
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
707
707
  ? yield core.Supplier.get(this._options.project)
708
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
708
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
709
709
  contentType: "application/json",
710
710
  requestType: "json",
711
711
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -788,7 +788,7 @@ class Sources {
788
788
  method: "GET",
789
789
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
790
790
  ? yield core.Supplier.get(this._options.project)
791
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
791
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
792
792
  contentType: "application/json",
793
793
  queryParameters: _queryParams,
794
794
  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.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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,
@@ -186,7 +186,7 @@ class Files {
186
186
  method: "GET",
187
187
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
188
188
  ? yield core.Supplier.get(this._options.project)
189
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
189
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
190
190
  contentType: "application/json",
191
191
  queryParameters: _queryParams,
192
192
  requestType: "json",
@@ -264,7 +264,7 @@ class Files {
264
264
  method: "DELETE",
265
265
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
266
266
  ? yield core.Supplier.get(this._options.project)
267
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
267
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
268
268
  contentType: "application/json",
269
269
  requestType: "json",
270
270
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -93,7 +93,7 @@ class Passages {
93
93
  method: "GET",
94
94
  headers: 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.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
99
99
  requestType: "json",
@@ -140,7 +140,7 @@ class Steps {
140
140
  method: "GET",
141
141
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
142
142
  ? yield core.Supplier.get(this._options.project)
143
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
143
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
144
144
  contentType: "application/json",
145
145
  queryParameters: _queryParams,
146
146
  requestType: "json",
@@ -217,7 +217,7 @@ class Steps {
217
217
  method: "GET",
218
218
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
219
219
  ? yield core.Supplier.get(this._options.project)
220
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
220
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
221
221
  contentType: "application/json",
222
222
  requestType: "json",
223
223
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -293,7 +293,7 @@ class Steps {
293
293
  method: "GET",
294
294
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
295
295
  ? yield core.Supplier.get(this._options.project)
296
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
296
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
297
297
  contentType: "application/json",
298
298
  requestType: "json",
299
299
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -89,7 +89,7 @@ class Feedback {
89
89
  method: "PATCH",
90
90
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
91
91
  ? yield core.Supplier.get(this._options.project)
92
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
92
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -92,7 +92,7 @@ class Tags {
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.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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",
@@ -79,7 +79,7 @@ class Telemetry {
79
79
  method: "GET",
80
80
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
81
81
  ? yield core.Supplier.get(this._options.project)
82
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -79,14 +79,20 @@ class Templates {
79
79
  __list() {
80
80
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
81
81
  var _a, _b, _c;
82
- const { offset, limit, templateId, name, search, projectSlug, projectId, sortBy } = request;
82
+ const { offset, exact, limit, version, templateId, name, search, projectSlug, projectId, sortBy } = request;
83
83
  const _queryParams = {};
84
84
  if (offset != null) {
85
85
  _queryParams["offset"] = offset;
86
86
  }
87
+ if (exact != null) {
88
+ _queryParams["exact"] = exact;
89
+ }
87
90
  if (limit != null) {
88
91
  _queryParams["limit"] = limit;
89
92
  }
93
+ if (version != null) {
94
+ _queryParams["version"] = version;
95
+ }
90
96
  if (templateId != null) {
91
97
  _queryParams["template_id"] = templateId;
92
98
  }
@@ -112,7 +118,7 @@ class Templates {
112
118
  method: "GET",
113
119
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
114
120
  ? yield core.Supplier.get(this._options.project)
115
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
121
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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
122
  contentType: "application/json",
117
123
  queryParameters: _queryParams,
118
124
  requestType: "json",
@@ -180,7 +186,7 @@ class Templates {
180
186
  method: "POST",
181
187
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
182
188
  ? yield core.Supplier.get(this._options.project)
183
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
189
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
184
190
  contentType: "application/json",
185
191
  requestType: "json",
186
192
  body: serializers.TemplatesSaveTemplateVersionRequest.jsonOrThrow(request, {
@@ -255,7 +261,7 @@ class Templates {
255
261
  method: "DELETE",
256
262
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
257
263
  ? yield core.Supplier.get(this._options.project)
258
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
264
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
259
265
  contentType: "application/json",
260
266
  requestType: "json",
261
267
  body: serializers.TemplatesDeleteTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -325,7 +331,7 @@ class Templates {
325
331
  method: "GET",
326
332
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
327
333
  ? yield core.Supplier.get(this._options.project)
328
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
334
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
329
335
  contentType: "application/json",
330
336
  requestType: "json",
331
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -392,7 +398,7 @@ class Templates {
392
398
  method: "POST",
393
399
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
394
400
  ? yield core.Supplier.get(this._options.project)
395
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
401
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
396
402
  contentType: "application/json",
397
403
  requestType: "json",
398
404
  body: serializers.TemplatesForkTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -466,7 +472,7 @@ class Templates {
466
472
  method: "POST",
467
473
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
468
474
  ? yield core.Supplier.get(this._options.project)
469
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
475
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
470
476
  contentType: "application/json",
471
477
  requestType: "json",
472
478
  body: Object.assign(Object.assign({}, serializers.TemplatesCreateTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { type: "agent" }),
@@ -543,7 +549,7 @@ class Templates {
543
549
  method: "PATCH",
544
550
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
545
551
  ? yield core.Supplier.get(this._options.project)
546
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
552
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
547
553
  contentType: "application/json",
548
554
  requestType: "json",
549
555
  body: serializers.TemplatesRenameTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -634,7 +640,7 @@ class Templates {
634
640
  method: "GET",
635
641
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
636
642
  ? yield core.Supplier.get(this._options.project)
637
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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),
643
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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),
638
644
  contentType: "application/json",
639
645
  queryParameters: _queryParams,
640
646
  requestType: "json",
@@ -8,7 +8,15 @@ import * as Letta from "../../../../index";
8
8
  */
9
9
  export interface TemplatesListRequest {
10
10
  offset?: string;
11
+ /**
12
+ * Whether to search for an exact name match
13
+ */
14
+ exact?: string;
11
15
  limit?: string;
16
+ /**
17
+ * Specify the version you want to return, otherwise will return the latest version
18
+ */
19
+ version?: string;
12
20
  templateId?: string;
13
21
  name?: string;
14
22
  search?: string;
@@ -83,7 +83,7 @@ class Agents {
83
83
  method: "POST",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.198", "User-Agent": "@letta-ai/letta-client/0.1.198", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "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
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),