@letta-ai/letta-client 0.0.68636 → 0.0.68638

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 (214) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +8 -13
  3. package/api/resources/agents/client/Client.js +11 -11
  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/memoryVariables/client/Client.js +1 -1
  11. package/api/resources/agents/resources/messages/client/Client.js +9 -9
  12. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  13. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  14. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  15. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  16. package/api/resources/batches/client/Client.d.ts +3 -0
  17. package/api/resources/batches/client/Client.js +9 -4
  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/index.d.ts +3 -0
  21. package/api/resources/batches/resources/index.js +42 -0
  22. package/api/resources/{messages → batches/resources/messages}/client/Client.d.ts +8 -15
  23. package/{dist/api → api/resources/batches}/resources/messages/client/Client.js +23 -25
  24. package/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
  25. package/api/resources/batches/resources/messages/client/requests/index.d.ts +1 -0
  26. package/{dist/api → api/resources/batches}/resources/messages/index.d.ts +1 -0
  27. package/{dist/api → api/resources/batches}/resources/messages/index.js +1 -0
  28. package/api/resources/batches/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  29. package/api/resources/batches/resources/messages/types/MessagesListRequestOrder.js +10 -0
  30. package/api/resources/batches/resources/messages/types/index.d.ts +1 -0
  31. package/api/resources/batches/resources/messages/types/index.js +17 -0
  32. package/api/resources/blocks/client/Client.js +6 -6
  33. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  34. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  35. package/api/resources/embeddingModels/client/Client.js +1 -1
  36. package/api/resources/folders/client/Client.js +9 -9
  37. package/api/resources/folders/resources/files/client/Client.js +3 -3
  38. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  39. package/api/resources/groups/client/Client.js +6 -6
  40. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  41. package/api/resources/health/client/Client.js +1 -1
  42. package/api/resources/identities/client/Client.js +7 -7
  43. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  44. package/api/resources/index.d.ts +1 -3
  45. package/api/resources/index.js +2 -4
  46. package/api/resources/jobs/client/Client.js +5 -5
  47. package/api/resources/models/client/Client.js +2 -2
  48. package/api/resources/projects/client/Client.js +1 -1
  49. package/api/resources/providers/client/Client.js +6 -6
  50. package/api/resources/runs/client/Client.js +5 -5
  51. package/api/resources/runs/index.d.ts +1 -1
  52. package/api/resources/runs/index.js +1 -1
  53. package/api/resources/runs/resources/index.d.ts +1 -0
  54. package/api/resources/runs/resources/index.js +1 -0
  55. package/api/resources/runs/resources/messages/client/Client.d.ts +1 -14
  56. package/api/resources/runs/resources/messages/client/Client.js +6 -20
  57. package/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +4 -8
  58. package/api/resources/runs/resources/messages/index.d.ts +1 -0
  59. package/api/resources/runs/resources/messages/index.js +1 -0
  60. package/api/resources/runs/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  61. package/api/resources/runs/resources/messages/types/MessagesListRequestOrder.js +10 -0
  62. package/api/resources/runs/resources/messages/types/index.d.ts +1 -0
  63. package/api/resources/runs/resources/messages/types/index.js +17 -0
  64. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  65. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  66. package/api/resources/sources/client/Client.js +10 -10
  67. package/api/resources/sources/resources/files/client/Client.js +3 -3
  68. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  69. package/api/resources/steps/client/Client.js +3 -3
  70. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  71. package/api/resources/tags/client/Client.js +1 -1
  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/Client.d.ts +0 -3
  78. package/dist/Client.js +8 -13
  79. package/dist/api/resources/agents/client/Client.js +11 -11
  80. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  81. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  82. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  83. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  84. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  85. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  86. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  87. package/dist/api/resources/agents/resources/messages/client/Client.js +9 -9
  88. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  89. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  90. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  91. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  92. package/dist/api/resources/batches/client/Client.d.ts +3 -0
  93. package/dist/api/resources/batches/client/Client.js +9 -4
  94. package/dist/api/resources/batches/index.d.ts +1 -0
  95. package/dist/api/resources/batches/index.js +1 -0
  96. package/dist/api/resources/batches/resources/index.d.ts +3 -0
  97. package/dist/api/resources/batches/resources/index.js +42 -0
  98. package/dist/api/resources/{messages → batches/resources/messages}/client/Client.d.ts +8 -15
  99. package/{api → dist/api/resources/batches}/resources/messages/client/Client.js +23 -25
  100. package/dist/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
  101. package/dist/api/resources/batches/resources/messages/client/requests/index.d.ts +1 -0
  102. package/{api → dist/api/resources/batches}/resources/messages/index.d.ts +1 -0
  103. package/{api → dist/api/resources/batches}/resources/messages/index.js +1 -0
  104. package/dist/api/resources/batches/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  105. package/dist/api/resources/batches/resources/messages/types/MessagesListRequestOrder.js +10 -0
  106. package/dist/api/resources/batches/resources/messages/types/index.d.ts +1 -0
  107. package/dist/api/resources/batches/resources/messages/types/index.js +17 -0
  108. package/dist/api/resources/blocks/client/Client.js +6 -6
  109. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  110. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  111. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  112. package/dist/api/resources/folders/client/Client.js +9 -9
  113. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  114. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  115. package/dist/api/resources/groups/client/Client.js +6 -6
  116. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  117. package/dist/api/resources/health/client/Client.js +1 -1
  118. package/dist/api/resources/identities/client/Client.js +7 -7
  119. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  120. package/dist/api/resources/index.d.ts +1 -3
  121. package/dist/api/resources/index.js +2 -4
  122. package/dist/api/resources/jobs/client/Client.js +5 -5
  123. package/dist/api/resources/models/client/Client.js +2 -2
  124. package/dist/api/resources/projects/client/Client.js +1 -1
  125. package/dist/api/resources/providers/client/Client.js +6 -6
  126. package/dist/api/resources/runs/client/Client.js +5 -5
  127. package/dist/api/resources/runs/index.d.ts +1 -1
  128. package/dist/api/resources/runs/index.js +1 -1
  129. package/dist/api/resources/runs/resources/index.d.ts +1 -0
  130. package/dist/api/resources/runs/resources/index.js +1 -0
  131. package/dist/api/resources/runs/resources/messages/client/Client.d.ts +1 -14
  132. package/dist/api/resources/runs/resources/messages/client/Client.js +6 -20
  133. package/dist/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +4 -8
  134. package/dist/api/resources/runs/resources/messages/index.d.ts +1 -0
  135. package/dist/api/resources/runs/resources/messages/index.js +1 -0
  136. package/dist/api/resources/runs/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  137. package/dist/api/resources/runs/resources/messages/types/MessagesListRequestOrder.js +10 -0
  138. package/dist/api/resources/runs/resources/messages/types/index.d.ts +1 -0
  139. package/dist/api/resources/runs/resources/messages/types/index.js +17 -0
  140. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  141. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  142. package/dist/api/resources/sources/client/Client.js +10 -10
  143. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  144. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  145. package/dist/api/resources/steps/client/Client.js +3 -3
  146. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  147. package/dist/api/resources/tags/client/Client.js +1 -1
  148. package/dist/api/resources/telemetry/client/Client.js +1 -1
  149. package/dist/api/resources/templates/client/Client.js +9 -9
  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/serialization/resources/batches/index.d.ts +1 -0
  154. package/dist/serialization/resources/batches/index.js +1 -0
  155. package/dist/serialization/resources/batches/resources/index.d.ts +2 -0
  156. package/dist/serialization/resources/batches/resources/index.js +41 -0
  157. package/dist/serialization/resources/batches/resources/messages/index.d.ts +1 -0
  158. package/dist/serialization/resources/batches/resources/messages/index.js +17 -0
  159. package/dist/serialization/resources/batches/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  160. package/dist/serialization/resources/batches/resources/messages/types/MessagesListRequestOrder.js +41 -0
  161. package/dist/serialization/resources/batches/resources/messages/types/index.d.ts +1 -0
  162. package/dist/serialization/resources/batches/resources/messages/types/index.js +17 -0
  163. package/dist/serialization/resources/index.d.ts +1 -1
  164. package/dist/serialization/resources/index.js +2 -2
  165. package/dist/serialization/resources/runs/index.d.ts +1 -1
  166. package/dist/serialization/resources/runs/index.js +1 -1
  167. package/dist/serialization/resources/runs/resources/index.d.ts +1 -0
  168. package/dist/serialization/resources/runs/resources/index.js +4 -0
  169. package/dist/serialization/resources/runs/resources/messages/index.d.ts +1 -0
  170. package/dist/serialization/resources/runs/resources/messages/index.js +1 -0
  171. package/dist/serialization/resources/runs/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  172. package/dist/serialization/resources/runs/resources/messages/types/MessagesListRequestOrder.js +41 -0
  173. package/dist/serialization/resources/runs/resources/messages/types/index.d.ts +1 -0
  174. package/dist/serialization/resources/runs/resources/messages/types/index.js +17 -0
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +1 -1
  178. package/reference.md +74 -94
  179. package/serialization/resources/batches/index.d.ts +1 -0
  180. package/serialization/resources/batches/index.js +1 -0
  181. package/serialization/resources/batches/resources/index.d.ts +2 -0
  182. package/serialization/resources/batches/resources/index.js +41 -0
  183. package/serialization/resources/batches/resources/messages/index.d.ts +1 -0
  184. package/serialization/resources/batches/resources/messages/index.js +17 -0
  185. package/serialization/resources/batches/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  186. package/serialization/resources/batches/resources/messages/types/MessagesListRequestOrder.js +41 -0
  187. package/serialization/resources/batches/resources/messages/types/index.d.ts +1 -0
  188. package/serialization/resources/batches/resources/messages/types/index.js +17 -0
  189. package/serialization/resources/index.d.ts +1 -1
  190. package/serialization/resources/index.js +2 -2
  191. package/serialization/resources/runs/index.d.ts +1 -1
  192. package/serialization/resources/runs/index.js +1 -1
  193. package/serialization/resources/runs/resources/index.d.ts +1 -0
  194. package/serialization/resources/runs/resources/index.js +4 -0
  195. package/serialization/resources/runs/resources/messages/index.d.ts +1 -0
  196. package/serialization/resources/runs/resources/messages/index.js +1 -0
  197. package/serialization/resources/runs/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  198. package/serialization/resources/runs/resources/messages/types/MessagesListRequestOrder.js +41 -0
  199. package/serialization/resources/runs/resources/messages/types/index.d.ts +1 -0
  200. package/serialization/resources/runs/resources/messages/types/index.js +17 -0
  201. package/version.d.ts +1 -1
  202. package/version.js +1 -1
  203. package/api/resources/messages/client/requests/ListBatchMessagesRequest.d.ts +0 -25
  204. package/api/resources/messages/client/requests/index.d.ts +0 -1
  205. package/dist/api/resources/messages/client/requests/ListBatchMessagesRequest.d.ts +0 -25
  206. package/dist/api/resources/messages/client/requests/index.d.ts +0 -1
  207. /package/api/resources/{messages → batches/resources/messages}/client/index.d.ts +0 -0
  208. /package/api/resources/{messages → batches/resources/messages}/client/index.js +0 -0
  209. /package/api/resources/{messages/client/requests/ListBatchMessagesRequest.js → batches/resources/messages/client/requests/MessagesListRequest.js} +0 -0
  210. /package/api/resources/{messages → batches/resources/messages}/client/requests/index.js +0 -0
  211. /package/dist/api/resources/{messages → batches/resources/messages}/client/index.d.ts +0 -0
  212. /package/dist/api/resources/{messages → batches/resources/messages}/client/index.js +0 -0
  213. /package/dist/api/resources/{messages/client/requests/ListBatchMessagesRequest.js → batches/resources/messages/client/requests/MessagesListRequest.js} +0 -0
  214. /package/dist/api/resources/{messages → batches/resources/messages}/client/requests/index.js +0 -0
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-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.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -158,7 +158,7 @@ class Tools {
158
158
  method: "PATCH",
159
159
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
160
160
  ? yield core.Supplier.get(this._options.project)
161
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
162
  contentType: "application/json",
163
163
  requestType: "json",
164
164
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Tools {
235
235
  method: "PATCH",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -318,7 +318,7 @@ class Tools {
318
318
  method: "PATCH",
319
319
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
320
320
  ? yield core.Supplier.get(this._options.project)
321
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
321
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
322
322
  contentType: "application/json",
323
323
  queryParameters: _queryParams,
324
324
  requestType: "json",
@@ -4,6 +4,7 @@
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
6
  import * as Letta from "../../../index";
7
+ import { Messages } from "../resources/messages/client/Client";
7
8
  export declare namespace Batches {
8
9
  interface Options {
9
10
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -29,7 +30,9 @@ export declare namespace Batches {
29
30
  }
30
31
  export declare class Batches {
31
32
  protected readonly _options: Batches.Options;
33
+ protected _messages: Messages | undefined;
32
34
  constructor(_options?: Batches.Options);
35
+ get messages(): Messages;
33
36
  /**
34
37
  * List all batch runs.
35
38
  *
@@ -55,10 +55,15 @@ const Letta = __importStar(require("../../../index"));
55
55
  const url_join_1 = __importDefault(require("url-join"));
56
56
  const serializers = __importStar(require("../../../../serialization/index"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
+ const Client_1 = require("../resources/messages/client/Client");
58
59
  class Batches {
59
60
  constructor(_options = {}) {
60
61
  this._options = _options;
61
62
  }
63
+ get messages() {
64
+ var _a;
65
+ return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_1.Messages(this._options)));
66
+ }
62
67
  /**
63
68
  * List all batch runs.
64
69
  *
@@ -80,7 +85,7 @@ class Batches {
80
85
  method: "GET",
81
86
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
82
87
  ? yield core.Supplier.get(this._options.project)
83
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-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
89
  contentType: "application/json",
85
90
  requestType: "json",
86
91
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -168,7 +173,7 @@ class Batches {
168
173
  method: "POST",
169
174
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
170
175
  ? yield core.Supplier.get(this._options.project)
171
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
177
  contentType: "application/json",
173
178
  requestType: "json",
174
179
  body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -245,7 +250,7 @@ class Batches {
245
250
  method: "GET",
246
251
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
247
252
  ? yield core.Supplier.get(this._options.project)
248
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
253
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
254
  contentType: "application/json",
250
255
  requestType: "json",
251
256
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -321,7 +326,7 @@ class Batches {
321
326
  method: "PATCH",
322
327
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
323
328
  ? yield core.Supplier.get(this._options.project)
324
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
325
330
  contentType: "application/json",
326
331
  requestType: "json",
327
332
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1 +1,2 @@
1
+ export * from "./resources";
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("./resources"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,3 @@
1
+ export * as messages from "./messages";
2
+ export * from "./messages/types";
3
+ export * from "./messages/client/requests";
@@ -0,0 +1,42 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.messages = void 0;
40
+ exports.messages = __importStar(require("./messages"));
41
+ __exportStar(require("./messages/types"), exports);
42
+ __exportStar(require("./messages/client/requests"), exports);
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as environments from "../../../../environments";
5
- import * as core from "../../../../core";
6
- import * as Letta from "../../../index";
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as Letta from "../../../../../index";
7
7
  export declare namespace Messages {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -31,26 +31,19 @@ export declare class Messages {
31
31
  protected readonly _options: Messages.Options;
32
32
  constructor(_options?: Messages.Options);
33
33
  /**
34
- * Get messages for a specific batch job.
35
- *
36
- * Returns messages associated with the batch in chronological order.
37
- *
38
- * Pagination:
39
- * - For the first page, omit the cursor parameter
40
- * - For subsequent pages, use the ID of the last message from the previous response as the cursor
41
- * - Results will include messages before/after the cursor based on sort_descending
34
+ * Get response messages for a specific batch job.
42
35
  *
43
36
  * @param {string} batchId
44
- * @param {Letta.ListBatchMessagesRequest} request
37
+ * @param {Letta.batches.MessagesListRequest} request
45
38
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
46
39
  *
47
40
  * @throws {@link Letta.UnprocessableEntityError}
48
41
  *
49
42
  * @example
50
- * await client.messages.listBatchMessages("batch_id")
43
+ * await client.batches.messages.list("batch_id")
51
44
  */
52
- listBatchMessages(batchId: string, request?: Letta.ListBatchMessagesRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Letta.LettaBatchMessages>;
53
- private __listBatchMessages;
45
+ list(batchId: string, request?: Letta.batches.MessagesListRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Letta.LettaBatchMessages>;
46
+ private __list;
54
47
  protected _getCustomAuthorizationHeaders(): Promise<{
55
48
  Authorization: string;
56
49
  }>;
@@ -49,61 +49,59 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
49
49
  };
50
50
  Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.Messages = void 0;
52
- const environments = __importStar(require("../../../../environments"));
53
- const core = __importStar(require("../../../../core"));
54
- const Letta = __importStar(require("../../../index"));
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const Letta = __importStar(require("../../../../../index"));
55
+ const serializers = __importStar(require("../../../../../../serialization/index"));
55
56
  const url_join_1 = __importDefault(require("url-join"));
56
- const serializers = __importStar(require("../../../../serialization/index"));
57
- const errors = __importStar(require("../../../../errors/index"));
57
+ const errors = __importStar(require("../../../../../../errors/index"));
58
58
  class Messages {
59
59
  constructor(_options = {}) {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
63
- * Get messages for a specific batch job.
64
- *
65
- * Returns messages associated with the batch in chronological order.
66
- *
67
- * Pagination:
68
- * - For the first page, omit the cursor parameter
69
- * - For subsequent pages, use the ID of the last message from the previous response as the cursor
70
- * - Results will include messages before/after the cursor based on sort_descending
63
+ * Get response messages for a specific batch job.
71
64
  *
72
65
  * @param {string} batchId
73
- * @param {Letta.ListBatchMessagesRequest} request
66
+ * @param {Letta.batches.MessagesListRequest} request
74
67
  * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
75
68
  *
76
69
  * @throws {@link Letta.UnprocessableEntityError}
77
70
  *
78
71
  * @example
79
- * await client.messages.listBatchMessages("batch_id")
72
+ * await client.batches.messages.list("batch_id")
80
73
  */
81
- listBatchMessages(batchId, request = {}, requestOptions) {
82
- return core.HttpResponsePromise.fromPromise(this.__listBatchMessages(batchId, request, requestOptions));
74
+ list(batchId, request = {}, requestOptions) {
75
+ return core.HttpResponsePromise.fromPromise(this.__list(batchId, request, requestOptions));
83
76
  }
84
- __listBatchMessages(batchId_1) {
77
+ __list(batchId_1) {
85
78
  return __awaiter(this, arguments, void 0, function* (batchId, request = {}, requestOptions) {
86
79
  var _a, _b, _c;
87
- const { limit, cursor, agentId, sortDescending } = request;
80
+ const { before, after, limit, order, agentId } = request;
88
81
  const _queryParams = {};
82
+ if (before != null) {
83
+ _queryParams["before"] = before;
84
+ }
85
+ if (after != null) {
86
+ _queryParams["after"] = after;
87
+ }
89
88
  if (limit != null) {
90
89
  _queryParams["limit"] = limit.toString();
91
90
  }
92
- if (cursor != null) {
93
- _queryParams["cursor"] = cursor;
91
+ if (order != null) {
92
+ _queryParams["order"] = serializers.batches.MessagesListRequestOrder.jsonOrThrow(order, {
93
+ unrecognizedObjectKeys: "strip",
94
+ });
94
95
  }
95
96
  if (agentId != null) {
96
97
  _queryParams["agent_id"] = agentId;
97
98
  }
98
- if (sortDescending != null) {
99
- _queryParams["sort_descending"] = sortDescending.toString();
100
- }
101
99
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
102
100
  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/messages/batches/${encodeURIComponent(batchId)}/messages`),
103
101
  method: "GET",
104
102
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
105
103
  ? yield core.Supplier.get(this._options.project)
106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
105
  contentType: "application/json",
108
106
  queryParameters: _queryParams,
109
107
  requestType: "json",
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface MessagesListRequest {
10
+ /**
11
+ * Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
12
+ */
13
+ before?: string;
14
+ /**
15
+ * Message ID cursor for pagination. Returns messages that come after this message ID in the specified sort order
16
+ */
17
+ after?: string;
18
+ /**
19
+ * Maximum number of messages to return
20
+ */
21
+ limit?: number;
22
+ /**
23
+ * Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
24
+ */
25
+ order?: Letta.batches.MessagesListRequestOrder;
26
+ /**
27
+ * Filter messages by agent ID
28
+ */
29
+ agentId?: string;
30
+ }
@@ -0,0 +1 @@
1
+ export { type MessagesListRequest } from "./MessagesListRequest";
@@ -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 messages by creation time. 'asc' for oldest first, 'desc' for newest first
6
+ */
7
+ export type MessagesListRequestOrder = "asc" | "desc";
8
+ export declare const MessagesListRequestOrder: {
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.MessagesListRequestOrder = void 0;
7
+ exports.MessagesListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./MessagesListRequestOrder";
@@ -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("./MessagesListRequestOrder"), exports);
@@ -141,7 +141,7 @@ class Blocks {
141
141
  method: "GET",
142
142
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
143
143
  ? yield core.Supplier.get(this._options.project)
144
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
145
  contentType: "application/json",
146
146
  queryParameters: _queryParams,
147
147
  requestType: "json",
@@ -219,7 +219,7 @@ class Blocks {
219
219
  method: "POST",
220
220
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
221
221
  ? yield core.Supplier.get(this._options.project)
222
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
222
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
223
223
  contentType: "application/json",
224
224
  requestType: "json",
225
225
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -295,7 +295,7 @@ class Blocks {
295
295
  method: "GET",
296
296
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
297
297
  ? yield core.Supplier.get(this._options.project)
298
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
298
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
299
299
  contentType: "application/json",
300
300
  requestType: "json",
301
301
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -369,7 +369,7 @@ class Blocks {
369
369
  method: "GET",
370
370
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
371
371
  ? yield core.Supplier.get(this._options.project)
372
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
372
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
373
373
  contentType: "application/json",
374
374
  requestType: "json",
375
375
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -443,7 +443,7 @@ class Blocks {
443
443
  method: "DELETE",
444
444
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
445
445
  ? yield core.Supplier.get(this._options.project)
446
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
446
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
447
447
  contentType: "application/json",
448
448
  requestType: "json",
449
449
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -509,7 +509,7 @@ class Blocks {
509
509
  method: "PATCH",
510
510
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
511
511
  ? yield core.Supplier.get(this._options.project)
512
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
512
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
513
513
  contentType: "application/json",
514
514
  requestType: "json",
515
515
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -93,7 +93,7 @@ class Agents {
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.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-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.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-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",
@@ -92,7 +92,7 @@ class ClientSideAccessTokens {
92
92
  method: "GET",
93
93
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
94
94
  ? yield core.Supplier.get(this._options.project)
95
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -170,7 +170,7 @@ class ClientSideAccessTokens {
170
170
  method: "POST",
171
171
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
172
172
  ? yield core.Supplier.get(this._options.project)
173
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
174
174
  contentType: "application/json",
175
175
  requestType: "json",
176
176
  body: serializers.ClientSideAccessTokensCreateRequest.jsonOrThrow(request, {
@@ -246,7 +246,7 @@ class ClientSideAccessTokens {
246
246
  method: "DELETE",
247
247
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
248
248
  ? yield core.Supplier.get(this._options.project)
249
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
250
  contentType: "application/json",
251
251
  requestType: "json",
252
252
  body: request,
@@ -80,7 +80,7 @@ class EmbeddingModels {
80
80
  method: "GET",
81
81
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
82
82
  ? yield core.Supplier.get(this._options.project)
83
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68636", "User-Agent": "@letta-ai/letta-client/0.1.212", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68638", "User-Agent": "@letta-ai/letta-client/0.0.68638", "X-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
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,