@letta-ai/letta-client 0.0.68642 → 0.0.68643

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 (226) hide show
  1. package/api/resources/agents/client/Client.js +11 -11
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/files/client/Client.js +4 -4
  6. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +9 -9
  10. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  14. package/api/resources/batches/client/Client.d.ts +6 -3
  15. package/api/resources/batches/client/Client.js +34 -11
  16. package/api/resources/batches/client/requests/BatchesListRequest.d.ts +30 -0
  17. package/api/resources/batches/client/requests/index.d.ts +1 -0
  18. package/api/resources/batches/index.d.ts +1 -0
  19. package/api/resources/batches/index.js +1 -0
  20. package/api/resources/batches/resources/messages/client/Client.js +5 -2
  21. package/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
  22. package/api/resources/batches/types/BatchesListRequestOrder.d.ts +11 -0
  23. package/api/resources/batches/types/BatchesListRequestOrder.js +10 -0
  24. package/api/resources/batches/types/index.d.ts +1 -0
  25. package/api/resources/batches/types/index.js +17 -0
  26. package/api/resources/blocks/client/Client.js +6 -6
  27. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  28. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  29. package/api/resources/embeddingModels/client/Client.js +1 -1
  30. package/api/resources/folders/client/Client.js +9 -9
  31. package/api/resources/folders/resources/files/client/Client.js +3 -3
  32. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  33. package/api/resources/groups/client/Client.js +6 -6
  34. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  35. package/api/resources/health/client/Client.js +1 -1
  36. package/api/resources/identities/client/Client.js +7 -7
  37. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  38. package/api/resources/index.d.ts +4 -2
  39. package/api/resources/index.js +5 -3
  40. package/api/resources/jobs/client/Client.js +5 -5
  41. package/api/resources/models/client/Client.js +2 -2
  42. package/api/resources/projects/client/Client.js +1 -1
  43. package/api/resources/providers/client/Client.d.ts +6 -4
  44. package/api/resources/providers/client/Client.js +11 -9
  45. package/api/resources/runs/client/Client.js +5 -5
  46. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  47. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  48. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  49. package/api/resources/sources/client/Client.js +10 -10
  50. package/api/resources/sources/resources/files/client/Client.js +3 -3
  51. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  52. package/api/resources/steps/client/Client.d.ts +3 -3
  53. package/api/resources/steps/client/Client.js +8 -8
  54. package/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
  55. package/api/resources/steps/resources/feedback/client/Client.js +3 -10
  56. package/api/resources/steps/resources/feedback/client/requests/{FeedbackCreateRequest.d.ts → AddFeedbackRequest.d.ts} +2 -1
  57. package/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  58. package/api/resources/steps/resources/index.d.ts +1 -1
  59. package/api/resources/steps/resources/index.js +2 -2
  60. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  61. package/api/resources/steps/resources/trace/client/Client.d.ts +4 -1
  62. package/api/resources/steps/resources/trace/client/Client.js +31 -7
  63. package/api/resources/tags/client/Client.d.ts +1 -1
  64. package/api/resources/tags/client/Client.js +15 -4
  65. package/api/resources/tags/client/requests/TagsListRequest.d.ts +22 -0
  66. package/api/resources/tags/index.d.ts +1 -0
  67. package/api/resources/tags/index.js +1 -0
  68. package/api/resources/tags/types/TagsListRequestOrder.d.ts +11 -0
  69. package/api/resources/tags/types/TagsListRequestOrder.js +10 -0
  70. package/api/resources/tags/types/index.d.ts +1 -0
  71. package/api/resources/tags/types/index.js +17 -0
  72. package/api/resources/telemetry/client/Client.js +1 -1
  73. package/api/resources/templates/client/Client.js +9 -9
  74. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  75. package/api/resources/tools/client/Client.js +20 -20
  76. package/api/resources/voice/client/Client.js +1 -1
  77. package/dist/api/resources/agents/client/Client.js +11 -11
  78. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  79. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  80. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  81. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  82. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  83. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  84. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  85. package/dist/api/resources/agents/resources/messages/client/Client.js +9 -9
  86. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  87. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  88. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  89. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  90. package/dist/api/resources/batches/client/Client.d.ts +6 -3
  91. package/dist/api/resources/batches/client/Client.js +34 -11
  92. package/dist/api/resources/batches/client/requests/BatchesListRequest.d.ts +30 -0
  93. package/dist/api/resources/batches/client/requests/BatchesListRequest.js +5 -0
  94. package/dist/api/resources/batches/client/requests/index.d.ts +1 -0
  95. package/dist/api/resources/batches/index.d.ts +1 -0
  96. package/dist/api/resources/batches/index.js +1 -0
  97. package/dist/api/resources/batches/resources/messages/client/Client.js +5 -2
  98. package/dist/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
  99. package/dist/api/resources/batches/types/BatchesListRequestOrder.d.ts +11 -0
  100. package/dist/api/resources/batches/types/BatchesListRequestOrder.js +10 -0
  101. package/dist/api/resources/batches/types/index.d.ts +1 -0
  102. package/dist/api/resources/batches/types/index.js +17 -0
  103. package/dist/api/resources/blocks/client/Client.js +6 -6
  104. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  105. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  106. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  107. package/dist/api/resources/folders/client/Client.js +9 -9
  108. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  109. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  110. package/dist/api/resources/groups/client/Client.js +6 -6
  111. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  112. package/dist/api/resources/health/client/Client.js +1 -1
  113. package/dist/api/resources/identities/client/Client.js +7 -7
  114. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  115. package/dist/api/resources/index.d.ts +4 -2
  116. package/dist/api/resources/index.js +5 -3
  117. package/dist/api/resources/jobs/client/Client.js +5 -5
  118. package/dist/api/resources/models/client/Client.js +2 -2
  119. package/dist/api/resources/projects/client/Client.js +1 -1
  120. package/dist/api/resources/providers/client/Client.d.ts +6 -4
  121. package/dist/api/resources/providers/client/Client.js +11 -9
  122. package/dist/api/resources/runs/client/Client.js +5 -5
  123. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  124. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  125. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  126. package/dist/api/resources/sources/client/Client.js +10 -10
  127. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  128. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  129. package/dist/api/resources/steps/client/Client.d.ts +3 -3
  130. package/dist/api/resources/steps/client/Client.js +8 -8
  131. package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +2 -2
  132. package/dist/api/resources/steps/resources/feedback/client/Client.js +3 -10
  133. package/dist/api/resources/steps/resources/feedback/client/requests/{FeedbackCreateRequest.d.ts → AddFeedbackRequest.d.ts} +2 -1
  134. package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +5 -0
  135. package/dist/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  136. package/dist/api/resources/steps/resources/index.d.ts +1 -1
  137. package/dist/api/resources/steps/resources/index.js +2 -2
  138. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  139. package/dist/api/resources/steps/resources/trace/client/Client.d.ts +4 -1
  140. package/dist/api/resources/steps/resources/trace/client/Client.js +31 -7
  141. package/dist/api/resources/tags/client/Client.d.ts +1 -1
  142. package/dist/api/resources/tags/client/Client.js +15 -4
  143. package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +22 -0
  144. package/dist/api/resources/tags/index.d.ts +1 -0
  145. package/dist/api/resources/tags/index.js +1 -0
  146. package/dist/api/resources/tags/types/TagsListRequestOrder.d.ts +11 -0
  147. package/dist/api/resources/tags/types/TagsListRequestOrder.js +10 -0
  148. package/dist/api/resources/tags/types/index.d.ts +1 -0
  149. package/dist/api/resources/tags/types/index.js +17 -0
  150. package/dist/api/resources/telemetry/client/Client.js +1 -1
  151. package/dist/api/resources/templates/client/Client.js +9 -9
  152. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  153. package/dist/api/resources/tools/client/Client.js +20 -20
  154. package/dist/api/resources/voice/client/Client.js +1 -1
  155. package/dist/serialization/resources/batches/index.d.ts +1 -0
  156. package/dist/serialization/resources/batches/index.js +1 -0
  157. package/dist/serialization/resources/batches/types/BatchesListRequestOrder.d.ts +10 -0
  158. package/dist/serialization/resources/batches/types/BatchesListRequestOrder.js +41 -0
  159. package/dist/serialization/resources/batches/types/index.d.ts +1 -0
  160. package/dist/serialization/resources/batches/types/index.js +17 -0
  161. package/dist/serialization/resources/index.d.ts +4 -2
  162. package/dist/serialization/resources/index.js +5 -3
  163. package/dist/serialization/resources/steps/index.d.ts +1 -0
  164. package/dist/serialization/resources/steps/index.js +1 -0
  165. package/dist/serialization/resources/steps/resources/feedback/client/index.d.ts +1 -0
  166. package/dist/serialization/resources/steps/resources/feedback/client/index.js +17 -0
  167. package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +13 -0
  168. package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +44 -0
  169. package/dist/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -0
  170. package/dist/serialization/resources/steps/resources/feedback/client/requests/index.js +5 -0
  171. package/dist/serialization/resources/steps/resources/feedback/index.d.ts +1 -0
  172. package/dist/serialization/resources/steps/resources/feedback/index.js +17 -0
  173. package/dist/serialization/resources/steps/resources/index.d.ts +3 -0
  174. package/dist/serialization/resources/steps/resources/index.js +42 -0
  175. package/dist/serialization/resources/steps/resources/trace/client/index.d.ts +1 -0
  176. package/dist/serialization/resources/steps/resources/trace/client/index.js +37 -0
  177. package/dist/serialization/resources/steps/resources/trace/client/retrieve.d.ts +11 -0
  178. package/dist/serialization/resources/steps/resources/trace/client/retrieve.js +8 -0
  179. package/dist/serialization/resources/steps/resources/trace/index.d.ts +1 -0
  180. package/dist/serialization/resources/steps/resources/trace/index.js +17 -0
  181. package/dist/serialization/resources/tags/index.d.ts +1 -0
  182. package/dist/serialization/resources/tags/index.js +1 -0
  183. package/dist/serialization/resources/tags/types/TagsListRequestOrder.d.ts +10 -0
  184. package/dist/serialization/resources/tags/types/TagsListRequestOrder.js +41 -0
  185. package/dist/serialization/resources/tags/types/index.d.ts +1 -0
  186. package/dist/serialization/resources/tags/types/index.js +17 -0
  187. package/dist/version.d.ts +1 -1
  188. package/dist/version.js +1 -1
  189. package/package.json +1 -1
  190. package/reference.md +64 -39
  191. package/serialization/resources/batches/index.d.ts +1 -0
  192. package/serialization/resources/batches/index.js +1 -0
  193. package/serialization/resources/batches/types/BatchesListRequestOrder.d.ts +10 -0
  194. package/serialization/resources/batches/types/BatchesListRequestOrder.js +41 -0
  195. package/serialization/resources/batches/types/index.d.ts +1 -0
  196. package/serialization/resources/batches/types/index.js +17 -0
  197. package/serialization/resources/index.d.ts +4 -2
  198. package/serialization/resources/index.js +5 -3
  199. package/serialization/resources/steps/index.d.ts +1 -0
  200. package/serialization/resources/steps/index.js +1 -0
  201. package/serialization/resources/steps/resources/feedback/client/index.d.ts +1 -0
  202. package/serialization/resources/steps/resources/feedback/client/index.js +17 -0
  203. package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +13 -0
  204. package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +44 -0
  205. package/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -0
  206. package/serialization/resources/steps/resources/feedback/client/requests/index.js +5 -0
  207. package/serialization/resources/steps/resources/feedback/index.d.ts +1 -0
  208. package/serialization/resources/steps/resources/feedback/index.js +17 -0
  209. package/serialization/resources/steps/resources/index.d.ts +3 -0
  210. package/serialization/resources/steps/resources/index.js +42 -0
  211. package/serialization/resources/steps/resources/trace/client/index.d.ts +1 -0
  212. package/serialization/resources/steps/resources/trace/client/index.js +37 -0
  213. package/serialization/resources/steps/resources/trace/client/retrieve.d.ts +11 -0
  214. package/serialization/resources/steps/resources/trace/client/retrieve.js +8 -0
  215. package/serialization/resources/steps/resources/trace/index.d.ts +1 -0
  216. package/serialization/resources/steps/resources/trace/index.js +17 -0
  217. package/serialization/resources/tags/index.d.ts +1 -0
  218. package/serialization/resources/tags/index.js +1 -0
  219. package/serialization/resources/tags/types/TagsListRequestOrder.d.ts +10 -0
  220. package/serialization/resources/tags/types/TagsListRequestOrder.js +41 -0
  221. package/serialization/resources/tags/types/index.d.ts +1 -0
  222. package/serialization/resources/tags/types/index.js +17 -0
  223. package/version.d.ts +1 -1
  224. package/version.js +1 -1
  225. /package/api/resources/{steps/resources/feedback/client/requests/FeedbackCreateRequest.js → batches/client/requests/BatchesListRequest.js} +0 -0
  226. /package/{dist/api/resources/steps/resources/feedback/client/requests/FeedbackCreateRequest.js → api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js} +0 -0
@@ -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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "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.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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",
@@ -5,8 +5,8 @@ import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
6
  import * as Letta from "../../../index";
7
7
  import { Metrics } from "../resources/metrics/client/Client";
8
- import { Feedback } from "../resources/feedback/client/Client";
9
8
  import { Trace } from "../resources/trace/client/Client";
9
+ import { Feedback } from "../resources/feedback/client/Client";
10
10
  export declare namespace Steps {
11
11
  interface Options {
12
12
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -33,12 +33,12 @@ export declare namespace Steps {
33
33
  export declare class Steps {
34
34
  protected readonly _options: Steps.Options;
35
35
  protected _metrics: Metrics | undefined;
36
- protected _feedback: Feedback | undefined;
37
36
  protected _trace: Trace | undefined;
37
+ protected _feedback: Feedback | undefined;
38
38
  constructor(_options?: Steps.Options);
39
39
  get metrics(): Metrics;
40
- get feedback(): Feedback;
41
40
  get trace(): Trace;
41
+ get feedback(): Feedback;
42
42
  /**
43
43
  * List steps with optional pagination and date filters.
44
44
  * Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)
@@ -56,8 +56,8 @@ const serializers = __importStar(require("../../../../serialization/index"));
56
56
  const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  const Client_1 = require("../resources/metrics/client/Client");
59
- const Client_2 = require("../resources/feedback/client/Client");
60
- const Client_3 = require("../resources/trace/client/Client");
59
+ const Client_2 = require("../resources/trace/client/Client");
60
+ const Client_3 = require("../resources/feedback/client/Client");
61
61
  class Steps {
62
62
  constructor(_options = {}) {
63
63
  this._options = _options;
@@ -66,13 +66,13 @@ class Steps {
66
66
  var _a;
67
67
  return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_1.Metrics(this._options)));
68
68
  }
69
- get feedback() {
69
+ get trace() {
70
70
  var _a;
71
- return ((_a = this._feedback) !== null && _a !== void 0 ? _a : (this._feedback = new Client_2.Feedback(this._options)));
71
+ return ((_a = this._trace) !== null && _a !== void 0 ? _a : (this._trace = new Client_2.Trace(this._options)));
72
72
  }
73
- get trace() {
73
+ get feedback() {
74
74
  var _a;
75
- return ((_a = this._trace) !== null && _a !== void 0 ? _a : (this._trace = new Client_3.Trace(this._options)));
75
+ return ((_a = this._feedback) !== null && _a !== void 0 ? _a : (this._feedback = new Client_3.Feedback(this._options)));
76
76
  }
77
77
  /**
78
78
  * List steps with optional pagination and date filters.
@@ -150,7 +150,7 @@ class Steps {
150
150
  method: "GET",
151
151
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
152
152
  ? yield core.Supplier.get(this._options.project)
153
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
153
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
154
  contentType: "application/json",
155
155
  queryParameters: _queryParams,
156
156
  requestType: "json",
@@ -227,7 +227,7 @@ class Steps {
227
227
  method: "GET",
228
228
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
229
229
  ? yield core.Supplier.get(this._options.project)
230
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
231
  contentType: "application/json",
232
232
  requestType: "json",
233
233
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -34,7 +34,7 @@ export declare class Feedback {
34
34
  * Add feedback to a step.
35
35
  *
36
36
  * @param {string} stepId
37
- * @param {Letta.steps.FeedbackCreateRequest} request
37
+ * @param {Letta.steps.AddFeedbackRequest} request
38
38
  * @param {Feedback.RequestOptions} requestOptions - Request-specific configuration.
39
39
  *
40
40
  * @throws {@link Letta.UnprocessableEntityError}
@@ -42,7 +42,7 @@ export declare class Feedback {
42
42
  * @example
43
43
  * await client.steps.feedback.create("step_id")
44
44
  */
45
- create(stepId: string, request?: Letta.steps.FeedbackCreateRequest, requestOptions?: Feedback.RequestOptions): core.HttpResponsePromise<Letta.Step>;
45
+ create(stepId: string, request?: Letta.steps.AddFeedbackRequest, requestOptions?: Feedback.RequestOptions): core.HttpResponsePromise<Letta.Step>;
46
46
  private __create;
47
47
  protected _getCustomAuthorizationHeaders(): Promise<{
48
48
  Authorization: string;
@@ -63,7 +63,7 @@ class Feedback {
63
63
  * Add feedback to a step.
64
64
  *
65
65
  * @param {string} stepId
66
- * @param {Letta.steps.FeedbackCreateRequest} request
66
+ * @param {Letta.steps.AddFeedbackRequest} request
67
67
  * @param {Feedback.RequestOptions} requestOptions - Request-specific configuration.
68
68
  *
69
69
  * @throws {@link Letta.UnprocessableEntityError}
@@ -77,22 +77,15 @@ class Feedback {
77
77
  __create(stepId_1) {
78
78
  return __awaiter(this, arguments, void 0, function* (stepId, request = {}, requestOptions) {
79
79
  var _a, _b, _c;
80
- const { feedback } = request;
81
- const _queryParams = {};
82
- if (feedback != null) {
83
- _queryParams["feedback"] = serializers.FeedbackType.jsonOrThrow(feedback, {
84
- unrecognizedObjectKeys: "strip",
85
- });
86
- }
87
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
81
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}/feedback`),
89
82
  method: "PATCH",
90
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
91
84
  ? 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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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
86
  contentType: "application/json",
94
- queryParameters: _queryParams,
95
87
  requestType: "json",
88
+ body: serializers.steps.AddFeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
96
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
97
90
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
98
91
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -6,6 +6,7 @@ import * as Letta from "../../../../../../index";
6
6
  * @example
7
7
  * {}
8
8
  */
9
- export interface FeedbackCreateRequest {
9
+ export interface AddFeedbackRequest {
10
+ /** Whether this feedback is positive or negative */
10
11
  feedback?: Letta.FeedbackType;
11
12
  }
@@ -1 +1 @@
1
- export { type FeedbackCreateRequest } from "./FeedbackCreateRequest";
1
+ export { type AddFeedbackRequest } from "./AddFeedbackRequest";
@@ -1,4 +1,4 @@
1
1
  export * as metrics from "./metrics";
2
- export * as feedback from "./feedback";
3
2
  export * as trace from "./trace";
3
+ export * as feedback from "./feedback";
4
4
  export * from "./feedback/client/requests";
@@ -36,8 +36,8 @@ 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.trace = exports.feedback = exports.metrics = void 0;
39
+ exports.feedback = exports.trace = exports.metrics = void 0;
40
40
  exports.metrics = __importStar(require("./metrics"));
41
- exports.feedback = __importStar(require("./feedback"));
42
41
  exports.trace = __importStar(require("./trace"));
42
+ exports.feedback = __importStar(require("./feedback"));
43
43
  __exportStar(require("./feedback/client/requests"), exports);
@@ -81,7 +81,7 @@ class Metrics {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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,
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../../../environments";
5
5
  import * as core from "../../../../../../core";
6
+ import * as Letta from "../../../../../index";
6
7
  export declare namespace Trace {
7
8
  interface Options {
8
9
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -33,10 +34,12 @@ export declare class Trace {
33
34
  * @param {string} stepId
34
35
  * @param {Trace.RequestOptions} requestOptions - Request-specific configuration.
35
36
  *
37
+ * @throws {@link Letta.UnprocessableEntityError}
38
+ *
36
39
  * @example
37
40
  * await client.steps.trace.retrieve("step_id")
38
41
  */
39
- retrieve(stepId: string, requestOptions?: Trace.RequestOptions): core.HttpResponsePromise<void>;
42
+ retrieve(stepId: string, requestOptions?: Trace.RequestOptions): core.HttpResponsePromise<Letta.ProviderTrace | undefined>;
40
43
  private __retrieve;
41
44
  protected _getCustomAuthorizationHeaders(): Promise<{
42
45
  Authorization: string;
@@ -51,7 +51,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.Trace = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
+ const Letta = __importStar(require("../../../../../index"));
54
55
  const url_join_1 = __importDefault(require("url-join"));
56
+ const serializers = __importStar(require("../../../../../../serialization/index"));
55
57
  const errors = __importStar(require("../../../../../../errors/index"));
56
58
  class Trace {
57
59
  constructor(_options = {}) {
@@ -61,6 +63,8 @@ class Trace {
61
63
  * @param {string} stepId
62
64
  * @param {Trace.RequestOptions} requestOptions - Request-specific configuration.
63
65
  *
66
+ * @throws {@link Letta.UnprocessableEntityError}
67
+ *
64
68
  * @example
65
69
  * await client.steps.trace.retrieve("step_id")
66
70
  */
@@ -75,7 +79,7 @@ class Trace {
75
79
  method: "GET",
76
80
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
77
81
  ? 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.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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
83
  contentType: "application/json",
80
84
  requestType: "json",
81
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -83,14 +87,34 @@ class Trace {
83
87
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
88
  });
85
89
  if (_response.ok) {
86
- return { data: undefined, rawResponse: _response.rawResponse };
90
+ return {
91
+ data: serializers.steps.trace.retrieve.Response.parseOrThrow(_response.body, {
92
+ unrecognizedObjectKeys: "passthrough",
93
+ allowUnrecognizedUnionMembers: true,
94
+ allowUnrecognizedEnumValues: true,
95
+ skipValidation: true,
96
+ breadcrumbsPrefix: ["response"],
97
+ }),
98
+ rawResponse: _response.rawResponse,
99
+ };
87
100
  }
88
101
  if (_response.error.reason === "status-code") {
89
- throw new errors.LettaError({
90
- statusCode: _response.error.statusCode,
91
- body: _response.error.body,
92
- rawResponse: _response.rawResponse,
93
- });
102
+ switch (_response.error.statusCode) {
103
+ case 422:
104
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
105
+ unrecognizedObjectKeys: "passthrough",
106
+ allowUnrecognizedUnionMembers: true,
107
+ allowUnrecognizedEnumValues: true,
108
+ skipValidation: true,
109
+ breadcrumbsPrefix: ["response"],
110
+ }), _response.rawResponse);
111
+ default:
112
+ throw new errors.LettaError({
113
+ statusCode: _response.error.statusCode,
114
+ body: _response.error.body,
115
+ rawResponse: _response.rawResponse,
116
+ });
117
+ }
94
118
  }
95
119
  switch (_response.error.reason) {
96
120
  case "non-json":
@@ -31,7 +31,7 @@ export declare class Tags {
31
31
  protected readonly _options: Tags.Options;
32
32
  constructor(_options?: Tags.Options);
33
33
  /**
34
- * Get a list of all tags in the database
34
+ * Get a list of all agent tags in the database.
35
35
  *
36
36
  * @param {Letta.TagsListRequest} request
37
37
  * @param {Tags.RequestOptions} requestOptions - Request-specific configuration.
@@ -52,15 +52,15 @@ exports.Tags = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
54
  const Letta = __importStar(require("../../../index"));
55
- const url_join_1 = __importDefault(require("url-join"));
56
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  class Tags {
59
59
  constructor(_options = {}) {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
63
- * Get a list of all tags in the database
63
+ * Get a list of all agent tags in the database.
64
64
  *
65
65
  * @param {Letta.TagsListRequest} request
66
66
  * @param {Tags.RequestOptions} requestOptions - Request-specific configuration.
@@ -76,14 +76,25 @@ class Tags {
76
76
  __list() {
77
77
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
78
78
  var _a, _b, _c;
79
- const { after, limit, queryText } = request;
79
+ const { before, after, limit, order, orderBy, queryText } = request;
80
80
  const _queryParams = {};
81
+ if (before != null) {
82
+ _queryParams["before"] = before;
83
+ }
81
84
  if (after != null) {
82
85
  _queryParams["after"] = after;
83
86
  }
84
87
  if (limit != null) {
85
88
  _queryParams["limit"] = limit.toString();
86
89
  }
90
+ if (order != null) {
91
+ _queryParams["order"] = serializers.TagsListRequestOrder.jsonOrThrow(order, {
92
+ unrecognizedObjectKeys: "strip",
93
+ });
94
+ }
95
+ if (orderBy != null) {
96
+ _queryParams["order_by"] = orderBy;
97
+ }
87
98
  if (queryText != null) {
88
99
  _queryParams["query_text"] = queryText;
89
100
  }
@@ -92,7 +103,7 @@ class Tags {
92
103
  method: "GET",
93
104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
94
105
  ? 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.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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
107
  contentType: "application/json",
97
108
  queryParameters: _queryParams,
98
109
  requestType: "json",
@@ -1,12 +1,34 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
7
8
  */
8
9
  export interface TagsListRequest {
10
+ /**
11
+ * Tag cursor for pagination. Returns tags that come before this tag in the specified sort order
12
+ */
13
+ before?: string;
14
+ /**
15
+ * Tag cursor for pagination. Returns tags that come after this tag in the specified sort order
16
+ */
9
17
  after?: string;
18
+ /**
19
+ * Maximum number of tags to return
20
+ */
10
21
  limit?: number;
22
+ /**
23
+ * Sort order for tags. 'asc' for alphabetical order, 'desc' for reverse alphabetical order
24
+ */
25
+ order?: Letta.TagsListRequestOrder;
26
+ /**
27
+ * Field to sort by
28
+ */
29
+ orderBy?: "name";
30
+ /**
31
+ * Filter tags by text search
32
+ */
11
33
  queryText?: string;
12
34
  }
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sort order for tags. 'asc' for alphabetical order, 'desc' for reverse alphabetical order
6
+ */
7
+ export type TagsListRequestOrder = "asc" | "desc";
8
+ export declare const TagsListRequestOrder: {
9
+ readonly Asc: "asc";
10
+ readonly Desc: "desc";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TagsListRequestOrder = void 0;
7
+ exports.TagsListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./TagsListRequestOrder";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./TagsListRequestOrder"), exports);
@@ -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.0.68642", "User-Agent": "@letta-ai/letta-client/0.0.68642", "X-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.0.68643", "User-Agent": "@letta-ai/letta-client/0.0.68643", "X-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,