@letta-ai/letta-client 0.0.68637 → 0.0.68639

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 (198) 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.d.ts +1 -1
  10. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  11. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  15. package/api/resources/batches/client/Client.js +4 -4
  16. package/api/resources/batches/index.d.ts +1 -1
  17. package/api/resources/batches/index.js +1 -1
  18. package/api/resources/batches/resources/index.d.ts +1 -0
  19. package/api/resources/batches/resources/index.js +1 -0
  20. package/api/resources/batches/resources/messages/client/Client.d.ts +1 -8
  21. package/api/resources/batches/resources/messages/client/Client.js +14 -16
  22. package/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +11 -6
  23. package/api/resources/batches/resources/messages/index.d.ts +1 -0
  24. package/api/resources/batches/resources/messages/index.js +1 -0
  25. package/api/resources/batches/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  26. package/api/resources/batches/resources/messages/types/MessagesListRequestOrder.js +10 -0
  27. package/api/resources/batches/resources/messages/types/index.d.ts +1 -0
  28. package/api/resources/batches/resources/messages/types/index.js +17 -0
  29. package/api/resources/blocks/client/Client.js +6 -6
  30. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  31. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  32. package/api/resources/embeddingModels/client/Client.js +1 -1
  33. package/api/resources/folders/client/Client.js +9 -9
  34. package/api/resources/folders/resources/files/client/Client.js +3 -3
  35. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  36. package/api/resources/groups/client/Client.js +6 -6
  37. package/api/resources/groups/resources/messages/client/Client.d.ts +1 -1
  38. package/api/resources/groups/resources/messages/client/Client.js +6 -6
  39. package/api/resources/health/client/Client.js +1 -1
  40. package/api/resources/identities/client/Client.js +7 -7
  41. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  42. package/api/resources/index.d.ts +1 -1
  43. package/api/resources/index.js +2 -2
  44. package/api/resources/jobs/client/Client.js +5 -5
  45. package/api/resources/models/client/Client.js +2 -2
  46. package/api/resources/projects/client/Client.js +1 -1
  47. package/api/resources/providers/client/Client.js +6 -6
  48. package/api/resources/runs/client/Client.js +5 -5
  49. package/api/resources/runs/index.d.ts +1 -1
  50. package/api/resources/runs/index.js +1 -1
  51. package/api/resources/runs/resources/index.d.ts +1 -0
  52. package/api/resources/runs/resources/index.js +1 -0
  53. package/api/resources/runs/resources/messages/client/Client.d.ts +1 -14
  54. package/api/resources/runs/resources/messages/client/Client.js +6 -20
  55. package/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +4 -8
  56. package/api/resources/runs/resources/messages/index.d.ts +1 -0
  57. package/api/resources/runs/resources/messages/index.js +1 -0
  58. package/api/resources/runs/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  59. package/api/resources/runs/resources/messages/types/MessagesListRequestOrder.js +10 -0
  60. package/api/resources/runs/resources/messages/types/index.d.ts +1 -0
  61. package/api/resources/runs/resources/messages/types/index.js +17 -0
  62. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  63. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  64. package/api/resources/sources/client/Client.js +10 -10
  65. package/api/resources/sources/resources/files/client/Client.js +3 -3
  66. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  67. package/api/resources/steps/client/Client.js +3 -3
  68. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  69. package/api/resources/tags/client/Client.js +1 -1
  70. package/api/resources/telemetry/client/Client.js +1 -1
  71. package/api/resources/templates/client/Client.js +9 -9
  72. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  73. package/api/resources/tools/client/Client.js +20 -20
  74. package/api/resources/voice/client/Client.js +1 -1
  75. package/dist/api/resources/agents/client/Client.js +11 -11
  76. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  77. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  78. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  79. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  80. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  81. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  82. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  83. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +1 -1
  84. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  85. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  86. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  87. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  88. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  89. package/dist/api/resources/batches/client/Client.js +4 -4
  90. package/dist/api/resources/batches/index.d.ts +1 -1
  91. package/dist/api/resources/batches/index.js +1 -1
  92. package/dist/api/resources/batches/resources/index.d.ts +1 -0
  93. package/dist/api/resources/batches/resources/index.js +1 -0
  94. package/dist/api/resources/batches/resources/messages/client/Client.d.ts +1 -8
  95. package/dist/api/resources/batches/resources/messages/client/Client.js +14 -16
  96. package/dist/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +11 -6
  97. package/dist/api/resources/batches/resources/messages/index.d.ts +1 -0
  98. package/dist/api/resources/batches/resources/messages/index.js +1 -0
  99. package/dist/api/resources/batches/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  100. package/dist/api/resources/batches/resources/messages/types/MessagesListRequestOrder.js +10 -0
  101. package/dist/api/resources/batches/resources/messages/types/index.d.ts +1 -0
  102. package/dist/api/resources/batches/resources/messages/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.d.ts +1 -1
  112. package/dist/api/resources/groups/resources/messages/client/Client.js +6 -6
  113. package/dist/api/resources/health/client/Client.js +1 -1
  114. package/dist/api/resources/identities/client/Client.js +7 -7
  115. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  116. package/dist/api/resources/index.d.ts +1 -1
  117. package/dist/api/resources/index.js +2 -2
  118. package/dist/api/resources/jobs/client/Client.js +5 -5
  119. package/dist/api/resources/models/client/Client.js +2 -2
  120. package/dist/api/resources/projects/client/Client.js +1 -1
  121. package/dist/api/resources/providers/client/Client.js +6 -6
  122. package/dist/api/resources/runs/client/Client.js +5 -5
  123. package/dist/api/resources/runs/index.d.ts +1 -1
  124. package/dist/api/resources/runs/index.js +1 -1
  125. package/dist/api/resources/runs/resources/index.d.ts +1 -0
  126. package/dist/api/resources/runs/resources/index.js +1 -0
  127. package/dist/api/resources/runs/resources/messages/client/Client.d.ts +1 -14
  128. package/dist/api/resources/runs/resources/messages/client/Client.js +6 -20
  129. package/dist/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +4 -8
  130. package/dist/api/resources/runs/resources/messages/index.d.ts +1 -0
  131. package/dist/api/resources/runs/resources/messages/index.js +1 -0
  132. package/dist/api/resources/runs/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  133. package/dist/api/resources/runs/resources/messages/types/MessagesListRequestOrder.js +10 -0
  134. package/dist/api/resources/runs/resources/messages/types/index.d.ts +1 -0
  135. package/dist/api/resources/runs/resources/messages/types/index.js +17 -0
  136. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  137. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  138. package/dist/api/resources/sources/client/Client.js +10 -10
  139. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  140. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  141. package/dist/api/resources/steps/client/Client.js +3 -3
  142. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  143. package/dist/api/resources/tags/client/Client.js +1 -1
  144. package/dist/api/resources/telemetry/client/Client.js +1 -1
  145. package/dist/api/resources/templates/client/Client.js +9 -9
  146. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  147. package/dist/api/resources/tools/client/Client.js +20 -20
  148. package/dist/api/resources/voice/client/Client.js +1 -1
  149. package/dist/serialization/resources/batches/index.d.ts +1 -0
  150. package/dist/serialization/resources/batches/index.js +1 -0
  151. package/dist/serialization/resources/batches/resources/index.d.ts +2 -0
  152. package/dist/serialization/resources/batches/resources/index.js +41 -0
  153. package/dist/serialization/resources/batches/resources/messages/index.d.ts +1 -0
  154. package/dist/serialization/resources/batches/resources/messages/index.js +17 -0
  155. package/dist/serialization/resources/batches/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  156. package/dist/serialization/resources/batches/resources/messages/types/MessagesListRequestOrder.js +41 -0
  157. package/dist/serialization/resources/batches/resources/messages/types/index.d.ts +1 -0
  158. package/dist/serialization/resources/batches/resources/messages/types/index.js +17 -0
  159. package/dist/serialization/resources/index.d.ts +1 -1
  160. package/dist/serialization/resources/index.js +2 -2
  161. package/dist/serialization/resources/runs/index.d.ts +1 -1
  162. package/dist/serialization/resources/runs/index.js +1 -1
  163. package/dist/serialization/resources/runs/resources/index.d.ts +1 -0
  164. package/dist/serialization/resources/runs/resources/index.js +4 -0
  165. package/dist/serialization/resources/runs/resources/messages/index.d.ts +1 -0
  166. package/dist/serialization/resources/runs/resources/messages/index.js +1 -0
  167. package/dist/serialization/resources/runs/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  168. package/dist/serialization/resources/runs/resources/messages/types/MessagesListRequestOrder.js +41 -0
  169. package/dist/serialization/resources/runs/resources/messages/types/index.d.ts +1 -0
  170. package/dist/serialization/resources/runs/resources/messages/types/index.js +17 -0
  171. package/dist/version.d.ts +1 -1
  172. package/dist/version.js +1 -1
  173. package/package.json +1 -1
  174. package/reference.md +10 -30
  175. package/serialization/resources/batches/index.d.ts +1 -0
  176. package/serialization/resources/batches/index.js +1 -0
  177. package/serialization/resources/batches/resources/index.d.ts +2 -0
  178. package/serialization/resources/batches/resources/index.js +41 -0
  179. package/serialization/resources/batches/resources/messages/index.d.ts +1 -0
  180. package/serialization/resources/batches/resources/messages/index.js +17 -0
  181. package/serialization/resources/batches/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  182. package/serialization/resources/batches/resources/messages/types/MessagesListRequestOrder.js +41 -0
  183. package/serialization/resources/batches/resources/messages/types/index.d.ts +1 -0
  184. package/serialization/resources/batches/resources/messages/types/index.js +17 -0
  185. package/serialization/resources/index.d.ts +1 -1
  186. package/serialization/resources/index.js +2 -2
  187. package/serialization/resources/runs/index.d.ts +1 -1
  188. package/serialization/resources/runs/index.js +1 -1
  189. package/serialization/resources/runs/resources/index.d.ts +1 -0
  190. package/serialization/resources/runs/resources/index.js +4 -0
  191. package/serialization/resources/runs/resources/messages/index.d.ts +1 -0
  192. package/serialization/resources/runs/resources/messages/index.js +1 -0
  193. package/serialization/resources/runs/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  194. package/serialization/resources/runs/resources/messages/types/MessagesListRequestOrder.js +41 -0
  195. package/serialization/resources/runs/resources/messages/types/index.d.ts +1 -0
  196. package/serialization/resources/runs/resources/messages/types/index.js +17 -0
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
@@ -85,7 +85,7 @@ class Batches {
85
85
  method: "GET",
86
86
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
87
  ? yield core.Supplier.get(this._options.project)
88
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -173,7 +173,7 @@ class Batches {
173
173
  method: "POST",
174
174
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
175
175
  ? yield core.Supplier.get(this._options.project)
176
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
177
  contentType: "application/json",
178
178
  requestType: "json",
179
179
  body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -250,7 +250,7 @@ class Batches {
250
250
  method: "GET",
251
251
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
252
252
  ? yield core.Supplier.get(this._options.project)
253
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
254
254
  contentType: "application/json",
255
255
  requestType: "json",
256
256
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -326,7 +326,7 @@ class Batches {
326
326
  method: "PATCH",
327
327
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
328
328
  ? yield core.Supplier.get(this._options.project)
329
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
330
330
  contentType: "application/json",
331
331
  requestType: "json",
332
332
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,2 +1,2 @@
1
- export * from "./client";
2
1
  export * from "./resources";
2
+ export * from "./client";
@@ -14,5 +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("./client"), exports);
18
17
  __exportStar(require("./resources"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -1,2 +1,3 @@
1
1
  export * as messages from "./messages";
2
+ export * from "./messages/types";
2
3
  export * from "./messages/client/requests";
@@ -38,4 +38,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.messages = void 0;
40
40
  exports.messages = __importStar(require("./messages"));
41
+ __exportStar(require("./messages/types"), exports);
41
42
  __exportStar(require("./messages/client/requests"), exports);
@@ -31,14 +31,7 @@ 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
37
  * @param {Letta.batches.MessagesListRequest} request
@@ -52,22 +52,15 @@ exports.Messages = 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 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
66
  * @param {Letta.batches.MessagesListRequest} request
@@ -84,26 +77,31 @@ class Messages {
84
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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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",
@@ -1,25 +1,30 @@
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 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;
9
18
  /**
10
19
  * Maximum number of messages to return
11
20
  */
12
21
  limit?: number;
13
22
  /**
14
- * Message ID to use as pagination cursor (get messages before/after this ID) depending on sort_descending.
23
+ * Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
15
24
  */
16
- cursor?: string;
25
+ order?: Letta.batches.MessagesListRequestOrder;
17
26
  /**
18
27
  * Filter messages by agent ID
19
28
  */
20
29
  agentId?: string;
21
- /**
22
- * Sort messages by creation time (true=newest first)
23
- */
24
- sortDescending?: boolean;
25
30
  }
@@ -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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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,
@@ -90,7 +90,7 @@ class Folders {
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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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 Folders {
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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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 Folders {
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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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 Folders {
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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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 Folders {
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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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 Folders {
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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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 Folders {
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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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 Folders {
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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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 Folders {
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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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,
@@ -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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "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,
@@ -183,7 +183,7 @@ class Files {
183
183
  method: "GET",
184
184
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
185
185
  ? yield core.Supplier.get(this._options.project)
186
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
187
  contentType: "application/json",
188
188
  queryParameters: _queryParams,
189
189
  requestType: "json",
@@ -261,7 +261,7 @@ class Files {
261
261
  method: "DELETE",
262
262
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
263
263
  ? yield core.Supplier.get(this._options.project)
264
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  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.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-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.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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",
@@ -105,7 +105,7 @@ class Groups {
105
105
  method: "GET",
106
106
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
107
107
  ? yield core.Supplier.get(this._options.project)
108
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
108
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
109
  contentType: "application/json",
110
110
  queryParameters: _queryParams,
111
111
  requestType: "json",
@@ -185,7 +185,7 @@ class Groups {
185
185
  method: "POST",
186
186
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
187
187
  ? yield core.Supplier.get(this._options.project)
188
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
188
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-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
189
  contentType: "application/json",
190
190
  requestType: "json",
191
191
  body: serializers.GroupCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -261,7 +261,7 @@ class Groups {
261
261
  method: "GET",
262
262
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
263
263
  ? yield core.Supplier.get(this._options.project)
264
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -337,7 +337,7 @@ class Groups {
337
337
  method: "GET",
338
338
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
339
339
  ? yield core.Supplier.get(this._options.project)
340
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
340
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
341
341
  contentType: "application/json",
342
342
  requestType: "json",
343
343
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -413,7 +413,7 @@ class Groups {
413
413
  method: "DELETE",
414
414
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
415
415
  ? yield core.Supplier.get(this._options.project)
416
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
416
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
417
417
  contentType: "application/json",
418
418
  requestType: "json",
419
419
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -481,7 +481,7 @@ class Groups {
481
481
  method: "PATCH",
482
482
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
483
483
  ? yield core.Supplier.get(this._options.project)
484
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68637", "User-Agent": "@letta-ai/letta-client/0.0.68637", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
484
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68639", "User-Agent": "@letta-ai/letta-client/0.0.68639", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
485
485
  contentType: "application/json",
486
486
  requestType: "json",
487
487
  body: serializers.GroupUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -60,7 +60,7 @@ export declare class Messages {
60
60
  * role: "user",
61
61
  * content: [{
62
62
  * type: "text",
63
- * text: "text"
63
+ * text: "The sky above the port was the color of television, tuned to a dead channel."
64
64
  * }]
65
65
  * }]
66
66
  * })